ControlNet icon indicating copy to clipboard operation
ControlNet copied to clipboard

Running tutorial_train.py on M1 pro giving issue

Open nimisha3005 opened this issue 2 years ago • 4 comments

I see the following warning and failed assertion before the program is killed:

UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d '

failed assertion [MPSTemporaryNDArray initWithDevice:descriptor:] Error: NDArray dimension length > INT_MAX

How can I resolve this issue? Please let me know if I need to share any more details

nimisha3005 avatar Apr 25 '23 06:04 nimisha3005

Same here, happens for example when using reference_only

Schaltfehler avatar May 14 '23 05:05 Schaltfehler

Same problem here. Reference only within ControlNet. Crashes Python every time and gives above error.

mynameisbill avatar May 15 '23 20:05 mynameisbill

Same, happens on all "reference" preprocessors on Mac.

jet3004 avatar May 17 '23 22:05 jet3004

If you use this as an extension of stable-diffusion-webui, deleting venv helped in my case.

Schaltfehler avatar May 24 '23 10:05 Schaltfehler

If you use this as an extension of stable-diffusion-webui, deleting venv helped in my case.

May i know how to deleting venv ? thanks

paradis513 avatar Jun 29 '23 13:06 paradis513

Just open your stable-diffusion-webui folder there should be a venv folder in there that you can delete. After that you can just run webui.sh which will install the needed environment again from scratch.

Schaltfehler avatar Jul 15 '23 13:07 Schaltfehler