Skip to content

Commit

Permalink
cliqa: Add more practical example
Browse files Browse the repository at this point in the history
  • Loading branch information
nagadomi committed Apr 19, 2023
1 parent ca3df64 commit 5d56454
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cliqa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,15 @@ Example,
pytyon -m cliqa.filter_low_quality_jpeg -i ./data/images -o ./data/hq1 --symlink
pytyon -m cliqa.filter_noisy_photo -i ./data/hq1 -o ./data/hq2 --symlink
```

More practical example,
```bash
# rename original `images` directory to `images_original` temporary.
mv ./data/images ./data/images_original
# filtering low quality jpegs
pytyon -m cliqa.filter_low_quality_jpeg -i ./data/images_original -o ./data/images_filter_jpeg --symlink
# filtering noisy photos
pytyon -m cliqa.filter_noisy_photo -i ./data/images_filter_jpeg -o ./data/images_filter_noisy --symlink
# Make the original `images` directory link to the cleaned directory. (replace)
ln -s `realpath ./data/images_filter_noisy` ./data/images
```

0 comments on commit 5d56454

Please sign in to comment.