Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -36,6 +36,8 @@ models_path = snapshot_download(repo_id="Snapchat/w2w")
|
|
36 |
|
37 |
|
38 |
|
|
|
|
|
39 |
pretrained_model_name_or_path = "stablediffusionapi/realistic-vision-v51"
|
40 |
revision = None
|
41 |
weight_dtype = torch.bfloat16
|
@@ -66,8 +68,6 @@ text_encoder.to(device, dtype=weight_dtype)
|
|
66 |
print("")
|
67 |
|
68 |
|
69 |
-
|
70 |
-
device="cuda"
|
71 |
mean = torch.load(f"{models_path}/files/mean.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|
72 |
std = torch.load(f"{models_path}/files/std.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|
73 |
v = torch.load(f"{models_path}/files/V.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|
|
|
36 |
|
37 |
|
38 |
|
39 |
+
|
40 |
+
device="cuda"
|
41 |
pretrained_model_name_or_path = "stablediffusionapi/realistic-vision-v51"
|
42 |
revision = None
|
43 |
weight_dtype = torch.bfloat16
|
|
|
68 |
print("")
|
69 |
|
70 |
|
|
|
|
|
71 |
mean = torch.load(f"{models_path}/files/mean.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|
72 |
std = torch.load(f"{models_path}/files/std.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|
73 |
v = torch.load(f"{models_path}/files/V.pt", map_location=torch.device('cpu')).bfloat16().to(device)
|