The method Dataset.from_dict doesn't work since I upgraded from v0.2.5 to v0.4.0.
Here is an exemple of json that doesnt work:
{
"datasets": {
"original": {
"class": "AudioDataset",
"json": "[...]\\dataset\\small_dataset\\data\\audio\\original\\original.json"
}
},
"depth": 200,
"folder": "[...]\\dataset\\small_dataset",
"gps_coordinates": [
-49.47,
70.09
],
"instrument": {
"end_to_end_db": 150.0,
"gain_db": 0.0,
"peak_voltage": 1.0,
"sensitivity": 1.0
},
"strptime_format": "%y%m%d%H%M%S",
"timezone": "UTC"
}
The error is:
In public_api/dataset.py line 727
The method
Dataset.from_dictdoesn't work since I upgraded from v0.2.5 to v0.4.0.Here is an exemple of json that doesnt work:
{ "datasets": { "original": { "class": "AudioDataset", "json": "[...]\\dataset\\small_dataset\\data\\audio\\original\\original.json" } }, "depth": 200, "folder": "[...]\\dataset\\small_dataset", "gps_coordinates": [ -49.47, 70.09 ], "instrument": { "end_to_end_db": 150.0, "gain_db": 0.0, "peak_voltage": 1.0, "sensitivity": 1.0 }, "strptime_format": "%y%m%d%H%M%S", "timezone": "UTC" }The error is:
KeyError: 'analysis'In
public_api/dataset.pyline 727