Thank you so much Ekaterina for your help i could have continued a lot my work with these information and i have coded this:

img_width, img_height = 80, 60

n_positives_img, n_negatives_img = 17874, 26308 

ds_negatives = ["negative_depth.txt"]

ds_positives = ["positive_depth.txt"]

arrayceros = np.zeros(n_negatives_img)

arrayunos = np.ones(n_positives_img)

arraynegativos= ds_negatives.reshape(( n_negatives_img, img_width, img_height))

arraypositivos= ds_positives.reshape((n_positives_img, img_width, img_height))

ds_negatives_target = tf.data.Dataset.from_tensor_slices((arraynegativos, arrayceros))

ds_positives_target = tf.data.Dataset.from_tensor_slices((arraypositivos, arrayunos))

dataset = pd.concat(ds_negatives_target, ds_positives_target)

datasetfinal = np.random.shuffle(dataset)


Im uploading right now the files to google collab to try this, do u think this is good or i have to change something, love your work.
Thanks in advance