Skip to content

Instantly share code, notes, and snippets.

View xeron56's full-sized avatar
🎯
Available for Work

MD. SHAHIDUL ISLAM xeron56

🎯
Available for Work
View GitHub Profile
$connectstr_dbhost = '';
$connectstr_dbname = '';
$connectstr_dbusername = '';
$connectstr_dbpassword = '';
@xeron56
xeron56 / default
Created April 13, 2019 06:43 — forked from kylejohnson/default
Ubuntu 16.04.1 ZoneMinder Source Install
server {
listen 80 default_server;
server_name _;
root /var/www/zm;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
@xeron56
xeron56 / Google Colab SSH
Created July 17, 2019 01:56 — forked from yashkumaratri/Google Colab SSH
SSH into google colab
#CODE
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
! unzip -qq -n ngrok-stable-linux-amd64.zip
#Setup sshd
@xeron56
xeron56 / tts_example.ipynb
Created October 8, 2019 11:22 — forked from erogol/tts_example.ipynb
TTS_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import xml.etree.ElementTree as ET
import os
import json
coco = dict()
coco['images'] = []
coco['type'] = 'instances'
coco['annotations'] = []
coco['categories'] = []
@xeron56
xeron56 / calculate_mean_ap.py
Created February 2, 2020 06:16 — forked from tarlen5/calculate_mean_ap.py
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@xeron56
xeron56 / calculate_mean_ap.py
Created February 2, 2020 06:16 — forked from tarlen5/calculate_mean_ap.py
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@xeron56
xeron56 / FaceGrab.py
Created February 18, 2020 09:39 — forked from facepainter/FaceGrab.py
Batch extract known face from video/image sequence (CNN GPU with CUDA / HoG)
'''
Extract a known face from a video.
Uses a combination of a deep learning CNN model to batch detect faces
in video frames, or a sequence of images, in GPU with CUDA and HoG to compare
the detected faces with a computed reference set of face encodings.
'''
from os import path, listdir
from typing import NamedTuple
@xeron56
xeron56 / FaceGrab.py
Created February 18, 2020 09:39 — forked from facepainter/FaceGrab.py
Batch extract known face from video/image sequence (CNN GPU with CUDA / HoG)
'''
Extract a known face from a video.
Uses a combination of a deep learning CNN model to batch detect faces
in video frames, or a sequence of images, in GPU with CUDA and HoG to compare
the detected faces with a computed reference set of face encodings.
'''
from os import path, listdir
from typing import NamedTuple
@xeron56
xeron56 / condaenv.txt
Created February 22, 2020 04:29 — forked from pratos/condaenv.txt
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder