Track-Anything icon indicating copy to clipboard operation
Track-Anything copied to clipboard

does not run although all requirements fullfilled

Open TanvirHafiz opened this issue 1 year ago • 4 comments

the console givesme this messages:

Initializing BaseSegmenter to cuda:0 Hyperparameters read from the model weights: C^k=64, C^v=512, C^h=64 Single object mode: False Traceback (most recent call last): File "G:\TrackAnything\Track-Anything\app.py", line 384, in model = TrackingAnything(SAM_checkpoint, xmem_checkpoint, e2fgvi_checkpoint,args) File "G:\TrackAnything\Track-Anything\track_anything.py", line 20, in init self.baseinpainter = BaseInpainter(self.e2fgvi_checkpoint, args.device) File "G:\TrackAnything\Track-Anything\inpainter\base_inpainter.py", line 20, in init net = importlib.import_module('inpainter.model.e2fgvi_hq') File "C:\Users\Tanvir\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in load_unlocked File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "G:\TrackAnything\Track-Anything\inpainter\model\e2fgvi_hq.py", line 9, in from inpainter.model.modules.feat_prop import BidirectionalPropagation, SecondOrderDeformableAlignment File "G:\TrackAnything\Track-Anything\inpainter\model\modules\feat_prop.py", line 7, in from mmcv.ops import ModulatedDeformConv2d, modulated_deform_conv2d File "C:\Users\Tanvir\AppData\Local\Programs\Python\Python310\lib\site-packages\mmcv\ops_init.py", line 2, in from .active_rotated_filter import active_rotated_filter File "C:\Users\Tanvir\AppData\Local\Programs\Python\Python310\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 10, in ext_module = ext_loader.load_ext( File "C:\Users\Tanvir\AppData\Local\Programs\Python\Python310\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "C:\Users\Tanvir\AppData\Local\Programs\Python\Python310\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed while importing _ext: The specified procedure could not be found.

TanvirHafiz avatar May 01 '23 06:05 TanvirHafiz

I'm receiving the same error:

E:\Python\lib\site-packages\torchvision\models\detection\anchor_utils.py:63: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:77.) device: torch.device = torch.device("cpu"), Initializing BaseSegmenter to cuda:0 Hyperparameters read from the model weights: C^k=64, C^v=512, C^h=64 Single object mode: False Traceback (most recent call last): File "E:\Track-Anything\app.py", line 383, in model = TrackingAnything(SAM_checkpoint, xmem_checkpoint, e2fgvi_checkpoint,args) File "E:\Track-Anything\track_anything.py", line 20, in init self.baseinpainter = BaseInpainter(self.e2fgvi_checkpoint, args.device) File "E:\Track-Anything\inpainter\base_inpainter.py", line 20, in init net = importlib.import_module('inpainter.model.e2fgvi_hq') File "E:\Python\lib\importlib_init_.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in load_unlocked File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "E:\Track-Anything\inpainter\model\e2fgvi_hq.py", line 9, in from inpainter.model.modules.feat_prop import BidirectionalPropagation, SecondOrderDeformableAlignment File "E:\Track-Anything\inpainter\model\modules\feat_prop.py", line 7, in from mmcv.ops import ModulatedDeformConv2d, modulated_deform_conv2d File "E:\Python\lib\site-packages\mmcv\ops_init.py", line 2, in from .active_rotated_filter import active_rotated_filter File "E:\Python\lib\site-packages\mmcv\ops\active_rotated_filter.py", line 10, in ext_module = ext_loader.load_ext( File "E:\Python\lib\site-packages\mmcv\utils\ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "E:\Python\lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: DLL load failed while importing _ext: The specified procedure could not be found.

PedroRossa avatar May 02 '23 20:05 PedroRossa

Try uninstalling mmcv-full and reinstalling it as follows

pip uninstall mmcv-full

mim uninstall mmcv-full

pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.1/index.html

Please update me if that works

Abijeet123 avatar May 06 '23 09:05 Abijeet123

SO i need to install MMCV (no idea what that is). should it not have been automatically installed alongside track anything as dependancies?

TanvirHafiz avatar May 07 '23 06:05 TanvirHafiz

I got the error described in the OP, and upon trying @Abijeet123's solution, ended up with an issue related to wheels - same issue going on here seemingly - https://github.com/open-mmlab/mmcv/issues/1055

aboharbf avatar Jul 25 '23 14:07 aboharbf