Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
orsier
/
mles_distortion_rm_proj
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a9773f04
authored
Jan 15, 2025
by
orsier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second commit
parent
daf0b4a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
0 deletions
metrics/audio_comparison_results_normalized.csv
metrics/checkallnorm.csv
metrics/metricsresult.py
metrics/audio_comparison_results_normalized.csv
0 → 100644
View file @
a9773f04
folder,mse_mixture_target,snr_mixture_target,sdr_mixture_target,mse_vocals_target,snr_vocals_target,sdr_vocals_target,snr_mixture_target_nonormalization
217,0.008461925,5.431122183799744,5.043767510089765,0.6377086,-13.34040880203247,4.2799858447346795,-13.34040880203247
218,0.01964232,4.490377902984619,10.205352332808017,0.14580002,-4.215270578861237,11.46966648717637,-4.215270578861237
219,0.025722943,3.607795834541321,14.478515178789717,0.06939573,-0.7023247331380844,15.312400231151898,-0.7023247331380844
220,0.031286903,2.732016146183014,15.383921548786915,0.024217632,3.8443252444267273,17.01102616540086,3.8443252444267273
221,0.02836115,3.9886337518692017,3.8386204999008458,0.33609882,-6.74879789352417,6.1797600845916945,-6.74879789352417
222,0.016537772,5.092847943305969,4.911567291014011,0.507988,-9.780916571617126,4.316477221820118,-9.780916571617126
223,0.006157601,4.206366837024689,2.9065171126101523,0.26339933,-12.105664014816284,6.7963584573722,-12.105664014816284
224,0.0034008087,5.412566065788269,9.236687682140262,0.06434801,-7.356963157653809,11.947519245020747,-7.356963157653809
225,0.0030807415,6.535742282867432,6.310640649975877,0.23320836,-12.255146503448486,7.566804102497833,-12.255146503448486
226,0.008911188,1.3378000259399414,0.4909042852254448,0.45707616,-15.76272964477539,1.5304426444218304,-15.76272964477539
227,0.024778843,3.5615766048431396,16.379965506544153,0.057503033,-0.09452076628804207,19.994067125789364,-0.09452076628804207
228,0.015119441,3.5530081391334534,1.8538201733609156,0.68686634,-13.020356893539429,1.5549807995839195,-13.020356893539429
229,0.012576432,1.7005129158496857,1.4240034266052881,0.71107066,-15.823040008544922,1.7293407145588582,-15.823040008544922
230,0.0177069,2.356448322534561,0.44379650925861625,0.5858161,-12.839739322662354,3.7537716319813326,-12.839739322662354
231,0.0075625866,4.420221149921417,4.038473257950404,0.3976899,-12.78852105140686,3.987193955017264,-12.78852105140686
232,0.008622736,4.391528964042664,6.654718667841461,0.16246794,-8.359696865081787,5.725147844496135,-8.359696865081787
233,0.018211007,3.3807379007339478,1.5384770786163446,0.36023358,-9.581764340400696,4.837354619114752,-9.581764340400696
234,0.009566549,4.828400015830994,3.4884352783058397,0.48401025,-12.212592363357544,3.8703982013133325,-12.212592363357544
235,0.01492211,4.984711110591888,3.752762178455355,0.61364406,-11.156151294708252,3.2481663050904297,-11.156151294708252
236,0.009277348,4.627535939216614,12.563825858774226,0.0678541,-4.013985991477966,14.43347847473677,-4.013985991477966
metrics/checkallnorm.csv
0 → 100644
View file @
a9773f04
folder,max_mixture_before,rms_mixture_before,max_target_before,rms_target_before,max_vocals_before,rms_vocals_before,max_mixture_after,rms_mixture_after,max_target_after,rms_target_after,max_vocals_after,rms_vocals_after
217,1.0,0.934653,1.0,0.17190588,0.23413086,0.14745195,0.23413086,0.14745195,1.0,0.17190588,1.0,0.934653
218,1.0,0.6017598,0.9999695,0.23502566,0.21760559,0.1042941,0.21760559,0.1042941,0.9999695,0.23502566,1.0,0.6017598
219,1.0,0.49877417,1.0,0.24296859,0.20141602,0.08527311,0.20141602,0.08527311,1.0,0.24296859,1.0,0.49877417
220,1.0,0.39141956,1.0,0.24226022,0.1821289,0.0668492,0.1821289,0.0668492,1.0,0.24226022,1.0,0.39141956
221,1.0,0.7984779,0.9999695,0.26655915,0.2561798,0.14755145,0.2561798,0.14755145,0.9999695,0.26655915,1.0,0.7984779
222,1.0,0.8958758,0.9999695,0.23114307,0.22177124,0.15142082,0.22177124,0.15142082,0.9999695,0.23114307,1.0,0.8958758
223,1.0,0.6244472,1.0,0.12735738,0.24430847,0.113386035,0.24430847,0.113386035,1.0,0.12735738,1.0,0.6244472
224,1.0,0.35726547,1.0,0.10874753,0.1769867,0.05860105,0.1769867,0.05860105,1.0,0.10874753,1.0,0.35726547
225,1.0,0.58858305,1.0,0.11779172,0.2160492,0.097475946,0.2160492,0.097475946,1.0,0.11779172,1.0,0.58858305
226,1.0,0.75485474,1.0,0.11011787,0.2519989,0.13010383,0.2519989,0.13010383,1.0,0.11011787,1.0,0.75485474
227,1.0,0.4744739,0.9999695,0.23720255,0.20411682,0.08145143,0.20411682,0.08145143,0.9999695,0.23720255,1.0,0.4744739
228,1.0,0.9585125,1.0,0.18510506,0.25056458,0.15592058,0.25056458,0.15592058,1.0,0.18510506,1.0,0.9585125
229,1.0,0.9412474,1.0,0.13639686,0.27342224,0.16538566,0.27342224,0.16538566,1.0,0.13639686,1.0,0.9412474
230,1.0,0.9034575,1.0,0.17453949,0.29162598,0.17607535,0.29162598,0.17607535,1.0,0.17453949,1.0,0.9034575
231,1.0,0.7408744,1.0,0.14465925,0.22711182,0.124446176,0.22711182,0.124446176,1.0,0.14465925,1.0,0.7408744
232,1.0,0.52730876,1.0,0.15395685,0.20497131,0.08237377,0.20497131,0.08237377,1.0,0.15395685,1.0,0.52730876
233,1.0,0.75858253,1.0,0.19916081,0.26519775,0.14196843,0.26519775,0.14196843,1.0,0.19916081,1.0,0.75858253
234,1.0,0.8327209,1.0,0.17052877,0.24266052,0.13855661,0.24266052,0.13855661,1.0,0.17052877,1.0,0.8327209
235,1.0,0.950823,1.0,0.21684563,0.23652649,0.16192593,0.23652649,0.16192593,1.0,0.21684563,1.0,0.950823
236,1.0,0.41858575,1.0,0.16409251,0.18333435,0.071942195,0.18333435,0.071942195,1.0,0.16409251,1.0,0.41858575
metrics/metricsresult.py
0 → 100644
View file @
a9773f04
import
pandas
as
pd
import
matplotlib.pyplot
as
plt
import
numpy
as
np
# Charger le fichier CSV
df
=
pd
.
read_csv
(
"audio_comparison_results_normalized.csv"
)
# Calculer les moyennes pour les différentes métriques
mse_vocals_target_avg
=
df
[
"mse_vocals_target"
]
.
mean
()
snr_vocals_target_avg
=
df
[
"snr_vocals_target"
]
.
mean
()
sdr_vocals_target_avg
=
df
[
"sdr_vocals_target"
]
.
mean
()
mse_mixture_target_avg
=
df
[
"mse_mixture_target"
]
.
mean
()
snr_mixture_target_avg
=
df
[
"snr_mixture_target"
]
.
mean
()
sdr_mixture_target_avg
=
df
[
"sdr_mixture_target"
]
.
mean
()
# Construire le tableau des valeurs
metrics_table
=
[
[
"DemucsV3"
,
"SNR"
,
"SDR"
,
"MSE"
],
[
"vocals vs target"
,
f
"{snr_vocals_target_avg:.2f}"
,
f
"{sdr_vocals_target_avg:.2f}"
,
f
"{mse_vocals_target_avg:.2f}"
],
[
"mixture vs target"
,
f
"{snr_mixture_target_avg:.2f}"
,
f
"{sdr_mixture_target_avg:.2f}"
,
f
"{mse_mixture_target_avg:.2f}"
]
]
# Créer la figure et l'axe pour le tableau
fig
,
ax
=
plt
.
subplots
(
figsize
=
(
8
,
3
))
ax
.
axis
(
'off'
)
# Masquer les axes
# Créer le tableau
ax
.
table
(
cellText
=
metrics_table
,
colLabels
=
None
,
cellLoc
=
'center'
,
loc
=
'center'
,
colWidths
=
[
0.2
]
*
4
)
# Sauvegarder l'image du tableau
plt
.
savefig
(
"metrics.jpg"
,
bbox_inches
=
'tight'
)
plt
.
show
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment