Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

targetran

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

targetran - npm Package Compare versions

Comparing version
0.13.1
to
0.13.2
+4
-5
PKG-INFO

@@ -1,8 +0,8 @@

Metadata-Version: 2.1
Metadata-Version: 2.2
Name: targetran
Version: 0.13.1
Version: 0.13.2
Summary: Target transformation for data augmentation in objection detection
Home-page: https://github.com/bhky/targetran
Author: attr: targetran.__author__
Author-email: xtorch501@gmail.com
Author-email: bhky.dev@gmail.com
Classifier: Programming Language :: Python :: 3

@@ -89,4 +89,3 @@ Classifier: License :: OSI Approved :: MIT License

- `NDFloatArray`: NumPy float array type, which is an alias to `np.typing.NDArray[np.float_]`.
The values are converted to `np.float32` internally.
- `NDFloatArray`: NumPy float array type. The values are converted to `np.float32` internally.
- `tf.Tensor`: General TensorFlow Tensor type. The values are converted to `tf.float32` internally.

@@ -93,0 +92,0 @@

@@ -73,4 +73,3 @@ ![logo](logo/targetran_logo.png)

- `NDFloatArray`: NumPy float array type, which is an alias to `np.typing.NDArray[np.float_]`.
The values are converted to `np.float32` internally.
- `NDFloatArray`: NumPy float array type. The values are converted to `np.float32` internally.
- `tf.Tensor`: General TensorFlow Tensor type. The values are converted to `tf.float32` internally.

@@ -77,0 +76,0 @@

@@ -5,3 +5,3 @@ [metadata]

author = attr: targetran.__author__
author_email = xtorch501@gmail.com
author_email = bhky.dev@gmail.com
description = Target transformation for data augmentation in objection detection

@@ -8,0 +8,0 @@ long_description = file: README.md

@@ -1,8 +0,8 @@

Metadata-Version: 2.1
Metadata-Version: 2.2
Name: targetran
Version: 0.13.1
Version: 0.13.2
Summary: Target transformation for data augmentation in objection detection
Home-page: https://github.com/bhky/targetran
Author: attr: targetran.__author__
Author-email: xtorch501@gmail.com
Author-email: bhky.dev@gmail.com
Classifier: Programming Language :: Python :: 3

@@ -89,4 +89,3 @@ Classifier: License :: OSI Approved :: MIT License

- `NDFloatArray`: NumPy float array type, which is an alias to `np.typing.NDArray[np.float_]`.
The values are converted to `np.float32` internally.
- `NDFloatArray`: NumPy float array type. The values are converted to `np.float32` internally.
- `tf.Tensor`: General TensorFlow Tensor type. The values are converted to `tf.float32` internally.

@@ -93,0 +92,0 @@

@@ -1,3 +0,3 @@

__version__ = "0.13.1"
__version__ = "0.13.2"
__author__ = "Bosco Yung"
__license__ = "MIT"

@@ -71,3 +71,4 @@ """

"""
resized_image: NDAnyArray = cv2.resize( # pylint: disable=no-member
# pylint: disable=no-member
resized_image: NDFloatArray = cv2.resize(
image,

@@ -77,2 +78,3 @@ dsize=(dest_size[1], dest_size[0]),

)
# pylint: enable=no-member
return resized_image

@@ -79,0 +81,0 @@

@@ -12,3 +12,3 @@ """

NDBoolArray = np.typing.NDArray[np.bool_]
NDFloatArray = np.typing.NDArray[np.float_]
NDFloatArray = NDAnyArray # Not nice, but since NumPy 2.0 there's no better way yet.
NDIntArray = np.typing.NDArray[np.int_]

@@ -15,0 +15,0 @@

@@ -297,5 +297,4 @@ """

indices = indices.tolist()
image_dest_tran_mats = np.take(image_dest_tran_mats, indices, 0)
bboxes_tran_mats = np.take(bboxes_tran_mats, indices, 0)
image_dest_tran_mats = np.take(image_dest_tran_mats, indices.tolist(), 0)
bboxes_tran_mats = np.take(bboxes_tran_mats, indices.tolist(), 0)

@@ -302,0 +301,0 @@ image_dest_tran_mat = np.linalg.multi_dot(image_dest_tran_mats)

@@ -14,3 +14,3 @@ #!/usr/bin/env python3

NDAnyArray = np.typing.NDArray[np.float_]
NDAnyArray = np.typing.NDArray[np.float32]

@@ -17,0 +17,0 @@

@@ -12,3 +12,3 @@ #!/usr/bin/env python3

NDAnyArray = np.typing.NDArray[np.float_]
NDAnyArray = np.typing.NDArray[np.float32]

@@ -15,0 +15,0 @@