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

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

Open
chunxia0202 opened this issue Jul 28, 2021 · 4 comments

Comments

@chunxia0202
Copy link

在上采样的时候出现这个问题是什么情况呢,是我的版本不对吗
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
Copy link

@chunxia0202 解决了没

@jianglanlele
Copy link

@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
Copy link

@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
Copy link
Author

chunxia0202 commented Oct 11, 2022 via email

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