Giter VIP home page Giter VIP logo

Comments (9)

yuanjiacheng avatar yuanjiacheng commented on June 24, 2024 1

How did you switch? Can you post a how to?

replace code
strategy="ddp_find_unused_parameters_true"
in train.py line 547 by
from pytorch_lightning.strategies import DDPStrategy
ddp_gloo = DDPStrategy(process_group_backend="gloo",find_unused_parameters=True)
trainer = Trainer(max_steps=hparams.num_steps,
precision=16 if hparams.vid_hash == True else 32,
callbacks=[checkpoint_callback],
logger=logger,
accelerator='gpu',
devices=hparams.gpus,
num_sanity_val_steps=1,
benchmark=True,
profiler="simple" if len(hparams.gpus) == 1 else None,
val_check_interval=hparams.valid_iters,
limit_val_batches=hparams.valid_batches,
strategy=ddp_gloo)

from codef.

ken-ouyang avatar ken-ouyang commented on June 24, 2024

Hi. You may disable the option deform_hash and vid_hash for training if you do not have tiny-cuda. We implement a version with vanilla pytorch using positional encoding. But the training time will greatly increase and thus it is not recommended.

from codef.

lucasjinreal avatar lucasjinreal commented on June 24, 2024

inference also not support

from codef.

ken-ouyang avatar ken-ouyang commented on June 24, 2024

In that case, for inference, you may also disable these two options. It should work.

from codef.

lucasjinreal avatar lucasjinreal commented on June 24, 2024

disable deform_hash and vid_hash will effect result performance?

from codef.

ken-ouyang avatar ken-ouyang commented on June 24, 2024

Certainly, the type of motion present within a video sequence can impact the performance of the model to varying degrees. Specifically, if the video primarily contains rigid motion, you can expect the performance to remain relatively consistent.

from codef.

justinjohn0306 avatar justinjohn0306 commented on June 24, 2024

How do I switch to gloo backend?
Screenshot 2023-08-27 222904

from codef.

justinjohn0306 avatar justinjohn0306 commented on June 24, 2024

Done.

Screenshot 2023-08-27 233306

from codef.

ataraxyz avatar ataraxyz commented on June 24, 2024

How did you switch? Can you post a how to?

from codef.

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.