21 Commits

Author SHA1 Message Date
Bradley Reynolds
4568030df2 Convert latents_ubyte to 8-bit unsigned int before converting to CPU (#6300)
* Convert latents_ubyte to 8-bit unsigned int before converting to CPU

* Only convert to unint8 if directml_enabled
2025-01-28 08:22:54 -05:00
Chenlei Hu
9bffd67fc9 Lint unused import (#5973)
* Lint unused import

* nit

* Remove unused imports

* revert fix_torch import

* nit
2024-12-09 15:24:39 -05:00
comfyanonymous
d17896bfe8 Fast previews for mochi. 2024-11-10 03:39:35 -05:00
comfyanonymous
2f249dc06a Use torch.nn.functional.linear in RGB preview code.
Add an optional bias to the latent RGB preview code.
2024-09-29 11:27:49 -04:00
Silver
0f7e7191a1 Make live preview size a configurable launch argument (#4649)
* Make live preview size a configurable launch argument

* Remove import from testing phase

* Update cli_args.py
2024-09-03 19:16:38 -04:00
Dr.Lt.Data
ce165da821 support TAESD3 (#3738) 2024-06-16 02:03:53 -04:00
comfyanonymous
11ec2f298f Small refactor of preview code. 2024-05-31 11:18:37 -04:00
comfyanonymous
82c5d2c02d Speed up TAESD preview. 2024-05-24 02:37:57 -04:00
comfyanonymous
94a508adc2 Fix OSX latent2rgb previews. 2024-05-22 13:56:28 -04:00
comfyanonymous
7aad5422a6 Slightly faster latent2rgb previews. 2024-05-19 17:42:35 -04:00
comfyanonymous
a6cc6597c8 Make --preview-method auto default to the fast latent2rgb previews. 2024-05-19 11:45:36 -04:00
comfyanonymous
96f30a079c Replace more prints with logging. 2024-03-11 00:58:49 -04:00
comfyanonymous
eeceef948d Add taesd and taesdxl to VAELoader node.
They will show up if both the taesd_encoder and taesd_decoder or taesdxl
model files are present in the models/vae_approx directory.
2023-11-21 12:54:19 -05:00
Jedrzej Kosinski
f1e8309b89 Fix TAESD preview to only decode first latent, instead of all 2023-10-29 13:30:23 -05:00
Yukimasa Funaoka
74dc9ecc66 Supports TAESD models in safetensors format 2023-10-10 13:21:44 +09:00
comfyanonymous
de1158883e Refactor sampling related code. 2023-09-27 16:45:22 -04:00
comfyanonymous
5d9b731cf9 Support models without previews. 2023-09-16 12:59:54 -04:00
comfyanonymous
dd46c9e941 Move image encoding outside of sampling loop for better preview perf. 2023-07-19 18:06:58 -04:00
Dr.Lt.Data
49aacb2e98 fix: Image.ANTIALIAS is no longer available. (#847)
* modify deprecated api call

* prevent breaking old Pillow users

* change LANCZOS to BILINEAR
2023-07-08 02:36:48 -04:00
comfyanonymous
6d80c5ed30 Add support for TAESD decoder for SDXL. 2023-06-25 02:38:14 -04:00
comfyanonymous
d421e5d610 Refactor previews into one command line argument.
Clean up a few things.
2023-06-06 02:13:05 -04:00