-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.py
41 lines (35 loc) · 1.56 KB
/
examples.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from tensor_io import fetch_file, load_image_as_tensor
# Content examples
dawg_info = (
'dawg.jpg',
'https://storage.googleapis.com/download.tensorflow.org/example_images/YellowLabradorLooking_new.jpg'
)
dawg_path = fetch_file(*dawg_info)
dawg_image = load_image_as_tensor(dawg_path)
sunset_info = (
'sunset.jpg',
'https://assets.simpleviewinc.com/simpleview/image/upload/c_fill,h_575,q_60,w_1024/v1/clients/asheville/171204_cvb_parkway_007_087513da-71ce-488c-bad2-abb5e4a3bd92.jpg'
)
# sunset_path = fetch_file(*sunset_info)
sunset_path = 'C:\\Users\\trevo\\Pictures\\projects\\project_valentine\\sunset.jpg'
sunset_image = load_image_as_tensor(sunset_path)
# Style examples
simpsons_info = (
'simpsons.jpg',
'https://cl.goliath.com/image/upload/t_tn,f_auto,q_auto,$h_480,$w_895/go/2016/06/the-simpsons.png'
)
simpsons_path = fetch_file(*simpsons_info)
simpsons_image = load_image_as_tensor(simpsons_path)
kandinsky_info = (
'fukken_weird.jpg',
'https://storage.googleapis.com/download.tensorflow.org/example_images/Vassily_Kandinsky%2C_1913_-_Composition_7.jpg'
)
kandinsky_path = fetch_file(*kandinsky_info)
kandinsky_image = load_image_as_tensor(kandinsky_path)
style_sunset_info = (
'pencil_sunset.jpg',
'http://capappasart.com/wp-content/uploads/2013/02/birthday-sunset-96-685px-600x371.jpg'
)
# style_sunset_path = fetch_file(*style_sunset_info)
style_sunset_path = 'C:\\Users\\trevo\\Pictures\\projects\\project_valentine\\style_sunset.jpg'
style_sunset_image = load_image_as_tensor(style_sunset_path)