My task is cephalometric landmark localization. I have images path with coordinates show in this data frame.
filename | X1 | Y1 |
---|---|---|
/Images_data/binary0006.png | 89 | 80 |
/Images_data/binary0008.png | 37 | 70 |
/Images_data/binary0007.png | 50 | 76 |
/Images_data/binary0003.png | 55 | 92 |
/Images_data/binary0005.png | 91 | 64 |
/Images_data/binary0004.png | 100 | 76 |
How to prepare dataset for training in model.fit ? I try to create images dataset for training with ImageDataGenerator.
train_ds = tf.keras.preprocessing.image_dataset_from_directory(
data_dir,
label_mode=None,
validation_split=0.2,
subset="training",
seed=123,
image_size=(img_height, img_width),
batch_size=batch_size)
但现在我 st,因为我不知道如何与图像相匹配。