Hi, I noticed that on line 42, the recursive=True keyword argument might be missing:
pngs = glob.glob(data_dir + "/**/*.png")
For it to recursively search files in data_dir, from my experience, it's necessary to include the recursive=True argument. While ** is intended to ensure recursive search, in practice, glob.glob only performs a recursive search when both ** is used, and recursive=True is mentioned. Otherwise, it treats ** as *.
The corrected line could be:
pngs = glob.glob(data_dir + "/**/*.png", recursive=True)
Hi, I noticed that on line 42, the
recursive=True
keyword argument might be missing:pngs = glob.glob(data_dir + "/**/*.png")
For it to recursively search files in
data_dir
, from my experience, it's necessary to include therecursive=True
argument. While**
is intended to ensure recursive search, in practice,glob.glob
only performs a recursive search when both**
is used, andrecursive=True
is mentioned. Otherwise, it treats**
as*
.The corrected line could be:
pngs = glob.glob(data_dir + "/**/*.png", recursive=True)
Edit: Same goes for the line in infer_grid.py