mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-21 20:39:00 +08:00
Compare commits
No commits in common. "master" and "v1.10.0" have entirely different histories.
@ -1,9 +1,3 @@
|
|||||||
## 1.10.1
|
|
||||||
|
|
||||||
### Bug Fixes:
|
|
||||||
* fix image upscale on cpu ([#16275](https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/16275))
|
|
||||||
|
|
||||||
|
|
||||||
## 1.10.0
|
## 1.10.0
|
||||||
|
|
||||||
### Features:
|
### Features:
|
||||||
|
@ -41,7 +41,7 @@ def upscale_pil_patch(model, img: Image.Image) -> Image.Image:
|
|||||||
"""
|
"""
|
||||||
param = torch_utils.get_param(model)
|
param = torch_utils.get_param(model)
|
||||||
|
|
||||||
with torch.inference_mode():
|
with torch.no_grad():
|
||||||
tensor = pil_image_to_torch_bgr(img).unsqueeze(0) # add batch dimension
|
tensor = pil_image_to_torch_bgr(img).unsqueeze(0) # add batch dimension
|
||||||
tensor = tensor.to(device=param.device, dtype=param.dtype)
|
tensor = tensor.to(device=param.device, dtype=param.dtype)
|
||||||
with devices.without_autocast():
|
with devices.without_autocast():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user