tf-models-nightly 2.15.0.dev20231129__py2.py3-none-any.whl → 2.15.0.dev20231130__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- official/vision/configs/common.py +8 -0
- official/vision/modeling/layers/detection_generator.py +6 -5
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/METADATA +1 -1
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/RECORD +8 -8
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/AUTHORS +0 -0
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/LICENSE +0 -0
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/WHEEL +0 -0
- {tf_models_nightly-2.15.0.dev20231129.dist-info → tf_models_nightly-2.15.0.dev20231130.dist-info}/top_level.txt +0 -0
@@ -157,3 +157,11 @@ class TFLitePostProcessingConfig(hyperparams.Config):
|
|
157
157
|
# Whether to omit the final nms placeholder op. If set to True, the output
|
158
158
|
# will be a tuple of boxes, scores result right before the NMS operation.
|
159
159
|
omit_nms: Optional[bool] = False
|
160
|
+
# The number of detections per class when using regular NMS.
|
161
|
+
detections_per_class: Optional[int] = 5
|
162
|
+
# Box scaling factors. It should agree with `box_coder_weights` defined in
|
163
|
+
# `DetectionGenerator`, which is in the format of [y, x, w, h].
|
164
|
+
y_scale: float = 1.0
|
165
|
+
x_scale: float = 1.0
|
166
|
+
w_scale: float = 1.0
|
167
|
+
h_scale: float = 1.0
|
@@ -764,7 +764,6 @@ def _generate_detections_tflite_implements_signature(
|
|
764
764
|
Returns:
|
765
765
|
An `experimental_implements` signature string.
|
766
766
|
"""
|
767
|
-
scale_value = 1.0
|
768
767
|
|
769
768
|
implements_signature = [
|
770
769
|
'name: "%s"' % 'TFLite_Detection_PostProcess',
|
@@ -772,16 +771,18 @@ def _generate_detections_tflite_implements_signature(
|
|
772
771
|
% config['max_detections'],
|
773
772
|
'attr { key: "max_classes_per_detection" value { i: %d } }'
|
774
773
|
% config['max_classes_per_detection'],
|
774
|
+
'attr { key: "detections_per_class" value { i: %d } }'
|
775
|
+
% config.get('detections_per_class', 5),
|
775
776
|
'attr { key: "use_regular_nms" value { b: %s } }'
|
776
777
|
% str(config['use_regular_nms']).lower(),
|
777
778
|
'attr { key: "nms_score_threshold" value { f: %f } }'
|
778
779
|
% config['nms_score_threshold'],
|
779
780
|
'attr { key: "nms_iou_threshold" value { f: %f } }'
|
780
781
|
% config['nms_iou_threshold'],
|
781
|
-
'attr { key: "y_scale" value { f: %f } }' %
|
782
|
-
'attr { key: "x_scale" value { f: %f } }' %
|
783
|
-
'attr { key: "h_scale" value { f: %f } }' %
|
784
|
-
'attr { key: "w_scale" value { f: %f } }' %
|
782
|
+
'attr { key: "y_scale" value { f: %f } }' % config.get('y_scale', 1.0),
|
783
|
+
'attr { key: "x_scale" value { f: %f } }' % config.get('x_scale', 1.0),
|
784
|
+
'attr { key: "h_scale" value { f: %f } }' % config.get('h_scale', 1.0),
|
785
|
+
'attr { key: "w_scale" value { f: %f } }' % config.get('w_scale', 1.0),
|
785
786
|
'attr { key: "num_classes" value { i: %d } }' % config['num_classes'],
|
786
787
|
]
|
787
788
|
implements_signature = ' '.join(implements_signature)
|
@@ -912,7 +912,7 @@ official/vision/train_spatial_partitioning.py,sha256=LMr8ztJ9WF7yCkXB20AsS2B3G3o
|
|
912
912
|
official/vision/configs/__init__.py,sha256=5Uk9jeIYHTEHXs8kBrq-vMa7cgg_JpLgSYuVaLPyUt8,1045
|
913
913
|
official/vision/configs/backbones.py,sha256=K8ph1ORFKtOmHW_WA9xD3tjYKIEtRkzNJ2klhWFUogQ,5547
|
914
914
|
official/vision/configs/backbones_3d.py,sha256=f1v1TMsBofFbWHGqFMcJJnopNum6Ua-FiWGlwhVcbUo,3614
|
915
|
-
official/vision/configs/common.py,sha256=
|
915
|
+
official/vision/configs/common.py,sha256=8DjWK7LsVtdYxAYm-mxspj9PabEGkVCDgmC7dzY3ks0,5354
|
916
916
|
official/vision/configs/decoders.py,sha256=5gmmmvrh0hxfxFKsqstOSBLtJN_lk8jbejCjefV0J-U,2080
|
917
917
|
official/vision/configs/image_classification.py,sha256=0fUVS0EI6aSC4fU_YDniiiO6O4ooylRVjKkOMpqisyA,24563
|
918
918
|
official/vision/configs/image_classification_test.py,sha256=dH4MDaplTEcon4osucrblkx06WD0Vh-YQ5249wQYoM4,1867
|
@@ -1039,7 +1039,7 @@ official/vision/modeling/layers/__init__.py,sha256=Yk0zkJVVgwi--tv5-NKIAKHCzpFw9
|
|
1039
1039
|
official/vision/modeling/layers/box_sampler.py,sha256=a7ssbMDR5OEoSIGmRU3HJGoWYNXJA6EmCg5T1K36wco,3411
|
1040
1040
|
official/vision/modeling/layers/deeplab.py,sha256=YBRa3uO_rqzxr6dS9beUZexb0hDE_eJkWC9l15y6OHI,8571
|
1041
1041
|
official/vision/modeling/layers/deeplab_test.py,sha256=Vh8DHsvtUVQ6pzOSvY9QtPz1pJmq7zlDzxzFZpuNUOM,1904
|
1042
|
-
official/vision/modeling/layers/detection_generator.py,sha256=
|
1042
|
+
official/vision/modeling/layers/detection_generator.py,sha256=SRe9rBM_IqIbg9zczk9eyTbFJXAGUQXz3vOli6YyI5A,65601
|
1043
1043
|
official/vision/modeling/layers/detection_generator_test.py,sha256=9Se5WEizWUwbSJc5Cf5MU7qlMA3KXDyW4WCZfgPHMso,13577
|
1044
1044
|
official/vision/modeling/layers/edgetpu.py,sha256=ofhZtwYq0qjU7NcQcaXIYSKvEG-PZPL7p0U1g3eXEPA,16737
|
1045
1045
|
official/vision/modeling/layers/edgetpu_test.py,sha256=oY2czEzDQq40IlzcaWazw89mtPsDx4K5CCTyesdsksw,10120
|
@@ -1158,9 +1158,9 @@ tensorflow_models/__init__.py,sha256=Ciz_YBke6teb6y42QyQTUBDdXJAiV7Qdu1zOoZvYiKw
|
|
1158
1158
|
tensorflow_models/tensorflow_models_test.py,sha256=qUBLFZg7rmKkVQ3cHJVlkoid8cPqjjyc2ZiWtjQO5_o,1395
|
1159
1159
|
tensorflow_models/nlp/__init__.py,sha256=3dULDpUBpDi9vljpXadq6oJrWH4y6z42Bz2d3hopYZw,807
|
1160
1160
|
tensorflow_models/vision/__init__.py,sha256=4y77XkHaH8qLls3-6ta4tMp3Xj8CLbB0ihH91HsQ9z4,833
|
1161
|
-
tf_models_nightly-2.15.0.
|
1162
|
-
tf_models_nightly-2.15.0.
|
1163
|
-
tf_models_nightly-2.15.0.
|
1164
|
-
tf_models_nightly-2.15.0.
|
1165
|
-
tf_models_nightly-2.15.0.
|
1166
|
-
tf_models_nightly-2.15.0.
|
1161
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/AUTHORS,sha256=1dG3fXVu9jlo7bul8xuix5F5vOnczMk7_yWn4y70uw0,337
|
1162
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/LICENSE,sha256=WxeBS_DejPZQabxtfMOM_xn8qoZNJDQjrT7z2wG1I4U,11512
|
1163
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/METADATA,sha256=-Nppc2kRx3c32vfT8uwdNaR6Q2R92fJqftbHoQ1p8sg,1414
|
1164
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
1165
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/top_level.txt,sha256=gum2FfO5R4cvjl2-QtP-S1aNmsvIZaFFT6VFzU0f4-g,33
|
1166
|
+
tf_models_nightly-2.15.0.dev20231130.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|