clementchadebec commited on
Commit
e26c7c3
1 Parent(s): f7eb896

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -15
README.md CHANGED
@@ -47,6 +47,7 @@ control_image = load_image(
47
  w, h = control_image.size
48
 
49
  # Upscale x4
 
50
  control_image = control_image.resize((w * 4, h * 4))
51
 
52
  image = pipe(
@@ -65,21 +66,6 @@ image
65
  <img style="width:500px;" src="examples/output.jpg">
66
  </p>
67
 
68
- 💡 Note: You can compute the conditioning map using for instance the `MidasDetector` from the `controlnet_aux` library
69
-
70
- ```python
71
- from controlnet_aux import MidasDetector
72
- from diffusers.utils import load_image
73
-
74
- midas = MidasDetector.from_pretrained("lllyasviel/Annotators")
75
-
76
- # Load an image
77
- im = load_image(
78
- "https://huggingface.co/jasperai/jasperai/Flux.1-dev-Controlnet-Depth/resolve/main/examples/output.jpg"
79
- )
80
-
81
- surface = midas(im)
82
- ```
83
 
84
  # Training
85
  This model was trained with a synthetic complex data degradation scheme taking as input a *real-life* image and artificially degrading it by combining several degradations such as amongst other image noising (Gaussian, Poisson), image blurring and JPEG compression. In a similar spirit as [1]
 
47
  w, h = control_image.size
48
 
49
  # Upscale x4
50
+ # This can be set to any arbitrary target resolution
51
  control_image = control_image.resize((w * 4, h * 4))
52
 
53
  image = pipe(
 
66
  <img style="width:500px;" src="examples/output.jpg">
67
  </p>
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  # Training
71
  This model was trained with a synthetic complex data degradation scheme taking as input a *real-life* image and artificially degrading it by combining several degradations such as amongst other image noising (Gaussian, Poisson), image blurring and JPEG compression. In a similar spirit as [1]