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

How to visualize video and save results? #60

Closed
Bootiap opened this issue Sep 10, 2024 · 5 comments
Closed

How to visualize video and save results? #60

Bootiap opened this issue Sep 10, 2024 · 5 comments

Comments

@Bootiap
Copy link

Bootiap commented Sep 10, 2024

I trained the model with my own dataset, how do I visualize my results of a video?
Also, is there a way to make my results being overlayed with the original picture or the video? Thank you.

@w1oves
Copy link
Owner

w1oves commented Sep 10, 2024

I will write an appropriate script for you. If it's convenient, I hope you can mention rein in the public webpage or article where you use the video. Thank you for your support!

@w1oves
Copy link
Owner

w1oves commented Sep 10, 2024

I have uploaded inference_video.py in tools

@w1oves w1oves closed this as completed Sep 10, 2024
@w1oves
Copy link
Owner

w1oves commented Sep 10, 2024

Thank you very much for your support of Rein! If this project or my answer is helpful to you, please give me a star, which is very important to me. If you have any further questions, please feel free to ask.

@Bootiap
Copy link
Author

Bootiap commented Sep 18, 2024

Hello, I encountered an error while visualizing video results, below is the error:
KeyError: 'ReinsDinoVisionTransformer is not in the mmseg::model registry. Please check whether the value of ReinsDinoVisionTransformer is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'

I found 'ReinsDinoVisionTransformer' in the reins_dinov2.py file, do I need to put the model into the mmseg registry.py file? If so, how do I manage to do that? Thank you very much.

@w1oves
Copy link
Owner

w1oves commented Sep 18, 2024

I have updated inference_video.py and added import rein to solve this problem. If you find my code helpful, I'd appreciate it if you could give me a star!

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