Giter VIP home page Giter VIP logo

Comments (3)

mimbres avatar mimbres commented on May 30, 2024 1

@Rodrigo29Almeida

Try setting SAVE_IMG to False in the config file.
But I don't quite understand it, because the training should return the sim_mtx when calculating the loss at the first iteration.

from neural-audio-fp.

Rodrigo29Almeida avatar Rodrigo29Almeida commented on May 30, 2024

Hello, thanks for your help before. There was a problem with a missing "/" in my path to the database. I apologize for the error.

I have installed an anaconda environement following your steps.

As I attempted to run the code in my environment, I encountered an issue in the trainer.py file, specifically in the train_step function. The problematic line is:
feat = m_specaug(m_pre(X)) # (nA+nP, F, T, 1)
The error message I received is as follows:
OperatorNotAllowedInGraphError: using a tf.Tensor as a Python bool is not allowed: AutoGraph did convert this function. This might indicate you are trying to use an unsupported feature.

I am reaching out to seek your guidance on resolving this issue. Additionally, I want to inform you that I previously addressed a problem with len() in the same file. The error message was:
"len is not well defined for symbolic Tensors. (X:0) Please call x.shape rather than len(x) for shape information."
To resolve this, I modified the code from:
n_anchors = len(X[0]) to n_anchors = X[0].shape[0]
I would greatly appreciate your assistance in understanding and resolving the current issue. If you have any suggestions or insights, it would be immensely helpful.

Thank you for your time.

from neural-audio-fp.

mimbres avatar mimbres commented on May 30, 2024

@Rodrigo29Almeida
As for that first error (though I'm not entirely sure until I try it myself), it could come from https://github.com/mimbres/neural-audio-fp/blob/main/model/fp/specaug_chain/layers/ncutout_tarray.py
While dealing with binary masks in graph-mode, we should avoid using python operators like (==, >, < , & |). an example. We are utilizing the @tf.function decorator, which performs auto-graph conversion. Its behavior varies with different TensorFlow versions.

It's likely the simplest solution would be to downgrade if you're using a later version of TensorFlow than the 2.1-2.5 I recommended. Such issues are common during the TF upgrade process.

Also, the modifications you've made to the second error case look good. This also seems to be related to the TF version.

from neural-audio-fp.

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.