Comments (3)
Hello Program-Kitty,
Thank you for your interest in the DALI dataset. I'm sorry if the doc wasn't clear enough. I'm preparing a PR that hopefully will clarify some vague explanations.
The dali_code.get_info
is meant to be use with a dali_info.gz
file which I forgot to add in the zenodo repo for the second version. However, you can easily create it by yourself as follow:
dali_info = [['DALI_ID', 'NAME', 'YOUTUBE', 'WORKING']]
for i in dali_data:
uid = dali_data[i].info['id']
name = "-".join([dali_data[i].info['artist'].replace(" ", "_"), dali_data[i].info['title'].replace(" ", "_")])
youtube = dali_data[i].info['audio']['url']
working = ''
dali_info.append([uid, name, youtube, working])
And then just call the function as normal:
errors = dali_code.get_audio(dali_info, path_audio, skip=[], keep=[])
This should work. Please let me know if you have any trouble or further issues.
Best regards,
Gabriel
from dali.
Hi gabolsgabs!
Thank you for your response -- I solved the issue following your instruction. I loaded dali_data (containing 7756 entries) following the instruction in tutorial. But when I tried to load the ground-truth file, I came across this issue:
path = '/ME/My Drive/Colab Notebooks/DALI-master/'
gt_file = path + 'gt_v1.0_22_11_18.gz'
gt = dali_code.utilities.read_gzip(gt_file)
dali_gt = dali_code.get_the_DALI_dataset(dali_data_path, gt_file, keep=gt.keys())
KeyError Traceback (most recent call last)
in ()
----> 1 dali_data = dali_code.update_with_ground_truth(dali_data, gt_file)/usr/local/lib/python3.6/dist-packages/DALI/main.py in update_with_ground_truth(dali, gt_file)
64 if len(gt) > 0:
65 for i in gt:
---> 66 entry = dali[i]
67 change_time(entry, gt[i]['offset'], gt[i]['fr'])
68 entry.info['ground-truth'] = TrueKeyError: '557037a547e84ddba8148c137eee0eb5'
I checked our dataset and didn't find this key in dali_data.
Could you please check if this is the case on your end? I wonder if there's any issue with our ground truth file...
from dali.
The ground-truth file does not work for version 2. The ids are different and the alignment may be also different. If you plan to use the ground-truth (which only refers to the right offset and frame rate parameters) please use version 1.
from dali.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dali.