Download code/configs/base/dataloader.yml from TomLEE2026/image-moderator-v0: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/TomLEE2026/image-moderator-v0/resolve/main/code/configs/base/dataloader.yml
- Command line
-
hf download hf://TomLEE2026/image-moderator-v0/code/configs/base/dataloader.yml
-
curl -L -o dataloader.yml https://huggingface.co/TomLEE2026/image-moderator-v0/resolve/main/code/configs/base/dataloader.yml
1.15 kB
| train_dataloader: | |
| dataset: | |
| transforms: | |
| ops: | |
| - {type: RandomPhotometricDistort, p: 0.5} | |
| - {type: RandomZoomOut, fill: 0} | |
| - {type: RandomIoUCrop, p: 0.8} | |
| - {type: SanitizeBoundingBoxes, min_size: 1} | |
| - {type: RandomHorizontalFlip} | |
| - {type: Resize, size: [640, 640], } | |
| - {type: SanitizeBoundingBoxes, min_size: 1} | |
| - {type: ConvertPILImage, dtype: 'float32', scale: True} | |
| - {type: ConvertBoxes, fmt: 'cxcywh', normalize: True} | |
| policy: | |
| name: stop_epoch | |
| epoch: 72 # epoch in [71, ~) stop `ops` | |
| ops: ['Mosaic', 'RandomPhotometricDistort', 'RandomZoomOut', 'RandomIoUCrop'] | |
| collate_fn: | |
| type: BatchImageCollateFunction | |
| base_size: 640 | |
| base_size_repeat: 3 | |
| stop_epoch: 72 # epoch in [72, ~) stop `multiscales` | |
| shuffle: True | |
| total_batch_size: 32 # total batch size equals to 32 (4 * 8) | |
| num_workers: 4 | |
| val_dataloader: | |
| dataset: | |
| transforms: | |
| ops: | |
| - {type: Resize, size: [640, 640], } | |
| - {type: ConvertPILImage, dtype: 'float32', scale: True} | |
| shuffle: False | |
| total_batch_size: 64 | |
| num_workers: 4 | |