Skip to content

Instantly share code, notes, and snippets.

@SandorSeres
SandorSeres / keras_quant.py
Created May 16, 2019 10:00 — forked from rocking5566/keras_quant.py
Quantization aware training in keras
import numpy as np
import tensorflow as tf
from tensorflow.keras.datasets import mnist
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Activation, Conv2D, Flatten
from tensorflow.keras.optimizers import RMSprop
# download the mnist to the path '~/.keras/datasets/' if it is the first time to be called
# X shape (60,000 28x28), y shape (10,000, )
@SandorSeres
SandorSeres / pdf2Word.py
Created August 10, 2019 03:12 — forked from Manav1918/pdf2Word.py
This File is Source code of pdf to word / any text file format converter [GUI] app . This can extract text from pdf and read. then you can ave that text to any file format like word file,text file or python file.
from tkinter import *
from tkinter import filedialog
from tkinter.filedialog import askopenfilename,asksaveasfile
from PyPDF2 import PdfFileReader
#=================open file method======================
def openFile():
file = askopenfilename(defaultextension=".pdf",
filetypes=[("Pdf files","*.pdf")])
if file == "":