Python object_detection.meta_architectures.rfcn_meta_arch.RFCNMetaArch() Examples

The following are 29 code examples of object_detection.meta_architectures.rfcn_meta_arch.RFCNMetaArch(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module object_detection.meta_architectures.rfcn_meta_arch , or try the search function .
Example #1
Source File: rfcn_meta_arch_test.py    From moveo_ros with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #2
Source File: rfcn_meta_arch_test.py    From multilabel-image-classification-tensorflow with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #3
Source File: rfcn_meta_arch_test.py    From mtl-ssl with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #4
Source File: model_builder_test.py    From models with Apache License 2.0 5 votes vote down vote up
def test_create_rfcn_model_from_config(self):
    model_proto = self.create_default_faster_rcnn_model_proto()
    rfcn_predictor_config = (
        model_proto.faster_rcnn.second_stage_box_predictor.rfcn_box_predictor)
    rfcn_predictor_config.conv_hyperparams.op = hyperparams_pb2.Hyperparams.CONV
    for extractor_type, extractor_class in (
        self.faster_rcnn_feature_extractors().items()):
      model_proto.faster_rcnn.feature_extractor.type = extractor_type
      model = model_builder.build(model_proto, is_training=True)
      self.assertIsInstance(model, rfcn_meta_arch.RFCNMetaArch)
      self.assertIsInstance(model._feature_extractor, extractor_class) 
Example #5
Source File: rfcn_meta_arch_test.py    From models with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #6
Source File: rfcn_meta_arch_test.py    From g-tensorflow-models with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #7
Source File: rfcn_meta_arch_test.py    From MAX-Object-Detector with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #8
Source File: rfcn_meta_arch_test.py    From object_detection_with_tensorflow with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #9
Source File: rfcn_meta_arch_test.py    From object_detection_with_tensorflow with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #10
Source File: rfcn_meta_arch_test.py    From Elphas with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #11
Source File: rfcn_meta_arch_test.py    From MBMD with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #12
Source File: rfcn_meta_arch_test.py    From object_detection_kitti with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #13
Source File: model_builder_test.py    From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 5 votes vote down vote up
def test_create_rfcn_model_from_config(self):
    model_proto = self.create_default_faster_rcnn_model_proto()
    rfcn_predictor_config = (
        model_proto.faster_rcnn.second_stage_box_predictor.rfcn_box_predictor)
    rfcn_predictor_config.conv_hyperparams.op = hyperparams_pb2.Hyperparams.CONV
    for extractor_type, extractor_class in (
        model_builder.FASTER_RCNN_FEATURE_EXTRACTOR_CLASS_MAP.items()):
      model_proto.faster_rcnn.feature_extractor.type = extractor_type
      model = model_builder.build(model_proto, is_training=True)
      self.assertIsInstance(model, rfcn_meta_arch.RFCNMetaArch)
      self.assertIsInstance(model._feature_extractor, extractor_class) 
Example #14
Source File: model_builder_test.py    From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 5 votes vote down vote up
def test_create_rfcn_model_from_config(self):
    model_proto = self.create_default_faster_rcnn_model_proto()
    rfcn_predictor_config = (
        model_proto.faster_rcnn.second_stage_box_predictor.rfcn_box_predictor)
    rfcn_predictor_config.conv_hyperparams.op = hyperparams_pb2.Hyperparams.CONV
    for extractor_type, extractor_class in (
        model_builder.FASTER_RCNN_FEATURE_EXTRACTOR_CLASS_MAP.items()):
      model_proto.faster_rcnn.feature_extractor.type = extractor_type
      model = model_builder.build(model_proto, is_training=True)
      self.assertIsInstance(model, rfcn_meta_arch.RFCNMetaArch)
      self.assertIsInstance(model._feature_extractor, extractor_class) 
Example #15
Source File: rfcn_meta_arch_test.py    From hands-detection with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #16
Source File: rfcn_meta_arch_test.py    From DOTA_models with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #17
Source File: rfcn_meta_arch_test.py    From BMW-TensorFlow-Training-GUI with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #18
Source File: rfcn_meta_arch_test.py    From ros_tensorflow with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #19
Source File: rfcn_meta_arch_test.py    From Gun-Detector with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #20
Source File: rfcn_meta_arch_test.py    From tensorflow with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #21
Source File: rfcn_meta_arch_test.py    From Hands-On-Machine-Learning-with-OpenCV-4 with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #22
Source File: rfcn_meta_arch_test.py    From Traffic-Rule-Violation-Detection-System with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #23
Source File: rfcn_meta_arch_test.py    From yolo_v2 with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #24
Source File: rfcn_meta_arch_test.py    From HereIsWally with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #25
Source File: rfcn_meta_arch_test.py    From garbage-object-detection-tensorflow with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #26
Source File: rfcn_meta_arch_test.py    From Person-Detection-and-Tracking with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #27
Source File: rfcn_meta_arch_test.py    From ros_people_object_detection_tensorflow with Apache License 2.0 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #28
Source File: rfcn_meta_arch_test.py    From vehicle_counting_tensorflow with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs) 
Example #29
Source File: rfcn_meta_arch_test.py    From object_detector_app with MIT License 5 votes vote down vote up
def _get_model(self, box_predictor, **common_kwargs):
    return rfcn_meta_arch.RFCNMetaArch(
        second_stage_rfcn_box_predictor=box_predictor, **common_kwargs)