ZhaoZhibin / DL-based-Intelligent-Diagnosis-Benchmark

Source codes for the paper "Deep Learning Algorithms for Rotating Machinery Intelligent Diagnosis: An Open Source Benchmark Study"
MIT License
592 stars 164 forks source link

TypeError: 'float' object is not iterable #18

Open FreshMasterZhang opened 1 year ago

FreshMasterZhang commented 1 year ago

image

KissTheRain2000 commented 1 year ago

我也遇到了这个问题,请问解决了吗,下面是使用的命令行 train.py --model_name cnn_2d --data_name CWRUCWT --data_dir D:\PycharmProjects\DL-based-Intelligent-Diagnosis-Benchmark-master\Data\cwru --normlizetype mean-std --processing_type R_A

KissTheRain2000 commented 1 year ago

image

KissTheRain2000 commented 1 year ago

解决了,在高版本scipy中scipy.misc.imresize用不了,将 seq = scipy.misc.imresize(seq, self.size, interp='bilinear', mode=None) 替换为 im = Image.fromarray(seq) size = tuple((np.array(im.size) * self.size).astype(int)) seq = np.array(im.resize(size, Image.BILINEAR))

tfft-11 commented 1 year ago

你好,为什么我照你这样修改还是不能运行 ,可以分享一下嘛