-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Base structure for faster rcnn till rpn head * Add export for Faster RNN * add init file * initalize faster rcnn at model level * code fix fo roi align * Forward Pass code for Faster R-CNN * Faster RCNN Base code for Keras3(Draft-1) * Add local batch size * Add parameters to RPN Head * Make FPN more customizable with parameters and remove redudant code * Compute output shape for ROI Generator * Faster RCNN functional model with required import corrections * add clip boxes to forward pass * add prediction decoder and use "yxyx" as default internal bounding box format * feature pryamid correction * change ops.divide to ops.divide_no_nan * use from logits=True for Non Max supression * include box convertions for both rois and ground truth boxes * Change number of detections in decoder * Use categoricalcrossentropy to avoid -1 class error + added get_config for model saving * add basic test cases + linting * Add seed generator for sampling in RPN label encoding and ROI sampling layers * Use only spatial dimension for ops.nn.avg_pool + use ops.convert_to_tensor for list type + linting * Convert list to tensor using keras ops * Remove seed number from seed generator * Remove print and add proper comments * - Use stddev(0.01) as per paper across RPN and R-CNN Heads - Maxpool2d as per torch implementation in FPN - Add prediction decoder * - Fixes slice for multi backend - Slice for tensorflow can use [-1, -1, -1] for shape but not jax and torch, they should have explicit shape * - Add compute metrics method * Correct test cases and add missing args * Fix lint issues * - Fix lint and remove hard coded params to make it user friendly. * - Generate ROI's while decoding for predictions - Liniting + Test Cases * - Add faster rcnn to build method * - Test only for Keras3 * - Correct test case - Add copyright * - Correct the test cases decorator to skip for Keras2 * - Skip Legacy test cases - Fix ROI Align ops for torch backend * - Remove unecessary import in legacy code to fix lint * - Correct pytest complexity - Make bounding box test utils use 256,256 image size * - FIx Image Shape to 512, 512 default which will not break other test cases * - Lower image sizes for test cases - Add build method for fpn * - fix keras to 3.3.3 version * - Generate api - Correct YOLOv8 preset test case * - Lint fix * - Increase the atol, rtol for YOLOv8 Detector forward pass
- Loading branch information
Showing
27 changed files
with
2,085 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""DO NOT EDIT. | ||
This file was autogenerated. Do not edit it by hand, | ||
since your modifications would be overwritten. | ||
""" | ||
|
||
from keras_cv.src.models.object_detection.faster_rcnn.feature_pyramid import ( | ||
FeaturePyramid, | ||
) | ||
from keras_cv.src.models.object_detection.faster_rcnn.rcnn_head import RCNNHead | ||
from keras_cv.src.models.object_detection.faster_rcnn.rpn_head import RPNHead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.