GithubHelp home page GithubHelp logo

jkvt2 / latent-pose-descriptors Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vincent-thevenin/realistic-neural-talking-head-models

5.0 1.0 1.0 65.78 MB

My implementation of Neural Head Reenactment with Latent Pose Descriptors (Egor Burkov et al.).

License: GNU General Public License v3.0

Python 100.00%

latent-pose-descriptors's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jinwonkim93

latent-pose-descriptors's Issues

IndexError: index -1 is out of bounds for axis 0 with size 0

After configuring the project as suggested in step 0. modify params/params.py as required, when I am running the following command

python train.py

then I am getting the following exception

Traceback (most recent call last):
  File "/home/nitin/Latent-Pose-Descriptors/train.py", line 26, in <module>
    dataLoader = DataLoader(dataset, batch_size=batch_size, shuffle=True,
  File "/home/nitin/anaconda3/envs/latent_env/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 266, in __init__
    sampler = RandomSampler(dataset, generator=generator)  # type: ignore
  File "/home/nitin/anaconda3/envs/latent_env/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 102, in __init__
    if not isinstance(self.num_samples, int) or self.num_samples <= 0:
  File "/home/nitin/anaconda3/envs/latent_env/lib/python3.9/site-packages/torch/utils/data/sampler.py", line 110, in num_samples
    return len(self.data_source)
  File "/home/nitin/Latent-Pose-Descriptors/dataset/dataset_class.py", line 84, in __len__
    return self.vid_num[-1]
IndexError: index -1 is out of bounds for axis 0 with size 0

Please help me in solving this.

Cannot resume checkpoints when using different batch sizes

I trained on a server with batch size 12 and tried to resume the checkpoint on my machine with batch size 6 but I got the following error at this line. Can you update the code to be independent of batch size?

Traceback (most recent call last):
  File "train.py", line 208, in <module>
    optimizer.step()
  File "/home/ken/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
    return func(*args, **kwargs)
  File "/home/ken/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/optim/adam.py", line 99, in step
    exp_avg.mul_(beta1).add_(grad, alpha=1 - beta1)
RuntimeError: The size of tensor a (12) must match the size of tensor b (6) at non-singleton dimension 0

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.