Datasets:

Modalities:
Image
ArXiv:
License:
JeffreyJsam commited on
Commit
192c6b4
·
verified ·
1 Parent(s): 8d68112

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md CHANGED
@@ -42,6 +42,37 @@ Due to Hugging Face Hub's per-directory file limit (10,000 files), this dataset
42
 
43
  If you're using models/tools like **YOLO** or others that expect a **flat directory**, you may need to **merge these subfolders at load-time or during preprocessing**.
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  ## Code and Data Generation Pipeline
47
 
 
42
 
43
  If you're using models/tools like **YOLO** or others that expect a **flat directory**, you may need to **merge these subfolders at load-time or during preprocessing**.
44
 
45
+ ## Utility Scripts
46
+
47
+ ### 1. Setup
48
+
49
+ Create your virtual environment:
50
+
51
+ python -m venv env
52
+ source env/bin/activate # On Windows: env\Scripts\activate
53
+ pip install -r requirements.txt
54
+
55
+
56
+ ### 2. Sample 500 items from a specific chunk:
57
+
58
+ python sample_swim.py
59
+ --repo-id JeffreyJsam/SWiM-SpacecraftWithMasks
60
+ --image-subdir Baseline/images/val/000
61
+ --label-subdir Baseline/labels/val/000
62
+ --output-dir ./Sampled-SWiM
63
+ --count 500
64
+
65
+ ### 3. Download the entire dataset (optionally flatten chunks):
66
+
67
+ python download_swim.py
68
+ --repo-id JeffreyJsam/SWiM-SpacecraftWithMasks
69
+ --images-parent Baseline/images/val
70
+ --labels-parent Baseline/labels/val
71
+ --output-dir ./SWiM
72
+ --flatten
73
+
74
+
75
+ **Arguments are all configurable—see `--help` for details.**
76
 
77
  ## Code and Data Generation Pipeline
78