# Deploy the model
go run deploy-model/main.go --model-path yolov4-onyx-cpu.zip --model-name yolov4
The response only includes the status of version 1, but no status of version 2.
# Test the model
go run test-model/main.go --model-name yolov4 --test-image dog.jpg --model-version 2
2022/02/21 00:24:15 error when triggering predict: rpc error: code = Code(400) desc = {"status":400,"title":"PredictModel","detail":"Model is offline"}
{
"id": 1,
"name": "yolov4",
"full_Name": "local-user/yolov4",
"cv_task": "DETECTION",
"versions": [
{
"version": 1,
"model_id": 1,
"description": "YoloV4 for object detection",
"created_at": "2022-02-21T00:15:47.080792Z",
"updated_at": "2022-02-21T00:20:09.486272Z",
"status": "ONLINE"
},
{
"version": 2,
"model_id": 1,
"description": "YoloV4 for object detection",
"created_at": "2022-02-21T00:19:39.961661Z",
"updated_at": "2022-02-21T00:20:09.486272Z",
"status": "ONLINE"
}
]
}
The response shows both model versions are online.