Code Monkey home page Code Monkey logo

Comments (10)

skiski456 avatar skiski456 commented on August 10, 2024 2

Solved: The model was not there when the extension first installed, and although I copied it to the correct place, Settings - FaceSwapLab still had 'None' selected for FaceSwapModel. Selecting the actual model fixed it.

Thanks!

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on August 10, 2024

It's annoying. I'll have to do a bit more testing of my own. I didn't seem to have a problem with it.

I'd have to figure out whether the error is due to a face not being detected in a photo, or a problem opening the file.

It never works, whatever the file?

The strange thing about the log is that the file looks like it can be built. Do you have a file created in faces?

from sd-webui-faceswaplab.

AndreyRGW avatar AndreyRGW commented on August 10, 2024

It never works, whatever the file?

I tried different images, jpeg, jpg, png, 16:9, 4:3, 3:2, 1:1, 512x512 and so on. Nothing worked.

Do you have a file created in faces?

No, there are no files in faces.

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on August 10, 2024

Ok my current version is in a bit of a mess now (v1.1.3). I'll try to finish this and see if I can improve the errors to see if it comes from there.

Sometimes the problem comes from the ui-config.json file at the root of sd, which is not properly updated. In this case, you need to rename it so that it can be rebuilt and see if it works better. But I'm not sure that's the case here.

from sd-webui-faceswaplab.

AndreyRGW avatar AndreyRGW commented on August 10, 2024

Sometimes the problem comes from the ui-config.json file at the root of sd, which is not properly updated. In this case, you need to rename it so that it can be rebuilt and see if it works better. But I'm not sure that's the case here.

I renamed ui-config.json, it was re-created, but that didn't solve the problem, the error is still the same.

from sd-webui-faceswaplab.

skiski456 avatar skiski456 commented on August 10, 2024

I get the same error in SD.Next (https://github.com/vladmandic/automatic.git) , but it works in the original stable-diffusion-webui

I tried building the model in the original webui and then using the model in SD.Next but I get another error,
ERROR The model None cannot be found or loaded
ERROR Failed to swap face in postprocess method : No faceswap model found. Please add it to the
faceswaplab directory.

It's not recognizing when I select the model from the dropdown.

From what I understand, the original stable-diffusion-webui is not actively developed anymore and SD.Next has become the main fork.

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on August 10, 2024

I get the same error in SD.Next (https://github.com/vladmandic/automatic.git) , but it works in the original stable-diffusion-webui

It's not that simple because I use SD.Next too and I don't have any problems loading the model. Just tested v1.2.0 agaisnt last version of SD.NEXT and it seems to work.

From what I understand, the original stable-diffusion-webui is not actively developed anymore and SD.Next has become the main fork.

In fact a1111 is still well maintained, SD.Next is just a different version with more features. And still some very minor things in the extensions api are behind a1111. I consider a1111 to be the main target system because vlad integrates the changes afterwards.

When I say SD, I mean a1111 or SDNext.

Can you check that the model is in <sdwui>/models/faceswaplab? being a1111 or sdnext.

If not, you can download it here : https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx

You can also look at the shasum to check that the file is the right one:

sha1sum inswapper_128.onnx 
17a64851eaefd55ea597ee41e5c18409754244c5  inswapper_128.onnx
 sha256sum inswapper_128.onnx 
e4a3f08c753cb72d04e10aa0f7dbe3deebbf39567d4ead6dce08e98aa49e16af  inswapper_128.onnx
sha512sum inswapper_128.onnx 
4311f4ccd9da58ec544e912b32ac0cba95f5ab4b1a06ac367efd3e157396efbae1097f624f10e77dd811fbba0917fa7c96e73de44563aa6099e5f46830965069  inswapper_128.onnx

from sd-webui-faceswaplab.

AndreyRGW avatar AndreyRGW commented on August 10, 2024

Can you check that the model is in <sdwui>/models/faceswaplab? being a1111 or sdnext.

If not, you can download it here : https://huggingface.co/henryruhs/roop/resolve/main/inswapper_128.onnx

My model is in a slightly different path - <sdwui>/extensions/sd-webui-faceswaplab/models/faceswaplab

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on August 10, 2024

There's a bug in the install script, especially for sdnext, which means that the model is not positioned in the right place. I'll try to fix it for the next version. In the meantime, it's best to place the model where I've indicated.

from sd-webui-faceswaplab.

AndreyRGW avatar AndreyRGW commented on August 10, 2024

There's a bug in the install script, especially for sdnext, which means that the model is not positioned in the right place. I'll try to fix it for the next version. In the meantime, it's best to place the model where I've indicated.

Wow, I placed the model where you indicated and everything worked!

from sd-webui-faceswaplab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.