I have trained my model in Google Colab and deployed it back to Roboflow. The model is available on the project page, I can test it with images and it seems to work fine. However, when I try to use it in my web app, I get the following error:
“Could not parse size from model.json”
“You must train a model on this version with Roboflow Train before you can use inference.”
“No trained model was found for this model version.”
“GraphMethodException”
roboflow.auth({
publishable_key: "xxxxx"
}).load({
model: "4f5c22f2-3b54-4f90-ad68-87d083bc1baf",
version: 20
}).then(function(model) {
console.log("model has loaded");
});
It is a YOLOv5 model, up to a few weeks ago this process worked fine. Colab seems to have upgraded some libraries and now the tensorflowjs conversion fails. Downgrading jax and jaxlib and reinstalling tensorflowjs allows me to do the conversion but it gives a lot of warnings:
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp/tfbn/batch_normalization/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_1/tfbn_1/batch_normalization_1/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_2/tfbn_2/batch_normalization_2/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_3/tfbn_3/batch_normalization_3/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_4/tfbn_4/batch_normalization_4/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_5/tfbn_5/batch_normalization_5/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_6/tfbn_6/batch_normalization_6/FusedBatchNormV3'
WARNING:tensorflow:Didn't find expected Conv2D or DepthwiseConv2dNative input to 'model/tf_bottleneck_csp_7/tfbn_7/batch_normalization_7/FusedBatchNormV3'
I suspect this is why the web model is corrupted.
I’m running Chrome on Ubuntu 22.04
https://app.roboflow.com/itgisworx/4f5c22f2-3b54-4f90-ad68-87d083bc1baf/deploy/20
Can the web model not be generated at Roboflow in stead of in the Colab notebook?