Git Product home page Git Product logo

Comments (3)

chgroenbech avatar chgroenbech commented on August 14, 2024

This usually happens when the chosen reconstruction distribution (likelihood function) is not fit for the data set. Have you another distribution? Right now, the training will only be aborted if the ELBO for a batch becomes indefinite during training. I have added additional checks for the training and validation sets in the next version. So you should be able to evaluate the model afterwards.

I have not used Google Colab, so I'm not familiar with it. When I use scVAE on a local machine, TensorFlow use all available resources unless I limit it.

from scvae.

gprashant17 avatar gprashant17 commented on August 14, 2024

I am currently using ZINB distribution and I have not tried other distributions. Thanks for adding the additional checks!

from scvae.

wenyuhaokikika avatar wenyuhaokikika commented on August 14, 2024

This usually happens when the chosen reconstruction distribution (likelihood function) is not fit for the data set. Have you another distribution? Right now, the training will only be aborted if the ELBO for a batch becomes indefinite during training. I have added additional checks for the training and validation sets in the next version. So you should be able to evaluate the model afterwards.

I have not used Google Colab, so I'm not familiar with it. When I use scVAE on a local machine, TensorFlow use all available resources unless I limit it.

Sorry, I am using scvae version 2.1.4, but when I run it, I notice that it is still running on the CPU.

For example, in the code snippet at https://github.com/scvae/scvae/blob/d6148efabfb12eda8bd1b895e1bb72f592e39ab0/scvae/cli.py#L629C9-L629C9, if I want to run it on the GPU, I usually specify model = model.to(device). In TensorFlow, I might use with tf.device('/gpu:0'), but I haven't found a similar option here. The entire training process is happening on the CPU. If I am mistaken, please point out my error and let me know how to train on the GPU. If my understanding is correct, would it be possible to add an option like scvae train --gpu-id 0?

from scvae.

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.