-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Is there ResNet-101 pretrained imagenet weights.h5 #725
Comments
Try this. |
@mekomlusa Can't link |
@engineer1109 Try this. I remember @flyyufelix put his pre-trained ImageNet weights somewhere on Google Drive, but can't recall it right off my head. |
Wait, I thought given |
I think model just uses resnet50 weights for resnet101 model whereever possible and randomly initializes rest of the layers. |
@talhasaruhan is right. At least I know that ImageNet weight is resnet50 only. See the snapshot below (find more in the source code).
|
Hi everyone, Thank you! |
@Paulito-7 someone has: #1 (comment) |
@Paulito-7 I tried that and results weren't much different, although it depends on your training schedule (do you train all the network from epoch 0 or do you train heads for a couple of decades then train the complete network) As always YMMV |
@talhasaruhan How do you train the network? My AP is awful. |
@engineer1109 I tried training with constant 0.001 for about 200 epochs and starting from 0.002 w/ reduceLrOnPlateau with factor 0.5, at first both training and validation losses were quite above the model with default resnet50 weights. But it started to converge to the same line near the end. |
@talhasaruhan weight_decay=0.002? |
@engineer1109 nope, I had two different runs, one with lr constant 0.00,1 one with lr starting from 0.002 & ReduceLROnPlateau callback. (factor 0.5 patience 20) |
@talhasaruhan Could you please explain a bit what gives you the idea and how this would work ? I found an if-statement that checks for the backbone name when building the model: Lines 195 to 203 in 41e7c59
That would imply that the model is created entirely with some kind of randomly initialized weights and later the pre-trained weights are loaded in: Mask_RCNN/samples/coco/coco.py Lines 472 to 474 in 41e7c59
But if this is correct, the first stage of the training would go bad l, since the last layers of resnet101 are not trained, their output would be noise fed into the RoI predictor that follow. Not that only the Mask_RCNN/samples/coco/coco.py Lines 498 to 504 in 41e7c59
any idea on what is really happening with the |
Keras application have a resnet weights https://github.com/keras-team/keras-applications/releases/tag/resnet |
@Mhaiyang @zhuchen115 I keep getting Value Error
and
|
@nyck33 model.load_weights(IMAGENET_DIR, by_name=True) |
I used these with resnet101 architecture, and am somehow getting higher losses than when I used resnet50 weights! |
are these resnet-101 weights trained on imagenet ? |
only resNet -50?
The text was updated successfully, but these errors were encountered: