Skip to content

Instantly share code, notes, and snippets.

John Allen JohnAllen

Block or report user

Report or block JohnAllen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View malaria_detection.py
import numpy as np
import os
import shutil
from PIL import Image
from tensorboardX import SummaryWriter
INFECTED = 'infected'
UNINFECTED = 'uninfected'
train_dir = 'dataset/train_signs'
X_train = os.listdir(train_dir)
View actor-critic-multi-gpu.py
import argparse
import gym
import numpy as np
from itertools import count
from collections import namedtuple
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
View opencv-magic.py
faces = faceCascade.detectMultiScale(
gray,
scaleFactor=1.1,
minNeighbors=4,
minSize=(22, 22),
flags=cv2.CASCADE_SCALE_IMAGE
)
# Draw a rectangle around the faces
for (x, y, w, h) in faces:
You can’t perform that action at this time.