Update README.md
Browse files
README.md
CHANGED
@@ -26,7 +26,7 @@ import torch
|
|
26 |
from PIL import Image
|
27 |
|
28 |
path_to_config = 'ControlNet-XS-main/configs/inference/sdxl/sdxl_encD_canny_48m.yaml'
|
29 |
-
model = cu.create_model(path_to_config)
|
30 |
|
31 |
image_path = 'PATH/TO/IMAGES/Shoe.png'
|
32 |
|
@@ -63,7 +63,7 @@ import torch
|
|
63 |
from PIL import Image
|
64 |
|
65 |
path_to_config = 'PATH/TO/CONFIG/sd21_encD_depth_14m.yaml'
|
66 |
-
model = cu.create_model(path_to_config)
|
67 |
|
68 |
size = 768
|
69 |
image_path = 'PATH/TO/IMAGES/Shoe.png'
|
|
|
26 |
from PIL import Image
|
27 |
|
28 |
path_to_config = 'ControlNet-XS-main/configs/inference/sdxl/sdxl_encD_canny_48m.yaml'
|
29 |
+
model = cu.create_model(path_to_config).to('cuda')
|
30 |
|
31 |
image_path = 'PATH/TO/IMAGES/Shoe.png'
|
32 |
|
|
|
63 |
from PIL import Image
|
64 |
|
65 |
path_to_config = 'PATH/TO/CONFIG/sd21_encD_depth_14m.yaml'
|
66 |
+
model = cu.create_model(path_to_config).to('cuda')
|
67 |
|
68 |
size = 768
|
69 |
image_path = 'PATH/TO/IMAGES/Shoe.png'
|