Skip to content
Snippets Groups Projects
Commit 3cf400f7 authored by ivan.rigo's avatar ivan.rigo
Browse files

Started OCR taking training

parent aafb3f38
Branches
No related tags found
No related merge requests found
Showing
with 25 additions and 0 deletions
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
#It hide INFO/Warning and Error, as the usually one will be tensorflow reminding me of not having a cuba driver or the fact it has been installed correctly
#both doesnt stop the program completing
image_size = (20, 20)
batch_size = 10
train_ds, val_ds = tf.keras.utils.image_dataset_from_directory(
"ImageTest",
labels="inferred",
image_size=image_size,
batch_size=batch_size,
validation_split=0.1,
subset="both",
seed=1219
)
#https://keras.io/examples/vision/image_classification_from_scratch/
#https://keras.io/examples/
#https://www.sitepoint.com/keras-digit-recognition-tutorial/
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment