realesrgan cpu fix hopefully

main
Christopher Williams 3 years ago
parent dd9f9be146
commit 9ff8100ea7

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

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

Loading…
Cancel
Save