|
|
|
@ -5,8 +5,11 @@ baseLoc = os.path.dirname(os.path.realpath(__file__)) + '/'
|
|
|
|
|
from gimpfu import *
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
sys.path.extend([baseLoc + 'gimpenv/lib/python2.7', baseLoc + 'gimpenv/lib/python2.7/site-packages',
|
|
|
|
|
baseLoc + 'gimpenv/lib/python2.7/site-packages/setuptools', baseLoc + 'MiDaS'])
|
|
|
|
|
activate_this = os.path.join(baseLoc, 'gimpenv', 'bin', 'activate_this.py')
|
|
|
|
|
with open(activate_this) as f:
|
|
|
|
|
code = compile(f.read(), activate_this, 'exec')
|
|
|
|
|
exec(code, dict(__file__=activate_this))
|
|
|
|
|
sys.path.extend([baseLoc + 'MiDaS'])
|
|
|
|
|
|
|
|
|
|
from run import run_depth
|
|
|
|
|
from monodepth_net import MonoDepthNet
|
|
|
|
@ -74,4 +77,4 @@ register(
|
|
|
|
|
[],
|
|
|
|
|
MonoDepth, menu="<Image>/Layer/GIML-ML")
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
|
main()
|
|
|
|
|