Giter Club home page Giter Club logo

Comments (3)

DeltaTesting avatar DeltaTesting commented on May 21, 2024

I've done so on a custom detection script that i use to choose the checkpoint with better results on my validation dataset. I won't share the code since is very specyfic for my dataset, but the pseudo code would be:

for checkpoint in checkpoints:
-model.load_weights(checkpoint)
-for img, labels in val_dataset:
--boxes, scores, classes, nums = model.predict(img)
--labels2 = labels.copy()
--acc = 0
--for i in range(nums[0]):
---box = boxes[0][i]
---c = classes[0][i]
---for l in labels2:
----gt_box = getBox(l)
----if boxesIntersect(box, gtbox) and sameClass(c, l):
-----acc += 1
-----labels2.remove(l)
-----break
--accuracy = acc / len(labels)

from yolov3-tf2.

zzh8829 avatar zzh8829 commented on May 21, 2024

merging with #125

from yolov3-tf2.

ethanyanjiali avatar ethanyanjiali commented on May 21, 2024

@DeltaTesting it seems like in your code, one detection (predicted box) would just match the first ground truth box that satisfy the iou and class condition. so if that particular ground truth box is better to be matched with another detection, there would be a miss here. Does your dataset mostly just contains one bounding box, or are those ground truth boxes usually not close with each other?

from yolov3-tf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.