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 os | |
from PIL import Image | |
root_folder = "folder_path" | |
def convert_ppm_to_jpg(folder_path): | |
for root, dirs, files in os.walk(folder_path): | |
for filename in files: | |
if filename.endswith(".ppm"): |
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 os | |
from PIL import Image | |
root_folder = "folder_path" | |
def convert_image_to_ppm(folder_path): | |
for root, dirs, files in os.walk(folder_path): | |
for filename in files: | |
if filename.endswith((".png", ".jpg")): |
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
#include <stdio.h> | |
#include <time.h> | |
typedef struct { | |
double Kp; | |
double Ki; | |
double Kd; | |
double sample_time; | |
double current_time; | |
double last_time; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 json | |
import os | |
from PIL import Image, ImageDraw | |
############################################## | |
# - image_label: | |
# - 1.json | |
# - 1.jpg | |
# - 2.json | |
# - 2.jpg |
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 keras | |
from keras.datasets import mnist | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation, Flatten, Input | |
from keras.layers import Conv2D, MaxPooling2D, UpSampling2D | |
import matplotlib.pyplot as plt | |
from keras import backend as K | |
import numpy as np | |
from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img |