mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
@@ -315,6 +315,8 @@ def interrogate(question, image, model_name):
|
||||
image.thumbnail((768, 768), Image.Resampling.HAMMING)
|
||||
if image.mode != 'RGB':
|
||||
image = image.convert('RGB')
|
||||
from modules import modelloader
|
||||
modelloader.hf_login()
|
||||
try:
|
||||
if model_name is None:
|
||||
shared.log.error(f'Interrogate: type=vlm model="{model_name}" no model selected')
|
||||
|
||||
Reference in New Issue
Block a user