python

model api

# load all models

import os
curr_dir = os.path.abspath('.')
os.chdir('/home/jupyter/model-api/')

try:
    import networks as main
    model = main.Networks()
finally:
    os.chdir(curr_dir)
Was this helpful?