Commit ab01ec1c authored by Justin Borromeo's avatar Justin Borromeo
Browse files

Add packing screenshots

parent dd9f919c
......@@ -359,7 +359,7 @@ class cma_approach(object):
"penalty_constant_" + str(pp.PENALTY_CONSTANT) + "/"
makedirs(directory_path, exist_ok = True)
pngFileName = "k=" + str(self.k) + "_max=" + str(self.max_res_unit) \
+ ".png"
+ "_latency=" + str(max_latency) + ".png"
if pp.isPackable(res, self.max_pack_size) and output_png:
bin_area = self.max_pack_size ** 2
packed_area = 0
......
......@@ -14,7 +14,8 @@ def isPackable(partitions, full_array):
packer.pack()
return len(packer[0]) == len(partitions)
PENALTY_CONSTANT = 150
# 150
PENALTY_CONSTANT = 0
def calculatePackingPenalty(max_res_unit_decrement):
return max_res_unit_decrement * PENALTY_CONSTANT
......
......@@ -5,14 +5,14 @@ import path_constant as pc
import cma_approach_square_size as ap
nets = [
# ('FasterRCNN', 46, 23),
# ('mobilenet', 27, 14),
# ('yolo_tiny', 10, 9),
('FasterRCNN', 46, 23),
('mobilenet', 27, 14),
('yolo_tiny', 10, 9),
('googlenet', 58, 29),
# ('alexnet', 8, 8),
# ('AlphaGoZero', 8, 8),
# ('ncf_rec', 8, 8),
# ('resnet_50_v1', 53, 27)
('alexnet', 8, 8),
('AlphaGoZero', 8, 8),
('ncf_rec', 8, 8),
('resnet_50_v1', 53, 27)
]
max_res_sizes = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment