Spaces:
Running
on
Zero
Running
on
Zero
Update README.md
Browse files
README.md
CHANGED
@@ -4,10 +4,185 @@ emoji: ๐
|
|
4 |
colorFrom: pink
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
|
|
12 |
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
colorFrom: pink
|
5 |
colorTo: gray
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 5.35.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
+
## ๐จ AI Image Inpainting: Advanced Object Removal and Smart Fill Technology
|
13 |
|
14 |
+
### Transform Your Images with Intelligent Content-Aware Fill
|
15 |
+
|
16 |
+
Welcome to **AI Image Inpainting**, a cutting-edge tool that uses ControlNet Union and Stable Diffusion XL to intelligently fill masked areas in images. Whether you're removing unwanted objects, extending scenes, or creating seamless edits, our AI understands context and generates photorealistic replacements that blend perfectly with your original image.
|
17 |
+
|
18 |
+
### What is AI Image Inpainting?
|
19 |
+
|
20 |
+
AI Image Inpainting is an **advanced image editing tool** powered by state-of-the-art diffusion models and ControlNet technology. It allows users to mask any part of an image and have AI intelligently fill that area based on text prompts, creating seamless, professional-quality results that maintain the original image's style and context.
|
21 |
+
|
22 |
+
### Key Features for Professional Image Editing
|
23 |
+
|
24 |
+
- **๐ฏ ControlNet Union**: Advanced spatial control for precise inpainting
|
25 |
+
- **๐ผ๏ธ SDXL Integration**: High-resolution output with RealVisXL V5.0 Lightning
|
26 |
+
- **๐ญ Smart Masking**: Interactive mask drawing for precise area selection
|
27 |
+
- **๐ Bilingual Support**: Korean and English prompt compatibility
|
28 |
+
- **โก Lightning Fast**: Optimized TCD scheduler for rapid generation
|
29 |
+
- **๐ Iterative Editing**: Use results as new inputs for progressive refinement
|
30 |
+
- **๐ High Resolution**: Support for 1024x1024 pixel editing
|
31 |
+
- **๐จ Context-Aware**: AI understands surrounding pixels for seamless blending
|
32 |
+
|
33 |
+
### How It Works
|
34 |
+
|
35 |
+
#### **Simple 3-Step Process**
|
36 |
+
1. **Upload & Mask**: Load your image and draw over areas to replace
|
37 |
+
2. **Describe the Fill**: Enter what you want in the masked area
|
38 |
+
3. **Generate**: AI creates seamless, context-aware replacements
|
39 |
+
|
40 |
+
#### **Advanced Technology Stack**
|
41 |
+
- **ControlNet Union SDXL 1.0**: Precise spatial guidance
|
42 |
+
- **RealVisXL V5.0 Lightning**: Photorealistic image generation
|
43 |
+
- **TCD Scheduler**: Accelerated inference without quality loss
|
44 |
+
- **FP16 Optimization**: Efficient GPU memory usage
|
45 |
+
|
46 |
+
### Perfect Use Cases
|
47 |
+
|
48 |
+
- **Object Removal**: Eliminate unwanted elements from photos
|
49 |
+
- **Scene Extension**: Expand image boundaries naturally
|
50 |
+
- **Creative Editing**: Replace objects with imaginative alternatives
|
51 |
+
- **Photo Restoration**: Fill damaged or missing areas
|
52 |
+
- **Background Changes**: Swap environments seamlessly
|
53 |
+
- **Product Photography**: Clean up or modify product images
|
54 |
+
- **Real Estate**: Remove furniture or add virtual staging
|
55 |
+
- **Fashion**: Change clothing patterns or accessories
|
56 |
+
|
57 |
+
### Advanced Controls
|
58 |
+
|
59 |
+
- **Model Selection**: Choose from specialized models
|
60 |
+
- **Prompt Engineering**: Describe desired content in detail
|
61 |
+
- **Mask Precision**: Draw exact areas for replacement
|
62 |
+
- **Iterative Workflow**: Refine results through multiple passes
|
63 |
+
- **Before/After Slider**: Compare original and edited versions
|
64 |
+
- **High-Resolution Support**: Work with detailed images
|
65 |
+
|
66 |
+
### Technical Specifications
|
67 |
+
|
68 |
+
- **Base Model**: Stable Diffusion XL (SDXL)
|
69 |
+
- **ControlNet**: xinsir/controlnet-union-sdxl-1.0
|
70 |
+
- **Image Model**: SG161222/RealVisXL_V5.0_Lightning
|
71 |
+
- **VAE**: madebyollin/sdxl-vae-fp16-fix
|
72 |
+
- **Framework**: Gradio, Diffusers, PyTorch
|
73 |
+
- **Precision**: Float16 for optimal performance
|
74 |
+
- **GPU**: CUDA-enabled device required
|
75 |
+
|
76 |
+
### Why Choose AI Image Inpainting?
|
77 |
+
|
78 |
+
1. **Professional Quality**: Gallery-worthy results indistinguishable from original
|
79 |
+
2. **Intelligent Understanding**: AI comprehends context and lighting
|
80 |
+
3. **Fast Processing**: Lightning model delivers results in seconds
|
81 |
+
4. **User-Friendly**: Intuitive interface requires no technical expertise
|
82 |
+
5. **Versatile Applications**: From photo editing to creative projects
|
83 |
+
6. **Free Access**: No subscriptions or hidden costs
|
84 |
+
|
85 |
+
### Best Practices for Optimal Results
|
86 |
+
|
87 |
+
- **Clear Prompts**: Describe what should fill the masked area precisely
|
88 |
+
- **Smooth Masks**: Create clean mask edges for better blending
|
89 |
+
- **Context Matching**: Consider lighting, perspective, and style
|
90 |
+
- **Iterative Approach**: Refine results through multiple generations
|
91 |
+
- **Appropriate Content**: Ensure prompts match the image context
|
92 |
+
- **Resolution Awareness**: Work with high-quality source images
|
93 |
+
|
94 |
+
### Start Editing Like a Pro
|
95 |
+
|
96 |
+
Transform your images with the power of AI. Remove distractions, enhance compositions, or unleash your creativity with seamless inpainting technology.
|
97 |
+
|
98 |
+
**Community**: [Discord - Openfree AI](https://discord.gg/openfreeai) | **More AI Tools**: [OpenFree Best AI Services](https://huggingface.co/spaces/openfree/Best-AI)
|
99 |
+
|
100 |
+
---
|
101 |
+
|
102 |
+
## ๐จ AI ์ด๋ฏธ์ง ์ธํ์ธํ
: ๊ณ ๊ธ ๊ฐ์ฒด ์ ๊ฑฐ ๋ฐ ์ค๋งํธ ์ฑ์ฐ๊ธฐ ๊ธฐ์
|
103 |
+
|
104 |
+
### ์ง๋ฅํ ์ฝํ
์ธ ์ธ์ ์ฑ์ฐ๊ธฐ๋ก ์ด๋ฏธ์ง ๋ณํ
|
105 |
+
|
106 |
+
**AI ์ด๋ฏธ์ง ์ธํ์ธํ
**์ ์ค์ ๊ฒ์ ๏ฟฝ๏ฟฝ์ํฉ๋๋ค. ControlNet Union๊ณผ Stable Diffusion XL์ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง์ ๋ง์คํฌ๋ ์์ญ์ ์ง๋ฅ์ ์ผ๋ก ์ฑ์ฐ๋ ์ต์ฒจ๋จ ๋๊ตฌ์
๋๋ค. ์ํ์ง ์๋ ๊ฐ์ฒด ์ ๊ฑฐ, ์ฅ๋ฉด ํ์ฅ, ๋งค๋๋ฌ์ด ํธ์ง ๋ฑ ๋ฌด์์ ํ๋ AI๊ฐ ์ปจํ
์คํธ๋ฅผ ์ดํดํ๊ณ ์๋ณธ ์ด๋ฏธ์ง์ ์๋ฒฝํ๊ฒ ์กฐํ๋๋ ์ฌ์ค์ ์ธ ๋์ฒด๋ฌผ์ ์์ฑํฉ๋๋ค.
|
107 |
+
|
108 |
+
### AI ์ด๋ฏธ์ง ์ธํ์ธํ
์ด๋?
|
109 |
+
|
110 |
+
AI ์ด๋ฏธ์ง ์ธํ์ธํ
์ ์ต์ฒจ๋จ ํ์ฐ ๋ชจ๋ธ๊ณผ ControlNet ๊ธฐ์ ๋ก ๊ตฌ๋๋๋ **๊ณ ๊ธ ์ด๋ฏธ์ง ํธ์ง ๋๊ตฌ**์
๋๋ค. ์ฌ์ฉ์๊ฐ ์ด๋ฏธ์ง์ ์ผ๋ถ๋ฅผ ๋ง์คํนํ๊ณ ํ
์คํธ ํ๋กฌํํธ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก AI๊ฐ ํด๋น ์์ญ์ ์ง๋ฅ์ ์ผ๋ก ์ฑ์ฐ๋๋ก ํ์ฌ ์๋ณธ ์ด๋ฏธ์ง์ ์คํ์ผ๊ณผ ์ปจํ
์คํธ๋ฅผ ์ ์งํ๋ ๋งค๋๋ฝ๊ณ ์ ๋ฌธ์ ์ธ ํ์ง์ ๊ฒฐ๊ณผ๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค.
|
111 |
+
|
112 |
+
### ์ ๋ฌธ ์ด๋ฏธ์ง ํธ์ง์ ์ํ ์ฃผ์ ๊ธฐ๋ฅ
|
113 |
+
|
114 |
+
- **๐ฏ ControlNet Union**: ์ ๋ฐํ ์ธํ์ธํ
์ ์ํ ๊ณ ๊ธ ๊ณต๊ฐ ์ ์ด
|
115 |
+
- **๐ผ๏ธ SDXL ํตํฉ**: RealVisXL V5.0 Lightning์ผ๋ก ๊ณ ํด์๋ ์ถ๋ ฅ
|
116 |
+
- **๐ญ ์ค๋งํธ ๋ง์คํน**: ์ ํํ ์์ญ ์ ํ์ ์ํ ๋ํํ ๋ง์คํฌ ๊ทธ๋ฆฌ๊ธฐ
|
117 |
+
- **๐ ์ด์ค ์ธ์ด ์ง์**: ํ๊ตญ์ด ๋ฐ ์์ด ํ๋กฌํํธ ํธํ์ฑ
|
118 |
+
- **โก ์ด๊ณ ์**: ๋น ๋ฅธ ์์ฑ์ ์ํ ์ต์ ํ๋ TCD ์ค์ผ์ค๋ฌ
|
119 |
+
- **๐ ๋ฐ๋ณต ํธ์ง**: ์ ์ง์ ๊ฐ์ ์ ์ํด ๊ฒฐ๊ณผ๋ฅผ ์ ์
๋ ฅ์ผ๋ก ์ฌ์ฉ
|
120 |
+
- **๐ ๊ณ ํด์๋**: 1024x1024 ํฝ์
ํธ์ง ์ง์
|
121 |
+
- **๐จ ์ปจํ
์คํธ ์ธ์**: AI๊ฐ ์ฃผ๋ณ ํฝ์
์ ์ดํดํ์ฌ ๋งค๋๋ฌ์ด ๋ธ๋ ๋ฉ
|
122 |
+
|
123 |
+
### ์๋ ๋ฐฉ์
|
124 |
+
|
125 |
+
#### **๊ฐ๋จํ 3๋จ๊ณ ํ๋ก์ธ์ค**
|
126 |
+
1. **์
๋ก๋ ๋ฐ ๋ง์คํฌ**: ์ด๋ฏธ์ง๋ฅผ ๋ก๋ํ๊ณ ๊ต์ฒดํ ์์ญ ์์ ๊ทธ๋ฆฌ๊ธฐ
|
127 |
+
2. **์ฑ์ฐ๊ธฐ ์ค๋ช
**: ๋ง์คํฌ๋ ์์ญ์ ์ํ๋ ๋ด์ฉ ์
๋ ฅ
|
128 |
+
3. **์์ฑ**: AI๊ฐ ๋งค๋๋ฝ๊ณ ์ปจํ
์คํธ๋ฅผ ์ธ์ํ๋ ๋์ฒด๋ฌผ ์์ฑ
|
129 |
+
|
130 |
+
#### **๊ณ ๊ธ ๊ธฐ์ ์คํ**
|
131 |
+
- **ControlNet Union SDXL 1.0**: ์ ๋ฐํ ๊ณต๊ฐ ๊ฐ์ด๋์ค
|
132 |
+
- **RealVisXL V5.0 Lightning**: ์ฌ์ค์ ์ธ ์ด๋ฏธ์ง ์์ฑ
|
133 |
+
- **TCD ์ค์ผ์ค๋ฌ**: ํ์ง ์์ค ์๋ ๊ฐ์ ์ถ๋ก
|
134 |
+
- **FP16 ์ต์ ํ**: ํจ์จ์ ์ธ GPU ๋ฉ๋ชจ๋ฆฌ ์ฌ์ฉ
|
135 |
+
|
136 |
+
### ์๋ฒฝํ ์ฌ์ฉ ์ฌ๋ก
|
137 |
+
|
138 |
+
- **๊ฐ์ฒด ์ ๊ฑฐ**: ์ฌ์ง์์ ์ํ์ง ์๋ ์์ ์ ๊ฑฐ
|
139 |
+
- **์ฅ๋ฉด ํ์ฅ**: ์ด๋ฏธ์ง ๊ฒฝ๊ณ๋ฅผ ์์ฐ์ค๋ฝ๊ฒ ํ์ฅ
|
140 |
+
- **์ฐฝ์์ ํธ์ง**: ๊ฐ์ฒด๋ฅผ ์์๋ ฅ ์๋ ๋์์ผ๋ก ๊ต์ฒด
|
141 |
+
- **์ฌ์ง ๋ณต์**: ์์๋๊ฑฐ๋ ๋๋ฝ๋ ์์ญ ์ฑ์ฐ๊ธฐ
|
142 |
+
- **๋ฐฐ๊ฒฝ ๋ณ๊ฒฝ**: ํ๊ฒฝ์ ๋งค๋๋ฝ๊ฒ ๊ต์ฒด
|
143 |
+
- **์ ํ ์ฌ์ง**: ์ ํ ์ด๋ฏธ์ง ์ ๋ฆฌ ๋๋ ์์
|
144 |
+
- **๋ถ๋์ฐ**: ๊ฐ๊ตฌ ์ ๊ฑฐ ๋๋ ๊ฐ์ ์คํ
์ด์ง ์ถ๊ฐ
|
145 |
+
- **ํจ์
**: ์๋ฅ ํจํด์ด๋ ์ก์ธ์๋ฆฌ ๋ณ๊ฒฝ
|
146 |
+
|
147 |
+
### ๊ณ ๊ธ ์ ์ด
|
148 |
+
|
149 |
+
- **๋ชจ๋ธ ์ ํ**: ํน์ ๋ชจ๋ธ ์ค์์ ์ ํ
|
150 |
+
- **ํ๋กฌํํธ ์์ง๋์ด๋ง**: ์ํ๋ ์ฝํ
์ธ ๋ฅผ ์์ธํ ์ค๋ช
|
151 |
+
- **๋ง์คํฌ ์ ๋ฐ๋**: ๊ต์ฒดํ ์ ํํ ์์ญ ๊ทธ๋ฆฌ๊ธฐ
|
152 |
+
- **๋ฐ๋ณต ์ํฌํ๋ก**: ์ฌ๋ฌ ํจ์ค๋ฅผ ํตํด ๊ฒฐ๊ณผ ๊ฐ์
|
153 |
+
- **์ ํ ์ฌ๋ผ์ด๋**: ์๋ณธ๊ณผ ํธ์ง๋ ๋ฒ์ ๋น๊ต
|
154 |
+
- **๊ณ ํด์๋ ์ง์**: ์์ธํ ์ด๋ฏธ์ง ์์
|
155 |
+
|
156 |
+
### ๊ธฐ์ ์ฌ์
|
157 |
+
|
158 |
+
- **๊ธฐ๋ณธ ๋ชจ๋ธ**: Stable Diffusion XL (SDXL)
|
159 |
+
- **ControlNet**: xinsir/controlnet-union-sdxl-1.0
|
160 |
+
- **์ด๋ฏธ์ง ๋ชจ๋ธ**: SG161222/RealVisXL_V5.0_Lightning
|
161 |
+
- **VAE**: madebyollin/sdxl-vae-fp16-fix
|
162 |
+
- **ํ๋ ์์ํฌ**: Gradio, Diffusers, PyTorch
|
163 |
+
- **์ ๋ฐ๋**: ์ต์ ์ฑ๋ฅ์ ์ํ Float16
|
164 |
+
- **GPU**: CUDA ์ง์ ์ฅ์น ํ์
|
165 |
+
|
166 |
+
### AI ์ด๋ฏธ์ง ์ธํ์ธํ
์ ์ ํํด์ผ ํ๋ ์ด์
|
167 |
+
|
168 |
+
1. **์ ๋ฌธ๊ฐ ํ์ง**: ์๋ณธ๊ณผ ๊ตฌ๋ณํ ์ ์๋ ๊ฐค๋ฌ๋ฆฌ๊ธ ๊ฒฐ๊ณผ
|
169 |
+
2. **์ง๋ฅ์ ์ดํด**: AI๊ฐ ์ปจํ
์คํธ์ ์กฐ๋ช
์ดํด
|
170 |
+
3. **๋น ๋ฅธ ์ฒ๋ฆฌ**: Lightning ๋ชจ๋ธ์ด ๋ช ์ด ๋ง์ ๊ฒฐ๊ณผ ์ ๊ณต
|
171 |
+
4. **์ฌ์ฉ์ ์นํ์ **: ์ง๊ด์ ์ธ ์ธํฐํ์ด์ค๋ก ๊ธฐ์ ์ ๋ฌธ ์ง์ ๋ถํ์
|
172 |
+
5. **๋ค์ํ ์์ฉ**: ์ฌ์ง ํธ์ง๋ถํฐ ์ฐฝ์์ ํ๋ก์ ํธ๊น์ง
|
173 |
+
6. **๋ฌด๋ฃ ์ ๊ทผ**: ๊ตฌ๋
๋ฃ๋ ์จ๊ฒจ์ง ๋น์ฉ ์์
|
174 |
+
|
175 |
+
### ์ต์ ์ ๊ฒฐ๊ณผ๋ฅผ ์ํ ๋ชจ๋ฒ ์ฌ๋ก
|
176 |
+
|
177 |
+
- **๋ช
ํํ ํ๋กฌํํธ**: ๋ง์คํฌ๋ ์์ญ์ ์ฑ์ธ ๋ด์ฉ์ ์ ํํ ์ค๋ช
|
178 |
+
- **๋ถ๋๋ฌ์ด ๋ง์คํฌ**: ๋ ๋์ ๋ธ๋ ๋ฉ์ ์ํด ๊นจ๋ํ ๋ง์คํฌ ๊ฐ์ฅ์๋ฆฌ ์์ฑ
|
179 |
+
- **์ปจํ
์คํธ ๋งค์นญ**: ์กฐ๋ช
, ๊ด์ ๋ฐ ์คํ์ผ ๊ณ ๋ ค
|
180 |
+
- **๋ฐ๋ณต์ ์ ๊ทผ**: ์ฌ๋ฌ ์์ฑ์ ํตํด ๊ฒฐ๊ณผ ๊ฐ์
|
181 |
+
- **์ ์ ํ ์ฝํ
์ธ **: ํ๋กฌํํธ๊ฐ ์ด๋ฏธ์ง ์ปจํ
์คํธ์ ์ผ์นํ๋์ง ํ์ธ
|
182 |
+
- **ํด์๋ ์ธ์**: ๊ณ ํ์ง ์์ค ์ด๋ฏธ์ง๋ก ์์
|
183 |
+
|
184 |
+
### ์ ๋ฌธ๊ฐ์ฒ๋ผ ํธ์ง ์์ํ๊ธฐ
|
185 |
+
|
186 |
+
AI์ ํ์ผ๋ก ์ด๋ฏธ์ง๋ฅผ ๋ณํํ์ธ์. ๋ฐฉํด ์์๋ฅผ ์ ๊ฑฐํ๊ณ , ๊ตฌ์ฑ์ ํฅ์์ํค๊ฑฐ๋, ๋งค๋๋ฌ์ด ์ธํ์ธํ
๊ธฐ์ ๋ก ์ฐฝ์๋ ฅ์ ๋ฐํํ์ธ์.
|
187 |
+
|
188 |
+
**์ปค๋ฎค๋ํฐ**: [Discord - Openfree AI](https://discord.gg/openfreeai) | **๋ ๋ง์ AI ๋๊ตฌ**: [OpenFree Best AI Services](https://huggingface.co/spaces/openfree/Best-AI)
|