-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update extra_config.py #6441
base: master
Are you sure you want to change the base?
Update extra_config.py #6441
Conversation
added path normalization to full_path. needed to ensure that line 204 in folder_paths.py: `if full_folder_path in paths:` works properly on all OS.
change folders_path.models_dir to the base_path specified in extra_models_path.yaml if set. This ensure that models get correctly uploaded to the specified path across all custom_nodes.
In my opinion, a good start would be to modify existing tests or add a new test that explains why these changes are necessary. |
An example of why this is at least desirable is that without this, if a user sets a custom base_path and is_default to true, then the model downloader in comfyui-manager does not work as intended. You can try it yourself: set the base_path somewhere external to comfyui, set is_default to true, then try to download a model using comfyui-manager, or let a custom node download its own model (like comfyui-florence2). You'll see that the models get download inside the comfyui/model folder instead of the one you've set in base_path. |
Then this is not quite the correct implementation for this. There can be many be several records with Currently software that performs download should look under the specific keys in the global @comfyanonymous would you like to extend the functionality of the |
In #5864, @vvuk suggested that base paths be processed in the order they were defined in extra_models_paths.yaml, with the first to be defined taking precedence. |
(I'd appreciate some feedback/guidance in #5864 -- I'm not quite sure what the dev process is here, let me know if I should be doing something else for PR submissions!) |
added path normalization to full_path.
needed to ensure that line 204 in folder_paths.py:
if full_folder_path in paths:
works properly on all OS.