Skip to content

Commit

Permalink
Added experiment runner shs, also fixed variable name error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 1, 2019
1 parent af71f43 commit 0b5c2a4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions a.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

for i in {0..15}
do
CUDA_VISIBLE_DEVICES=0 dlib_reproduce --study=augmented_variance_vae_study_v1 --model_num=${i} > output/${i}.cout 2> output/${i}.cerr
done

6 changes: 6 additions & 0 deletions b.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

for i in {16..31}
do
CUDA_VISIBLE_DEVICES=1 dlib_reproduce --study=augmented_variance_vae_study_v1 --model_num=${i} > output/${i}.cout 2> output/${i}.cerr
done

6 changes: 6 additions & 0 deletions c.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

for i in {32..48}
do
CUDA_VISIBLE_DEVICES=2 dlib_reproduce --study=augmented_variance_vae_study_v1 --model_num=${i} > output/${i}.cout 2> output/${i}.cerr
done

6 changes: 6 additions & 0 deletions d.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

for i in {49..63}
do
CUDA_VISIBLE_DEVICES=3 dlib_reproduce --study=augmented_variance_vae_study_v1 --model_num=${i} > output/${i}.cout 2> output/${i}.cerr
done

2 changes: 1 addition & 1 deletion disentanglement_lib/methods/unsupervised/balanced_vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def model_fn(self, features, labels, mode, params):
loss=loss,
eval_metrics=(make_metric_fn("reconstruction_loss", "elbo",
"regularizer", "kl_loss" ,"size_loss", "variance_loss", "regularizer_loss"),
[reconstruction_loss, -elbo, regularizer, kl_loss, size_loss, variance_loss, regularizer_loss]))
[reconstruction_loss, -elbo, regularizer, kl_loss, size_loss, variance_loss, regularizer]))
else:
raise NotImplementedError("Eval mode not supported.")

Expand Down

0 comments on commit 0b5c2a4

Please sign in to comment.