tf-models-nightly 2.20.0.dev20250824__py2.py3-none-any.whl → 2.20.0.dev20250826__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.
Potentially problematic release.
This version of tf-models-nightly might be problematic. Click here for more details.
- official/vision/ops/preprocess_ops.py +16 -2
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/METADATA +1 -1
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/RECORD +7 -7
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/AUTHORS +0 -0
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/LICENSE +0 -0
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/WHEEL +0 -0
- {tf_models_nightly-2.20.0.dev20250824.dist-info → tf_models_nightly-2.20.0.dev20250826.dist-info}/top_level.txt +0 -0
|
@@ -795,6 +795,20 @@ def horizontal_flip_masks(masks):
|
|
|
795
795
|
return masks[:, :, ::-1]
|
|
796
796
|
|
|
797
797
|
|
|
798
|
+
def vertical_flip_image(image):
|
|
799
|
+
"""Flips image vertically."""
|
|
800
|
+
return tf.image.flip_up_down(image)
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
def vertical_flip_masks(masks):
|
|
804
|
+
"""Flips masks vertically. Expects rank-3 input dimensions."""
|
|
805
|
+
# For masks shape of [h, w, 1].
|
|
806
|
+
if masks.shape[-1] == 1:
|
|
807
|
+
return masks[::-1, :, :]
|
|
808
|
+
else:
|
|
809
|
+
return masks[:, ::-1, :]
|
|
810
|
+
|
|
811
|
+
|
|
798
812
|
def random_horizontal_flip(
|
|
799
813
|
image, normalized_boxes=None, masks=None, seed=1, prob=0.5
|
|
800
814
|
):
|
|
@@ -900,7 +914,7 @@ def random_vertical_flip(
|
|
|
900
914
|
do_flip = tf.less(tf.random.uniform([], seed=seed), prob)
|
|
901
915
|
|
|
902
916
|
image = tf.cond(
|
|
903
|
-
do_flip, lambda:
|
|
917
|
+
do_flip, lambda: vertical_flip_image(image), lambda: image
|
|
904
918
|
)
|
|
905
919
|
|
|
906
920
|
if normalized_boxes is not None:
|
|
@@ -913,7 +927,7 @@ def random_vertical_flip(
|
|
|
913
927
|
if masks is not None:
|
|
914
928
|
masks = tf.cond(
|
|
915
929
|
do_flip,
|
|
916
|
-
lambda:
|
|
930
|
+
lambda: vertical_flip_masks(masks),
|
|
917
931
|
lambda: masks,
|
|
918
932
|
)
|
|
919
933
|
|
|
@@ -1159,7 +1159,7 @@ official/vision/ops/iou_similarity_test.py,sha256=4etrxHdZzxOZ6ZwGMGbBR8WXsUP-CW
|
|
|
1159
1159
|
official/vision/ops/mask_ops.py,sha256=K_8mjLgH6A4wduZAPA73egfgbsnV9SBTXy6cH1J_l2c,10250
|
|
1160
1160
|
official/vision/ops/mask_ops_test.py,sha256=0oExjZHHLTxagyFBadyoLLuQfNlr18A682WXZ-NhQUM,2816
|
|
1161
1161
|
official/vision/ops/nms.py,sha256=JMKQdPU53zlxhMaj2quxJPy2wyFAbzzDRmHyM8oRF8U,8106
|
|
1162
|
-
official/vision/ops/preprocess_ops.py,sha256=
|
|
1162
|
+
official/vision/ops/preprocess_ops.py,sha256=fTafI8_HiciUIdX-UGLpJnV0rjOfZ1h2776ZwY3MBmI,43608
|
|
1163
1163
|
official/vision/ops/preprocess_ops_3d.py,sha256=D9ojriFAJg3yj3Od4MmXDy_kIlt_csUvq6kOt99jPmE,16762
|
|
1164
1164
|
official/vision/ops/preprocess_ops_3d_test.py,sha256=tSXBFtt1eRSAJnyLI0Lr7H7XHRozDjrSJWrvBug84H0,9309
|
|
1165
1165
|
official/vision/ops/preprocess_ops_test.py,sha256=37y-P2IDfRUOvZeA5aktgfjxxR9DaqXLsQJzGQaKz-g,17638
|
|
@@ -1248,9 +1248,9 @@ tensorflow_models/tensorflow_models_test.py,sha256=yiAneltAW3NHSj3fUSvHNBjfq0MGZ
|
|
|
1248
1248
|
tensorflow_models/nlp/__init__.py,sha256=8uQd4wI6Zc4IJMPjtQifMeWVbPFkTxqYh66wfivCOL4,807
|
|
1249
1249
|
tensorflow_models/uplift/__init__.py,sha256=NzaweFf4ZmhRb2l_fuV6bP-2N8oSO3xu6xJqVb1UmpY,999
|
|
1250
1250
|
tensorflow_models/vision/__init__.py,sha256=ks420Ooqzi0hU7HnQpM5rylLaE-YcJdJkBx_umVaXlE,833
|
|
1251
|
-
tf_models_nightly-2.20.0.
|
|
1252
|
-
tf_models_nightly-2.20.0.
|
|
1253
|
-
tf_models_nightly-2.20.0.
|
|
1254
|
-
tf_models_nightly-2.20.0.
|
|
1255
|
-
tf_models_nightly-2.20.0.
|
|
1256
|
-
tf_models_nightly-2.20.0.
|
|
1251
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/AUTHORS,sha256=1dG3fXVu9jlo7bul8xuix5F5vOnczMk7_yWn4y70uw0,337
|
|
1252
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/LICENSE,sha256=WxeBS_DejPZQabxtfMOM_xn8qoZNJDQjrT7z2wG1I4U,11512
|
|
1253
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/METADATA,sha256=IXIag2CwjXlDY4MZK5_biOc-rwLsW_sn0epOTeUL_hU,1432
|
|
1254
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
|
|
1255
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/top_level.txt,sha256=gum2FfO5R4cvjl2-QtP-S1aNmsvIZaFFT6VFzU0f4-g,33
|
|
1256
|
+
tf_models_nightly-2.20.0.dev20250826.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|