-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty .mat files #2
Comments
Hello.
I downloaded the file V_DRONE_047_LABELS.mat and it looks ok to me.
[image: bild.png]
Best regards,
Fredrik
Den sön 7 maj 2023 kl 11:04 skrev qwoprocks ***@***.***>:
… I tried loading all the .mat files under Video_V into MatLab (was trying
to convert them into .csv format for use in Python3). I found that quite
a few of the .mat files don't have data, which is illustrated in the
following screenshot:
[image: image]
<https://user-images.githubusercontent.com/46164638/236668156-8413e9f9-0089-40e7-9d85-ccedae843b9f.png>
This is what a non-empty .mat file gives:
[image: image]
<https://user-images.githubusercontent.com/46164638/236668227-959d8755-b301-4d11-9e98-7f290ac95a6c.png>
The script I'm using to convert to .csv is as follows:
for file = dir(fullfile('Video_V', '**/*.mat'))'
fullFileName = fullfile(file.folder, file.name);
[pathstr, name, ext] = fileparts(file.name);
fileType = split(file.name, '_');
fileType = fileType(2);
gt = load(fullFileName);
try
gTruth = selectLabels([gt.gTruth], fileType);
csvFile = fullfile('CSVs', strcat(name, '.csv'));
writetimetable(gTruth.LabelData, csvFile);
catch ME
file.name
end
end
—
Reply to this email directly, view it on GitHub
<#2>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APSY4W4EQWMWB3P62GSLSJTXE5QQHANCNFSM6AAAAAAXYXIG5U>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
See attached.
/F
Den fre 12 maj 2023 kl 16:42 skrev qwoprocks ***@***.***>:
… Thank you for the response! I can't seem to view the image you uploaded,
could you post it again?
[image: image]
<https://user-images.githubusercontent.com/46164638/238003288-d8f89985-1c9d-464a-b747-c3412d5d74a6.png>
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APSY4W4A7MEW2VWBJARLYKTXFZD5LANCNFSM6AAAAAAXYXIG5U>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
I met the same problem, did you solve it? |
nope, I just skipped over the empty files |
Hello.
If you check the size of the downloaded file, is it 0kB or is it 12kB or
larger?
As you know I got a similar question from "qwoprocks", and when I tried to
download the file described as empty and opened it in Matlab it was ok (see
attached).
Best regards,
Fredrik
Den sön 21 maj 2023 kl 00:09 skrev pilot00 ***@***.***>:
… I met the same problem, did you solve it?
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APSY4WZQ4UFU7R6ID2SI2KLXHE6IVANCNFSM6AAAAAAXYXIG5U>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
All the .mat files are above 0KB. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried loading all the
.mat
files under Video_V into MatLab (was trying to convert them into.csv
format for use in Python3). I found that quite a few of the .mat files don't have data, which is illustrated in the following screenshot:I thought it meant that there were no drones in the video, but I checked this specific file and there does seem to be a drone.
This is what a non-empty
.mat
file gives:The script I'm using to convert to
.csv
is as follows:The text was updated successfully, but these errors were encountered: