Skip to content

Commit

Permalink
Updated example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseab committed Apr 5, 2024
1 parent 229c009 commit 1147d2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 7 additions & 4 deletions examples/local/config_diffusion.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# general
loss: cross_entropy
max_epoch: 5
max_epoch: 50
log_every_n_steps: 1
exp_name: exp_example
# set to null to avoid setting a seed (can speed up GPU computation, but
# results will not be reproducible)
seed: 1234

# data
data:
batch_size: 32
batch_size: 1024
num_workers: 0
max_atom: 512

Expand All @@ -31,4 +31,7 @@ optimizer:
early_stopping:
metric: val_loss
mode: min
patience: 3
patience: 3

logging:
- tensorboard
2 changes: 0 additions & 2 deletions examples/local/run_diffusion.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash

LOG=debug.log
CONFIG=config_diffusion.yaml
DATA_DIR=../../data/si_diffusion_v1
PROCESSED_DATA=${DATA_DIR}/processed
DATA_WORK_DIR=./tmp_work_dir/
OUTPUT=debug

python ../../crystal_diffusion/train_diffusion.py \
--log $LOG \
--config $CONFIG \
--data $DATA_DIR \
--processed_datadir $PROCESSED_DATA \
Expand Down

0 comments on commit 1147d2e

Please sign in to comment.