below code is from github and i what to change it according to system path
with open("./output/cifar_inception_plot.pkl", 'rb') as f:
dat = pickle.load(f)
total_inception = dict({})
for item in dat:
allis = dat[item]
allis = [x[0] for x in allis]
total_inception[os.path.basename(item)] = np.array(allis)
when i tried to change it like code below:
with open("./Users/Amulya/Desktop/cifar_inception.pkl", 'rb') as f:
dat = pickle.load(f)
total_inception = dict({})
for item in dat:
allis = dat[item]
allis = [x[0] for x in allis]
total_inception[os.path.basename(item)] = np.array(allis)
i got error
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) in 77 } 78 ---> 79 with open("./Users/Amulya/Desktop/cifar_inception.pkl", 'rb') as f: 80 dat = pickle.load(f) 81 total_inception = dict({}) FileNotFoundError: [Errno 2] No such file or directory: './Users/Amulya/Desktop/cifar_inception.pkl'
iam still getting error any solution on how to write the filename corretly