Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|