Git Product home page Git Product logo

Comments (2)

Blankeos avatar Blankeos commented on June 14, 2024 5

😃 Fixed!

Apparently, the solution on the article was right. But for some reason, when I edit on Colab and save, it doesn't actually get saved. So I had to already have changed coco_eval.py before I even cloned it on my Colab runtime.

I basically did the same thing, but this time I downloaded the training scripts from PyTorch and created my own repository to clone:

  1. Download the scripts from pytorch/vision/references/detection and created my own repo storing it
  2. Open coco_eval.py
  3. Edit the lines somewhere under __init__ for iou_type in iou_types:
    - self.coco_eval[iou_type] = COCOeval(coco_gt, iouType=iou_type)
    + coco_eval = COCOeval(coco_gt, iouType=iou_type)
    + coco_eval.params.kpt_oks_sigmas = np.array([.5, .5, .5, .5]) / 10.0 # 4 keypoints
    + self.coco_eval[iou_type] = coco_eval
  4. At the start of the Training Notebook:
    !git clone https://github.com/<username>/<repo-name>.git
    %cd <repo-name>

from keypoint_rcnn_training_pytorch.

bryan273 avatar bryan273 commented on June 14, 2024

Thanks, man. I've been struggling with this error. Apparently, making direct changes to the file in Colab doesn't update it. weird.

from keypoint_rcnn_training_pytorch.

Related Issues (19)

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.