-
Notifications
You must be signed in to change notification settings - Fork 295
Description
Hi,
Can you please provide some sample code for deploying on Google cloud? I can't seem to make it work.
Thank you!
===============================
Log:
INFO 2019-01-14 22:37:36 -0500 master-replica-0 Running task with arguments: --cluster={"master": ["127.0.0.1:2222"]} --task={"type": "master", "index": 0} --job={ "scale_tier": "BASIC_GPU", "package_uris": ["gs://cyclegan/cyclegan_2019011422235/480d21ee7d352f60e443e2fbad629f32b1aaee5de205d8fd1fc762e0aed776fa/CycleGAN-tensorflow-0.0.0.tar.gz"], "python_module": "main.py", "args": ["--dataset_dir\u003dgs://cyclegan/Resized2/", "--epoch\u003d10", "--batch_size\u003d", "4", "--phase\u003dtrain", "--checkpoint_dir\u003dgs://cyclegan/logs3/", "--test_dir\u003dgs://karmacyclegan/logs3/"], "region": "asia-east1", "runtime_version": "1.2", "run_on_raw_vm": true}
INFO 2019-01-14 22:37:43 -0500 master-replica-0 Running module main.py.
INFO 2019-01-14 22:37:43 -0500 master-replica-0 Downloading the package: gs://cyclegan/cyclegan_2019011422235/480d21ee7d352f60e443e2fbad629f32b1aaee5de205d8fd1fc762e0aed776fa/CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:43 -0500 master-replica-0 Running command: gsutil -q cp gs://cyclegan/cyclegan_2019011422235/480d21ee7d352f60e443e2fbad629f32b1aaee5de205d8fd1fc762e0aed776fa/CycleGAN-tensorflow-0.0.0.tar.gz CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:45 -0500 master-replica-0 Installing the package: gs://cyclegan/cyclegan_2019011422235/480d21ee7d352f60e443e2fbad629f32b1aaee5de205d8fd1fc762e0aed776fa/CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:45 -0500 master-replica-0 Running command: pip install --user --upgrade --force-reinstall --no-deps CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:46 -0500 master-replica-0 Processing ./CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:46 -0500 master-replica-0 Building wheels for collected packages: CycleGAN-tensorflow
INFO 2019-01-14 22:37:46 -0500 master-replica-0 Running setup.py bdist_wheel for CycleGAN-tensorflow: started
INFO 2019-01-14 22:37:47 -0500 master-replica-0 creating '/tmp/pip-wheel-wfXg5U/CycleGAN_tensorflow-0.0.0-cp27-none-any.whl' and adding '.' to it
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/ops.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/init.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/model.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/module.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/utils.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN-tensorflow/main.py'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/DESCRIPTION.rst'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/metadata.json'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/top_level.txt'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/WHEEL'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/METADATA'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/RECORD'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Running setup.py bdist_wheel for CycleGAN-tensorflow: finished with status 'done'
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Stored in directory: /root/.cache/pip/wheels/8e/c5/0e/065505a9bea2174b701147091945c0aa410ea831750a81b3aa
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Successfully built CycleGAN-tensorflow
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Installing collected packages: CycleGAN-tensorflow
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Successfully installed CycleGAN-tensorflow-0.0.0
INFO 2019-01-14 22:37:47 -0500 master-replica-0 Running command: pip install --user CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Processing ./CycleGAN-tensorflow-0.0.0.tar.gz
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Building wheels for collected packages: CycleGAN-tensorflow
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Running setup.py bdist_wheel for CycleGAN-tensorflow: started
INFO 2019-01-14 22:37:48 -0500 master-replica-0 creating '/tmp/pip-wheel-4XE7L2/CycleGAN_tensorflow-0.0.0-cp27-none-any.whl' and adding '.' to it
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/ops.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/init.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/model.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/module.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/utils.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN-tensorflow/main.py'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/DESCRIPTION.rst'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/metadata.json'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/top_level.txt'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/WHEEL'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/METADATA'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 adding 'CycleGAN_tensorflow-0.0.0.dist-info/RECORD'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Running setup.py bdist_wheel for CycleGAN-tensorflow: finished with status 'done'
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Stored in directory: /root/.cache/pip/wheels/8e/c5/0e/065505a9bea2174b701147091945c0aa410ea831750a81b3aa
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Successfully built CycleGAN-tensorflow
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Installing collected packages: CycleGAN-tensorflow
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Found existing installation: CycleGAN-tensorflow 0.0.0
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Uninstalling CycleGAN-tensorflow-0.0.0:
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Successfully uninstalled CycleGAN-tensorflow-0.0.0
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Successfully installed CycleGAN-tensorflow-0.0.0
INFO 2019-01-14 22:37:48 -0500 master-replica-0 Running command: python -m main.py --dataset_dir=gs://cyclegan/Resized2/ --epoch=10 --batch_size= 4 --phase=train --checkpoint_dir=gs://cyclegan/logs3/ --test_dir=gs://cyclegan/logs3/
ERROR 2019-01-14 22:37:49 -0500 master-replica-0 /usr/bin/python: No module named main
ERROR 2019-01-14 22:37:49 -0500 master-replica-0 Command '['python', '-m', u'main.py', u'--dataset_dir=gs://cyclegan/Resized2/', u'--epoch=10', u'--batch_size=', u'4', u'--phase=train', u'--checkpoint_dir=gs://cyclegan/logs3/', u'--test_dir=gs://cyclegan/logs3/']' returned non-zero exit status 1
INFO 2019-01-14 22:37:49 -0500 master-replica-0 Module completed; cleaning up.
INFO 2019-01-14 22:37:49 -0500 master-replica-0 Clean up finished.
ERROR 2019-01-14 22:37:59 -0500 service The replica master 0 exited with a non-zero status of 1.