CivArchive
    CrystaliTIXL - v1.2
    Preview 2429885
    Preview 2429886
    Preview 2429887
    Preview 2429892
    Preview 2429888
    Preview 2429890
    Preview 2429891
    Preview 2429893
    Preview 2429889
    Preview 2429895
    Preview 2429894
    Preview 2429897
    Preview 2429896
    Preview 2429899
    Preview 2429902
    Preview 2429901
    Preview 2429900
    Preview 2429903
    Preview 2429904
    Preview 2429905

    UPDATE: 2024-MAR-03

    A complete redo-from-start.

    Trigger: cs-cr1stal-v2

    This embedding adds a colorful glassy/crystalline effect to your generated images. Generally you should use the trigger at or near the start of your prompts.

    For short prompts you’ll usually get a glass figurine result.

    For longer prompts the embedding should affect your main subject and perhaps some other minor objects. It may add faceted gems here and there.

    Occasionally it causes the main subject to be missing - don’t know why, but I’ve observed the same thing happening with other TIs and LoRAs. Guess it’s just part of the fun of SDXL :-)

    For this embedding, using color terms such as ruby, amethyst, sapphire etc is generally better than using red, purple, blue etc.

    Sometimes the embedding adds feathers. No idea why.

    Weighting from 0.8 <---> 1.2 worked fine but I found little need for weighting in a1111. If you’re using ComfyUI you might need to weight upwards. I don’t know why, but several ComfyUI users have told me they needed to up-weight embeddings in general.

    Generally I’ve been using it with:

    Euler A or DPM++ 2M Karras

    width x height: either 1024x1024 or values that multiply to approx 1 megapixel

    30 <---> 50 steps

    cfg from 7 <---> 10

    Hires.fix:

    Latent (nearest-exact) scaling between 1.25 and 1.75, steps=30, denoise=0.7

    Can give some fantastic images but the high denoise risks mutation/duplication.

    or

    4X-UltraSharp scaling between 1.25 and 1.75, steps=30, denoise=0.4

    The denoise is high emough to add some extra detail without risking too much mutation/duplication.

    Models:

    mostly tested with Crystal Clear XL model:

    https://civarchive.com/models/122822?modelVersionId=133832

    Also got good results with Juggernaut 9, Artium 2, Pixelwave 8, Polyhedron 3, and ZavyChroma.

    This embedding worked well in combination with all the LoRAs and embeddings I tried. Using multiple LoRAs in one prompt with this embedding also worked well.

    [PUBLISHEDTOCIVITAIONLY]

    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

    UPDATE: 10 Sep 2023

    This embedding adds crystal and/or gem effects to SDXL generated images. The low step count means it’s not subtle, but I hope it shows there’s untapped potential for SDXL embeddings.

    The downloadable “kcrstal17xl-step00002000.safetensors” is 2000 steps, batch=1, trained on a set of fifty 1024x1024 images using kohya_ss. If I can bear the slooooooow training time I’ll update this page with a more refined embedding in the future.

    The showcase is in pairs of automatic1111 webui outputs:

    with the embedding, without the embedding

    The showcase images use the Crystal Clear XL model:

    https://civarchive.com/models/122822?modelVersionId=133832

    Prompting has been a bit annoying, perhaps because I don’t really have a feel for the changes from Stable Diffusion v1.5 to SDXL. The prompts for the showcase images are mostly in the form:

    kcrstal17xl analog realistic __art styles 1__ colour photo of a __crystal_test_1__, very detailed, award-winning

    Wildcard __art styles 1__ is a list of art styles such as “Impressionism”.

    Wildcard __crystal_test_1__ is a list of short phrases such as “frog on a deckchair”.

    You can weight the embedding up or down - I generally use values between 0.6 and 1.2. Strangely, I’ve found that a weighting of 0.1 still has a noticeable effect.

    = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

    03 Sep 2023

    This is a proof-of-concept rather than a polished embedding. Maybe it should be an Article rather than a normal resource page?

    The downloadable “kcrstal17xl-step00001200.safetensors” is just 1200 steps, batch=1, trained on a set of fifty 1024x1024 images. If I can bear the slooooooow training time I’ll update this page with a more refined embedding in the future.

    The embedding adds crystal and/or gem effects to SDXL generated images. The low step count means it’s not subtle, but I hope it shows there’s untapped potential for SDXL embeddings.

    The showcase is in pairs of ComfyUI outputs:

    with the embedding, without the embedding

    and then 2 pairs of the mess that a1111 v1.6.0 outputs:

    saved image, screencap of “Approx NN” preview

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Rambling explanation...

    I’m quite impressed with the output from SDXL and I wanted to convert/recreate my SD v1.5 embeddings to work with SDXL.

    The Train tab in automatic1111 webui was what I used to make CrystaliTI:

    https://civarchive.com/models/135403/crystaliti

    and I hoped the recent v1.6.0 of a1111 would add SDXL training. Nope. And not likely to happen either according to this:

    https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/11857#discussioncomment-6480804

    The obvious answer seemed to be kohya_ss:

    https://github.com/bmaltais/kohya_ss

    I’ve never used it, so the sheer amount of config options was a bit of a shock! First thing I tried was to recreate CrystaliTI in kohya_ss. That didn’t get off to a good start, but thanks to:

    https://civarchive.com/articles/618/tutorial-kohya-ss-dreambooth-ti-textual-inversion-embedding-creation

    I got there in the end. Thumbs-up to @Desi_Cafe for the above tutorial.

    The kohya_ss TI is different from my original CrystaliTI of course, but it’s similar enough that I’m OK with it.

    Next step was to change the kohya_ss settings to use SDXL and point it at 1024x1024 versions of my 50 training images. 21 hours later, kohya_ss has managed 1240 steps out of 2000 (batch=1).

    That’s just over 1min/it. :-(

    By comparison, I think recreating CrystaliTI ran at about 0.5s/it.

    I was expecting (guessing!) a slowdown of between 4 and 16 times. Not >100 times slower :-(

    The PC I’m using is:

    Nvidia 3060/12GB (not the Ti version), Ryzen 7-2700 (8c/16t), 64GB system RAM, multiple SSDs, Win10pro.

    While kohya_ss is making the SDXL embedding, it’s using all 12GB of the 3060 + 7GB of “Shared GPU memory”. I guess using the shared RAM (i.e. system RAM) is one reason it’s so slooooooow?

    Perhaps there are some better settings I can use in kohya_ss? A quick google shows contradictory/incomplete info so if anyone has any suggestions of what options in the current kohya_ss can help with VRAM consumption... I’m all ears.

    Kohya_ss is set to save the embedding every 50 steps, so I’ve been able to copy them over to my backup machine: 2060/6GB, i7-10750H (6c/12t), 16GB system RAM, multiple SSDs, Win10pro. It can generate SDXL images in the a1111 webui (v1.6.0) if I use --lowvram. Generally about 2mins per pic in a1111.

    I tried the SDXL embedding in ComfyUI (current portable version, no custom nodes).

    And here we are - it looks like creating SDXL embeddings is doable, but slow. My toy budget is not going to manage a 4090 anytime soon, so unless I can find a way of speeding up creation on the 3060/12 I guess I won’t be making many embeddings.

    If any kohya_ss experts have read this far, I’ve added my config to the downloads in the hope some kind person might be able to suggest something (anything!) that would speed up the generation process.

    Description

    This 2000 step embedding is more proof-of-concept than anything special. It's a TI so you should be able to rename the file to change the trigger word.

    FAQ

    Comments (5)

    DrivebyDriverSep 16, 2023· 3 reactions
    CivitAI

    Thank you for the "rambling explanation!" I've been waiting for training to start working in 1111 for awhile, but like you said, doesn't seem like a priority. Any chance you can share your settings for kohya? I've only succeed in producing CUDA errors so far. :-(

    chromesun
    Author
    Sep 18, 2023· 1 reaction

    @DrivebyDriver if you look at v1.0 of this CrystaliTIXL embedding you'll see a downloadable file tagged as "training data". It's actually a zip with my kohya settings: kcrstal17xl.json. JSON files can be opened in a text editor. Perhaps if you compare my settings to yours it might help? But...

    I've spent the last several days wrestling with kohya_ss settings and I think I've got a better understanding now. I will be publishing an XL version of my MarblingTI in the next day or so... I'll include a section on kohya settings... managed to get down from about 1min/iteration to 5sec/iteration!

    Are you wanting to train persons/objects or styles? I'm only doing styles so the info I publish will be geared towards SDXL style TIs. I have not tried to train for people or objects.

    In case it's helpful: two settings that made a big difference for me in kohya_ss were:

    (1) make sure "Gradient checkpointing" in Parameters-Advanced is ticked (big memory saver!)

    (2) if you're doing SDXL, make sure "No half VAE" in Parameters is ticked

    DrivebyDriverSep 19, 2023

    @chromesun i'm looking at styles also. I will take a look at the json file and I wasn't checking gradient checkpointing, so maybe that will get me the rest of the way. I will also be on the lookout for your marbling TI. Thanks so much!

    chromesun
    Author
    Oct 1, 2023· 1 reaction

    @DrivebyDriver Had to redo-from-start the marbling (conflation with SDXL inbuilt understanding of "marbling") but it's done now:

    https://civitai.com/models/154898/marblingtixl

    I hope you've managed to get further with your kohya_ss settings. I've listed all my settings in the MarblingTIXL post in case that's of use to you or anyone trying SDXL style TIs.

    DrivebyDriverOct 12, 2023· 1 reaction

    @chromesun i kept getting CUDA errors, but I'll take a look at your settings and see what I can try differently. Thank you!

    TextualInversion
    SDXL 1.0

    Details

    Downloads
    545
    Platform
    CivitAI
    Platform Status
    Available
    Created
    9/10/2023
    Updated
    5/12/2026
    Deleted
    -
    Trigger Words:
    kcrstal17xl-step00002000

    Files

    kcrstal17xl-step00002000.safetensors

    Mirrors

    Available On (1 platform)

    Same model published on other platforms. May have additional downloads or version variants.