docstr: Tests we're not returning too many objects.
  
  The number of objects returned should be lower than the number of
  proposals received times the number of classes.
docstr_tok: ["Tests","we","'re","not","returning","too","many","objects",".","The","number","of","objects","returned","should","be","lower","than","the","number","of","proposals","received","times","the","number","of","classes","."]
code: def testNumberOfObjects(self):
      """Tests we're not returning too many objects.
  
      The number of objects returned should be lower than the number of
      proposals received times the number of classes.
      """
  
      rcnn_net = self._shared_model(
          self._pretrained_feature_map_ph,
          self._proposals_ph,
          self._image_shape_ph,
          self._base_network,
      )
  
      prediction_dict = self._run_net_with_feed_dict(
          rcnn_net,
          feed_dict={
              self._pretrained_feature_map_ph: np.random.rand(
                  *self._pretrained_feature_map_shape
              ),
              self._proposals_ph: np.random.randint(
                  0,
                  high=np.amin(self._image_shape),
                  size=self._proposals_shape,
              ),
              self._image_shape_ph: self._image_shape,
          },
      )
      # Assertions
      self.assertLessEqual(
          prediction_dict["objects"].shape[0],
          self._num_proposals * self._num_classes,
      )
  
file_path: luminoth/luminoth/models/fasterrcnn/rcnn_test.py
imports: import numpy
  import tensorflow
  from easydict import EasyDict
  from luminoth.models.fasterrcnn.rcnn import RCNN
label_desc: Use image node_id 6 for calling the RCNNTest obj's underlying member method code with example usage: obj.testNumberOfObjects() without return types