print 1 pair of salient feature map
(target_in, rgb_in, features_target, features_rgb)
| 28 | random.seed(0) |
| 29 | |
| 30 | def tmp_plot(target_in, rgb_in, features_target, features_rgb): |
| 31 | ''' |
| 32 | print 1 pair of salient feature map |
| 33 | ''' |
| 34 | print("for debug only...") |
| 35 | pdb.set_trace() |
| 36 | ### plot featues with pixel-wise addition |
| 37 | save_image(target_in[1], './tmp/target_in.png') |
| 38 | save_image(rgb_in[1], './tmp/rgb_in.png') |
| 39 | save_image_saliancy(features_target[1], './tmp/target', True) |
| 40 | save_image_saliancy(features_rgb[1], './tmp/rgb', True) |
| 41 | ### plot featues seperately |
| 42 | save_image(target_in[1], './tmp/target_in.png') |
| 43 | save_image(rgb_in[1], './tmp/rgb_in.png') |
| 44 | plot_features(features_target[:,1:2,...], './tmp/target', False) |
| 45 | plot_features(features_rgb[:,1:2,...], './tmp/rgb', False) |
| 46 | sys.exit() |
| 47 | |
| 48 | def tmp_plot2(target_in, rgb_in, features_target, features_rgb, i=0): |
| 49 | ''' |
nothing calls this directly
no test coverage detected