vLAR commited on
Commit
a4fbbd3
·
verified ·
1 Parent(s): 78ae2a1

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -225
README.md CHANGED
@@ -479,237 +479,13 @@ Each scene should include `points.ply`.
479
 
480
  The initial point cloud was obtained by back-projecting the pixels from each camera view in the first frame based on depth, followed by randomly sampling 100,000 points from the resulting data.
481
 
482
- </div>
483
-
484
- </div>
485
-
486
- <h2 id="how-to-download" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📥 How to Download</h2>
487
- <div style="margin-left: 24px;">
488
- <div style="margin-left: 24px;">
489
-
490
-
491
- PhysInOne is distributed across multiple Hugging Face dataset repositories because of its large scale. We provide two scripts for selecting and downloading cases:
492
-
493
- - `filter_cases.py`: parses the case-to-repository assignment file and exports selected cases to JSON.
494
- - `download.py`: downloads the selected case zip files from the corresponding Hugging Face shard repositories.
495
-
496
- The `filter_cases.py` script supports selection by:
497
-
498
- - Split: `train`, `val`, `test`
499
- - Activity complexity: `single`, `double`, `triple`
500
- - Physical phenomenon abbreviation: `MovingHitsFixed`, `FrictionStop`, `LiquidTension`, ..., `GranularFall`
501
- - Number of cases: globally sample `num` cases after filtering
502
-
503
- </div>
504
- <h3 id="download-scripts" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">1. Download Scripts</h3>
505
- <div style="margin-left: 24px;">
506
- <div style="margin-left: 24px;">
507
-
508
-
509
- Please download the `assets` folder, which contains:
510
-
511
- ```text
512
- metadata/
513
- repo_assignment.txt
514
- repo_map.json
515
- scripts/
516
- filter_cases.py
517
- download.py
518
- ```
519
-
520
-
521
- </div>
522
- <h3 id="install-dependencies" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">2. Install Dependencies</h3>
523
- <div style="margin-left: 24px;">
524
- <div style="margin-left: 24px;">
525
-
526
-
527
- ```bash
528
- pip install huggingface_hub tqdm
529
- ```
530
-
531
-
532
- </div>
533
- <h3 id="filter-cases" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">3. Filter Cases</h3>
534
- <div style="margin-left: 24px;">
535
- <div style="margin-left: 24px;">
536
-
537
-
538
- </div>
539
- <h4 id="filter-by-split" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.1 Filter by split</h4>
540
- <div style="margin-left: 48px;">
541
-
542
-
543
- ```bash
544
- python scripts/filter_cases.py \
545
- --split train \
546
- --output selected_cases.json
547
- ```
548
-
549
-
550
-
551
- </div>
552
- <h4 id="filter-by-split-and-activity" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.2 Filter by split and activity complexity</h4>
553
- <div style="margin-left: 48px;">
554
-
555
-
556
- ```bash
557
- python scripts/filter_cases.py \
558
- --split train \
559
- --activity_type double \
560
- --output selected_cases.json
561
- ```
562
-
563
-
564
-
565
- </div>
566
- <h4 id="filter-by-phenomenon" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.3 Filter by physical phenomenon abbreviation</h4>
567
- <div style="margin-left: 48px;">
568
-
569
-
570
- By default, phenomenon matching uses `contains` mode. For example, the following command selects all double-physics cases that contain `FrictionStop`:
571
-
572
- ```bash
573
- python scripts/filter_cases.py \
574
- --split train \
575
- --activity_type double \
576
- --phenomena FrictionStop \
577
- --match_mode contains \
578
- --output selected_cases.json
579
- ```
580
-
581
- For exact matching, use `--match_mode exact`. Order does not matter. For example, this command selects cases whose phenomenon set is exactly `{AccelConcaveSpin, AccelSurfaceSpin}`:
582
-
583
- ```bash
584
- python scripts/filter_cases.py \
585
- --split train \
586
- --activity_type double \
587
- --phenomena AccelConcaveSpin AccelSurfaceSpin \
588
- --match_mode exact \
589
- --output selected_cases.json
590
- ```
591
-
592
-
593
-
594
- </div>
595
- <h4 id="random-sampling" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.4 Randomly sample a fixed number of cases</h4>
596
- <div style="margin-left: 48px;">
597
-
598
-
599
- `--num` is the global number of cases sampled after filtering. The default random seed is `42`.
600
-
601
- ```bash
602
- python scripts/filter_cases.py \
603
- --split train \
604
- --activity_type double \
605
- --phenomena FrictionStop \
606
- --num 3000 \
607
- --seed 42 \
608
- --output selected_cases.json
609
- ```
610
-
611
-
612
-
613
-
614
- </div>
615
- <h3 id="download-selected-cases" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">4. Download Selected Cases</h3>
616
- <div style="margin-left: 24px;">
617
- <div style="margin-left: 24px;">
618
-
619
-
620
- Each selected case is downloaded as a zip file from the corresponding Hugging Face shard repository.
621
-
622
- ```bash
623
- python scripts/download.py \
624
- --selection selected_cases.json \
625
- --output_dir ./PhysInOne
626
- ```
627
-
628
- If the dataset repositories are gated or private, pass a Hugging Face token:
629
-
630
- ```bash
631
- python scripts/download.py \
632
- --selection selected_cases.json \
633
- --output_dir ./PhysInOne \
634
- --token YOUR_HF_TOKEN
635
- ```
636
-
637
- By default, downloaded zip files are saved into a flat output folder. To preserve shard/split/activity structure:
638
-
639
- ```bash
640
- python scripts/download.py \
641
- --selection selected_cases.json \
642
- --output_dir ./PhysInOne \
643
- --keep_shard_structure
644
- ```
645
-
646
- The preserved structure is:
647
-
648
- ```text
649
- PhysInOne/
650
- physinone_part1/
651
- Train/
652
- DoublePhysics/
653
- AccelConcaveSpin_AccelSurfaceSpin__bg070__K5ER39_trajectory.zip
654
- ```
655
-
656
-
657
-
658
-
659
- </div>
660
- </div>
661
- </div>
662
- </div>
663
- </div>
664
- </div>
665
-
666
- </div>
667
 
668
  <h2 id="license" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📜 License</h2>
669
- <div style="margin-left: 24px;">
670
-
671
-
672
- All 3D assets and materials included in PhysInOne have been sourced from publicly available platforms and verified to carry licenses compatible with non-commercial use. These include:
673
-
674
- - SketchFab: assets under various licenses, verified that AI-related usage is allowed.
675
- - Fab: assets under CC BY or Unreal Engine Standard License, explicitly permitting AI-related usage.
676
- - BlenderKit: distributed under Royalty-Free (RF) license.
677
- - ShareTextures: textures under CC0 license.
678
-
679
- In total, assets comply with licenses including CC BY-NC, CC BY-SA, CC BY-NC-SA, CC0, CC BY, and RF, ensuring all files can be legally used for building a non-commercial dataset. Users must adhere to the original licenses for any redistribution or derivative work.
680
-
681
- > ⚠️ Note: PhysInOne is intended for **non-commercial research and educational purposes**. For commercial use, users must verify the licensing terms of individual assets.
682
-
683
- </div>
684
 
685
  <h2 id="citation" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📚 Citation</h2>
686
- <div style="margin-left: 24px;">
687
-
688
-
689
- If you use PhysInOne in your research, please cite:
690
-
691
- ```bibtex
692
- @article{zhou2026physinone,
693
- title={PhysInOne: Visual Physics Learning and Reasoning in One Suite},
694
- author={Zhou, Siyuan and Wang, Hejun and Cheng, Hu and Li, Jinxi and Wang, Dongsheng and Jiang, Junwei and Jin, Yixiao and Huang, Jiayue and Mao, Shiwei and Liu, Shangjia and others},
695
- journal={arXiv preprint arXiv:2604.09415},
696
- year={2026}
697
- }
698
- ```
699
-
700
-
701
-
702
- </div>
703
 
704
  <h2 id="contact" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📮 Contact</h2>
705
- <div style="margin-left: 24px;">
706
-
707
-
708
- For questions about the dataset, please contact:
709
-
710
- - {siyuan.zhou, hejun.wang, hu123.cheng, jinxi.li}@connect.polyu.hk, bo.yang@polyu.edu.hk
711
-
712
- </div>
713
 
714
  </main>
715
  </div>
 
479
 
480
  The initial point cloud was obtained by back-projecting the pixels from each camera view in the first frame based on depth, followed by randomly sampling 100,000 points from the resulting data.
481
 
482
+ <h2 id="how-to-download" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📥 How to Download</h2><h3 id="download-scripts" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">1. Download Scripts</h3><h3 id="install-dependencies" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">2. Install Dependencies</h3><h3 id="filter-cases" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">3. Filter Cases</h3><h4 id="filter-by-split" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.1 Filter by split</h4><h4 id="filter-by-split-and-activity" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.2 Filter by split and activity complexity</h4><h4 id="filter-by-phenomenon" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.3 Filter by physical phenomenon abbreviation</h4><h4 id="random-sampling" style="font-size: 1.12em; margin-top: 0.55em; margin-bottom: 0.14em; line-height: 1.18; margin-left: 48px;">3.4 Randomly sample a fixed number of cases</h4><h3 id="download-selected-cases" style="font-size: 1.35em; margin-top: 0.75em; margin-bottom: 0.22em; line-height: 1.2; margin-left: 24px;">4. Download Selected Cases</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483
 
484
  <h2 id="license" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📜 License</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
 
486
  <h2 id="citation" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📚 Citation</h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
 
488
  <h2 id="contact" style="margin-left: 0; font-size: 1.9em; line-height: 1.22; margin-top: 1.2em; margin-bottom: 0.5em;">📮 Contact</h2>
 
 
 
 
 
 
 
 
489
 
490
  </main>
491
  </div>