Skip to main content

import/export

Export

You can use classy export to save a zip file of a trained model to be shared with others.

classy train [...] -n modelnameclassy export modelnameModel saved to classy-export-modelname.zip

Import

You can use classy import to import a model previously exported by someone else with classy export. By default, everything will be imported under your experiments/ folder (if you run from a classy project), but you can specify a target path via the --exp-dir argument.

classy import classy-export-modelname.zipclassy serve modelnameDemo up and running at http://0.0.0.0:8000

tip

Once a model has been imported, it is accessible from anywhere on the machine using any of the model-based classy commands (e.g. serve, predict, etc).