TeacherPuffy
commited on
Update create_experiments.py
Browse files- create_experiments.py +3 -3
create_experiments.py
CHANGED
@@ -5,7 +5,7 @@ def generate_ratios(max_layers, max_width):
|
|
5 |
ratios = []
|
6 |
for i in range(1, 9): # 1/8 steps from 1:1 to 1:3 and vice versa
|
7 |
ratio = i / 8
|
8 |
-
if ratio <=
|
9 |
ratios.append(ratio)
|
10 |
return ratios
|
11 |
|
@@ -48,8 +48,8 @@ def write_csv(experiments, filename):
|
|
48 |
|
49 |
def main():
|
50 |
parser = argparse.ArgumentParser(description='Generate a CSV file with a variety of layer counts and widths.')
|
51 |
-
parser.add_argument('--max_layers', type=int, default=
|
52 |
-
parser.add_argument('--max_width', type=int, default=4096, help='Maximum width (default: 2048)')
|
53 |
parser.add_argument('--output_file', type=str, default='experiments.csv', help='Output CSV file (default: experiments.csv)')
|
54 |
parser.add_argument('--input_size', type=int, default=64*64*3, help='Input size (default: 224*224*3)')
|
55 |
parser.add_argument('--output_size', type=int, default=10, help='Output size (default: 10)')
|
|
|
5 |
ratios = []
|
6 |
for i in range(1, 9): # 1/8 steps from 1:1 to 1:3 and vice versa
|
7 |
ratio = i / 8
|
8 |
+
if ratio <= 6: # Ensure the ratio is not greater than 3
|
9 |
ratios.append(ratio)
|
10 |
return ratios
|
11 |
|
|
|
48 |
|
49 |
def main():
|
50 |
parser = argparse.ArgumentParser(description='Generate a CSV file with a variety of layer counts and widths.')
|
51 |
+
parser.add_argument('--max_layers', type=int, default=72, help='Maximum number of layers (default: 4)')
|
52 |
+
parser.add_argument('--max_width', type=int, default=(4096), help='Maximum width (default: 2048)')
|
53 |
parser.add_argument('--output_file', type=str, default='experiments.csv', help='Output CSV file (default: experiments.csv)')
|
54 |
parser.add_argument('--input_size', type=int, default=64*64*3, help='Input size (default: 224*224*3)')
|
55 |
parser.add_argument('--output_size', type=int, default=10, help='Output size (default: 10)')
|