Skip to main content

Downloading sky image datasets for pytorch applications

Project description

skyimages

Download sky images for solar power forecasting as pytorch-ready datasets.

Installation using pypi

From release v0.0.1, skyimages will be installable via pip:

pip install skyimages

Installation using github

Download skyimages from github. Change the CWD to the download folder skyimages/ and install the package using pip.

git clone git@github.com:FlorianK13/skyimages.git
cd skyimages
pip install .

Getting started

To download the dataset SKIPP'D (source) and use it as a pytorch torchvision dataset, run the following code in python

from skyimages.dataset import SKIPPDDataSet
import torch


traindata = SKIPPDDataSet(download=True)
testdata = SKIPPDDataSet(download=True, train=False)

trainloader = torch.utils.data.DataLoader(
    traindata, batch_size=200, shuffle=True, num_workers=0
)
testloader = torch.utils.data.DataLoader(
    testdata, batch_size=20, shuffle=False, num_workers=0
)

Running code on Windows

If you use windows, wrap your code in the if __name__ == '__main__' clause to support multiprocessing. Here you can find more info on this issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skyimages-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file skyimages-0.0.2.tar.gz.

File metadata

  • Download URL: skyimages-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for skyimages-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb5f67e09440df57ef892fd1282fab1dd78b50b4a8a10b1c9da40ea81abbc622
MD5 fb7877779951910544d99902f8fd2d3b
BLAKE2b-256 ce39be26117f691cca2682d9852bd8ed1877f4dc4e9749ce00b1a583a3540847

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page