fix(worker): remove resolution from zoe as it seems to break it

This commit is contained in:
maryhipp 2024-03-18 13:42:00 -04:00 committed by psychedelicious
parent 8c6c33a315
commit 4e9207a10b

View File

@ -404,11 +404,9 @@ class ContentShuffleImageProcessorInvocation(ImageProcessorInvocation):
class ZoeDepthImageProcessorInvocation(ImageProcessorInvocation): class ZoeDepthImageProcessorInvocation(ImageProcessorInvocation):
"""Applies Zoe depth processing to image""" """Applies Zoe depth processing to image"""
image_resolution: int = InputField(default=512, ge=0, description=FieldDescriptions.image_res)
def run_processor(self, image): def run_processor(self, image):
zoe_depth_processor = ZoeDetector.from_pretrained("lllyasviel/Annotators") zoe_depth_processor = ZoeDetector.from_pretrained("lllyasviel/Annotators")
processed_image = zoe_depth_processor(image, image_resolution=self.image_resolution) processed_image = zoe_depth_processor(image)
return processed_image return processed_image