semvec/pypi-packages huggingface dataset:
rxx 0.2.1
ReactiveX extensions
License: MIT

=======================
ReactiveX eXtensions
=======================

.. image:: https://img.shields.io/pypi/v/rxx.svg
    :target: https://pypi.org/project/rxx/
    :alt: PyPI

.. image:: https://github.com/maki-nage/rxx/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/maki-nage/rxx/actions/workflows/ci.yml
    :alt: Github WorkFlows

.. image:: https://coveralls.io/repos/github/maki-nage/rxx/badge.svg?branch=master
    :target: https://coveralls.io/github/maki-nage/rxx?branch=master
    :alt: Code Coverage

.. image:: https://readthedocs.org/projects/rxx/badge/?version=latest
    :target: https://rxx.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation


Additional ReactiveX operators.

Get Started
============

Installation
=============

Rxx is available on PyPi and can be installed with pip:

.. code:: console

    python3 -m pip install rxx
nicefid 2.1.1
Minimalistic FID and KID implementation. Reference checked against cleanfid
License: MIT
Requires Python: >=3.8,<4.0

# nicefid

Minimalistic FID and KID implementation. Reference checked against [cleanfid](https://github.com/GaParmar/clean-fid).
Code is a mix between [crowsonkb's implementation](https://github.com/crowsonkb/k-diffusion/blob/master/k_diffusion/evaluation.py)
and [cleanfid](https://github.com/GaParmar/clean-fid).

> [On Aliased Resizing and Surprising Subtleties in GAN Evaluation](https://arxiv.org/abs/2104.11222)

## Install

```bash
poetry add nicefid
```

Or, for the old timers:

```bash
pip install nicefid
```

## API

```python
nicefid.Features.from_directory(path: Union[str, Path])
nicefid.Features.from_iterator(iterator: Iterator[torch.Tensor])  # NCHW
nicefid.Features.from_path(path: Union[str, Path])
features.save(path: Union[str, Path])

nicefid.compute_fid(features_a, features_b)
nicefid.compute_kid(features_a, features_b)
```

## Usage

Comparing directory with generated images.

```python
import nicefid

features_generated = nicefid.Features.from_iterator(...)
features_real = nicefid.Features.from_directory(...)

fid = nicefid.compute_fid(features_generated, features_real)
kid = nicefid.compute_kid(features_generated, features_real)
```