Omnibus commited on
Commit
4e43ca2
·
1 Parent(s): 9b91c9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -245,14 +245,14 @@ def check_load(inp_url,outp_vid,hid_box,start_f,end_f):
245
  def process_image_1(image):
246
  #print(image)
247
  #rand_im = uuid.uuid4()
248
- #cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
249
  #image = f"{rand_im}-vid_tmp_proc.png"
250
- image=Image.fromarray(image)
251
- out = esr(image, "realesr-general-x4v3", 0.5, True, 1)
252
 
253
  #out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=True, outscale=1)
254
- #out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
255
- #out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
 
256
  #out = esr.realesrgan1(image, "realesr-general-x4v3", 0.5, False, 2)
257
  print (out)
258
  out = Image.open(out)
 
245
  def process_image_1(image):
246
  #print(image)
247
  #rand_im = uuid.uuid4()
248
+ cv2.imwrite(f"{rand_im}-vid_tmp_proc.png", image)
249
  #image = f"{rand_im}-vid_tmp_proc.png"
250
+ #image=Image.fromarray(image)
 
251
 
252
  #out = esr.realesrgan1(img=image, model_name="realesr-general-x4v3", denoise_strength=0.5, face_enhance=True, outscale=1)
253
+ out = os.path.abspath(f"{rand_im}-vid_tmp_proc.png")
254
+ out_url = f'https://omnibus-vid-url-dl-mod.hf.space/file={out}'
255
+ out = esr(out_url, "realesr-general-x4v3", 0.5, True, 1)
256
  #out = esr.realesrgan1(image, "realesr-general-x4v3", 0.5, False, 2)
257
  print (out)
258
  out = Image.open(out)