Skip to content

UnboundLocalError: local variable 'l1_loss' referenced before assignment in Doctr's compute_loss function #1667

Answered by felixdittrich92
ep0p asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ep0p 👋,

This will only happen if we couldn't build the target mask/s
reasons for this:

  • annotations (coordinates) are wrong
  • a sample in the batch has no annotations
  • all annotations of an sample was filtered because the are to small (less than 3x3 pixels)

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ep0p
Comment options

You must be logged in to vote
16 replies
@felixdittrich92
Comment options

@ep0p
Comment options

@felixdittrich92
Comment options

@felixdittrich92
Comment options

@ep0p
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #1661 on July 02, 2024 08:23.