Code Monkey home page Code Monkey logo

Comments (13)

dhwz avatar dhwz commented on September 14, 2024 1

Thx, ok now except for the 5secs install delay everything is fine.

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

Yep, that's a problem indeed. Are you using an SSD?

For the installation I had a lot of trouble getting something to work. I had something more efficient but it didn't work very well in some cases.

For the script part, it's because I calculate the hash of the model on startup to check that it's valid. I may change this later.

I don't have time to deal with it this week. In the meantime, you can comment on the corresponding code in install.py and configure.py

from sd-webui-faceswaplab.

dhwz avatar dhwz commented on September 14, 2024

Ok thx for your reply, I can patch it for now, maybe a simple option in settings to skip the hash calculation and installation check would already help. What's the reason you've to check the hash every time, are you afraid users downloading malicious code?

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

It can avoid that indeed. I am not sure it is really necessary for onnx.

But above all I wanted to make sure that the model was the right one. I had several issues where the problem was a bad download.

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

I have started v1.2.2 which should improve this : https://github.com/glucauze/sd-webui-faceswaplab/tree/v1.2.2

from sd-webui-faceswaplab.

dhwz avatar dhwz commented on September 14, 2024

ok tried to test, but there is an error

*** Error running install.py for extension /home/dragon/stable-diffusion-webui/extensions/sd-webui-faceswaplab.
*** Command: "/home/dragon/stable-diffusion-webui/venv/bin/python3.10" "/home/dragon/stable-diffusion-webui/extensions/sd-webui-faceswaplab/install.py"
*** Error code: 1
*** stderr: /home/dragon/stable-diffusion-webui/venv/lib/python3.10/site-packages/pytorch_lightning/utilities/distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
***   rank_zero_deprecation(
*** Traceback (most recent call last):
***   File "/home/dragon/stable-diffusion-webui/extensions/sd-webui-faceswaplab/install.py", line 66, in <module>
***     check_time = timeit.timeit(check_install, number=1)
***   File "/usr/lib/python3.10/timeit.py", line 234, in timeit
***     return Timer(stmt, setup, timer, globals).timeit(number)
***   File "/usr/lib/python3.10/timeit.py", line 178, in timeit
***     timing = self.inner(it, self.timer)
***   File "<timeit-src>", line 6, in inner
***   File "/home/dragon/stable-diffusion-webui/extensions/sd-webui-faceswaplab/install.py", line 12, in check_install
***     ) or shared.opts.data.get("faceswaplab_use_gpu", False)
*** AttributeError: 'NoneType' object has no attribute 'data'

I've removed or shared.opts.data.get("faceswaplab_use_gpu", False) from install.py for further testing.

"Load script" is great now ~0.3secs
But "run extensions installers" is still a bit slow with 5secs

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

Thx for your feedback. I still need to work on it. Just to have an idea, what env are you using ? SDNext or A1111 ?

from sd-webui-faceswaplab.

dhwz avatar dhwz commented on September 14, 2024

A1111

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

That's weird, i don't have this error on my side and that line was used in 1.2.1 :/

from sd-webui-faceswaplab.

dhwz avatar dhwz commented on September 14, 2024

Oh wait I'm using the latest development version so you may try these

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

I will give it a try. You are using the dev branch ? https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/dev or something else ?

Think i got why. Will fix it in a minute.

Are you using GPU ?

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

This should be fixed in last push.

from sd-webui-faceswaplab.

glucauze avatar glucauze commented on September 14, 2024

The 5s delay is weird. I don't get that on Linux but on Windows sometimes. I will see if i can do better. I will merge this branch for now after some testing.

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.