Problem in calculating the Identity metric
VIROBO-15 opened this issue · 0 comments
Hi....
I tried to get to calculate the identity metric but there are some dependency issue in the code. Can you Please help me out in this.
Eval.sh
eval "$(conda shell.bash hook)"
conda activate gmpi
export MKL_NUM_THREADS=5 && export NUMEXPR_NUM_THREADS=5 &&
python ${REPO_DIR}/gmpi/eval/prepare_fake_data.py
--ckpt_path ${CKPT_DIR}/generator.pth
--seed ${SEED}
--save_dir ${CONSIST_DIR}
--nplanes ${N_PLANES}
--n_imgs ${N_CONSIST}
--task consistency
--exp_config ${CKPT_DIR}/config.pth
--truncation_psi ${TRUNCATION_PSI}
--dataset ${DATASET}
--stylegan2_sanity_check ${SANITY_CHECK}
eval "$(conda shell.bash hook)"
conda activate deepface
python ${REPO_DIR}/gmpi/eval/compute_consistency.py
--input_dir ${CONSIST_DIR}/consistency
--n_imgs ${N_CONSIST}
--nproc 2
COMMAND TO RUN:
bash {GMPI_ROOT}/gmpi/eval/eval.sh ${GMPI_ROOT} FFHQ256 20220727_102024290372 {Deep3DFaceRecon_PATH} nodebug
ERROR :
Traceback (most recent call last):
File "/proj/cvl/users/x_fahkh/mn/ml-gmpi/gmpi/eval/compute_consistency.py", line 12, in
import tensorflow as tf
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/init.py", line 51, in
from ._api.v2 import compat
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/init.py", line 37, in
from . import v1
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/init.py", line 30, in
from . import compat
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/compat/init.py", line 37, in
from . import v1
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/compat/v1/init.py", line 47, in
from tensorflow._api.v2.compat.v1 import lite
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/lite/init.py", line 9, in
from . import experimental
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/lite/experimental/init.py", line 8, in
from . import authoring
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/_api/v2/compat/v1/lite/experimental/authoring/init.py", line 8, in
from tensorflow.lite.python.authoring.authoring import compatible
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/lite/python/authoring/authoring.py", line 43, in
from tensorflow.lite.python import convert
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/lite/python/convert.py", line 29, in
from tensorflow.lite.python import util
File "/home/x_fahkh/.conda/envs/deepfaces/lib/python3.7/site-packages/tensorflow/lite/python/util.py", line 26, in
import flatbuffers
ModuleNotFoundError: No module named 'flatbuffers'