mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-29 02:17:52 +08:00
[Partner Nodes] hash video via memoryview to avoid memory copy
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
e3b8436a90
commit
bc1a2188e7
@ -317,7 +317,7 @@ async def _seedance_virtual_library_upload_video_asset(
|
|||||||
) -> str:
|
) -> str:
|
||||||
buf = BytesIO()
|
buf = BytesIO()
|
||||||
video.save_to(buf, format=Types.VideoContainer.MP4, codec=Types.VideoCodec.H264)
|
video.save_to(buf, format=Types.VideoContainer.MP4, codec=Types.VideoCodec.H264)
|
||||||
video_hash = hashlib.sha256(buf.getvalue()).hexdigest()
|
video_hash = hashlib.sha256(buf.getbuffer()).hexdigest()
|
||||||
public_url = await upload_video_to_comfyapi(cls, video, wait_label=wait_label)
|
public_url = await upload_video_to_comfyapi(cls, video, wait_label=wait_label)
|
||||||
create_resp = await sync_op(
|
create_resp = await sync_op(
|
||||||
cls,
|
cls,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user