gaomingqi / Track-Anything

Track-Anything is a flexible and interactive tool for video object tracking and segmentation, based on Segment Anything, XMem, and E2FGVI.
MIT License
6.51k stars 481 forks source link

Undefined symbol: _ZN2at4_ops10zeros_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE #150

Open GreatenAnoymous opened 1 month ago

GreatenAnoymous commented 1 month ago

❯ python app.py /home/arcl/.local/lib/python3.10/site-packages/mmengine/optim/optimizer/zero_optimizer.py:11: DeprecationWarning: TorchScript support for functional optimizers is deprecated and will be removed in a future PyTorch release. Consider using the torch.compile optimizer instead. from torch.distributed.optim import \ Initializing BaseSegmenter to cuda /mnt/ssd_990/teng/BinPicking/segment-anything/segment_anything/build_sam.py:105: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. state_dict = torch.load(f) /mnt/ssd_990/teng/Track-Anything/tracker/model/network.py:145: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature. model_weights = torch.load(model_path, map_location="cpu") 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 "/mnt/ssd_990/teng/Track-Anything/app.py", line 385, in model = TrackingAnything(SAM_checkpoint, xmem_checkpoint, e2fgvi_checkpoint,args) File "/mnt/ssd_990/teng/Track-Anything/track_anything.py", line 20, in init self.baseinpainter = BaseInpainter(self.e2fgvi_checkpoint, args.device) File "/mnt/ssd_990/teng/Track-Anything/inpainter/base_inpainter.py", line 20, in init net = importlib.import_module('inpainter.model.e2fgvi_hq') File "/home/arcl/miniforge3/envs/BinPicking/lib/python3.10/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 "/mnt/ssd_990/teng/Track-Anything/inpainter/model/e2fgvi_hq.py", line 9, in from inpainter.model.modules.feat_prop import BidirectionalPropagation, SecondOrderDeformableAlignment File "/mnt/ssd_990/teng/Track-Anything/inpainter/model/modules/feat_prop.py", line 7, in from mmcv.ops import ModulatedDeformConv2d, modulated_deform_conv2d File "/home/arcl/.local/lib/python3.10/site-packages/mmcv/ops/init.py", line 3, in from .active_rotated_filter import active_rotated_filter File "/home/arcl/.local/lib/python3.10/site-packages/mmcv/ops/active_rotated_filter.py", line 10, in ext_module = ext_loader.load_ext( File "/home/arcl/.local/lib/python3.10/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext ext = importlib.import_module('mmcv.' + name) File "/home/arcl/miniforge3/envs/BinPicking/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: /home/arcl/.local/lib/python3.10/site-packages/mmcv/_ext.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN2at4_ops10zeros_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE

I tried installing mmcv via

conda install -c conda-forge mmcv-full

but it did not work