stable-diffusion-webui/modules
brkirch 16b4509fa6 Add numpy fix for MPS on PyTorch 1.12.1
When saving training results with torch.save(), an exception is thrown:
"RuntimeError: Can't call numpy() on Tensor that requires grad. Use tensor.detach().numpy() instead."

So for MPS, check if Tensor.requires_grad and detach() if necessary.
2022-12-17 04:22:58 -05:00
..
api
codeformer
hypernetworks
textual_inversion
artists.py
call_queue.py
codeformer_model.py
deepbooru_model.py
deepbooru.py
devices.py Add numpy fix for MPS on PyTorch 1.12.1 2022-12-17 04:22:58 -05:00
errors.py
esrgan_model_arch.py
esrgan_model.py
extensions.py
extras.py
face_restoration.py
generation_parameters_copypaste.py
gfpgan_model.py
images.py
img2img.py
interrogate.py
localization.py
lowvram.py
masking.py
memmon.py
modelloader.py
ngrok.py
paths.py
processing.py
prompt_parser.py
realesrgan_model.py
safe.py
script_callbacks.py
script_loading.py
scripts.py
sd_hijack_checkpoint.py
sd_hijack_clip.py
sd_hijack_inpainting.py
sd_hijack_open_clip.py
sd_hijack_optimizations.py
sd_hijack_unet.py
sd_hijack.py
sd_models.py
sd_samplers.py
sd_vae.py
shared.py
styles.py
txt2img.py
ui_extensions.py
ui_tempdir.py
ui.py
upscaler.py