Giter Site home page Giter Site logo

Comments (7)

kashi211 avatar kashi211 commented on May 25, 2024

command i used is:
python3 demo.py --config config/fashion-256.yaml --driving_video '11.mp4' --source_image '22.png' --checkpoint 'fashion.pth.tar' --relative --adapt_scale

from first-order-model.

AliaksandrSiarohin avatar AliaksandrSiarohin commented on May 25, 2024

Most likely you have wrong version of pytorch. You need torch==1.0.0

from first-order-model.

yj7082126 avatar yj7082126 commented on May 25, 2024

Hi. @AliaksandrSiarohin would you mind explaining this "bilinear warping" issue that occurs after pytorch 1.0.0 in detail? And in which part of the code does this issue occurs?

from first-order-model.

AliaksandrSiarohin avatar AliaksandrSiarohin commented on May 25, 2024

Hi,
The problem occurs only in training, at some point model start to diverge and produce some bad solutions. I've tried it with pytroch 1.1, maybe in later versions 1.3, 1.4 it does not occur.
Through I don't have time to investigate it deeply, I belive that the problem is in bilinear warping (

return F.grid_sample(inp, deformation)
).
Also, at a test time there are no problems.

from first-order-model.

yj7082126 avatar yj7082126 commented on May 25, 2024

Thank you for your answer, @AliaksandrSiarohin . I tested this issue with versions 1.2, 1.3 and 1.4, and they all ended in vanishing gradients, but version 1.0.1 works. So I believe that some code change between 1.0.1 and 1.1 was the problem, yet on the update notes there wasn't a significant change on torch.nn.functional.

from first-order-model.

AliaksandrSiarohin avatar AliaksandrSiarohin commented on May 25, 2024

Dear @yj7082126 thank you for letting me know,
The reason, I believe it is in grid_sample because in my other project I meet the same problem when I add a grid_sample with PyTorch 1.1. Without it everything was fine.
I'm not familiar with a PyTorch code base, so it is hard to for me to understand what really changed.
Maybe when I have more time, I will try to remove this grid_sample and try different modes of it.
Anyway thank you for your investigation and for letting me know.

from first-order-model.

yj7082126 avatar yj7082126 commented on May 25, 2024

Thanks!

from first-order-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.