mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-04 15:50:26 +01:00
More precise pipeline type discovery
This commit is contained in:
parent
07754f9f29
commit
83af6864d5
|
|
@ -83,9 +83,9 @@ def get_pipeline_type(pipe):
|
|||
str: 'zimage', 'qwenimage', or 'unknown'
|
||||
"""
|
||||
class_name = pipe.__class__.__name__
|
||||
if 'ZImage' in class_name:
|
||||
if class_name == 'ZImagePipeline':
|
||||
return 'zimage'
|
||||
elif 'QwenImage' in class_name:
|
||||
elif class_name == 'QwenImagePipeline':
|
||||
return 'qwenimage'
|
||||
else:
|
||||
return 'unknown'
|
||||
|
|
|
|||
Loading…
Reference in a new issue