OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Easyrobust

Easyrobust is an Apache-2.0 PyTorch library for computer-vision robustness research, with workflows for evaluating pretrained image classifiers on robustness benchmarks and training robust models.

Independent OpenViST project profile, based on linked sources.

Easyrobust — Comparing pretrained image classifiers across ImageNet-related benchmarks
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a PyTorch image classifier needs evaluation across documented robustness benchmarks, or when building a robust-vision research experiment.

Who it is for

  • Researchers comparing robustness of pretrained image-classification models.
  • Developers training robust vision models or reproducing research methods.

Documented uses

  • Benchmark a pretrained classifier on distribution-shift, corruption and adversarial evaluations.
  • Train a robust image-classification model using implemented methods.
  • Reproduce examples of published robust-vision approaches.
Before you choose

Requirements & limits

The repository is public and specifies the Apache-2.0 license.

  • The documented evaluation workflow requires benchmark datasets at the expected paths; ImageNet data location is configured with ImageNetDataDir.
  • ObjectNet evaluation is optional and noted as requiring substantial disk space.
  • The Docker setup route specifies Docker and nvidia-docker; source and PyPI installation routes are also documented.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install EasyRobust from source and prepare ImageNet data

Install the package from its repository and set the ImageNet data directory for use.

Before you start

  • Git and pip are available.
  • An ImageNet dataset is available locally.

Steps

  1. Clone the repository with the command below.

    Documented command
    git clone https://github.com/alibaba/easyrobust.git
  2. Change into the easyrobust directory and install it with the command below.

    Documented command
    pip install -e .
  3. Place ImageNet data at /path/to/imagenet and set ImageNetDataDir with export ImageNetDataDir=/path/to/imagenet.

  4. Optionally download benchmark data with the command below when evaluating model robustness.

    Documented command
    sh download_data.sh

Expected outcome

EasyRobust is installed from source, and the ImageNet path is set; optionally, benchmark data is downloaded.

Guide limitations

  • The documentation does not specify system or package version requirements.
  • Benchmark data download is optional and intended for robustness evaluation.
  • The ImageNet dataset itself must be obtained separately.
Source-based practical guide

Run the documented ResNet-50 robustness evaluation example

Evaluate a pretrained ResNet-50 on the listed ImageNet distribution-shift and adversarial benchmarks.

Before you start

  • EasyRobust is installed.
  • The pretrained ResNet-50 dependencies are available.
  • The benchmark datasets are present at the paths used in the example.

Steps

  1. Open benchmarks/resnet50_example.py and define the pretrained model as torchvision.models.resnet50(pretrained=True), then call model.eval(); move it to CUDA when torch.cuda.is_available() is true.

  2. Use the example's evaluation calls for ImageNet validation, ImageNet-A, ImageNet-R, ImageNet-Sketch, ImageNet-V2, Stylized-ImageNet, ImageNet-C, and ImageNet AutoAttack, using their documented benchmarks/data/... paths.

  3. Run the command below.

    Documented command
    python benchmarks/resnet50_example.py
  4. Review the printed top-1 accuracy results; the example also reports mCE for ImageNet-C.

Expected outcome

The example runs robustness evaluations and prints accuracy results for the listed datasets, including ImageNet-C mCE.

Guide limitations

  • ObjectNet is skipped in the example because it requires substantial disk storage.
  • The documented example paths require the datasets to be available there.
  • The README's example output is illustrative and does not guarantee the same results for other environments or models.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
19 November 2026
Original website title
alibaba/easyrobust · Official homepage title · retained in its source language