yule-li / CosFace

Tensorflow implementation for paper CosFace: Large Margin Cosine Loss for Deep Face Recognition
285 stars 99 forks source link

请问这个如何处理 #14

Open deardream000 opened 5 years ago

deardream000 commented 5 years ago

python test.py 2019-05-08 08:59:41.657635: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 2019-05-08 08:59:41.751877: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:898] 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-05-08 08:59:41.752518: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1356] Found device 0 with properties: name: GeForce 930M major: 5 minor: 0 memoryClockRate(GHz): 0.941 pciBusID: 0000:04:00.0 totalMemory: 1.96GiB freeMemory: 1.76GiB 2019-05-08 08:59:41.752549: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 0 2019-05-08 08:59:42.368344: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix: 2019-05-08 08:59:42.368376: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929] 0 2019-05-08 08:59:42.368400: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0: N 2019-05-08 08:59:42.368564: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1518 MB memory) -> physical GPU (device: 0, name: GeForce 930M, pci bus id: 0000:04:00.0, compute capability: 5.0) Skipped 6000 image pairs image size 224 Traceback (most recent call last): File "test.py", line 158, in main(parse_arguments(sys.argv[1:])) File "test.py", line 49, in main with slim.arg_scope(resnet_v2.resnet_arg_scope(False)): File "/home/wlc/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py", line 257, in resnet_arg_scope weights_regularizer=regularizers.l2_regularizer(weight_decay), File "/home/wlc/anaconda2/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/regularizers.py", line 92, in l2_regularizer raise ValueError('scale cannot be an integer: %s' % (scale,)) ValueError: scale cannot be an integer: False