Comments (4)
If by 'splitting' you mean splitting by space in the code, make sure you are working with the right dataset. There are 2 annotation files that you can use for doing this 3D detection. Here and here. The former is called "raw" not in the sense that it hasn't been annotated; instead, it has all of the data that can be used for many purposes. For example, there are cars that are completely occluded by another car in the front, yet they are labeled for different purposes. These files can be used for having the point clouds data as well. Reading from the raw dataset can be challenging if you decide to completely do it by yourself. Make sure you use the open-source tools.
In contrast, you can use the second link for much simpler use cases. Just some images, with patches and basic information about the vehicle in the patch (e.g. rotation, dims, translations, type, etc.). The values are given line by line and are MUCH simpler to parse. This code uses this dataset as well. As you can see here at the beginning of the parse_annotation
function in process_data.py
:
for line in open(label_dir + label_file).readlines():
line = line.strip().split(' ')
truncated = np.abs(float(line[1]))
occluded = np.abs(float(line[2]))
cls = line[0]
# add objects to train data only when their truncated level <0.3 and occluded level <= 1
if cls in cls_to_ind.keys() and truncated < 0.3 and occluded <= 1:
theta_loc = -float(line[3]) + 3*np.pi / 2.
# Make sure object's theta_loc is in [0..2*pi].
theta_loc = theta_loc - np.floor(theta_loc / (2. * np.pi)) * (2. * np.pi)
obj = {'name': cls,
'image': image_file,
'xmin': int(float(line[4])),
'ymin': int(float(line[5])),
'xmax': int(float(line[6])),
'ymax': int(float(line[7])),
'dims': np.array([float(number) for number in line[8:11]]),
'theta_loc': theta_loc
}
The first link has XML files and the second has naive .txt files that you can easily split by space.
So, check your dataset ;)
from 3d_detection.
Thank you so much for the response ......i have downloaded the left color image dataset from kitti and trying to split training dataset in train and test as per the train.txt and test.txt given, it gives the deep copy error, also it does not test the other images from my pc. please help @m-parchami
from 3d_detection.
Ok. Please share the splitting code and the error so that you can receive some help.
from 3d_detection.
thank you ...i am asking how to use testing dataset of kitti in this model .....now i am able to train the model with training dataset which has 7481 images with label file...........please tell me how to use testing dataset of kitti
from 3d_detection.
Related Issues (17)
- Does there any updates or results? HOT 1
- compile environment HOT 1
- Much larger distance Error compared to paper
- detection.py No loop matching HOT 2
- Regarding the usage of calib.txt file data
- version of python and libraries
- Pretrained Mode HOT 2
- How long does training take?
- Not able to detect new images
- thanks for your excellent job HOT 1
- What's the meaning of the file voc_dims.txt? HOT 2
- What's the way to calculate the 'new_alpha'? HOT 10
- There is a error when i try the project HOT 7
- where can I get the test dataset HOT 7
- Please check the way computing anchors
- Can you explain about post_processing.py ? HOT 1
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 3d_detection.