Code Monkey home page Code Monkey logo

Comments (10)

vladmandic avatar vladmandic commented on July 23, 2024 2

both issues are resolved:

  • faceid invalid prompt handling
  • insightface installer with correct dependencies

from automatic.

vladmandic avatar vladmandic commented on July 23, 2024 1

this is a package dependency version issue, looks like something got "upgraded" to bad version outside of sdnext control.

I'll check.
once I find the culprit, it will be a easy fix.

from automatic.

brknsoul avatar brknsoul commented on July 23, 2024 1

This error is caused by insightface installing modules that are "too new".
We'll counter this by manually installing insightface, and then specific versions of these modules.

Open command prompt in stable-diffusion-webui-amdgpu-forge folder.

Run these commands one after the other;

venv\Scripts\activate
pip install insightface
pip install albumentations==1.4.3
pip install pydantic==1.10.15

Close command prompt and run webui-user.bat again.

from automatic.

brknsoul avatar brknsoul commented on July 23, 2024 1

That sounds like a separate problem and should be in its own issue report.

from automatic.

vladmandic avatar vladmandic commented on July 23, 2024 1

it sounds like you still have svd model loaded even if you're not using it - you need to select some other model to load.
It's just thar SVD is too big, so can't "store" normal model and then restore.

from automatic.

Biscuitbeard avatar Biscuitbeard commented on July 23, 2024

Man you guys work fast! Thanks Vlad, I've tried brknsoul's tip (looks like Pydantic was instlaled with a much higher version, 2.7 or something). However I can't get regular text to image to work any more after trying the SVD script in my last session.

It seems like it's somehow stuck in the SVD pipeline? If i run img2img it generates but then fails at the end saying required positional argument: 'num_frames'

If i try to run txt2img it simply fails with the following:

01:40:12-854513 WARNING Pipeline class change failed:
type=DiffusersTaskType.TEXT_2_IMAGE
pipeline=StableVideoDiffusionPipeline AutoPipeline
can't find a pipeline linked to
StableVideoDiffusionPipeline for None
01:40:12-883512 INFO Base: class=StableVideoDiffusionPipeline
01:40:12-923513 ERROR Control pipeline failed: type=controlnet units=0
error=StableVideoDiffusionPipeline.call() missing
1 required positional argument: 'image'
01:40:12-925514 ERROR Control: TypeError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\control\run.py:581 in c │
│ │
│ 580 │ │ │ │ │ │ if processed is None: │
│ > 581 │ │ │ │ │ │ │ processed: processing.Processed = process │
│ 582 │ │ │ │ │ │ else: │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\processing.py:192 in pr │
│ │
│ 191 │ │ │ with context_hypertile_vae(p), context_hypertile_unet(p): │
│ > 192 │ │ │ │ processed = process_images_inner(p) │
│ 193 │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\processing.py:312 in pr │
│ │
│ 311 │ │ │ │ │ from modules.processing_diffusers import process_ │
│ > 312 │ │ │ │ │ x_samples_ddim = process_diffusers(p) │
│ 313 │ │ │ │ else: │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\processing_diffusers.py │
│ │
│ 117 │ │ # base_args['image'] = set_latents(p) │
│ > 118 │ │ output = shared.sd_model(**base_args) # pylint: disable=not-c │
│ 119 │ │ if isinstance(output, dict): │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\venv\lib\site-packages\torch\ut │
│ │
│ 114 │ │ with ctx_factory(): │
│ > 115 │ │ │ return func(*args, **kwargs) │
│ 116 │
└─────────────────────────────────────────────────────────────────────────────┘
TypeError: StableVideoDiffusionPipeline.call() missing 1 required positional argument: 'image'

Might just be that a Stability Matrix update will be required to get the right requirements etc, but letting you know in case it's an issue you might want to fix. Thanks again!

from automatic.

Biscuitbeard avatar Biscuitbeard commented on July 23, 2024

Good point, if they don't look related I might have to raise it! Will try a fresh install for now though, I don't generally use SVD anyway 👍

from automatic.

Biscuitbeard avatar Biscuitbeard commented on July 23, 2024

Yeah, I figured it out - sorry for not realising sooner! now I'm getting a new error with the face models:

02:23:54-086844 ERROR Control pipeline failed: type=controlnet units=0
error='NoneType' object is not subscriptable
02:23:54-088844 ERROR Control: TypeError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\control\run.py:579 in c │
│ │
│ 578 │ │ │ │ │ │ │
│ > 579 │ │ │ │ │ │ processed = p.scripts.run(p, *p.script_args) │
│ 580 │ │ │ │ │ │ if processed is None: │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\scripts.py:483 in run │
│ │
│ 482 │ │ parsed = p.per_script_args.get(script.title(), args[script.ar │
│ > 483 │ │ processed = script.run(p, *parsed) │
│ 484 │ │ s.record(script.title()) │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\face_init_.py:119 in │
│ │
│ 118 │ │ │ from modules.face.faceid import face_id │
│ > 119 │ │ │ processed_images = face_id(p, app=app, source_images=inpu │
│ 120 │ │ │ processed = processing.Processed(p, images_list=processed │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\face\faceid.py:206 in f │
│ │
│ 205 │ │ │ │ p.iteration = i │
│ > 206 │ │ │ │ p.prompts = p.all_prompts[i * p.batch_size:(i + 1) * │
│ 207 │ │ │ │ p.negative_prompts = p.all_negative_prompts[i * p.bat │
└─────────────────────────────────────────────────────────────────────────────┘
TypeError: 'NoneType' object is not subscriptable``

Sorry for taking up your time here with tech support - I hope it's something useful to other users 😆

from automatic.

Biscuitbeard avatar Biscuitbeard commented on July 23, 2024

Cheers man!

Even on the latest build I'm still getting 'object is not subscriptable' errors using Photomaker, is it something wrong at my end?

16:24:01-380293 INFO Load model: time=20.57 load=16.73 move=3.84
native=1024 {'ram': {'used': 3.55, 'total': 31.93},
'gpu': {'used': 8.12, 'total': 24.0}, 'retries': 0,
'oom': 0}
16:24:01-389308 ERROR Control pipeline failed: type=controlnet units=0
error='NoneType' object is not subscriptable
16:24:01-390809 ERROR Control: TypeError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\control\run.py:579 in c │
│ │
│ 578 │ │ │ │ │ │ │
│ > 579 │ │ │ │ │ │ processed = p.scripts.run(p, *p.script_args) │
│ 580 │ │ │ │ │ │ if processed is None: │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\scripts.py:483 in run │
│ │
│ 482 │ │ parsed = p.per_script_args.get(script.title(), args[script.ar │
│ > 483 │ │ processed = script.run(p, *parsed) │
│ 484 │ │ s.record(script.title()) │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\face_init_.py:123 in │
│ │
│ 122 │ │ │ from modules.face.photomaker import photo_maker │
│ > 123 │ │ │ processed = photo_maker(p, input_images=input_images, tri │
│ 124 │ │ elif mode == 'InstantID': │
│ │
│ S:\STABLE DIFFUSION\Packages\SD.Next Web UI\modules\face\photomaker.py:21 i │
│ │
│ 20 │ trigger_ids = shared.sd_model.tokenizer.encode(trigger) + shared.s │
│ > 21 │ prompt_ids1 = shared.sd_model.tokenizer.encode(p.all_prompts[0]) │
│ 22 │ prompt_ids2 = shared.sd_model.tokenizer_2.encode(p.all_prompts[0]) │
└─────────────────────────────────────────────────────────────────────────────┘
TypeError: 'NoneType' object is not subscriptable``

EDIT: instantID now works though!

from automatic.

vladmandic avatar vladmandic commented on July 23, 2024

@Biscuitbeard can you try latest update, should be fixed now?

from automatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.