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

Cufft problem on Jetson TX2i #56

Open
manhtb310 opened this issue Jan 11, 2021 · 2 comments
Open

Cufft problem on Jetson TX2i #56

manhtb310 opened this issue Jan 11, 2021 · 2 comments

Comments

@manhtb310
Copy link

Hi,
I recently implemented a extension of KCF tracking algorithm on Jetson TX2i based on your code.
At kcf.h file in src folder, I added 2 pointer arrays are: std::unique_ptrfilterPool[4] and std::unique_ptr multiFilters[(int)4] .
At kcf.cpp file, I also modified train function to use filterPool[4] array, the code like below:
When i = 3 in train function, the memory of filterPool[4] is overwrite

filterPool[0]->kf [13 x 25] 1ch = [ (1.6e+02,0), (0.46,-0.00033), (0.39,-0.00071), (0.15,-0.00056), (0.66,-0.00033), (0.34,0.00039), (0.042,4.4e-06), (0.045,-5.4e-05), (0.041,5.9e-06), (0.13,0.00022), … ]
filterPool[1]->kf [13 x 25] 1ch = [ (6.2e+02,0), (2,-0.0014), (1.7,-0.0017), (0.67,-0.0012), (2.9,-0.00045), (1.5,0.00076), (0.19,-6.9e-05), (0.2,-0.00022), (0.0086,0.00027), (0.039,0.00077), … ]
filterPool[2]->kf [13 x 25] 1ch = [ (5.9e+02,0), (2.1,-1.6e-06), (0.28,1.1e-06), (0.14,-1e-06), (0.06,7.3e-07), (0.081,0), (0.05,-2.7e-06), (0.026,8.2e-07), (0.023,2.8e-07), (0.018,1.1e-06), … ]
filterPool[3]->kf [13 x 25] 1ch = [ (0,0), (0,0), (0,0), (0,0), (0,0), (0,0), (0,0), (0,0), (0,0), (0,0), … ]
void KCF_Tracker::GaussianCorrelation::operator()(ComplexMat&, const ComplexMat&, const ComplexMat&, double, bool, const KCF_Tracker&, bool, bool)() {
void Fft::inverse(ComplexMat&, MatScales&)() {
complex_input [13 x 25] 1ch = [ (6.6e+03,0), (2.8e+03,0), (3.6e+02,0), (1.9e+02,0), (76,0), (1.1e+02,0), (65,0), (33,0), (29,0), (23,0), … ]
}
void Fft::forward(const MatScales&, ComplexMat&)() {
real_input 1 x 25 x 25 1ch = [ 1.1, 1, 1, 1, 1, 1, 1, 1, 1, 1, … ]
}
}
filterPool[0]->kf [13 x 25] 1ch = [ (0.32,0), (0.11,0), (0.073,0), (0.16,0), (0.26,0), (1.4,0), (3.3,0), (2.8,0), (1.4,0), (0.91,0), … ]
filterPool[1]->kf [13 x 25] 1ch = [ (0.36,0), (0.013,0), (0.14,0), (0.077,0), (1.1,0), (0.29,0), (0.9,0), (2.9,0), (2.9,0), (0.52,0), … ]
filterPool[2]->kf [13 x 25] 1ch = [ (0.33,0), (1.2,0), (0.71,0), (0.039,0), (0.35,0), (1.3e+02,0), (40,0), (1.8,0), (6.4,0), (9.1,0), … ]
filterPool[3]->kf [13 x 25] 1ch = [ (6.3e+02,0), (2.5,1.5e-07), (0.33,-8.8e-07), (0.17,-4.5e-07), (0.071,-2.8e-06), (0.097,0), (0.06,-7.1e-07), (0.031,-2.4e-08), (0.027,-8.7e-08), (0.021,-1.9e-07), … ]

Can anyone help me with this issue,
Thanks.

@wentasah
Copy link
Member

Please, make your extension and testing data public. Then describe, what is the purpose of the extension. Without that, it's difficult for me to help you.

@manhtb310
Copy link
Author

manhtb310 commented Jan 12, 2021

Hi @wentasah ,I am trying to implement SCT Tracking [1] using cufft on Jetson TX2i. I just created a github repository and pushed extension code on it: https://github.com/manhtb310/kcf_extention.git
Testing data is Freeman1 folder, which also included on the github repository.
Many thanks for your help.

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

2 participants