PERF 调整并行执行数量保证效率最大化
This commit is contained in:
parent
db4515292e
commit
0c17ba7d0f
|
|
@ -575,8 +575,8 @@ with downloader_image.imports():
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@modal.concurrent(max_inputs=10)
|
@modal.concurrent(max_inputs=2)
|
||||||
async def video_match_video(target_video: MediaSource, reference_video: MediaSource, sentry_trace:SentryTransactionInfo) -> \
|
def video_match_video(target_video: MediaSource, reference_video: MediaSource, sentry_trace:SentryTransactionInfo) -> \
|
||||||
tuple[tuple[VideoFrame, VideoFrame, int, int], SentryTransactionInfo] | tuple[None, SentryTransactionInfo]:
|
tuple[tuple[VideoFrame, VideoFrame, int, int], SentryTransactionInfo] | tuple[None, SentryTransactionInfo]:
|
||||||
"""
|
"""
|
||||||
目标视频到参考视频中匹配
|
目标视频到参考视频中匹配
|
||||||
|
|
@ -667,8 +667,8 @@ with downloader_image.imports():
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@modal.concurrent(max_inputs=10)
|
@modal.concurrent(max_inputs=2)
|
||||||
async def image_match_video(target_image: MediaSource, reference_video: MediaSource, sentry_trace:SentryTransactionInfo) -> \
|
def image_match_video(target_image: MediaSource, reference_video: MediaSource, sentry_trace:SentryTransactionInfo) -> \
|
||||||
tuple[tuple[VideoFrame | None, int], SentryTransactionInfo] | tuple[None, SentryTransactionInfo]:
|
tuple[tuple[VideoFrame | None, int], SentryTransactionInfo] | tuple[None, SentryTransactionInfo]:
|
||||||
"""
|
"""
|
||||||
目标图片到参考视频中匹配
|
目标图片到参考视频中匹配
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue