Skip to content

Commit 4d7442b

Browse files
committed
Reset a few files back to original state
1 parent a1996dd commit 4d7442b

File tree

4 files changed

+12
-39
lines changed

4 files changed

+12
-39
lines changed

.vscode/launch.json

+7-34
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
"request": "launch",
4545
"program": "nerfstudio/scripts/train.py",
4646
"console": "integratedTerminal",
47-
"args": [
48-
"instant_ngp"
49-
]
47+
"args": ["instant_ngp"]
5048
},
5149
{
5250
"name": "Python: train ngp nerfstudio",
@@ -93,9 +91,7 @@
9391
"request": "launch",
9492
"program": "nerfstudio/scripts/train.py",
9593
"console": "integratedTerminal",
96-
"args": [
97-
"semantic_nerf"
98-
]
94+
"args": ["semantic_nerf"]
9995
},
10096
{
10197
"name": "Python: NeuS on Replica",
@@ -104,9 +100,7 @@
104100
"program": "nerfstudio/scripts/train.py",
105101
"console": "integratedTerminal",
106102
"justMyCode": false,
107-
"env": {
108-
"CUDA_VISIBLE_DEVICES": "0"
109-
},
103+
"env": { "CUDA_VISIBLE_DEVICES": "0" },
110104
"args": [
111105
"neus",
112106
"--pipeline.model.sdf-field.inside-outside=True",
@@ -125,9 +119,7 @@
125119
"program": "nerfstudio/scripts/train.py",
126120
"console": "integratedTerminal",
127121
"justMyCode": false,
128-
"env": {
129-
"CUDA_VISIBLE_DEVICES": "0"
130-
},
122+
"env": { "CUDA_VISIBLE_DEVICES": "0" },
131123
"args": [
132124
"neus-facto",
133125
"--pipeline.model.sdf-field.inside-outside=True",
@@ -146,9 +138,7 @@
146138
"program": "nerfstudio/scripts/train.py",
147139
"console": "integratedTerminal",
148140
"justMyCode": false,
149-
"env": {
150-
"CUDA_VISIBLE_DEVICES": "0"
151-
},
141+
"env": { "CUDA_VISIBLE_DEVICES": "0" },
152142
"args": [
153143
"neus-facto",
154144
"--pipeline.model.sdf-field.inside-outside=False",
@@ -158,23 +148,6 @@
158148
"--include_mono_prior=False",
159149
"--auto-orient=True"
160150
]
161-
},
162-
{
163-
"name": "Python: process metashape",
164-
"type": "python",
165-
"request": "launch",
166-
"program": "nerfstudio/scripts/process_data.py",
167-
"args": [
168-
"metashape",
169-
"--data",
170-
"data/eyefultower/apartment/images-jpeg-2k",
171-
"--xml",
172-
"data/eyefultower/apartment/cameras.xml",
173-
"--output-dir",
174-
"processed3",
175-
],
176-
"console": "integratedTerminal",
177-
"justMyCode": false,
178-
},
151+
}
179152
]
180-
}
153+
}

nerfstudio/process_data/metashape_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import json
1818
import xml.etree.ElementTree as ET
1919
from pathlib import Path
20-
from typing import Dict, List, Optional
20+
from typing import Dict, List
2121

2222
import numpy as np
2323

nerfstudio/process_data/process_data_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ def list_images(data: Path) -> List[Path]:
5757
"""Lists all supported images in a directory
5858
5959
Args:
60-
data: Path to the directory of images. Nested folders are searched as well.
60+
data: Path to the directory of images.
6161
Returns:
6262
Paths to images contained in the directory
6363
"""
6464
allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS
65-
image_paths = sorted([p for p in data.glob("**/[!.]*") if p.suffix.lower() in allowed_exts])
65+
image_paths = sorted([p for p in data.glob("[!.]*") if p.suffix.lower() in allowed_exts])
6666
return image_paths
6767

6868

nerfstudio/scripts/process_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
import zipfile
2121
from dataclasses import dataclass
2222
from pathlib import Path
23-
from typing import Optional, Union
23+
from typing import Union
2424

2525
import numpy as np
2626
import tyro
2727
from typing_extensions import Annotated
2828

2929
from nerfstudio.process_data import (
3030
metashape_utils,
31-
odm_utils,
3231
polycam_utils,
3332
process_data_utils,
3433
realitycapture_utils,
3534
record3d_utils,
35+
odm_utils,
3636
)
3737
from nerfstudio.process_data.colmap_converter_to_nerfstudio_dataset import BaseConverterToNerfstudioDataset
3838
from nerfstudio.process_data.images_to_nerfstudio_dataset import ImagesToNerfstudioDataset

0 commit comments

Comments
 (0)