Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ if has_cuda:
|
|
18 |
model.convert_to_fp16()
|
19 |
model.to(device)
|
20 |
model.load_state_dict(load_checkpoint('base', device))
|
21 |
-
print('total base parameters', sum(x.numel() for x in model.parameters()))
|
22 |
def show_images(batch: th.Tensor):
|
23 |
""" Display a batch of images inline. """
|
24 |
scaled = ((batch + 1)*127.5).round().clamp(0,255).to(th.uint8).cpu()
|
|
|
18 |
model.convert_to_fp16()
|
19 |
model.to(device)
|
20 |
model.load_state_dict(load_checkpoint('base', device))
|
21 |
+
print('total base parameters', sum(x.numel() for x in model.parameters()))
|
22 |
def show_images(batch: th.Tensor):
|
23 |
""" Display a batch of images inline. """
|
24 |
scaled = ((batch + 1)*127.5).round().clamp(0,255).to(th.uint8).cpu()
|