No project description provided
Project description
MNIST Synthetic
The library for digits generations (like MNIST). The default size of images is 28x28.
Number Generation
You can use default settings, or configurate generated number use GeneratorConfig.
from mnist_synthetic.generator import NumbersGenerator
from mnist_synthetic.config import GeneratorConfig
config: GeneratorConfig = GeneratorConfig()
generator = NumbersGenerator(seed=None, )
To generate number it's enough to run method
img, label = generator.generate_0()
To generate random number call just generate:
img, label = generator.generate()
Datasets
To run it:
from matplotlib import pyplot as plt
from mnist_synthetic.torch.datasets import MNISTSynthetic
dataset = MNISTSynthetic(10, seed=42)
fig, axes = plt.subplots(1, 10, figsize=(10, 4))
for i, ax in enumerate(axes):
ax.imshow(dataset[i][0], cmap='gray')
ax.axis('off')
ax.set_label(str(dataset[i][1]))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnist_synthetic-0.0.3.tar.gz.
File metadata
- Download URL: mnist_synthetic-0.0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a96bd2ad6acf2ed14bda677f177cf52ea1b8a0e3b9896a5632ade0beac6176e3
|
|
| MD5 |
83d7f5c1b92c093b22b6f2065587e5f2
|
|
| BLAKE2b-256 |
23296d6bccf314e2e38e4ff0fd5add40108c249fc7890e01115db5946bd7ea96
|
File details
Details for the file mnist_synthetic-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mnist_synthetic-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c103957ca590bf857ddb0ca7845152be5ea1f964ac1b656e9ed091a14db17a52
|
|
| MD5 |
7113c9e7679bc66d1858ccaed02d4f58
|
|
| BLAKE2b-256 |
7949db389474e053698395d247ce89c730a3b2a065fbca25f0a8966154d7e2e1
|