facebookresearch / facebookresearch/sonata

Trained checkpoint from Pointcept missing 'config' key when loading

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
795
Forks
56
PR merge metrics
No merged PRs in 30d

Description

Hi, I trained a model using Pointcept with the following command:
sh scripts/train.sh -m 1 -g 8 -d sonata -c semseg-sonata-v1m1-3a-s3dis-lin -n semseg-sonata-v1m1-0-base-3a-s3dis-lin -w exp/sonata/pretrain-sonata-v1m1-0-base/model/model_last.pth
After training, I tried to load the checkpoint using:
model = sonata.load("/root/pythoncode/Pointcept-main/exp/sonata/semseg-sonata-v1m1-0-base-3a-s3dis-lin/model/model_best.pth").cuda()
But I encountered this error:
KeyError: 'config'
It seems that the 'config' key is missing from the checkpoint file.

Could you please help me with the following:

How can I include the config when saving the model during training?

Alternatively, how can I manually reconstruct the config used for training this model?

Thanks in advance!

Contributor guide

Open the contributing guide

Research direction

Start by tracing the checkpoint produced by scripts/train.sh and the loading path used by sonata.load(.../model_best.pth), then compare the saved keys with the training configuration supplied in the command. Done means establishing whether checkpoints should contain config and documenting or testing a reliable way to load this trained checkpoint without the KeyError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.