Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

pickle error.. using chainercv with chainermn #262

Closed
MannyKayy opened this issue Jun 9, 2017 · 2 comments
Closed

pickle error.. using chainercv with chainermn #262

MannyKayy opened this issue Jun 9, 2017 · 2 comments
Labels

Comments

@MannyKayy
Copy link
Contributor

MannyKayy commented Jun 9, 2017

Hi,

I am trying to use chainercv with chainermn.

I used chainercv with some of my new projects and when i attempt to distribute training using chainermn, I receive the following error from the scatter_dataset method. All i am doing is applying a random_flip transform to the training data. I get the error for all my projects that use chainercv and have replicated it using the chainermn mnist example file .

image

I'm not sure as to where to raise this issue so I have raised it in both the chainercv and chainermn repos.

@yuyu2172
Copy link
Member

yuyu2172 commented Jun 9, 2017

The error occurred because function objects can not be pickled.
We will look into a way to fix this issue. Thank you very much for reporting.

@yuyu2172 yuyu2172 added the bug label Jun 12, 2017
@yuyu2172
Copy link
Member

Hi. Sorry for the late reply.
Since pickling is the issue, can you put the transform function outside of the main function?

A function can be picklable as long as it is not declared inside another function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants