Skip to content

add automatic marking nodes - #342

Draft
wangshier108 wants to merge 3 commits into
masterfrom
add_automatic_marking
Draft

add automatic marking nodes#342
wangshier108 wants to merge 3 commits into
masterfrom
add_automatic_marking

Conversation

@wangshier108

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Comment thread nodes_automatic_marking.py Outdated

NODE_CLASS_MAPPINGS = {
"BizyAirLoadImagesFromFolder": BizyAirLoadImagesFromFolder,
"BizyAirMultiJoyCaption2": BizyAirMultiJoyCaption2,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接在原来的节点上加功能就行

Comment thread nodes_automatic_marking.py Outdated
captions = []
input_images = [img for img in image]

with ThreadPoolExecutor(max_workers=5) as executor:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里跑 200张 图片 大概耗时多久,有时间也可以实验下异步的耗时

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试异步208张差不多得90s,请求多了之后有些会有500得错误

@github-actions

Copy link
Copy Markdown

Your code does not meet the Black formatting standards.
Please run python3 -m pip install -r dev_requirements.txt && pre-commit install && pre-commit run --all-files to format your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants