Datasets:
update column name
Browse files- create_valid_csv.py +11 -7
- metadata-valid.csv +2 -2
create_valid_csv.py
CHANGED
@@ -74,9 +74,9 @@ if __name__ == "__main__":
|
|
74 |
valid_df_source["source"] = source
|
75 |
all_dfs.append(valid_df_source)
|
76 |
|
77 |
-
# Add
|
78 |
is_cloned_voice = source != "commonvoice"
|
79 |
-
valid_df_source["
|
80 |
|
81 |
# Add fname column
|
82 |
valid_df_source["filename"] = valid_df_source["path"]
|
@@ -92,8 +92,8 @@ if __name__ == "__main__":
|
|
92 |
print()
|
93 |
|
94 |
print("Statistics:")
|
95 |
-
print("Number of
|
96 |
-
print("Number of cloned voices: ", len(all_df[all_df.
|
97 |
print("Number of TOTAL voices: ", len(all_df))
|
98 |
print()
|
99 |
|
@@ -105,6 +105,10 @@ if __name__ == "__main__":
|
|
105 |
print(all_df.gender.value_counts())
|
106 |
print()
|
107 |
|
108 |
-
print("Gender distribution (
|
109 |
-
print(all_df[all_df.
|
110 |
-
print()
|
|
|
|
|
|
|
|
|
|
74 |
valid_df_source["source"] = source
|
75 |
all_dfs.append(valid_df_source)
|
76 |
|
77 |
+
# Add cloned_or_real column
|
78 |
is_cloned_voice = source != "commonvoice"
|
79 |
+
valid_df_source["cloned_or_human"] = "cloned" if is_cloned_voice else "human"
|
80 |
|
81 |
# Add fname column
|
82 |
valid_df_source["filename"] = valid_df_source["path"]
|
|
|
92 |
print()
|
93 |
|
94 |
print("Statistics:")
|
95 |
+
print("Number of human voices: ", len(all_df[all_df.cloned_or_human == "human"]))
|
96 |
+
print("Number of cloned voices: ", len(all_df[all_df.cloned_or_human == "cloned"]))
|
97 |
print("Number of TOTAL voices: ", len(all_df))
|
98 |
print()
|
99 |
|
|
|
105 |
print(all_df.gender.value_counts())
|
106 |
print()
|
107 |
|
108 |
+
print("Gender distribution (human):")
|
109 |
+
print(all_df[all_df.cloned_or_human == "human"].gender.value_counts())
|
110 |
+
print()
|
111 |
+
|
112 |
+
print("Gender distribution (cloned):")
|
113 |
+
print(all_df[all_df.cloned_or_human == "cloned"].gender.value_counts())
|
114 |
+
print()
|
metadata-valid.csv
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e02789c50fa8265b537e4ab06d73d4fa2b833957dd1c5b2675ec836cd648e174
|
3 |
+
size 856672
|