Spaces:
Runtime error
Runtime error
File size: 332 Bytes
43c8d64 05d0158 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import keras_cv
import tensorflow as tf
backbone= keras_cv.models.YOLOV8Backbone.from_preset(
"yolo_v8_m_backbone_coco",
load_weights=False
)
model = keras_cv.models.YOLOV8Detector(
num_classes=2,
bounding_box_format="xyxy",
backbone=backbone,
fpn_depth=2,
)
model.load_weights('models/model.weights.h5')
|