Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
En CMD o PowerShell abrir con permisos de administrador y poner:
wsl --install
wsl --set-default-version 2
Descargar archivo e instalar:
https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
En Microsoft Store
Buscar e instalar Python3.8
Buscar e instalar Visual Studio Code
Buscar e instalar Ubuntu
Install Docker for Windows
https://docs.docker.com/get-docker/
Una vez instalado ve a Settings, luego a Resources, luego WSL Integration y habilita:
Enable integration with my default WSL distro
Habilitar Ubuntu
A continuacion correr instrucciones en Ubuntu:
#Referencia: https://cloud.google.com/vision/automl/docs/containers-gcs-tutorial?hl=en_US&_ga=2.66160878.-1941264574.1658438195.
Pre-requisitos para usar gsutils
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update
sudo apt-get install google-cloud-sdk
#Conectarse a Google Cloud:
gcloud auth login
gcloud config set project generated-case-354305 #Cambiar a tu proyecto
YOUR_MODEL_PATH=gs://test_video_01/xxx/xxx/xxx/xxx/xxx/saved_model.pb #Cambiar a tu ruta
YOUR_LOCAL_MODEL_PATH=/tmp/mounted_model
#Copiar modelo a tu equipo local
gsutil cp ${YOUR_MODEL_PATH} ${YOUR_LOCAL_MODEL_PATH}/saved_model.pb
export CPU_DOCKER_GCR_PATH=gcr.io/cloud-devrel-public-resources/gcloud-container-1.14.0:latest
sudo docker pull ${CPU_DOCKER_GCR_PATH
CONTAINER_NAME=automl_high_accuracy_model_cpu
PORT=8501
sudo docker run --rm --name ${CONTAINER_NAME} -p ${PORT}:8501 -v ${YOUR_LOCAL_MODEL_PATH}:/tmp/mounted_model/0001 -t ${CPU_DOCKER_GCR_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment