PyTorchFire: A GPU-Accelerated Wildfire Simulator with Differentiable Cellular Automata
Project description
PyTorchFire: A GPU-Accelerated Wildfire Simulator with Differentiable Cellular Automata
Jupyter Notebook Examples
-
Wildfire Prediction: examples/prediction.ipynb
-
Parameter Calibration: examples/calibration.ipynb
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0923fd4145dd5cb9a4736aa203a5cf308b3845e147dde6be1c2c72700bdb1e76
|
|
| MD5 |
88f584f9b0e0d381cab4badd28d23481
|
|
| BLAKE2b-256 |
fb9dee7dc45de3d9083ddb183eecd344dd1bc95ed9d3cdc9fd6c92487f320920
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56f6e09faa5a3158123bfc44949e29254ee23102bc5f22e10354e4d78c58ea87
|
|
| MD5 |
ca039083d149d55763309fca0aba6b05
|
|
| BLAKE2b-256 |
af0796615a17e21452f3048c787a5fbd37b8c0f9d4b97cf71051b088cbf05f74
|