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

Visualize the output #318

Open
Cao-PeiPei opened this issue Nov 10, 2023 · 4 comments
Open

Visualize the output #318

Cao-PeiPei opened this issue Nov 10, 2023 · 4 comments

Comments

@Cao-PeiPei
Copy link

Hello,I'm having a problem where I don't know how to visualize the output of each feature layer. Does anyone have already made it happen? I'd appreciate it if you could open source the code!

@rentainhe
Copy link
Collaborator

rentainhe commented Nov 13, 2023

Hello, sry for the late reply. What kind of visualization do you need in DETR models, maybe you can try to hack in our source code and collect the intern features for further usage like visualizations.

@Cao-PeiPei
Copy link
Author

Thanks for your answer, pls when will the heat map visualization be implemented?like grad cam.

@rentainhe
Copy link
Collaborator

Thanks for your answer, pls when will the heat map visualization be implemented?like grad cam.

Sry we did not support heat map visualization now, but you can refer to this part of the code here to see how to implement the training visualization under DINO and you can implement the visualization by yourself

@Cao-PeiPei
Copy link
Author

Thanks for the answer, I tried to add grad_cam code, but I have a problem, when I “from dino_r50 import model” with visual code, I get this error,--“ File "projects/dino/configs/models/main_vit.py", line 89, in
main()
File "projects/dino/configs/models/main_vit.py", line 41, in main
model = model()
UnboundLocalError: local variable 'model' referenced before assignment” how can I fix it?

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