eclipse-pytorch-0.0.8
توضیحات
A pytorch implementation of Eclipse
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | eclipse-pytorch-0.0.8 |
| نام | eclipse-pytorch |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thomas Capelle |
| ایمیل نویسنده | tcapelle@pm.me |
| آدرس صفحه اصلی | https://github.com/tcapelle/eclipse_pytorch/tree/master/ |
| آدرس اینترنتی | https://pypi.org/project/eclipse-pytorch/ |
| مجوز | Apache Software License 2.0 |
# Eclipse
> Implementing <a href='https://arxiv.org/pdf/2104.12419v1.pdf'>Paletta et al</a> in Pytorch
Most of the codebase comes from [Fiery](https://github.com/wayveai/fiery)

## Install
```bash
pip install eclipse_pytorch
```
## How to use
```python
import torch
from eclipse_pytorch.model import Eclipse
```
```python
eclipse = Eclipse(horizon=5)
```
let's simulte some input images:
```python
images = [torch.rand(2, 3, 128, 128) for _ in range(4)]
```
```python
preds = eclipse(images)
```
you get a dict with forecasted masks and irradiances:
```python
len(preds['masks']), preds['masks'][0].shape, preds['irradiances'].shape
```
(6, torch.Size([2, 4, 128, 128]), torch.Size([2, 6]))
## Citation
```latex
@article{paletta2021eclipse,
title = {{ECLIPSE} : Envisioning Cloud Induced Perturbations in Solar Energy},
author = {Quentin Paletta and Anthony Hu and Guillaume Arbod and Joan Lasenby},
year = {2021},
eprinttype = {arXiv},
eprint = {2104.12419}
}
```
## Contribute
This repo is made with [nbdev](https://github.com/fastai/nbdev), please read the documentation to contribute
نیازمندی
| مقدار | نام |
|---|---|
| - | pip |
| - | packaging |
| >1.6 | torch |
| - | fastcore |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl eclipse-pytorch-0.0.8:
pip install eclipse-pytorch-0.0.8.whl
نصب پکیج tar.gz eclipse-pytorch-0.0.8:
pip install eclipse-pytorch-0.0.8.tar.gz