Pre-release
This release is a pre-release and may not be stable for production use.
AugWrap
Installation
$ pip install augwrap
Basic Usage
-
Base dataset을 선택합니다. Pytorch 기반 데이터셋을 만들려면
TorchBaseDataset을 사용합니다. Tensorflow 기반 데이터셋을 만들려면TFBaseDataset을 사용합니다.import augwrap as aw dataset = aw.data.TorchBaseDataset(images, labels, classes)
-
augwrap.data안의 모듈을 이용하여 학습 전 데이터를 처리합니다.dataset = aw.data.LoadImages(dataset) dataset = aw.data.ResizeImages(dataset, (256, 256)) dataset = aw.data.OneHotLabels(dataset)
-
데이터 로더를 생성하여 학습에 사용합니다.
from torch.utils.data import DataLoader data_loader = DataLoader( dataset, batch_size = 16, shuffle = False, num_workers = 4 )
Augmentations
잘 알려진 어그멘테이션 도구인 Albumentations을 활용할 수 있도록 만들었습니다.
augwrap.data.Augmentations의 생성자 인자로 base dataset에서 파생된 객체와 Albumentations 객체를 받습니다.
Albumentations와 함께 사용할 수 있는 어그멘테이션 모듈을 augwrap.augmentations에 추가했습니다.
import albumentations as A
import augwrap as aw
augmentations = A.Compose([
A.RandomRotate90(p=1),
A.GridDistortion(p=0.8),
A.GaussNoise(p=0.75),
aw.augmentations.CutMix(dataset, p=0.8),
])
dataset = aw.data.Augmentations(dataset, augmentations)
Metadata
Release files for augwrap 0.0.1a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| augwrap-0.0.1a2.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| augwrap-0.0.1a2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / augwrap-0.0.1a2.tar.gz
| Download URL | augwrap-0.0.1a2.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09481c4aed6dbe17a553b686c80f44ff5e7e05d5a8b305f076c615fc745516b4
|
|
BLAKE2b-256 checksum How to use checksums |
cc8b8e374ea8b6935bc521458cda1d90b5b7e3e418b0fc10f0e51fc78a43500d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / augwrap-0.0.1a2-py3-none-any.whl
| Download URL | augwrap-0.0.1a2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b28f7166e13432a31ab3bbc0622138d03d88b3351e70d7a5c693c860d7fc719
|
|
BLAKE2b-256 checksum How to use checksums |
55383440093b1e62d997c18a5e364287f456200e96e9c2738aaebe908477eed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|