Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions tasks/src/image-to-image/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Use Cases

### Style transfer

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.

## Task Variants

### Image inpainting

Image inpainting is widely used during photography editing to remove unwanted objects, such as poles, wires or sensor
dust.

### Image colorization

Old, black and white images can be brought up to life using an image colorization model.

### Super Resolution

Super resolution models increase the resolution of an image, allowing for higher quality viewing and printing.

## Inference

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.

## Useful Resources

In this area, you can insert useful resources about how to train or use a model for this task.
58 changes: 58 additions & 0 deletions tasks/src/image-to-image/data.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import { type TaskDataCustom } from "../Types";

const taskData: TaskDataCustom = {
datasets: [
{
description: "Synthetic dataset, for image relighting",
id: "VIDIT"
},
{
description: "Multiple images of celebrities, used for facial expression translation"
id: "CelebA"
}
],
demo: {
inputs: [
{
filename: "image-to-image-input.jpeg",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️
Ekran Resmi 2022-10-07 17 34 02

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this repo still open for contribution?
Awesome work so far

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool!

type: "img",
},
],
outputs: [
{
filename: "image-to-image-output.png",
type: "img",
},
]
},
isPlaceholder: false,
metrics: [
{
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.",
id: "PSNR"
},
{
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.",
id: "SSIM"
},
{
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.",
id: "IS"
},
],
models: [
{
description: "A model that enhances images captured in low light conditions.",
id: "keras-io/low-light-image-enhancement"
}
{
description: "A model that increases the resolution of an image.",
id: "keras-io/super-resolution"
}
],
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."
widgetModels: [""],
youtubeId: "",
};

export default taskData;