PathManagerFactory

Summary: Allow access to manifold internally by default.

Reviewed By: davnov134

Differential Revision: D36760481

fbshipit-source-id: 2a16bd40e81ef526085ac1b3f4606b63c1841428
This commit is contained in:
Jeremy Reizenstein
2022-06-10 12:22:46 -07:00
committed by Facebook GitHub Bot
parent 1fb268dea6
commit 1d43251391
7 changed files with 65 additions and 52 deletions

View File

@@ -21,7 +21,9 @@ dataset_map_provider_JsonIndexDatasetMapProvider_args:
image_width: 800
image_height: 800
remove_empty_masks: true
path_manager: null
path_manager_factory_class_type: PathManagerFactory
path_manager_factory_PathManagerFactory_args:
silence_logs: true
data_loader_map_provider_SequenceDataLoaderMapProvider_args:
batch_size: 1
num_workers: 0

View File

@@ -11,7 +11,7 @@ from pytorch3d.implicitron import eval_demo
from tests.common_testing import interactive_testing_requested
from .common_resources import CO3D_MANIFOLD_PATH, get_path_manager
from .common_resources import CO3D_MANIFOLD_PATH
"""
This test runs a single sequence eval_demo, useful for debugging datasets.
@@ -25,8 +25,5 @@ class TestEvalDemo(unittest.TestCase):
return
os.environ["CO3D_DATASET_ROOT"] = CO3D_MANIFOLD_PATH
path_manager = get_path_manager(silence_logs=True)
eval_demo.evaluate_dbir_for_category(
"donut", single_sequence_id=0, path_manager=path_manager
)
eval_demo.evaluate_dbir_for_category("donut", single_sequence_id=0)