-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add automatic marking nodes #342
base: master
Are you sure you want to change the base?
Conversation
Your code does not meet the Black formatting standards. |
nodes_automatic_marking.py
Outdated
|
||
NODE_CLASS_MAPPINGS = { | ||
"BizyAirLoadImagesFromFolder": BizyAirLoadImagesFromFolder, | ||
"BizyAirMultiJoyCaption2": BizyAirMultiJoyCaption2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
直接在原来的节点上加功能就行
nodes_automatic_marking.py
Outdated
captions = [] | ||
input_images = [img for img in image] | ||
|
||
with ThreadPoolExecutor(max_workers=5) as executor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里跑 200张 图片 大概耗时多久,有时间也可以实验下异步的耗时
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试异步208张差不多得90s,请求多了之后有些会有500得错误
Your code does not meet the Black formatting standards. |
No description provided.