Skip to content
Snippets Groups Projects
Commit e2ae74bf authored by Hyunseok_Sang's avatar Hyunseok_Sang
Browse files

Dall-E Api를 이용해 이미지의 투명 픽셀을 채우는 Service

parent e113f8ec
Branches
No related tags found
No related merge requests found
from services.api.dallE_api import DallEAPI
from utils.image.image_converter import ImageConverter
class OutpaintingService:
def outpaint_using_dallE(self, image, length):
"""
이미지의 투명픽셀을 채우는 메서드
"""
np_image = ImageConverter().convert_to_np_image(image)
outpainted_np_image = DallEAPI().outpainting(np_image, length)
return outpainted_np_image
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment