Comments (5)
Describe the bug resume training error AttributeError: 'Momentum' object has no attribute 'set_dict'
To Reproduce Steps to reproduce the behavior: 1.Go to 'PaddleViT/object_detection/Swin/' 2.Run 'python main_single_gpu.py -resume='./output/train-20211210-09-50-43/Swin-Epoch-45'
The recovery of model can pass
ScreenshotsTraceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1483, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "F:/***/pp_swin/main_single_gpu.py", line 400, in <module> main() File "F:/***/pp_swin/main_single_gpu.py", line 313, in main optimizer.set_dict(opt_state) AttributeError: 'Momentum' object has no attribute 'set_dict'
Version (please complete the following information):
- Paddle Version: [ 2.2.0]
- Python Version [3.6]
- GPU/CPU mode [ Gpu]
Hello! "main_single_gpu.py line 313" try to change optimizer.set_dict(opt_state) to optimizer.set_state_dict(opt_state)
Thank you for your answer and successfully solved the problem.
from paddlevit.
Thanks for the issue. Currently, training for the Swin Detection is still in progress, which may have other issues rather than this one. So I would suggest not using Swin Object detection training now. We will try to fix as soon as possible.
from paddlevit.
@FL77N Could you help evaluate the workload and check out our plan for the swin object detection ?
from paddlevit.
Describe the bug resume training error AttributeError: 'Momentum' object has no attribute 'set_dict'
To Reproduce Steps to reproduce the behavior: 1.Go to 'PaddleViT/object_detection/Swin/' 2.Run 'python main_single_gpu.py -resume='./output/train-20211210-09-50-43/Swin-Epoch-45'
The recovery of model can pass
Screenshots
Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1483, in _exec pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "F:/***/pp_swin/main_single_gpu.py", line 400, in <module> main() File "F:/***/pp_swin/main_single_gpu.py", line 313, in main optimizer.set_dict(opt_state) AttributeError: 'Momentum' object has no attribute 'set_dict'
Version (please complete the following information):
- Paddle Version: [ 2.2.0]
- Python Version [3.6]
- GPU/CPU mode [ Gpu]
Hello! "main_single_gpu.py line 313" try to change optimizer.set_dict(opt_state) to optimizer.set_state_dict(opt_state)
from paddlevit.
I have change the related code. Since this issue has been fixed, I close this issue.
from paddlevit.
Related Issues (20)
- 请问,何凯明的Masked Autoencoders Are Scalable Vision Learners这篇论文有复现嘛? HOT 1
- 请问有提供模型训练的日志吗? HOT 4
- cswin_large_224 pretrained 22k model HOT 4
- t2t利用paddlelite进行pto可以导出定点模型,但评测时报错 HOT 5
- 关于mae的预训练模型是否包含decoder部分 HOT 1
- 说明文档在数据准备阶段的Bug HOT 1
- TopFormer预测精度
- 如何计算VIT模型的Flops ? HOT 1
- 求train_list.txt, val_list.txt HOT 4
- 图片的patch问题
- head_dim
- MobileFormer的预训练权重
- MobileFormer
- ViT pretrained weight with MAE
- 请问vit-base-patch16-224的模型是仅通过仓库训练脚本得到的吗?
- MixSoftmaxCrossEntropyLoss 与MultiCrossEntropyLoss
- 挺好的一个项目,不更新维护了?? HOT 1
- Hey , I am trying to run your for for the Trans2seg paper, but continously getting this error
- TopFormer implementation differs from original reference implementation
- Cannot get Image Segmentation training to work with custom dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddlevit.