question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about Classes Index

See original GitHub issue

Thank you for sharing this great work! I have a question about your classes index. YoutubeVIS has 40 classes and a empty class is involved in VisTR, thus 41 classes in total, right? Then I noticed that in your implementation, the loss_labels() is computed by

target_classes = torch.full(src_logits.shape[:2], self.num_classes, dtype=torch.int64, device=src_logits.device)
target_classes[idx] = target_classes_o
loss_ce = F.cross_entropy(src_logits.transpose(1, 2), target_classes, self.empty_weight)

Since ytvis’s class begins from 1 to 40 and I didn’t find any re-index operation in your code, I am confused by the empty class here. Do you use 40 represent empty class (you set self.num_classes=40)? Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Epiphqnycommented, Apr 20, 2021

Hi @lxa9867, thanks for your question, I fixed the bug and changed the class number to 41, the result improves from 0.38 to 0.40, I will update the code and result later.

0reactions
Epiphqnycommented, Apr 25, 2021

hi @lxa9867, I have fixed the bug and updated the code and result.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Index of /question/classes/statistics/questions - ICSA Kuwait
Name Last modified Size Parent Directory ‑ all_calculated_for_q..> 2019‑06‑20 11:43 19K calculated.php 2019‑06‑20 11:43 8.7K
Read more >
ClassQuestion - Conduct class polls and send questions to ...
Completely free for students and teachers! Send your class a question, instantly see the results as a plot. ClassQuestion is a clicker free...
Read more >
Questions (Index Questions with Solutions) - Indices Questions
Index questions involve solving expressions with exponents and powers using some defined laws of indices. Click here to get solved questions on index...
Read more >
Index of /question/classes/statistics - ACSI | eCampus
Index of /question/classes/statistics. Name · Last modified · Size · Description · Parent Directory, -. questions/, 2019-09-27 03:12, -.
Read more >
C. Item Analysis - Florida Center for Instructional Technology
Determine the Difficulty Index by dividing the number who got it correct by the total number of students. For Question #1, this would...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found