Skip to content

Commit

Permalink
Reset a few files back to original state
Browse files Browse the repository at this point in the history
  • Loading branch information
VasuAgrawal committed Dec 13, 2023
1 parent 1e761bc commit 76bae53
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 39 deletions.
41 changes: 7 additions & 34 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
"request": "launch",
"program": "nerfstudio/scripts/train.py",
"console": "integratedTerminal",
"args": [
"instant_ngp"
]
"args": ["instant_ngp"]
},
{
"name": "Python: train ngp nerfstudio",
Expand Down Expand Up @@ -93,9 +91,7 @@
"request": "launch",
"program": "nerfstudio/scripts/train.py",
"console": "integratedTerminal",
"args": [
"semantic_nerf"
]
"args": ["semantic_nerf"]
},
{
"name": "Python: NeuS on Replica",
Expand All @@ -104,9 +100,7 @@
"program": "nerfstudio/scripts/train.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"CUDA_VISIBLE_DEVICES": "0"
},
"env": { "CUDA_VISIBLE_DEVICES": "0" },
"args": [
"neus",
"--pipeline.model.sdf-field.inside-outside=True",
Expand All @@ -125,9 +119,7 @@
"program": "nerfstudio/scripts/train.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"CUDA_VISIBLE_DEVICES": "0"
},
"env": { "CUDA_VISIBLE_DEVICES": "0" },
"args": [
"neus-facto",
"--pipeline.model.sdf-field.inside-outside=True",
Expand All @@ -146,9 +138,7 @@
"program": "nerfstudio/scripts/train.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"CUDA_VISIBLE_DEVICES": "0"
},
"env": { "CUDA_VISIBLE_DEVICES": "0" },
"args": [
"neus-facto",
"--pipeline.model.sdf-field.inside-outside=False",
Expand All @@ -158,23 +148,6 @@
"--include_mono_prior=False",
"--auto-orient=True"
]
},
{
"name": "Python: process metashape",
"type": "python",
"request": "launch",
"program": "nerfstudio/scripts/process_data.py",
"args": [
"metashape",
"--data",
"data/eyefultower/apartment/images-jpeg-2k",
"--xml",
"data/eyefultower/apartment/cameras.xml",
"--output-dir",
"processed3",
],
"console": "integratedTerminal",
"justMyCode": false,
},
}
]
}
}
2 changes: 1 addition & 1 deletion nerfstudio/process_data/metashape_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json
import xml.etree.ElementTree as ET
from pathlib import Path
from typing import Dict, List, Optional
from typing import Dict, List

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions nerfstudio/process_data/process_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def list_images(data: Path) -> List[Path]:
"""Lists all supported images in a directory
Args:
data: Path to the directory of images. Nested folders are searched as well.
data: Path to the directory of images.
Returns:
Paths to images contained in the directory
"""
allowed_exts = [".jpg", ".jpeg", ".png", ".tif", ".tiff"] + ALLOWED_RAW_EXTS
image_paths = sorted([p for p in data.glob("**/[!.]*") if p.suffix.lower() in allowed_exts])
image_paths = sorted([p for p in data.glob("[!.]*") if p.suffix.lower() in allowed_exts])
return image_paths


Expand Down
4 changes: 2 additions & 2 deletions nerfstudio/scripts/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
import zipfile
from dataclasses import dataclass
from pathlib import Path
from typing import Optional, Union
from typing import Union

import numpy as np
import tyro
from typing_extensions import Annotated

from nerfstudio.process_data import (
metashape_utils,
odm_utils,
polycam_utils,
process_data_utils,
realitycapture_utils,
record3d_utils,
odm_utils,
)
from nerfstudio.process_data.colmap_converter_to_nerfstudio_dataset import BaseConverterToNerfstudioDataset
from nerfstudio.process_data.images_to_nerfstudio_dataset import ImagesToNerfstudioDataset
Expand Down

0 comments on commit 76bae53

Please sign in to comment.