{
$addFields: {
isFreePoint: {
$cond: [{
"$ifNull": [
"$mgmt_type_id",
false
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
# Convert video .mkv em audio .mp3 16khz | |
# ffmpeg -i video.mkv -acodec libmp3lame -ac 1 -ar 16000 output.mp3 | |
# | |
# Quebra o audio .mp3 em pedacos de 30 segundos cada | |
# ffmpeg -i output.mp3 -f segment -segment_time 30 -c copy samples/sample%05d.mp3 | |
from huggingsound import SpeechRecognitionModel, KenshoLMDecoder | |
import torch | |
import os |
- Limpar os logs de um container
echo "" > $(docker inspect --format='{{.LogPath}}' <container_name_or_id>)
- Install virtualenvwrapper
$pip install virtualenvwrapper
- Create a new virtualenv
$mkvirtualenv -p python3 py3env
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
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-3.3.1.min.js"></script> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<!-- Require the peer dependencies of facemesh. --> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-core.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf-converter.min.js"></script> |
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 glob | |
import os | |
from shutil import copyfile | |
RATIO_TEST = 0.25 | |
RATIO_VAL = 0.10 | |
lista = { | |
'frente': [], | |
'recibo': [] |
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
---------------------------------------------------------------------------------------------- | |
# Listar todos todos arquivos de uma pasta | |
import glob | |
files = glob.glob('images/*') | |
---------------------------------------------------------------------------------------------- | |
# Listar todos arquivos de subpastas | |
import glob | |
files = glob.glob('images/**/*', recursive=True) |
NewerOlder