upload
Browse files
demo.py
CHANGED
@@ -19,6 +19,10 @@ from paintmind.utils.datasets import vae_transforms
|
|
19 |
from PIL import Image
|
20 |
|
21 |
transform = vae_transforms('test')
|
|
|
|
|
|
|
|
|
22 |
|
23 |
|
24 |
def norm_ip(img, low, high):
|
@@ -167,4 +171,4 @@ with gr.Blocks() as demo:
|
|
167 |
|
168 |
# Launch the demo
|
169 |
if __name__ == "__main__":
|
170 |
-
demo.launch()
|
|
|
19 |
from PIL import Image
|
20 |
|
21 |
transform = vae_transforms('test')
|
22 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
23 |
+
# True
|
24 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
25 |
+
# Tesla T4
|
26 |
|
27 |
|
28 |
def norm_ip(img, low, high):
|
|
|
171 |
|
172 |
# Launch the demo
|
173 |
if __name__ == "__main__":
|
174 |
+
demo.launch()
|