Skip to content

Instantly share code, notes, and snippets.

View Coderx7's full-sized avatar
💭
In God we Trust!

Seyyed Hossein Hasanpour Coderx7

💭
In God we Trust!
View GitHub Profile
@Coderx7
Coderx7 / confusionMatrix_Precison_Recall_F1Score_BatchMode.py
Last active September 22, 2017 20:32
its like the previous script for calculating ConfusionMatrix,Precision,Recall and stuff like before but with more preprocessing,(cropping,mean subtraction, etc)
#in the name of God the most compassionate the most merciful
# added mean subtraction so that, the accuracy can be reported accurately just like caffe when doing a mean subtraction
# Seyyed Hossein Hasan Pour
# [email protected]
# 7/3/2016
# Added Recall/Precision/F1-Score as well
# 01/03/2017
# added classification using caffe.classifier, which lets you do oversampling (allows for multiple preprocessing options and crops) + the manual center crop
# method. its sloppy at the moment. for some reason, caffe.classifier's predict method, provides less accuracy compared to the caffes test accuracy
# the manuall center crop (i.e. the one which uses Caffe.Net, works just well and achieves the same accuracy as Caffe's)
@Coderx7
Coderx7 / pycaffe training script.py
Last active March 28, 2018 04:15 — forked from dineshj1/pycaffe training script
Training on Pycaffe
import argparse
import time
start_time=time.time();
################## Argument Parsing #####################################
parser=argparse.ArgumentParser();
parser.add_argument('-s','--solver', default='', type=str); # if empty, solver is created, else read
parser.add_argument('-res', '--resume_from', default='', type=str); #if not empty, resumes training from given file
parser.add_argument('-ft', '--finetune_from', default='', type=str);
@Coderx7
Coderx7 / tsne visualization.py
Created March 28, 2018 04:17 — forked from dineshj1/tsne visualization
t-SNE visualization code
# Dinesh Jayaraman
# Based on code by
# Authors: Fabian Pedregosa <[email protected]>
# Olivier Grisel <[email protected]>
# Mathieu Blondel <[email protected]>
# Gael Varoquaux
# License: BSD 3 clause (C) INRIA 2011
print(__doc__)
@Coderx7
Coderx7 / live_plot_notebook.py
Last active March 28, 2018 19:07 — forked from wassname/live_plot_notebook.py
Live plot using %matplotlib notebook in jupyter notebook
#برای نمایش بلادرنگ نمودار ترینینگ و تست ما
import numpy as np
from matplotlib import pyplot as plt
class LivePlotNotebook(object):
"""
Live plot using %matplotlib notebook in jupyter notebook
original url : https://gist.github.com/wassname/04e77eb821447705b399e8e7a6d082ce
"""
@Coderx7
Coderx7 / Install NVIDIA Driver and CUDA.md
Created April 11, 2018 19:56 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@Coderx7
Coderx7 / Install NVIDIA Driver and CUDA.md
Created April 11, 2018 19:56 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 8.0 on Ubuntu 16.04.3 LTS
@Coderx7
Coderx7 / imagenet_train.py
Created June 25, 2018 06:35
imagenet train pytorch script
# https://github.com/pytorch/vision/blob/master/torchvision/models/__init__.py
import argparse
import os
import shutil
import time
import os, sys, pdb, shutil, time, random, datetime
import torch
import torch.nn as nn
import torch.nn.parallel
@Coderx7
Coderx7 / imagenet_train_pytorch0.4.py
Last active June 30, 2018 15:11
imagenet training script for pytorch 0.4
# https://github.com/pytorch/vision/blob/master/torchvision/models/__init__.py
import argparse
import os
import shutil
import time
import os, sys, pdb, shutil, time, random, datetime
import torch
import torch.nn as nn
import torch.nn.parallel
@Coderx7
Coderx7 / pytorch_simplenetv1_imagenet_224_3p_log.txt
Created July 2, 2018 20:13
SimpleNetV1_3p_ImageNet_224_training log (100 epochs, simple SGD) : (67.17 / 87.44)
=> creating model 'simplenetv1_imagenet_3p'
=> Model : simplenetv1_imagenet_3p(
(features): Sequential(
(0): Conv2d(3, 64, kernel_size=[3, 3], stride=(2, 2), padding=(1, 1))
(1): BatchNorm2d(64, eps=1e-05, momentum=0.05, affine=True)
(2): ReLU(inplace)
(3): Conv2d(64, 128, kernel_size=[3, 3], stride=(2, 2), padding=(1, 1))
(4): BatchNorm2d(128, eps=1e-05, momentum=0.05, affine=True)
(5): ReLU(inplace)
(6): Conv2d(128, 128, kernel_size=[3, 3], stride=(1, 1), padding=(1, 1))
@Coderx7
Coderx7 / -1559596165831.log
Created June 3, 2019 21:12
vscode console log
workbench.main.js:3272 [Extension Host] debugger listening on port 16367
workbench.main.js:3270 Extension Host
workbench.main.js:3270 Debugger listening on ws://127.0.0.1:16367/d86fbd32-94fb-45fe-a384-4880d4073811
For help, see: https://nodejs.org/en/docs/inspector
workbench.main.js:238 [Extension Host] [vscode-icons] v8.7.0 activated!
workbench.main.js:238 [Extension Host] (node:8044) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-04 01:29:01: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined
workbench.main.js:238 [Extension Host] Info Python Extension: 2019-06-04 01:29:01: Notify locators are locating, Class name = p, completed in 2ms, , Return Value: undefined