This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _generate_leveldb(self, file_path, pairs, target, single_data): | |
""" | |
Caffe uses the LevelDB format to efficiently load its training and validation data; this method | |
writes paired out faces in an efficient way into this format. | |
""" | |
print "\tGenerating LevelDB file at %s..." % file_path | |
shutil.rmtree(file_path, ignore_errors=True) | |
db = leveldb.LevelDB(file_path) | |
batch = leveldb.WriteBatch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Last login: Mon Jul 27 21:42:44 on ttys000 | |
bradneuberg: ~ | |
bradneuberg: ~ | |
bradneuberg: ~ | |
bradneuberg: ~ cd /usr/local/protobuf-2.6.1/ | |
bradneuberg: protobuf-2.6.1 (master +) | |
bradneuberg: protobuf-2.6.1 (master +) | |
bradneuberg: protobuf-2.6.1 (master +) env | sort | |
ANACONDA=/Users/bradneuberg/anaconda | |
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.tntsyOMak1/Render |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bradneuberg: python (master +) nm /usr/local/lib/libprotobuf.9.dylib | |
00000000000a1088 s GCC_except_table0 | |
000000000009f944 s GCC_except_table0 | |
00000000000911fc s GCC_except_table0 | |
000000000009ff60 s GCC_except_table0 | |
000000000009ccf8 s GCC_except_table0 | |
0000000000095f20 s GCC_except_table0 | |
000000000009f2d8 s GCC_except_table0 | |
000000000008ee58 s GCC_except_table0 | |
000000000009b678 s GCC_except_table0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bradneuberg: python (master +) cat ../src/google/protobuf/text_format.h | |
// Protocol Buffers - Google's data interchange format | |
// Copyright 2008 Google Inc. All rights reserved. | |
// https://developers.google.com/protocol-buffers/ | |
// | |
// Redistribution and use in source and binary forms, with or without | |
// modification, are permitted provided that the following conditions are | |
// met: | |
// | |
// * Redistributions of source code must retain the above copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Classifying: 533 images | |
regions/0.jpg: class: cloud prob: 9.84595680237 | |
regions/1.jpg: class: cloud prob: 1.58692479134 | |
regions/2.jpg: class: cloud prob: 4.10534524918 | |
regions/3.jpg: class: cloud prob: 6.38739204407 | |
regions/4.jpg: class: cloud prob: 11.8700017929 | |
regions/5.jpg: class: cloud prob: 1.58692479134 | |
regions/6.jpg: class: cloud prob: 6.88746643066 | |
regions/7.jpg: class: cloud prob: 8.91076469421 | |
regions/8.jpg: class: cloud prob: 8.66692638397 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <boost/python.hpp> | |
using namespace std; | |
int helloworld() | |
{ | |
return 10; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test_boost | |
print(test_boost.helloworld()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.3) | |
# Don't try to create universal binaries on Mac OS X, as this causes compilation problems. | |
# On Darwin, the CMakeDetermineSystem.cmake module sets system processor values | |
# using 'uname -p'. On Intel Macs, at least, this always returns "i386" which | |
# is technically not what we want. We want 'uname -m' which returns the machine | |
# architecture. On 64-bit architectures this is the value we want for "host" builds. | |
if(APPLE) | |
exec_program(/usr/bin/uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR RETURN_VALUE val) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- System processor settings: host=x86_64, target=x86_64, cpu=x86_64 | |
-- The C compiler identification is AppleClang 7.0.0.7000072 | |
-- The CXX compiler identification is AppleClang 7.0.0.7000072 | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scanning dependencies of target segment | |
[ 50%] Building CXX object CMakeFiles/segment.dir/segment_py.cpp.o | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment_py.cpp:5: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/segment-image.h:25: | |
In file included from /Users/bradneuberg/dev/selective_search_py_port/segment/filter.h:28: | |
/Users/bradneuberg/dev/selective_search_py_port/segment/convolve.h:34:13: warning: | |
implicit conversion loses integer precision: 'size_type' | |
(aka 'unsigned long') to 'int' [-Wshorten-64-to-32] | |
int len = mask.size(); | |
~~~ ^~~~~~~~~~~ |
OlderNewer