File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 80
80
{
81
81
"cell_type" : " code" ,
82
82
"execution_count" : null ,
83
- "metadata" : {},
83
+ "metadata" : {
84
+ "collapsed" : true
85
+ },
84
86
"outputs" : [],
85
87
"source" : [
86
88
" # move the model to GPU, if available\n " ,
184
186
{
185
187
"cell_type" : " code" ,
186
188
"execution_count" : null ,
187
- "metadata" : {},
189
+ "metadata" : {
190
+ "collapsed" : true
191
+ },
188
192
"outputs" : [],
189
193
"source" : [
190
194
" # display the images\n " ,
323
327
" style_grams = {layer: gram_matrix(style_features[layer]) for layer in style_features}\n " ,
324
328
" \n " ,
325
329
" # create a third \" target\" image and prep it for change\n " ,
326
- " # it is a good idea to start of with the target as a copy of our *content* image\n " ,
330
+ " # it is a good idea to start off with the target as a copy of our *content* image\n " ,
327
331
" # then iteratively change its style\n " ,
328
332
" target = content.clone().requires_grad_(True).to(device)"
329
333
]
Original file line number Diff line number Diff line change 396
396
"style_grams = {layer: gram_matrix(style_features[layer]) for layer in style_features}\n",
397
397
"\n",
398
398
"# create a third \"target\" image and prep it for change\n",
399
- "# it is a good idea to start of with the target as a copy of our *content* image\n",
399
+ "# it is a good idea to start off with the target as a copy of our *content* image\n",
400
400
"# then iteratively change its style\n",
401
401
"target = content.clone().requires_grad_(True).to(device)"
402
402
]
You can’t perform that action at this time.
0 commit comments