question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Class names in checkpoint's meta data

See original GitHub issue

How to save the class names of my custom dataset in the checkpoint’s metadata?

I don’t see any option in train.py or from skimming the tutorial on config here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mzr1996commented, Nov 8, 2021

Well, in the tools/train.py, we will automatically add the CLASSES attribute of the dataset to the checkpoint’s meta argument. Usually, you only need to add the classes in the dataset configuration. And custom the meta dict in the config file may cause some other important meta keys missing. Here is the code: https://github.com/open-mmlab/mmclassification/blob/dc35eb62b61ab17decedb93c4d83ec6da5f93eff/tools/train.py#L161-L167

1reaction
Ezra-Yucommented, Nov 6, 2021

By the way, we are going to add some documentation about Hook in #499, which includes CheckPointHook, and it is under review. Maybe you can read that and give us some suggestions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Assigning class names to checkpoint's meta data · Issue #3908
I'm getting following after initializing a detector. UserWarning: Class names are not saved in the checkpoint's meta data, use COCO classes ...
Read more >
A Guide To Using Checkpoints — Ray 2.2.0
This includes the state of the searcher/scheduler, the list of trials with their statuses (PENDING, RUNNING, TERMINATED, ERROR), and the metadata that is ......
Read more >
Training checkpoints | TensorFlow Core
TensorFlow matches variables to checkpointed values by traversing a directed graph with named edges, starting from the object being loaded. Edge names typically ......
Read more >
Checkpoint - Great Expectations docs
A Checkpoint is the primary means for validating data in a production deployment ... the name of the Expectation Suite to validate the...
Read more >
Metadata classes and mapping - Squiz Help Center
Metadata classes are used by Funnelback to organise and access metadata. Metadata classes are given a unique identifier and type and one or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found