Rahul8827 commited on
Commit
9d64062
1 Parent(s): de5543d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()))has_cuda = th.cuda.is_available()
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()