mirror of
https://github.com/autistic-symposium/tensorflow-for-deep-learning-py.git
synced 2025-05-12 03:34:59 -04:00
Clean up to arxiv (and move any ml related to the agentic repo) (#8)
This commit is contained in:
parent
f4d00ced80
commit
726e24b74d
55 changed files with 4345 additions and 718 deletions
1
Deep_Art/bat-country-test/a.sh
Executable file
1
Deep_Art/bat-country-test/a.sh
Executable file
|
@ -0,0 +1 @@
|
|||
echo aaa
|
13
Deep_Art/bat-country-test/bat_dream.py
Normal file
13
Deep_Art/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)
|
10
Deep_Art/bat-country-test/bat_dream2.py
Normal file
10
Deep_Art/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()
|
BIN
Deep_Art/bat-country-test/saturn.jpg
Normal file
BIN
Deep_Art/bat-country-test/saturn.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 211 KiB |
Loading…
Add table
Add a link
Reference in a new issue