Skip to content

Commit

Permalink
fix log.
Browse files Browse the repository at this point in the history
  • Loading branch information
donnyyou committed Apr 13, 2019
1 parent 10e4fa7 commit 0a0f587
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.pyc
*.pth
*.so
*.bmp
*.o
/log
/checkpoints
Expand Down
4 changes: 2 additions & 2 deletions scripts/gan/face/run_it_cyclegan_nir2vis_gan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi


if [[ "$1"x == "train"x ]]; then
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase train --gpu 0 \
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase train --gpu 1 \
--model_name ${MODEL_NAME} --log_to_file n --tag ${TAG} \
--data_dir ${DATA_DIR} --max_epoch ${MAX_EPOCH} \
--checkpoints_name ${CHECKPOINTS_NAME} 2>&1 | tee ${LOG_FILE}
Expand All @@ -39,7 +39,7 @@ elif [[ "$1"x == "resume"x ]]; then
--checkpoints_name ${CHECKPOINTS_NAME} 2>&1 | tee -a ${LOG_FILE}

elif [[ "$1"x == "test"x ]]; then
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase test --gpu 0 --tag ${TAG} \
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase test --gpu 0 --tag ${TAG} --log_to_file n \
--model_name ${MODEL_NAME} --checkpoints_name ${CHECKPOINTS_NAME} \
--resume ./checkpoints/gan/face/${CHECKPOINTS_NAME}_latest.pth \
--test_dir ${DATA_DIR}/protocols --root_dir ${DATA_DIR} --out_dir test 2>&1 | tee -a ${LOG_FILE}
Expand Down
2 changes: 1 addition & 1 deletion scripts/gan/face/run_it_pix2pix_sketch2vis_gan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ elif [[ "$1"x == "resume"x ]]; then
--checkpoints_name ${CHECKPOINTS_NAME} 2>&1 | tee -a ${LOG_FILE}

elif [[ "$1"x == "test"x ]]; then
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase test --gpu 0 \
${PYTHON} -u main.py --hypes ${HYPES_FILE} --phase test --gpu 0 --log_to_file n \
--model_name ${MODEL_NAME} --checkpoints_name ${CHECKPOINTS_NAME} \
--resume ./checkpoints/gan/face/${CHECKPOINTS_NAME}_latest.pth \
--test_dir ${DATA_DIR}/val --out_dir test 2>&1 | tee -a ${LOG_FILE}
Expand Down

0 comments on commit 0a0f587

Please sign in to comment.