Update app.py
Browse files
app.py
CHANGED
@@ -429,7 +429,7 @@ if st.button('Сгенерировать потери'):
|
|
429 |
|
430 |
st.subheader('4. Метрики аудио')
|
431 |
#st.dataframe(df_1)
|
432 |
-
st.write("
|
433 |
col1, col2, col3, col4, col5 = st.columns(5)
|
434 |
col1.metric("PESQ", value = round(psq_mas[0],3))
|
435 |
col2.metric("STOI", value = round(stoi_mass[0],3))
|
@@ -438,7 +438,7 @@ if st.button('Сгенерировать потери'):
|
|
438 |
col5.metric("WAcc", value = round(WER_mass[0],3))
|
439 |
|
440 |
|
441 |
-
st.write("
|
442 |
col1, col2, col3, col4, col5 = st.columns(5)
|
443 |
col1.metric("PESQ", value = round(psq_mas[1],3), delta = str(round(-(abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0,3))+'%')
|
444 |
col2.metric("STOI", value = round(stoi_mass[1],3), delta = str(round(-(abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0,3))+'%')
|
@@ -447,7 +447,7 @@ if st.button('Сгенерировать потери'):
|
|
447 |
col5.metric("WAcc", value = round(WER_mass[1],3), delta = str(round(-(abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0,3))+'%')
|
448 |
|
449 |
|
450 |
-
st.write("
|
451 |
col1, col2, col3, col4, col5 = st.columns(5)
|
452 |
PESQ_s = sign_x_y(psq_mas[1], psq_mas[2])
|
453 |
col1.metric("PESQ", value = round(psq_mas[2],3), delta = PESQ_s + str(round((abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0,3))+'%')
|
@@ -459,7 +459,10 @@ if st.button('Сгенерировать потери'):
|
|
459 |
col4.metric("PLCMOSv2", value = round(PLC_massv2[2],3), delta = PLCv2_s + str(round((abs(PLC_massv2[2] - PLC_massv2[1]) / PLC_massv2[1]) * 100.0,3))+'%')
|
460 |
WER_s = sign_x_y(WER_mass[1], WER_mass[2])
|
461 |
if WER_mass[1]==0:
|
462 |
-
|
|
|
|
|
|
|
463 |
else:
|
464 |
col5.metric("WAcc", value = round(WER_mass[2],3), delta = WER_s + str(round((abs(WER_mass[2] - WER_mass[1]) / WER_mass[1]) * 100.0,3))+'%')
|
465 |
|
|
|
429 |
|
430 |
st.subheader('4. Метрики аудио')
|
431 |
#st.dataframe(df_1)
|
432 |
+
st.write("#### "+"Original")
|
433 |
col1, col2, col3, col4, col5 = st.columns(5)
|
434 |
col1.metric("PESQ", value = round(psq_mas[0],3))
|
435 |
col2.metric("STOI", value = round(stoi_mass[0],3))
|
|
|
438 |
col5.metric("WAcc", value = round(WER_mass[0],3))
|
439 |
|
440 |
|
441 |
+
st.write("#### "+"Lossy")
|
442 |
col1, col2, col3, col4, col5 = st.columns(5)
|
443 |
col1.metric("PESQ", value = round(psq_mas[1],3), delta = str(round(-(abs(psq_mas[1] - psq_mas[0]) / psq_mas[0]) * 100.0,3))+'%')
|
444 |
col2.metric("STOI", value = round(stoi_mass[1],3), delta = str(round(-(abs(stoi_mass[1] - stoi_mass[0]) / stoi_mass[0]) * 100.0,3))+'%')
|
|
|
447 |
col5.metric("WAcc", value = round(WER_mass[1],3), delta = str(round(-(abs(WER_mass[1] - WER_mass[0]) / WER_mass[0]) * 100.0,3))+'%')
|
448 |
|
449 |
|
450 |
+
st.write("#### "+"Enhanced")
|
451 |
col1, col2, col3, col4, col5 = st.columns(5)
|
452 |
PESQ_s = sign_x_y(psq_mas[1], psq_mas[2])
|
453 |
col1.metric("PESQ", value = round(psq_mas[2],3), delta = PESQ_s + str(round((abs(psq_mas[2] - psq_mas[1]) / psq_mas[1]) * 100.0,3))+'%')
|
|
|
459 |
col4.metric("PLCMOSv2", value = round(PLC_massv2[2],3), delta = PLCv2_s + str(round((abs(PLC_massv2[2] - PLC_massv2[1]) / PLC_massv2[1]) * 100.0,3))+'%')
|
460 |
WER_s = sign_x_y(WER_mass[1], WER_mass[2])
|
461 |
if WER_mass[1]==0:
|
462 |
+
if WER_mass[2]!=0:
|
463 |
+
col5.metric("WAcc", value = round(WER_mass[2],3), delta = WER_s + str(round((abs(WER_mass[2] - 0.001) / 0.001) * 100.0,3))+'%')
|
464 |
+
else:
|
465 |
+
col5.metric("WAcc", value = round(WER_mass[2],3))
|
466 |
else:
|
467 |
col5.metric("WAcc", value = round(WER_mass[2],3), delta = WER_s + str(round((abs(WER_mass[2] - WER_mass[1]) / WER_mass[1]) * 100.0,3))+'%')
|
468 |
|