Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Changelog
**Deprecations**

- Deprecate the public ``QuantizationArgumentsWithConfig`` name in ``modelopt.torch.quantization.plugins.transformers_trainer``; it now aliases ``QuantizationArguments`` and will be removed in a future release.
- Deprecate the ``examples/diffusers/eval`` image-quality evaluation example (ImageReward / CLIP-IQA / CLIP metrics); it is no longer maintained and will be removed in the next release.

**Bug Fixes**

Expand Down
2 changes: 2 additions & 0 deletions examples/diffusers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ Stable Diffusion pipelines rely heavily on random sampling operations, which inc

## Evaluate Accuracy

> **Deprecated:** This evaluation example is no longer maintained and will be removed in a future release. There is no public replacement at this time. See [`eval/README.md`](./eval/README.md).

This simple code demonstrates how to evaluate images generated by diffusion (or other generative) models using popular metrics such as [imagereward](https://arxiv.org/abs/2304.05977), [clip-iqa](https://arxiv.org/abs/2207.12396), and [clip](https://arxiv.org/abs/2104.08718).

### Install Requirements
Expand Down
24 changes: 24 additions & 0 deletions examples/diffusers/eval/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Diffusers Image-Quality Evaluation (Deprecated)

> **Deprecated:** This evaluation example is no longer maintained and will be removed in a future release. There is no public replacement at this time.

These scripts evaluate images generated by diffusion (or other generative) models using popular metrics such as [ImageReward](https://arxiv.org/abs/2304.05977), [CLIP-IQA](https://arxiv.org/abs/2207.12396), and [CLIP](https://arxiv.org/abs/2104.08718).

## Install Requirements

```bash
pip install -r requirements.txt
```

## Usage

Prepare a JSON file with your prompts and corresponding images, then run:

```bash
python main.py --data-path {PATH_TO_THE_IMAGE_JSON_PATH} --metrics imagereward
```

- `--data-path`: Path to your JSON file.
- `--metrics`: One or more metrics to compute (e.g. `imagereward`, `clip-iqa`, `clip`).

See the [Evaluate Accuracy](../README.md#evaluate-accuracy) section of the diffusers README for the input JSON format and sample results.
Loading