Hello, I’m trying to create progress bar using tqdm package.
Here is my code
import numpy as np
import os
from glob import glob
from PIL import Image
from tqdm.notebook import tqdm
path = glob('dataset/mnist_png/training/*/*.png')
height = []
width = []
for i in tqdm(path):
img_pil = Image.open(path)
image = np.array(img_pil)
h, w = image.shape
height.append(h)
width.append(w)
However, progress bar does not changing and stops like this, even though the calculation is done
0%| | 0/60000 [00:00<?, ?it/s]
Is there any way to make progress bar changing?
I am looking forward to see any help. Thanks in advance.
Kind regards,
Yoon Ho