Comments (3)
@toshalpatel Actually there are only 751 classes for the Market data. While parsing the data, all images are scanned to find the number of classes as well as assigning new class indexes. So the process is dynamic.
Not sure why the issue occurred. I apparently haven't faced this issue.
from multi-camera-person-re-identification.
You can solve it by replacing num_classes
with num_classes+1
I guess there are [0, 751] classes (752 in total). I am wondering if you faced any similar issues while training @SurajDonthi
from multi-camera-person-re-identification.
@toshalpatel The above error occurs because there exists an extra label -1
in the bounding_box_test
data. These labels are actually left for the model to guess. Hence a comparison (loss func.) of these with the true label does not actually make sense. Currently, my code doesn't account for this. However, I'll be adding a much more robust testing function very soon.
So setting the classes to 751 is the right thing to do (which will break the current testing code and not the training code). So you can generate your model by training without validation/testing for the time being. However, if you want to test, feel free to write a function of your own for the time being.
from multi-camera-person-re-identification.
Related Issues (15)
- Useable code HOT 1
- Error running Colab notebook - 5th block of code HOT 2
- Notebook doesn't work -> TypeError: validation_step() takes 3 positional arguments but 4 were given
- Unable to Reproduce: Training error HOT 1
- How to generate st_distribution.pkl?? HOT 2
- No module named 'metrics' HOT 1
- How to query? HOT 5
- AttributeError: 'list' object has no attribute 'add_figure' HOT 2
- trained models HOT 2
- ModuleNotFoundError: No module named 'torchtext.legacy'
- Enhancing Model Robustness for Cross-Dataset Generalisation in Multi-Camera Person Re-Identification
- test issue
- Error in running mtmct_reid.train
- When i tried to run using colab: Error: 'Path 'data/raw/Market-1501-v15.09.15' does not exist! 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 multi-camera-person-re-identification.