Aryan Sethi Claude Opus 5 (1M context) commited on
Commit
529f79d
·
1 Parent(s): 9056272

Publish the dataset to the Hub and verify the round trip

Browse files

Aryan006/cone-distance-v1, private: 2.38 GB as three tar shards alongside the
manifest, sixteen calibration files, the derived class priors and a generated
card. Private deliberately -- nuScenes and Argoverse 2 carry non-commercial
research licences that restrict redistributing derived imagery.

Pulled it back down and checked it, since "uploaded" and "trains on Colab" are
not the same claim: 8,446 train and 1,815 val images restored as real files
rather than dangling links, every image paired with a label, data.yaml rewritten
to an absolute path.

Both hub tools now read HF_TOKEN from the environment. A token passed as --token
is visible to anyone who can run ps.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

notebooks/colab_train.ipynb CHANGED
@@ -63,7 +63,7 @@
63
  "metadata": {},
64
  "outputs": [],
65
  "source": [
66
- "REPO_ID = 'YOUR_USER/cone-distance-v1' # <-- edit me\n",
67
  "\n",
68
  "try:\n",
69
  " from google.colab import userdata\n",
 
63
  "metadata": {},
64
  "outputs": [],
65
  "source": [
66
+ "REPO_ID = 'Aryan006/cone-distance-v1'\n",
67
  "\n",
68
  "try:\n",
69
  " from google.colab import userdata\n",
src/hub/pull.py CHANGED
@@ -12,6 +12,7 @@ Usage:
12
  from __future__ import annotations
13
 
14
  import argparse
 
15
  import tarfile
16
  from pathlib import Path
17
 
@@ -71,7 +72,11 @@ def main() -> None:
71
  formatter_class=argparse.RawDescriptionHelpFormatter)
72
  parser.add_argument("--repo-id", required=True)
73
  parser.add_argument("--dest", type=Path, default=Path("data/hub"))
74
- parser.add_argument("--token", default=None)
 
 
 
 
75
  parser.add_argument("--keep-shards", action="store_true",
76
  help="keep the .tar files after extracting (doubles disk use)")
77
  args = parser.parse_args()
 
12
  from __future__ import annotations
13
 
14
  import argparse
15
+ import os
16
  import tarfile
17
  from pathlib import Path
18
 
 
72
  formatter_class=argparse.RawDescriptionHelpFormatter)
73
  parser.add_argument("--repo-id", required=True)
74
  parser.add_argument("--dest", type=Path, default=Path("data/hub"))
75
+ parser.add_argument("--token", default=os.environ.get("HF_TOKEN"),
76
+ help="defaults to $HF_TOKEN, then the cached "
77
+ "huggingface-cli login. Prefer the environment: a "
78
+ "token passed on the command line is visible to "
79
+ "anyone who can run ps.")
80
  parser.add_argument("--keep-shards", action="store_true",
81
  help="keep the .tar files after extracting (doubles disk use)")
82
  args = parser.parse_args()
src/hub/push.py CHANGED
@@ -27,6 +27,7 @@ Usage:
27
  from __future__ import annotations
28
 
29
  import argparse
 
30
  import shutil
31
  import tarfile
32
  import tempfile
@@ -237,8 +238,11 @@ def main() -> None:
237
  parser.add_argument("--repo-id", required=True, help="e.g. <user>/cone-distance-v1")
238
  parser.add_argument("--unified-root", type=Path, default=None)
239
  parser.add_argument("--private", action="store_true")
240
- parser.add_argument("--token", default=None,
241
- help="defaults to the cached huggingface-cli login")
 
 
 
242
  parser.add_argument("--shard-bytes", type=int, default=DEFAULT_SHARD_BYTES)
243
  parser.add_argument("--staging-dir", type=Path, default=None,
244
  help="keep the staging directory here instead of a temp dir")
 
27
  from __future__ import annotations
28
 
29
  import argparse
30
+ import os
31
  import shutil
32
  import tarfile
33
  import tempfile
 
238
  parser.add_argument("--repo-id", required=True, help="e.g. <user>/cone-distance-v1")
239
  parser.add_argument("--unified-root", type=Path, default=None)
240
  parser.add_argument("--private", action="store_true")
241
+ parser.add_argument("--token", default=os.environ.get("HF_TOKEN"),
242
+ help="defaults to $HF_TOKEN, then the cached "
243
+ "huggingface-cli login. Prefer the environment: a "
244
+ "token passed on the command line is visible to "
245
+ "anyone who can run ps.")
246
  parser.add_argument("--shard-bytes", type=int, default=DEFAULT_SHARD_BYTES)
247
  parser.add_argument("--staging-dir", type=Path, default=None,
248
  help="keep the staging directory here instead of a temp dir")
train_yolo11_object_detection_on_custom_dataset.ipynb ADDED
The diff for this file is too large to render. See raw diff