Comments (13)
Thx, ok now except for the 5secs install delay everything is fine.
from sd-webui-faceswaplab.
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.
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.
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.
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.
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.
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.
A1111
from sd-webui-faceswaplab.
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.
Oh wait I'm using the latest development version so you may try these
from sd-webui-faceswaplab.
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.
This should be fixed in last push.
from sd-webui-faceswaplab.
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)
- Can't see faceswap in the Automatic1111 UI HOT 2
- Broken model download link
- Future warning 'rcond' parametr
- Pytorch and Torchvision incompatibility in Ubuntu
- It is not working HOT 3
- Cannot load faceswap model in webui-forge HOT 3
- Failed to swap face in postprocess method : apply_overlay() takes 3 positional arguments but 4 were given HOT 20
- Change only the target face in an existing image
- FaceSwapLab - ERROR - Conversion failed max() arg is an empty sequence
- ERROR - Failed to swap face in postprocess method : apply_overlay() takes 3 positional arguments but 4 were given HOT 20
- Please delete sorry
- failed to install in automatic1111 HOT 1
- img2img -> Inpaint -> dont work HOT 11
- How do I build a checkpoint with multiple angles of a face? HOT 2
- img2img not saving batch images into output directory HOT 3
- Does not work on Automatic1111 HOT 7
- Extension does not respect stable-diffusion-webui `--data-dir` option
- Documentation for API?
- Extension doesnt work on Webforge anymore for 2 days now HOT 7
- txt2img not working only blend face img2img HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-webui-faceswaplab.