Skip to content

Commit

Permalink
Remove git artifact collection due to bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and LukeBailey181 committed Apr 25, 2023
1 parent ba32af4 commit c21ec18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion sweep_configs/cifar_standard_dropout_sweep.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cifar_standard_dropout
name: cifar_standard_dropout_282_seed
description: Sweeping cifar p with standard dropout
project: k-dropout
program: train_net.py
Expand Down Expand Up @@ -28,6 +28,8 @@ parameters:
p:
values: [0, 0.2, 0.5, 0.8]
# dataset
seed:
value: 282
dataset_name:
value: cifar10
batch_size:
Expand Down
11 changes: 6 additions & 5 deletions train_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
if not args.local_only:
# log the git diff and untracked files as an artifact

snapshot_name, snapshot_path = write_git_snapshot()
#snapshot_name, snapshot_path = write_git_snapshot()

config = vars(args)
config["git_snapshot"] = snapshot_name
#config["git_snapshot"] = snapshot_name
# TODO: specify run name in a more precise way
# e.g. with args.run_name_prefix and args.run_name_items which could
# include the params (p, k, etc..) to put in the run name
Expand All @@ -52,9 +52,10 @@
run_name = args.run_name
run = wandb.init(project="k-dropout", config=config, name=run_name)

snapshot_artifact = wandb.Artifact(snapshot_name, type="git_snapshot")
snapshot_artifact.add_file(snapshot_path)
wandb.log_artifact(snapshot_artifact)
# TODO fix artifact logging
#snapshot_artifact = wandb.Artifact(snapshot_name, type="git_snapshot")
#snapshot_artifact.add_file(snapshot_path)
#wandb.log_artifact(snapshot_artifact)

# create model
dropout_layer, layer_kwargs = get_dropout_layer(
Expand Down

0 comments on commit c21ec18

Please sign in to comment.