Korean
Browse files
app.py
CHANGED
|
@@ -69,39 +69,47 @@ def create_demo(
|
|
| 69 |
""".strip()
|
| 70 |
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
-
gr.Markdown(f"# UNO by UNO
|
| 73 |
gr.Markdown(badges_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
with gr.Row():
|
| 75 |
with gr.Column():
|
| 76 |
-
prompt = gr.Textbox(label="
|
| 77 |
with gr.Row():
|
| 78 |
-
image_prompt1 = gr.Image(label="
|
| 79 |
-
image_prompt2 = gr.Image(label="
|
| 80 |
-
image_prompt3 = gr.Image(label="
|
| 81 |
-
image_prompt4 = gr.Image(label="
|
| 82 |
|
| 83 |
with gr.Row():
|
| 84 |
with gr.Column():
|
| 85 |
-
width = gr.Slider(512, 2048, 512, step=16, label="
|
| 86 |
-
height = gr.Slider(512, 2048, 512, step=16, label="
|
| 87 |
with gr.Column():
|
| 88 |
-
gr.Markdown("📌
|
| 89 |
-
gr.Markdown(
|
| 90 |
-
"The size closer to 512 is more stable,"
|
| 91 |
-
" and the higher size gives a better visual effect but is less stable"
|
| 92 |
-
)
|
| 93 |
|
| 94 |
-
with gr.Accordion("
|
| 95 |
with gr.Row():
|
| 96 |
-
num_steps = gr.Slider(1, 50, 25, step=1, label="
|
| 97 |
-
guidance = gr.Slider(1.0, 5.0, 4.0, step=0.1, label="
|
| 98 |
-
seed = gr.Number(-1, label="
|
| 99 |
|
| 100 |
-
generate_btn = gr.Button("
|
| 101 |
|
| 102 |
with gr.Column():
|
| 103 |
-
output_image = gr.Image(label="
|
| 104 |
-
download_btn = gr.File(label="
|
| 105 |
|
| 106 |
|
| 107 |
inputs = [
|
|
@@ -114,7 +122,7 @@ def create_demo(
|
|
| 114 |
outputs=[output_image, download_btn],
|
| 115 |
)
|
| 116 |
|
| 117 |
-
example_text = gr.Text("", visible=False, label="
|
| 118 |
examples = get_examples("./assets/examples")
|
| 119 |
|
| 120 |
gr.Examples(
|
|
|
|
| 69 |
""".strip()
|
| 70 |
|
| 71 |
with gr.Blocks() as demo:
|
| 72 |
+
gr.Markdown(f"# UNO by UNO 팀")
|
| 73 |
gr.Markdown(badges_text)
|
| 74 |
+
gr.Markdown("""
|
| 75 |
+
## UNO (Unified Numerous Objects) 저장소에 오신 것을 환영합니다!
|
| 76 |
+
|
| 77 |
+
UNO는 Bytedance에서 개발한 최첨단 이미지 생성 모델입니다. 이 데모 페이지에서는 **UNO-FLUX** 모델을 사용하여 텍스트 프롬프트와 최대 4개의 참조 이미지를 기반으로 이미지를 생성할 수 있습니다.
|
| 78 |
+
|
| 79 |
+
**주요 기능:**
|
| 80 |
+
* **텍스트-이미지 변환:** 입력한 텍스트 설명을 바탕으로 이미지를 생성합니다.
|
| 81 |
+
* **참조 이미지 활용:** 하나 이상의 참조 이미지를 제공하여 생성될 이미지의 스타일, 객체, 또는 구성을 제어할 수 있습니다.
|
| 82 |
+
* **다양한 옵션:** 생성 이미지의 크기, 스텝 수, 가이던스 강도 등을 조절하여 원하는 결과를 얻을 수 있습니다.
|
| 83 |
+
|
| 84 |
+
위의 뱃지들을 클릭하여 GitHub 저장소, 프로젝트 페이지, 관련 논문, Hugging Face 모델 및 데모 페이지로 이동할 수 있습니다.
|
| 85 |
+
""")
|
| 86 |
with gr.Row():
|
| 87 |
with gr.Column():
|
| 88 |
+
prompt = gr.Textbox(label="프롬프트", value="도시 속 잘생긴 여자")
|
| 89 |
with gr.Row():
|
| 90 |
+
image_prompt1 = gr.Image(label="참조 이미지 1", visible=True, interactive=True, type="pil")
|
| 91 |
+
image_prompt2 = gr.Image(label="참조 이미지 2", visible=True, interactive=True, type="pil")
|
| 92 |
+
image_prompt3 = gr.Image(label="참조 이미지 3", visible=True, interactive=True, type="pil")
|
| 93 |
+
image_prompt4 = gr.Image(label="참조 이미지 4", visible=True, interactive=True, type="pil")
|
| 94 |
|
| 95 |
with gr.Row():
|
| 96 |
with gr.Column():
|
| 97 |
+
width = gr.Slider(512, 2048, 512, step=16, label="생성 넓이")
|
| 98 |
+
height = gr.Slider(512, 2048, 512, step=16, label="생성 높이")
|
| 99 |
with gr.Column():
|
| 100 |
+
gr.Markdown("📌 모델은 512x512 해상도에서 학습되었습니다.\n512에 가까운 크기가 더 안정적이며, 더 높은 크기는 시각적 효과는 좋지만 안정성은 떨어집니다.")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
|
| 102 |
+
with gr.Accordion("고급 옵션", open=False):
|
| 103 |
with gr.Row():
|
| 104 |
+
num_steps = gr.Slider(1, 50, 25, step=1, label="스텝 수")
|
| 105 |
+
guidance = gr.Slider(1.0, 5.0, 4.0, step=0.1, label="가이던스", interactive=True)
|
| 106 |
+
seed = gr.Number(-1, label="시드 (-1이면 무작위)")
|
| 107 |
|
| 108 |
+
generate_btn = gr.Button("생성하기")
|
| 109 |
|
| 110 |
with gr.Column():
|
| 111 |
+
output_image = gr.Image(label="생성된 이미지")
|
| 112 |
+
download_btn = gr.File(label="전체 해상도 다운로드", type="filepath", interactive=False)
|
| 113 |
|
| 114 |
|
| 115 |
inputs = [
|
|
|
|
| 122 |
outputs=[output_image, download_btn],
|
| 123 |
)
|
| 124 |
|
| 125 |
+
example_text = gr.Text("", visible=False, label="사용 사례:")
|
| 126 |
examples = get_examples("./assets/examples")
|
| 127 |
|
| 128 |
gr.Examples(
|