Skip to content

Commit

Permalink
at_tf.function is commented
Browse files Browse the repository at this point in the history
  • Loading branch information
igivis7 committed Dec 19, 2022
1 parent c375039 commit cffa739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def split_audio_to_uChunks(audio_data):
## ==== Functions to make spectrograms ====
## ----------------------------------------

@tf.function
# @tf.function
def get_uChunk_spectrogram( waveform, sampling_rate, file_path, uChunk_index ):
waveform_1d_shape = tf.shape(waveform)
n_samples = waveform_1d_shape[0]
Expand Down Expand Up @@ -429,7 +429,7 @@ def get_uChunk_spectrogram( waveform, sampling_rate, file_path, uChunk_index ):

uChunk_spectrogram_shape_to_analyze = (64*2*1, 64*1*1)

@tf.function
# @tf.function
def uChunk_spectrogram_resize(spectrogram, file_path, uChunk_index):
return tf.image.resize(spectrogram, uChunk_spectrogram_shape_to_analyze), file_path, uChunk_index

Expand Down

0 comments on commit cffa739

Please sign in to comment.