Skip to content

TypeError when implementing #8

@yuxin212

Description

@yuxin212

Hello,

When I was implementing your toolbox, something wrong happened.

I ran python ./experiments_imagenet.py, and the Traceback showed:

Traceback(most recent call last):
File "./experiments_imagenet.py", line 79, in
X_test, X_test_im, X_filenames = utlD.get_imagenet_data(net=net)
File "/home/DeepVis-PredDiff/utilis_data.py", line 46, in get_imagenet_dat
o = int(0.5*np.array([np_img.shape[0]-img_dim[0], np_img.shape[1]-img_dim[1]]))
TypeError: only size-1 arrays can be converted to Python scalars

I wanna know how should I modify this.

Thank you.

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