Fatemejamalii / E2F-Net

2 stars 2 forks source link

AttributeError: 'NoneType' object has no attribute 'iterdir' #6

Open 124578-chj opened 16 hours ago

124578-chj commented 16 hours ago

File "/root/autodl-tmp/E2F-Net/inference.py", line 105, in infer_on_dirs attr_paths = list(self.args.attr_dir.iterdir()) AttributeError: 'NoneType' object has no attribute 'iterdir'

my parms: self.parser.add_argument('--id_dir', type=Path,default='./CelebA_dataset/celeba_idsT/') self.parser.add_argument('--attr_dir', type=Path) self.parser.add_argument('--mask_dir', type=Path,default='./CelebA_dataset/celeba_masks/') self.parser.add_argument('--eye_dir', type=Path,default='./CelebA_dataset/celeba_eyes/') self.parser.add_argument('--epochnum', type=Path) self.parser.add_argument('--output_dir', type=Path,default='out') self.parser.add_argument('--input_dir', type=Path)

124578-chj commented 16 hours ago

I have upload the inference.py