Spaces:
Runtime error
Runtime error
Commit
·
b0461af
1
Parent(s):
7bf73ed
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from StableDiffuser import StableDiffuser
|
|
5 |
from tqdm import tqdm
|
6 |
from train import train
|
7 |
|
8 |
-
import os
|
9 |
-
os.system("nvidia-smi topo -m")
|
10 |
|
11 |
model_map = {'Van Gogh' : 'models/vangogh.pt',
|
12 |
'Pablo Picasso': 'models/pablopicasso.pt',
|
@@ -26,8 +26,8 @@ class Demo:
|
|
26 |
|
27 |
self.training = False
|
28 |
|
29 |
-
print(f'Available GPUs: {torch.cuda.device_count()}')
|
30 |
-
self.diffuser = StableDiffuser(scheduler='DDIM', seed=42).to('cuda
|
31 |
|
32 |
with gr.Blocks() as demo:
|
33 |
self.layout()
|
|
|
5 |
from tqdm import tqdm
|
6 |
from train import train
|
7 |
|
8 |
+
#import os
|
9 |
+
#os.system("nvidia-smi topo -m")
|
10 |
|
11 |
model_map = {'Van Gogh' : 'models/vangogh.pt',
|
12 |
'Pablo Picasso': 'models/pablopicasso.pt',
|
|
|
26 |
|
27 |
self.training = False
|
28 |
|
29 |
+
#print(f'Available GPUs: {torch.cuda.device_count()}')
|
30 |
+
self.diffuser = StableDiffuser(scheduler='DDIM', seed=42).to('cuda').eval().half()
|
31 |
|
32 |
with gr.Blocks() as demo:
|
33 |
self.layout()
|