MCPcopy
hub / github.com/Audio-AGI/AudioSep / append

Method append

utils.py:214–219  ·  view source on GitHub ↗
(self, steps, statistics, split, flush=True)

Source from the content-addressed store, hash-verified

212 self.statistics_dict = {"balanced_train": [], "test": []}
213
214 def append(self, steps, statistics, split, flush=True):
215 statistics["steps"] = steps
216 self.statistics_dict[split].append(statistics)
217
218 if flush:
219 self.flush()
220
221 def flush(self):
222 pickle.dump(self.statistics_dict, open(self.statistics_path, "wb"))

Callers 15

__call__Method · 0.80
wav_to_spectrogramMethod · 0.80
spectrogram_to_wavMethod · 0.80
create_film_modulesMethod · 0.80
batch_to_listMethod · 0.80
_get_audio_embedMethod · 0.80
__init__Method · 0.80
process_ipcFunction · 0.80
get_data_from_logFunction · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected