Transfer-Learning-Library icon indicating copy to clipboard operation
Transfer-Learning-Library copied to clipboard

Failed to import mmdetection

Open SeucheAchat9115 opened this issue 2 years ago • 4 comments

When i try to run source_only.py I get the error message "No module named 'tlllib.vision.models.object_detection.backbone.mmdetection'"

If I try to import "tlllib.vision.models.object_detection" it seems that the error is in the file backbone/vgg.py in "from .mmdetection.vgg import VGG. Any clue how I can fix this?

SeucheAchat9115 avatar Sep 05 '22 06:09 SeucheAchat9115

I just tried it and found no problem. Can you find this file in the corresponding directory?

image

thucbx99 avatar Sep 05 '22 14:09 thucbx99

The problem was I installed tllib using pip, but this somehow did not work. Therefore I had to uninstall it and load tllib from the source files directly.

SeucheAchat9115 avatar Sep 05 '22 16:09 SeucheAchat9115

Temporarily tllib does not support installing via pip yet, we are planning to support it recently.

thucbx99 avatar Sep 06 '22 15:09 thucbx99

We have supported installing tllib via pip using the following command.

pip install -i https://test.pypi.org/simple/ tllib==0.4

thucbx99 avatar Sep 08 '22 06:09 thucbx99

I have still this problem and get the error, how can I solve it? error: ModuleNotFoundError: No module named 'tllib.vision.models.object_detection.backbone.mmdetection'

I tried to installed tllib with both pip and source file, but it didnt work for me. appreciate your help.

mahilaMoghadami avatar Dec 23 '23 15:12 mahilaMoghadami

The problem was I installed tllib using pip, but this somehow did not work. Therefore I had to uninstall it and load tllib from the source files directly.

hello could you please tell me how did you do that? thank you.

mahilaMoghadami avatar Dec 23 '23 15:12 mahilaMoghadami

I cloned the tlllib from github and then it worked. No need to pip install.

SeucheAchat9115 avatar Dec 23 '23 15:12 SeucheAchat9115