Skip to main content

Torch dataset explorer

Project description

Qt Dataset Viewer

This module is for debugging ML projects. It is PyQt5 based viewer for torch.utils.dataset.

Installation

Use the package manager pip to install qtdatasetviewer from PyPi.

pip install qtdatasetviewer

Usage

    import sys
    from glob import glob
    from dataset import SampleDataset
    from PyQt5.QtWidgets import QApplication

    from PIL import Image
    from qtdatasetviewer.abstract_convert_to_pil import AbstractConvertToPil
    from qtdatasetviewer.qt_dataset_viewer import run_qt_dataset_viewer

    import torchvision.transforms as T


    class Convert(AbstractConvertToPil):

        def convert(self, item) -> Image:
            image, mask = item
            transform = T.ToPILImage()
            return transform(image)


       
    if __name__ == "__main__":
        dataset = SampleDataset(files=glob("data/*.*"))
        run_qt_dataset_viewer(Convert(dataset))

Disclaimer

The package and the code is provided "as-is" and there is NO WARRANTY of any kind. Use it only if the content and output files make sense to you.

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

qtdatasetviewer-0.0.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

qtdatasetviewer-0.0.4-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file qtdatasetviewer-0.0.4.tar.gz.

File metadata

  • Download URL: qtdatasetviewer-0.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for qtdatasetviewer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9c130fbd0bf49aea089464a6493bfd9ef461160ae4e832ebebef5888ab610274
MD5 ea3bbd74c3359f7f63291f2889ffa8aa
BLAKE2b-256 70d8e74315b4e89e65fd6080786c9491107f4cadcb4ba7a5de03837f756ffdbd

See more details on using hashes here.

File details

Details for the file qtdatasetviewer-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for qtdatasetviewer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d9af844dc29d2b7ca36310fbbb306ba3950bb31f5f0374f96c6fdb8ea0754293
MD5 c75ed6254167a91a4c401986a30a6cb2
BLAKE2b-256 90db1a79c07a7a13f8e693834a117801ad36f5f01fd222092ca32fabac1ad870

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