Skip to content

Commit

Permalink
prediction functions with ms
Browse files Browse the repository at this point in the history
  • Loading branch information
PatBall1 committed Dec 4, 2024
1 parent cbdc5cb commit 7dae05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions detectree2/models/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from pathlib import Path

import cv2
import numpy as np
import rasterio
from detectron2.engine import DefaultPredictor
from detectron2.evaluation.coco_evaluation import instances_to_coco_json

Expand Down
2 changes: 1 addition & 1 deletion detectree2/models/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
build_detection_train_loader,
)
from detectron2.data import detection_utils as utils
from detectron2.engine import DefaultTrainer
from detectron2.engine import DefaultPredictor, DefaultTrainer
from detectron2.engine.hooks import HookBase
from detectron2.evaluation import COCOEvaluator, verify_results
from detectron2.evaluation.coco_evaluation import instances_to_coco_json
Expand Down

0 comments on commit 7dae05f

Please sign in to comment.