ultralytics 8.0.12
- Hydra removal (#506)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pronoy Mandal <lukex9442@gmail.com> Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
This commit is contained in:
@ -3,13 +3,13 @@
|
||||
from pathlib import Path
|
||||
|
||||
from ultralytics.yolo.configs import get_config
|
||||
from ultralytics.yolo.utils import DEFAULT_CONFIG, ROOT, SETTINGS
|
||||
from ultralytics.yolo.utils import DEFAULT_CFG_PATH, ROOT, SETTINGS
|
||||
from ultralytics.yolo.v8 import classify, detect, segment
|
||||
|
||||
CFG_DET = 'yolov8n.yaml'
|
||||
CFG_SEG = 'yolov8n-seg.yaml'
|
||||
CFG_CLS = 'squeezenet1_0'
|
||||
CFG = get_config(DEFAULT_CONFIG)
|
||||
CFG = get_config(DEFAULT_CFG_PATH)
|
||||
MODEL = Path(SETTINGS['weights_dir']) / 'yolov8n'
|
||||
SOURCE = ROOT / "assets"
|
||||
|
||||
|
@ -49,6 +49,8 @@ def test_predict_img():
|
||||
assert len(output) == 1, "predict test failed"
|
||||
output = model(source=[img, img], save=True, save_txt=True) # batch
|
||||
assert len(output) == 2, "predict test failed"
|
||||
output = model(source=[img, img], save=True, stream=True) # stream
|
||||
assert len(list(output)) == 2, "predict test failed"
|
||||
tens = torch.zeros(320, 640, 3)
|
||||
output = model(tens.numpy())
|
||||
assert len(output) == 1, "predict test failed"
|
||||
|
Reference in New Issue
Block a user