Spaces:
Sleeping
Sleeping
update visitor badge.
Browse files113 unmodified lines114115116117118119120121122123124125124 unmodified lines250251252253254255256113 unmodified linesimg = cv2.imread(str(image), cv2.IMREAD_COLOR)print('\timage size:', img.shape)upscale = int(upscale) # covert type to intif upscale > 4: # avoid momory exceeded due to too large upscaleupscale = 4if upscale > 2 and max(img.shape[:2])>1000: # avoid momory exceeded due to too large img resolutionupscale = 2if max(img.shape[:2]) > 1500: # avoid momory exceeded due to too large img resolutionupscale = 1background_enhance = Falseface_upsample = False124 unmodified lines<a href="https://github.com/sczhou"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/sczhou?style=social" alt="Github Follow"></a></div><center><img src='https://visitor-badge.laobi.icu/badge?page_id=sczhou/CodeFormer' alt='visitors'></center>"""demo = gr.Interface(113 unmodified lines114115116117118119120121122123124125124 unmodified lines250251252253254255256113 unmodified linesimg = cv2.imread(str(image), cv2.IMREAD_COLOR)print('\timage size:', img.shape)upscale = int(upscale) # convert type to intif upscale > 4: # avoid memory exceeded due to too large upscaleupscale = 4if upscale > 2 and max(img.shape[:2])>1000: # avoid memory exceeded due to too large img resolutionupscale = 2if max(img.shape[:2]) > 1500: # avoid memory exceeded due to too large img resolutionupscale = 1background_enhance = Falseface_upsample = False124 unmodified lines<a href="https://github.com/sczhou"><img style="margin-top:0.5em; margin-bottom:2em" src="https://img.shields.io/github/followers/sczhou?style=social" alt="Github Follow"></a></div><center><img src='https://visitor-badge-sczhou.glitch.me/badge?page_id=sczhou/CodeFormer' alt='visitors'></center>"""demo = gr.Interface(
app.py+5-5