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

TypeError: 'float' object is not iterable #18

Open
FreshMasterZhang opened this issue Oct 10, 2022 · 4 comments
Open

TypeError: 'float' object is not iterable #18

FreshMasterZhang opened this issue Oct 10, 2022 · 4 comments

Comments

@FreshMasterZhang
Copy link

image

@KissTheRain2000
Copy link

我也遇到了这个问题,请问解决了吗,下面是使用的命令行
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
Copy link

image

@KissTheRain2000
Copy link

解决了,在高版本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
Copy link

tfft-11 commented Jun 6, 2023

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

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

3 participants