Open hotlabs-technology opened 3 weeks ago
Got the same error
@hotlabs-technology Make sure your models
folder and gfpgan\weights
folder look like this (file name, file size):
@vic4key what's the full path of gfpgan\weight
?
I am trying to make it works and got a similar problem, but I couldn't find that gfpgan folder
@omer-re These files in the weights
folder are auto download in the first run.
@vic4key thanks, what can I do if it doesn't appear and I don't have them?
I can find such folder under Deep-Live-Cam\.deep_live_cam_venv\Lib\site-packages\gfpgan\weights
but it's empty.
I have downloaded the .pth file in the models folder but I cannot find gfpgan\weights
Did anybody manage to run it?
@hotlabs-technology not sure it's the perfect one, but it workd for me (I found it online) download link from huggingface
thanks @omer-re but when I click on the link I get this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<script/>
<Code>InvalidKey</Code>
<Message>Unknown Key</Message>
</Error>
would you mind trying again?
@hotlabs-technology sure! https://huggingface.co/sinadi/aar/tree/main scroll to the right file and download it
I made it work. Don't follow any old READMES. Follow the instructions of the README of this Repo. The models are linked there. When the program starts I had to choose a face picture obviously but I also chose a Target Video, then the live mode worked. It needs 30 seconds to start. Just be patient.
Consider to make a fresh install so a fresh repo clone. I also used python venv.
https://github.com/hacksider/Deep-Live-Cam/issues/464 Hey I opened this issue so I have all models in folder but no gfpgan\weights
Thanks a lot @omer-re , I'm doing some progress but it still doesn't work:
gfpgan\weight
detection_Resnet50_final.pth
parsing_parsenet.pth
same error, not sure what am I missing
It's gfpgan\weights
not gfpgan\weight
.
Try to manually get the file at https://huggingface.co/gmk123/GFPGAN/tree/main
@vic4key sorry that was just my typo, the directory name was indeed correct. Thanks a lot for the link, I have downloaded the .pth files in the weights directory but I still have the following errors:
Copyonnxruntime.capi.onnxruntime_pybind11_state.InvalidProtobuf: [ONNXRuntimeError] : 7 : INVALID_PROTOBUF : Load model from C:\Users\MyUser\Deep-Live-Cam\models\inswapper_128_fp16.onnx failed:Protobuf parsing failed.
This last error seems to be the most critical, indicating that there was a problem loading the ONNX model file for the face swapper functionality. In terms of output I still see the same small empty window when I click on "Live"
I'm experiencing an issue with the face swapping functionality in the Deep-Live-Cam project. The main window of the application loads correctly, but when I click on the "Live" button, a small empty window appears briefly before the application crashes.
Environment:
Steps to reproduce:
python run.py --execution-provider cuda
Error message: The application throws an exception when trying to load the face swapping model. The key part of the error is:
Full error traceback:
Additional observations: