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

Having difficulties in replicating experiment #3

Open
fine20030510 opened this issue Sep 10, 2023 · 6 comments
Open

Having difficulties in replicating experiment #3

fine20030510 opened this issue Sep 10, 2023 · 6 comments

Comments

@fine20030510
Copy link

Hi! Your work is excellent!
I copy your source code and data, and I tried to run your code.
But some error happened.

File "/data/Python-Super/super/deform_mesh.py", line 644, in forward
loss, losses, boundary_edge_type, boundary_face_type = self.get_losses(i, deform_verts, inputs, trg, src, src_graph, new_verts, src_edge_index, models, init_iter=i==0)
File "/data/Python-Super/super/deform_mesh.py", line 477, in get_losses
point_plane_loss = DataLoss.autograd_forward(self.opt, inputs, self.new_data, trg,
File "/data/Python-Super/super/loss.py", line 395, in autograd_forward
sample_trg, _, sample_valid = bilinear_sample([trg.points, trg.norms, trg.seg_conf],
File "/data/Python-Super/super/loss.py", line 86, in bilinear_sample
U_nm_valid = U_nm_valid.view(len(U_nm_valid), -1)
RuntimeError: cannot reshape tensor of 0 elements into shape [0, -1] because the unspecified dimension size -1 can be any value and is ambiguous

Can you help you solve this problem?
Looking forward to you reply!

@gkw0010
Copy link

gkw0010 commented Oct 10, 2023

Hi, I meet the same error as you. Have you solved this problem?

@ShanL03
Copy link
Contributor

ShanL03 commented Oct 20, 2023

Hi,

Thank for the comments! We just cleaned up the code base, checked those errors, and also cleaned up the data. Could you try the new code and data? All comments to run the code are provided in readme.

@gkw0010
Copy link

gkw0010 commented Oct 23, 2023

/home/ren2/anaconda3/envs/super/lib/python3.9/site-packages/skimage/metrics/_structural_similarity.py:251: RuntimeWarning: invalid value encountered in divide
S = (A1 * A2) / D
45%|████████████████████████████████████████████████████████████████▊ | 68/151 [03:50<04:41, 3.39s/it]
Traceback (most recent call last):
File "/home/ren2/data/wgk/super/run_semantic_super.py", line 25, in
main()
File "/home/ren2/data/wgk/super/run_semantic_super.py", line 22, in main
models.super(models, inputs)
File "/home/ren2/anaconda3/envs/super/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ren2/data/wgk/super/super/super.py", line 55, in forward
deform_param = self.fusion(models, inputs, sfdata)
File "/home/ren2/data/wgk/super/super/super.py", line 70, in fusion
deform_param = self.graph_fit(inputs, self.sf, sfdata, models)
File "/home/ren2/anaconda3/envs/super/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/ren2/data/wgk/super/super/deform_mesh.py", line 247, in forward
return self.deform_superedg(inputs, src, trg, models)
File "/home/ren2/data/wgk/super/super/deform_mesh.py", line 313, in deform_superedg
loss, losses = self.get_losses(deform_verts,
File "/home/ren2/data/wgk/super/super/deform_mesh.py", line 83, in get_losses
point_plane_loss = DataLoss.autograd_forward(self.opt,
File "/home/ren2/data/wgk/super/super/loss.py", line 348, in autograd_forward
sample_trg, _, sample_valid = bilinear_sample([trg.points,
File "/home/ren2/data/wgk/super/super/loss.py", line 83, in bilinear_sample
U_nm_valid = U_nm_valid.view(len(U_nm_valid), -1)
RuntimeError: cannot reshape tensor of 0 elements into shape [0, -1] because the unspecified dimension size -1 can be any value and is ambiguous

The problem still exists in Trial3(SuPerV2-T1). I think this is caused by the “deform_verts” in super/deform_mesh.py: 286. When "deform_verts" contains "nan", an error will be reported.

@ShanL03
Copy link
Contributor

ShanL03 commented Oct 23, 2023 via email

@gkw0010
Copy link

gkw0010 commented Oct 25, 2023

Depth looks correct, but seg_render seems not to be rendering correctly.
1698222724743

@jinwoo777
Copy link

jinwoo777 commented May 20, 2024

how did you visualized it?? I got events.out ~~~ files but have difficulties when use tensorboard.
Can you tell me the run code??

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

4 participants