INSTA-pytorch icon indicating copy to clipboard operation
INSTA-pytorch copied to clipboard

TypeError: density() missing 1 required positional argument: 'cond'

Open leaf-fucker opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "/INSTA-pytorch/main_insta.py", line 132, in trainer.save_mesh(resolution=256, threshold=10) File "/INSTA-pytorch/insta/utils.py", line 602, in save_mesh vertices, triangles = extract_geometry(self.model.aabb_infer[:3], self.model.aabb_infer[3:], resolution=resolution, threshold=threshold, query_func=query_func) File "/INSTA-pytorch/insta/utils.py", line 182, in extract_geometry u = extract_fields(bound_min, bound_max, resolution, query_func) File "/INSTA-pytorch/insta/utils.py", line 175, in extract_fields val = query_func(pts).reshape(len(xs), len(ys), len(zs)).detach().cpu().numpy() # [S, 1] --> [x, y, z] File "/INSTA-pytorch/insta/utils.py", line 599, in query_func sigma = self.model.density(pts.to(self.device))['sigma'] TypeError: density() missing 1 required positional argument: 'cond'

leaf-fucker avatar Apr 12 '23 05:04 leaf-fucker

Any solution please?

fasogbon avatar May 19 '23 18:05 fasogbon

Traceback (most recent call last): File "/INSTA-pytorch/main_insta.py", line 132, in trainer.save_mesh(resolution=256, threshold=10) File "/INSTA-pytorch/insta/utils.py", line 602, in save_mesh vertices, triangles = extract_geometry(self.model.aabb_infer[:3], self.model.aabb_infer[3:], resolution=resolution, threshold=threshold, query_func=query_func) File "/INSTA-pytorch/insta/utils.py", line 182, in extract_geometry u = extract_fields(bound_min, bound_max, resolution, query_func) File "/INSTA-pytorch/insta/utils.py", line 175, in extract_fields val = query_func(pts).reshape(len(xs), len(ys), len(zs)).detach().cpu().numpy() # [S, 1] --> [x, y, z] File "/INSTA-pytorch/insta/utils.py", line 599, in query_func sigma = self.model.density(pts.to(self.device))['sigma'] TypeError: density() missing 1 required positional argument: 'cond'

me too

fyyakaxyy avatar Sep 16 '23 00:09 fyyakaxyy