From ca5c631a336ceb9b4cf1e8509541099492cc7296 Mon Sep 17 00:00:00 2001 From: Zhen Liu Date: Sun, 12 Mar 2023 02:06:34 +0800 Subject: [PATCH] first commit --- README.md | 2 +- nvdiffrec/eval.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d923bb0..23e9c01 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Later run ``` cd nvdiffrec -python eval.py --config $DMTET_CONFIG --out-dir $OUT_DIR --sample-path $SAMPLE_PATH --deform-scale $DEFORM_SCALE [--angle-index $ANGLE_INDEX] +python eval.py --config $DMTET_CONFIG --out-dir $OUT_DIR --sample-path $SAMPLE_PATH --deform-scale $DEFORM_SCALE [--angle-ind $ANGLE_INDEX] ``` where `$SAMPLE_PATH` is the generated sample `.npy` file in `$OUTPUT_PATH`, and `$DEFORM_SCALE` is the scale of deformation of tet vertices set for the DMTet dataset (we use 3.0 for resolution 64 as default; change the value for your own datasets). Change `$ANGLE_INDEX` to some number from 0 to 50 if images rendered from different angles are desired. diff --git a/nvdiffrec/eval.py b/nvdiffrec/eval.py index 1007b37..c9bbbed 100644 --- a/nvdiffrec/eval.py +++ b/nvdiffrec/eval.py @@ -321,7 +321,7 @@ if __name__ == "__main__": parser.add_argument('-vn', '--viz-name', type=str, default='viz') parser.add_argument('--unnormalized_sdf', action="store_true") parser.add_argument('--validate', type=bool, default=True) - parser.add_argument('--angle-index', type=int, default=25, help='z-axis rotation of the object, from 0 to 50') + parser.add_argument('--angle-ind', type=int, default=25, help='z-axis rotation of the object, from 0 to 50') FLAGS = parser.parse_args()