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

【PaddlePaddle Hackathon 5th】No.81 Add Text2Image & Autolabel Gradio #189

Merged
merged 8 commits into from Oct 20, 2023

Conversation

Liyulingyue
Copy link
Contributor

@Liyulingyue Liyulingyue commented Sep 26, 2023

@Liyulingyue Liyulingyue changed the title 【PaddlePaddle Hackathon 5th】No.81 Add Text2Image Gradio 【PaddlePaddle Hackathon 5th】No.81 Add Text2Image&Autolabel Gradio Sep 27, 2023
@Liyulingyue Liyulingyue changed the title 【PaddlePaddle Hackathon 5th】No.81 Add Text2Image&Autolabel Gradio 【PaddlePaddle Hackathon 5th】No.81 Add Text2Image & Autolabel Gradio Sep 27, 2023
al_text_out = gr.Text(label = "标注信息")
al_button = gr.Button()
al_button.click(fn=al_fun, inputs = [al_image_in, al_text_in], outputs = [al_image_out, al_text_out])
with gr.Tab("批量标注"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个做成输入是文件目录,然后对目录下的图片进行

Copy link
Contributor Author

Choose a reason for hiding this comment

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

更新了~

Copy link
Collaborator

Choose a reason for hiding this comment

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

待测试后合入

Copy link
Collaborator

Choose a reason for hiding this comment

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

当前autolabel问题:
1.生成的结果提供json文件下载,批量的提供压缩包形式;
2.文件目录输入生存结果为空

tge_text_neg_in = gr.Text(label = "Negative Prompt")
tge_button = gr.Button()
tge_button.click(fn=tge_fun, inputs = [tge_image_in, tge_text_pos_in, tge_text_neg_in], outputs = [tge_image_out])
with gr.Tab("文本图像双引导图像生成"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

因版本升级,这个功能先下掉

applications/gradio_text2image.py Outdated Show resolved Hide resolved
applications/gradio_text2image.py Outdated Show resolved Hide resolved
@LokeZhou LokeZhou merged commit 5071474 into PaddlePaddle:develop Oct 20, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants