keras TF updates, template

main
Jeff Moe 2022-05-25 13:51:24 -06:00
parent ab29344eaa
commit 455e4e47b1
1 changed files with 3 additions and 8 deletions

View File

@ -20,9 +20,6 @@
# wz-load
# Load a sample from a SciAps LIBS
#
# Sample files can be found here:
# https://ordar.otelo.univ-lorraine.fr/record?id=10.24396/ORDAR-65
#
# Usage:
# witzit-load.py
# Example:
@ -44,10 +41,8 @@ from tensorflow.python.keras.layers import Convolution2D, MaxPooling2D, ZeroPadd
from tensorflow.python.keras.layers import Input, concatenate
from tensorflow.python.keras.models import load_model
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.preprocessing import image
from tensorflow.python.keras.preprocessing.image import img_to_array
from tensorflow.python.keras.preprocessing.image import ImageDataGenerator
from tensorflow.python.keras.preprocessing.image import load_img
from keras.preprocessing import image
from keras.preprocessing.image import ImageDataGenerator
# from tensorflow.python.keras.utils import plot_model
from tensorflow.python.keras.callbacks import ModelCheckpoint
@ -57,7 +52,7 @@ print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices("
print("Num CPUs Available: ", len(tf.config.experimental.list_physical_devices("CPU")))
print(tf.config.experimental.list_physical_devices())
file_url = "samples/BAJ4B-S4b/BAJ4B-S4b_20200504_095456_AM_Spectrum_PixelData.csv"
file_url = "template/sciaps-x555.csv"
# Read with panda for now...
dataframe = pd.read_csv(file_url)