clockclock commited on
Commit
5fe0b68
·
verified ·
1 Parent(s): 7e0ae57

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -6
README.md CHANGED
@@ -1,13 +1,38 @@
1
  ---
2
- title: Ai Image Detector
3
- emoji: 🏆
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: gradio
7
- sdk_version: 5.34.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: AI Image Fixer
3
+ emoji: 🎨
4
+ colorFrom: pink
5
+ colorTo: blue
6
  sdk: gradio
7
+ sdk_version: 3.48.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
+ # 🎨 AI Image Fixer (Inpainting)
14
+
15
+ This Hugging Face Space allows you to fix artifacts or undesirable parts of an AI-generated image using **inpainting**. If an image has weird hands, a distorted face, or other strange elements, you can simply mask them out and let the AI regenerate that specific area.
16
+
17
+ ## How to Use
18
+
19
+ 1. **Upload Image**: Drag and drop or upload an image you want to fix.
20
+ 2. **Mask the Area**: Once uploaded, your cursor will become a brush. "Paint" over the parts of the image you want the AI to replace. You can adjust the brush size.
21
+ 3. **Write a Prompt**: In the "Prompt" box, describe what should be in the area you just painted. Be descriptive! For example, instead of "hair," try "realistic, flowing brown hair, detailed strands."
22
+ 4. **(Optional) Advanced Settings**:
23
+ * **Negative Prompt**: Describe what you *don't* want to see (e.g., `blurry, ugly, deformed, extra limbs`).
24
+ * **Guidance Scale**: Higher values make the AI follow your prompt more strictly. (7-9 is a good range).
25
+ * **Inference Steps**: More steps can lead to higher quality but take longer. (30-50 is usually sufficient).
26
+ 5. **Click "Fix It!"**: The model will process your request and display the fixed image on the right.
27
+
28
+ ## Technical Details
29
+
30
+ - **Model**: `stabilityai/stable-diffusion-2-inpainting`
31
+ - **UI**: `Gradio`
32
+ - **Backend**: `PyTorch` and the `diffusers` library.
33
+
34
+ ## Limitations & Tips
35
+
36
+ - **Blending**: The model does its best to blend the new content, but a seam may sometimes be visible. Trying again with a slightly different prompt can help.
37
+ - **Prompt is Key**: The quality of the fix heavily depends on your prompt. Be specific!
38
+ - **GPU Required**: This Space needs to run on GPU hardware (like a T4-small) to be fast. On a CPU, it will be very slow.