Spaces:
Build error
Build error
Commit Β·
9b1ec91
1
Parent(s): 3b5e117
update note
Browse files102 unmodified lines103104105106107108112 unmodified lines221222223224102 unmodified linestitle = "## Leffa: Learning Flow Fields in Attention for Controllable Person Image Generation"link = "[π Paper](https://arxiv.org/abs/2412.08486) - [π₯ Demo](https://huggingface.co/spaces/franciszzj/Leffa) - [π€ Model](https://huggingface.co/franciszzj/Leffa)"description = "Leffa is a unified framework for controllable person image generation that enables precise manipulation of both appearance (i.e., virtual try-on) and pose (i.e., pose transfer)."with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.red)).queue() as demo:gr.Markdown(title)112 unmodified linespose_transfer_gen_button.click(fn=leffa_predict_pt, inputs=[pt_src_image, pt_ref_image], outputs=[pt_gen_image])demo.launch(share=True, server_port=7860)102 unmodified lines103104105106107108109112 unmodified lines222223224225226227102 unmodified linestitle = "## Leffa: Learning Flow Fields in Attention for Controllable Person Image Generation"link = "[π Paper](https://arxiv.org/abs/2412.08486) - [π₯ Demo](https://huggingface.co/spaces/franciszzj/Leffa) - [π€ Model](https://huggingface.co/franciszzj/Leffa)"description = "Leffa is a unified framework for controllable person image generation that enables precise manipulation of both appearance (i.e., virtual try-on) and pose (i.e., pose transfer)."note = "Note: The models used in the demo are trained solely on academic datasets. Virtual try-on uses VITON-HD, and pose transfer uses DeepFashion."with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.pink, secondary_hue=gr.themes.colors.red)).queue() as demo:gr.Markdown(title)112 unmodified linespose_transfer_gen_button.click(fn=leffa_predict_pt, inputs=[pt_src_image, pt_ref_image], outputs=[pt_gen_image])gr.Markdown(note)demo.launch(share=True, server_port=7860)
app.py+3