page_type | languages | products | description | urlFragment | ||
---|---|---|---|---|---|---|
sample |
|
|
Sample script to copy a Custom Vision project from one Subscription/Region to another. |
custom-vision-move-project |
This sample project is deprecated. Please use export/import API provied by Custom Vision to move projects.
Move Custom Vision Project
Sample script to copy a Custom Vision project from one Subscription/Region to another.
Getting Started
Prerequisites
Installation
To run the script you first install the requirements
pip install -r requirements.txt
Quickstart
To run you need this information:
From the settings page of the source Subscription (where you want to copy from)
- Source Project Id
- Source Training Key
- Source Endpoint, if not south central us
From the settings page of the destination Subscription (where you want to copy to)
- Destination Training Key
- Destination Endpoint, if not south central us
Then run the python script with the necessary information:
python migrate_project.py -p "<project id>" -s "<source training key>" -d "<destination training key>"
This script will recreate a project with the destination training-key and download/upload all of the tags, regions, and images. It will leave you with a new project in your new subscription with no trained iterations, from here you can train a new iteration.
The migration script assumes you are migrating projects in South Central US. If you need to migrate a project from one region to another then you can specify the endpoints.
For example, to migrate from South Central US to North Europe:
python migrate_project.py -p "<project id>" -s "<source training key>" -se "https://southcentralus.api.cognitive.microsoft.com" -d "<destination training key>" -de "https://northeurope.api.cognitive.microsoft.com"