mhaiyang / cvpr2021_pfnet Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello @Mhaiyang ,
I have a problem with using the GPU when training.
1.0.0
Train set: 2220
{'epoch_num': 45, 'train_batch_size': 16, 'last_epoch': 0, 'lr': 0.001, 'lr_decay': 0.9, 'weight_decay': 0.0005, 'momentum': 0.9, 'snapshot': '', 'scale': 416, 'save_point': [], 'poly_train': True, 'optimizer': 'SGD'}
PFNet
From /content/drive/MyDrive/PNFnet/backbone/resnet50-19c8e357.pth Load resnet50 Weights Succeed!
Traceback (most recent call last):
File "train.py", line 204, in <module>
main()
File "train.py", line 103, in main
net = PFNet(backbone_path).cuda(device_ids[0]).train()
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 260, in cuda
return self._apply(lambda t: t.cuda(device))
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 187, in _apply
module._apply(fn)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 187, in _apply
module._apply(fn)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 193, in _apply
param.data = fn(param.data)
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 260, in <lambda>
return self._apply(lambda t: t.cuda(device))
RuntimeError: CUDA error: invalid device ordinal
this error have occurred when I was using my personal PC and also when I used colab .
do you have any suggestions in this matter?
Hello @Mhaiyang, I hope you are doing well.
how can I add metrics to the model like F1 score, MeanIOU, Acureccy, and prescion?
我訓練好了一個模型後,若想要在繼續訓練下去要怎麼做?
謝謝
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.