Datasets:
Use the shared FutureCAD environment for label reading
Browse files- README.md +10 -8
- environment.yml +0 -7
README.md
CHANGED
|
@@ -52,7 +52,7 @@ share 2,039, train/test 2,032, validation/test 272.
|
|
| 52 |
## Load
|
| 53 |
|
| 54 |
```bash
|
| 55 |
-
pip install
|
| 56 |
```
|
| 57 |
|
| 58 |
```python
|
|
@@ -82,10 +82,11 @@ are counted once, using OCC's `IsSame` identity comparison.
|
|
| 82 |
|
| 83 |
## Download STEP and label files
|
| 84 |
|
| 85 |
-
Download
|
| 86 |
|
| 87 |
```bash
|
| 88 |
-
|
|
|
|
| 89 |
```
|
| 90 |
|
| 91 |
Use `--split test` for one split, `--id <state-id>` for one state, or
|
|
@@ -104,15 +105,17 @@ contains the same strings as the Parquet row's `queries`.
|
|
| 104 |
|
| 105 |
## Read labeled geometry
|
| 106 |
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
```bash
|
| 110 |
-
conda
|
| 111 |
-
conda activate brepground-data
|
| 112 |
```
|
| 113 |
|
| 114 |
```python
|
| 115 |
-
from
|
| 116 |
|
| 117 |
sample = read_step_labels(
|
| 118 |
"datasets/grounding/steps/00133967_chamfer_6.step",
|
|
@@ -136,7 +139,6 @@ assets/<split>-*.zip
|
|
| 136 |
splits.json
|
| 137 |
export_data.py
|
| 138 |
read_labels.py
|
| 139 |
-
environment.yml
|
| 140 |
requirements.txt
|
| 141 |
LABELS.md
|
| 142 |
README.md
|
|
|
|
| 52 |
## Load
|
| 53 |
|
| 54 |
```bash
|
| 55 |
+
pip install datasets
|
| 56 |
```
|
| 57 |
|
| 58 |
```python
|
|
|
|
| 82 |
|
| 83 |
## Download STEP and label files
|
| 84 |
|
| 85 |
+
Download the export script and restore the files:
|
| 86 |
|
| 87 |
```bash
|
| 88 |
+
hf download jhlee11/BRepGround export_data.py --repo-type dataset --local-dir downloads/brepground
|
| 89 |
+
python downloads/brepground/export_data.py --split all --output datasets/grounding
|
| 90 |
```
|
| 91 |
|
| 92 |
Use `--split test` for one split, `--id <state-id>` for one state, or
|
|
|
|
| 105 |
|
| 106 |
## Read labeled geometry
|
| 107 |
|
| 108 |
+
Label indexing uses **pythonocc-core 7.8.1.1 / OCCT 7.8.1**.
|
| 109 |
+
Follow the code repository's [environment setup](https://github.com/JohanStackk/FutureCAD/blob/main/docs/environment.md)
|
| 110 |
+
to create the shared `futurecad` environment. Run the following from the code
|
| 111 |
+
repository root after exporting the STEP and label files there:
|
| 112 |
|
| 113 |
```bash
|
| 114 |
+
conda activate futurecad
|
|
|
|
| 115 |
```
|
| 116 |
|
| 117 |
```python
|
| 118 |
+
from grounding_brep.step_labels import read_step_labels
|
| 119 |
|
| 120 |
sample = read_step_labels(
|
| 121 |
"datasets/grounding/steps/00133967_chamfer_6.step",
|
|
|
|
| 139 |
splits.json
|
| 140 |
export_data.py
|
| 141 |
read_labels.py
|
|
|
|
| 142 |
requirements.txt
|
| 143 |
LABELS.md
|
| 144 |
README.md
|
environment.yml
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
name: brepground-data
|
| 2 |
-
channels:
|
| 3 |
-
- conda-forge
|
| 4 |
-
dependencies:
|
| 5 |
-
- python=3.10
|
| 6 |
-
- pythonocc-core=7.8.1.1
|
| 7 |
-
- occt=7.8.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|