Deep Learning for Solar Physics Prediction
Project description
SolarNet
Deep Learning for Solar Physics Prediction
The SolarNet library permits to use the different Pytorch models, datasets, preprocessing, and others utilities developed during the SolarNet project. It also makes straightforward the download, loading, and finetuning of the big pretrained SSL models. With SolarNet, anyone can access the datasets (at this time, only SDO-Benchmark is available through the library) and finetune the powerful models. The library is compatible with Pytorch-Lightning, but the models are also pure Pytorch Module and the training loop can be written from scratch.
Find the docs on jdonzallaz.gitlab.io/solarnet.
Installation
Use pip to install:
pip install solarnet-lib
Python 3.6+ is required.
Data
Two datasets are supported: SDO-Dataset and SDO-Benchmark. SDO-Dataset needs to be downloaded from the Stanford's servers. The SDO-Benchmark dataset can be downloaded using the CLI:
solarnet download sdo-benchmark data/
Dataset
path = Path("data") / "sdo-benchmark" / "train"
dataset = SDOBenchmarkDataset(path)
Also available as a pytorch-lightning datamodule.
path = Path("data") / "sdo-benchmark"
datamodule = SDOBenchmarkDatamodule(path)
Model
model = ImageClassification.from_pretrained("solarnet-ssl-bz-ft-sdo-benchmark")
Finetuning
trainer = pl.Trainer(
max_epochs=10,
gpus=0,
)
trainer.fit(model, datamodule=datamodule)
Deployment
python setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*
Author
SolarNet is a deep learning research toolbox for solar physics. It was developed during a Master thesis by Jonathan Donzallaz.
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 SolarNet-Lib-0.1.0.tar.gz.
File metadata
- Download URL: SolarNet-Lib-0.1.0.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a4fed4b70fb1d9ab4b23f9258424853f399ce8d2a58a7bbbda8373681bd837
|
|
| MD5 |
503e60ccc470d9503d5cd7bef9f9ece4
|
|
| BLAKE2b-256 |
f3ccd8e1813cbdb61d4006e814dab8d30aa7460bee917bfd04faa23e00f741b1
|
File details
Details for the file SolarNet_Lib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: SolarNet_Lib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d8910b3af6800b389602abece9647f70e37b1b9c207156793f45dd339085727
|
|
| MD5 |
5183a64aebebc1c8f973ed85a589b7d4
|
|
| BLAKE2b-256 |
84f075ee7f2f9a6dd791941e828cfcbb2610b3b142d17201d0e264a70ccefdc5
|