File size: 5,156 Bytes
287e789
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
  "project": {
    "name": "3D Photo Portrait Depth",
    "id": "__qt6hd4",
    "creationTs": 1683652729656,
    "lastModifiedTs": 1720741662224,
    "userSetData": {
      "description": "Generate a 3D photo from a given image.",
      "tags": [
        "vision"
      ],
      "contactURL": "",
      "tutorialYouTube": ""
    }
  },
  "graph": {
    "nodes": [
      {
        "id": "input_image_ebur6f",
        "nodeSpecId": "input_image",
        "customData": {
          "initialWidth": 448,
          "initialHeight": 240,
          "previewX": 16,
          "previewY": 16,
          "previewWidth": 448,
          "previewHeight": 240
        },
        "uiData": {
          "posX": -688,
          "posY": -96,
          "width": 176,
          "height": 180,
          "selected": false
        },
        "propValues": {
          "urls": [
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im0.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im2.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im3.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im4.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im5.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im6.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im7.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im8.jpg",
            "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im9.jpg"
          ],
          "gridColumnCount": 3,
          "allowUserUpload": false,
          "selectedImageUrl": "https://storage.googleapis.com/tfjs-models/demos/3dphoto/images/im5.jpg",
          "hidePreview": false
        }
      },
      {
        "id": "image_processor_2yfdym",
        "nodeSpecId": "image_processor",
        "customData": {
          "initialWidth": 480,
          "initialHeight": 384,
          "previewX": 480,
          "previewY": 16,
          "previewWidth": 480,
          "previewHeight": 384
        },
        "uiData": {
          "posX": -448,
          "posY": -96,
          "width": 176,
          "height": 252,
          "selected": false
        },
        "propValues": {
          "hidePreview": false,
          "resize": {
            "width": 192,
            "height": 256
          },
          "resize,,,width": 192,
          "resize,,,height": 256
        },
        "incomingEdges": {
          "image": [
            {
              "sourceNodeId": "input_image_ebur6f",
              "outputId": "image"
            }
          ]
        }
      },
      {
        "id": "threed_photo_cfrxvg",
        "nodeSpecId": "threed_photo",
        "customData": {
          "initialWidth": 240,
          "initialHeight": 320,
          "previewX": 1008,
          "previewY": 32,
          "previewWidth": 240,
          "previewHeight": 320
        },
        "uiData": {
          "posX": -16,
          "posY": -96,
          "width": 176,
          "height": 205,
          "selected": false
        },
        "propValues": {
          "cameraSpeed": 0.5,
          "cameraRadius": 0.4,
          "cameraZ": 9.5,
          "hidePreview": false
        },
        "incomingEdges": {
          "image": [
            {
              "sourceNodeId": "image_processor_2yfdym",
              "outputId": "image"
            }
          ],
          "depthMapTensor": [
            {
              "sourceNodeId": "portrait_depth_gj2e8v",
              "outputId": "tensor"
            }
          ]
        }
      },
      {
        "id": "tensor_to_depthmap_gdejpj",
        "nodeSpecId": "tensor_to_depthmap",
        "customData": {
          "initialWidth": 240,
          "initialHeight": 320,
          "previewX": 1264,
          "previewY": 16,
          "previewWidth": 240,
          "previewHeight": 320
        },
        "uiData": {
          "posX": -16,
          "posY": 112,
          "width": 176,
          "height": 130,
          "selected": false
        },
        "propValues": {
          "colormap": "turboplus",
          "hidePreview": false
        },
        "incomingEdges": {
          "tensor": [
            {
              "sourceNodeId": "portrait_depth_gj2e8v",
              "outputId": "tensor"
            }
          ]
        }
      },
      {
        "id": "portrait_depth_gj2e8v",
        "nodeSpecId": "portrait_depth",
        "customData": {
          "previewX": 976,
          "previewY": 16,
          "previewWidth": 320,
          "previewHeight": 240
        },
        "uiData": {
          "posX": -224,
          "posY": -32,
          "width": 176,
          "height": 130,
          "selected": true
        },
        "propValues": {
          "minDepth": 0.2,
          "maxDepth": 0.8
        },
        "incomingEdges": {
          "image": [
            {
              "sourceNodeId": "image_processor_2yfdym",
              "outputId": "image"
            }
          ]
        }
      }
    ]
  }
}