PBJ commited on
Commit
cf2d0a2
1 Parent(s): 6f300fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ from fastai.vision.models.unet import DynamicUnet
317
 
318
  def build_res_unet(n_input=1, n_output=2, size=256):
319
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
320
- body = create_body(resnet18, pretrained=True, n_in=n_input, cut=-2)
321
  net_G = DynamicUnet(body, n_output, (size, size)).to(device)
322
  return net_G
323
 
 
317
 
318
  def build_res_unet(n_input=1, n_output=2, size=256):
319
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
320
+ body = create_body(resnet18(), pretrained=True, n_in=n_input, cut=-2)
321
  net_G = DynamicUnet(body, n_output, (size, size)).to(device)
322
  return net_G
323