-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Refactor] ladi-vton model의 I/O 형식 변경 #33
- in memory로 input data를 불러들이는 방식으로 변경 - 기존에는 경로에 저장된 이미지를 읽는 방식이었음 - 함수의 input으로 parsing image, 3D keypoint dictionary, target과 garmetn의 image byte, garment mask 값이 들어감 related to #31
- Loading branch information
Showing
5 changed files
with
220 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
import io | ||
def PIL2Byte(image): | ||
image_bytes = io.BytesIO() | ||
image.save(image_bytes, format="JPEG") | ||
image_bytes = image_bytes.getvalue() | ||
return image_bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters