I have saved my dictionary to a txt file as
f = open("dict_imageData.txt","a")
f.write( str(dict_imageData) + "\n" )
f.close()
And the saved txt file contains
{'002_S_0559': array([ 0., 0., 0., ..., 0., 0., 0.],dtype=float32)}
{'002_S_1070': array([ 0., 0., 0., ..., 0., 0., 0.], dtype=float32)}
{'023_S_0604': array([ 0., 0., 0., ..., 0., 0., 0.], dtype=float32)}
I have problem loading this dictionary and splitting keys and values. I tried splitting and also eval but did not work, since there is a dtype statement at the end.
Any suggestions?