Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/al-swaiti/ComfyUI-OllamaGemini
/ functions
Functions
194 in github.com/al-swaiti/ComfyUI-OllamaGemini
⨍
Functions
194
◇
Types & classes
34
↓ 47 callers
Method
join
(self, bboxes_1, bboxes_2=None, bboxes_3=None)
ObjectDetectNode.py:877
↓ 23 callers
Function
log
Log message with prefix.
ObjectDetectNode.py:181
↓ 19 callers
Method
keys
(self)
prompt_stylerx.py:36
↓ 10 callers
Method
empty_output
(self, msg="")
VeoVideoGenerationNode.py:740
↓ 9 callers
Function
create_empty_audio
()
VeoVideoGenerationNode.py:118
↓ 8 callers
Method
empty_output
(self, msg="")
VeoVideoGenerationNode.py:199
↓ 8 callers
Method
empty_output
(self, msg="")
VeoVideoGenerationNode.py:433
↓ 6 callers
Function
_get_cached
(key)
list_models.py:53
↓ 6 callers
Function
pil2tensor
Convert PIL Image to tensor.
ObjectDetectNode.py:158
↓ 5 callers
Function
apply_prompt_template
(prompt, prompt_structure="Custom")
GeminiOllamaNode.py:43
↓ 5 callers
Method
create_empty_image
Create an empty black image tensor with proper format for ComfyUI
GeminiImageGenerationNode.py:181
↓ 4 callers
Function
extract_frames_and_audio
Extract frames and audio using PyAV
VeoVideoGenerationNode.py:63
↓ 4 callers
Function
pil2tensor
(image)
BRIA_RMBGx.py:24
↓ 4 callers
Function
pil2tensor
(image:Image)
svgnodex.py:31
↓ 4 callers
Function
tensor_to_genai_image
Convert ComfyUI tensor directly to genai Image format
VeoVideoGenerationNode.py:55
↓ 4 callers
Function
tensor_to_pil_image
Convert tensor to PIL Image with RGBA support
GeminiOllamaNode.py:302
↓ 4 callers
Function
update_config_key
(key, value)
GeminiOllamaNode.py:482
↓ 3 callers
Function
_fetch_lock_for
(key)
list_models.py:71
↓ 3 callers
Function
_set_cached
(key, value)
list_models.py:65
↓ 3 callers
Function
clear_memory
Clear CUDA memory.
ObjectDetectNode.py:191
↓ 3 callers
Function
get_api_keys
()
list_models.py:88
↓ 3 callers
Function
get_gemini_models
()
list_models.py:148
↓ 3 callers
Function
is_network_available
Quick check if network is available - returns within 1 second
list_models.py:80
↓ 3 callers
Function
process_audio
Process audio data for API submission with robust error handling
GeminiOllamaNode.py:343
↓ 3 callers
Method
replace_prompts
(self, positive_prompt, negative_prompt)
prompt_stylerx.py:10
↓ 3 callers
Method
select_random_styles
Randomly select styles from different categories
GeminiSmartPromptGenerator.py:199
↓ 3 callers
Function
tensor2pil
Convert tensor to PIL Image, handling various shapes.
ObjectDetectNode.py:135
↓ 2 callers
Method
_load_counters
Load counters from persistent file
GeminiOllamaNode.py:1557
↓ 2 callers
Method
_set_counter
Set counter for a path
GeminiOllamaNode.py:1583
↓ 2 callers
Method
_show_sam3_download_error
Show helpful error message for SAM3 download.
ObjectDetectNode.py:281
↓ 2 callers
Method
clear
Clear all cached models.
ObjectDetectNode.py:329
↓ 2 callers
Function
create_svg_preview
Create a very simple preview image for SVG
svgnodex.py:72
↓ 2 callers
Method
generate_random_base_prompt
Generate a random base prompt idea
GeminiSmartPromptGenerator.py:168
↓ 2 callers
Function
get_ollama_url
()
GeminiOllamaNode.py:471
↓ 2 callers
Function
get_openai_models
()
list_models.py:218
↓ 2 callers
Function
pil2tensor
(image)
BEN2_RMBGx.py:23
↓ 2 callers
Function
refine_guided_filter
Refine mask using Guided Filter.
ObjectDetectNode.py:500
↓ 2 callers
Function
resize_image
(image: Image.Image, size=(1024, 1024))
BRIA_RMBGx.py:27
↓ 2 callers
Function
sample_video_frames
Sample frames evenly from video tensor
GeminiOllamaNode.py:326
↓ 2 callers
Function
tensor2pil
(image)
BRIA_RMBGx.py:21
↓ 2 callers
Function
tensor_to_base64
Convert tensor to base64 encoded PNG
GeminiOllamaNode.py:319
↓ 1 callers
Function
RGB2RGBA
Combine RGB image with alpha mask.
ObjectDetectNode.py:176
↓ 1 callers
Method
_check_ben2_available
Check if ben2 package is installed
BEN2_RMBGx.py:42
↓ 1 callers
Function
_check_config_changed
()
list_models.py:36
↓ 1 callers
Method
_check_transformers_version
Check transformers version for compatibility
BRIA_RMBGx.py:38
↓ 1 callers
Function
_fetch_gemini_image_models_live
(fallback_models)
list_models.py:248
↓ 1 callers
Function
_fetch_gemini_models_live
(default_gemini_models)
list_models.py:101
↓ 1 callers
Function
_fetch_openai_models_live
(default_openai_models)
list_models.py:184
↓ 1 callers
Method
_get_counter
Get current counter for a path
GeminiOllamaNode.py:1577
↓ 1 callers
Method
_get_model_config
Helper to get configuration based on model name
GeminiImageGenerationNode.py:135
↓ 1 callers
Method
_get_sorted_images
Get sorted list of image files in directory
GeminiOllamaNode.py:1639
↓ 1 callers
Method
_init_cache
(self)
ObjectDetectNode.py:211
↓ 1 callers
Method
_save_counters
Save counters to persistent file
GeminiOllamaNode.py:1568
↓ 1 callers
Method
combine_styles
Combine multiple style elements into a cohesive prompt
GeminiSmartPromptGenerator.py:231
↓ 1 callers
Function
convert_with_vtracer
Convert image to SVG using vtracer with optimized parameters for best quality
svgnodex.py:111
↓ 1 callers
Method
ensure_random_seed
Ensure we use a new random seed that changes each run
GeminiSmartPromptGenerator.py:103
↓ 1 callers
Method
generate_content
(self, prompt, gemini_model, stream, thinking_budget=0, structure_output=False, prompt_structure="Custom", str
GeminiOllamaNode.py:1126
↓ 1 callers
Function
generate_trimap
Generate trimap from binary mask.
ObjectDetectNode.py:404
↓ 1 callers
Method
generate_unique_filename
(self, prefix, timestamp=False)
svgnodex.py:294
↓ 1 callers
Method
get_api_key
(self)
VeoVideoGenerationNode.py:189
↓ 1 callers
Method
get_api_key
(self)
VeoVideoGenerationNode.py:423
↓ 1 callers
Method
get_api_key
(self)
VeoVideoGenerationNode.py:730
↓ 1 callers
Method
get_birefnet
Load BiRefNet model - supports multiple variants.
ObjectDetectNode.py:315
↓ 1 callers
Method
get_claude_api_key
(self)
GeminiOllamaNode.py:865
↓ 1 callers
Function
get_gemini_api_key
()
GeminiOllamaNode.py:460
↓ 1 callers
Method
get_gemini_api_key
(self)
GeminiImageGenerationNode.py:142
↓ 1 callers
Function
get_gemini_image_models
Dynamically fetches a list of Gemini models that support image generation. Models (verified against the deprecation schedule on 2026-05-26):
list_models.py:304
↓ 1 callers
Method
get_ollama_models
(cls)
GeminiOllamaNode.py:1282
↓ 1 callers
Method
get_qwen_api_key
(self)
GeminiOllamaNode.py:531
↓ 1 callers
Method
get_sam3_semantic
Load SAM3 using HuggingFace transformers (official implementation). This uses the official facebook/sam3 model from transformers libr
ObjectDetectNode.py:224
↓ 1 callers
Method
get_style_categories
Return a list of available style categories from the data directory
GeminiSmartPromptGenerator.py:80
↓ 1 callers
Method
get_vitmatte
Load ViTMatte model.
ObjectDetectNode.py:302
↓ 1 callers
Function
is_thinking_model
Return True if the given model name supports thinking/reasoning config.
GeminiOllamaNode.py:513
↓ 1 callers
Method
load_model
(self, model_version)
BRIA_RMBGx.py:63
↓ 1 callers
Method
load_model
(self)
BRIA_RMBGx.py:217
↓ 1 callers
Method
load_model
Load BEN2 model from HuggingFace
BEN2_RMBGx.py:67
↓ 1 callers
Function
log
(message, message_type='info')
MathExpressionNode.py:95
↓ 1 callers
Function
optimize_svg
Optimize SVG content to reduce file size using Python-only methods
svgnodex.py:42
↓ 1 callers
Function
pil_to_genai_image
Convert PIL Image to google.genai types.Image format
VeoVideoGenerationNode.py:41
↓ 1 callers
Function
read_sizes
()
FLUXResolutions.py:47
↓ 1 callers
Function
refine_birefnet
Refine mask using BiRefNet models - best for hair and fine edges.
ObjectDetectNode.py:466
↓ 1 callers
Method
render_svg_content
Attempt to render the actual SVG content
svgnodex.py:301
↓ 1 callers
Method
render_svg_content
Attempt to render the actual SVG content
svgnodex.py:558
↓ 1 callers
Function
rgba_to_rgb
Convert RGBA image to RGB with white background
GeminiImageGenerationNode.py:12
↓ 1 callers
Function
rgba_to_rgb
Convert RGBA image to RGB with white background
GeminiOllamaNode.py:295
↓ 1 callers
Method
run
(self, text, delimiter, start_index, skip_every, max_count)
GeminiOllamaNode.py:1536
↓ 1 callers
Function
search_for_model
Smart search for model file in standard ComfyUI model directories. Prioritizes specific folders (e.g., models/sams) but falls back to root/ul
ObjectDetectNode.py:30
↓ 1 callers
Function
tensor2pil
(image)
BEN2_RMBGx.py:19
↓ 1 callers
Function
tensor2pil
(t_image: torch.Tensor)
svgnodex.py:34
↓ 1 callers
Method
tensor_to_base64
(self, image_tensor)
GeminiOllamaNode.py:541
↓ 1 callers
Function
tensor_to_pil_image
Convert tensor to PIL Image with RGBA support
GeminiImageGenerationNode.py:19
↓ 1 callers
Function
tensor_to_pil_image
Convert ComfyUI tensor to PIL Image
VeoVideoGenerationNode.py:26
Method
INPUT_TYPES
(cls)
GeminiImageGenerationNode.py:38
Method
INPUT_TYPES
(s)
clipsegx.py:23
Method
INPUT_TYPES
(s)
clipsegx.py:115
Method
INPUT_TYPES
(cls)
MathExpressionNode.py:118
Method
INPUT_TYPES
(cls)
BRIA_RMBGx.py:50
Method
INPUT_TYPES
(cls)
BRIA_RMBGx.py:205
Method
INPUT_TYPES
(cls)
GeminiOllamaNode.py:561
Method
INPUT_TYPES
(cls)
GeminiOllamaNode.py:876
next →
1–100 of 194, ranked by callers