modelscope / modelscope/DiffSynth-Studio

diffsynth2.0 bug ImportError: cannot import name 'ModelManager' from 'diffsynth'

Open
#1,146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

diffsynth2.0 bug ImportError: cannot import name 'ModelManager' from 'diffsynth'

Python 3.10.0 (default, Mar 3 2022, 09:58:08) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

from diffsynth import ModelManager
miniforge3/envs/DiffSynth/lib/python3.10/site-packages/torch/cuda/init.py:61: FutureWarning: The pynvml package is deprecated. Please install nvidia-ml-py instead. If you did not install pynvml directly, please report this to the maintainers of the package that installed pynvml for you.
import pynvml # type: ignore[import]
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'ModelManager' from 'diffsynth' DiffSynth-Studio/diffsynth/init.py)

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 the import shown in the report and inspect DiffSynth-Studio/diffsynth/init.py to see how ModelManager is exposed. Reproduce the import in the reported Python 3.10 environment, then verify that the intended public import works without the reported ImportError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.