mirror of
https://github.com/autistic-symposium/tensorflow-for-deep-learning-py.git
synced 2025-07-23 06:50:54 -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
13
Deep_Art/deepdream/bat-country-test/bat_dream.py
Normal file
13
Deep_Art/deepdream/bat-country-test/bat_dream.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
""" Create dream """
|
||||
|
||||
IMAGE_TO_DREAM = "saturn.jpg"
|
||||
IMAGE_TO_DREAM_OUTPUT = "dream.jpg"
|
||||
|
||||
bc = BatCountry(IMAGE_TO_DREAM)
|
||||
image = bc.dream(np.float32(Image.open())
|
||||
bc.cleanup()
|
||||
result = Image.fromarray(np.uint8(image))
|
||||
|
||||
result.save(IMAGE_TO_DREAM_OUTPUT)
|
Loading…
Add table
Add a link
Reference in a new issue