cfchen-duke/ProtoPNet

Augmenting Dataset

EoinKenny opened this issue · 4 comments

For anyone recreating this, the img_aug.py file should have this alteration to work correctly I think?

for i in range(len(folders)):
    fd = folders[i]
    tfd = '../../../../' + target_folders[i]

when before it was...

for i in range(len(folders)):
    fd = folders[i]
    tfd = target_folders[i]

@EoinKenny Yes, thank you! Just ran into this.

I tried this way. However, it didn't work. Could you please provide more information? Is your path the same as the author's? Thanks in advance.

Strange it didn't work, yeah everything else in my experiment was the same as the repo. I would imagine the problem is your environment path or something like that. This should work I think. Sorry don't think I can help anymore than that.

tfd = "../../"+target_folders[i]

works for me