# old code to read data directly from binfiles N=10 # rad this many images Nstart=0 # start labels here imdats=[] for i in range(N): imb = read_bin('./image_inputs_bin/hk0_%s.bin'%str(i+Nstart).zfill(6), npixels=64, offset=1280) imdats.append(imb) imdats=np.vstack(imdats) imdats=imdats.reshape((10,64,64)) print(np.shape(imdats))
# Load the saved weights into the model # model.load_weights('cfs4_small_model_X2.h5')