Alex "mcmonkey" Goodwin
67a69da55f
pretty that up a tad
2024-10-03 14:02:09 -07:00
Alex "mcmonkey" Goodwin
6fca6e1746
prebuild should have its own executor
...
otherwise it can lock itself due to the very awkward hack of python threading instead of genuine async handling
2024-10-03 13:27:04 -07:00
Alex "mcmonkey" Goodwin
409f4b6583
minor cleanup
2024-10-03 13:17:56 -07:00
Alex "mcmonkey" Goodwin
ba90c6065c
pre-scan model lists
2024-10-03 13:11:22 -07:00
Alex "mcmonkey" Goodwin
587d0c95f2
add a max_workers value
...
the default is 32 limited by cpu core count, but we don't really care about core count here because this is for io, so just use 32
2024-10-03 13:01:12 -07:00
Alex "mcmonkey" Goodwin
00db33f6b7
use one persistent thread pool executor instead of generating new ones
2024-10-03 12:49:52 -07:00
Alex "mcmonkey" Goodwin
3c3ef3178c
Merge branch 'master' into async-file-list
2024-10-04 04:24:13 +09:00
Alex "mcmonkey" Goodwin
68bb885d22
add 'is_default' to model paths config ( #4979 )
...
* add 'is_default' to model paths config
including impl and doc in example file
* update weirdly overspecific test expectations
* oh there's two
* sigh
2024-09-19 08:59:55 -04:00
Alex "mcmonkey" Goodwin
5a00feae3c
handle python lambda behaviors
2024-09-19 21:02:21 +09:00
Alex "mcmonkey" Goodwin
c3d47aa429
clearer error message
2024-09-19 18:01:35 +09:00
Alex "mcmonkey" Goodwin
49f973bc93
minor improvement
2024-09-19 17:56:05 +09:00
Alex "mcmonkey" Goodwin
d659be7ef0
minor format
2024-09-19 17:49:29 +09:00
Alex "mcmonkey" Goodwin
a256213eb7
Merge branch 'master' into async-file-list
2024-09-19 17:46:52 +09:00
Alex "mcmonkey" Goodwin
a1e71cfad1
very simple strong-cache on model list ( #4969 )
...
* very simple strong-cache on model list
* store the cache after validation too
* only cache object_info for now
* use a 'with' context
2024-09-19 04:40:14 -04:00
Alex "mcmonkey" Goodwin
163bfff829
.shutdown isn't so friendly :(
2024-09-19 17:24:51 +09:00
Alex "mcmonkey" Goodwin
5d8a0b7afd
simplify async code with ThreadPoolExecutor
2024-09-19 17:12:50 +09:00
Alex "mcmonkey" Goodwin
b8022cf02b
use a threading.Event to make intent more explicit
2024-09-19 17:01:22 +09:00
Alex "mcmonkey" Goodwin
b35ad9aeff
discard aiofiles
2024-09-19 16:57:47 +09:00
Alex "mcmonkey" Goodwin
2deb55df06
one more cleanup
2024-09-19 02:32:07 +09:00
Alex "mcmonkey" Goodwin
e98b52bf53
other fix
2024-09-19 02:31:48 +09:00
Alex "mcmonkey" Goodwin
d6ba7ed4db
oops, fix sloppy refactor
...
"refactor right before committing" the whiskey said, "it'll be fine" it said. woopsie.
2024-09-19 02:05:49 +09:00
Alex "mcmonkey" Goodwin
34430b3509
[proof of concept] async model file listing
2024-09-19 01:30:16 +09:00
Alex "mcmonkey" Goodwin
254838f23c
add simple error check to model loading ( #4950 )
2024-09-17 03:57:17 -04:00
Robin Huang
b962db9952
Add cli arg to override user directory ( #4856 )
...
* Override user directory.
* Use overridden user directory.
* Remove prints.
* Remove references to global user_files.
* Remove unused replace_folder function.
* Remove newline.
* Remove global during get_user_directory.
* Add validation.
2024-09-12 08:10:27 -04:00
bymyself
e760bf5c40
Add content-type filter method to folder_paths ( #4054 )
...
* Add content-type filter method to folder_paths
* Add unit tests
* Hardcode webp content-type
* Annotate content_types as Literal["image", "video", "audio"]
2024-09-11 02:00:07 -04:00
Alex "mcmonkey" Goodwin
619263d4a6
allow current timestamp in save image prefix ( #4030 )
2024-09-09 02:55:51 -04:00
comfyanonymous
4f7a3cb6fb
unet -> diffusion_models.
2024-08-17 21:31:04 -04:00
PhilWun
2a02546e20
Add type hints to folder_paths.py ( #4191 )
...
* add type hints to folder_paths.py
* replace deprecated standard collections type hints
* fix type error when using Python 3.8
2024-08-06 21:59:34 -04:00
comfyanonymous
1589b58d3e
Basic Flux Schnell and Flux Dev model implementation.
2024-08-01 09:49:29 -04:00
Chenlei Hu
086ac75228
3.8 Compatible type annotation ( #3938 )
2024-07-03 19:31:46 -04:00
Chenlei Hu
9dd549e253
Add --no-custom-node cmd flag ( #3903 )
...
* Add --no-custom-node cmd flag
* nit
2024-07-01 17:54:03 -04:00
comfyanonymous
58f8388020
More proper fix for #3484 .
2024-05-16 00:11:01 -04:00
comfyanonymous
5d08802f78
Sync some minor changes from the other repo.
2024-04-19 03:43:09 -04:00
comfyanonymous
abc69cab45
Add a helpful warning for links that don't point anywhere.
2024-04-17 12:28:05 -04:00
comfyanonymous
9bf6061dfc
Switch prints to logging in folder_paths and add some extra debug.
2024-03-29 03:07:13 -04:00
comfyanonymous
d1533d9c0f
Add experimental photomaker nodes.
...
Put the model file in models/photomaker and use PhotoMakerLoader.
Then use PhotoMakerEncode with the keyword "photomaker" to apply the image
2024-01-24 09:51:42 -05:00
TFWol
1dab412c79
Add error handling to initial fix to keep cache intact
2024-01-14 15:06:33 -08:00
TFWol
4ab0392f70
Resolved crashing nodes caused by FileNotFoundError during directory traversal
...
- Implemented a `try-except` block in the `recursive_search` function to handle `FileNotFoundError` gracefully.
- When encountering a file or directory path that cannot be accessed (causing `FileNotFoundError`), the code now logs a warning and skips processing for that specific path instead of crashing the node (CheckpointLoaderSimple was usually the first to break). This allows the rest of the directory traversal to proceed without interruption.
2024-01-11 06:34:33 -08:00
pythongosssss
235727fed7
Store user settings/data on the server and multi user support ( #2160 )
...
* wip per user data
* Rename, hide menu
* better error
rework default user
* store pretty
* Add userdata endpoints
Change nodetemplates to userdata
* add multi user message
* make normal arg
* Fix tests
* Ignore user dir
* user tests
* Changed to default to browser storage and add server-storage arg
* fix crash on empty templates
* fix settings added before load
* ignore parse errors
2024-01-08 17:06:44 -05:00
comfyanonymous
144e6580a4
This cache timeout is pretty useless in practice.
2023-12-29 17:47:24 -05:00
comfyanonymous
d19de2753e
Merge branch 'fix_folders_handling' of https://github.com/fazo96/ComfyUI
2023-11-29 14:10:30 -05:00
David Jeske
edd6f75d3a
better error for invalid output paths
2023-11-26 13:10:31 -07:00
Enrico Fasoli
1964bf1e78
fix: folder handling issues
2023-11-23 22:24:58 +01:00
Jairo Correa
8d04978298
Allow all extensions if extension list is empty
2023-10-14 11:59:35 -03:00
comfyanonymous
20d3852aa1
Pull some small changes from the other repo.
2023-10-11 20:38:48 -04:00
Jairo Correa
63e5fd1790
Option to input directory
2023-10-04 19:45:15 -03:00
comfyanonymous
7df822212f
Allow checkpoints with .pt and .bin extensions.
2023-09-10 02:36:04 -04:00
comfyanonymous
21a563d385
Remove prints.
2023-09-05 23:46:37 -04:00
Michael Poutre
3e00fa4332
feat: Exclude .git when retrieving filename lists
...
In the future could support user provided excluded dirs via config file
2023-09-04 17:50:32 -07:00
Michael Poutre
d196847079
feat: Add support for excluded_dirs to folder_paths.recursive_search
...
Refactored variable names to better match what they represent
2023-09-04 17:50:32 -07:00