Skip to content

Commit

Permalink
Merge pull request MicrosoftDocs#119194 from chjinche/chjinche/improv…
Browse files Browse the repository at this point in the history
…e_conv_to_img_dir

improve convert to image directory
  • Loading branch information
PMEds28 authored Jun 17, 2020
2 parents 054efac + 8cd4c45 commit e63c0c1
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,28 @@ This article describes how to use the Convert to Image Directory module to help
Following dataset formats are supported:

- Compressed file in these extensions: '.zip', '.tar', '.gz', '.bz2'.
- Folder containing 1 compressed file in above valid extensions.
- Folder containing images.
- Folder containing images. **Highly recommend compressing such folder first then use the compressed file as dataset**.

> [!NOTE]
> Image category can be recorded in module output if this image dataset is organized in torchvision ImageFolder format, please refer to [torchvision datasets](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) for more information. Otherwise, only images are saved.
> If use image dataset in supervised learning, label is required.
> For image classification task, label can be generated as image 'category' in module output if this image dataset is organized in torchvision ImageFolder format. Otherwise, only images are saved without label. Here is an example of how you could organize image dataset to get label, use image category as subfolder name. Please refer to [torchvision datasets](https://pytorch.org/docs/stable/torchvision/datasets.html#imagefolder) for more information.
>
> ```
> root/dog/xxx.png
> root/dog/xxy.png
> root/dog/xxz.png
>
> root/cat/123.png
> root/cat/nsdf3.png
> root/cat/asd932_.png
> ```
3. Submit the pipeline.
## Results
The output of **Convert to Image Directory** module is in Image Directory format, and can be connected to other image related modules of which the input port format is also Image Directory.
## Technical notes
### Expected inputs
Expand Down

0 comments on commit e63c0c1

Please sign in to comment.