Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'Datasets/AMOS-views/AMOS-masks/00000118.png' #40

Open
myfamily111 opened this issue Mar 6, 2023 · 0 comments

Comments

@myfamily111
Copy link

Traceback (most recent call last):
File "/home/sunxiaowei/djq/HardNet_M/ftrain.py", line 128, in
main(train_loader=get_train_dataset(args, data_name).init(args.model_dir, save_name, args=args),
File "/home/sunxiaowei/djq/HardNet_M/datasets.py", line 333, in init
self.prepare_epoch(gen_tuples=False)
File "/home/sunxiaowei/djq/HardNet_M/datasets.py", line 288, in prepare_epoch
Npositives=self.Npositives,
File "", line 44, in init
File "/home/sunxiaowei/djq/HardNet_M/Utils/AMOS_dataset.py", line 73, in post_init
self.prepare_dataset(self.Npatch_sets, overwrite=self.overwrite)
File "/home/sunxiaowei/djq/HardNet_M/Utils/AMOS_dataset.py", line 644, in prepare_dataset
new_tracks, new_lafs, new_patches_mask = self.generate_LAFs_and_patches_from_dir(img_dir, Nnew_tracks)
File "/home/sunxiaowei/djq/HardNet_M/Utils/AMOS_dataset.py", line 478, in generate_LAFs_and_patches_from_dir
mask = Image.open(pjoin(self.masks_dir, dir_name.split('_')[0]) + '.png')
File "/home/sunxiaowei/miniconda3/envs/pytorch/lib/python3.7/site-packages/PIL/Image.py", line 2809, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'Datasets/AMOS-views/AMOS-masks/00000118.png'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant