Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
24372b5
Add toggles to the UI to add flipped versions of the datasets, X, Y o…
jaretburkett Aug 24, 2025
f48d21c
Upgrade a LoRA rank if the new one is larger so users can increase th…
jaretburkett Aug 24, 2025
ea01a1c
Fixed a bug where samples would fail if merging in lora on sampling f…
jaretburkett Aug 25, 2025
119653c
Force width, height, and num frames to always be the proper sizes for…
jaretburkett Aug 25, 2025
37eda7b
Add a tab to the UI to show the config file for the job. Read only.
jaretburkett Aug 25, 2025
d0338b8
Allow dropping images directly into dataset folder without having to …
jaretburkett Aug 25, 2025
5ad190b
Improve UI for sample images when there are no samples
jaretburkett Aug 27, 2025
fd13bd7
Add a Download button on samples to download all the samples as a zip…
jaretburkett Aug 27, 2025
1f541bc
Changes to handle a different DFE arch
jaretburkett Aug 27, 2025
fc5b416
Switch order to save first, then sample.
jaretburkett Aug 27, 2025
9ef425a
Fixed issue with training qwen with cached text embeds with a batch s…
jaretburkett Aug 28, 2025
e334941
Updated runpod docs
jaretburkett Aug 28, 2025
056711d
Fix issue with wan22 14b that woudl load both transformers temporaril…
jaretburkett Aug 28, 2025
6fc9ec1
Added example config for training wan22 14b 24GB on images
jaretburkett Aug 28, 2025
193c1b2
Add a watcher to constantly check for stop signal from the UI. This w…
jaretburkett Aug 31, 2025
0f2239c
Add force sample toggle to the ui
jaretburkett Aug 31, 2025
7040d8d
Preperation for audio
jaretburkett Sep 2, 2025
85dcae6
Set full size control images to default true
jaretburkett Sep 2, 2025
f699f4b
Add ability to set transparent color for control images
jaretburkett Sep 2, 2025
6450467
Comment out fast stop watcher. Could potentiallty be causing some wei…
jaretburkett Sep 4, 2025
af6fdaa
Add ability to train a full rank LoRA. (experimental)
jaretburkett Sep 9, 2025
b95c17d
Add initial support for chroma radiance
jaretburkett Sep 10, 2025
3666b11
DEF for fake vae and adjust scaling
jaretburkett Sep 13, 2025
218f673
Added support for new concept slider training script to CLI and UI
jaretburkett Sep 16, 2025
24a576a
Regularize the slider targets.
jaretburkett Sep 17, 2025
2120dc5
Upgrade job to new ui trainer to fix issue with slider config showing…
jaretburkett Sep 17, 2025
e4ae97e
add dataset-level distillation-style regularization
squewel Sep 17, 2025
e27e229
add prior_reg flag to FileItemDTO
squewel Sep 17, 2025
3cdf50c
Merge pull request #426 from squewel/prior_reg
jaretburkett Sep 18, 2025
390e21b
Integrate dataset level trigger words and allow them to be cached. De…
jaretburkett Sep 18, 2025
20dfe1b
Small double tap of detach on qwen just for good measure
jaretburkett Sep 18, 2025
28728a1
Added experimental dfe 5
jaretburkett Sep 21, 2025
f744751
Add stepped loss type
jaretburkett Sep 22, 2025
454be09
Initial support for qwen image edit plus
jaretburkett Sep 24, 2025
1069dee
Added ui sopport for multi control samples and datasets. Added qwen i…
jaretburkett Sep 25, 2025
0eaa3d2
Merge pull request #434 from ostris/qwen_image_edit_plus
jaretburkett Sep 25, 2025
e04f55c
Fixed scaling issue with control images
jaretburkett Sep 26, 2025
be99063
Remove dropout from cached text embeddings even if used specifies it …
jaretburkett Sep 26, 2025
6da4172
Add extra detachments just to be sure on qiep
jaretburkett Sep 27, 2025
3b1f7b0
Allow user to set the attention backend. Add method to recomver from …
jaretburkett Sep 27, 2025
98d35f3
Add hidream ARA
jaretburkett Sep 27, 2025
f0646a0
Reworked ui sample image modal to show more information and function …
jaretburkett Sep 27, 2025
4e207d9
Add seed to the sample image modal
jaretburkett Sep 28, 2025
c20240b
Add advanced menu on job to allow user to do things like make a job a…
jaretburkett Sep 28, 2025
c233a80
Reqorked visibility toggle on samples, should help when dealing with …
jaretburkett Sep 28, 2025
ebadb32
On samples page, auto scroll to bottom on load. Added a floating butt…
jaretburkett Sep 29, 2025
2e9de5e
Add ability to delete samples from the ui
jaretburkett Sep 29, 2025
6a77b0c
Merge branch 'main' into gs/merge-main
gschoeni Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DEF for fake vae and adjust scaling
  • Loading branch information
jaretburkett committed Sep 13, 2025
commit 3666b112a89e8a82bff82c06dab59a2ead3072e3
3 changes: 2 additions & 1 deletion toolkit/models/FakeVAE.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ def __getitem__(cls, x):


class FakeVAE(nn.Module):
def __init__(self):
def __init__(self, scaling_factor=1.0):
super().__init__()
self._dtype = torch.float32
self._device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
self.config = Config()
self.config.scaling_factor = scaling_factor

@property
def dtype(self):
Expand Down
6 changes: 3 additions & 3 deletions toolkit/models/diffusion_feature_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ def forward(
stepped_latents = torch.cat(stepped_chunks, dim=0)

latents = stepped_latents.to(self.vae.device, dtype=self.vae.dtype)
scaling_factor = self.vae.config['scaling_factor'] if 'scaling_factor' in self.vae.config else 1.0
shift_factor = self.vae.config['shift_factor'] if 'shift_factor' in self.vae.config else 0.0

scaling_factor = self.vae.config.scaling_factor if hasattr(self.vae.config, 'scaling_factor') else 1.0
shift_factor = self.vae.config.shift_factor if hasattr(self.vae.config, 'shift_factor') else 0.0
latents = (latents / scaling_factor) + shift_factor
if is_video:
# if video, we need to unsqueeze the latents to match the vae input shape
Expand Down