tf-models-nightly 2.19.0.dev20250106__py2.py3-none-any.whl → 2.19.0.dev20250108__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.

@@ -844,19 +844,7 @@ def color(image: tf.Tensor, factor: float) -> tf.Tensor:
844
844
 
845
845
  def contrast(image: tf.Tensor, factor: float) -> tf.Tensor:
846
846
  """Equivalent of PIL Contrast."""
847
- degenerate = tf.image.rgb_to_grayscale(image)
848
- # Cast before calling tf.histogram.
849
- degenerate = tf.cast(degenerate, tf.int32)
850
-
851
- # Compute the grayscale histogram, then compute the mean pixel value,
852
- # and create a constant image size of that value. Use that as the
853
- # blending degenerate target of the original image.
854
- hist = tf.histogram_fixed_width(degenerate, [0, 255], nbins=256)
855
- mean = tf.reduce_sum(tf.cast(hist, tf.float32)) / 256.0
856
- degenerate = tf.ones_like(degenerate, dtype=tf.float32) * mean
857
- degenerate = tf.clip_by_value(degenerate, 0.0, 255.0)
858
- degenerate = tf.image.grayscale_to_rgb(tf.cast(degenerate, tf.uint8))
859
- return blend(degenerate, image, factor)
847
+ return tf.image.adjust_contrast(image, factor)
860
848
 
861
849
 
862
850
  def brightness(image: tf.Tensor, factor: float) -> tf.Tensor:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tf-models-nightly
3
- Version: 2.19.0.dev20250106
3
+ Version: 2.19.0.dev20250108
4
4
  Summary: TensorFlow Official Models
5
5
  Home-page: https://github.com/tensorflow/models
6
6
  Author: Google Inc.
@@ -1123,7 +1123,7 @@ official/vision/ops/anchor.py,sha256=kPM7gkja4XfUxMXxBew65nxrmu5rjWFwc1ywsyinAO4
1123
1123
  official/vision/ops/anchor_generator.py,sha256=cN2k9rw4EpHPGrtSm8Ea51QERPy6WB1XGwYKjAkP8Uw,7276
1124
1124
  official/vision/ops/anchor_generator_test.py,sha256=qL4LCRr7UzwWlXmWNuS_yVwXe0ygNdMwYOz5T6Mrar4,5302
1125
1125
  official/vision/ops/anchor_test.py,sha256=Tjsybwb8hK8Zx5wd1F4fUp_wSezohR6nBTtl8mwvwug,8996
1126
- official/vision/ops/augment.py,sha256=20K-OWV_GLbpzv8sY5rBe6x3H5MIRbTlDWOPTfNlGeY,108290
1126
+ official/vision/ops/augment.py,sha256=O6SaIH806d27aJpq_6SqN4Np9kn5bCYvKYG5PnTmH2Y,107652
1127
1127
  official/vision/ops/augment_test.py,sha256=9QISeqJ79JgkI2-Hn4pMxPRRin3mbOd7mSJ4v7S8W6E,25881
1128
1128
  official/vision/ops/box_matcher.py,sha256=AvZd7CUUZnT4FwETLyVz3Uxb3gO-o94OwlZrvm7CtX0,9067
1129
1129
  official/vision/ops/box_matcher_test.py,sha256=YdxaTITaUyKBA27Pss5MZKF2ibBfSu879222c7lKngU,2438
@@ -1222,9 +1222,9 @@ tensorflow_models/tensorflow_models_test.py,sha256=nc6A9K53OGqF25xN5St8EiWvdVbda
1222
1222
  tensorflow_models/nlp/__init__.py,sha256=4tA5Pf4qaFwT-fIFOpX7x7FHJpnyJT-5UgOeFYTyMlc,807
1223
1223
  tensorflow_models/uplift/__init__.py,sha256=mqfa55gweOdpKoaQyid4A_4u7xw__FcQeSIF0k_pYmI,999
1224
1224
  tensorflow_models/vision/__init__.py,sha256=zBorY_v5xva1uI-qxhZO3Qh-Dii-Suq6wEYh6hKHDfc,833
1225
- tf_models_nightly-2.19.0.dev20250106.dist-info/AUTHORS,sha256=1dG3fXVu9jlo7bul8xuix5F5vOnczMk7_yWn4y70uw0,337
1226
- tf_models_nightly-2.19.0.dev20250106.dist-info/LICENSE,sha256=WxeBS_DejPZQabxtfMOM_xn8qoZNJDQjrT7z2wG1I4U,11512
1227
- tf_models_nightly-2.19.0.dev20250106.dist-info/METADATA,sha256=_pRuVIAx3L3ofOb7Mi7H6sljTSqpxQU7xieqwUIkDZ8,1432
1228
- tf_models_nightly-2.19.0.dev20250106.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
1229
- tf_models_nightly-2.19.0.dev20250106.dist-info/top_level.txt,sha256=gum2FfO5R4cvjl2-QtP-S1aNmsvIZaFFT6VFzU0f4-g,33
1230
- tf_models_nightly-2.19.0.dev20250106.dist-info/RECORD,,
1225
+ tf_models_nightly-2.19.0.dev20250108.dist-info/AUTHORS,sha256=1dG3fXVu9jlo7bul8xuix5F5vOnczMk7_yWn4y70uw0,337
1226
+ tf_models_nightly-2.19.0.dev20250108.dist-info/LICENSE,sha256=WxeBS_DejPZQabxtfMOM_xn8qoZNJDQjrT7z2wG1I4U,11512
1227
+ tf_models_nightly-2.19.0.dev20250108.dist-info/METADATA,sha256=ckmEhgbT8LSYMPLeG8hyb3Gu8eQYfhy7nn-gzlEco0g,1432
1228
+ tf_models_nightly-2.19.0.dev20250108.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
1229
+ tf_models_nightly-2.19.0.dev20250108.dist-info/top_level.txt,sha256=gum2FfO5R4cvjl2-QtP-S1aNmsvIZaFFT6VFzU0f4-g,33
1230
+ tf_models_nightly-2.19.0.dev20250108.dist-info/RECORD,,