EnigmaOfTheWorld commited on
Commit
8701e7e
β€’
1 Parent(s): cd02866

Updated image to sketch

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -144,6 +144,7 @@ except:
144
 
145
  ##################
146
  def transform(init_image,prompt,n_prompt):
 
147
  if cuda_error2==0:
148
  try:
149
  image1 = pipe1(prompt=prompt, image=init_image, negative_prompt=n_prompt, strength=0.8).images[0]
 
144
 
145
  ##################
146
  def transform(init_image,prompt,n_prompt):
147
+ init_image = init_image.resize((256,256), Image.ANTIALIAS)
148
  if cuda_error2==0:
149
  try:
150
  image1 = pipe1(prompt=prompt, image=init_image, negative_prompt=n_prompt, strength=0.8).images[0]