Skip to content

Instantly share code, notes, and snippets.

View raghughanapuram's full-sized avatar

Raghu Ghanapuram raghughanapuram

View GitHub Profile
@raghughanapuram
raghughanapuram / Faster-RCNN_TF-Issues.txt
Last active April 22, 2018 14:04
Undefined symbol in roi_pooling.so
python ./tools/demo.py --model ./lib/pretrained/VGGnet_fast_rcnn_iter_70000.ckpt
Std error:
tensorflow.python.framework.errors.NotFoundError: /home/dyc/workspace/TFFRCNN/lib/roi_pooling_layer/roi_pooling.so: undefined symbol: _ZN10tensorflow7strings6StrCatB5cxx11ERKNS0_8AlphaNumE
--------------------------------------------------------------------------------
Modify Faster-RCNN_TF/lib/make.sh as below:
@raghughanapuram
raghughanapuram / slitfilepath.py
Last active November 14, 2017 09:55
Python extract filename and extension from filepath
#Python extract filename and extension from filepath
import os
inputFilepath = "path/to/file/foobar.txt"
filename_w_ext = os.path.basename(inputFilepath)
filename, file_extension = os.path.splitext(filename_w_ext)
#filename = foobar
#file_extension = .txt
path, filename = os.path.split("path/to/file/foobar.txt")
# path = path/to/file
@raghughanapuram
raghughanapuram / gcc_4.7_for_Fedora_22.sh
Created April 27, 2017 06:34 — forked from joka90/gcc_4.7_for_Fedora_22.sh
How to build and install gcc 4.7 for Fedora 22 alongside gcc 5.1
#!/bin/bash
#Install build dependencies
sudo dnf groupinstall "Development tools"
sudo dnf install mpfr-devel gmp-devel libmpc-devel zlib-devel glibc-devel.i686 glibc-devel
wget http://mirror2.babylon.network/gcc/releases/gcc-4.7.4/gcc-4.7.4.tar.bz2
tar xvfj gcc-4.7.4.tar.bz2
cd gcc-4.7.4