Skip to content
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

implementing my own data #8

Closed
Ador2 opened this issue Mar 28, 2019 · 3 comments
Closed

implementing my own data #8

Ador2 opened this issue Mar 28, 2019 · 3 comments

Comments

@Ador2
Copy link

Ador2 commented Mar 28, 2019

when i run regression.py this error comes up after it says "all done":
Traceback (most recent call last): File "regression_cascade.py", line 467, in <module> model.train(feature_train, label_train.astype(np.int32), responses_train) File "regression_cascade.py", line 177, in train target_in_class[:, chn].astype(np.float32)) cv2.error: OpenCV(4.0.0) /io/opencv/modules/ml/src/svm.cpp:1404: error: (-215:Assertion failed) sv_count != 0 in function 'do_train'

note: i didn't use a camera

@higerra
Copy link
Owner

higerra commented Mar 30, 2019

The error indicates that the there is no supporting vectors for a specific label. This may be caused by empty categories in the training set. Make sure that you have samples for each class.

@Ador2 Ador2 closed this as completed Apr 2, 2019
@wyknxmtb
Copy link

I have met the question, too. I wonder how could I solve this problem? BTW, I use a non-tango phone, the collected position information is empty (pose.txt), but I found in the training process, the position is used to generate responses_train in training_data process. When I try to implement my own data, the responses_train is always being zero. Very appreciate for your help and reply

@higerra
Copy link
Owner

higerra commented May 22, 2019

To be clear, are you collecting training data with a non-tango phone? It won't work unless you have other ways to obtain ground-truth device poses. "pose.txt" will always be generated and preprocessed, with or without Tango, for ease of implementation.

If you train with all zero ground-truth positions, you are likely to trigger this "sv_count != 0" assert.

If you are doing research on this, I recommend you try the following:
#10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants