Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/pages/Layout/MainLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const MainLayout = () => {
return (
<div className="w-full h-screen flex flex-col bg-gray-50 min-w-6xl">
<Header />
<div className="w-full h-full flex">
<div className="w-full h-[calc(100%-57px)] flex">
{/* Sidebar */}
<Sidebar />
{/* Main Content */}
Expand Down
2 changes: 1 addition & 1 deletion runtime/ops/mapper/img_direction_correct/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _detect_direction(image, file_name, model):
rotate_angle = int(cls_res.get("class_ids", np.array([0], dtype='int32')).item())
pro = float(cls_res.get("scores", np.array([0], dtype='int32')).item())
logger.info(
f"fileName: {file_name}, model {model.model_name} detect result is {rotate_angle} with confidence {pro}")
f"fileName: {file_name}, model detect result is {rotate_angle} with confidence {pro}")
if rotate_angle == 90 and pro > 0.89:
return cv2.rotate(image, cv2.ROTATE_90_CLOCKWISE)
if rotate_angle == 180 and pro > 0.89:
Expand Down
Loading