JingyeChen22 commited on
Commit
b5d8429
1 Parent(s): c1029f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -623,8 +623,7 @@ def text_to_image_with_template(prompt,template_image,slider_step,slider_guidanc
623
  binary = gray.point(lambda x: 255 if x > 96 else 0, '1')
624
  template_image = binary.convert('RGB')
625
 
626
- #
627
- = transforms.ToTensor()
628
  image_tensor = to_tensor(template_image).unsqueeze(0).cuda().sub_(0.5).div_(0.5) # (b, 3, 256, 256)
629
 
630
  with torch.no_grad():
 
623
  binary = gray.point(lambda x: 255 if x > 96 else 0, '1')
624
  template_image = binary.convert('RGB')
625
 
626
+ # to_tensor = transforms.ToTensor()
 
627
  image_tensor = to_tensor(template_image).unsqueeze(0).cuda().sub_(0.5).div_(0.5) # (b, 3, 256, 256)
628
 
629
  with torch.no_grad():