Update README.md
Browse files
README.md
CHANGED
@@ -20,20 +20,6 @@ This model pipeline demonstrates an advanced workflow for restoring grayscale im
|
|
20 |
2. **Gray-to-RGB Conversion Model**: Converts the grayscale image (or inpainted output) into a full-color RGB image by adding a residual path in the AE. internel unet directly predicts difference between gray and color image's latent
|
21 |
|
22 |
|
23 |
-
---
|
24 |
-
|
25 |
-
## **Pipeline Workflow**
|
26 |
-
|
27 |
-
1. **Load Grayscale and Mask Images**:
|
28 |
-
- Grayscale image input is preprocessed to ensure it has 3 channels (`RGB` format).
|
29 |
-
- A binary mask identifies areas to restore or inpaint.
|
30 |
-
|
31 |
-
2. **Apply Gray-Inpainting**:
|
32 |
-
- The inpainting model takes the grayscale masked image and restores the missing regions using `num_inference_steps`.
|
33 |
-
|
34 |
-
3. **Convert to RGB**:
|
35 |
-
- The restored grayscale image is then processed by the gray-to-RGB model to produce a full-color output.
|
36 |
-
|
37 |
---
|
38 |
|
39 |
## **Code Example**
|
|
|
20 |
2. **Gray-to-RGB Conversion Model**: Converts the grayscale image (or inpainted output) into a full-color RGB image by adding a residual path in the AE. internel unet directly predicts difference between gray and color image's latent
|
21 |
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
---
|
24 |
|
25 |
## **Code Example**
|