dev
-
(build error) tensorflow import errordev/tensorflow 2018. 3. 24. 00:29
Traceback (most recent call last): File "", line 1, in File "tensorflow/__init__.py", line 24, in from tensorflow.python import * # pylint: disable=redefined-builtin File "tensorflow/python/__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "tensorflow/python/pywrap_tensorflow.py", line 25, in from tensorflow.python.platform import self_check 해결방법:tensorflow 빌드한 폴더 말고..
-
-
가변 argument 사용법dev/python 2018. 2. 2. 19:15
REFERENCEhttps://www.pythoncentral.io/fun-with-python-function-parameters/ MY EXAMPLEdef get_image_dir(db_name, *args, **kwargs): func = eval('_%s_get_image_dir'%db_name.lower()) return func(*args, **kwargs) def _kitti_get_image_dir(data_root, split): split_dir = 'testing' if 'test' in split else 'training' image_dir = '%s/data_object_image_2/%s/image_2'%(data_root, split_dir) return image_dir >..
-
cuda에서 gpu 할당dev 2018. 2. 2. 17:04
특정 gpu에만 gpu 할당하는 방법 Bash에서 실행 시 반영하려면 CUDA_VISIBLE_DEVICES=1 [command]CUDA_VISIBLE_DEVICES=1,2,3 [command] CUDA_VISIBLE_DEVICES 파이썬에서 코딩하기 출처https://stackoverflow.com/questions/37893755/tensorflow-set-cuda-visible-devices-within-jupyter/37901914import osos.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"os.environ["CUDA_VISIBLE_DEVICES"] = "0"