Install this extension via the ComfyUI Manager by searching
for ComfyUi-Ollama-YN
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyUi-Ollama-YN in the search bar
After installation, click the Restart button to
restart ComfyUI. Then, manually
refresh your browser to clear the cache and access
the updated list of nodes.
Visit
ComfyUI Online
for ready-to-use ComfyUI environment
ComfyUi-Ollama-YN integrates custom ComfyUI Nodes with the Ollama Python client to enhance interaction and provide improved prompt descriptors for stable diffusion.
ComfyUi-Ollama-YN Introduction
ComfyUi-Ollama-YN is an integrated extension designed to enhance the prompt word generation process for AI artists using ComfyUI. By leveraging the capabilities of the ComfyUI-Prompt-MZ and comfyui-ollama projects, this extension ensures that the generated prompts are more consistent with the requirements of stable diffusion. This can be particularly useful for AI artists who need to generate high-quality prompts for their creative projects, making the process more streamlined and efficient.
How ComfyUi-Ollama-YN Works
ComfyUi-Ollama-YN works by integrating various models and functionalities to generate and refine prompt words. It uses pre-trained models to deduce prompt words from images, answer questions, and embellish text prompts. The extension allows users to switch between different models to achieve the best results for their specific needs. By using simple commands, users can load and run different models, making the extension versatile and adaptable to various creative workflows.
ComfyUi-Ollama-YN Features
1. Image Prompt Deduction
This feature allows you to generate prompt words based on an input image. The default model used for this function is the llava model. If you have a better model, you can change it by updating the model name in the settings.
This feature enables a simple question and answer functionality. The default model for this function is the llama3 model. You can switch to a different model by changing the model name in the settings.
ComfyUi-Ollama-YN supports various models that can be used for different functionalities. Here are some of the models you can use:
llama3:8b-instruct-q4_K_M - Ideal for instructional prompts.
llama3 - General-purpose model for various tasks.
phi3 - Another versatile model for different applications.
phi3:3.8b-mini-instruct-4k-q4_K_M - A smaller, more efficient model for instructional tasks.
phi3:3.8b-mini-instruct-4k-fp16 - A variant of the phi3 model optimized for performance.
llava - Default model for image prompt deduction.
You can switch between these models by updating the model name in the settings.
What's New with ComfyUi-Ollama-YN
Updates
5/15/2024: Added keep_alive support. This feature allows the model to remain in video memory for a specified duration, improving performance for repeated tasks.
7/15/2024: Added support for extra model names, allowing users to add and switch between custom models easily.
These updates enhance the flexibility and performance of the extension, making it more user-friendly and efficient for AI artists.
Troubleshooting ComfyUi-Ollama-YN
Common Issues and Solutions
Error: No model found
Solution: Ensure that you have installed the required models as described in the installation section. Use commands like ollama run llama3:8b-instruct-q4_K_M to load the models.
Model not loading
Solution: Check if the model name is correctly specified in the settings. Ensure that the model files are in the correct directory.
Performance issues
Solution: Use the keep_alive feature to keep models in video memory for a specified duration, reducing load times for repeated tasks.
Frequently Asked Questions
How do I switch models?
Update the model name in the settings to switch to a different model.
Can I use custom models?
Yes, you can add custom models by specifying their names in the settings.
Learn More about ComfyUi-Ollama-YN
For more information, tutorials, and community support, you can visit the following resources:
ComfyUI-Prompt-MZ GitHub Repository
These resources provide additional documentation, examples, and community forums where you can ask questions and get support from other AI artists and developers.