Skip to content

Instantly share code, notes, and snippets.

Avatar

Edgar Andrés Margffoy Tuay andfoy

View GitHub Profile
View test_image.py
import os
import unittest
import sys
import torch
import torchvision
from PIL import Image
from torchvision.io.image import read_png, decode_png, read_jpeg, decode_jpeg
import numpy as np
View convert_syntax.py
#!/usr/bin/env python3
import os
import plistlib
import sys
try:
import yaml
except ImportError:
pass
View tokenize_utils.py
# -*- coding: utf-8 -*-
"""Basic tokenization and counting of nouns and verbs in a set of phrases."""
# Standard lib imports
from typing import Tuple, Dict, Union, List
# SpaCy imports
import spacy
View test.py
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
#
"""Tests for the plugin."""
# Test library imports
View setup.py
# Third party imports
import numpy as np
from Cython.Build import cythonize
from setuptools import Extension, find_packages, setup
ext_modules = [
Extension(
'util.nms',
sources=['util/external/nms.pyx'],
include_dirs=[np.get_include()],
View evalBSDSResults.m
imgDir = 'BSR/BSDS500/data/images/test';
gtDir = 'BSR/BSDS500/data/groundTruth/test';
inDir = '<Folder that contains the .mat files>';
outDir = 'eval/test/<name_of_yout_method>';
mkdir(outDir);
nthresh = 99;
tic;
allBench_fast(imgDir, gtDir, inDir, outDir, nthresh);
toc;
View nginx.conf
# Enumerate all the Tornado servers here
upstream frontends {
server 127.0.0.1:8000;
}
server {
listen 80;
server_name webhook.margffoy-tuay.com;
# Allow file uploads
client_max_body_size 50M;
View case4.properties
tamBuffer=4
numClientes=12
12
12
12
12
12
12
12
12
View case3.properties
tamBuffer=4
numClientes=2
10
10
numServidores=7
View case2.properties
tamBuffer=4
numClientes=6
7
7
7
7
7
7
numServidores=4
You can’t perform that action at this time.