Skip to content

u/thirteen-bit

In this archive from Nov 2023 to Jun 2026

1
posts
145
comments
1
media
371
score

Something is wrong.

I've never trained LTX but it uses gemma3-12b as text encoder?

That's 24Gb total in BF16 not quantized so 64Gb RAM should be more than enough to quantize text encoder: https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-unquantized

You may try to set te_path under model to already quantized version like unsloth/gemma-3-12b-it-qat-bnb-4bit

If I recall correctly ai-toolkit used bitsandbytes - then this version should just work?

1 points

Yes, that's the problem of living on the leading edge. Again, looking at my container setup - last rebuilt it a month ago.

When I started it was rebuilt 1-2 times per hour - ohh, new shiny node in this example workflow, let me add it, and again in a new workflow ...

3 points

Do you remember ultralytics supply chain attack? Or where there multiple?

Do not remember exactly, but I was lucky I didn't update comfyui during these as I had some face detection nodes using ultralytics.

After that I've migrated entire comfyui to podman container.

You never know what a dependency of a dependency of some obscure node will pull without rigorously checking it, not only before installation but each and every time you update.

Still, even quick visual check of the diff between revisions will probably miss some obfuscated payload.

3 points

I'm running it in podman, forked https://github.com/NarinderS/comfyui-podman some time ago and building up from that (major changes are adding nodes I use as submodules).

Running it on debian but it should work in WSL based podman too I expect as long as GPU passthrough to WSL works (it's probably on by default as long as you have recent NVidia Windows drivers installed).

Probably very similar setup can be achieved in docker.

Or even simpler idea - just create a disposable WSL machine for comfy? Disable /mnt/c sharing, share only specific directories for models and generated results?

3 points

Multiple GPU-s were discussed e.g. here: https://www.reddit.com/r/comfyui/comments/1k4xjxh/sanity_check_using_multiple_gpus_in_one_pc_via/

Regarding using laptop as the interface, ComfyUI is a web app so no problems with that. You can configure it to listen not only on localhost (127.0.0.1) but on a LAN interface (usually 192.168..) and access it from your LAN with a laptop or tablet (or phone but I've not tried that. Phone screen is too small for anything meaningful probably):

https://docs.comfy.org/installation/comfyui_portable_windows#2-setting-up-lan-access-for-comfyui-portable

If you need to access that machine remotely (so ComfyUI running on a home desktop, you're on a vacation with laptop) then you'll have to investigate VPN-s, same way as you would to access your Plex server remotely.

2 points

> using the same DPI on the 400 series as the 300 series would result in faster scanning

Should be faster, check these specs for scanning speeds, each resolution is faster on 400 vs 300.

https://www.canon-europe.com/business/products/scanners/flatbed-scanners/canoscan-lide-400/specifications/

https://www.canon-europe.com/business/products/scanners/flatbed-scanners/canoscan-lide-300/specifications/

Do not forget to account for more scan lines at higher resolution if you'll calculate the scan time at different resolutions.

> Also, will it auto crop the photo?

This is software specific so I do not know if Canon's default software supports it.

You can try the manufacturer software first and if it does not work the way you like then look for something like this (first search result for image search, not used this software, just to illustrate with screenshots): https://www.hamrick.com/support/how-to-guides/how-to-scan-multiple-photos-on-a-flatbed.html

1 points

I've got myself a USB flatbed scanner only without printer for that (and for some paper documents scanning). CanoScan LiDE 300.

It's 66-75€ at the moment as I can see and higher resolution model (not actually relevant for photos), CanoScan LiDE 400, is around 90€. Regarding resolution limit of physical photos see for example this thread: https://www.reddit.com/r/DataHoarder/comments/1jgf3l8/canon_lide_300_or_400/

It scans decent images and is cheap. It is not bundled with the printer - so no problems like not scanning if printer ink is dried out or something.

Windows software: not sure but there're some drivers & software section on Canon's support site that should include the basics (scan and save to image file). But I'm using it on Linux so not sure how good this software is.

Anyway, on Windows after scanner driver is installed it should be possible to scan into any image editor that supports scanner input using something like File>Acquire>From Scanner or Camera or some similar menu item.

2 points

Maybe that was the objective?

Something along these lines (LLM inflated prompt :D)

This image is a striking, high-contrast photograph capturing the essence of emotional void. It features a young girl, her face a mask of utter stillness, devoid of any discernible emotion. Her eyes, lifeless and unblinking, gaze straight ahead, reflecting a profound emptiness. Her pale skin appears almost translucent, emphasizing the absence of warmth or vitality. Her hair, a tousled mass of dark shadows, frames her face, adding to the somber atmosphere. The background is a stark, barren landscape, devoid of color or life, reinforcing the theme of desolation. The lighting is harsh and unforgiving, casting deep shadows that accentuate the girl's frozen expression. Her posture is rigid, as if she were a statue carved from ice, immovable and unfeeling. The overall composition of the photograph conveys a sense of being trapped in a moment of eternal stasis, where time and emotion have ceased to exist. This powerful image evokes a chilling sense of isolation and inner desolation, leaving a lasting impression on the viewer.

1 points

Hope that I understood your question correctly :D - see e.g. this discussion for some ideas:

https://github.com/huggingface/diffusers/issues/3726

There's a link in the discussion to this repository:

https://github.com/kukaiN/vae_finetune

That has some fixes for mixed precision training errors.

You may try a web searches for "VAE training", "Stable Diffusion VAE fine tuning" and so on to get more results than looking just for AutoencoderKL.

Otherwise I'm not sure there are a lot of people training these models from scratch, most I've seen are fine-tunes of the existing Stability AI VAE.

1 points

Could you describe or link to what is a Sigma Vision?

Preferrably with a text description or repository link like github or huggingface as unfortunately I can't understand the video guides at all.

Top web search results are lens manufacturer, event planning business (lights and audio equipment rental), graphic design company and so on.

1 points

reddit? image subs specifically :D

instagram, flickr, imgur

Ready-made datasets, e.g.

https://www.reddit.com/r/StableDiffusion/comments/1hx350p/37k_2mp_general_purpose_image_dataset_from_cc12m/

Or search huggingface for datasets with modality "image":

https://huggingface.co/datasets?modality=modality:image&sort=trending

Kaggle maybe?

https://www.kaggle.com/datasets?tags=13207-Computer+Vision

7 points

Well, looking at the amount of people who are unable to read through the text file (even if it is a README.md in the root of the repository) it looks like a perfect protection against 90%+ of users.

By the way, never used these type of extensions (having read some time in the past year or two that LoRA quality is usually better) but now as these are censored I'll just have to try all of them out. Just because these are being restricted. Streisand effect anyone?

21 points

You'll have to check the github README (first page of the project on github, scroll below the list of files) for each tool but all of them support at least Flux, most of them support also SDXL, SD1.5, Pixart Sigma, SD3.5 and some other model architectures.

Basic procedure is the same for all of these but usually differences are in:

  • settings management (GUI tools are point and click, command line ones usually require some configuration file, either JSON or TOML or a huge list of command line arguments that becomes the configuration file by itself)
  • underlying libraries (e.g. kohya's scripts use own implementation of LoRA and SimpleTuner uses diffusers peft, at the same time both of them support LyCORIS LoRA-s, e.g. LoKr or LoHa)
  • VRAM optimization techniques (some tools are easier to set up for better VRAM management on low VRAM GPU-s)
  • Dataset management (how image files should be organized, how easy it's to setup tag shuffle in captions etc)
  • Supported optimizers and learning rate schedulers differ.
2 points

Forge is for inference (creating images using LoRA-s).

There is no need to abandon anything as these are different tools.

For local (and remote too) Flux training the following scripts are widely used:

There are certainly others too, listed are only ones I've tried or seen referenced here.

3 points

systemd service is an option too.

Written a lot of text with examples but reddit destroyed it switching between markdown and rich editor.

So something like this:

https://neilwebber.com/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/

Just add a User= field to the [Service] section so it will not run as root.

Like how it's done here: https://gist.github.com/torch2424/a2d4632831db4327b02d839147685007

File can be in /etc/systemd/system/webui.service

Contents like:

[Unit]
Description=SD Webui service
After=network.target

[Service]
Type=simple
User=[USER HERE]
ExecStart=/home/[USER HOME HERE]/stable-diffusion-webui-forge/webui.sh
Restart=always
 
[Install]
WantedBy=multi-user.target

Useful commands after creating the file:

# Reload unit files
sudo systemctl daemon-reload
# Enable service
sudo systemctl enable [SERVICE NAME].service
# Start immediately
sudo systemctl start [SERVICE NAME].service
# Check status
sudo systemctl status [SERVICE NAME].service
1 points

What's your error?

  1. Add your user to groups `video` and `render`

  2. Do not forget to export `HSA_OVERRIDE_GFX_VERSION` according to your GPU if it's a gaming card: https://github.com/comfyanonymous/ComfyUI/#for-amd-cards-not-officially-supported-by-rocm

  3. Torch install: Activate virtual environment for the project you're trying to install and follow Linux / Rocm from https://pytorch.org/get-started/locally/

  4. Continue with installation (most probably `pip install -r requirements.txt` depending on what UI you're trying to install).

UI specific guides:

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.