controlnet_conditioning_scale = 0.5  # recommended for good generalization

image = pipe(
prompt,
image=depth_image,
num_inference_steps=4,
guidance_scale=0,
eta=0.3,
controlnet_conditioning_scale=controlnet_conditioning_scale,
generator=torch.Generator(device=device).manual_seed(0),
).images[0]

grid_image = make_image_grid([depth_image, image], rows=1, cols=2)
```  
![](https://github.com/jabir-zheng/TCD/raw/main/assets/controlnet_depth_tcd.png)