Skip to content

Instantly share code, notes, and snippets.

@Alakhator
Created April 6, 2020 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alakhator/193896e62f0b84f795eeb134dedfab7a to your computer and use it in GitHub Desktop.
Save Alakhator/193896e62f0b84f795eeb134dedfab7a to your computer and use it in GitHub Desktop.
import os
import pathlib
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