You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed pytorch3d on Windows with conda enviroment.
But when I use python3 -m unittest discover -v -s tests -t . for test ,I meet this error:
test_get_item (tests.test_volumes.TestVolumes) ... ok
test_locator_init (tests.test_volumes.TestVolumes) ... ok
test_to (tests.test_volumes.TestVolumes)
Test the moving of the volumes from/to gpu and cpu ... D:\code\other\pytorch3d\tests\common_testing.py:85: UserWarning:
TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
ok
======================================================================
ERROR: test_no_import_cycles (tests.implicitron.test_build.TestBuild) (name='pytorch3d.common\\compat')
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\code\other\pytorch3d\tests\implicitron\test_build.py", line 51, in test_no_import_cycles
importlib.import_module(module)
File "E:\miniconda\envs\foundationpose\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pytorch3d.common\\compat'
======================================================================
ERROR: test_no_import_cycles (tests.implicitron.test_build.TestBuild) (name='pytorch3d.common\\datatypes')
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\code\other\pytorch3d\tests\implicitron\test_build.py", line 51, in test_no_import_cycles
importlib.import_module(module)
File "E:\miniconda\envs\foundationpose\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pytorch3d.common\\datatypes'
======================================================================
ERROR: test_no_import_cycles (tests.implicitron.test_build.TestBuild) (name='pytorch3d.common\\linear_with_repeat')
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\code\other\pytorch3d\tests\implicitron\test_build.py", line 51, in test_no_import_cycles
importlib.import_module(module)
File "E:\miniconda\envs\foundationpose\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pytorch3d.common\\linear_with_repeat'
======================================================================
ERROR: test_no_import_cycles (tests.implicitron.test_build.TestBuild) (name='pytorch3d.common\\workaround\\symeig3x3')
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\code\other\pytorch3d\tests\implicitron\test_build.py", line 51, in test_no_import_cycles
importlib.import_module(module)
File "E:\miniconda\envs\foundationpose\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pytorch3d.common\\workaround\\symeig3x3'
======================================================================
ERROR: test_no_import_cycles (tests.implicitron.test_build.TestBuild) (name='pytorch3d.common\\workaround\\utils')
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\code\other\pytorch3d\tests\implicitron\test_build.py", line 51, in test_no_import_cycles
importlib.import_module(module)
File "E:\miniconda\envs\foundationpose\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pytorch3d.common\\workaround\\utils'
...
Base Environment and Installtion Proccess:
Base Environment:
Windows 11
Visual Studio 2019 Developer Command Prompt v16.11.32
Not all the tests are currently passing, even on a perfect install. I suspect your install is fine.
A small number, less than 6, are known to be numerically unstable.
The test_no_import_cycles cases don't pass and this is known to be a test problem not a library problem. A partial cause is a change in torchvision a while back which I do not understand. In your case, you are observing that they have a more fundamental problem on windows: in this line and this line the "/" should be replaced by os.sep. If these failures are a problem for you, feel free to send a PR for that change, or to send a PR commenting out both of those test_build functions. I don't think fixing the separator will actually fully fix the test.
🐛 Bugs / Unexpected behaviors
I installed pytorch3d on Windows with conda enviroment.
But when I use
python3 -m unittest discover -v -s tests -t .
for test ,I meet this error:Base Environment and Installtion Proccess:
Base Environment:
Installtion Proccess:
Full Conda Environment
The text was updated successfully, but these errors were encountered: