Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Chien-Hung committed Oct 23, 2018
1 parent ef3e5e9 commit 0c9f6c9
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 51 deletions.
37 changes: 0 additions & 37 deletions C-GLO/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions Detection/README.md

This file was deleted.

52 changes: 43 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,55 @@ Official Implementation of [Stingray Detection of Aerial Images Using Augmented

Created by [Yi-Min Chou](https://github.com/yyyjoe), Chien-Hung Chen, Keng-Hao Liu, Chu-Song Chen

## Usage
ConditionalGLO
├──────────── C-GLO
└──────────── Detection
## The overview of data augmentation

![alt tag](./assets/overview.png)

1.Clone the Mixed-Bg-Fg-Synthesis repository:
1. Crop the object patches (rotate and flip to augment data) and randomly crop the background patches to establish the dataset for training conditional GLO.
2. Training conditional GLO and use the well-trained model to generate the fake stingray image.
3. Paste the generated stingray patches to original positions.
4. Use the augmented data generated from C-GLO to train detection models.

## Conditional-Generative-Latent-Optimization

$ git clone --recursive https://github.com/ivclab/ConditionalGLO.git
![alt tag](./assets/cglo-1.png)

## Prerequisition
- Python 2.7
- [TensorFlow 1.4.0 or higher](https://github.com/tensorflow/tensorflow)

2.Follow the instruction in [C-GLO](https://github.com/ivclab/Mixed-Bg-Fg-Synthesis/tree/master/C-GLO) and get the augmented training data.

## How to Run

3.Use the augmented data generated from C-GLO and train on Stingray [Detection](https://github.com/ivclab/Mixed-Bg-Fg-Synthesis/tree/master/Detection).
- Clone the Mixed-Bg-Fg-Synthesis repository:
```bash
$ git clone --recursive https://github.com/ivclab/ConditionalGLO.git
```

- Install required packages:
```bash
$ pip install -r requirements.txt
```

- Download Stingray Data:
```bash
$ python download.py
```

- Run the training code:
```bash
# The training result will be saved in `./logs/FOLDER_NAME/`
$ python main.py --is_train=True
```

- Run the testing code:
```bash
# The testing result will be saved in `./logs/FOLDER_NAME_test/`
$ python main.py --is_train=False --load_path=FOLDER_NAME
```

## Experimental Results
Original background image(top), mixed background and foreground synthesis generated by C-GLO (bottom)
![alt tag](./assets/Fig5-1.png)


## Citation
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0c9f6c9

Please sign in to comment.