[diffusion] fix: offload text encoder model in image encoding stage (#18317)
This commit is contained in:
@@ -77,6 +77,7 @@ class ImageEncodingStage(PipelineStage):
|
||||
fields = [
|
||||
"image_processor",
|
||||
"image_encoder",
|
||||
"text_encoder",
|
||||
]
|
||||
for field in fields:
|
||||
processor = getattr(self, field, None)
|
||||
|
||||
Reference in New Issue
Block a user