-
Notifications
You must be signed in to change notification settings - Fork 303
Conversation
I am checking if Edit:
Edit: |
@Hakuyume |
If the backend affects the performance, how about raising a warning? |
Thanks for your suggestion. |
It is better to raise a warning from ResNet class and not from sample script. (please refer the example of SSD). |
OK |
if not _available: | ||
warnings.warn('cv2 is not installed on your environment. ' | ||
'The scores of ResNets reported in the ' | ||
'ChainerCV\'s Github page are calculated using ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github
-> GitHub
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github page
sounds that we have ***.github.io
page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change the warning message from that of SSD? It is better to use the same message because they say the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because Pretrained models are trained with cv2.
is not accurate.
In the case of ResNet, we do not know which backend was used during training.
All we are saying is that during evaluation the scores change with different backends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I understand the difference.
@@ -42,13 +42,13 @@ def main(): | |||
extractor = VGG16(n_class, args.pretrained_model) | |||
elif args.model == 'resnet50': | |||
extractor = ResNet50( | |||
n_class, args.pretrained_model, mode=args.resnet_mode) | |||
n_class, args.pretrained_model, arch=args.resnet_mode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resnet_mode
-> resnet_arch
@@ -201,8 +201,9 @@ def __init__(self, n_layer, | |||
if not _available: | |||
warnings.warn('cv2 is not installed on your environment. ' | |||
'The scores of ResNets reported in the ' | |||
'ChainerCV\'s Github page are calculated using ' | |||
'OpenCV as the backend. With Pillow as the ' | |||
'READMEs in ChainerCV\'s examples are ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scores are reported only in https://github.com/chainer/chainercv/tree/master/examples/classification. So READMEs
-> README
? Will you add the scores to another README?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Some names of parameters are not updated during the code review. I am sorry about that.