Skip to content

u/LetterRip

In this archive from Sep 2022 to Feb 2026

6
posts
250
comments
1
media
1.2k
score

Top posts

In the style of 'Artist name' often isn't about the artist but the period and region of the name

The vector embeddings of names are associated with time periods and ethnicities, not for the specific artist per say, but certain name variants are popular in some time periods and not others; and in some regions and not others. Thus using any old variant of an Italian name will give a painting them...

7 points0 comments
Open on Reddit

Open image set of a non-celebrity that can be used for demoing Stable Diffusion tuning?

Is there a freely available set of images of a person that isn't a celebrity (and thus the model hasn't learned their image) that can be used for demoing and comparing training approaches (Dreambooth, LORA, Textual Inversion, Hypernetworks, etc.) and be included with or linked to models to show an e...

2 points5 comments
Open on Reddit

Top comments

This looks like straightforward implementation of supporting loading and using hypernetworks. While the code is the same, I think you are jumping to conclusions that it required copying.

the variable names are 'forced' - q,k,v are the standard abbreviations for query, key, value extracted from a context. h_k, h_v are thus the obvious choices for hypernetwork_key, and hypernetwork_value

The 77 is how many tokens are allowed for clip for networks derived from CompVis Stable diffusions default.

See this code referencing the max length, the 77 is a well known max token limit for the implementation

maxlen = self.wrapped.max_length # you get to stay at 77

https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/1371d7608b402d6f15c200ec2f5fde4579836a05/modules/sd_hijack.py

The noise_cond is implying that conditional noise is being used (and hence the need to add noise to the context in the next step).

The .1 multiplier is presumably standard throughout the codebase for noise_cond, and is presumably from the original implementation. If that isn't the case, tnis would be the only possible evidence of copying.

The if functions are standard idiomatic python.

Thus I see nothing here that would imply copying.

23 points

These should all reduce ram,

Try adding --use_8bit_adam --gradient_checkpointing --resolution 256 --train_batch_size 1 --sample_batch_size 1 --gradient_accumulation_steps 4

Try with and without --use_8bit_adam - sometimes it helps, sometimes it hurts. (If it helps it could help enormously)

And this should speed training without increasing ram

--mixed_precision bf16

See https://huggingface.co/docs/transformers/perf_train_gpu_one for details

16 points

Subreddits

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.