Comments (4)
Hi, the default input size is 384, and you can also specify the input size at will when model initialization.
from recognize-anything.
Hello Xinyu,
After looking at the code it seems only two sizes are suported 224 and 384 and there is assert statement to check the image size. How should we handle 2k or 4K images?
from recognize-anything.
This is error message with RAM:
(ramrecog) $ python inference_ram.py --image ~/Downloads/dot-and-mom-aziza-2-649f050319cb3.jpg --image-size 1024
Traceback (most recent call last):
File "/Users/Projects/SegmentAnything/RAM/recognize-anything/inference_ram.py", line 42, in
model = ram(pretrained=args.pretrained, image_size=args.image_size, vit='swin_l')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/Projects/SegmentAnything/RAM/recognize-anything/ram/models/ram.py", line 263, in ram
model = RAM(**kwargs)
^^^^^^^^^^^^^
File "/Users/Projects/SegmentAnything/RAM/recognize-anything/ram/models/ram.py", line 77, in init
vision_config = read_json(vision_config_path)
^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'vision_config_path' where it is not associated with a value
from recognize-anything.
Hi, the reason should be that we only include the Swin config for 224&384 in ram/configs/swin. Perhaps you should check how Swin adapts to larger image resolutions.
from recognize-anything.
Related Issues (20)
- The pre-trained checkpoint HOT 1
- pre_caption function
- 4M version checkpoint HOT 1
- Can i inference RAM to output text? HOT 2
- RuntimeError: checkpoint url or path is invalid HOT 1
- 一个tag对应tag_chinese多个标签,如"table"==“桌子/表格”,如何过滤标签 HOT 6
- Error while running inference_ram_plus.py HOT 2
- generative tagging HOT 1
- Is `loss_t2t` in RAM necessary? Can I just remove it? HOT 7
- Finetuning question HOT 7
- Some questions about fine-tuning recognize-anything model HOT 1
- Relax transformers dependency version HOT 3
- Why is the tag and Caption text predicted by Tag2Text different? Why didn't Tag2Text use specific tags given by user?
- about training 4M dataset and the loss converge slowly HOT 3
- A question on embedding
- NameError: name '_C' is not defined HOT 1
- VisionTransformer undefined in ram.models.utils.py
- HuggingFace App is not working HOT 1
- Uncertain output results
- 【Bug】BertLayer should be used as a decoder model if cross attention is added
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 recognize-anything.