lllyasviel / lllyasviel/sd-forge-layerdiffuse

ImportError: cannot import name 'memory_management' from 'backend'

Open
#120 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.1k
Forks
352
PR merge metrics
No merged PRs in 30d

Description

*** Error loading script: forge_layerdiffusion.py
Traceback (most recent call last):
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\modules\scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\extensions\sd-forge-layerdiffuse\scripts\forge_layerdiffusion.py", line 11, in
from lib_layerdiffusion.utils import rgba2rgbfp32, to255unit8, crop_and_resize_image, forge_clip_encode
File "D:\DEV\AI-PROJECTS\stable-diffusion-webui-forge\extensions\sd-forge-layerdiffuse\lib_layerdiffusion\utils.py", line 3, in
from backend import memory_management
ImportError: cannot import name 'memory_management' from 'backend' (unknown location)

---

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 extensions/sd-forge-layerdiffuse/scripts/forge_layerdiffusion.py and lib_layerdiffusion/utils.py, then trace the backend import reported in the traceback. Reproduce script loading through modules/scripts.py and modules/script_loading.py. Done means the extension loads without the reported ImportError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.