Update README.md
#6
by
tolgacangoz
- opened
README.md
CHANGED
@@ -28,16 +28,16 @@ You can find some example images in the following.
|
|
28 |
Make sure first to install the libraries:
|
29 |
|
30 |
```bash
|
31 |
-
pip install accelerate transformers safetensors diffusers
|
32 |
```
|
33 |
|
34 |
And then setup the zoe-depth model
|
35 |
|
36 |
```
|
37 |
import torch
|
38 |
-
import matplotlib
|
39 |
import matplotlib.cm
|
40 |
import numpy as np
|
|
|
41 |
|
42 |
torch.hub.help("intel-isl/MiDaS", "DPT_BEiT_L_384", force_reload=True) # Triggers fresh download of MiDaS repo
|
43 |
model_zoe_n = torch.hub.load("isl-org/ZoeDepth", "ZoeD_NK", pretrained=True).eval()
|
@@ -96,9 +96,6 @@ Now we're ready to go:
|
|
96 |
|
97 |
```python
|
98 |
import torch
|
99 |
-
import numpy as np
|
100 |
-
from PIL import Image
|
101 |
-
|
102 |
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline, AutoencoderKL
|
103 |
from diffusers.utils import load_image
|
104 |
|
|
|
28 |
Make sure first to install the libraries:
|
29 |
|
30 |
```bash
|
31 |
+
pip install accelerate transformers safetensors diffusers timm==0.6.7
|
32 |
```
|
33 |
|
34 |
And then setup the zoe-depth model
|
35 |
|
36 |
```
|
37 |
import torch
|
|
|
38 |
import matplotlib.cm
|
39 |
import numpy as np
|
40 |
+
from PIL import Image
|
41 |
|
42 |
torch.hub.help("intel-isl/MiDaS", "DPT_BEiT_L_384", force_reload=True) # Triggers fresh download of MiDaS repo
|
43 |
model_zoe_n = torch.hub.load("isl-org/ZoeDepth", "ZoeD_NK", pretrained=True).eval()
|
|
|
96 |
|
97 |
```python
|
98 |
import torch
|
|
|
|
|
|
|
99 |
from diffusers import ControlNetModel, StableDiffusionXLControlNetPipeline, AutoencoderKL
|
100 |
from diffusers.utils import load_image
|
101 |
|