Skip to content

Commit 4ac4223

Browse files
Paul92merveenoyanosanseviero
authored
Image to image (#370)
Co-authored-by: Merve Noyan <[email protected]> Co-authored-by: Omar Sanseviero <[email protected]>
1 parent 13975e5 commit 4ac4223

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed
49.6 KB
Loading
375 KB
Loading

tasks/src/image-to-image/about.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Use Cases
2+
3+
### Style transfer
4+
5+
One of the most popular use cases of image to image is the style transfer. Style transfer models can convert a regular photography into a painting in the style of a famous painter.
6+
7+
## Task Variants
8+
9+
### Image inpainting
10+
11+
Image inpainting is widely used during photography editing to remove unwanted objects, such as poles, wires or sensor
12+
dust.
13+
14+
### Image colorization
15+
16+
Old, black and white images can be brought up to life using an image colorization model.
17+
18+
### Super Resolution
19+
20+
Super resolution models increase the resolution of an image, allowing for higher quality viewing and printing.
21+
22+
## Inference
23+
24+
This section should have useful information about how to pull a model from Hugging Face Hub that is a part of a library specialized in a task and use it.
25+
26+
## Useful Resources
27+
28+
In this area, you can insert useful resources about how to train or use a model for this task.

tasks/src/image-to-image/data.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
import { type TaskDataCustom } from "../Types";
2+
3+
const taskData: TaskDataCustom = {
4+
datasets: [
5+
{
6+
description: "Synthetic dataset, for image relighting",
7+
id: "VIDIT"
8+
},
9+
{
10+
description: "Multiple images of celebrities, used for facial expression translation"
11+
id: "huggan/CelebA-faces"
12+
}
13+
],
14+
demo: {
15+
inputs: [
16+
{
17+
filename: "image-to-image-input.jpeg",
18+
type: "img",
19+
},
20+
],
21+
outputs: [
22+
{
23+
filename: "image-to-image-output.png",
24+
type: "img",
25+
},
26+
]
27+
},
28+
isPlaceholder: false,
29+
metrics: [
30+
{
31+
description: "Peak Signal to Noise Ratio (PSNR) is an approximation of the human perception, considering the ratio of the absolute intensity with respect to the variations. Measured in dB, a high value indicates a high fidelity.",
32+
id: "PSNR"
33+
},
34+
{
35+
description: "Structural Similarity Index (SSIM) is a perceptual metric which compares the luminance, contrast and structure of two images. The values of SSIM range between -1 and 1, and higher values indicate closer resemblance to the original image.",
36+
id: "SSIM"
37+
},
38+
{
39+
description: "Inception Score (IS) is an analysis of the labels predicted by an image classification model when presented with a sample of the generated images.",
40+
id: "IS"
41+
},
42+
],
43+
models: [
44+
{
45+
description: "A model that enhances images captured in low light conditions.",
46+
id: "keras-io/low-light-image-enhancement"
47+
},
48+
{
49+
description: "A model that increases the resolution of an image.",
50+
id: "keras-io/super-resolution"
51+
},
52+
{
53+
description: "A model that creates a set of variations of the imput image in the style of DALL-E using Stable Diffusion.",
54+
id: "lambdalabs/sd-image-variations-diffusers"
55+
}
56+
],
57+
summary: "Image to image is the task of transforming a source image to match the characteristics of a target image or a target image domain. Any image manipulation and enhancement is possible with image to image models."
58+
widgetModels: [""],
59+
youtubeId: "",
60+
};
61+
62+
export default taskData;

0 commit comments

Comments
 (0)