Created
January 9, 2021 17:12
-
-
Save KostaMalsev/ca2f8d9ff1e2bc94cc467ca115d4ad31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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