Coder Social home page Coder Social logo

Multiple GPU about dctts-pytorch HOT 5 CLOSED

chaiyujin avatar chaiyujin commented on August 27, 2024
Multiple GPU

from dctts-pytorch.

Comments (5)

chaiyujin avatar chaiyujin commented on August 27, 2024 1

@Tywors
Insert graph = nn.DataParallel(graph) at


"graph" : graph.moduel.state_dict() at
"graph": graph.state_dict(),

from dctts-pytorch.

chaiyujin avatar chaiyujin commented on August 27, 2024 1

@Tywors
Actually, after graph = nn.DataParallel(graph), the original graph is wrapped by a DataParallel. It's possible to access original graph by graph.module.
Maybe you have to change graph to graph.module at several places.
I''m sorry that I don't have time to help you do all changes, because I'm focusing on my private project.

from dctts-pytorch.

Tywors avatar Tywors commented on August 27, 2024

Thanks for your answer!

With this change, this is the result in train:

File "main.py", line 62, in <module> main() File "main.py", line 47, in main train(args.module, args.load) File "/content/dctts-pytorch/pkg/train.py", line 54, in train train_text2mel(load_trained) File "/content/dctts-pytorch/pkg/train.py", line 177, in train_text2mel atten_mask = torch.ones_like(graph.attention) File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 518, in __getattr__ type(self).__name__, name)) AttributeError: 'DataParallel' object has no attribute 'attention'

any suggestion?

from dctts-pytorch.

Tywors avatar Tywors commented on August 27, 2024

Thanks for your time!
I continue trying!

from dctts-pytorch.

lxy444 avatar lxy444 commented on August 27, 2024

Thanks for your time!
I continue trying!

Have you solved the problem?

from dctts-pytorch.

Related Issues (7)

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.