TokenFusion
TokenFusion copied to clipboard
No pytorch models (.pth) saved during training?
Hi, first of all this is excellent work! I am trying to test some data on the segmentation portion. When I train it with pretained segformer weight, it saves data.pkl as checkpoints. It is not saving any .pth file. How am I supposed to evaluate it without any .pth file(pytorch model) generated during training? So question is, which 'path_to_pth ' path do you mean here "python main.py --gpu 0 --resume path_to_pth --evaluate" as during training no ".pth" file is generated. Am I supposed to convert the data.pkl to .pth here? Moreover, what was the total training time in a single gpu with B3 segformer weight? Thank you!
Hi, you may not convert data.pkl to .pth. You can follow https://wandb.ai/wandb/common-ml-errors/reports/How-to-Save-and-Load-Models-in-PyTorch--VmlldzozMjg0MTE for saving .pth file.
The total training time in a single gpu with B3 segformer weight is about 1~2 days.
which path should i reference? Or I need to retrain the model and set a path to save.
Looking foreward to ur answering! Thanks!
It was the model-best.pth.tar that worked for me after retraining. Originally it was not working, maybe because I stopped the training midway. I hope this helps.
i will try it later. Thanks!
model-best.pth.tar can't be unzipped correctly,I may have same problem with you ,and I never stopped the training midway,it's a bug I suppose