I wanted to make sure I was using the best and standard way to use miniImagent for pytorch. Is this the recommended way:

  
      github.com
  
  
    markdtw/meta-learning-lstm-pytorch/blob/master/dataloader.py 137
from __future__ import division, print_function, absolute_import

import os
import re
import pdb
import glob
import pickle

import torch
import torch.utils.data as data
import torchvision.datasets as datasets
import torchvision.transforms as transforms
import PIL.Image as PILI
import numpy as np

from tqdm import tqdm


class EpisodeDataset(data.Dataset):



  This file has been truncated. show original

  
  
    
    
  
  



related:

How does one download a data set from a file automatically with Pytorch? 9
I am having errors with the other solutions suggested: How does one download dataset from gdrive using pytorch? 1