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 "log.h" | |
#include <windows.h> | |
#include <tchar.h> | |
#include <iostream> | |
void OutputDebugStringEx(const wchar_t * format, ...) | |
{ | |
wchar_t buf[512]; | |
va_list args; | |
va_start(args, format); |
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 "test.h" | |
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
#include "opencv2/stitching.hpp" | |
#include <opencv2/xfeatures2d.hpp> | |
#include "opencv2/xfeatures2d/cuda.hpp" | |
#include <opencv2/cudaimgproc.hpp> | |
#include "opencv2/features2d.hpp" | |
#include "opencv2/cudafeatures2d.hpp" |
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 <d3d11.h> | |
#include <d3dx11.h> | |
/* | |
*@brief 创建texture配置 | |
*@param textureDesc 保存Texture配置的对象 | |
*@param width 宽度 | |
*@param height 高度 | |
*/ | |
void createTextureDesc(D3D11_TEXTURE2D_DESC &textureDesc,int width, int height) { | |
ZeroMemory(&textureDesc, sizeof(textureDesc)); |
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
//DOCS:https://www.khronos.org/registry/OpenCL/sdk/1.2/docs/man/xhtml/ | |
#include <CL/cl.h> | |
#include <CL/cl_d3d11_ext.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <malloc.h> | |
#include <stdlib.h> | |
class PlatformInfo | |
{ |
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
struct A | |
{ | |
A() {} | |
int a=10; | |
static void regToLuaState(lua_State *L) { | |
luaL_openlibs(L); | |
getGlobalNamespace(L) | |
.beginNamespace("LuaCallFuncDll") | |
.beginClass <A>("A") | |
.addConstructor <void(*)(void)>() |
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 <npp.h> | |
using namespace std; | |
unsigned char _STD_Y_QT[64] = | |
{ | |
16, 11, 10, 16, 24, 40, 51, 61, | |
12, 12, 14, 19, 26, 58, 60, 55, | |
14, 13, 16, 24, 40, 57, 69, 56, |
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
#pragma once | |
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
#include <map> | |
#include <string> | |
#include <stdexcept> | |
#include <typeinfo> | |
#include <cstring> |
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
from keras.layers import Activation,Conv2D,MaxPooling2D,BatchNormalization,Input,DepthwiseConv2D,add,Dropout,AveragePooling2D,Concatenate | |
from keras.models import Model | |
import keras.backend as K | |
from keras.engine import Layer,InputSpec | |
from keras.utils import conv_utils | |
class BilinearUpsampling(Layer): | |
def __init__(self, upsampling=(2, 2), data_format=None, **kwargs): | |
super(BilinearUpsampling, self).__init__(**kwargs) |
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 -*- | |
# 嵌入可视化 | |
import numpy as np | |
import tensorflow as tf | |
from tensorboard.plugins import projector | |
from tensorflow.examples.tutorials.mnist import input_data | |
import os | |
PATH_TO_MNIST_DATA = "MNIST_data" | |
LOG_DIR = "projector/data" |
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 numpy as np | |
import tensorflow as tf | |
model=tf.keras.applications.xception.Xception(include_top=True, | |
weights='imagenet', | |
input_tensor=None, | |
input_shape=None, | |
pooling=None, | |
classes=1000) |
NewerOlder