ototadana / sd-face-editor

Face Editor for Stable Diffusion
MIT License
1.02k stars 85 forks source link

An error occured #168

Closed amytong85 closed 11 months ago

amytong85 commented 11 months ago

Error running postprocess: /root/stable-diffusion-webui/extensions/sd-face-editor/scripts/face_editor_extension.py Traceback (most recent call last): File "/root/stable-diffusion-webui/modules/scripts.py", line 551, in postprocess script.postprocess(p, processed, script_args) File "/root/stable-diffusion-webui/extensions/sd-face-editor/scripts/face_editor_extension.py", line 53, in postprocess ImageProcessor(WorkflowManager.get(option.workflow)).proc_images(o, res, option) File "/root/stable-diffusion-webui/extensions/sd-face-editor/scripts/use_cases/image_processor.py", line 62, in proc_images proc = self.proc_image(p, option, image, res.infotexts[i], (res.width, res.height)) File "/root/stable-diffusion-webui/extensions/sd-face-editor/scripts/use_cases/image_processor.py", line 176, in proc_image proc_image = self.workflow.process(jobs, face, p, option) File "/root/stable-diffusion-webui/extensions/sd-face-editor/scripts/use_cases/workflow_manager.py", line 162, in process image = face_processor.process(face, p, params) File "/root/stable-diffusion-webui/extensions/sd-face-editor/scripts/inferencers/img2img_face_processor.py", line 35, in process refiner_switch_at = p.refiner_switch_at AttributeError: 'StableDiffusionProcessingImg2Img' object has no attribute 'refiner_switch_at'

i'm using latest version of face editor,and webui 1.6,but it dosen't work

ototadana commented 11 months ago

@amytong85 If the Web UI version is 1.6.0, this error should not appear, so could you please check the version? If this error occurs even though the version is 1.6.0, we need to identify the conditions under which it occurs, so can you give me more detailed information?

amytong85 commented 11 months ago

I'm using cloud server from therehttps://www.codewithgpu.com/i/AUTOMATIC1111/stable-diffusion-webui/tzwm_sd_webui_A1111, and it says:AUTOMATIC1111/stable-diffusion-webui [v1.6.0] Python 3.10.6 + Torch 2.0.1 + cuda 11.8 + xformers 0.0.20. There is no free service, so if you can't get enough information, maybe I can go and ask author😀.

ototadana commented 11 months ago

Thanks for the info. Maybe it is a special derivative version.

I have made a modification to make it as error-free as possible when running on such a version, so could you please try it?

amytong85 commented 11 months ago

image It works! thanks for your help!