anonymous commited on
Commit
2890716
·
1 Parent(s): 3692abf

upet eval script

Browse files
Files changed (2) hide show
  1. .gitignore +2 -1
  2. models/upet/scripts/eval_upet.sh +11 -3
.gitignore CHANGED
@@ -29,7 +29,8 @@ __pycache__/
29
  # Evaluation outputs
30
  eval_results/
31
  **/eval_results/
32
- checkpoints_matris/
 
33
 
34
  # macOS metadata
35
  .DS_Store
 
29
  # Evaluation outputs
30
  eval_results/
31
  **/eval_results/
32
+ **/checkpoints_matris/
33
+ models/mace/checkpoints_mace/
34
 
35
  # macOS metadata
36
  .DS_Store
models/upet/scripts/eval_upet.sh CHANGED
@@ -15,13 +15,15 @@ REPO_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
15
  XYZ_PATH="$REPO_ROOT/datasets/xyz/test.xyz"
16
  FORCES_KEY="forces"
17
 
18
- MODEL_TYPE="pet_mad_s"
19
  # Options:
20
  # upet_cons
21
  # upet_noncons
22
  # pet_mad_s
23
 
24
- PROGRESS=true # set to false for upet_noncons
 
 
25
 
26
  # =========================
27
  # Model-specific config
@@ -78,6 +80,11 @@ if [ ! -f "$PT_PATH" ]; then
78
  exit 1
79
  fi
80
 
 
 
 
 
 
81
  # =========================
82
  # Run
83
  # =========================
@@ -95,4 +102,5 @@ python3 "$EVAL_SCRIPT" \
95
  --xyz "$XYZ_PATH" \
96
  --pt-path "$PT_PATH" \
97
  --forces-key "$FORCES_KEY" \
98
- "${PROGRESS_ARGS[@]}"
 
 
15
  XYZ_PATH="$REPO_ROOT/datasets/xyz/test.xyz"
16
  FORCES_KEY="forces"
17
 
18
+ MODEL_TYPE="upet_noncons"
19
  # Options:
20
  # upet_cons
21
  # upet_noncons
22
  # pet_mad_s
23
 
24
+ PROGRESS=false # set to false for upet_noncons
25
+
26
+ WORK_DIR="$UPET_DIR/mtt_eval_noncon"
27
 
28
  # =========================
29
  # Model-specific config
 
80
  exit 1
81
  fi
82
 
83
+ WORK_DIR_ARGS=()
84
+ if [ "$MODEL_TYPE" = "upet_noncons" ]; then
85
+ WORK_DIR_ARGS=(--work-dir "$WORK_DIR")
86
+ fi
87
+
88
  # =========================
89
  # Run
90
  # =========================
 
102
  --xyz "$XYZ_PATH" \
103
  --pt-path "$PT_PATH" \
104
  --forces-key "$FORCES_KEY" \
105
+ "${PROGRESS_ARGS[@]}" \
106
+ "${WORK_DIR_ARGS[@]}"