Export workflow to python

Hi, is it possible to export a workflow to a python script, or everything we do stays on roboflow?

I mean, there’s no way to get a standalone script? It seems simpler to learn from zero…

Hi there @gianni - thanks for posting!

You can click the Deploy button in the workflows app to download all models and workflow logic locally for use in python.

That’s not python code, that’s python code that runs python hosted on your server?

That pulls down the workflow and runs it locally on your machine.

See the code here: GitHub - roboflow/inference: A fast, easy-to-use, production-ready inference server for computer vision supporting deployment of many popular model architectures and fine-tuned models.

The code of the model built by the user is on your server, and stays on your server, and the users can’t see it.

Hello there ! I just want to ask you about robowflow datasets, How could we know about the owner of the dataset and shall we communicate with them to get the original images ? Thank you !

That’s what inference does! Once you use the code snippet previously to pull down the model / workflow specifications, it runs locally on your server.

Can you say that the code for the inference runs on your server? And that the user can’t modify it or see it? Honestly. Stop this nonsense.

Here’s how our self-hosted / edge deployments work:

  1. Models are trained and workflows are configured inside our cloud app.
  2. You can pull down a model or the workflow into a docker container on your own machine. You need internet connection to pull down the container, but after that it runs on your own server (not Roboflow’s).
  3. The code is open source. If you want to modify it - go ahead! We’ve seen customers write their own custom blocks in Python to use locally.

The docs to run a workflow locally are here.