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.1.tar.gz (20.3 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.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytorchfire-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0923fd4145dd5cb9a4736aa203a5cf308b3845e147dde6be1c2c72700bdb1e76
MD5 88f584f9b0e0d381cab4badd28d23481
BLAKE2b-256 fb9dee7dc45de3d9083ddb183eecd344dd1bc95ed9d3cdc9fd6c92487f320920

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytorchfire-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56f6e09faa5a3158123bfc44949e29254ee23102bc5f22e10354e4d78c58ea87
MD5 ca039083d149d55763309fca0aba6b05
BLAKE2b-256 af0796615a17e21452f3048c787a5fbd37b8c0f9d4b97cf71051b088cbf05f74

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