Sanket commited on
Commit
9196827
1 Parent(s): c4a0e56
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ class Generator(nn.Module):
76
  self.model3 = nn.Sequential(*model3)
77
 
78
  # Output layer
79
- model4 = [nn.ReflectionPad2d(3), nn.Conv2d(256, output_nc, 7)]
80
  if sigmoid:
81
  model4 += [nn.Sigmoid()]
82
 
@@ -104,7 +104,7 @@ model2.eval()
104
  def predict(input_img, ver):
105
  input_img = Image.open(input_img)
106
  transform = transforms.Compose(
107
- [transforms.Resize(1080, Image.BICUBIC), transforms.ToTensor()]
108
  )
109
  input_img = transform(input_img)
110
  input_img = torch.unsqueeze(input_img, 0)
 
76
  self.model3 = nn.Sequential(*model3)
77
 
78
  # Output layer
79
+ model4 = [nn.ReflectionPad2d(3), nn.Conv2d(64, output_nc, 7)]
80
  if sigmoid:
81
  model4 += [nn.Sigmoid()]
82
 
 
104
  def predict(input_img, ver):
105
  input_img = Image.open(input_img)
106
  transform = transforms.Compose(
107
+ [transforms.Resize(512, Image.BICUBIC), transforms.ToTensor()]
108
  )
109
  input_img = transform(input_img)
110
  input_img = torch.unsqueeze(input_img, 0)