Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: zoom_multi() got an unexpected keyword argument 'is_random' #57

Closed
BTapan opened this issue Apr 5, 2020 · 0 comments
Closed

Comments

@BTapan
Copy link

BTapan commented Apr 5, 2020

[TL] [!] checkpoint exists ...
[TL] [!] samples/all exists ...
Lossy conversion from float64 to uint8. Range [-0.19753389060497284, 2.826017379760742]. Convert image to uint8 prior to saving to suppress this warning.

TypeError Traceback (most recent call last)
in
239 tl.files.save_npz(net.all_params, name=save_dir+'/u_net_{}.npz'.format(task), sess=sess)
240
--> 241 main(task='all')
242
243 ##if name == "main":

in main(task)
103 for i in range(10):
104 x_flair, x_t1, x_t1ce, x_t2, label = distort_imgs([X[:,:,0,np.newaxis], X[:,:,1,np.newaxis],
--> 105 X[:,:,2,np.newaxis], X[:,:,3,np.newaxis], y])#[:,:,np.newaxis]])
106 # print(x_flair.shape, x_t1.shape, x_t1ce.shape, x_t2.shape, label.shape) # (240, 240, 1) (240, 240, 1) (240, 240, 1) (240, 240, 1) (240, 240, 1)
107 X_dis = np.concatenate((x_flair, x_t1, x_t1ce, x_t2), axis=2)

in distort_imgs(data)
23 x1, x2, x3, x4, y = tl.prepro.zoom_multi([x1, x2, x3, x4, y],
24 zoom_range=[0.9, 1.1], is_random=True,
---> 25 fill_mode='constant')
26 return x1, x2, x3, x4, y
27

TypeError: zoom_multi() got an unexpected keyword argument 'is_random'

@BTapan BTapan closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant