Download model weights for roboflow logistics dataset

Recent blogpost https://blog.roboflow.com/logistics-object-detection-model/ has some code for local training custom dataset using the the checkpoint from the logistics dataset model:

from roboflow import Roboflow
rf = Roboflow(api_key="api_key")
project = rf.workspace().project("logistics-sz9jr")
model = project.version(1).model
model.download()

I used my api key and get the error:

HTTPError: 404 Client Error: Not Found for url: https://api.roboflow.com/alexander-jaworowski-rshsa/logistics-sz9jr/1/ptFile?api_key=<api key ...>

Have I missed something or is something missing in the blogpost?

Cheers,
A.

Thank you for your question! Can you try using this snippet:

rf = Roboflow(api_key="api_key")
project = rf.workspace("large-benchmark-datasets").project("logistics-sz9jr")
model = project.version(1).model

Thanks James!

Alexander, I updated the post to simplify the process and made it much easier to download the weight, it is a button now :slight_smile: Please let me know if you run into other issues.

Still problem

/usr/local/lib/python3.10/dist-packages/requests/models.py in raise_for_status(self)
   1019 
   1020         if http_error_msg:
-> 1021             raise HTTPError(http_error_msg, response=self)
   1022 
   1023     def close(self):
HTTPError: 404 Client Error: Not Found for url: https://api.roboflow.com/large-benchmark-datasets/logistics-sz9jr/1/ptFile?api_key=***

I am running through colab and roboflow version is 1.1.7. It seems that there is nothing at the ptFile endpoint. Tried with wget “…/1?api_key=***” and the responce json says models: {}

Yes, sorry about the confusion, I discovered that the endpoint is not public which is the source of the error. I have a publicly hosted url that you can use to download the weight directly now, please use the “Download Weights” button on the blog to get the weights.

Update as of February 2025: our new Basic and Growth plans now include model weights download. Docs: Download Roboflow Model Weights | Roboflow Docs