Skip to content

Instantly share code, notes, and snippets.

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:
En Microsoft Store
Buscar e instalar Python3.8
Buscar e instalar Visual Studio Code
Buscar e instalar Ubuntu
Install Docker for Windows
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:
Pre-requisitos para usar gsutils
echo "deb [signed-by=/usr/share/keyrings/] cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl | sudo apt-key --keyring /usr/share/keyrings/ 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
#Copiar modelo a tu equipo local
gsutil cp ${YOUR_MODEL_PATH} ${YOUR_LOCAL_MODEL_PATH}/saved_model.pb
sudo docker pull ${CPU_DOCKER_GCR_PATH
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