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

Detection Score #16

Open
chrisbangun opened this issue Jan 29, 2019 · 0 comments
Open

Detection Score #16

chrisbangun opened this issue Jan 29, 2019 · 0 comments

Comments

@chrisbangun
Copy link

chrisbangun commented Jan 29, 2019

Hi, thanks a lot for open-sourcing faced, this is awesome!

I have two questions:

  1. In the predict method, do you have any particular reason for not returning the probability as well?

`

def predict(self, frame, thresh=0.85):
    input_img = cv2.resize(frame, (YOLO_SIZE, YOLO_SIZE)) / 255.
    input_img = np.expand_dims(input_img, axis=0)

    pred = self.sess.run([self.prob, self.x_center, self.y_center, self.w, self.h], feed_dict={self.training: False, self.img: input_img})

    bboxes = self._absolute_bboxes(pred, frame, thresh)
    bboxes = self._correct(frame, bboxes)
    bboxes = self._nonmax_supression(bboxes)

    return bboxes`
  1. Related to question 1, is there a convenient way to get the prob/detection score for the predicted image?

Thank you so much.

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

1 participant