Coder Social home page Coder Social logo

Comments (2)

heesuju avatar heesuju commented on August 16, 2024 1

I checked dataloader.py and it seems like function _MultiProcessingDataLoaderIter.del is being called when dataloader iterators are created within a subprocess.
From what I can understand, when a process ends it calls del on the iterator.
If the dataloader iterator is still referenced in a function the dataloader workers are not notified before they're killed, hence causing this error.
Since this problems occurs when memory is being freed after a process ends, it does not seem like it will affect the training process.
I've also checked the result after 3000 epochs, and the model doesn't have any problems during inference so far.
However, this is just a guess based on my experience and surface-level knowledge.
It would be great if anyone could actually confirm this.

from vits.

heesuju avatar heesuju commented on August 16, 2024

I got the exact same error when training with a batch size of 32 on torch 2.0.1
On other forums, the popular solution was to change the "num_workers" value when initializing the dataloader.
I have a feeling this is not the solution, however, as num_workers is set as 8 by default, and lowering this value will only make the training slower, not to mention the fact that VITS is only using 1% of my shared memory during training.
Does anyone know if this error affects training or why it happens at all?

from vits.

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.