-
Notifications
You must be signed in to change notification settings - Fork 74
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
Allow different backbones for bottleneck features #21
Comments
HI @lwzhaojun you did everything correct, it should have worked, we did not debug black and white images yet (i.e. channels = 1), can you send us your ort model and we will make sure it works end to end. |
In fact, the RGB image model has also been tried, and the same error will be reported. It looks like it's caused by a model input mismatch. Here is my single-channel model. The following is the three-channel model. |
hi @lwzhaojun. We have identified the source of the error that the expected image size is 96x62 while so far we support default image sizes of 224x224. Give us a couple of days so we could update the code to add non square image support. |
BTW I was not able to download the first zip file if you can send it again please. I was able to download the RGB model. |
Thank you for your support. After I modified the RGB image size to 224x224×3, The following error occurred: |
HI @lwzhaojun we have just released version 0.152 which both supports efficient net non square RGB (3 channels) and black and white (1 channel). The only thing we did not handle is the normalization phase after reading the image. We see on the web there are references for normalization for efficientnet (for example lukemelas/EfficientNet-PyTorch#255) can you please verify which normalization you need so we could support it? BTW we fixed also the 224x224 assertion. |
hi @lwzhaojun did you have a chance to check this? Can I close the issue? |
I'm sorry to verify it now, I just verified that the program can run whether it is an RGB model, a single-channel model, or a non square input. Thank you very much for your great support. |
hi @lwzhaojun we are glad to hear the update is working for you! |
Does the program now support EfficientNet weighting as backbone? My model: (batch, channel, width, height )= (1802, 1, 62, 96).output_size=(1803,1280). Here's how I used it:
fastdup.run('/home/datasets', work_dir='out', nearest_neighbors_k=478, model_path='efficientnetb1.ort', d=1280)
When I use the model, I get the following error, what parameters need to be adjusted in the source code to apply, can you give some suggestions?
Found total 479 images to run on Failed assertion false /home/ubuntu/visual_database/cxx/src/image_to_blob.h:222 Failed assertion false /home/ubuntu/visual_database/cxx/src/image_to_blob.h:222 free(): corrupted unsorted chunks Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: