Skip to content
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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

wangshier108
Copy link
Collaborator

No description provided.

Copy link

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.


NODE_CLASS_MAPPINGS = {
"BizyAirLoadImagesFromFolder": BizyAirLoadImagesFromFolder,
"BizyAirMultiJoyCaption2": BizyAirMultiJoyCaption2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

captions = []
input_images = [img for img in image]

with ThreadPoolExecutor(max_workers=5) as executor:
Copy link
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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

Copy link

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.

3 participants