question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't pickle local object FastaiDataLoaderWithCollate

See original GitHub issue

🐛 Bug

Describe the bug Cannot train in mask_rcnn_pennfudan.ipynb with defaults params.

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/airctic/icevision.git
  2. open mask_rcnn_pennfudan.ipynb notebook
  3. run all code in the notebook
  4. when running learn.fine_tune(10, 5e-4, freeze_epochs=2) cell getting this error: Can't pickle local object 'convert_dataloader_to_fastai.<locals>.FastaiDataLoaderWithCollate'

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: windows 10
  • conda 4.9.0
  • icedata 0.1.0
  • icevision 0.2.1.post1
  • python 3.6.12
  • fastai 2.0.16
  • pytorch 1.6.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FraPochetticommented, Oct 29, 2020

@dodoslav I confirm I am using WSL2 too, without issues so far.

0reactions
JozefResetarcommented, Nov 3, 2020

Ok thank you guys !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't pickle local object - Stack Overflow
I get Can't pickle local object 'exhaust.__init__.<locals>.tour_select' or PermissionError: [WinError 5] Access is denied.
Read more >
cant pickle local object | The search engine you control.
I would like to use multiprocess package for example in this code. I've tried to call the function create_new_population and distribute the data...
Read more >
Unable to pickle gaussian process - v4 - PyMC Discourse
Hi, in Pymc3 I happily saved the trace and the gaussian process object as a pickle ... AttributeError: Can't pickle local object '_make_nice_attr_error....
Read more >
Can't pickle local object 'DataLoader.__init ... - PyTorch Forums
Hi all, I hope everybody reading this is having a great day. So I have a problem with torchvision.transforms.Lambda() function when used ...
Read more >
Can't pickle local object - exporting model - Part 1 (2020)
I am trying to export a model but am getting a pickle error. I know that lambda functions cannot be pickled and I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found