Git Product home page Git Product logo

Comments (8)

FabianIsensee avatar FabianIsensee commented on August 16, 2024 1

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.

FabianIsensee avatar FabianIsensee commented on August 16, 2024 1

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.

FabianIsensee avatar FabianIsensee commented on August 16, 2024 1

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.

FabianIsensee avatar FabianIsensee commented on August 16, 2024

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.

justusschock avatar justusschock commented on August 16, 2024

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.

FabianIsensee avatar FabianIsensee commented on August 16, 2024

Did that resolve your problem?

from batchgenerators.

justusschock avatar justusschock commented on August 16, 2024

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.

justusschock avatar justusschock commented on August 16, 2024

That fixed it. Thanks a lot!

from batchgenerators.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.