Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Feb 19, 2025
1 parent bfc49d2 commit bf9d548
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions deploy/deploy/models/omniparser/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import argparse
import base64
import io
import requests

from loguru import logger
Expand Down Expand Up @@ -42,19 +41,6 @@ def image_to_base64(image_path: str) -> str:
return base64.b64encode(image_file.read()).decode("utf-8")


def base64_to_image(base64_string: str) -> Image.Image:
"""Convert a base64 string to PIL Image.
Args:
base64_string: Base64 encoded string of an image
Returns:
Image.Image: PIL Image object
"""
img_data = base64.b64decode(base64_string)
return Image.open(io.BytesIO(img_data))


def plot_results(
original_image_path: str,
som_image_base64: str,
Expand Down

0 comments on commit bf9d548

Please sign in to comment.