realesrgan cpu fix hopefully

main
Christopher Williams 3 years ago
parent dd9f9be146
commit 9ff8100ea7

@ -14,7 +14,7 @@
"language_info": {
"name": "python"
},
"accelerator": "GPU"
"accelerator": "CPU"
},
"cells": [
{

@ -1295,7 +1295,7 @@ def upscale_with_realesrgan(image, RealESRGAN_upscaling, RealESRGAN_model_index)
scale=info.netscale,
model_path=info.location,
model=model,
half=True
half=False
)
upsampled = upsampler.enhance(np.array(image), outscale=RealESRGAN_upscaling)[0]

Loading…
Cancel
Save