Skip to content

Instantly share code, notes, and snippets.

@KostaMalsev
Created January 9, 2021 17:12
Show Gist options
  • Save KostaMalsev/ca2f8d9ff1e2bc94cc467ca115d4ad31 to your computer and use it in GitHub Desktop.
Save KostaMalsev/ca2f8d9ff1e2bc94cc467ca115d4ad31 to your computer and use it in GitHub Desktop.
import os
import pathlib
# Clone the tensorflow models repository if it doesn't already exist
if "models" in pathlib.Path.cwd().parts:
while "models" in pathlib.Path.cwd().parts:
os.chdir('..')
elif not pathlib.Path('models').exists():
!git clone --depth 1 https://github.com/tensorflow/models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment