-
Notifications
You must be signed in to change notification settings - Fork 20
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
Use when the H and W are different ... #9
Comments
Yes, you can use it. Different H and W only mean that you will get a different amount of patches. It has no influence how the model processes the image. I recommend you refer model for detection. The model file here can automatically handle pictures with different sizes. model = dpt_tiny()
output = model(inputs) |
You can ignore the module argument |
How can I ignore img_size and patch_count, these two variables are used for model building. |
Yeah, but you may find that it actually has no influence on the model. I will update the code and remove them later. |
When will you update? Sorry to urge you, because I have been using DPT these days, and at the same time, I will continue to study how to get rid of the limitations of these two variables. But I still hope you update the code as soon as possible. |
I suggest that you can try set img_size=224 and patch_count=224/patch_size in spite of other contents. It will not influence final results. Update for code may need some days. |
Okay, I found it, thank you. |
from .box_coder import * box_coder = pointwhCoder(*args, **kwargs) |
Yeah, you need to. In this way, |
May I ask which part of DETR did you embed DPT into? Because the accuracy didn't improve after I added it to DETR, I'm asking you. thanks. |
If I have different image H and W, can I still use DPT? What if I want to use pictures with different H and W?
The text was updated successfully, but these errors were encountered: