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

DeprecationWarning: This function is deprecated. Please call randint(0, 10000 + 1) instead C:\Users\ranji\Anaconda3\lib\site-packages\ipykernel_launcher.py:14: DeprecationWarning: `imsave` is deprecated! `imsave` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use ``imageio.imwrite`` instead. #1754

Closed
Ranjithavidyashankar opened this issue Mar 6, 2019 · 1 comment

Comments

@Ranjithavidyashankar
Copy link

commented Mar 6, 2019

batch_size = 16
sample_idx = np.random.random_integers(low=0, high=10000, size=batch_size)
r_samples = x_test_noise[sample_idx, :, :, :]
rec_samples = model.predict(x=r_samples)
fig = np.zeros(shape=(image_size2, image_sizebatch_size, 1))
r_samples = r_samples * 255
rec_samples = rec_samples * 255

for idx in range(batch_size):
fig[:image_size, idx*image_size: (idx+1)*image_size, :] = r_samples[idx, :, :]
fig[image_size:, idx * image_size: (idx + 1) * image_size, :] = rec_samples[idx, :, :]

fig = fig.reshape(image_size2, image_sizebatch_size)
scipy.misc.imsave('out.jpg', fig)

@skoudoro

This comment has been minimized.

Copy link
Member

commented Mar 6, 2019

Hi @Ranjithavidyashankar,

We do not use scipy.misc.imsave on DIPY.

Closing, feel free to reopen it with more details.

@skoudoro skoudoro closed this Mar 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.