OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Pnasnet.pytorch

Pnasnet.pytorch is a Python implementation of PNASNet-5 that converts pretrained TensorFlow weights for PyTorch and provides an ImageNet validation evaluation example.

Independent OpenViST project profile, based on linked sources.

Pnasnet.pytorch — Converting the referenced PNASNet-5_Large_331 pretrained model
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you need the documented PNASNet-5 TensorFlow-to-PyTorch conversion or want to follow its ImageNet validation evaluation workflow.

Who it is for

  • Researchers or developers using PNASNet-5 who need a PyTorch implementation.
  • Practitioners comparing a converted PyTorch model with TensorFlow on ImageNet validation data.

Documented uses

  • Convert the referenced pretrained PNASNet-5 TensorFlow model into PyTorch-compatible weights.
  • Prepare ImageNet validation data in the layout expected by the evaluation example.
  • Evaluate PNASNet-5 image classification on ImageNet validation data.
Before you choose

Requirements & limits

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

  • The documented software versions are TensorFlow 1.8.0, PyTorch 0.4.0 and torchvision 0.2.1.
  • TensorFlow is used for image preprocessing because the repository says its bilinear resize behavior is needed to match the TensorFlow model.
  • Conversion uses 323-pixel inputs to align padding behavior; the README reports matching TensorFlow and converted-model figures at that size.
  • The evaluation example requires ImageNet validation data and the separate PNASNet-5 pretrained model.

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

Run the ImageNet validation evaluation

Run the documented evaluation after preparing the validation data and converted PyTorch model.

Before you start

  • The ImageNet validation set organized under data/val as labeled subfolders.
  • The pretrained TensorFlow model converted to PyTorch using convert.py.
  • TensorFlow 1.8.0, PyTorch 0.4.0, and torchvision 0.2.1.

Steps

  1. From the repository, run the command below.

    Documented command
    python main.py
  2. Check the final printed line; the README gives Test: [50000/50000] Prec@1 0.828 Prec@5 0.961 as the expected output.

Expected outcome

The evaluation prints validation progress and the documented expected final top-1 and top-5 precision line.

Guide limitations

  • The stated precision line is presented as expected output, not as an independently verified test result.
  • TensorFlow performs image preprocessing to ensure the model inputs match the TensorFlow implementation.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
chenxi116/PNASNet.pytorch · Official homepage title · retained in its source language