Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pseudo-Labeller
Pseudo Irradience Labeller for generating training labels for other PV generation forecasting, and hindcasts.
Pseudo Irradience Labeller for generating training labels for other PV generation forecasting, and hindcasts.

## Install

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- torchdata
- cartopy
- rioxarray
- pytorch-cuda==11.6
- pytorch-cuda
pip:
- huggingface_hub
- einops
1 change: 0 additions & 1 deletion experiments/run.py

This file was deleted.

5 changes: 3 additions & 2 deletions pseudo_labeller/model/idam.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(
num_layers: int = 1,
output_steps: int = 1,
pv_meta_input_channels: int = 2,
**kwargs
**kwargs,
):
"""
Pseudo-Irradience Forecastor/Labeller
Expand Down Expand Up @@ -130,8 +130,9 @@ def forward(self, x: torch.Tensor, pv_meta: torch.Tensor = None, output_latents:
# Rearrange back to timeseries of latent variables
x = einops.rearrange(x, "b (c t) h w -> b c t h w", c=self.output_channels)
return x
if pv_meta is None:
raise ValueError(f"'pv_meta' cannot be none if {output_latents=}")
pv_meta = self.pv_meta_input(pv_meta)
# Reshape to fit into 3DCNN
x = torch.cat([x, pv_meta], dim=1)
# Get pv_meta_output
x = F.relu(self.pv_meta_output(x)) # Generation can only be positive or 0, so ReLU
Expand Down