Closed CristinaZN closed 3 years ago
yes, when using the example training script the checkpoints contain the network state_dict
and other information regarding the training process.
If you use compressai.tools.update_model
or manually extract the state_dict
from the checkpoints this should not happen.
Bug
To Reproduce
Steps to reproduce the behavior:
1.train your own model 2.update your own model
Expected behavior
CompressAI/compressai/models/priors.py", line 161, in from_state_dict: N = state_dict["g_a.0.weight"].size(0) requires a diction including keywards "g_a.xxxxxx", but this item is in the `state_dict["state_dict"]["g_a.0.weght"]
there are also some lines using state_dict, where the same erros happened
Additional context