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

Unable to execute run_tasks #14

Open
cptay opened this issue Sep 12, 2018 · 5 comments
Open

Unable to execute run_tasks #14

cptay opened this issue Sep 12, 2018 · 5 comments

Comments

@cptay
Copy link

cptay commented Sep 12, 2018

Hi,

I ran into this problem

TypeError: The param "transform" of Nest module "fetch_data" should be type of "Union[Callable, NoneType]". Got
image_transform(
[✓] image_size: Union[int, List[int]],
augmentation: dict,
[✓] mean: List[float] = [0.485, 0.456, 0.406],
[✓] std: List[float] = [0.229, 0.224, 0.225]) -> Callable
Please check if some important params of Nest module "image_transform" have been forgotten in use.

Anyone of you know how to solve this? Or alternativelty anyone of you has the training code without Nest?

Thanks

@Yby-Bob
Copy link

Yby-Bob commented Sep 13, 2018

@cptay I had the same problem with python 3.7, and after switching back to python 3.6.6, the code now works perfectly for me.

@cptay
Copy link
Author

cptay commented Sep 13, 2018

@Yby-Bob Oh, I will try that out, thanks!

@cptay
Copy link
Author

cptay commented Sep 14, 2018

@Yby-Bob It works, thanks!

@ylin0022
Copy link

@Yby-Bob Hi, I also met this error and switched back to 3.6.6 and succeeded in executing run_tasks, while I got another error of scipy in the last part of code:

instance_list = model(input_var, retrieval_cfg=dict(proposals=proposals, param=(0.95, 1e-5, 0.8)))

The error shows a conflict in scipy version but I tried several:
`~\AppData\Local\conda\conda\envs\py36\lib\site-packages\scipy\misc\pilutil.py in toimage(arr, high, low, cmin, cmax, pal, mode, channel_axis)
324 ((3 in shape) or (4 in shape)))
325 if not valid:
--> 326 raise ValueError("'arr' does not have a suitable array shape for "
327 "any mode.")
328 if len(shape) == 2:

ValueError: 'arr' does not have a suitable array shape for any mode.`

Have you ever met this error?
And please give me your scipy version for myreference, Thanks!

@ylin0022
Copy link

@Yby-Bob
Solved it, it comes from the wrong dimension when processing numpy array of image, not the scipy version.
Sorry to bother you.

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