mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-27 09:27:24 +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:
|
||||
buf = BytesIO()
|
||||
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)
|
||||
create_resp = await sync_op(
|
||||
cls,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user