Commit Graph

68 Commits

Author SHA1 Message Date
filipstrand
4e2a10b1b9 Rewrite img2img latent creation to emphasize the linear interp between latent and noise 2024-10-29 19:19:59 +01:00
filipstrand
ea6202b49f Add img2img example in readme 2024-10-28 00:32:57 +01:00
Anthony Wu
960447f92e update type hint 2024-10-26 20:24:28 -07:00
Anthony Wu
98d7ef5751 update: do not require model arg, add controlnet_save_canny, fix bugs, add tests 2024-10-26 20:22:32 -07:00
Anthony Wu
ffaf562a8c fix type hint in test file 2024-10-26 10:29:33 -07:00
Anthony Wu
351cc8bbf1 support metadata files as CLI arg supplier 2024-10-20 09:18:49 -07:00
filipstrand
2ed0628e58 Light refactoring: Move latent creation to separate class 2024-10-20 11:49:43 +02:00
filipstrand
f08c667e1a Remove vae type alias from runtime_config.py 2024-10-20 11:05:45 +02:00
Anthony Wu
1160d4e8b2 controlnet files: revert the refactoring done in #77 2024-10-20 01:06:02 -07:00
Anthony Wu
6201a93d4a tests and fixes for image to image 2024-10-20 00:48:45 -07:00
Anthony Wu
f963b7a9b2 image to image implementation 2024-10-12 10:46:20 -07:00
filipstrand
9c7e857082 Add type hinting to CommandLineParser 2024-10-12 14:35:11 +02:00
Anthony Wu
796e9e8305 refactor argparser 2024-10-11 15:03:52 -07:00
Anthony Wu
9b6cd01171 introduce ruff isort 2024-10-10 11:56:14 -07:00
Filip Strand
faaf905667
Merge pull request #71 from anthonywu/typos-check
introduce pre-commit typos check
2024-10-10 20:31:21 +02:00
filipstrand
8ec5410a56 Mark stepwise feature as experimental for now 2024-10-10 07:43:19 +02:00
Anthony Wu
19867d5bb7 introduce pre-commit typos check 2024-10-09 14:20:49 -07:00
filipstrand
e908c1cede Add stepwise handler 2024-10-09 22:29:36 +02:00
Anthony Wu
5de208d1ba PR review 2024-10-06 14:59:15 -10:00
Anthony Wu
fcc9b21d19 option to save stepwise and composite images, add interruptibility 2024-09-23 15:20:25 -07:00
filipstrand
a942ca8d67 Rename controlnet path arg 2024-09-23 20:22:47 +02:00
filipstrand
ec8b42e521 Rename save arg 2024-09-23 20:22:30 +02:00
filipstrand
ebff19b48a Use None instead of empty string for image metadata 2024-09-23 20:13:35 +02:00
filipstrand
dfdd543227 Add controlnet example 2024-09-23 20:13:35 +02:00
filipstrand
91b0c466fb Avoid circular dep. issue (maybe better way to do this) 2024-09-23 20:13:35 +02:00
filipstrand
15ecaa7370 Rename util method 'save' to 'save_image' 2024-09-23 20:13:35 +02:00
filipstrand
3af6bcbfe1 Add ability to save the canny controlnet image early on in the generation
(useful for inspecting if edge detection is as expected)
2024-09-23 20:13:35 +02:00
filipstrand
7b4aab9c1b Move actual image saving logic to ImageUtil 2024-09-23 20:13:35 +02:00
filipstrand
d799a924c4 Light refactor of controlnet class 2024-09-23 20:13:35 +02:00
filipstrand
5737b27164 Save controlnet_image and mflux version in metadata 2024-09-23 20:13:35 +02:00
filipstrand
cda698df8d Move controlnet specific weight handling to separate class 2024-09-23 20:13:35 +02:00
filipstrand
8678102321 Fix controlnet input arg name and group controlnet arguments 2024-09-23 19:18:11 +02:00
filipstrand
56f0c8361d Add TOC and some emojis for the README and new controlnet section 2024-09-23 19:18:11 +02:00
filipstrand
3ac54a9f42 Add ability to save model with applied LoRA 2024-09-22 11:20:31 +02:00
Anthony Wu
8b47492f1b more qol suggestions 2024-09-21 15:03:35 -07:00
filipstrand
6ef9ceb259 Fix linting issues 2024-09-21 19:59:12 +02:00
filipstrand
9e6ace4cc3 Apply ruff formating (minor manual modifications to some files which are subsequently excluded) 2024-09-21 19:59:12 +02:00
filipstrand
abd7893612 Fix hidden_states in single_transformer_blocks for controlnet transformer 2024-09-21 14:38:33 +02:00
filipstrand
c170e89977 remove unnecessary imports 2024-09-21 10:39:01 +02:00
filipstrand
5a7157e7e8 Simplify import paths for controlnet file 2024-09-21 10:34:35 +02:00
filipstrand
e007402cfa Merge remote-tracking branch 'refs/remotes/mflux/main' into easy-import-dx 2024-09-21 10:33:36 +02:00
filipstrand
38c747b680 Extract model saving logic to separate class 2024-09-17 07:35:42 +02:00
filipstrand
a30dc4d5cc Rename image.py to generated_image.py 2024-09-17 07:35:42 +02:00
filipstrand
bce18747ff Fix formatting 2024-09-17 07:35:42 +02:00
filipstrand
fc8099e908 Move new controlnet module to its own file 2024-09-17 07:35:42 +02:00
filipstrand
ad6f4ca8af Create util class for controlnet 2024-09-17 07:35:42 +02:00
filipstrand
78bbf3d8fb Fix formatting and some warnings 2024-09-17 07:35:41 +02:00
filipstrand
25e375d45d Small additions and refactoring 2024-09-17 06:35:06 +02:00
Anthony Wu
43618154d3 remove apparently unnecessary import of the src/mflux directory 2024-09-16 15:04:30 -07:00
Anthony Wu
0812d6252c simplify import paths of frequently used items in scripts and demos 2024-09-16 10:27:04 -07:00