text_plain_output_1.png image_output_1.png
import numpy as np

img_label = np.load('/content/drive/MyDrive/HMD_project/new/embedding_train_img_norm.npy')
txt_input = np.load('/content/drive/MyDrive/HMD_project/new/lsa_bow_train_text.npy')
img = img_label[:, 0:-1]
label = img_label[:, -1]
txt = txt_input
img_txt = np.concatenate((img, txt), axis=1)
x = img_txt
y = label
y.shape

img_label_val = np.load('/content/drive/MyDrive/HMD_project/new/embedding_val_img_norm.npy')
txt_input_val = np.load('/content/drive/MyDrive/HMD_project/new/lsa_bow_val_text.npy')
img_val = img_label_val[:, 0:-1]
label_val = img_label_val[:, -1]
txt_val = txt_input_val
img_txt_val = np.concatenate((img_val, txt_val), axis=1)
x_val = img_txt_val
y_val = label_val
x_val.shape