Fix quick-inference command: --model_path must be absolute (verified by rendering)
Browse files
README.md
CHANGED
|
@@ -65,16 +65,21 @@ hf download initialneil/DREAMS-AVATAR --repo-type dataset \
|
|
| 65 |
--include "data/P1C2/*" --local-dir DREAMS-AVATAR
|
| 66 |
|
| 67 |
python degas_eval.py \
|
| 68 |
-
--dat_dir DREAMS-AVATAR/data/P1C2 \
|
| 69 |
--ip none \
|
| 70 |
-
--model_path weights/avatars/P1_smplx \
|
| 71 |
--configs configs/degas_config.yaml,configs/degas_vae_driver.yaml,configs/dreams/p1_train_base.yaml,configs/dreams/p1_face_B.yaml \
|
| 72 |
-
dataset.cache_dir=cache/P1C2_eval_cam3 \
|
| 73 |
dataset.test.cam_select=[3] \
|
| 74 |
"dataset.test.frm_list=np.arange(0, 293, 8).tolist()"
|
| 75 |
```
|
| 76 |
|
| 77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
1. **The run's saved `config.yaml` is applied last**, so an avatar is always evaluated
|
| 80 |
under its own face setting. Only CLI overrides outrank it, which is why the test split
|
|
|
|
| 65 |
--include "data/P1C2/*" --local-dir DREAMS-AVATAR
|
| 66 |
|
| 67 |
python degas_eval.py \
|
| 68 |
+
--dat_dir "$PWD/DREAMS-AVATAR/data/P1C2" \
|
| 69 |
--ip none \
|
| 70 |
+
--model_path "$PWD/weights/avatars/P1_smplx" \
|
| 71 |
--configs configs/degas_config.yaml,configs/degas_vae_driver.yaml,configs/dreams/p1_train_base.yaml,configs/dreams/p1_face_B.yaml \
|
| 72 |
+
dataset.cache_dir="$PWD/cache/P1C2_eval_cam3" \
|
| 73 |
dataset.test.cam_select=[3] \
|
| 74 |
"dataset.test.frm_list=np.arange(0, 293, 8).tolist()"
|
| 75 |
```
|
| 76 |
|
| 77 |
+
**`--model_path` must be absolute.** A relative one is resolved *inside* `--dat_dir`
|
| 78 |
+
(`os.path.join(dat_dir, model_path)`), because that is where a training run writes by
|
| 79 |
+
default, so `weights/avatars/P1_smplx` fails with a `FileNotFoundError` on a path you never
|
| 80 |
+
typed. Hence `$PWD`.
|
| 81 |
+
|
| 82 |
+
Three more things fail quietly rather than loudly, so they are worth stating plainly:
|
| 83 |
|
| 84 |
1. **The run's saved `config.yaml` is applied last**, so an avatar is always evaluated
|
| 85 |
under its own face setting. Only CLI overrides outrank it, which is why the test split
|