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

get nan in box list when inference #54

Open
BELZHANG opened this issue May 23, 2020 · 1 comment
Open

get nan in box list when inference #54

BELZHANG opened this issue May 23, 2020 · 1 comment

Comments

@BELZHANG
Copy link

My dataset only has two classes so I changed the channel num from 255 to 21 in the head, is this the only part you need to take care when train your own dataset?

@Tianxiaomo
Copy link
Owner

You can take a look at the latest code,you just need to set a value to the n_classes.

class Yolov4(nn.Module):
    def __init__(self, yolov4conv137weight=None, n_classes = 80):
        super().__init__()

class Yolo_loss(nn.Module):
    def __init__(self, n_classes=80, n_anchors=3, device=None, batch=2):
        super(Yolo_loss, self).__init__()

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