scattering_transform icon indicating copy to clipboard operation
scattering_transform copied to clipboard

Generation of several images from a single one

Open jecampagne opened this issue 2 years ago • 0 comments

Hi! I am using your nice library to generate as in your tuto notebook some images from a single one. Here is one shoot image

Now, I have a question as when trying to get 10 synthetics images I have first used

scattering.synthesis('s_cov', image_target, seed=1, ensemble=True, N_ensemble=10)

but get this kinds of pixel values distributions image which is clearly bad.

Then I have used this handy method

image_syn=np.zeros((10,image_target.shape[1],image_target.shape[2]))
for i in range(10):
  image_syn[i] = scattering.synthesis('s_cov', image_target, seed=i)[0]

which gives nicer result as image But I get this sequential way is not optimal considering that I guess you can use batch computations in the GPU.

So I am wandering what is the correct way? Thanks.

jecampagne avatar Apr 25 '23 14:04 jecampagne