ShuaiLYU / REB

REB:Reducing Biases in Representation for Industrial Anomaly Detection
Apache License 2.0
20 stars 3 forks source link

Error of FileNotFoundError #2

Open cjmsnll opened 10 months ago

cjmsnll commented 10 months ago

FileNotFoundError: [Errno 2] No such file or directory: '/root/autodl-fs/mvtec_anomaly_detection_saliency/screw/train/good/118.png',I would like to ask how to solve this kind of error, I reproduce other code will also appear this problem, each time I can not find the image is different.

cjmsnll commented 10 months ago

File "/root/autodl-fs/REB/projects/reb_mvtec/main.py", line 138, in train_data = MVTecAD(**PARAM.mvt_data,transform=augment_transform) File "/root/autodl-fs/REB/src/Data/anomaly_datasets.py", line 42, in init self.load_data() File "/root/autodl-fs/REB/src/Data/anomaly_datasets.py", line 63, in load_data self.imgs = Parallel(n_jobs=10)( File "/root/miniconda3/envs/reb/lib/python3.10/site-packages/joblib/parallel.py", line 1952, in call return output if self.return_generator else list(output) ... I guess it might be a problem with the value setting of joblib that causes reading confusion?

ShuaiLYU commented 10 months ago

FileNotFoundError: [Errno 2] No such file or directory: '/root/autodl-fs/mvtec_anomaly_detection_saliency/screw/train/good/118.png',I would like to ask how to solve this kind of error, I reproduce other code will also appear this problem, each time I can not find the image is different.

It seems the image file is not existing, please check.