zero-cost-nas icon indicating copy to clipboard operation
zero-cost-nas copied to clipboard

list index out of range

Open peter-ch opened this issue 2 years ago • 0 comments

I keep getting this list index out of range error for the example code:

==========

IndexError Traceback (most recent call last) in () 6 ae_best_valids, ae_best_tests = run_evolution_search(max_trained_models=length) 7 ae.append(ae_best_tests) ----> 8 ae_warmup_best_valids, ae_warmup_best_tests = run_evolution_search(max_trained_models=length, zero_cost_warmup=3000) 9 ae_warmup.append(ae_warmup_best_tests) 10 ae_move_best_valids, ae_move_best_tests = run_evolution_search(max_trained_models=length, zero_cost_move=True)

in run_evolution_search(max_trained_models, pool_size, tournament_size, zero_cost_warmup, zero_cost_move) 16 spec_idx = spec_to_idx[str(spec)] 17 # try: ---> 18 zero_cost_pool.append((synflow_proxy[spec_idx], spec)) 19 zero_cost_pool = sorted(zero_cost_pool, key=lambda i:i[0], reverse=True) 20 # except Exception as ex:

IndexError: list index out of range

Is this related to the start/end parameters for this step?

python nasbench2_pred.py --start 0 --end 5

peter-ch avatar Jun 11 '22 15:06 peter-ch