10Ring / LAA-Net

The official implementation for LAA-Net: Localized Artifact Attention Network for Quality-Agnostic and Generalizable Deepfake Detection
Other
68 stars 9 forks source link

while executingimage_crop.py #16

Open Sangita912224 opened 1 month ago

Sangita912224 commented 1 month ago

Traceback (most recent call last): File "/content/LAA-Net/package_utils/images_crop.py", line 13, in from retinaface.pre_trained_models import get_model ModuleNotFoundError: No module named 'retinaface

this error has occured , i already clone retinaface in LAA-Net and download pre_trained_models but i got this error i think get model is not taking retinface models thanks and regrads

recluzegeek commented 1 week ago

If you configured the environment recommended by the author i.e. cuda=11.1, pytorch=1.8.0 then you need to install retinaface-pytorch==0.0.7 and not the latest one. Install it using

pip install retinaface-pytorch==0.0.7

The latest retinaface-pytorch is not compatible with pytorch==1.8.0 it requires at least 1.9.0 and your environment may get messed up if you installed latest one.