Skip to content

attack.py cannot reshape array of size 12544 into shape (1,3,112,112) #16

@ziwenlu

Description

@ziwenlu

l try to use attack.py to prepare face attack. l followed you steps and when trying to use anchor_face .it shows me that File "attack.py", line 24, in prep
return np.transpose(im, [2, 0, 1]).reshape((1, 3, 112, 112)) * 2 - 1#.reshape( [1,3,120, 120])*2-1
ValueError: cannot reshape array of size 12544 into shape (1,3,112,112). Is there something l need to set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions