Spaces:
Runtime error
No such file or directory: 'resnetinceptionv1_epoch_32.pth' error
hey , when i run your app.py file in vs code
the compiler is showing below error:
PS E:\JANARDAN\deepfakekit> & e:/JANARDAN/deepfakekit/.venv/Scripts/python.exe e:/JANARDAN/deepfakekit/app.py
Traceback (most recent call last):
File "e:\JANARDAN\deepfakekit\app.py", line 31, in
checkpoint = torch.load("resnetinceptionv1_epoch_32.pth", map_location=torch.device('cpu'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\JANARDAN\deepfakekit.venv\Lib\site-packages\torch\serialization.py", line 998, in load
with _open_file_like(f, 'rb') as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\JANARDAN\deepfakekit.venv\Lib\site-packages\torch\serialization.py", line 445, in _open_file_like
return _open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\JANARDAN\deepfakekit.venv\Lib\site-packages\torch\serialization.py", line 426, in init
super().init(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'resnetinceptionv1_epoch_32.pth'
PS E:\JANARDAN\deepfakekit>
please help me , reply soon
You need to download the 32 epoch model file from here 'resnetinceptionv1_epoch_32.pth' and put it in your app.py directory and install any missing dependencies from requirements.txt file
pip install -r requirements.txt
then you can run the app.py file from your vs code terminal to launch the gradio interface in browser
python app.py
thank you so much for your reply . I will follow your instruction . THANKS
hey , bro I followed your instructions and its working now thanks a lot. I am new to ML and I select this model as my final year project so If you dont mind can you explain me about this model like what dataset are you using ,how its working , what is happening in the app.py file, how the model detect a real and a deepfake imgae .Bro I mostly speak Hindi so you can explain me in hindi .thank you