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> | |
int main() { | |
std::cout << "HelloWorld!" << std::endl; | |
return 0; | |
} |
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 <vector> | |
#include <fstream> | |
#include <iterator> | |
#include <string> | |
#include <set> | |
#include <cstdlib> | |
#include <ctime> | |
#include <sstream> // std::istringstream | |
#include <map> |
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
name: "ResNet-50" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
input: "rois" | |
input_dim: 1 # to be changed on-the-fly to num ROIs |
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
name: "fit_net" | |
layer { | |
name: "data" | |
type: "WindowPartitionData" | |
top: "data" | |
top: "param" | |
top: "label" | |
top: "mask" | |
param_data_param { | |
source: "/home/[email protected]/exp/lane_fit/data/train_list.txt" |
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
# has 3 lstm layer | |
name: "ocr" | |
layer { | |
name: "data" | |
type: "OCRData" | |
top: "data" | |
top: "label" | |
image_data_param { | |
is_color: false |
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 <vector> | |
#include "gtest/gtest.h" | |
#include "caffe/common.hpp" | |
#include "caffe/blob.hpp" | |
#include "caffe/layers/reorg_layer.hpp" | |
#include "caffe/test/test_caffe_main.hpp" | |
namespace caffe { | |
template <typename TypeParam> | |
class ReorgLayerTest : public MultiDeviceTest<TypeParam> { | |
typedef typename TypeParam::Dtype Dtype; |
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 os | |
import torch | |
import torch.nn as nn | |
from torch.autograd import Variable | |
import torchvision.datasets as dset | |
import torchvision.transforms as transforms | |
import torch.nn.functional as F | |
import torch.optim as optim | |
## load mnist dataset | |
use_cuda = torch.cuda.is_available() |
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
# convert yolo cfg file to caffe prototxt file | |
import sys | |
import argparse | |
TYPES = ["Conv", "ReLU", "Pool", "Route", "Reorg", "Region"] | |
ACTIVATION_TYPES = ['leaky', 'linear'] | |
layer_names = []; | |
def HasConflictNameError(conflicted_name): | |
print 'Error! The layer name \"{}\" has been in the list.'.format(conflicted_name) |
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
# -*- coding: UTF-8 -*- | |
# File: logger.py | |
# Author: Yuxin Wu <[email protected]> | |
from __future__ import print_function | |
import logging | |
import os | |
import errno | |
import shutil | |
import os.path | |
from datetime import datetime |
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
# Enter your network definition here. | |
# Use Shift+Enter to update the visualization. | |
layer { | |
name: "CustomData1" | |
type: "CustomData" | |
top: "blob0" | |
top: "blob1" | |
top: "blob2" | |
top: "blob3" | |
include { |
OlderNewer