Giter VIP home page Giter VIP logo

Comments (7)

zzzxxxttt avatar zzzxxxttt commented on July 20, 2024

I saw you were training on a custom dataset, what's the modification you made in the dataloader?

from pytorch_simple_centernet_45.

JiaLim98 avatar JiaLim98 commented on July 20, 2024

I changed:
line#15 --> COCO_NAMES = 6 classes of my dataset
line#29 --> COCO_IDS = [0, 1, 2, 3, 4, 5]
line#49 --> self.num_classes = 6

That's all the changes I made to coco.py.

from pytorch_simple_centernet_45.

zzzxxxttt avatar zzzxxxttt commented on July 20, 2024

I guess the data format of your dataset is not the same with COCO, you could train on COCO to see whether the error still occurs.

from pytorch_simple_centernet_45.

JiaLim98 avatar JiaLim98 commented on July 20, 2024

I noticed one thing is that the COCO_NAMES should have ['background'] infront. Mine doesn't. Let me try to modify my annotation files (7 classes total and IDS from 0 to 7) and see if the problem persists.
Thank you.

from pytorch_simple_centernet_45.

JiaLim98 avatar JiaLim98 commented on July 20, 2024

The issue has been solved after adding 'background' and having Ids from 1 to 7. Now I am facing this issue
image
I am using the default image size of 512 so it shouldn't be an issue mentioned in #19, right? I suggest it's the number of classes? This is because COCO has 80 and I'm having 7. Please advice. Thank you.

from pytorch_simple_centernet_45.

zzzxxxttt avatar zzzxxxttt commented on July 20, 2024

Oh, the hourglass model is created with default num_classes=80, you need to change the num_classes in hourglass.py line #106.
def __init__(self, n, nstack, dims, modules, cnv_dim=256, num_classes=80):

from pytorch_simple_centernet_45.

JiaLim98 avatar JiaLim98 commented on July 20, 2024

@zzzxxxttt It is working fine now. Thank you so much!

from pytorch_simple_centernet_45.

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.