Skip to content

Instantly share code, notes, and snippets.

@yulijia
Created December 23, 2015 02:22
Show Gist options
  • Save yulijia/032afa9a9123b7643522 to your computer and use it in GitHub Desktop.
Save yulijia/032afa9a9123b7643522 to your computer and use it in GitHub Desktop.
my first neural style image training INFO
[root@localhost neural-style]# python run.py --content-image input/1.jpg --style-image input/starry_night.jpg --gpu -1
OpenCV is unavailable.
INFO:root:load the content image, size = (180, 180)
INFO:root:resize the content image to (600, 600)
INFO:root:start training arguments Namespace(content_image='input/1.jpg', content_weight=10, gpu=-1, lr=0.1, max_long_edge=600, max_num_epochs=1000, model='vgg19', output='output/out.jpg', remove_noise=0.2, save_epochs=50, stop_eps=0.005, style_image='input/starry_night.jpg', style_weight=1)
INFO:root:epoch 0, relative change 0.993356
INFO:root:epoch 1, relative change 0.639406
INFO:root:epoch 2, relative change 0.477160
INFO:root:epoch 3, relative change 0.384180
INFO:root:epoch 4, relative change 0.321211
INFO:root:epoch 5, relative change 0.273991
INFO:root:epoch 6, relative change 0.234451
INFO:root:epoch 7, relative change 0.182741
INFO:root:epoch 8, relative change 0.146328
INFO:root:epoch 9, relative change 0.124938
INFO:root:epoch 10, relative change 0.112071
INFO:root:Update[11]: Change learning rate to 0.09000
INFO:root:epoch 11, relative change 0.100951
INFO:root:epoch 12, relative change 0.091752
INFO:root:epoch 13, relative change 0.087307
INFO:root:epoch 14, relative change 0.087724
INFO:root:epoch 15, relative change 0.090899
INFO:root:epoch 16, relative change 0.094357
INFO:root:epoch 17, relative change 0.095596
INFO:root:epoch 18, relative change 0.092962
INFO:root:epoch 19, relative change 0.088170
INFO:root:epoch 20, relative change 0.083425
INFO:root:Update[21]: Change learning rate to 0.08100
INFO:root:epoch 21, relative change 0.078019
INFO:root:epoch 22, relative change 0.072110
INFO:root:epoch 23, relative change 0.065878
INFO:root:epoch 24, relative change 0.060515
INFO:root:epoch 25, relative change 0.056756
INFO:root:epoch 26, relative change 0.054638
INFO:root:epoch 27, relative change 0.054174
INFO:root:epoch 28, relative change 0.055188
INFO:root:epoch 29, relative change 0.056893
INFO:root:epoch 30, relative change 0.058042
INFO:root:Update[31]: Change learning rate to 0.07290
INFO:root:epoch 31, relative change 0.057498
INFO:root:epoch 32, relative change 0.056475
INFO:root:epoch 33, relative change 0.055829
INFO:root:epoch 34, relative change 0.054696
INFO:root:epoch 35, relative change 0.052451
INFO:root:epoch 36, relative change 0.050038
INFO:root:epoch 37, relative change 0.047924
INFO:root:epoch 38, relative change 0.045838
INFO:root:epoch 39, relative change 0.044561
INFO:root:epoch 40, relative change 0.042557
INFO:root:Update[41]: Change learning rate to 0.06561
INFO:root:epoch 41, relative change 0.040425
INFO:root:epoch 42, relative change 0.038530
INFO:root:epoch 43, relative change 0.036851
INFO:root:epoch 44, relative change 0.036054
INFO:root:epoch 45, relative change 0.034916
INFO:root:epoch 46, relative change 0.034884
INFO:root:epoch 47, relative change 0.034669
INFO:root:epoch 48, relative change 0.033747
INFO:root:epoch 49, relative change 0.033788
INFO:root:save output to output/tmp_50.jpg
/usr/lib64/python2.7/site-packages/skimage/util/dtype.py:111: UserWarning: Possible precision loss when converting from float64 to uint8
"%s to %s" % (dtypeobj_in, dtypeobj))
INFO:root:epoch 50, relative change 0.033001
INFO:root:Update[51]: Change learning rate to 0.05905
INFO:root:epoch 51, relative change 0.030626
INFO:root:epoch 52, relative change 0.029928
INFO:root:epoch 53, relative change 0.027789
INFO:root:epoch 54, relative change 0.026557
INFO:root:epoch 55, relative change 0.025121
INFO:root:epoch 56, relative change 0.023779
INFO:root:epoch 57, relative change 0.024494
INFO:root:epoch 58, relative change 0.022060
INFO:root:epoch 59, relative change 0.022969
INFO:root:epoch 60, relative change 0.020674
INFO:root:Update[61]: Change learning rate to 0.05314
INFO:root:epoch 61, relative change 0.020334
INFO:root:epoch 62, relative change 0.018351
INFO:root:epoch 63, relative change 0.018970
INFO:root:epoch 64, relative change 0.016719
INFO:root:epoch 65, relative change 0.018060
INFO:root:epoch 66, relative change 0.016096
INFO:root:epoch 67, relative change 0.017284
INFO:root:epoch 68, relative change 0.015408
INFO:root:epoch 69, relative change 0.016886
INFO:root:epoch 70, relative change 0.014519
INFO:root:Update[71]: Change learning rate to 0.04783
INFO:root:epoch 71, relative change 0.015453
INFO:root:epoch 72, relative change 0.013816
INFO:root:epoch 73, relative change 0.014942
INFO:root:epoch 74, relative change 0.013214
INFO:root:epoch 75, relative change 0.015031
INFO:root:epoch 76, relative change 0.012916
INFO:root:epoch 77, relative change 0.014344
INFO:root:epoch 78, relative change 0.012330
INFO:root:epoch 79, relative change 0.013839
INFO:root:epoch 80, relative change 0.011899
INFO:root:Update[81]: Change learning rate to 0.04305
INFO:root:epoch 81, relative change 0.013388
INFO:root:epoch 82, relative change 0.011324
INFO:root:epoch 83, relative change 0.012562
INFO:root:epoch 84, relative change 0.011004
INFO:root:epoch 85, relative change 0.012853
INFO:root:epoch 86, relative change 0.010576
INFO:root:epoch 87, relative change 0.012026
INFO:root:epoch 88, relative change 0.010413
INFO:root:epoch 89, relative change 0.012237
INFO:root:epoch 90, relative change 0.010039
INFO:root:Update[91]: Change learning rate to 0.03874
INFO:root:epoch 91, relative change 0.011359
INFO:root:epoch 92, relative change 0.009844
INFO:root:epoch 93, relative change 0.011314
INFO:root:epoch 94, relative change 0.009520
INFO:root:epoch 95, relative change 0.011156
INFO:root:epoch 96, relative change 0.009372
INFO:root:epoch 97, relative change 0.010975
INFO:root:epoch 98, relative change 0.009161
INFO:root:epoch 99, relative change 0.010737
INFO:root:save output to output/tmp_100.jpg
INFO:root:epoch 100, relative change 0.009010
INFO:root:Update[101]: Change learning rate to 0.03487
INFO:root:epoch 101, relative change 0.010410
INFO:root:epoch 102, relative change 0.008825
INFO:root:epoch 103, relative change 0.010039
INFO:root:epoch 104, relative change 0.008786
INFO:root:epoch 105, relative change 0.010463
INFO:root:epoch 106, relative change 0.008462
INFO:root:epoch 107, relative change 0.009605
INFO:root:epoch 108, relative change 0.008316
INFO:root:epoch 109, relative change 0.010029
INFO:root:epoch 110, relative change 0.008014
INFO:root:Update[111]: Change learning rate to 0.03138
INFO:root:epoch 111, relative change 0.008968
INFO:root:epoch 112, relative change 0.007795
INFO:root:epoch 113, relative change 0.009277
INFO:root:epoch 114, relative change 0.007632
INFO:root:epoch 115, relative change 0.008863
INFO:root:epoch 116, relative change 0.007558
INFO:root:epoch 117, relative change 0.008952
INFO:root:epoch 118, relative change 0.007352
INFO:root:epoch 119, relative change 0.008649
INFO:root:epoch 120, relative change 0.007277
INFO:root:Update[121]: Change learning rate to 0.02824
INFO:root:epoch 121, relative change 0.008448
INFO:root:epoch 122, relative change 0.007148
INFO:root:epoch 123, relative change 0.008299
INFO:root:epoch 124, relative change 0.007230
INFO:root:epoch 125, relative change 0.008490
INFO:root:epoch 126, relative change 0.007031
INFO:root:epoch 127, relative change 0.008011
INFO:root:epoch 128, relative change 0.006955
INFO:root:epoch 129, relative change 0.008296
INFO:root:epoch 130, relative change 0.006744
INFO:root:Update[131]: Change learning rate to 0.02542
INFO:root:epoch 131, relative change 0.007516
INFO:root:epoch 132, relative change 0.006597
INFO:root:epoch 133, relative change 0.007732
INFO:root:epoch 134, relative change 0.006415
INFO:root:epoch 135, relative change 0.007340
INFO:root:epoch 136, relative change 0.006359
INFO:root:epoch 137, relative change 0.007495
INFO:root:epoch 138, relative change 0.006193
INFO:root:epoch 139, relative change 0.007181
INFO:root:epoch 140, relative change 0.006165
INFO:root:Update[141]: Change learning rate to 0.02288
INFO:root:epoch 141, relative change 0.007090
INFO:root:epoch 142, relative change 0.006065
INFO:root:epoch 143, relative change 0.006917
INFO:root:epoch 144, relative change 0.006112
INFO:root:epoch 145, relative change 0.007096
INFO:root:epoch 146, relative change 0.005901
INFO:root:epoch 147, relative change 0.006652
INFO:root:epoch 148, relative change 0.005837
INFO:root:epoch 149, relative change 0.006879
INFO:root:save output to output/tmp_150.jpg
INFO:root:epoch 150, relative change 0.005662
INFO:root:Update[151]: Change learning rate to 0.02059
INFO:root:epoch 151, relative change 0.006268
INFO:root:epoch 152, relative change 0.005560
INFO:root:epoch 153, relative change 0.006429
INFO:root:epoch 154, relative change 0.005429
INFO:root:epoch 155, relative change 0.006160
INFO:root:epoch 156, relative change 0.005382
INFO:root:epoch 157, relative change 0.006242
INFO:root:epoch 158, relative change 0.005287
INFO:root:epoch 159, relative change 0.006080
INFO:root:epoch 160, relative change 0.005296
INFO:root:Update[161]: Change learning rate to 0.01853
INFO:root:epoch 161, relative change 0.005978
INFO:root:epoch 162, relative change 0.005236
INFO:root:epoch 163, relative change 0.005889
INFO:root:epoch 164, relative change 0.005300
INFO:root:epoch 165, relative change 0.006053
INFO:root:epoch 166, relative change 0.005078
INFO:root:epoch 167, relative change 0.005608
INFO:root:epoch 168, relative change 0.005012
INFO:root:epoch 169, relative change 0.005819
INFO:root:epoch 170, relative change 0.004873
INFO:root:eps < args.stop_eps, training finished
INFO:root:save output to output/out.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment