mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 22:50:14 +02:00
list literal is faster than using list constructor to create a new list
This commit is contained in:
parent
70af00182b
commit
f2f93e0251
5 changed files with 12 additions and 24 deletions
|
@ -305,8 +305,7 @@ class sbb_predict:
|
|||
input_1= np.zeros( (inference_bs, img_height, img_width,3))
|
||||
|
||||
|
||||
starting_list_of_regions = []
|
||||
starting_list_of_regions.append( list(range(labels_con.shape[2])) )
|
||||
starting_list_of_regions = [list(range(labels_con.shape[2]))]
|
||||
|
||||
index_update = 0
|
||||
index_selected = starting_list_of_regions[0]
|
||||
|
|
|
@ -365,8 +365,7 @@ def run(_config, n_classes, n_epochs, input_height,
|
|||
|
||||
y_tot=np.zeros((testX.shape[0],n_classes))
|
||||
|
||||
score_best=[]
|
||||
score_best.append(0)
|
||||
score_best= [0]
|
||||
|
||||
num_rows = return_number_of_total_training_data(dir_train)
|
||||
weights=[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue