-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ControlNet result very bad. #203
Comments
It seems that you need to calculate depth rather than directly put the raw image into controlnet pipeline: depth_estimator = pipeline('depth-estimation') image = load_image("https://huggingface.co/lllyasviel/sd-controlnet-depth/resolve/main/images/stormtrooper.png") image = depth_estimator(image)['depth'] controlnet = ControlNetModel.from_pretrained( pipe = StableDiffusionControlNetPipeline.from_pretrained( pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config) pipe.enable_xformers_memory_efficient_attention() pipe.enable_model_cpu_offload() image = pipe("Stormtrooper's lecture", image, num_inference_steps=20).images[0] image.save('./images/stormtrooper_depth_out.png') |
Here is the inference script I used for controlnet image to image translation. Note that I already download your
config.json
anddiffusion_pytorch_model.safetensors
and put them intocontrolnet
.However, the result is very bad (Screenshot below).
The text was updated successfully, but these errors were encountered: