Giter Club home page Giter Club logo

Comments (11)

mrgloom avatar mrgloom commented on September 27, 2024 3

pip install sru not helped

Replacing At line 150 in gantts/models.py, change from cuda_functional import SRU to from sru import SRU
gives an error:

  File "/data/my_data/external_projects/gantts/my_env/lib/python3.5/site-packages/sru/sru_functional.py", line 35, in _lazy_load_cuda_kernel
    from cuda_functional import SRU_Compute_GPU
ImportError: No module named 'cuda_functional'

Update:
pip install sru[cuda] helped

from gantts.

r9y9 avatar r9y9 commented on September 27, 2024

Try Install https://github.com/taolei87/sru, please.

from gantts.

annisaabuhamid avatar annisaabuhamid commented on September 27, 2024

Traceback (most recent call last):
File "train.py", line 828, in
mse_w=mse_w, mge_w=mge_w)
File "train.py", line 544, in train_loop
model_g, generator_input, R, cpu_sorted_lengths)
File "train.py", line 353, in apply_generator
y_hat, R, hp.stream_sizes, hp.has_dynamic_features)
File "/home/sasa/nisa/gantts/gantts/multistream.py", line 120, in multi_stream_mlpg
y = unit_variance_mlpg(R, x) if v else x
File "/usr/local/lib/python2.7/dist-packages/nnmnkwii/autograd/_impl/mlpg.py", line 226, in unit_variance_mlpg
return UnitVarianceMLPG(R)(means)
File "/usr/local/lib/python2.7/dist-packages/nnmnkwii/autograd/_impl/mlpg.py", line 152, in forward
out = torch.matmul(self.R, reshaped_means)
File "/usr/local/lib/python2.7/dist-packages/torch/functional.py", line 217, in matmul
tensor1_expanded = tensor1.expand(*(expand_batch_portion + tensor1_exp_size[-2:]))
RuntimeError: cuda runtime error (2) : out of memory at /pytorch/torch/lib/THC/generic/THCStorage.cu:66

@r9y9 i got another error after i run ./tts_demo.sh tts_test . So, what is the best solution to fix this error?

from gantts.

r9y9 avatar r9y9 commented on September 27, 2024

dup of #3. Try smaller batch size.

from gantts.

Shikherneo2 avatar Shikherneo2 commented on September 27, 2024

You could just try using GRU instead of SRU. replace that in hparams.py

from gantts.

m1randa avatar m1randa commented on September 27, 2024

I have the same problem with @niccanicci. Can you please help me solve it?
How can we install GRU instead of SRU?

from gantts.

Cpruce avatar Cpruce commented on September 27, 2024

At line 150 in gantts/models.py, change from cuda_functional import SRU to from sru import SRU

from gantts.

yuuSiVo avatar yuuSiVo commented on September 27, 2024

I have same issue

File "/mnt/c/Users/yuu/Documents/gantts-jp/gantts/models.py", line 150, in init
from cuda_functional import SRU
ImportError: No module named 'cuda_functional'

from gantts.

yuuSiVo avatar yuuSiVo commented on September 27, 2024

I installed all cuda enviroment

from gantts.

r9y9 avatar r9y9 commented on September 27, 2024

See https://github.com/asappresearch/sru#examples

Looks like sru changed the module name.

from gantts.

coocoorhin avatar coocoorhin commented on September 27, 2024

See https://github.com/asappresearch/sru#examples

Looks like sru changed the module name.

yeah they did changed the module name. also removed "use_relu"

from gantts.

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.