Use the download_images.py script to download images for the FathomNet 2023 Competition. The script requires a JSON file specifying the data to download (e.g., training or evaluation sets).
By default, the script creates an images directory in the current location. To save images to a specific location, use the --outpath flag.
Prerequisites:
You must have the dataset downloaded from Kaggle and maintain the following directory structure:
../fathomnet-out-of-sample-detection
|
|____multilabel_classification
| |____train.csv
|____object_detection
| |____eval.json
| |____train.json
|____category_key.csv
|____demo_download.ipynb
|____download_images.py
|____requirements.txt
|____sample_submission.csv
# Download training data
python download_images.py object_detection/train.json
# Download evaluation data
python download_images.py object_detection/eval.json
# Example with custom output path
python download_images.py object_detection/train.json --outpath /path/to/your/images