Skip to content

sacred config for faster rcnn #1358

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

Merged
merged 25 commits into from
Jul 8, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add docs
  • Loading branch information
Jerryzcn committed May 6, 2020
commit 8207c937585b87d1317f19479a62ddc3cf99ed66
22 changes: 21 additions & 1 deletion gluoncv/model_zoo/rcnn/faster_rcnn/data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,27 @@


class ForwardBackwardTask(Parallelizable):
""" Faster R-CNN tarining task that can be scheduled concurrently using Parallel."""
""" Faster R-CNN training task that can be scheduled concurrently using Parallel.
Parameters
----------
net : gluon.HybridBlock
Faster R-CNN network.
optimizer : gluon.Trainer
Optimizer for the training.
rpn_cls_loss : gluon.loss
RPN box classification loss.
rpn_box_loss : gluon.loss
RPN box regression loss.
rcnn_cls_loss : gluon.loss
R-CNN box head classification loss.
rcnn_box_loss : gluon.loss
R-CNN box head regression loss.
mix_ratio : int
Object detection mixup ratio.
amp_enabled : bool
Whether to enable Automatic Mixed Precision.
"""

def __init__(self, net, optimizer, rpn_cls_loss, rpn_box_loss, rcnn_cls_loss, rcnn_box_loss,
mix_ratio, amp_enabled):
super(ForwardBackwardTask, self).__init__()
Expand Down
21 changes: 20 additions & 1 deletion gluoncv/model_zoo/rcnn/mask_rcnn/data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,26 @@


class ForwardBackwardTask(Parallelizable):
""" Mask R-CNN tarining task that can be scheduled concurrently using Parallel."""
""" Mask R-CNN training task that can be scheduled concurrently using Parallel.
Parameters
----------
net : gluon.HybridBlock
Faster R-CNN network.
optimizer : gluon.Trainer
Optimizer for the training.
rpn_cls_loss : gluon.loss
RPN box classification loss.
rpn_box_loss : gluon.loss
RPN box regression loss.
rcnn_cls_loss : gluon.loss
R-CNN box head classification loss.
rcnn_box_loss : gluon.loss
R-CNN box head regression loss.
rcnn_mask_loss : gluon.loss
R-CNN mask head segmentation loss.
amp_enabled : bool
Whether to enable Automatic Mixed Precision.
"""
def __init__(self, net, optimizer, rpn_cls_loss, rpn_box_loss, rcnn_cls_loss, rcnn_box_loss,
rcnn_mask_loss, amp_enabled):
super(ForwardBackwardTask, self).__init__()
Expand Down