Skip to content

Commit

Permalink
Make linters happpy
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Nov 1, 2024
1 parent 7dc0888 commit 7b1cf12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def sort_line_detections(
else: # right_to_left or vertical_bottom_to_top
return (-line_xyxy[:, 0]).argsort() # Sort by -x1 (original -x or swapped -y)


def get_line_separator(reading_direction: str) -> str:
"""Get the appropriate separator based on reading direction."""
return "\n" if reading_direction in ["left_to_right", "right_to_left"] else " "
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import numpy as np
import cv2
import numpy as np

from inference.core.env import WORKFLOWS_MAX_CONCURRENT_STEPS
from inference.core.managers.base import ModelManager
from inference.core.workflows.core_steps.common.entities import StepExecutionMode
from inference.core.workflows.execution_engine.core import ExecutionEngine


WORKFLOW_KEYPOINT_VISUALIZATION = {
"version": "1.1",
"inputs": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def test_vertical_top_to_bottom():
[20, 10, 30, 20], # "上"
[20, 30, 30, 40], # "下"
# Second column (leftmost)
[0, 10, 10, 20], # "左"
[0, 30, 10, 40], # "右"
[0, 10, 10, 20], # "左"
[0, 30, 10, 40], # "右"
]
),
class_names=["上", "下", "左", "右"],
Expand Down

0 comments on commit 7b1cf12

Please sign in to comment.