OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Neural Processes

Neural Processes is an MIT-licensed PyTorch implementation of Neural Process models for function regression and image tasks. It includes model classes, training utilities, notebooks for one-dimensional functions and image inpainting, and pretrained MNIST and CelebA weights.

Independent OpenViST project profile, based on linked sources.

Neural Processes — Hands-on experimentation with Neural Process models in PyTorch
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a code-level starting point for Neural Process experiments in PyTorch, especially function regression or image inpainting, and can supply data and training configuration appropriate to your task.

Who it is for

  • Researchers exploring Neural Process training on function data.
  • Developers adapting the included workflows to custom function or image datasets.
  • Practitioners studying image inpainting with the provided tutorial and pretrained models.

Documented uses

  • Train a Neural Process on function-regression data.
  • Train an image Neural Process and save model weights.
  • Load a trained image model and explore image inpainting.
  • Adapt the provided trainer workflow to evaluate models on custom function or image data.
Before you choose

Requirements & limits

The repository is public and the code is licensed under MIT.

  • The repository is an implementation and training workflow, not a hosted service.
  • Function and image workflows use distinct model classes.
  • The image training entry point is documented as python main_experiment.py config.json.
  • The README identifies pretrained MNIST and CelebA weights; it does not establish results on other image datasets.
  • CelebA must be downloaded separately for training on that dataset.

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

Set up function-regression training

Define and train a Neural Process on function data using the repository’s documented trainer workflow.

Before you start

  • PyTorch
  • A function-data data loader; the README does not detail dataset preparation or format.

Steps

  1. Import NeuralProcess and NeuralProcessTrainer from the repository.

  2. Create a NeuralProcess with the documented input, output, representation, latent, and hidden dimensions.

  3. Create a PyTorch optimizer and initialize NeuralProcessTrainer with the model, device, and context and target ranges.

  4. Pass the data loader to the trainer and call its training method with an epoch count.

Expected outcome

A training workflow for fitting a Neural Process to function data.

Guide limitations

  • The README does not specify the required function dataset format or preparation steps.
  • The recipe documents training setup and invocation, not a verified execution or expected model quality.
Source-based practical guide

Train an image Neural Process

Use the documented repository entry point to train an image model and save its weights.

Before you start

  • PyTorch
  • An image-training configuration file in JSON format.
  • For CelebA training, the CelebA dataset must be downloaded separately.

Steps

  1. Prepare the image-training JSON configuration.

  2. Run the documented command: python main_experiment.py config.json.

  3. Review the logged training information and locate the saved model weights.

Expected outcome

The image training workflow logs information and saves model weights.

Guide limitations

  • The README does not explain the JSON configuration schema.
  • The stated dataset download requirement applies to CelebA; other dataset details are not specified here.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
28 November 2026
Original website title
EmilienDupont/neural-processes · Official homepage title · retained in its source language