Add files using upload-large-folder tool
Browse files- upload_to_hub.sh +29 -0
upload_to_hub.sh
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Enable hf-transfer for faster uploads
|
| 4 |
+
export HF_HUB_ENABLE_HF_TRANSFER=1
|
| 5 |
+
|
| 6 |
+
# Repository ID
|
| 7 |
+
REPO_ID="Brainkite/waymo_processed"
|
| 8 |
+
|
| 9 |
+
# Upload training files
|
| 10 |
+
echo "Uploading training files..."
|
| 11 |
+
for file in training/*; do
|
| 12 |
+
if [ -f "$file" ]; then
|
| 13 |
+
echo "Uploading $file..."
|
| 14 |
+
huggingface-cli upload $REPO_ID "$file" "$file" --repo-type=dataset
|
| 15 |
+
echo "Completed uploading $file"
|
| 16 |
+
fi
|
| 17 |
+
done
|
| 18 |
+
|
| 19 |
+
# Upload validation files
|
| 20 |
+
echo "Uploading validation files..."
|
| 21 |
+
for file in validation/*; do
|
| 22 |
+
if [ -f "$file" ]; then
|
| 23 |
+
echo "Uploading $file..."
|
| 24 |
+
huggingface-cli upload $REPO_ID "$file" "$file" --repo-type=dataset
|
| 25 |
+
echo "Completed uploading $file"
|
| 26 |
+
fi
|
| 27 |
+
done
|
| 28 |
+
|
| 29 |
+
echo "All uploads completed!"
|