Skip to content

Generation of several images from a single one #4

Description

@jecampagne

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.

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