Comments (8)
At some point we had another user having issues with anaconda. Sometimes anaconda installs funky combinations of python package version. One thing you could try is to use a regular python virtualenv and install everything with pip.
virtualenv -p python3 my_venv_name
source my_venv_name/bin/activate
pip3 install numpy==1.14.5 # and whatever else you need
cd my_batchgenerators_folder
pip3 install --upgrade .
from batchgenerators.
What I was trying to say is that sometimes conda instally funky versions of other python packages we depend on. If anything is installed by conda then you should try installing everything by pip instead
from batchgenerators.
My guess still is that conda botched up some libraries.
It's most likely not your dataset that causes the problem.
AttributeError: Can't pickle local object 'MultiThreadedAugmenter._start..producer'
That is an error arising from our code, not your dataset.
producer was so far defined within the MultiThreadedAugmenter. That worked well for all of us in the department. I just pushed a new commit where I moved it out of MultiThreadedAugmenter. Please pull, reinstall (use either pip install -e or pip install --upgrade to make sure changes are applied) and try again.
Best,
Fabian
from batchgenerators.
Hi,
I just pulled the most recent master and tried some of my scripts without errors. I cannot reproduce your problem. Please provide a minimalistic example that crashes, otherwise I am afraid I can't help :-/
Best,
Fabian
from batchgenerators.
Thanks for your suggestion. Since I installed the package via pip in conda (forgot to mention that) it should actually be the same.
I'll see if I can break it down to a minimal example, since I have lot's of internal dependencies there.
from batchgenerators.
Did that resolve your problem?
from batchgenerators.
Unfortunately not.
However, since this isn't directly related to this repo, I closed this issue.
There's probably a small issue that prevents my dataset from being pickled. Because of that, I'll just rewrite my dataset from scratch and try to fix it that way.
from batchgenerators.
That fixed it. Thanks a lot!
from batchgenerators.
Related Issues (20)
- Suggestion of multiprocess mechanism in MultiThreadedAugmenter
- How can we use batchgenerators offline
- Data type for both input images and labels
- How to do batchgenerator on many images in a folder?
- Why twice crop in Brats example?
- Proposal: reproducibility in DataLoader HOT 1
- Incompatible with nnU-Net? HOT 1
- ImportError: cannot import name 'MultiThreadedAugmenter' from 'batchgenerators.dataloading' HOT 2
- RuntimeError HOT 7
- fillup_pad disappeared?
- from batchgenerators.dataloading import SingleThreadedAugmenter?
- RuntimeWarning in color_augumentations.
- error HOT 1
- Publish new version of batchgenerator for using Misalignment DA
- Logging should not be done with the root logger
- multithreaded_with_batches.ipynb: ImportError HOT 1
- A problem about SpatialTransform_2
- About 3D augmentation
- Question about multithreading:
- ImportError: cannot import name 'MultiThreadedAugmenter' from 'batchgenerators.dataloading' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batchgenerators.