Giter VIP home page Giter VIP logo

Comments (5)

KainingYing avatar KainingYing commented on July 16, 2024

Hi @mbk2103 ,

Thanks for your attention on our work.

Can you give more details about your dataset? Image dataset (MS COCO) or video dataset(YTVIS,OVIS)?

from ctvis.

mbk2103 avatar mbk2103 commented on July 16, 2024

Thanks for your response.

Yes, my dataset is in the YTVIS format. It includes 132 frames in the training files, 29 frames in the validation files, and 28 frames in the test files. I have organized it according to the VITA data preparation format. Would you like me to explain the steps I followed to do this?

from ctvis.

KainingYing avatar KainingYing commented on July 16, 2024

Hi @mbk2103 ,

Thank you for the details you provided. May I ask how many categories are in your dataset?

I showed how to define YTVIS19, you can also easily imitate for a custom dataset. There are several steps you need to do:

  • You should define the categories in your dataset. Please refer to THIS and THIS.
  • Define the path to your image file and annotation file. Please refer to THIS.
  • Define and invoke the registry function. Please refer to THIS and THIS.

from ctvis.

mbk2103 avatar mbk2103 commented on July 16, 2024

Hi @KainingYing,

Thank you for your fast response.

I encountered an error when working with my custom dataset, which has only one class. The error is occurring at this line, and I haven't changed any variable names.

In the file "CTVIS/ctvis/data/pseudo_video/rotate_coco_video_dataset_mapper.py," the error message is as follows:

CTVIS/ctvis/data/pseudo_video/rotate_coco_video_dataset_mapper.py", line 285, in init
] = self.tgt_metadata.thing_dataset_id_to_contiguous_id[v]
KeyError: 21

Can you please help me understand why this error is occurring and how to resolve it?

from ctvis.

KainingYing avatar KainingYing commented on July 16, 2024

Hi @mbk2103 ,

Maybe you should modify the config file you run.

Specifically, you should overwrite the DATASETS.TRAIN, DATASETS.TEST, DATASETS.DATASET_RATIO and MODEL.NUM_CLASSES.

In the file "CTVIS/ctvis/data/pseudo_video/rotate_coco_video_dataset_mapper.py," the error message is as follows:
CTVIS/ctvis/data/pseudo_video/rotate_coco_video_dataset_mapper.py", line 285, in init
] = self.tgt_metadata.thing_dataset_id_to_contiguous_id[v]
KeyError: 21

The error you mentioned above is caused by the error you implemented COCO joint training, I recommend you use Video training by setting DATASETS.TRAIN as your custom dataset only.

BTW, considering your dataset is small, overfitting can happen easily, so I strongly recommend using our provided pre-trained models for fine-tuning.

from ctvis.

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.