Comments (2)
Hi @lucasMichelis, thanks for opening this issue!
Regarding the processing times, this isn't that surprising. The image processors we currently have are unfortunately pretty slow, as they do everything through list comprehensions and in numpy. Their main purpose is to enable users to quickly go from image -> model in a single step. We're working on improving this and will hopefully be introducing a "fast" version of grounding dino's processor soon c.f. #28847 Until then, I'd recommend using a torchvision pipeline is inference time is important.
For the different in model inference time, it's something we can look into! As the differences aren't huge i.e. not indicative of a bug, it's not something which I can guarantee will be addressed immediately, but we'd like to have comparable numbers. If you or anyone in the community would like to do some investigation and open a PR to make things faster I'd be very happy to review!
cc @EduardoPach
from transformers.
@lucasMichelis do you have ninja
installed as well? If I'm not mistaken the original implementation uses the custom kernels for the MultiScaleDeformableAttention
, but the transformers
implementation will only use if you have ninja
installed
from transformers.
Related Issues (20)
- Problem with the masked language modeling tutorial HOT 1
- When running `ruff format src/transformers`, some files needs to be reformatted HOT 2
- Something wrong for `StoppingCriteria` HOT 5
- Index out of range when generate using optimum HOT 2
- Fail to load model without .safetensors file HOT 2
- GGUFTokenizerSkeleton AttributeError during conversion HOT 3
- Fixing Tensor Shape/Dimension Mismatch Errors in TimeSeries Transformer for Stock Price Prediction HOT 9
- You can't train a model that has been loaded with `device_map='auto'` in any distributed mode. HOT 8
- NotImplementedError: Cannot copy out of meta tensor; no data when embedding to meta HOT 10
- Add argument to set number of eval steps in Trainer HOT 4
- First token optimization in beam search
- Transformers master version breaks compatibility with `torch<2.3` HOT 1
- Missing upper bound in numpy requirements breaks transformers HOT 5
- Trainer: To keep unused columns for `compute_metrics` HOT 4
- RuntimeError: slow_conv2d_forward_mps: input(device='cpu') and weight(device=mps:0') HOT 1
- OOM when loading 300B models with `AutoModelForCausalLM.from_pretrained` and `BitsAndBytesConfig` quantization. HOT 3
- A question about the implementation of Sinkcache. HOT 2
- Multi-GPU inference affects LLM's (Llama2-7b-chat-hf) generation.
- `pip install accelerate` (and similar) error messages should specify min version HOT 2
- Incorrect docstring of `get_anyres_image_grid_shape` HOT 5
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 transformers.