Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -48,6 +48,10 @@ if torch.cuda.is_available():
|
|
48 |
previewer_state_dict = torch.load("previewer/previewer_v1_100k.pt", map_location=torch.device('cpu'))["state_dict"]
|
49 |
previewer.load_state_dict(previewer_state_dict)
|
50 |
def callback_prior(i, t, latents, kwargs):
|
|
|
|
|
|
|
|
|
51 |
print(i, t, latents, kwargs)
|
52 |
output = previewer(latents)
|
53 |
output = numpy_to_pil(output.clamp(0, 1).permute(0, 2, 3, 1).float().cpu().numpy())
|
|
|
48 |
previewer_state_dict = torch.load("previewer/previewer_v1_100k.pt", map_location=torch.device('cpu'))["state_dict"]
|
49 |
previewer.load_state_dict(previewer_state_dict)
|
50 |
def callback_prior(i, t, latents, kwargs):
|
51 |
+
print("i", i)
|
52 |
+
print("t", t)
|
53 |
+
print("latents", latents)
|
54 |
+
print("kwargs", kwargs)
|
55 |
print(i, t, latents, kwargs)
|
56 |
output = previewer(latents)
|
57 |
output = numpy_to_pil(output.clamp(0, 1).permute(0, 2, 3, 1).float().cpu().numpy())
|