Spaces:
Running
Running
Martijn Bartelds
commited on
Commit
·
9b9f291
1
Parent(s):
8c466c9
Update logging
Browse files
neural_acoustic_distance.py
CHANGED
@@ -128,7 +128,6 @@ if model_id == "other":
|
|
128 |
key="model")
|
129 |
|
130 |
print(f"\n### Start new run\n") # test
|
131 |
-
print('0. RAM memory available:', round(psutil.virtual_memory()[1] / (1024.0 ** 3), 1), 'GB') # test
|
132 |
|
133 |
try:
|
134 |
cfg = AutoConfig.from_pretrained(model_id)
|
@@ -224,4 +223,4 @@ if filename_x is not None and filename_y is not None and layer is not None:
|
|
224 |
btn = st.download_button(label="Download plot", data=file, file_name="plot.pdf", mime="image/pdf")
|
225 |
|
226 |
print('8. End', datetime.now().strftime('%d-%m-%Y %H:%M:%S')) # test
|
227 |
-
print(
|
|
|
128 |
key="model")
|
129 |
|
130 |
print(f"\n### Start new run\n") # test
|
|
|
131 |
|
132 |
try:
|
133 |
cfg = AutoConfig.from_pretrained(model_id)
|
|
|
223 |
btn = st.download_button(label="Download plot", data=file, file_name="plot.pdf", mime="image/pdf")
|
224 |
|
225 |
print('8. End', datetime.now().strftime('%d-%m-%Y %H:%M:%S')) # test
|
226 |
+
print(f"9. RAM used: {psutil.Process().memory_info().rss / (1024 * 1024):.2f} MB") # test
|