Comments (2)
I have no explaination for this issue. Noticed you closed it, did you find why ?
from sd-webui-faceswaplab.
i have same issue. it seems to be related if you TRY to use other inswappers like simswap, blendswap or ghost. removing this additional swapper/onnx files from the faceswaplab folder seems to fix the error or produce it if you put additonal swapper models there. MAYBE this is the cause/solution. please try. for me it works and i really would love to use other inswappers than the simple 128px one.
EDIT: I re-tested my theory and can confirm it, that it is the cause and solution to the problem.
as soon as I put an other additional swapper model in the directory where the original inswapper128.onnx resides, the faceswaplab ceases to create new face-models:
'''
2023-12-18 08:01:49,687 - FaceSwapLab - INFO - Target faces count : 1
2023-12-18 08:01:49,687 - FaceSwapLab - INFO - swap face 0
2023-12-18 08:01:49,690 - FaceSwapLab - ERROR - Conversion failed 'UpscaledINSwapper' object has no attribute 'emap'
2023-12-18 08:01:49,692 - FaceSwapLab - ERROR - Failed to build checkpoint 'UpscaledINSwapper' object has no attribute 'emap'
Traceback (most recent call last):
File "E:\STABLEDIFFUSION_WEBUI\webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_swapping\face_checkpoints.py", line 95, in build_face_checkpoint_and_save
result: swapper.ImageResult = swapper.swap_face(
File "E:\STABLEDIFFUSION_WEBUI\webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_swapping\swapper.py", line 658, in swap_face
raise e
File "E:\STABLEDIFFUSION_WEBUI\webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_swapping\swapper.py", line 646, in swap_face
result = face_swapper.get(
File "E:\STABLEDIFFUSION_WEBUI\webui\extensions\sd-webui-faceswaplab\scripts\faceswaplab_swapping\upscaled_inswapper.py", line 176, in get
latent = np.dot(latent, self.emap)
AttributeError: 'UpscaledINSwapper' object has no attribute 'emap'
''' <-- ERROR!!!
when removing the additonal models:
'''
2023-12-18 08:05:11,281 - FaceSwapLab - INFO - Target faces count : 1
2023-12-18 08:05:11,282 - FaceSwapLab - INFO - swap face 0
2023-12-18 08:05:18,504 - FaceSwapLab - INFO - ********************************************************************************
2023-12-18 08:05:18,504 - FaceSwapLab - INFO - Inswapper
2023-12-18 08:05:18,508 - FaceSwapLab - INFO - Upscale with Lanczos scale = 4
2023-12-18 08:05:18,515 - FaceSwapLab - INFO - Restore face with CodeFormer
2023-12-18 08:05:29,247 - FaceSwapLab - INFO - sharpen
2023-12-18 08:05:29,256 - FaceSwapLab - INFO - improved_mask
2023-12-18 08:05:30,566 - FaceSwapLab - INFO - ********************************************************************************
''' <--- WORKS w/o error!
when putting the other swapper files in the directory, the error reappears again....
---> so how to use other inswapper models like simswap, ghost or blendswap?
EDIT2 : It seems the specific files of blendswapper.onnx and all files of ghost seem to provoke this error. by placing SIMSWAP in the directory there was NO error.
still the question remains: how to correctly use other swap-models in faceswaplab?
cheers
from sd-webui-faceswaplab.
Related Issues (20)
- "Use improved segmented mask" not working
- Comfyui version
- 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 6
- Extension does not respect stable-diffusion-webui `--data-dir` option
- Documentation for API?
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.