Read 썸네일형 리스트형 [tensorflow] About using trained NN in C++ ** tensorflow에서 학습한 network를 C++에서 사용 ** In the previous post (visit 2017/07/18 - [Deep Learning] - [tensorflow] how to load and use CNN in C++), I described how to load the CNN trained by using tensorflow and how to use the CNN in C++. In the example, I assumed that the CNN output is of size (1x1). The following example shows how to access the output of CNN whose size is greater than (1x1). Enj.. 더보기 [tensorflow] how to store/save/read float type numpy array as tfrecord ** float 타입 변수 tfrecord로 저장하기 ** Tensorflow.org recommends saving your training data in the format of tfrecord. Many examples can be found on websites. (See my previous post 2017/07/18 - [Deep Learning] - [tensorflow] How to make tfrecord file for training.) Unfortunately, however, most of the examples are dealing with saving images/labels of data type uint8, int64. In this post, I am going to d.. 더보기 [NYU depth] How to read NYU depth dataset in python NYU depth v2 dataset can be downloaded from http://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.html They provide images and corresponding depth-map (aligned and in-painted) for training and testing. The data is stored in the format of mat. The following code shows how to read the images and corresponding depth-map in python. Enjoy. // CODES ////////////////////////////////////// import skimage.i.. 더보기 How to write values in csv files * 파이썬에서 csv 파일 쓰기 *** Assume you want to write numbers from 1 to 8 along the first column of a csv file; // CODE /////////////////////////// import csv fp = open('/home/test.csv','w') // csvWriter = csv.writer(fp, lineterminator = '\n') for i in range(1,9): csvWriter.writerow([i]) fp.close() 더보기 이전 1 다음