application_vnd.jupyter.stderr_output_27.png application_vnd.jupyter.stderr_output_9.png application_vnd.jupyter.stderr_output_7.png application_vnd.jupyter.stderr_output_11.png text_plain_output_20.png text_plain_output_4.png application_vnd.jupyter.stderr_output_25.png text_plain_output_14.png text_plain_output_10.png text_plain_output_6.png text_plain_output_24.png application_vnd.jupyter.stderr_output_23.png text_plain_output_18.png application_vnd.jupyter.stderr_output_19.png application_vnd.jupyter.stderr_output_13.png application_vnd.jupyter.stderr_output_3.png text_plain_output_22.png application_vnd.jupyter.stderr_output_5.png text_plain_output_16.png application_vnd.jupyter.stderr_output_15.png text_plain_output_8.png application_vnd.jupyter.stderr_output_17.png text_plain_output_26.png text_plain_output_28.png text_plain_output_2.png application_vnd.jupyter.stderr_output_29.png application_vnd.jupyter.stderr_output_1.png text_plain_output_12.png application_vnd.jupyter.stderr_output_21.png
from PIL import Image

import os

import torch
from torch.utils.data import DataLoader
import torchvision
import torchvision.transforms as T
from torchvision.io import read_image, ImageReadMode
from sklearn.model_selection import train_test_split
import os
import json
from tqdm import tqdm
from PIL import Image
import matplotlib.pyplot as plt
import random
Image.MAX_IMAGE_PIXELS = None

ds_path = '/kaggle/input/raw-mmimdb/mmimdb/dataset/'
ids = list(set([x.split('.')[0] for x in os.listdir(ds_path)]))

img = f'{ds_path}{ids[0]}.jpeg'
meta = f'{ds_path}{ids[0]}.json'
Image.open(img)