Code Monkey home page Code Monkey logo

Comments (3)

jesseengel avatar jesseengel commented on August 16, 2024 1

Okay, I understand. You also need to set use_tpu=False in get_train_op.

train_op = ddsp.training.train_util.get_train_op(loss, 
                                                 learning_rate=learning_rate,
                                                 use_tpu=False)

I'll put in a PR to update the notebook to make this clear and set this to default as that's the more common option.

from ddsp.

jesseengel avatar jesseengel commented on August 16, 2024

Hi! Can you clarify, is this in colab, on cloud or locally? What command are you using to train?

from ddsp.

jiemojiemo avatar jiemojiemo commented on August 16, 2024

Hi! Can you clarify, is this in colab, on cloud or locally? What command are you using to train?

Hi!I wan to train ddsp in locally. To be more precise, I want to run 3_training.ipynb in my gpu server.

I have tried modifying the code

# Setup the session.
import os
assert "COLAB_TPU_ADDR" in os.environ, "ERROR: Not connected to a TPU runtime; please set the runtime type to 'TPU'."
TPU_ADDRESS = "grpc://" + os.environ["COLAB_TPU_ADDR"]
sess = tf.Session(TPU_ADDRESS)

to this

sess = tf.Session()

But I got some warnings and errors

WARNING:tensorflow:cross_replica_sum should be used within a tpu_shard_context, but got unset number_of_shards. Assuming 1.
InvalidArgumentError: No OpKernel was registered to support Op 'CrossReplicaSum' used by node training/CrossReplicaSum (defined at /root/anaconda3/envs/hw/lib/python3.6/site-packages/ddsp/training/train_util.py:101) with these attrs: [T=DT_FLOAT, _class=["loc:@train.../transpose"]]
Registered devices: [CPU, GPU, XLA_CPU, XLA_GPU]
Registered kernels:
  <no registered kernels>

	 [[training/CrossReplicaSum]]

Errors may have originated from an input operation.
Input Source operations connected to node training/CrossReplicaSum:
 training/clip_by_global_norm/training/clip_by_global_norm/_0 (defined at /root/anaconda3/envs/hw/lib/python3.6/site-packages/ddsp/training/train_util.py:35)

from ddsp.

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.