Justin900429 / mimicking-annotation-micro-expression-recognition

[ACM MM22] Mimicking the Annotation Process for Recognizing the Micro Expressions
30 stars 1 forks source link

ImportError: cannot import name 'MagNet3Frames' from 'magnet' #3

Closed ghost closed 9 months ago

ghost commented 9 months ago

(pytorch) root@autodl-container-370a43807c-0c539584:~/autodl-tmp/mimicking-annotation-micro-expression-recognition/magnified# python get_samm_img.py \

--img_root /root/autodl-tmp/SAMM-cropped \ --csv_file ../csv_file/SAMM.csv 2024-01-27 09:18:15.022179: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2024-01-27 09:18:15.713494: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT /root/miniconda3/envs/pytorch/lib/python3.8/site-packages/scipy/init.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.24.3 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}" Traceback (most recent call last): File "get_samm_img.py", line 7, in from magnet import MagNet3Frames ImportError: cannot import name 'MagNet3Frames' from 'magnet' (/root/miniconda3/envs/pytorch/lib/python3.8/site-packages/magnet/init.py)

Complete error message, help.