gomyck-tools 1.5.5__py3-none-any.whl → 1.5.6__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.
- ctools/ml/ppi.py +2 -3
- {gomyck_tools-1.5.5.dist-info → gomyck_tools-1.5.6.dist-info}/METADATA +1 -1
- {gomyck_tools-1.5.5.dist-info → gomyck_tools-1.5.6.dist-info}/RECORD +6 -6
- {gomyck_tools-1.5.5.dist-info → gomyck_tools-1.5.6.dist-info}/WHEEL +0 -0
- {gomyck_tools-1.5.5.dist-info → gomyck_tools-1.5.6.dist-info}/licenses/LICENSE +0 -0
- {gomyck_tools-1.5.5.dist-info → gomyck_tools-1.5.6.dist-info}/top_level.txt +0 -0
ctools/ml/ppi.py
CHANGED
|
@@ -164,7 +164,7 @@ class PaddleInferenceEngine:
|
|
|
164
164
|
sorted_idx = sorted_idx[valid_idx]
|
|
165
165
|
return dets[keep].tolist()
|
|
166
166
|
|
|
167
|
-
def
|
|
167
|
+
def predict_image_tiled_and_extract(self, img, im_size=320, tile_overlap=0.2, class_names=None, target_classes=None, threshold=0.3, nms_iou=0.5):
|
|
168
168
|
"""
|
|
169
169
|
Tiled prediction for large images (2K, 4K, etc).
|
|
170
170
|
Splits image into overlapping tiles, predicts each tile, merges results.
|
|
@@ -272,5 +272,4 @@ class PaddleInferenceEngine:
|
|
|
272
272
|
# Create a dummy scale_factor (1:1 since we're already in original coordinates)
|
|
273
273
|
scale_factor = np.array([[1.0, 1.0]], dtype=np.float32)
|
|
274
274
|
extractor = ClassRegionBase64ExtractorPIL(class_names or [], target_classes=target_classes, threshold=threshold)
|
|
275
|
-
|
|
276
|
-
return extracted, merged_detections
|
|
275
|
+
return extractor.extract(pil_img, merged_detections, scale_factor=scale_factor, im_size=orig_h)
|
|
@@ -50,7 +50,7 @@ ctools/geo/coord_trans.py,sha256=UWCU1wnrTDU1aLSVAwmiHOeH7Pu-Dp8lDLAngDG48NM,376
|
|
|
50
50
|
ctools/geo/douglas_rarefy.py,sha256=bJo6TwNxPa-7-8MOi8MULxeqnz4cvIJN-oXqBDWNAVM,4883
|
|
51
51
|
ctools/ml/image_process.py,sha256=keiIbcCkCZq-dp3PBpI-8tHFXNqKJKXATcrojMEpAGs,3168
|
|
52
52
|
ctools/ml/img_extractor.py,sha256=x_o3il6gWoKMBRgJ9m7HNt70nY3Etr5QcPzEKq76oiA,1829
|
|
53
|
-
ctools/ml/ppi.py,sha256=
|
|
53
|
+
ctools/ml/ppi.py,sha256=BtYam72ovii7UZ4LniM0smLv2fMmeqBUfKpfJTrHMVM,10886
|
|
54
54
|
ctools/office/__init__.py,sha256=wum34b8YJg0qD7uKdDEbozSE8RIxWqTVa44CCIZyqPU,98
|
|
55
55
|
ctools/office/cword.py,sha256=bIthKmf0oBqjcdkrU5hFDAPp66ZrjeMNzjIxOlMPeCc,837
|
|
56
56
|
ctools/office/word_fill.py,sha256=ZoTxz0-agEy5atIRWqYmQZz82nVr2zz9JebSTMkulIo,18214
|
|
@@ -85,8 +85,8 @@ ctools/web/ctoken.py,sha256=qsxrQY7IWgpPe5HyiDDnf50vsRX27QXMWPzam7bGu_Y,2646
|
|
|
85
85
|
ctools/web/download_util.py,sha256=v0JTXiED1bvoWFfwfd-LD5s7_aoRQ0lCkaGwSnSp7WI,1954
|
|
86
86
|
ctools/web/params_util.py,sha256=eJDV3PSq-ZHb8UZf6xqs8kOhbyZzits1H9yPoUBIDXg,828
|
|
87
87
|
ctools/web/upload_util.py,sha256=z1QQCi4SFx08jrAQH5-Y_ShiM4MghuD_5Qz6V9KK_4U,1076
|
|
88
|
-
gomyck_tools-1.5.
|
|
89
|
-
gomyck_tools-1.5.
|
|
90
|
-
gomyck_tools-1.5.
|
|
91
|
-
gomyck_tools-1.5.
|
|
92
|
-
gomyck_tools-1.5.
|
|
88
|
+
gomyck_tools-1.5.6.dist-info/licenses/LICENSE,sha256=X25ypfH9E6VTht2hcO8k7LCSdHUcoG_ALQt80jdYZfY,547
|
|
89
|
+
gomyck_tools-1.5.6.dist-info/METADATA,sha256=bzC0W0VinVmWDxCSpMkw5elRZ2svLnrog1aHUehGFFA,1957
|
|
90
|
+
gomyck_tools-1.5.6.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
91
|
+
gomyck_tools-1.5.6.dist-info/top_level.txt,sha256=-MiIH9FYRVKp1i5_SVRkaI-71WmF1sZSRrNWFU9ls3s,7
|
|
92
|
+
gomyck_tools-1.5.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|