Upload README.md
Browse files
README.md
CHANGED
|
@@ -80,6 +80,12 @@ homepage: https://vlar-group.github.io/PhysInOne.html
|
|
| 80 |
margin-bottom: 0.18em;
|
| 81 |
line-height: 1.2;
|
| 82 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</style>
|
| 84 |
|
| 85 |
<h1 align="center" style="font-size: 42px;">PhysInOne: Visual Physics Learning and Reasoning in One Suite</h1>
|
|
@@ -146,15 +152,43 @@ homepage: https://vlar-group.github.io/PhysInOne.html
|
|
| 146 |
|
| 147 |
<div class="physinone-card" style="display: flex; align-items: flex-start; gap: 24px;">
|
| 148 |
|
| 149 |
-
<aside style="min-width:
|
| 150 |
<strong>๐งญ Navigation</strong><br><br>
|
|
|
|
| 151 |
<a href="#summary">๐ Summary</a><br>
|
| 152 |
<a href="#release-timetable">๐ Release Timetable</a><br>
|
| 153 |
<a href="#dataset-structure">๐ฆ Dataset Structure</a><br>
|
| 154 |
<a href="#data-splits">๐ Data Splits</a><br>
|
|
|
|
| 155 |
<a href="#data-fields">๐งฉ Data Fields</a><br>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
<a href="#annotation-details">๐ Annotation Details</a><br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
<a href="#how-to-download">๐ฅ How to Download</a><br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
<a href="#license">๐ License</a><br>
|
| 159 |
<a href="#citation">๐ Citation</a><br>
|
| 160 |
<a href="#contact">๐ฎ Contact</a><br>
|
|
@@ -241,6 +275,8 @@ This design guarantees that training, validation, and test sets are fully separa
|
|
| 241 |
|
| 242 |
## ๐งฉ Data Fields
|
| 243 |
|
|
|
|
|
|
|
| 244 |
### Physical Phenomenon and Abbreviations
|
| 245 |
|
| 246 |
<details>
|
|
@@ -336,10 +372,14 @@ This naming convention allows users to quickly parse scene metadata and link it
|
|
| 336 |
|
| 337 |
PhysInOne provides synchronized visual and physical annotations for each dynamic 3D scene.
|
| 338 |
|
|
|
|
|
|
|
| 339 |
### Depth
|
| 340 |
|
| 341 |
Depth maps are provided in `.npz` format and are expressed in meters.
|
| 342 |
|
|
|
|
|
|
|
| 343 |
### Segmentation
|
| 344 |
|
| 345 |
Segmentation masks encode background, static foreground objects, and dynamic foreground objects.
|
|
@@ -352,14 +392,20 @@ Expected encoding:
|
|
| 352 |
| `1-127` | Static foreground objects |
|
| 353 |
| `128-255` | Dynamic foreground objects |
|
| 354 |
|
|
|
|
|
|
|
| 355 |
### Captions
|
| 356 |
|
| 357 |
Each scene includes a `caption.txt` file containing an English paragraph that describes the visual elements and the physical activity.
|
| 358 |
|
|
|
|
|
|
|
| 359 |
### Trajectories
|
| 360 |
|
| 361 |
TODO
|
| 362 |
|
|
|
|
|
|
|
| 363 |
### Cameras
|
| 364 |
|
| 365 |
Each scene includes multiple camera viewpoints to support 3D perception, reconstruction, and physics-based visual reasoning tasks.
|
|
@@ -380,6 +426,8 @@ Each scene includes multiple camera viewpoints to support 3D perception, reconst
|
|
| 380 |
- The dynamic camera moves along a path randomly sampled on a hemisphere surrounding the center of the main objects, providing diverse viewpoints.
|
| 381 |
- JSON frame indices correspond directly to video frame indices.
|
| 382 |
|
|
|
|
|
|
|
| 383 |
### Point Clouds
|
| 384 |
|
| 385 |
Each scene should include `points.ply`.
|
|
@@ -402,7 +450,9 @@ The `filter_cases.py` script supports selection by:
|
|
| 402 |
- Physical phenomenon abbreviation: `MovingHitsFixed`, `FrictionStop`, `LiquidTension`, ..., `GranularFall`
|
| 403 |
- Number of cases: globally sample `num` cases after filtering
|
| 404 |
|
| 405 |
-
|
|
|
|
|
|
|
| 406 |
|
| 407 |
Please download the `assets` folder, which contains:
|
| 408 |
|
|
@@ -415,15 +465,21 @@ scripts/
|
|
| 415 |
download.py
|
| 416 |
```
|
| 417 |
|
| 418 |
-
|
|
|
|
|
|
|
| 419 |
|
| 420 |
```bash
|
| 421 |
pip install huggingface_hub tqdm
|
| 422 |
```
|
| 423 |
|
| 424 |
-
|
|
|
|
|
|
|
| 425 |
|
| 426 |
-
|
|
|
|
|
|
|
| 427 |
|
| 428 |
```bash
|
| 429 |
python scripts/filter_cases.py \
|
|
@@ -431,7 +487,9 @@ python scripts/filter_cases.py \
|
|
| 431 |
--output selected_cases.json
|
| 432 |
```
|
| 433 |
|
| 434 |
-
|
|
|
|
|
|
|
| 435 |
|
| 436 |
```bash
|
| 437 |
python scripts/filter_cases.py \
|
|
@@ -440,7 +498,9 @@ python scripts/filter_cases.py \
|
|
| 440 |
--output selected_cases.json
|
| 441 |
```
|
| 442 |
|
| 443 |
-
|
|
|
|
|
|
|
| 444 |
|
| 445 |
By default, phenomenon matching uses `contains` mode. For example, the following command selects all double-physics cases that contain `FrictionStop`:
|
| 446 |
|
|
@@ -464,7 +524,9 @@ python scripts/filter_cases.py \
|
|
| 464 |
--output selected_cases.json
|
| 465 |
```
|
| 466 |
|
| 467 |
-
|
|
|
|
|
|
|
| 468 |
|
| 469 |
`--num` is the global number of cases sampled after filtering. The default random seed is `42`.
|
| 470 |
|
|
@@ -478,7 +540,9 @@ python scripts/filter_cases.py \
|
|
| 478 |
--output selected_cases.json
|
| 479 |
```
|
| 480 |
|
| 481 |
-
|
|
|
|
|
|
|
| 482 |
|
| 483 |
Each selected case is downloaded as a zip file from the corresponding Hugging Face shard repository.
|
| 484 |
|
|
|
|
| 80 |
margin-bottom: 0.18em;
|
| 81 |
line-height: 1.2;
|
| 82 |
}
|
| 83 |
+
.physinone-card h4 {
|
| 84 |
+
font-size: 1.12em;
|
| 85 |
+
margin-top: 0.45em;
|
| 86 |
+
margin-bottom: 0.12em;
|
| 87 |
+
line-height: 1.18;
|
| 88 |
+
}
|
| 89 |
</style>
|
| 90 |
|
| 91 |
<h1 align="center" style="font-size: 42px;">PhysInOne: Visual Physics Learning and Reasoning in One Suite</h1>
|
|
|
|
| 152 |
|
| 153 |
<div class="physinone-card" style="display: flex; align-items: flex-start; gap: 24px;">
|
| 154 |
|
| 155 |
+
<aside style="min-width: 250px; max-width: 280px; position: sticky; top: 16px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; font-size: 13.5px; line-height: 1.55;">
|
| 156 |
<strong>๐งญ Navigation</strong><br><br>
|
| 157 |
+
|
| 158 |
<a href="#summary">๐ Summary</a><br>
|
| 159 |
<a href="#release-timetable">๐ Release Timetable</a><br>
|
| 160 |
<a href="#dataset-structure">๐ฆ Dataset Structure</a><br>
|
| 161 |
<a href="#data-splits">๐ Data Splits</a><br>
|
| 162 |
+
|
| 163 |
<a href="#data-fields">๐งฉ Data Fields</a><br>
|
| 164 |
+
<span style="display: inline-block; margin-left: 14px; font-size: 12.5px;">
|
| 165 |
+
<a href="#physical-phenomena">Physical Phenomena</a>
|
| 166 |
+
</span><br>
|
| 167 |
+
|
| 168 |
<a href="#annotation-details">๐ Annotation Details</a><br>
|
| 169 |
+
<span style="display: inline-block; margin-left: 14px; font-size: 12.5px;">
|
| 170 |
+
<a href="#depth">Depth</a><br>
|
| 171 |
+
<a href="#segmentation">Segmentation</a><br>
|
| 172 |
+
<a href="#captions">Captions</a><br>
|
| 173 |
+
<a href="#trajectories">Trajectories</a><br>
|
| 174 |
+
<a href="#cameras">Cameras</a><br>
|
| 175 |
+
<a href="#point-clouds">Point Clouds</a>
|
| 176 |
+
</span><br>
|
| 177 |
+
|
| 178 |
<a href="#how-to-download">๐ฅ How to Download</a><br>
|
| 179 |
+
<span style="display: inline-block; margin-left: 14px; font-size: 12.5px;">
|
| 180 |
+
<a href="#download-scripts">1. Download Scripts</a><br>
|
| 181 |
+
<a href="#install-dependencies">2. Install Dependencies</a><br>
|
| 182 |
+
<a href="#filter-cases">3. Filter Cases</a><br>
|
| 183 |
+
<span style="display: inline-block; margin-left: 12px; font-size: 12px;">
|
| 184 |
+
<a href="#filter-by-split">3.1 Split</a><br>
|
| 185 |
+
<a href="#filter-by-split-and-activity">3.2 Split + Activity</a><br>
|
| 186 |
+
<a href="#filter-by-phenomenon">3.3 Phenomenon</a><br>
|
| 187 |
+
<a href="#random-sampling">3.4 Random Sampling</a>
|
| 188 |
+
</span><br>
|
| 189 |
+
<a href="#download-selected-cases">4. Download Cases</a>
|
| 190 |
+
</span><br>
|
| 191 |
+
|
| 192 |
<a href="#license">๐ License</a><br>
|
| 193 |
<a href="#citation">๐ Citation</a><br>
|
| 194 |
<a href="#contact">๐ฎ Contact</a><br>
|
|
|
|
| 275 |
|
| 276 |
## ๐งฉ Data Fields
|
| 277 |
|
| 278 |
+
<a id="physical-phenomena"></a>
|
| 279 |
+
|
| 280 |
### Physical Phenomenon and Abbreviations
|
| 281 |
|
| 282 |
<details>
|
|
|
|
| 372 |
|
| 373 |
PhysInOne provides synchronized visual and physical annotations for each dynamic 3D scene.
|
| 374 |
|
| 375 |
+
<a id="depth"></a>
|
| 376 |
+
|
| 377 |
### Depth
|
| 378 |
|
| 379 |
Depth maps are provided in `.npz` format and are expressed in meters.
|
| 380 |
|
| 381 |
+
<a id="segmentation"></a>
|
| 382 |
+
|
| 383 |
### Segmentation
|
| 384 |
|
| 385 |
Segmentation masks encode background, static foreground objects, and dynamic foreground objects.
|
|
|
|
| 392 |
| `1-127` | Static foreground objects |
|
| 393 |
| `128-255` | Dynamic foreground objects |
|
| 394 |
|
| 395 |
+
<a id="captions"></a>
|
| 396 |
+
|
| 397 |
### Captions
|
| 398 |
|
| 399 |
Each scene includes a `caption.txt` file containing an English paragraph that describes the visual elements and the physical activity.
|
| 400 |
|
| 401 |
+
<a id="trajectories"></a>
|
| 402 |
+
|
| 403 |
### Trajectories
|
| 404 |
|
| 405 |
TODO
|
| 406 |
|
| 407 |
+
<a id="cameras"></a>
|
| 408 |
+
|
| 409 |
### Cameras
|
| 410 |
|
| 411 |
Each scene includes multiple camera viewpoints to support 3D perception, reconstruction, and physics-based visual reasoning tasks.
|
|
|
|
| 426 |
- The dynamic camera moves along a path randomly sampled on a hemisphere surrounding the center of the main objects, providing diverse viewpoints.
|
| 427 |
- JSON frame indices correspond directly to video frame indices.
|
| 428 |
|
| 429 |
+
<a id="point-clouds"></a>
|
| 430 |
+
|
| 431 |
### Point Clouds
|
| 432 |
|
| 433 |
Each scene should include `points.ply`.
|
|
|
|
| 450 |
- Physical phenomenon abbreviation: `MovingHitsFixed`, `FrictionStop`, `LiquidTension`, ..., `GranularFall`
|
| 451 |
- Number of cases: globally sample `num` cases after filtering
|
| 452 |
|
| 453 |
+
<a id="download-scripts"></a>
|
| 454 |
+
|
| 455 |
+
### 1. Download Scripts
|
| 456 |
|
| 457 |
Please download the `assets` folder, which contains:
|
| 458 |
|
|
|
|
| 465 |
download.py
|
| 466 |
```
|
| 467 |
|
| 468 |
+
<a id="install-dependencies"></a>
|
| 469 |
+
|
| 470 |
+
### 2. Install Dependencies
|
| 471 |
|
| 472 |
```bash
|
| 473 |
pip install huggingface_hub tqdm
|
| 474 |
```
|
| 475 |
|
| 476 |
+
<a id="filter-cases"></a>
|
| 477 |
+
|
| 478 |
+
### 3. Filter Cases
|
| 479 |
|
| 480 |
+
<a id="filter-by-split"></a>
|
| 481 |
+
|
| 482 |
+
#### 3.1 Filter by split
|
| 483 |
|
| 484 |
```bash
|
| 485 |
python scripts/filter_cases.py \
|
|
|
|
| 487 |
--output selected_cases.json
|
| 488 |
```
|
| 489 |
|
| 490 |
+
<a id="filter-by-split-and-activity"></a>
|
| 491 |
+
|
| 492 |
+
#### 3.2 Filter by split and activity complexity
|
| 493 |
|
| 494 |
```bash
|
| 495 |
python scripts/filter_cases.py \
|
|
|
|
| 498 |
--output selected_cases.json
|
| 499 |
```
|
| 500 |
|
| 501 |
+
<a id="filter-by-phenomenon"></a>
|
| 502 |
+
|
| 503 |
+
#### 3.3 Filter by physical phenomenon abbreviation
|
| 504 |
|
| 505 |
By default, phenomenon matching uses `contains` mode. For example, the following command selects all double-physics cases that contain `FrictionStop`:
|
| 506 |
|
|
|
|
| 524 |
--output selected_cases.json
|
| 525 |
```
|
| 526 |
|
| 527 |
+
<a id="random-sampling"></a>
|
| 528 |
+
|
| 529 |
+
#### 3.4 Randomly sample a fixed number of cases
|
| 530 |
|
| 531 |
`--num` is the global number of cases sampled after filtering. The default random seed is `42`.
|
| 532 |
|
|
|
|
| 540 |
--output selected_cases.json
|
| 541 |
```
|
| 542 |
|
| 543 |
+
<a id="download-selected-cases"></a>
|
| 544 |
+
|
| 545 |
+
### 4. Download Selected Cases
|
| 546 |
|
| 547 |
Each selected case is downloaded as a zip file from the corresponding Hugging Face shard repository.
|
| 548 |
|