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

The H deformable detr code may have some problems ! #332

Open
Cao-PeiPei opened this issue Dec 26, 2023 · 3 comments
Open

The H deformable detr code may have some problems ! #332

Cao-PeiPei opened this issue Dec 26, 2023 · 3 comments

Comments

@Cao-PeiPei
Copy link

I was able to train with other code, but training with H deformable detr code with the same configuration would cause errors. Can you update it on github? Thankyou!!!!!!!The error is as follows:
Traceback (most recent call last):
File "detrex/tools/train_net.py", line 307, in
launch(
File "/root/detrex/detectron2/detectron2/engine/launch.py", line 82, in launch
main_func(*args)
File "detrex/tools/train_net.py", line 302, in main
do_train(args, cfg)
File "detrex/tools/train_net.py", line 275, in do_train
trainer.train(start_iter, cfg.train.max_iter)
File "/root/detrex/detectron2/detectron2/engine/train_loop.py", line 149, in train
self.run_step()
File "detrex/tools/train_net.py", line 101, in run_step
loss_dict = self.model(data)
File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/root/detrex/projects/h_deformable_detr/modeling/h_deformable_detr.py", line 231, in forward
) = self.transformer(
File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/root/detrex/projects/h_deformable_detr/modeling/h_deformable_transformer.py", line 462, in forward
inter_states, inter_references = self.decoder(
File "/root/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/root/detrex/projects/h_deformable_detr/modeling/h_deformable_transformer.py", line 211, in forward
new_reference_points if self.look_forward_twice else reference_points
UnboundLocalError: local variable 'new_reference_points' referenced before assignment

@rentainhe
Copy link
Collaborator

rentainhe commented Dec 27, 2023

Hello, we will check the problem and fix the bug as soon as possible. @Cao-PeiPei

@Cao-PeiPei
Copy link
Author

Thankyou!!!!!!!!

@Cao-PeiPei
Copy link
Author

@rentainhe Excuse me, I tried it and the above problem still appears, did you change the code? If the code is modified, I'll try again myself and look forward to your reply.

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

2 participants