mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 06:10:34 +08:00
Optional ground-truth depth maps in visualiser
Summary: The code does not crash if depth map/mask are not given. Reviewed By: bottler Differential Revision: D45082985 fbshipit-source-id: 3610d8beb4ac897fbbe52f56a6dd012a6365b89b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1af6bf4768
commit
0e3138eca8
@@ -26,6 +26,8 @@ from tests.common_testing import interactive_testing_requested
|
||||
|
||||
from .common_resources import get_skateboard_data
|
||||
|
||||
VISDOM_PORT = int(os.environ.get("VISDOM_PORT", 8097))
|
||||
|
||||
|
||||
class TestDatasetVisualize(unittest.TestCase):
|
||||
def setUp(self):
|
||||
@@ -77,7 +79,7 @@ class TestDatasetVisualize(unittest.TestCase):
|
||||
for k, dataset in self.datasets.items()
|
||||
}
|
||||
)
|
||||
self.visdom = Visdom()
|
||||
self.visdom = Visdom(port=VISDOM_PORT)
|
||||
if not self.visdom.check_connection():
|
||||
print("Visdom server not running! Disabling visdom visualizations.")
|
||||
self.visdom = None
|
||||
|
||||
Reference in New Issue
Block a user