lee-zq / 3DUNet-Pytorch

3DUNet implemented with pytorch
484 stars 108 forks source link

self.scale_factor = float(scale_factor) if scale_factor else None出现问题 #21

Open chunxia0202 opened 3 years ago

chunxia0202 commented 3 years ago

在上采样的时候出现这个问题是什么情况呢,是我的版本不对吗 File "/home/qinxueke/.conda/envs/vic/lib/python3.6/site-packages/torch/nn/modules/upsampling.py", line 125, in init self.scale_factor = float(scale_factor) if scale_factor else None TypeError: float() argument must be a string or a number, not 'tuple'

jianglanlele commented 3 years ago

@chunxia0202 解决了没

jianglanlele commented 3 years ago

@chunxia0202 numpy==1.14.2 torch==1.0.1 visdom==0.1.8.8 pandas==0.23.3 scipy==1.0.0 tqdm==4.40.2 scikit-image==0.13.1 SimpleITK==1.0.1 pydensecrf==1.0rc3

anqin1117 commented 2 years ago

@chunxia0202 numpy==1.14.2 torch==1.0.1 visdom==0.1.8.8 pandas==0.23.3 scipy==1.0.0 tqdm==4.40.2 scikit-image==0.13.1 SimpleITK==1.0.1 pydensecrf==1.0rc3 真的是版本问题吗?我换了环境也出现这个错误了。哪个包版本没对上?

chunxia0202 commented 1 year ago

没有问题啦,我改过来了,感谢感谢

发自我的iPhone

------------------ 原始邮件 ------------------ 发件人: anqin1117 @.> 发送时间: 2022年5月12日 18:15 收件人: lee-zq/3DUNet-Pytorch @.> 抄送: chunxia0202 @.>, Mention @.> 主题: Re: [lee-zq/3DUNet-Pytorch] self.scale_factor = float(scale_factor) if scale_factor else None出现问题 (#21)

@chunxia0202 numpy==1.14.2 torch==1.0.1 visdom==0.1.8.8 pandas==0.23.3 scipy==1.0.0 tqdm==4.40.2 scikit-image==0.13.1 SimpleITK==1.0.1 pydensecrf==1.0rc3 真的是版本问题吗?我换了环境也出现这个错误了。哪个包版本没对上?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>