Coder Social home page Coder Social logo

SDXL models trained w/ "One Trainer" are rejected w/ warning, "Warning model_a is SDNone but model_b is SDXL" about sd-webui-model-mixer HOT 3 OPEN

CCpt5 avatar CCpt5 commented on August 29, 2024
SDXL models trained w/ "One Trainer" are rejected w/ warning, "Warning model_a is SDNone but model_b is SDXL"

from sd-webui-model-mixer.

Comments (3)

CCpt5 avatar CCpt5 commented on August 29, 2024 1

Here's one to test with:

OT trained model export that reports "SDOne":
https://drive.google.com/file/d/1OLHk8JhS9cRqGX_UcsPvosuAWZ6TEY22/view?usp=drive_link

Oddly I'm not getting the popup warning this morning, so it's probably an order of operations thing where model mixer will reject the 2nd model as not SDXL (or SDNone as it seems the OT trained models get listed).

The screenshots are from the A1111 extension "Model Toolkit" which also finds the checkpoints aren't standard SDXL. Not 100% sure why this is occurring, but they checkpoints themselves do work fine (and mix fine if allowed), so being able to use them w/o possibility of rejection would be good in my case.

Details

Screenshots from "Model Toolkit" checking this model that I'd taken a few days ago and posted in the OT discord:
header1
2-header

from sd-webui-model-mixer.

wkpark avatar wkpark commented on August 29, 2024 1

Here's one to test with:

OT trained model export that reports "SDOne": https://drive.google.com/file/d/1OLHk8JhS9cRqGX_UcsPvosuAWZ6TEY22/view?usp=drive_link

Oddly I'm not getting the popup warning this morning, so it's probably an order of operations thing where model mixer will reject the 2nd model as not SDXL (or SDNone as it seems the OT trained models get listed).

The screenshots are from the A1111 extension "Model Toolkit" which also finds the checkpoints aren't standard SDXL. Not 100% sure why this is occurring, but they checkpoints themselves do work fine (and mix fine if allowed), so being able to use them w/o possibility of rejection would be good in my case.

The uploaded model is a valid SDXL checkpoint. (model-toolkit does not detect SDXL correctly, without VAE or position_ids cases)

and for me, An OT checkpoint works as expected... so strange.

I guess, there are some bug exist to prevent a SDXL being detected correctly.

  • satetensors : 0.4.1.dev0 (you can force to use latest safetensors with the following fix.
diff --git a/requirements_versions.txt b/requirements_versions.txt
index 2a922f288..a574c7ca7 100644
--- a/requirements_versions.txt
+++ b/requirements_versions.txt
@@ -19,7 +19,7 @@ piexif==1.1.3
 psutil==5.9.5
 pytorch_lightning==1.9.4
 resize-right==0.0.2
-safetensors==0.3.1
+safetensors
 scikit-image==0.21.0
 spandrel==0.1.6
 tomesd==0.1.3

after this fix applied, you can update safetensors using pip install safetensors -U command.

currently, there are 3-ways to detect SDXL. check "conditioner.embedders.1.model.transformer.resblocks.9.mlp.c_proj.weight" tensor by

  • loading model header using safetensors for .safetensors files
  • loading model header using pickle module for old .ckpt files
  • directly check "conditioner.embedders.1.model.transformer.resblocks.9.mlp.c_proj.weight" for an already loaded models.

from sd-webui-model-mixer.

wkpark avatar wkpark commented on August 29, 2024

Are there any available/downloadable trained checkpoints?

from sd-webui-model-mixer.

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.