Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- all_list = []
- for i in train_events:
- for j in range(1,5):
- if len(id2events[i][j])>0:
- for event in id2events[i][j]:
- for n in range(event[0],event[1]+1):
- all_list.append((str(i)+ '-' + str(n) + '.png',j-1)) # n+1 is the hack
- def save_obj(obj, name ):
- with open(name + '.pkl', 'wb') as f:
- pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
- save_obj(all_list,'all_list_types_june26')
Add Comment
Please, Sign In to add comment