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

where the parameter ‘n_iter’ affects in the minimize() function #49

Open
nudtfuruigang opened this issue Oct 25, 2016 · 0 comments
Open

Comments

@nudtfuruigang
Copy link

Excuse me, but I wonder where the parameter ‘n_iter’ affects in the minimize() function.

if self.use_pbar and not verbose:
    self._create_pbar(n_iter)
    self.pbar.start()
    res = minimize(style_optfn, img0.flatten(), **minfn_args).nit
    self.pbar.finish()
else:
    res = minimize(style_optfn, img0.flatten(), **minfn_args).nit
return res

In these codes, n_iter is used to create pbar, and n_iter enters the ‘style_optfn’ function as an options parameter, but in the definition of

style_optfn(x, net, weights, layers, reprs, ratio)

there is no iteration option.
Does anyone have ideas? Thank you!

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