mirror of
https://github.com/autistic-symposium/tensorflow-for-deep-learning-py.git
synced 2025-07-24 23:35:31 -04:00
Organize folders, add notebook readme
This commit is contained in:
parent
9b583d313c
commit
da1b22cf4a
21 changed files with 18 additions and 6 deletions
10
Deep_Art/deepdream/bat-country-test/bat_dream2.py
Normal file
10
Deep_Art/deepdream/bat-country-test/bat_dream2.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
""" Create dream 2 """
|
||||
|
||||
bc = BatCountry(args.base_model)
|
||||
features = bc.prepare_guide(Image.open(args.guide_image), end=args.layer)
|
||||
image = bc.dream(np.float32(Image.open(args.image)), end=args.layer,
|
||||
iter_n=20, objective_fn=BatCountry.guided_objective,
|
||||
objective_features=features,)
|
||||
bc.cleanup()
|
Loading…
Add table
Add a link
Reference in a new issue