Upload README.md
Browse files
README.md
CHANGED
|
@@ -479,13 +479,233 @@ 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 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>
|
|
|
|
| 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 |
+
<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>
|
| 552 |
+
<div style="margin-left: 48px;">
|
| 553 |
+
|
| 554 |
+
|
| 555 |
+
```bash
|
| 556 |
+
python scripts/filter_cases.py \
|
| 557 |
+
--split train \
|
| 558 |
+
--activity_type double \
|
| 559 |
+
--output selected_cases.json
|
| 560 |
+
```
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
<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>
|
| 565 |
+
<div style="margin-left: 48px;">
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
By default, phenomenon matching uses `contains` mode. For example, the following command selects all double-physics cases that contain `FrictionStop`:
|
| 569 |
+
|
| 570 |
+
```bash
|
| 571 |
+
python scripts/filter_cases.py \
|
| 572 |
+
--split train \
|
| 573 |
+
--activity_type double \
|
| 574 |
+
--phenomena FrictionStop \
|
| 575 |
+
--match_mode contains \
|
| 576 |
+
--output selected_cases.json
|
| 577 |
+
```
|
| 578 |
+
|
| 579 |
+
For exact matching, use `--match_mode exact`. Order does not matter. For example, this command selects cases whose phenomenon set is exactly `{AccelConcaveSpin, AccelSurfaceSpin}`:
|
| 580 |
+
|
| 581 |
+
```bash
|
| 582 |
+
python scripts/filter_cases.py \
|
| 583 |
+
--split train \
|
| 584 |
+
--activity_type double \
|
| 585 |
+
--phenomena AccelConcaveSpin AccelSurfaceSpin \
|
| 586 |
+
--match_mode exact \
|
| 587 |
+
--output selected_cases.json
|
| 588 |
+
```
|
| 589 |
+
|
| 590 |
+
|
| 591 |
+
|
| 592 |
+
<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>
|
| 593 |
+
<div style="margin-left: 48px;">
|
| 594 |
+
|
| 595 |
+
|
| 596 |
+
`--num` is the global number of cases sampled after filtering. The default random seed is `42`.
|
| 597 |
+
|
| 598 |
+
```bash
|
| 599 |
+
python scripts/filter_cases.py \
|
| 600 |
+
--split train \
|
| 601 |
+
--activity_type double \
|
| 602 |
+
--phenomena FrictionStop \
|
| 603 |
+
--num 3000 \
|
| 604 |
+
--seed 42 \
|
| 605 |
+
--output selected_cases.json
|
| 606 |
+
```
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
<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>
|
| 612 |
+
<div style="margin-left: 24px;">
|
| 613 |
+
<div style="margin-left: 24px;">
|
| 614 |
+
|
| 615 |
+
|
| 616 |
+
Each selected case is downloaded as a zip file from the corresponding Hugging Face shard repository.
|
| 617 |
+
|
| 618 |
+
```bash
|
| 619 |
+
python scripts/download.py \
|
| 620 |
+
--selection selected_cases.json \
|
| 621 |
+
--output_dir ./PhysInOne
|
| 622 |
+
```
|
| 623 |
+
|
| 624 |
+
If the dataset repositories are gated or private, pass a Hugging Face token:
|
| 625 |
+
|
| 626 |
+
```bash
|
| 627 |
+
python scripts/download.py \
|
| 628 |
+
--selection selected_cases.json \
|
| 629 |
+
--output_dir ./PhysInOne \
|
| 630 |
+
--token YOUR_HF_TOKEN
|
| 631 |
+
```
|
| 632 |
+
|
| 633 |
+
By default, downloaded zip files are saved into a flat output folder. To preserve shard/split/activity structure:
|
| 634 |
+
|
| 635 |
+
```bash
|
| 636 |
+
python scripts/download.py \
|
| 637 |
+
--selection selected_cases.json \
|
| 638 |
+
--output_dir ./PhysInOne \
|
| 639 |
+
--keep_shard_structure
|
| 640 |
+
```
|
| 641 |
+
|
| 642 |
+
The preserved structure is:
|
| 643 |
+
|
| 644 |
+
```text
|
| 645 |
+
PhysInOne/
|
| 646 |
+
physinone_part1/
|
| 647 |
+
Train/
|
| 648 |
+
DoublePhysics/
|
| 649 |
+
AccelConcaveSpin_AccelSurfaceSpin__bg070__K5ER39_trajectory.zip
|
| 650 |
+
```
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
</div>
|
| 656 |
+
</div>
|
| 657 |
+
</div>
|
| 658 |
+
</div>
|
| 659 |
+
</div>
|
| 660 |
+
</div>
|
| 661 |
+
|
| 662 |
+
</div>
|
| 663 |
|
| 664 |
<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>
|
| 665 |
+
<div style="margin-left: 24px;">
|
| 666 |
+
|
| 667 |
+
|
| 668 |
+
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:
|
| 669 |
+
|
| 670 |
+
- SketchFab: assets under various licenses, verified that AI-related usage is allowed.
|
| 671 |
+
- Fab: assets under CC BY or Unreal Engine Standard License, explicitly permitting AI-related usage.
|
| 672 |
+
- BlenderKit: distributed under Royalty-Free (RF) license.
|
| 673 |
+
- ShareTextures: textures under CC0 license.
|
| 674 |
+
|
| 675 |
+
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.
|
| 676 |
+
|
| 677 |
+
> ⚠️ Note: PhysInOne is intended for **non-commercial research and educational purposes**. For commercial use, users must verify the licensing terms of individual assets.
|
| 678 |
+
|
| 679 |
+
</div>
|
| 680 |
|
| 681 |
<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>
|
| 682 |
+
<div style="margin-left: 24px;">
|
| 683 |
+
|
| 684 |
+
|
| 685 |
+
If you use PhysInOne in your research, please cite:
|
| 686 |
+
|
| 687 |
+
```bibtex
|
| 688 |
+
@article{zhou2026physinone,
|
| 689 |
+
title={PhysInOne: Visual Physics Learning and Reasoning in One Suite},
|
| 690 |
+
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},
|
| 691 |
+
journal={arXiv preprint arXiv:2604.09415},
|
| 692 |
+
year={2026}
|
| 693 |
+
}
|
| 694 |
+
```
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
</div>
|
| 699 |
|
| 700 |
<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>
|
| 701 |
+
<div style="margin-left: 24px;">
|
| 702 |
+
|
| 703 |
+
|
| 704 |
+
For questions about the dataset, please contact:
|
| 705 |
+
|
| 706 |
+
- {siyuan.zhou, hejun.wang, hu123.cheng, jinxi.li}@connect.polyu.hk, bo.yang@polyu.edu.hk
|
| 707 |
+
|
| 708 |
+
</div>
|
| 709 |
|
| 710 |
</main>
|
| 711 |
</div>
|