Describe your question/issue here! (delete this when you post)
Project Type: Players detection
Operating System & Browser: Google Colab
Project Universe Link or Workspace/Project ID: project = rf.workspace(“felipemoura-uhruu”).project(“quartas_ourteam-82yjc”)
Do you grant Roboflow Support permission to access your Workspace for troubleshooting? (Yes/No): Yes
I have trained a model inside the google colab and I am trying to deploy de model, but there is this unauthorized message. My api-key is correct and I am using the same code I always used. However, now, it is unavailable. Please, can someone help me?
Thanks for the details! That 401 can come from a couple of different things, and the Python package hides the actual error message. Could you run this in your Colab and paste the output?
401 {“message”:“Model type \“yolov8\” is not recognized.”,“type”:“InvalidModelTypeException”,“hint”:“Please specify a supported model type with its size suffix.”}
Thank you for running that quick test. Our server now needs the model size in the model type (like yolov8n), and your version of the Roboflow package (1.1.48) sends a plain "yolov8" as-is. Either fix below will get the upload working.
Option 1: upgrade the Roboflow package. Newer versions read the size from your trained weights and add it automatically, so your existing deploy() call will work unchanged:
!pip install -U roboflow
Restart the Colab runtime after upgrading, then run your deploy() call again.
Option 2: keep your current version and pass the exact size you trained. For example, if you trained from yolov8n.pt: