Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch unbound localerror #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions rlkit/launchers/launcher_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run_experiment_here(
variant=None,
exp_id=0,
seed=None,
use_gpu=True,
use_gpu=False,
# Logger params:
exp_prefix="default",
snapshot_mode='last',
Expand Down Expand Up @@ -438,10 +438,10 @@ def run_experiment(
skip_wait=False,
# ec2 settings
sync_interval=180,
region='us-east-1',
region='us-east-2',
instance_type=None,
spot_price=None,
verbose=False,
verbose=True,
num_exps_per_instance=1,
# sss settings
time_in_mins=None,
Expand Down Expand Up @@ -565,7 +565,7 @@ def foo(variant):
))
except git.exc.InvalidGitRepositoryError:
pass
except ImportError:
except (ImportError, UnboundLocalError):
git_infos = None
run_experiment_kwargs = dict(
exp_prefix=exp_prefix,
Expand All @@ -590,10 +590,10 @@ def foo(variant):
"""

if mode == 'ec2' or mode == 'gcp':
if not ec2_okayed and not query_yes_no(
"{} costs money. Are you sure you want to run?".format(mode)
):
sys.exit(1)
# if not ec2_okayed and not query_yes_no(
# "{} costs money. Are you sure you want to run?".format(mode)
# ):
# sys.exit(1)
if not gpu_ec2_okayed and use_gpu:
if not query_yes_no(
"{} is more expensive with GPUs. Confirm?".format(mode)
Expand Down Expand Up @@ -717,6 +717,7 @@ def foo(variant):
gpu=use_gpu,
aws_s3_path=aws_s3_path,
num_exps=num_exps_per_instance,

**mode_kwargs
)
elif mode == 'gcp':
Expand Down
Empty file added rlkit/scripts/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.