Comments (3)
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.
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.
@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)
- Unable to open the file "../demo_template.ipynb" HOT 1
- Speed of generating fingereprints from custom source HOT 8
- Questions about inquiries HOT 8
- Could you please provide the checksum of fma_full only? HOT 8
- Why the loss computed during training is NanοΌ HOT 9
- permission denied for building Docker Custom Image HOT 5
- FileNotFoundError: [Errno 2] No such file or directory: './logs/emb/CHECKPOINT_NAME/CHECKPOINT_INDEX/query_shape.npy' HOT 4
- IS THIS REPOSITORY HELPFUL FOR FOLLOWING SITUATION HOT 1
- Dimension of Zt HOT 7
- Getting training loss value as nan and val loss as nan HOT 8
- positve pairs and negitive pairs? HOT 1
- question: my modle train loss:nan HOT 2
- Comparing short audio files HOT 1
- finetuning on short audios HOT 5
- Evaluation with custom dataset HOT 7
- Fingerprint generation from custom dataset HOT 2
- Reported train, val, test split sizes vs actual FMA size HOT 3
- Questions Regarding Custom Data Testing in Audio Fragment Identification HOT 1
- Model Definition Front Strides HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neural-audio-fp.