lllyasviel / lllyasviel/ControlNet

Running tutorial_train.py on M1 pro giving issue

Open
#367 6 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
34.1k
Forks
3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with tutorial_train.py and reproduce the failure on an M1 Pro, recording the resource_tracker warning and MPSTemporaryNDArray assertion. Determine the relevant environment and input details, then document a confirmed resolution or the information needed for further diagnosis.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.