Skip to main content

PyTorchFire: A GPU-Accelerated Wildfire Simulator with Differentiable Cellular Automata

Project description

PyTorchFire: A GPU-Accelerated Wildfire Simulator with Differentiable Cellular Automata

Hatch project PyPI - Version Read the Docs Code DOI Dataset DOI

Jupyter Notebook Examples

Installation

Install with minimal dependencies:

pip install pytorchfire

Install with dependencies for examples:

pip install 'pytorchfire[examples]'

Quick Start

To perform wildfire prediction:

from pytorchfire import WildfireModel

model = WildfireModel() # Create a model with default parameters and environment data
model = model.cuda() # Move the model to GPU
# model.reset(seed=seed) # Reset the model with a seed
for _ in range(100): # Run the model for 100 steps
    model.compute() # Compute the next state

To perform parameter calibration:

import torch
from pytorchfire import WildfireModel, BaseTrainer

model = WildfireModel()

trainer = BaseTrainer(model)

trainer.train()
trainer.evaluate()

API Documents

See at Our Read the Docs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytorchfire-1.0.2.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytorchfire-1.0.2-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file pytorchfire-1.0.2.tar.gz.

File metadata

  • Download URL: pytorchfire-1.0.2.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pytorchfire-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5e1fe9aab2d7bb47d2d015144e308b17a6142f871fffe097d7739c422c336995
MD5 2709e195aa0c8481a029b2aa3ccdcb65
BLAKE2b-256 a8682ede30b2b1093c69cc205bd1ff80d7a65749bbe1b8abf9853d6bf969f25d

See more details on using hashes here.

File details

Details for the file pytorchfire-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pytorchfire-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for pytorchfire-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a723be1f5626fdce1d18368767c13ec20a1ba72655f1693aeffa599f1f05bcc
MD5 456956727f3298bc1afdfb7e76d38905
BLAKE2b-256 8a45c083cbef007b5914752a0a4a87afd0a61dec4e5f8b286c3fef5654e2ba88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page