GithubHelp home page GithubHelp logo

Comments (7)

yoyo-nb avatar yoyo-nb commented on May 27, 2024

It is possible that the dataset failed to load, causing this for loop not to be run.

from thin-plate-spline-motion-model.

surfingnirvana avatar surfingnirvana commented on May 27, 2024

The videos have mp4 format. I had the same error with the repository https://github.com/snap-research/articulated-animation/
Training articulated-animation in standard training mode with png and mp4 files was successful. When trying to train in avd mode mp4 files did not work. pngs were working fine.
Now in thin plate model neither png nor mp4 do not work.

I had to change this line in run.py because of an error:

with open(opt.config) as f:
    config = yaml.load(f)

to

with open(opt.config) as f:
    config = yaml.load(f, Loader=yaml.FullLoader)

from thin-plate-spline-motion-model.

yoyo-nb avatar yoyo-nb commented on May 27, 2024
  1. you can check that the dataset path in the config file is correct.
  2. I use the same dataset loading script as mraa and the code should be fine
  3. MRAA's avd mode uses a larger batchsize (256). mp4 mode loads a large amount of video into memory, which can lead to memory overflow, while png mode loads only two frames of images for each sample, so it is better to use PNG mode.

from thin-plate-spline-motion-model.

surfingnirvana avatar surfingnirvana commented on May 27, 2024

It appears to have this error when i change the num_repeats = 150 to 2 in config file.
UnboundLocalError: local variable 'x' referenced before assignment

from thin-plate-spline-motion-model.

yoyo-nb avatar yoyo-nb commented on May 27, 2024

Are you using your own dataset with a small sample size, if so, change this line to drop_last=False.

from thin-plate-spline-motion-model.

surfingnirvana avatar surfingnirvana commented on May 27, 2024

Ok, this is fixed. I am using a small sample size. But it is still using the memory to the max. Is there any way i could limit this behaviour? For standard training i set batch size to 7 for ~10 GB VRAM and num_repeats = 2. With your fix its running ok.

from thin-plate-spline-motion-model.

thhung avatar thhung commented on May 27, 2024

@surfingnirvana Did you end up with good results from your training?

from thin-plate-spline-motion-model.

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.