Comments (3)
When I try to change the image size, it gives the following error:
Traceback (most recent call last):
File "model_proxy_SAM.py", line 396, in
out = model(x)
File "/public2/zhongyutian/zhongyutian/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "model_proxy_SAM.py", line 322, in forward
out = self.sam.image_encoder(x)
File "/public2/zhongyutian/zhongyutian/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/public2/zhongyutian/AutoSAM-main/mobilemodels/mobile_encoder/tiny_vit_sam.py", line 617, in forward
x = self.forward_features(x)
File "/public2/zhongyutian/AutoSAM-main/mobilemodels/mobile_encoder/tiny_vit_sam.py", line 609, in forward_features
x = layer(x)
File "/public2/zhongyutian/zhongyutian/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/public2/zhongyutian/AutoSAM-main/mobilemodels/mobile_encoder/tiny_vit_sam.py", line 439, in forward
x = blk(x)
File "/public2/zhongyutian/zhongyutian/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/public2/zhongyutian/AutoSAM-main/mobilemodels/mobile_encoder/tiny_vit_sam.py", line 336, in forward
assert L == H * W, "input feature has wrong size"
AssertionError: input feature has wrong size
from mobilesam.
@zhongniuniu hi, bro. Did you solve the problem? I also want to segment the different sizes of the images.
from mobilesam.
I still can't enter an image with a size other than 1024. I had to resize my individual image to 1024 to run it successfully.
from mobilesam.
Related Issues (20)
- Why is the segmentation effect bad after full fine-tuning training? There are also pseudo-pixel grids in the segmentation result
- a issue of multiple boxes input
- Can you convert the code to tensorflow? HOT 1
- Q for computation resources between coupled and decoupled distillation HOT 1
- Would you please upload v2 model files
- Would you please upload the pretrained yolo model
- Finetuning on 24GB 1 GPU training parameters
- MobileSAM-v2 occupied ~18GB of GPU
- Getting mobileSAM into a format that runs on mobile (tflite, torchscript) HOT 8
- Cannot convert ObjectAwareModel to onnx
- mobilesamv2 bug HOT 2
- encoder_embed_dim,encoder_depth,encoder_num_heads=16,encoder_global_attn_indexes参数是什么?
- How to use it with text prompt?
- Box prompts demo
- "bash ./experiments/mobilesamv2.sh" does not work on Mac M1 HOT 2
- Performance definition in Mobilesamv2 paper
- Why is it slow to segment everything? Is there a good solution?
- When available the train code HOT 2
- More than one bounding box
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobilesam.