Upload folder using huggingface_hub
Browse files- README.md +12 -2
- example_notebook.ipynb +122 -42
- script.py +1 -1
README.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
This repo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
|
|
|
| 1 |
+
# Empty solution example for the S23DR competition
|
| 2 |
|
| 3 |
+
This repo provides a minimalistic example of a valid, but empty submission to S23DR competition.
|
| 4 |
+
We recommend you take a look at [this example](https://huggingface.co/usm3d/handcrafted_baseline_submission),
|
| 5 |
+
which implements some primitive algorithms and provides useful I/O and visualization functions.
|
| 6 |
+
|
| 7 |
+
This example seeks to simply provide minimal code which succeeds at reading the dataset and producing a solution (in this case two vertices at the origin and edge of zero length connecting them).
|
| 8 |
+
|
| 9 |
+
`script.py` - is the main file which is run by the competition space. It should produce `submission.parquet` as the result of the run. Please see the additional comments in the `script.py` file.
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
license: apache-2.0
|
| 13 |
+
---
|
| 14 |
|
example_notebook.ipynb
CHANGED
|
@@ -31,7 +31,7 @@
|
|
| 31 |
},
|
| 32 |
{
|
| 33 |
"cell_type": "code",
|
| 34 |
-
"execution_count":
|
| 35 |
"id": "ItDDqoXop8bb",
|
| 36 |
"metadata": {
|
| 37 |
"colab": {
|
|
@@ -61,7 +61,7 @@
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
-
"execution_count":
|
| 65 |
"id": "zq_ljluLqzzv",
|
| 66 |
"metadata": {
|
| 67 |
"id": "zq_ljluLqzzv"
|
|
@@ -115,7 +115,7 @@
|
|
| 115 |
},
|
| 116 |
{
|
| 117 |
"cell_type": "code",
|
| 118 |
-
"execution_count":
|
| 119 |
"id": "U0J1w3kCZqMD",
|
| 120 |
"metadata": {
|
| 121 |
"colab": {
|
|
@@ -239,56 +239,88 @@
|
|
| 239 |
},
|
| 240 |
"outputs": [
|
| 241 |
{
|
| 242 |
-
"
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
},
|
| 250 |
{
|
| 251 |
"data": {
|
| 252 |
"application/vnd.jupyter.widget-view+json": {
|
| 253 |
-
"model_id": "
|
| 254 |
"version_major": 2,
|
| 255 |
"version_minor": 0
|
| 256 |
},
|
| 257 |
"text/plain": [
|
| 258 |
-
"
|
| 259 |
]
|
| 260 |
},
|
| 261 |
"metadata": {},
|
| 262 |
"output_type": "display_data"
|
| 263 |
},
|
| 264 |
{
|
| 265 |
-
"
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 271 |
},
|
| 272 |
{
|
| 273 |
-
"
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 280 |
},
|
| 281 |
{
|
| 282 |
"name": "stdout",
|
| 283 |
"output_type": "stream",
|
| 284 |
"text": [
|
| 285 |
-
"
|
|
|
|
|
|
|
| 286 |
]
|
| 287 |
},
|
| 288 |
{
|
| 289 |
"data": {
|
| 290 |
"application/vnd.jupyter.widget-view+json": {
|
| 291 |
-
"model_id": "
|
| 292 |
"version_major": 2,
|
| 293 |
"version_minor": 0
|
| 294 |
},
|
|
@@ -299,11 +331,67 @@
|
|
| 299 |
"metadata": {},
|
| 300 |
"output_type": "display_data"
|
| 301 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
{
|
| 303 |
"name": "stdout",
|
| 304 |
"output_type": "stream",
|
| 305 |
"text": [
|
| 306 |
-
"/Users/jack/dev/S23DR/2025/empty_submission/my_cool_submission_2025\n"
|
| 307 |
]
|
| 308 |
}
|
| 309 |
],
|
|
@@ -357,7 +445,7 @@
|
|
| 357 |
},
|
| 358 |
{
|
| 359 |
"cell_type": "code",
|
| 360 |
-
"execution_count":
|
| 361 |
"id": "NfxHRGClBYQE",
|
| 362 |
"metadata": {
|
| 363 |
"colab": {
|
|
@@ -371,15 +459,7 @@
|
|
| 371 |
"name": "stdout",
|
| 372 |
"output_type": "stream",
|
| 373 |
"text": [
|
| 374 |
-
"/Users/jack/dev/S23DR/2025/empty_submission/my_cool_submission_2025\n"
|
| 375 |
-
]
|
| 376 |
-
},
|
| 377 |
-
{
|
| 378 |
-
"name": "stderr",
|
| 379 |
-
"output_type": "stream",
|
| 380 |
-
"text": [
|
| 381 |
-
"/opt/homebrew/Caskroom/miniforge/base/envs/s23dr/lib/python3.10/site-packages/IPython/core/magics/osm.py:417: UserWarning: This is now an optional IPython functionality, setting dhist requires you to install the `pickleshare` library.\n",
|
| 382 |
-
" self.shell.db['dhist'] = compress_dhist(dhist)[-100:]\n"
|
| 383 |
]
|
| 384 |
}
|
| 385 |
],
|
|
@@ -435,7 +515,7 @@
|
|
| 435 |
},
|
| 436 |
{
|
| 437 |
"cell_type": "code",
|
| 438 |
-
"execution_count":
|
| 439 |
"id": "4Y0eTe7M_vIJ",
|
| 440 |
"metadata": {
|
| 441 |
"colab": {
|
|
@@ -449,7 +529,7 @@
|
|
| 449 |
"name": "stdout",
|
| 450 |
"output_type": "stream",
|
| 451 |
"text": [
|
| 452 |
-
"[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/
|
| 453 |
]
|
| 454 |
}
|
| 455 |
],
|
|
@@ -477,7 +557,7 @@
|
|
| 477 |
},
|
| 478 |
{
|
| 479 |
"cell_type": "code",
|
| 480 |
-
"execution_count":
|
| 481 |
"id": "Rf59SEZ6Cp4U",
|
| 482 |
"metadata": {
|
| 483 |
"colab": {
|
|
@@ -512,7 +592,7 @@
|
|
| 512 |
"<IPython.core.display.Markdown object>"
|
| 513 |
]
|
| 514 |
},
|
| 515 |
-
"execution_count":
|
| 516 |
"metadata": {},
|
| 517 |
"output_type": "execute_result"
|
| 518 |
}
|
|
|
|
| 31 |
},
|
| 32 |
{
|
| 33 |
"cell_type": "code",
|
| 34 |
+
"execution_count": 7,
|
| 35 |
"id": "ItDDqoXop8bb",
|
| 36 |
"metadata": {
|
| 37 |
"colab": {
|
|
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
+
"execution_count": 8,
|
| 65 |
"id": "zq_ljluLqzzv",
|
| 66 |
"metadata": {
|
| 67 |
"id": "zq_ljluLqzzv"
|
|
|
|
| 115 |
},
|
| 116 |
{
|
| 117 |
"cell_type": "code",
|
| 118 |
+
"execution_count": 9,
|
| 119 |
"id": "U0J1w3kCZqMD",
|
| 120 |
"metadata": {
|
| 121 |
"colab": {
|
|
|
|
| 239 |
},
|
| 240 |
"outputs": [
|
| 241 |
{
|
| 242 |
+
"data": {
|
| 243 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 244 |
+
"model_id": "512d1f08f3e64ef3808da8bb846d6354",
|
| 245 |
+
"version_major": 2,
|
| 246 |
+
"version_minor": 0
|
| 247 |
+
},
|
| 248 |
+
"text/plain": [
|
| 249 |
+
"Fetching 4 files: 0%| | 0/4 [00:00<?, ?it/s]"
|
| 250 |
+
]
|
| 251 |
+
},
|
| 252 |
+
"metadata": {},
|
| 253 |
+
"output_type": "display_data"
|
| 254 |
},
|
| 255 |
{
|
| 256 |
"data": {
|
| 257 |
"application/vnd.jupyter.widget-view+json": {
|
| 258 |
+
"model_id": "920116c0c939415ba0da14e045bb5fe1",
|
| 259 |
"version_major": 2,
|
| 260 |
"version_minor": 0
|
| 261 |
},
|
| 262 |
"text/plain": [
|
| 263 |
+
"script.py: 0%| | 0.00/2.38k [00:00<?, ?B/s]"
|
| 264 |
]
|
| 265 |
},
|
| 266 |
"metadata": {},
|
| 267 |
"output_type": "display_data"
|
| 268 |
},
|
| 269 |
{
|
| 270 |
+
"data": {
|
| 271 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 272 |
+
"model_id": "4975ca0c047e41f6a0bfdb24cf6d980f",
|
| 273 |
+
"version_major": 2,
|
| 274 |
+
"version_minor": 0
|
| 275 |
+
},
|
| 276 |
+
"text/plain": [
|
| 277 |
+
".gitattributes: 0%| | 0.00/1.52k [00:00<?, ?B/s]"
|
| 278 |
+
]
|
| 279 |
+
},
|
| 280 |
+
"metadata": {},
|
| 281 |
+
"output_type": "display_data"
|
| 282 |
},
|
| 283 |
{
|
| 284 |
+
"data": {
|
| 285 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 286 |
+
"model_id": "663f1903db14424fbbd3a99a6f407408",
|
| 287 |
+
"version_major": 2,
|
| 288 |
+
"version_minor": 0
|
| 289 |
+
},
|
| 290 |
+
"text/plain": [
|
| 291 |
+
"README.md: 0%| | 0.00/779 [00:00<?, ?B/s]"
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
"metadata": {},
|
| 295 |
+
"output_type": "display_data"
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"data": {
|
| 299 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 300 |
+
"model_id": "93a306e3e7c94176bf127a9b2d364ce3",
|
| 301 |
+
"version_major": 2,
|
| 302 |
+
"version_minor": 0
|
| 303 |
+
},
|
| 304 |
+
"text/plain": [
|
| 305 |
+
"example_notebook.ipynb: 0%| | 0.00/146k [00:00<?, ?B/s]"
|
| 306 |
+
]
|
| 307 |
+
},
|
| 308 |
+
"metadata": {},
|
| 309 |
+
"output_type": "display_data"
|
| 310 |
},
|
| 311 |
{
|
| 312 |
"name": "stdout",
|
| 313 |
"output_type": "stream",
|
| 314 |
"text": [
|
| 315 |
+
"/Users/jack/dev/S23DR/2025/empty_submission/my_cool_submission_2025/upstream\n",
|
| 316 |
+
"https://huggingface.co/jacklangerman/my_cool_submission_2025\n",
|
| 317 |
+
"[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/f16ee2c7082a1e3d8d0c1f0f65e331e212af3ba3', commit_message='Upload folder using huggingface_hub', commit_description='', oid='f16ee2c7082a1e3d8d0c1f0f65e331e212af3ba3', pr_url=None, repo_url=RepoUrl('https://huggingface.co/jacklangerman/my_cool_submission_2025', endpoint='https://huggingface.co', repo_type='model', repo_id='jacklangerman/my_cool_submission_2025'), pr_revision=None, pr_num=None)]\n"
|
| 318 |
]
|
| 319 |
},
|
| 320 |
{
|
| 321 |
"data": {
|
| 322 |
"application/vnd.jupyter.widget-view+json": {
|
| 323 |
+
"model_id": "3cc9d11239ce4031a4e3f6ba12874d2b",
|
| 324 |
"version_major": 2,
|
| 325 |
"version_minor": 0
|
| 326 |
},
|
|
|
|
| 331 |
"metadata": {},
|
| 332 |
"output_type": "display_data"
|
| 333 |
},
|
| 334 |
+
{
|
| 335 |
+
"data": {
|
| 336 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 337 |
+
"model_id": "e8d35e9b9c234064a8735d7d745d6ae6",
|
| 338 |
+
"version_major": 2,
|
| 339 |
+
"version_minor": 0
|
| 340 |
+
},
|
| 341 |
+
"text/plain": [
|
| 342 |
+
"README.md: 0%| | 0.00/779 [00:00<?, ?B/s]"
|
| 343 |
+
]
|
| 344 |
+
},
|
| 345 |
+
"metadata": {},
|
| 346 |
+
"output_type": "display_data"
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"data": {
|
| 350 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 351 |
+
"model_id": "23382690f1244d5ca83ce74cc4662b00",
|
| 352 |
+
"version_major": 2,
|
| 353 |
+
"version_minor": 0
|
| 354 |
+
},
|
| 355 |
+
"text/plain": [
|
| 356 |
+
"example_notebook.ipynb: 0%| | 0.00/146k [00:00<?, ?B/s]"
|
| 357 |
+
]
|
| 358 |
+
},
|
| 359 |
+
"metadata": {},
|
| 360 |
+
"output_type": "display_data"
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"data": {
|
| 364 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 365 |
+
"model_id": "85bfc371a91c4df39a49fc84988c7b4b",
|
| 366 |
+
"version_major": 2,
|
| 367 |
+
"version_minor": 0
|
| 368 |
+
},
|
| 369 |
+
"text/plain": [
|
| 370 |
+
".gitattributes: 0%| | 0.00/1.52k [00:00<?, ?B/s]"
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
"metadata": {},
|
| 374 |
+
"output_type": "display_data"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"data": {
|
| 378 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 379 |
+
"model_id": "53f7baaae14641e6b95c1df660a00547",
|
| 380 |
+
"version_major": 2,
|
| 381 |
+
"version_minor": 0
|
| 382 |
+
},
|
| 383 |
+
"text/plain": [
|
| 384 |
+
"script.py: 0%| | 0.00/2.38k [00:00<?, ?B/s]"
|
| 385 |
+
]
|
| 386 |
+
},
|
| 387 |
+
"metadata": {},
|
| 388 |
+
"output_type": "display_data"
|
| 389 |
+
},
|
| 390 |
{
|
| 391 |
"name": "stdout",
|
| 392 |
"output_type": "stream",
|
| 393 |
"text": [
|
| 394 |
+
"/Users/jack/dev/S23DR/2025/empty_submission/my_cool_submission_2025/my_cool_submission_2025\n"
|
| 395 |
]
|
| 396 |
}
|
| 397 |
],
|
|
|
|
| 445 |
},
|
| 446 |
{
|
| 447 |
"cell_type": "code",
|
| 448 |
+
"execution_count": 10,
|
| 449 |
"id": "NfxHRGClBYQE",
|
| 450 |
"metadata": {
|
| 451 |
"colab": {
|
|
|
|
| 459 |
"name": "stdout",
|
| 460 |
"output_type": "stream",
|
| 461 |
"text": [
|
| 462 |
+
"/Users/jack/dev/S23DR/2025/empty_submission/my_cool_submission_2025/my_cool_submission_2025\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
]
|
| 464 |
}
|
| 465 |
],
|
|
|
|
| 515 |
},
|
| 516 |
{
|
| 517 |
"cell_type": "code",
|
| 518 |
+
"execution_count": 11,
|
| 519 |
"id": "4Y0eTe7M_vIJ",
|
| 520 |
"metadata": {
|
| 521 |
"colab": {
|
|
|
|
| 529 |
"name": "stdout",
|
| 530 |
"output_type": "stream",
|
| 531 |
"text": [
|
| 532 |
+
"[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/6048b3304a327a3727d860fc44174e96f19d4caa', commit_message='Upload folder using huggingface_hub', commit_description='', oid='6048b3304a327a3727d860fc44174e96f19d4caa', pr_url=None, repo_url=RepoUrl('https://huggingface.co/jacklangerman/my_cool_submission_2025', endpoint='https://huggingface.co', repo_type='model', repo_id='jacklangerman/my_cool_submission_2025'), pr_revision=None, pr_num=None)]\n"
|
| 533 |
]
|
| 534 |
}
|
| 535 |
],
|
|
|
|
| 557 |
},
|
| 558 |
{
|
| 559 |
"cell_type": "code",
|
| 560 |
+
"execution_count": 12,
|
| 561 |
"id": "Rf59SEZ6Cp4U",
|
| 562 |
"metadata": {
|
| 563 |
"colab": {
|
|
|
|
| 592 |
"<IPython.core.display.Markdown object>"
|
| 593 |
]
|
| 594 |
},
|
| 595 |
+
"execution_count": 12,
|
| 596 |
"metadata": {},
|
| 597 |
"output_type": "execute_result"
|
| 598 |
}
|
script.py
CHANGED
|
@@ -36,7 +36,7 @@ if __name__ == "__main__":
|
|
| 36 |
param_path = Path('params.json')
|
| 37 |
print(param_path)
|
| 38 |
with param_path.open() as f:
|
| 39 |
-
params = json.load(
|
| 40 |
print(params)
|
| 41 |
|
| 42 |
dataset = load_dataset("usm3d/hoho25k_test_x", trust_remote_code=True, use_auth_token=params['token'])
|
|
|
|
| 36 |
param_path = Path('params.json')
|
| 37 |
print(param_path)
|
| 38 |
with param_path.open() as f:
|
| 39 |
+
params = json.load(f)
|
| 40 |
print(params)
|
| 41 |
|
| 42 |
dataset = load_dataset("usm3d/hoho25k_test_x", trust_remote_code=True, use_auth_token=params['token'])
|