Skip to content

Instantly share code, notes, and snippets.

View abhiguru's full-sized avatar

Abhinav Guru abhiguru

View GitHub Profile
name: "VGG_coco_SSD_300x300_train"
layer {
name: "data"
type: "AnnotatedData"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
name: "VGG_coco_SSD_300x300_deploy"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 300
dim: 300
}
layer {
name: "conv1_1"
name: "ResNet-50"
layer {
name: "resnet_50"
type: "MemoryData"
top: "data"
top: "label"
memory_data_param {
batch_size: 1
channels: 3
height: 224
int main(){
...
std::thread videoProcTH([&]{
EventBase evb;
ClassA *aclass = new ClassA(&evb);
evb.loopForever();
});
}
class classA{
@abhiguru
abhiguru / SSL Segfault
Created November 27, 2016 12:44
Proxygen SSL Segfault
*** Aborted at 1480250579 (unix time) try "date -d @1480250579" if you are using GNU date ***
PC: @ 0x7ff400cf7384 RSA_free
*** SIGSEGV (@0x40) received by PID 12007 (TID 0x7ff3f4ffd700) from PID 64; stack trace: ***
@ 0x7ff4012bc670 (unknown)
@ 0x7ff400cf7384 RSA_free
@ 0x7ff401083356 (unknown)
@ 0x7ff401081e92 SSL_free
@ 0x7ff401649a3f folly::AsyncSSLSocket::closeNow()
@ 0x555884d7a5e3 proxygen::HTTPSession::shutdownTransport()
@ 0x555884d84c2a proxygen::HTTPSession::detach()
@abhiguru
abhiguru / logs.txt
Created October 23, 2016 16:06
VXG failure of playback RTSP stream
10-23 16:05:23.130 12773-12773/? I/art: Late-enabling -Xcheck:jni
10-23 16:05:23.160 12773-12779/? I/art: Debugger is no longer active
10-23 16:05:23.171 12773-12773/? I/InstantRun: Instant Run Runtime started. Android package is veg.mediaplayer.sdk.test.view2x2, real application class is null.
10-23 16:05:23.280 12773-12773/? V/LibLoader: Load library CPU1: 8 Build.CPU_ABI:armeabi-v7a Build.CPU_ABI:false
10-23 16:05:23.285 12773-12773/? I/SDL: Android_JNI_SetupThread
10-23 16:05:23.298 12773-12773/? W//libmain.c: JNI_OnLoad!!!
10-23 16:05:23.298 12773-12773/? W//libmain.c: _register veg/mediaplayer/sdk/MediaPlayer
10-23 16:05:23.298 12773-12773/? W//libmain.c: _register veg/mediaplayer/sdk/Thumbnailer
10-23 16:05:23.299 12773-12773/? V/LibLoader: 2. Load library for armeabi-v7a
10-23 16:05:23.301 12773-12773/? V/MediaPlayer: VXG Media Player version:5.1.20161007
@abhiguru
abhiguru / sample.js
Created April 13, 2016 18:40
sample.js
/**
* Created by aguru on 06/01/16.
*/
/**
* @desc Class for /browse/* and /browse/others/* pages
* The browse page data can be filtered by Genre for the category selected example :
*
* a) List of genre for the current page "/data/browse/[movies]/genre" - Assuming you are browsing "Movies"
* b) First data request is "/data/browse/[movies]/[all]" - All returns all movies for that section "Movies"
* c) Subsequent request can be made too "/data/browse/movies/action" and so on based on genre selected from the first
@abhiguru
abhiguru / ArrayPrinterUncompiled.js
Last active April 13, 2016 18:23
Citrus Byte Array printer uncompiled
// Readable and Maintainable code here: https://gist.github.com/abhiguru/d142e8ba95160a5a0f95903acdf64884
// Code for production deployment here: https://gist.github.com/abhiguru/ac11d45e00844250f42bcd44dac306a7
var citbyt = {};
citbyt["printArray"] = function(arr){
for(var i = 0; i < arr.length; i++){
if(arr[i].constructor == Array){
citbyt["printArray"](arr[i]);
}else{
@abhiguru
abhiguru / PrintArrayCompiled.js
Created April 13, 2016 18:18
Array Printer for Citrusbyte
var c={printArray:function(b){for(var a=0;a<b.length;a++)b[a].constructor==Array?c.printArray(b[a]):console.log(b[a])}};window.citbyt=c;
03-31 18:55:15.194 9621-9621/com.nuance.speechkitsample D/dalvikvm: Late-enabling CheckJNI
03-31 18:55:15.204 9621-9627/com.nuance.speechkitsample D/dalvikvm: Debugger has detached; object registry had 1 entries
03-31 18:55:15.314 9621-9621/com.nuance.speechkitsample D/mali_winsys: new_window_surface returns 0x3000
03-31 18:55:15.334 9621-9621/com.nuance.speechkitsample D/OpenGLRenderer: Enabling debug mode 0
03-31 18:55:18.874 9621-9621/com.nuance.speechkitsample D/dalvikvm: GC_FOR_ALLOC freed 94K, 4% free 3351K/3472K, paused 14ms, total 14ms
03-31 18:55:18.904 9621-9621/com.nuance.speechkitsample D/NMT: CloudServicesImpl: CloudServicesBase() mainThreadHandler:null
03-31 18:55:18.914 9621-9698/com.nuance.speechkitsample D/NMT: AttachableHandler: Attached handler to current thread, sending 1 queued messages
03-31 18:55:18.914 9621-9699/com.nuance.speechkitsample D/NMT: AttachableHandler: Attached handler to current thread, sending 1 queued messages
03-31 18:55:18.914 9621-9697/com.nuance.speechkitsample D/NMT