Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmoudnafifi committed Jul 13, 2021
1 parent 183d853 commit 6894c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Our augmentation method can accurately emulate realistic color constancy degrada
3. `demo.py` shows an example of how to use the `WBEmulator` module

#### 2. PyTorch:
`torch_demo.py` shows an example of how to use the `WBEmulator` module to augment images on the fly. This example can be easily adapted for TensorFlow as well. This code applies the WB augmentation to each image loaded from the data loader. See the implementation of `BasicDataset` in `torch_demo.py` as an example of the PyTorch data loader with our WB augmenter. The parameter `aug_prob` controls the probability of applying the WB augmenter.
`torch_demo.py` shows an example of how to use the `WBEmulator` module to augment images on the fly. This example can be easily adapted for TensorFlow as well. This code applies the WB augmentation to each image loaded from the data loader. See the implementation of `BasicDataset` in `torch_demo.py` as an example of PyTorch data loader with our WB augmenter. The parameter `aug_prob` controls the probability of applying the WB augmenter.

The demo in `torch_demo.py` uses the ImageNET pre-trained model of VGG19. The demo uses a single image of a hamster (located in `\images` and shown below) and randomly applies one of our WB/camera profiles to the image before classifying.

Expand Down

0 comments on commit 6894c4d

Please sign in to comment.