Open SenshiSentou opened 6 months ago
As a sidenote, both this and the CUDA check code should probably be refactored, but I wanted to keep this PR as straight-forward as possible
Aaand after generating a bunch of images successfully, it started complaining about the bias type again. I'm not sure where that lives, so I'll have to look into that another time :(
This fixes the
RuntimeError: Placeholder storage has not been allocated on MPS device!
I was getting on my M1 Macbook Pro. I was still occasionally getting an error relating to the bias format seemingly at random (the best kind of error is an unpredictable one), but adding--no-half
to my launch params seems to have fixed that.This was my first time actually delving into torch code, so hopefully this is the correct approach?
Tested on A1111 v1.6.0-2-g4afaaf8a, python: 3.10.13, torch: 2.3.0.dev20231219, checkpoint: a3d7311d85
EDIT: Seems I forgot to commit the rename before pushing... oops ^.^; please rename
self_weight_cuda
toself_weight_mps
:p