Visit ComfyUI Online for ready-to-use ComfyUI environment
Select between local model path or repository ID for loading models, simplifying source management in AI art projects.
The Local_Or_Repo_Choice
node is designed to help you select between using a local model path or a repository ID for loading a model. This node is particularly useful when you have models stored locally and want to switch between them and models available in online repositories. It simplifies the process of specifying the model source, ensuring that you can easily manage and access your models without needing to manually adjust paths or repository IDs. The node checks the validity of the provided repository ID and ensures that the local model path is correctly formatted, making it a convenient tool for managing model sources in your AI art projects.
The local_model_path
parameter allows you to specify the path to your locally stored model. This path should point to the directory where your model files are located. If no local model is found in the default directory, a placeholder message will be shown. This parameter is crucial for cases where you prefer to use a model stored on your local machine rather than downloading it from an online repository. There are no specific minimum or maximum values, but the path should be valid and accessible.
The repo_id
parameter is used to specify the ID of the repository from which you want to load the model. By default, this is set to "THUDM/cogvlm2-llama3-chat-19B"
. If you leave this parameter empty, the node will attempt to use the local model path. However, if you provide a repository ID, it must be in the correct format (e.g., username/repository
). This parameter is essential for accessing models stored in online repositories, ensuring you can leverage the latest updates and versions available.
The repo_id
output parameter returns the repository ID that will be used to load the model. This can either be the ID you provided or a path derived from your local model path if the repository ID was left empty. This output is important as it confirms the source of the model being used, allowing you to verify that the correct model is being loaded for your tasks.
local_model_path
is correctly set and points to a valid directory containing your model files to avoid errors.repo_id
, make sure it follows the correct format (e.g., username/repository
) to prevent format-related errors.repo_id
if you are unsure about which repository to use, as it provides a reliable starting point.repo_id
is empty and the local_model_path
does not point to a valid model directory.repo_id
or ensure that your local_model_path
points to a directory containing the model files.repo_id
does not follow the expected format (e.g., it does not contain a /
).repo_id
is in the correct format, such as username/repository
.repo_id
contains backslashes, which are not allowed.repo_id
with forward slashes to correct the format.© Copyright 2024 RunComfy. All Rights Reserved.