remtorch 0.0.2

Creator: railscoderz

Last updated:

0 purchases

remtorch 0.0.2 Image
remtorch 0.0.2 Images

Languages

Categories

Add to Cart

Description:

remtorch 0.0.2

Example of usage
import io
from PIL import Image
import numpy as np
import torch
from remtorch import RemoteDataset


class ImageDataset(RemoteDataset):
def prepare_item(self, item):
buf = io.BytesIO(item)
buf.seek(0)
img = Image.open(buf)
return np.array(img)

ds = ImageDataset(
'servername',
'username',
'password',
'/path/to/files',
batchsize
)

dl = torch.utils.data.DataLoader(ds, batchsize)
for img in dl:
# do smth

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.