@@ -20,6 +20,7 @@ Welcome to the Solar Forecasting project! This document will introduce you to th
202015 . [ How This Project Fits into Renewable Energy] ( #how-this-project-fits-into-renewable-energy )
212116 . [ Development and Testing Guide] ( #development-and-testing-guide )
222217 . [ Command Line Interface (CLI)] ( #command-line-interface-cli )
23+ 18 . [ Running PVNet Model] ( #running-pvnet-model )
2324
2425---
2526
@@ -722,6 +723,52 @@ Common error messages and their solutions:
722723- " Error loading dataset" : Verify your internet connection and credentials
723724- " Invalid chunks specification" : Ensure chunk string follows the format " dim1:size1,dim2:size2"
724725
726+
727+ # # Running PVNet Model
728+
729+ 1. Update configuration file
730+ Go to src/open_data_pvnet/configs/PVNet_configs/datamodule/streamed_batches.yaml
731+
732+ Change values if desired (increase at your discretion):
733+ num_train_samples: 5
734+ num_val_samples: 5
735+
736+ 2. Update src/open_data_pvnet/configs/PVNet_configs/datamodule/premade_batches.yaml
737+ Change this line to configuration: < your_directory...open-data-pvnet/src/open_data_pvnet/configs/PVNet_configs/datamodule/configuration/example_configuration.yaml>
738+
739+ 3. Update src/open_data_pvnet/configs/PVNet_configs/config.yaml
740+ Change the line to - datamodule: premade_batches.yaml
741+
742+ 4. Open a Weights & Biases Account https://wandb.ai/
743+ Go to src/open_data_pvnet/configs/PVNet_configs/logger/wandb.yaml
744+ Change to project: " GFS_TEST_RUN"
745+ Change to save_dir: " GFS_TEST_RUN"
746+
747+ 5. Run the samples
748+ We recommend you save the samples locally for faster processing
749+ In your main open-data-pvnet directory, run the following command (assumes aws cli is installed locally)
750+ aws s3 sync s3://ocf-open-data-pvnet/data/gfs/v4/2023.zarr/ ./gfs_2023.zarr --no-sign-request
751+ aws s3 sync s3://ocf-open-data-pvnet/data/uk/pvlive/v2/combined_2023_gsp.zarr ./gsp_2023.zarr --no-sign-request
752+ Change the example_configuration.yaml ` zarr_path` attributes to local paths you made above
753+ Comment out both of these lines
754+ ` public: True` # If you are going to use the actual s3 buckets then leave alone however this may be really slow
755+ In streamed_batches.yaml change this line
756+ ` configuration: null` to your actual path of the example_configuration.yaml file
757+
758+ # If running in a virtual environment, be sure to activate it. `source ./venv/bin/activate`
759+ ` rm -rf GFS_samples PLACEHOLDER` # to remove previous sample runs
760+ ` python src/open_data_pvnet/scripts/save_samples.py`
761+
762+ 6. Run the training
763+ Go to config.yaml and change this line
764+ ` - datamodule: streamed_batches.yaml` to ` - datamodule: premade_batches.yaml`
765+ ` python run.py`
766+
767+
768+
769+
770+
771+
725772---
726773
727774Thank you for joining us on this journey to advance solar forecasting and renewable energy solutions!
0 commit comments