Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset processing #4

Open
saqibnaziir opened this issue Jun 7, 2024 · 0 comments
Open

Dataset processing #4

saqibnaziir opened this issue Jun 7, 2024 · 0 comments

Comments

@saqibnaziir
Copy link

Hi, thanks for your work. I have downloaded the dataset and set up the environment with all the requirements but when I try to process the dataset using the following command I get the error. I don't know how to fix it. The download dataset I have is in (.npy) format and I guess we have to convert it into (.obj) format but I get the error:
1.
$python -m sharp shoot_dir dataset/SHARP2020/challenge1-track1 dataset/SHARP2020/challenge1-track1 --n-shapes 4
Traceback (most recent call last):
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/main.py", line 11, in
from . import utils
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/utils.py", line 11, in
from .trirender import UVTrianglesRenderer
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 35, in
class UVTrianglesRenderer:
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 112, in UVTrianglesRenderer
flip_y: bool = True,
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/base_meta_classes.py", line 145, in getitem
args = cls._get_item(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 74, in _get_item
shape, dtype = cls._get_from_tuple(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 115, in _get_from_tuple
shape = cls._get_shape(item[0])
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 129, in _get_shape
f"Unexpected argument '{dtype_candidate}', expecting"
nptyping.error.InvalidArgumentsError: Unexpected argument '(typing.Any, 2)', expecting Shape[] or Literal[] or typing.Any.

$python data_processing/convert_to_obj.py

Finding Paths to convert (from .npz to .obj files).
Start converting.
0%| | 0/2 [00:00<?, ?it/s]Traceback (most recent call last):
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/main.py", line 11, in
from . import utils
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/utils.py", line 11, in
from .trirender import UVTrianglesRenderer
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 35, in
class UVTrianglesRenderer:
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 112, in UVTrianglesRenderer
flip_y: bool = True,
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/base_meta_classes.py", line 145, in getitem
args = cls._get_item(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 74, in _get_item
shape, dtype = cls._get_from_tuple(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 115, in _get_from_tuple
shape = cls._get_shape(item[0])
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 129, in _get_shape
f"Unexpected argument '{dtype_candidate}', expecting"
nptyping.error.InvalidArgumentsError: Unexpected argument '(typing.Any, 2)', expecting Shape[] or Literal[] or typing.Any.
Traceback (most recent call last):
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/main.py", line 11, in
from . import utils
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/utils.py", line 11, in
from .trirender import UVTrianglesRenderer
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 35, in
class UVTrianglesRenderer:
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/sharp/trirender.py", line 112, in UVTrianglesRenderer
flip_y: bool = True,
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/base_meta_classes.py", line 145, in getitem
args = cls._get_item(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 74, in _get_item
shape, dtype = cls._get_from_tuple(item)
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 115, in _get_from_tuple
shape = cls._get_shape(item[0])
File "/home/nazir241/anaconda3/envs/tex_if-net/lib/python3.7/site-packages/nptyping/ndarray.py", line 129, in _get_shape
f"Unexpected argument '{dtype_candidate}', expecting"
nptyping.error.InvalidArgumentsError: Unexpected argument '(typing.Any, 2)', expecting Shape[] or Literal[] or typing.Any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant