jacklangerman commited on
Commit
c66a8e6
·
verified ·
1 Parent(s): 447d957

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +12 -2
  2. example_notebook.ipynb +4 -60
  3. script.py +7 -2
README.md CHANGED
@@ -1,4 +1,14 @@
1
- # My Cool Submission 2025
2
 
3
- This repo contains a submission to the [S23DR Challenge](https://huggingface.co/spaces/usm3d/S23DR) (part of the [USM3D](https://usm3d.github.io/) workshop at CVPR2025). It was prepared by [jacklangerman](https://huggingface.co/jacklangerman).
 
 
 
 
 
 
 
 
 
 
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
@@ -250,7 +250,7 @@
250
  {
251
  "data": {
252
  "application/vnd.jupyter.widget-view+json": {
253
- "model_id": "0b7bea2933d74220bab455bb971809bc",
254
  "version_major": 2,
255
  "version_minor": 0
256
  },
@@ -261,34 +261,6 @@
261
  "metadata": {},
262
  "output_type": "display_data"
263
  },
264
- {
265
- "data": {
266
- "application/vnd.jupyter.widget-view+json": {
267
- "model_id": "8dffbd36a87d42d2bdf8389614e9eeed",
268
- "version_major": 2,
269
- "version_minor": 0
270
- },
271
- "text/plain": [
272
- "script.py: 0%| | 0.00/2.19k [00:00<?, ?B/s]"
273
- ]
274
- },
275
- "metadata": {},
276
- "output_type": "display_data"
277
- },
278
- {
279
- "data": {
280
- "application/vnd.jupyter.widget-view+json": {
281
- "model_id": "927960c0868b4bcca687343a32651920",
282
- "version_major": 2,
283
- "version_minor": 0
284
- },
285
- "text/plain": [
286
- "example_notebook.ipynb: 0%| | 0.00/146k [00:00<?, ?B/s]"
287
- ]
288
- },
289
- "metadata": {},
290
- "output_type": "display_data"
291
- },
292
  {
293
  "name": "stdout",
294
  "output_type": "stream",
@@ -310,13 +282,13 @@
310
  "name": "stdout",
311
  "output_type": "stream",
312
  "text": [
313
- "[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/6988e55d69119c4bad14db38038d4c8e1bba2ef2', commit_message='Upload folder using huggingface_hub', commit_description='', oid='6988e55d69119c4bad14db38038d4c8e1bba2ef2', 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"
314
  ]
315
  },
316
  {
317
  "data": {
318
  "application/vnd.jupyter.widget-view+json": {
319
- "model_id": "a82220e4ee154b8cae653ecb7fa33b96",
320
  "version_major": 2,
321
  "version_minor": 0
322
  },
@@ -327,34 +299,6 @@
327
  "metadata": {},
328
  "output_type": "display_data"
329
  },
330
- {
331
- "data": {
332
- "application/vnd.jupyter.widget-view+json": {
333
- "model_id": "de35d2443a384224806a217628f01dd6",
334
- "version_major": 2,
335
- "version_minor": 0
336
- },
337
- "text/plain": [
338
- "example_notebook.ipynb: 0%| | 0.00/146k [00:00<?, ?B/s]"
339
- ]
340
- },
341
- "metadata": {},
342
- "output_type": "display_data"
343
- },
344
- {
345
- "data": {
346
- "application/vnd.jupyter.widget-view+json": {
347
- "model_id": "47ef820bf45e4f01af651b70ab3fcda6",
348
- "version_major": 2,
349
- "version_minor": 0
350
- },
351
- "text/plain": [
352
- "script.py: 0%| | 0.00/2.19k [00:00<?, ?B/s]"
353
- ]
354
- },
355
- "metadata": {},
356
- "output_type": "display_data"
357
- },
358
  {
359
  "name": "stdout",
360
  "output_type": "stream",
@@ -505,7 +449,7 @@
505
  "name": "stdout",
506
  "output_type": "stream",
507
  "text": [
508
- "[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/a18b2d906e8e289479ee2875ed1410d3a778135c', commit_message='Upload folder using huggingface_hub', commit_description='', oid='a18b2d906e8e289479ee2875ed1410d3a778135c', 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"
509
  ]
510
  }
511
  ],
 
250
  {
251
  "data": {
252
  "application/vnd.jupyter.widget-view+json": {
253
+ "model_id": "67b9ae6f21eb44069613ea95954a2b8c",
254
  "version_major": 2,
255
  "version_minor": 0
256
  },
 
261
  "metadata": {},
262
  "output_type": "display_data"
263
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
  {
265
  "name": "stdout",
266
  "output_type": "stream",
 
282
  "name": "stdout",
283
  "output_type": "stream",
284
  "text": [
285
+ "[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/059581858b4c27783ab5104643f654bed60ace70', commit_message='Upload folder using huggingface_hub', commit_description='', oid='059581858b4c27783ab5104643f654bed60ace70', 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"
286
  ]
287
  },
288
  {
289
  "data": {
290
  "application/vnd.jupyter.widget-view+json": {
291
+ "model_id": "79c2a30a825a4cca9f974c47a01f82ae",
292
  "version_major": 2,
293
  "version_minor": 0
294
  },
 
299
  "metadata": {},
300
  "output_type": "display_data"
301
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
  {
303
  "name": "stdout",
304
  "output_type": "stream",
 
449
  "name": "stdout",
450
  "output_type": "stream",
451
  "text": [
452
+ "[CommitInfo(commit_url='https://huggingface.co/jacklangerman/my_cool_submission_2025/commit/92c06f05f471e393440c232978e8c6b7036bc2c4', commit_message='Upload folder using huggingface_hub', commit_description='', oid='92c06f05f471e393440c232978e8c6b7036bc2c4', 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"
453
  ]
454
  }
455
  ],
script.py CHANGED
@@ -30,11 +30,16 @@ class Sample(Dict):
30
  # return str({k: v.shape if hasattr(v, 'shape') else [type(v[0])] if isinstance(v, list) else type(v) for k,v in self.items()})
31
  return str({k: self.pick_repr_data(v) for k,v in self.items()})
32
 
33
-
34
  if __name__ == "__main__":
35
  print ("------------ Loading dataset------------ ")
36
- dataset = load_dataset("usm3d/hoho25k_test_x", trust_remote_code=True)
 
 
 
 
37
 
 
38
 
39
  print('------------ Now you can do your solution ---------------')
40
  solution = []
 
30
  # return str({k: v.shape if hasattr(v, 'shape') else [type(v[0])] if isinstance(v, list) else type(v) for k,v in self.items()})
31
  return str({k: self.pick_repr_data(v) for k,v in self.items()})
32
 
33
+ import json
34
  if __name__ == "__main__":
35
  print ("------------ Loading dataset------------ ")
36
+ param_path = Path('params.json')
37
+ print(param_path)
38
+ with param_path.open() as f:
39
+ params = json.load(param_path)
40
+ print(params)
41
 
42
+ dataset = load_dataset("usm3d/hoho25k_test_x", trust_remote_code=True, use_auth_token=params['token'])
43
 
44
  print('------------ Now you can do your solution ---------------')
45
  solution = []