Spaces:
Sleeping
Sleeping
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
# ERA_Session20
|
| 2 |
-
|
| 3 |
-
## Objective:
|
| 4 |
-
The purpose of this repository is to understand the architecture of Generative Art & Stable Diffusion
|
| 5 |
-
|
| 6 |
-
## Repository:
|
| 7 |
-
```
|
| 8 |
-
.
|
| 9 |
-
βββ LICENSE
|
| 10 |
-
βββ README.md
|
| 11 |
-
βββ config.py
|
| 12 |
-
βββ diffusion_loss.py
|
| 13 |
-
βββ image_generator.py
|
| 14 |
-
βββ inference.ipynb
|
| 15 |
-
βββ model.py
|
| 16 |
-
βββ prediction.py
|
| 17 |
-
βββ requirements.txt
|
| 18 |
-
βββ symmetry_loss_analysis.py
|
| 19 |
-
βββ utils.py
|
| 20 |
-
```
|
| 21 |
-
|
| 22 |
-
## How to execute this repository?
|
| 23 |
-
|
| 24 |
-
In `inference.ipynb`,
|
| 25 |
-
- add the prompt in the `prompt` variable
|
| 26 |
-
- configure the required loss function and execute the prediction function
|
| 27 |
-
|
| 28 |
-
## Results
|
| 29 |
-
|
| 30 |
-
`prompt = A King riding a horse`
|
| 31 |
-
|
| 32 |
-
### 1. Without Loss Function
|
| 33 |
-
|
| 34 |
-

|
| 35 |
-
|
| 36 |
-
### 2. Blue Channel
|
| 37 |
-
|
| 38 |
-
Computing the average absolute difference between the `blue channel` values of each pixel in the batch and the target value of `0.9`. This allows us to measure how far, on average the blue channel deviates from the desired value of `0.9` across all images in the batch
|
| 39 |
-
|
| 40 |
-

|
| 41 |
-
|
| 42 |
-
### 3. Elastic Deformations
|
| 43 |
-
|
| 44 |
-
A data augmentation process. Applying the random elastic deformations to get an input image. The Strength and Smoothness of these deformations are controlled by the `alpha` and `sigma` parameters. The process involves generating displacement vectors for each pixel, adding these vectors to an identified grid, and then using the deformed grid to interpolate pixel values from the original image.
|
| 45 |
-
|
| 46 |
-

|
| 47 |
-
|
| 48 |
-
### 4. Saturation
|
| 49 |
-
|
| 50 |
-
Applied a saturation adjustment to the images, and the error is calculated as the mean absolute pixel-wise difference between the original and the transformed images
|
| 51 |
-
|
| 52 |
-

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|