Spaces:
Sleeping
Sleeping
| import os | |
| # ================================ | |
| # 0. μ€μ | |
| # ================================ | |
| TARGET_COUNT = 60 | |
| MIN_RES = 128 # ν΄μλ 128 | |
| PREFIX = "kg" | |
| BASE_DIR = "./data/raw" | |
| # ================================ | |
| # 1. λ€μ΄λ‘λ κ²½λ‘ | |
| # ================================ | |
| DOWNLOAD_PATH = "data/raw_full_kg" | |
| os.makedirs(DOWNLOAD_PATH, exist_ok=True) | |
| # ================================ | |
| # 2. μ¬μ©ν Kaggle λ°μ΄ν°μ (slug κΈ°μ€) | |
| # ================================ | |
| DATASETS = [ | |
| # μμ λ° μμ¬λ£ | |
| "kmader/food41", | |
| # λλ¬Ό | |
| "alessiocorrado99/animals10", | |
| "gpiosenka/100-bird-species", | |
| # κ½ | |
| "alxmamaev/flowers-recognition", | |
| # κ³ΌμΌ | |
| "moltean/fruits", | |
| "yihfeng/strawberry-maturity", | |
| # νκ² | |
| "sshikamaru/car-object-detection", | |
| "jessicali9530/stanford-cars-dataset", | |
| "dataclusterlabs/vehicle-detection-image-dataset", | |
| "meowmeowmeowmeowmeow/vehicle-type-recognition", | |
| # ν¨μ λ° μ‘ν | |
| "promptcloudhq/jewelry-text-to-image-dataset", | |
| "ashwingupta3012/glasses-dataset", | |
| "agrigorev/clothing-dataset-full", | |
| "paramaggarwal/fashion-product-images-small" | |
| ] | |
| # ================================ | |
| # 3. λ€μ΄λ‘λ μ€ν | |
| # ================================ | |
| for ds in DATASETS: | |
| print(f"\nDownloading {ds} ...") | |
| os.system(f"kaggle datasets download -d {ds} -p {DOWNLOAD_PATH}") | |
| print("\nλͺ¨λ λ°μ΄ν°μ λ€μ΄λ‘λ μλ£!") |