This file contains 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 PIL import Image | |
import numpy as np | |
image = Image.open('sample.jpg') | |
#resize | |
image = image.resize((50,50)) | |
#show resized | |
image.show() |
This file contains 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
name: pytorchenv | |
channels: | |
- defaults | |
- pytorch | |
dependencies: | |
- numpy=1.16.2 | |
- pandas=0.24.2 | |
- matplotlib=3.0.3 | |
- pillow=5.4.1 | |
- pip=19.0 |
This file contains 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 pandas as pd | |
import pathlib | |
import sys | |
import uuid | |
import shutil | |
df = pd.read_csv('data/train.csv') | |
f = open("data/labels.csv","a") | |
This file contains 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
# This Python 3 environment comes with many helpful analytics libraries installed | |
# It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python | |
# For example, here's several helpful packages to load in | |
import numpy as np # linear algebra | |
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) | |
import os | |
from scipy.misc import imread, imsave | |
import cv2 |
This file contains 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
HEADER: | |
POST /upload HTTP/1.1 | |
Host: apigility | |
Cache-Control: no-cache | |
Postman-Token: 760cfb32-5d86-bb77-0a6a-e85383f95e9d | |
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW | |
------WebKitFormBoundary7MA4YWxkTrZu0gW | |
Content-Disposition: form-data; name="upload"; filename="" |