-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
[QUESTION] How to predict bounding boxed on big images with model trained on small images? #125
Comments
I found solution:
Is it correct? |
Correct me if I am wrong! So the Efficientdet-D0 model requires (512, 512) as the input image size. So 1) I resize the original image(600*800 ) to (512, 512) and scale the groundtruth bounding box accordingly. For eg, consider the bbox as [x1,y1,x2,y2] format I observe the output bbox as [0,0,700,600] I see out of 100 boxes 80 are in the wat discussed above. The shocking part is these boxes have higher classification scores like above 0.77 and all. Am I understanding the concept correctly?
|
I have one more question, when you input the (2048, 2048) image in the loader while predicting the create_loader takes you to transforms ResizePad function where the image resizes to (640, 640) because the efficientdet-d1 requires 640*640 image to operate, and then calculate the predictions correspondingly right? |
@Ekta246 , I am using https://albumentations.ai/ for data augmentation. It can crop and resize image and bboxes together.
I am clipping bbox. |
I have efficientdet-d1 trained on images 640x640. And trying to predict bboxes on image 2048x2048.
I loaded model from snapshot and tried to change
image_size
for model.config to recreate anchors. But got error "omegaconf.errors.ReadonlyConfigError: Cannot change read-only config container" .I look to the reset_head() , but it do not change anchors.
Think that I am going wrong way.
How to predict bounding boxed on big images with model trained on small images?
The text was updated successfully, but these errors were encountered: