[Python] ValueError: could not broadcast input array from shape (224,224,3) into shape...

Discussão em 'Python' iniciado por Stack, Julho 11, 2025.

  1. Stack

    Stack Membro Participativo

    I have a list say, temp_list with following properties :

    len(temp_list) = 9260
    temp_list[0].shape = (224,224,3)


    Now, when I am converting into numpy array,

    x = np.array(temp_list)


    I am getting the error :

    ValueError: could not broadcast input array from shape (224,224,3) into shape (224,224)


    Can someone help me here?

    Continue reading...

Compartilhe esta Página