Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About training #3

Open
zeroorhero opened this issue Apr 5, 2020 · 2 comments
Open

About training #3

zeroorhero opened this issue Apr 5, 2020 · 2 comments

Comments

@zeroorhero
Copy link

Hello,thank you for your code!
when i am training ,there is no error .but can not train.

CUDA devices: <class 'torch.cuda.device'>
GPU numbers: 1
Create or load an imdb.
Loaded dataset voc_2007_trainval for training
Preparing training data...
voc_2007_trainval gt roidb loaded from /home/lcq/下载/residual-refinedet.pytorch-master/~/data/cache/voc_2007_trainval_gt_roidb.pkl
done
before filtering, there are 146 images...
after filtering, there are 146 images...
Construct vgg16_refinedet network.
/home/lcq/下载/residual-refinedet.pytorch-master/libs/networks/refinedet.py:34: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
self.anchors = Variable(self.anchor_layer.forward(), volatile=True)
Loading pretrained weights from weights/vgg16/vgg16_reducedfc.pth

/home/lcq/下载/residual-refinedet.pytorch-master/libs/networks/vgg_refinedet.py(56)_init_modules()
-> assert key_layer_ids[2] == -1 and key_layer_ids[3] == -1,
(Pdb)

do you know why? thank you !

@dd604
Copy link
Owner

dd604 commented Apr 10, 2020

Does this happen when you dubug? Maybe this means that you use wrong vgg. You should use the vgg network in this project, other than another vgg from pytorch.

@dd604
Copy link
Owner

dd604 commented Apr 19, 2020

Hello,thank you for your code!
when i am training ,there is no error .but can not train.

CUDA devices: <class 'torch.cuda.device'>
GPU numbers: 1
Create or load an imdb.
Loaded dataset voc_2007_trainval for training
Preparing training data...
voc_2007_trainval gt roidb loaded from /home/lcq/下载/residual-refinedet.pytorch-master/~/data/cache/voc_2007_trainval_gt_roidb.pkl
done
before filtering, there are 146 images...
after filtering, there are 146 images...
Construct vgg16_refinedet network.
/home/lcq/下载/residual-refinedet.pytorch-master/libs/networks/refinedet.py:34: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
self.anchors = Variable(self.anchor_layer.forward(), volatile=True)
Loading pretrained weights from weights/vgg16/vgg16_reducedfc.pth

/home/lcq/下载/residual-refinedet.pytorch-master/libs/networks/vgg_refinedet.py(56)_init_modules()
-> assert key_layer_ids[2] == -1 and key_layer_ids[3] == -1,
(Pdb)

do you know why? thank you !

Hi my friend, i have just updated the project, maybe there is some mess in the previous version. If there are some problem about the new version, please let me know. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants