Ahsen Khaliq commited on
Commit
eeb6b38
1 Parent(s): c8a9d06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ def param2img_serial(
145
  device=this_canvas.device)
146
  selected_alphas = torch.zeros(selected_param.shape[0], 3, patch_size_y, patch_size_x, device=this_canvas.device)
147
  if selected_param[selected_decision, :].shape[0] > 0:
148
- selected_foregrounds[selected_decision, :, :, :], selected_alphas[selected_decision, :, :, :] = \\n param2stroke(selected_param[selected_decision, :], patch_size_y, patch_size_x, meta_brushes)
149
  selected_foregrounds = selected_foregrounds.view(
150
  b, selected_h, selected_w, 3, patch_size_y, patch_size_x).contiguous()
151
  selected_alphas = selected_alphas.view(b, selected_h, selected_w, 3, patch_size_y, patch_size_x).contiguous()
 
145
  device=this_canvas.device)
146
  selected_alphas = torch.zeros(selected_param.shape[0], 3, patch_size_y, patch_size_x, device=this_canvas.device)
147
  if selected_param[selected_decision, :].shape[0] > 0:
148
+ selected_foregrounds[selected_decision, :, :, :], selected_alphas[selected_decision, :, :, :] = param2stroke(selected_param[selected_decision, :], patch_size_y, patch_size_x, meta_brushes)
149
  selected_foregrounds = selected_foregrounds.view(
150
  b, selected_h, selected_w, 3, patch_size_y, patch_size_x).contiguous()
151
  selected_alphas = selected_alphas.view(b, selected_h, selected_w, 3, patch_size_y, patch_size_x).contiguous()