MCPcopy Create free account
hub / github.com/ActiveVisionLab/DFNet / tmp_plot

Function tmp_plot

script/run_feature.py:30–46  ·  view source on GitHub ↗

print 1 pair of salient feature map

(target_in, rgb_in, features_target, features_rgb)

Source from the content-addressed store, hash-verified

28random.seed(0)
29
30def 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
48def tmp_plot2(target_in, rgb_in, features_target, features_rgb, i=0):
49 '''

Callers

nothing calls this directly

Calls 2

save_image_saliancyFunction · 0.90
plot_featuresFunction · 0.90

Tested by

no test coverage detected