Skip to content

Commit

Permalink
include more packages in env and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hippogriff committed Mar 20, 2018
1 parent f0cf9b5 commit 54b366c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ dependencies:
- scikit-image
- six
- pillow
- configobj
- argparse=1.4
- json
6 changes: 2 additions & 4 deletions test_synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@

generator = MixedGenerateData(data_labels_paths=data_labels_paths,
batch_size=config.batch_size,
train_size=config.train_size,
test_size=config.test_size,
canvas_shape=config.canvas_shape)

imitate_net = ImitateJoint(hd_sz=config.hidden_size,
Expand Down Expand Up @@ -119,7 +117,7 @@

programs_tar[jit] += targ_prog
programs_pred[jit] += pred_prog
distance = chamfer(target_images, pred_images) * 64 * 0.5 / 2
distance = chamfer(target_images, pred_images)
total_CD += np.sum(distance)

over_all_CD[jit] = total_CD / total_size
Expand All @@ -137,5 +135,5 @@
with open("trained_models/results/{}/{}".format(model_name, "tar_prog.org"), 'w') as outfile:
json.dump(programs_tar, outfile)

with open("trained_models/results/{}/{}".format(model_name, "all_metrices.org"), 'w') as outfile:
with open("trained_models/results/{}/{}".format(model_name, "top1_metrices.org"), 'w') as outfile:
json.dump(metrics, outfile)

0 comments on commit 54b366c

Please sign in to comment.