Skip to content

Instantly share code, notes, and snippets.

Avatar

SgDylan Sg4Dylan

View GitHub Profile
@Sg4Dylan
Sg4Dylan / build_win64.yml
Created Jan 28, 2022
GitHub action workflow for building OBS plugin obs-libfdk on win64 platform
View build_win64.yml
name: 'CI Build'
on:
push:
paths-ignore:
- '**.md'
branches:
- master
- 'release/**'
tags:
@Sg4Dylan
Sg4Dylan / silk-v3-decoder-compile-on-raspberry-pi.md
Last active Aug 15, 2021
silk-v3-decoder 树莓派编译手记
View silk-v3-decoder-compile-on-raspberry-pi.md

不要汇编优化

修改 Makefile

CC     = $(TOOLCHAIN_PREFIX)gcc$(TOOLCHAIN_SUFFIX) -DNO_ASM
CXX    = $(TOOLCHAIN_PREFIX)g++$(TOOLCHAIN_SUFFIX) -DNO_ASM

要汇编优化

特别适用于 ArchLinux ARM 选手,其他发行版需稍作修改

@Sg4Dylan
Sg4Dylan / zansei.py
Last active Jun 18, 2021
「残声」概念验证
View zansei.py
#!/usr/bin/env python
#coding:utf-8
# Author: Sg4Dylan --<sg4dylan#gmail.com>
# Created: 06/18/2021
import numpy as np
from scipy import signal
from scipy.io.wavfile import write
import librosa
import resampy
@Sg4Dylan
Sg4Dylan / README.md
Last active Jan 27, 2022
Sync Voicemeeter's gain control to Windows volume control
View README.md

Install

pip install psutil pycaw future toml
git clone https://github.com/Freemanium/voicemeeter-remote-python
cd voicemeeter-remote-python
pip install .

Modify line 16 of voicemeeter/remote.py

View continual_learning_metric_calc.py
import csv
'''
suit for lifelong-robotic-vision/OpenLORIS-Object 's csv format result
every line of csv contains accuracy of every task on test set after training a single task
'''
raw_result = []
with open('openloris.csv', newline='') as csvfile:
spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
@Sg4Dylan
Sg4Dylan / GoHFS-Exporter.user.js
Created Oct 18, 2020
配合 codeskyblue/gohttpserver 使用,aria2 直接下载目录并保持结构
View GoHFS-Exporter.user.js
// ==UserScript==
// @name GoHFS-Exporter
// @namespace http://tampermonkey.net/
// @version 2020.10.18(0.1)
// @description Export link from Go HFS to aria2
// @author SgDylan
// @match https://example.com/*
// ==/UserScript==
let downloadFileUrl = [];
@Sg4Dylan
Sg4Dylan / font_deobfs.ipynb
Created Sep 28, 2020
对抗字体反爬的深度学习实践
View font_deobfs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sg4Dylan
Sg4Dylan / dain_ncnn_vulkan_instance.ipynb
Last active Sep 8, 2020
dain-ncnn-vulkan@colaboratory
View dain_ncnn_vulkan_instance.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Sg4Dylan
Sg4Dylan / qb-ban-vampire.py
Last active Aug 19, 2020
qBittorrent block vampire peers. qBittorrent 屏蔽吸血客户端.
View qb-ban-vampire.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: Sg4Dylan -- <sg4dylan#gmail.com>
# Licence: GPLv3
import requests
import re
import json
import time
@Sg4Dylan
Sg4Dylan / ascii2d_batch_match.py
Created Jul 19, 2020
使用 Ascii2D 批量匹配可能存在于 Pixiv 的 Twitter 图片
View ascii2d_batch_match.py
import os
import re
import json
import urllib
import requests
import wget
from tqdm import tqdm
from bs4 import BeautifulSoup
# 执行推理用
import numpy as np