Turn raw image dataset into numpy array ; more suitable for deep learning tasks
Project description
Installation
- step 1
git clone https://github.com/charleslf2/visionner
- step 2
cd visionner
- step 3
py setup.py install
Usage
>>> from visionner.core import DatasetImporter
>>> your_dataset=DatasetImporter("path/to/your/dataset/", size=(28, 28))
>>> from visionner.core import SupervisedImporter
>>> features, labels= SupervisedImporter("path/to/your/dataset", categories=["cat", "dog"], size=(28,28))
### normalize your dataset
>>> from visionner.core import DatasetNormalizer
>>> your_normalized_dataset=DatasetNormalizer(your_dataset)
### create a trainset and a testset
>>> from visionner.core import TrainTestSpliter
>>> x_train, x_test=TrainTestSpliter(dataset, test_size=0.2)
### visualize the first image of your dataset
>>> import matplotlib.pyplot as plt
>>> plt.imshow(your_dataset[0])
>>> plt.show()
### save your dataset
>>> from visionner.core import DatasetSaver
>>> DatasetSaver("my_saved_dataset", your_dataset)
### open your dataset
>>> from visionner.core import DatasetOpener
>>> my_saved_dataset=DatasetOpener("my_saved_dataset.npy")
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
visionner-0.0.7.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file visionner-0.0.7.tar.gz
.
File metadata
- Download URL: visionner-0.0.7.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 472bcab9b3e65372c05429c85aafe947246bc1c91547e0e9adbf089eae5c6a54 |
|
MD5 | a6752414e158ffa7d45522c2fd3b5478 |
|
BLAKE2b-256 | 18bf521b8719f6c643da1af790752067badb028e8b87808edd3a05f0aceff4dc |
File details
Details for the file visionner-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: visionner-0.0.7-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8952a6ad44dfbd3c478fd8bf45e1f547341f9072efac5a80fc3023af8557437d |
|
MD5 | 50523011518888da8d53bd281024fb28 |
|
BLAKE2b-256 | 49cfbd1430c875476c90fd636e105ad64d933d032956076e1f0ce86e4c416a25 |