Skip to content

Instantly share code, notes, and snippets.

View sydney0zq's full-sized avatar
🎯
Focusing

Forest sydney0zq

🎯
Focusing
View GitHub Profile
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 qiang.zhou <qiang.zhou@Macbook>
#
# Distributed under terms of the MIT license.
"""
Calcuate the expenses on my own records.
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 qiang.zhou qiang.zhou@Macbook
#
# Distributed under terms of the MIT license.
import numpy as np
import os
@sydney0zq
sydney0zq / tracker.py
Created March 14, 2018 02:42
Native Tracker
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 zhou <zhou@hobot.cc>
#
# Distributed under terms of the MIT license.
import torch
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2018 qiang.zhou <qiang.zhou@yz-gpu029.hogpu.cc>
# Created on 2018-03-05 17:21
import os.path as osp
import sys
import torch
@sydney0zq
sydney0zq / tracker_trainer_test.py
Created January 12, 2018 18:08
Tracker trainer test separately
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
using namespace std;
// Number of images in each batch.
const int kBatchSize = 50;
// Number of examples that we generate (by applying synthetic transformations)
@sydney0zq
sydney0zq / httpserver_qr.py
Last active December 13, 2017 14:36
simplehttpserver_with_qr_terminal
#!/usr/bin/env python3
import os
import html
import urllib
import sys
import http
import cgi
import socket
import socketserver
@sydney0zq
sydney0zq / label.py
Last active September 30, 2017 01:31
Auto label face -- MacOS
import os
if os.path.isfile("label.txt"):
f = open("label.txt", "a+")
else:
f = open("label.txt", "w")
if os.path.isdir("unsure"):
print (" | Create unsure directory please...")
@sydney0zq
sydney0zq / bilibili_download_them_all.py
Created May 18, 2017 23:54 — forked from Sg4Dylan/bilibili_download_them_all.py
通过You-get批量下载Bilibili合集视频
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Purpose: A simple script to download video from Bilibili
# Created: 08/07/2016
import sys
from subprocess import call
def check_and_go(args):
@sydney0zq
sydney0zq / 0_reuse_code.js
Created May 17, 2017 05:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console