[Model] Nemotron Parse 1.1 Support (#30864)
Signed-off-by: amitz-nv <203509407+amitz-nv@users.noreply.github.com> Signed-off-by: Michael Goin <mgoin64@gmail.com> Co-authored-by: Michael Goin <mgoin64@gmail.com>
This commit is contained in:
@@ -42,8 +42,11 @@ class ImageAsset:
|
||||
)
|
||||
|
||||
@property
|
||||
def pil_image(self, ext="jpg") -> Image.Image:
|
||||
image_path = self.get_path(ext)
|
||||
def pil_image(self) -> Image.Image:
|
||||
return self.pil_image_ext(ext="jpg")
|
||||
|
||||
def pil_image_ext(self, ext: str) -> Image.Image:
|
||||
image_path = self.get_path(ext=ext)
|
||||
return Image.open(image_path)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user