mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
Fix a few linting warnings
Summary: Fix a few linting warnings Reviewed By: nikhilaravi Differential Revision: D20720810 fbshipit-source-id: c5b6a25fdd7971cc8743b54bbe162464a874071d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4f8a2f1979
commit
8219a52ccc
@@ -498,10 +498,13 @@ class TestMeshObjIO(TestCaseMixin, unittest.TestCase):
|
||||
# Note, the reference texture atlas generated using SoftRas load_obj function
|
||||
# is too large to check in to the repo. Download the file to run the test locally.
|
||||
if not os.path.exists(expected_atlas_fname):
|
||||
url = "https://dl.fbaipublicfiles.com/pytorch3d/data/tests/cow_texture_atlas_softras.pt"
|
||||
url = (
|
||||
"https://dl.fbaipublicfiles.com/pytorch3d/data/"
|
||||
"tests/cow_texture_atlas_softras.pt"
|
||||
)
|
||||
msg = (
|
||||
"cow_texture_atlas_softras.pt not found, download from %s, save it at the path %s, and rerun"
|
||||
% (url, expected_atlas_fname)
|
||||
"cow_texture_atlas_softras.pt not found, download from %s, "
|
||||
"save it at the path %s, and rerun" % (url, expected_atlas_fname)
|
||||
)
|
||||
warnings.warn(msg)
|
||||
return True
|
||||
|
||||
@@ -80,7 +80,10 @@ class TestRenderPoints(TestCaseMixin, unittest.TestCase):
|
||||
# Note, this file is too large to check in to the repo.
|
||||
# Download the file to run the test locally.
|
||||
if not path.exists(pointcloud_filename):
|
||||
url = "https://dl.fbaipublicfiles.com/pytorch3d/data/PittsburghBridge/pointcloud.npz"
|
||||
url = (
|
||||
"https://dl.fbaipublicfiles.com/pytorch3d/data/"
|
||||
"PittsburghBridge/pointcloud.npz"
|
||||
)
|
||||
msg = (
|
||||
"pointcloud.npz not found, download from %s, save it at the path %s, and rerun"
|
||||
% (url, pointcloud_filename)
|
||||
|
||||
Reference in New Issue
Block a user