Skip to content

Execution error #11

@sirius-co

Description

@sirius-co

I am trying to test on the visa dataset, and I am getting this error:

File "/mnt/data/FiLo-main/test.py", line 11, in
from models.GroundingDINO.groundingdino.models import build_model
File "/mnt/data/FiLo-main/models/GroundingDINO/groundingdino/models/init.py", line 8, in
from .GroundingDINO import build_groundingdino
File "/mnt/data/FiLo-main/models/GroundingDINO/groundingdino/models/GroundingDINO/init.py", line 15, in
from .groundingdino import build_groundingdino
File "/mnt/data/FiLo-main/models/GroundingDINO/groundingdino/models/GroundingDINO/groundingdino.py", line 24, in
from transformers import AutoTokenizer, BertModel, BertTokenizer, RobertaModel, RobertaTokenizerFast
File "", line 1075, in _handle_fromlist
File "/home/user/anaconda3/envs/filo/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1117, in getattr
value = getattr(module, name)
File "/home/user/anaconda3/envs/filo/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1116, in getattr
module = self._get_module(self._class_to_module[name])
File "/home/user/anaconda3/envs/filo/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 1128, in _get_module
raise RuntimeError(
RuntimeError: Failed to import transformers.models.bert.modeling_bert because of the following error (look up to see its traceback):
cannot import name 'Backend' from 'torch._C._distributed_c10d' (unknown location)


This is one of the erros, had multiple of them before this one. Overall, I think you need to improve the code as soon as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions