memory_required+=(512*512*3)*image.element_size()*max(upscale_model.scale,1.0)*256.0#The 256.0 is an estimate of how much some of these models take, TODO: make it more accurate
memory_required+=(512*512*3)*image.element_size()*max(upscale_model.scale,1.0)*384.0#The 384.0 is an estimate of how much some of these models take, TODO: make it more accurate