Open e96031413 opened 3 years ago
Hi there. Thanks for your interest.
I'm not sure exactly what's going on, but that is the error you get when no dataset is found at that location.
I think the issue might be with your flag
-d=/taskonomy/
That is for if the taskonomy directory is under your root directory. If you want it under your project directory, try:
-d=taskonomy/
or even
-d="path to project directory"/taskonomy/
Let me know if that doesn't work.
Also, I think the data you get from git clone https://github.com/alexsax/taskonomy-sample-model-1
might need to be formatted/processed. It needs to be downsampled to 256x256, otherwise it will downsample on the fly, which will be slow.
Thanks for your reply
Unfortunately, the error still occurs.
I also check the class TaskonomyLoader from taskonomy_loader.py. In line 45, I can understand that when
I use the flag -d=/taskonomy/
, I assign the root to be /taskonomy/
and with os.path.join(root,'rgb')
, we can finally get the path /taskonomy/rgb/
but the error still occurs, it's pretty weird.
By the way, how's your way to download the taskonomy dataset?
I only see you wrote Get training data StanfordVL/taskonomy@master/data
on README file. So you train with full 12TB dataset?
Since the path starts with '/' it will be looking for the files in a completely different place. It'll look in your primary drive's mount point. But the files are not there. They are in your project folder. Try removing the leading '/' from the path.
On Fri, Dec 18, 2020, 11:18 PM e96031413 notifications@github.com wrote:
Thanks for your reply
Unfortunately, the error still occurs.
I also check the class TaskonomyLoader from taskonomy_loader.py. In line 45, I can understand that when I use the flag -d=/taskonomy/, I assign the root to be /taskonomy/ and with os.path.join(root,'rgb'), we can finally get the path /taskonomy/rgb/
but the error still occurs, it's pretty weird.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tstandley/taskgrouping/issues/3#issuecomment-748433243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDABXQ35IS677G6ZHPTL2LSVRHTXANCNFSM4VCBTJGA .
After removing '/', I type the command as below:
python3 train_taskonomy.py -d=taskonomy/ -a=xception_taskonomy_new -j 4 -b 64 -lr=.1 --fp16 -sbn --tasks=sdnerac -r
Same error again
Do you have more than just the rgb folder inside taskonomy/ ?
Can you do a 'ls -l taskonomy' for me?
On Sat, Dec 19, 2020 at 12:12 AM e96031413 notifications@github.com wrote:
After removing '/', I type the command as below:
python3 train_taskonomy.py -d=taskonomy/ -a=xception_taskonomy_new -j 4 -b 64 -lr=.1 --fp16 -sbn --tasks=sdnerac -r
Same error again
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tstandley/taskgrouping/issues/3#issuecomment-748439559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDABXQZLRXBAYFMFQCEUHDSVROARANCNFSM4VCBTJGA .
Yes, there are more than one folder.
$ ls -l taskonomy
total 8
drwxrwxrwx 1 root root 763196 Dec 19 12:11 class_object
drwxrwxrwx 1 root root 763196 Dec 19 12:11 class_scene
drwxrwxrwx 1 root root 819980 Dec 19 12:12 depth_euclidean
drwxrwxrwx 1 root root 782124 Dec 19 12:13 depth_zbuffer
drwxrwxrwx 1 root root 801052 Dec 19 12:14 edge_occlusion
drwxrwxrwx 1 root root 763196 Dec 19 12:16 edge_texture
drwxrwxrwx 1 root root 744268 Dec 19 12:17 keypoints2d
drwxrwxrwx 1 root root 744268 Dec 19 12:18 keypoints3d
drwxrwxrwx 1 root root 147184 Dec 19 12:18 nonfixated_matches
drwxrwxrwx 1 root root 649628 Dec 19 12:20 normal
drwxrwxrwx 1 root root 744268 Dec 19 12:20 point_info
drwxrwxrwx 1 root root 895692 Dec 19 12:21 principal_curvature
-rwxrwxrwx 1 root root 6057 Dec 19 12:11 README.md
drwxrwxrwx 1 root root 706412 Dec 19 12:22 reshading
drwxrwxrwx 1 root root 16 Dec 19 13:47 rgb
drwxrwxrwx 1 root root 706412 Dec 19 12:27 rgb_large
drwxrwxrwx 1 root root 819980 Dec 19 12:28 segment_semantic
drwxrwxrwx 1 root root 838908 Dec 19 12:28 segment_unsup25d
drwxrwxrwx 1 root root 819980 Dec 19 12:29 segment_unsup2d
I received the same ValueError, and @tstandley's suggestion to remove the preceding '/' in -ds='/taskonomy/' fixed the issue for me.
There's an issue with the segment_semantic data from the https://github.com/alexsax/taskonomy-sample-model-1 repo in that the ending is point_x_view_ydomainsegmentsemantic.png differs from the expected point_x_view_ydomainsegment_semantic.png.
For convenience, here's a script to quickly rename the files (replacing cauthron with the directory name you chose -- i.e. taskonomy_data/segment_semantic/cauthron/..
).
import os
for count, filename in enumerate(os.listdir("cauthron")):
src = 'cauthron/' + filename
prefix = filename[:-19]
ending = 'segment_semantic.png'
renamed = 'cauthron/' + prefix + ending
os.rename(src, renamed)
@e96031413 Were you ever able to get it working?
By the way, how's your way to download the taskonomy dataset? I only see you wrote Get training data StanfordVL/taskonomy@master/data on README file. So you train with full 12TB dataset?
Actually, I got the data from the authors before it was available. Perhaps the layout was slightly changed the way @cfifty mentioned. In any event, I have pre-processed the data down to 256x256 (both the RGB and the labels). You are going to want to do that too if you want to get good performance. This brings the dataset size down to something like 2.4TB from 12TB. On top of that, you don't need the data for tasks you are not training, so just don't use the other folders, which might save 1TB or so.
I do use all available building models and all of their images though. Dealing with a dataset that large does come with challenges, but I don't think it makes sense to leave performance on the table by not using all of the available data.
When I tried to train with the following command
I got the following error:
After searching the error on Google, I found the problem is due to the wrong dataset path.
I got taskonomy dataset by
rename the folder name from taskonomy-sample-model-1 to taskonomy and move the folder inside taskgrouping folder, so the folder structure showed as below:
Do I miss any steps? or using the wrong dataset?