Comments (3)
Hi, thank for testing our work!
(1) the printed number "1998" and "11870" are actually # of batches. Because the matrices are of varying, I randomly packed matrices of a same size and saved it to a same .npy (of <=10 in a batch). If you count the # of elements in the batches. You should get 1998 and 11870.
(2) I tested with my singularity image (like docker), it printed the wa correctly:
It was a problem of pytorch version of line 506 and 507 in deepmot/train_DHN/utils.py:
num_tp = float(((predicted[b, :, :] == target[b, :, :]) + (target[b, :, :] == 1.0)).eq(2).sum())
num_tn = float(((predicted[b, :, :] == target[b, :, :]) + (target[b, :, :] == 0.0)).eq(2).sum())
in higher version of pytorch, it seems that it will not convert bool to float automatically, so ".eq(2)" will always be False and num_tp and num_tn will be always zero.
The bug can be fixed by adding ".float()":
num_tp = float(((predicted[b, :, :] == target[b, :, :]).float() + (target[b, :, :] == 1.0).float()).eq(2).sum())
num_tn = float(((predicted[b, :, :] == target[b, :, :]).float() + (target[b, :, :] == 0.0).float()).eq(2).sum())
Thank you for pointing out this bug.
from deepmot.
Thanks for your reply @yihongXU !
-
I see, so there's at most 10 in each of the batches, that makes sense. Did you hand-pick the matrices so the dataset would not use too much GPU memory?
-
Thank you for debugging! It was my bad, I didn't use singularity but followed tracking_wo_bw's instructions and forgot to use an older version of pytorch.
from deepmot.
Hi,
I randomly pick ~10 and made them a batch. Why 10, for GPU memory issue, but you can reorganize them according to your gpus. And you can also use your own data since the given one are all from MOT.
from deepmot.
Related Issues (20)
- What are the meanings of the parameters of the missedMatchErrorV3 method?
- How to train DHN? HOT 1
- evaluation results lower than the results you shown in your paper HOT 1
- request HOT 1
- Why does the running result look so bad?
- verison request HOT 1
- AttributeError: 'FPN' object has no attribute 'reid_branch' HOT 1
- ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead. HOT 1
- Is it okay to use obsolete branch to reproduce your results? HOT 5
- why DHN? HOT 1
- Not able to run the Singularity image HOT 1
- Not able to launch singularity image HOT 4
- How to generate DHN_data on the custom data? HOT 8
- The loss curves shows that training of the model does not converge HOT 1
- The model does not converge based on the loss curve.
- Colab Notebook HOT 1
- Cloning into 'deepmot'... Permission denied (publickey). HOT 1
- why not to use DHN in the testing stage?
- About training on custom datasets
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 deepmot.