qhgz2013 / anime-face-detector

A Faster-RCNN based anime face detector implementation using tensorflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tensorflow.python.framework.errors_impl.NotFoundError: model; No such file or directory

BERYLSHEEP opened this issue · comments

commented

Hello! When i run the command below, it can not work. Can someone help me?

python /home/beryl/Documents/anime-face-detector-master/main.py -i /home/beryl/Documents/Anime-Face-Dataset-master/animeface-character-dataset/thumb/000_hatsune_miku/ -o /home/beryl/Documents/character_dataset/000_hatsune_miku.json -nms-type PY_NMS

/home/beryl/Documents/Anime-Face-Dataset-master/animeface-character-dataset/thumb/000_hatsune_miku/
2019-11-28 20:33:46.663551: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-11-28 20:33:47.276064: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-11-28 20:33:47.276415: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: GeForce RTX 2070 major: 7 minor: 5 memoryClockRate(GHz): 1.71
pciBusID: 0000:01:00.0
totalMemory: 7.79GiB freeMemory: 7.69GiB
2019-11-28 20:33:47.276443: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2019-11-28 20:33:47.537843: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-11-28 20:33:47.537891: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0
2019-11-28 20:33:47.537897: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0: N
2019-11-28 20:33:47.538050: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 7402 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2070, pci bus id: 0000:01:00.0, compute capability: 7.5)
Traceback (most recent call last):
File "/home/beryl/Documents/anime-face-detector-master/main.py", line 172, in
main()
File "/home/beryl/Documents/anime-face-detector-master/main.py", line 124, in main
saver.restore(sess, args.model)
File "/home/beryl/anaconda3/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1715, in restore
if not checkpoint_exists(compat.as_text(save_path)):
File "/home/beryl/anaconda3/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 2056, in checkpoint_exists
if file_io.get_matching_files(pathname):
File "/home/beryl/anaconda3/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 342, in get_matching_files
for single_filename in filename
File "/home/beryl/anaconda3/envs/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: model; No such file or directory