This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dedublicating frames from video | |
good explanation | |
https://kodintent.wordpress.com/2020/04/19/ffmpeg-mpdecimate-parameters/ | |
ffmpeg mpdecimate filter | |
This will generate a console readout showing which frames the filter thinks are duplicates. | |
ffmpeg -i input.mp4 -vf mpdecimate -loglevel debug -f null - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import time | |
import csv | |
from ffmpeg import output | |
from ffmpy import FFmpeg | |
from ffmpeg_quality_metrics import FfmpegQualityMetrics as metric | |
#crfs = [str(i) for i in range(27,40,5)]+ | |
crfs = [str(i) for i in range(25,41,5)] | |
#presets = [str(i) for i in range(13,6,-1)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# https://github.com/Nyr/wireguard-install | |
# | |
# Copyright (c) 2020 Nyr. Released under the MIT License. | |
# Example: 192:168:30:0 or 172.16.5.0 or 10.85.0.0 | |
local_ip4_adress=10.7.0.0 | |
# Example: 0000:0000:0000 or AFAF:AFAF:AFAF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Порядковый номер | Отметка времени | Ваш ник на пикабу без @ | |
---|---|---|---|
1 | 19.07.2023 9:48:10 | simplysoo | |
2 | 19.07.2023 9:48:22 | Danu.naher | |
3 | 19.07.2023 9:49:06 | RTFAN | |
4 | 19.07.2023 9:49:08 | Net.Ware | |
5 | 19.07.2023 9:49:12 | protas84 | |
6 | 19.07.2023 9:49:12 | Noctilucous | |
7 | 19.07.2023 9:49:14 | Zvereff86 | |
8 | 19.07.2023 9:49:15 | 020709 | |
9 | 19.07.2023 9:49:17 | Tiadar4ik |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OBS | |
subme=0 me=dia ref=5 deblock=-6,-6 psy=0 nr=100 bframes=2 b_bias=100 scenecut=0 qpstep=10 keyint=300 | |
for twitch keyint=120 | |
preset PLACEBO | |
profile HIGH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
model = torch.load("model.ckpt") | |
for x in model['state_dict'].keys(): | |
model['state_dict'][x] = model['state_dict'][x].to(torch.float16) | |
torch.save(model,"model_f16.ckpt") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import pool | |
import zipfile as zf | |
import json | |
import os.path | |
import base64 | |
def remove_binary(text, zipname = None, fb2name=None, image_zip=None): | |
ts = text.split(b'<binary') | |
image_cnt = 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import sys | |
import num2words.base | |
import transliterate | |
def process_text(filename,tokens): | |
f = open(filename,'r', encoding="utf-8") | |
txt :str = f.read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import random | |
import gym | |
import numpy as np | |
from itertools import count | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1665-1650 Kh/s | |
"here is no filter here" | |
// 1635 Kh/s | |
if (T == 1) // high mining | |
{ | |
bool good = true; | |
for (int bcheck = 0; bcheck < conf.high / 8; bcheck++) { | |
if (sha512_hash[bcheck] != 0xFF) | |
{ |
NewerOlder