ruocwang / darts-pt

[ICLR2021 Outstanding Paper] Rethinking Architecture Selection in Differentiable NAS
Apache License 2.0
102 stars 14 forks source link

Argument to be given for --arch in evaluating sota. #8

Closed pcvishak closed 2 years ago

pcvishak commented 2 years ago

For evaluation experiments on S1-S4, we are supposed to run: 'bash eval.sh --arch [genotype_name]' What is genotype_name here? Suppose I got genotype as Genotype(normal=[('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1)], normal_concat=range(2, 6), reduce=[('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3',2)], reduce_concat=range(2, 6)) How to map this to genotype name?

ruocwang commented 2 years ago

Hi, You may put this genotype in genotype.py and give it a name:

pcvishak_arch = Genotype(normal=[('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1)], normal_concat=range(2, 6), reduce=[('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3', 1), ('sep_conv_3x3', 0), ('sep_conv_3x3',2)], reduce_concat=range(2, 6))

Then run

bash eval.sh --arch pcvishak_arch

Hope this helps.

pcvishak commented 2 years ago

Thanks for your reply. Problem solved.