Skip to content
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

import ddetr too slow #32

Open
CRIS-YANGYQ opened this issue Nov 5, 2024 · 1 comment
Open

import ddetr too slow #32

CRIS-YANGYQ opened this issue Nov 5, 2024 · 1 comment

Comments

@CRIS-YANGYQ
Copy link

run groma/eval/run_groma.py

The program stops at line "from groma.model.groma import GromaModel". When debugging it, I find it the bottleneck is in the following.
line 24 in groma/model/groma.py
from groma.model.ddetr import CustomDDETRConfig, CustomDDETRModel

line 18 in groma/model/ddetr.py
from transformers.models.deformable_detr.modeling_deformable_detr import DeformableDetrObjectDetectionOutput

Does Anybody who met the problem finally solved it?

@CRIS-YANGYQ
Copy link
Author

In the pyproject.toml, the module transformers is required and certain version is demanded.
Tried to solve the issue, I changed the version and it works as I have no idea why it funtions.

pip install transformers==4.40.2
transformers==4.32.0->4.40.2
tokenizers==0.12.1->0.19.1

groma 1.0.0 requires tokenizers==0.12.1, but you have tokenizers 0.19.1 which is incompatible. groma 1.0.0 requires transformers==4.32.0, but you have transformers 4.40.2 which is incompatible. Successfully installed tokenizers-0.19.1 transformers-4.40.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant