Skip to content

Commit 2388f84

Browse files
committed
tqdm for resynthesis loop.
1 parent b0cfcd0 commit 2388f84

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

experiments/resynthesis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def resynthesis_from_model(audio_path, model_folder_path, input_audio_improver =
7676
# Apply window and overlap and add -------------------------------------------------
7777
synthesized_segment = synthesized_segment * window
7878
resynthesis[i * hop_size: i * hop_size + frame_size] += synthesized_segment
79+
print(f"Processed segment {i+1}/{N_segments}", end='\r')
7980
# Envelope follower step --------------------------------------------------------------
8081
# checkk that envelope_follower is between 0 and 1
8182
if envelope_follower < 0 or envelope_follower > 1:

experiments/texdsp_resynthesis.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"\n",
6262
"def full_synthesis(texture_type, input_audio_improver, energy_imposition, envelope_follower):\n",
6363
" model_paths = \"checkpoints/\"\n",
64-
" sound_paths = \"evaluation_sounds/\"\n",
64+
" sound_paths = \"evaluation_sounds_texDSP/\"\n",
6565
"\n",
6666
" audio_path = os.path.join(sound_paths, f\"{texture_type}.wav\")\n",
6767
" original = librosa.load(audio_path, sr=44100, mono=True)[0]\n",
@@ -88,7 +88,7 @@
8888
],
8989
"metadata": {
9090
"kernelspec": {
91-
"display_name": "env_ddsp_textures",
91+
"display_name": "venv_ddsp_textures",
9292
"language": "python",
9393
"name": "python3"
9494
},

0 commit comments

Comments
 (0)