lllyasviel / lllyasviel/stable-diffusion-webui-forge

prompt travel issue

Open
#2,254 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I'm getting the following error when I use prompt traveler?

`
Total progress: 12%|██████████████████
100%|#########################################################| 30/30 [00:11<00:00, 2.72it/s]4
[Unload] Trying to free 2866.12 MB for cuda:0 with 0 models keep loaded ... Current free memory is 1509.59 MB ... Unload model KModel Done.
[Memory Management] Target: IntegratedAutoencoderKL, Free GPU: 7007.73 MB, Model Require: 159.56 MB, Previously Loaded: 0.00 MB, Inference Require: 1024.00 MB, Remaining: 5824.17 MB, All loaded to GPU.
Moving model(s) has taken 0.70 seconds
*** Error running process: C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py
Traceback (most recent call last):
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\modules\scripts.py", line 844, in process
script.process(p, *script_args)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions\stable-diffusion-webui-two-shot\scripts\two_shot.py", line 557, in process
enabled, raw_divisions, raw_positions, raw_weights, raw_end_at_step, alpha_blend, *cur_weight_sliders = args
ValueError: not enough values to unpack (expected at least 6, got 0)

---
activating extra network lora with arguments [, , , ]: AttributeError
Traceback (most recent call last):
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions-builtin\sd_forge_lora\networks.py", line 94, in load_networks
net = load_network(name, network_on_disk)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions-builtin\sd_forge_lora\networks.py", line 63, in load_network
net.mtime = os.path.getmtime(network_on_disk.filename)
AttributeError: 'NoneType' object has no attribute 'filename'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\modules\extra_networks.py", line 135, in activate
extra_network.activate(p, extra_network_args)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions-builtin\sd_forge_lora\extra_networks_lora.py", line 45, in activate
networks.load_networks(names, te_multipliers, unet_multipliers, dyn_dims)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\extensions-builtin\sd_forge_lora\networks.py", line 96, in load_networks
errors.display(e, f"loading network {network_on_disk.filename}")
AttributeError: 'NoneType' object has no attribute 'filename'

[Unload] Trying to free 7390.16 MB for cuda:0 with 0 models keep loaded ... Current free memory is 6845.56 MB ... Unload model IntegratedAutoencoderKL Done.
[Memory Management] Target: KModel, Free GPU: 7006.50 MB, Model Require: 4897.05 MB, Previously Loaded: 0.00 MB, Inference Require: 1024.00 MB, Remaining: 1085.46 MB, All loaded to GPU.
Moving model(s) has taken 0.76 seconds
0%| | 0/30 [00:00
samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **extra_params_kwargs))
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\system\python\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\k_diffusion\sampling.py", line 595, in sample_dpmpp_2m
denoised = model(x, sigmas[i] * s_in, **extra_args)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\system\python\lib\site-packages\torch\nn\modules\module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\system\python\lib\site-packages\torch\nn\modules\module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\modules\sd_samplers_cfg_denoiser.py", line 199, in forward
denoised, cond_pred, uncond_pred = sampling_function(self, denoiser_params=denoiser_params, cond_scale=cond_scale, cond_composition=cond_composition)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\backend\sampling\sampling_function.py", line 333, in sampling_function
cond = compile_weighted_conditions(denoiser_params.text_cond, cond_composition)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\backend\sampling\condition.py", line 134, in compile_weighted_conditions
feed = cond.advanced_indexing(current_indices)
File "C:\Users\m.alsheikh\Downloads\webui_forge_cu121_torch231 (1)\webui\modules\prompt_parser.py", line 290, in advanced_indexing
result[k] = self[k][item]
RuntimeError: Inference tensors do not track version counter.`

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

The report spans scripts/prompt_travel.py, scripts/two_shot.py, sd_forge_lora/networks.py, and backend sampling code. Start by reproducing prompt travel and separate the two-shot, LoRA, and sampling failures shown in the tracebacks. Done means the reported prompt-travel run no longer produces these exceptions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
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.