MatteoZambra / Developmental-Approach-DBN

Support code
0 stars 0 forks source link

Missing pickl file? #5

Open dvdplm opened 3 years ago

dvdplm commented 3 years ago

After working around #3 and #4 I get this:

➜  Code git:(master) ✗ python main_train.py
Using cpu
Data created and saved
Traceback (most recent call last):
  File "main_train.py", line 289, in <module>
    gcvis.allProfiles(['normal', 'glorot'], ['greedy', 'iterative'], plot_specs, metrics = ['readout', 'cost'])
  File "/Users/aggron/dev/play/Developmental-Approach-DBN/Code/dbp/gcvis.py", line 154, in allProfiles
    dbn = fetch(path_model + r'/{}_{}_{}_dbn{}_cd{}_ep{}{}{}.pkl'.format(
  File "/Users/aggron/dev/play/Developmental-Approach-DBN/Code/dbp/utls.py", line 29, in fetch
    with open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/aggron/dev/play/Developmental-Approach-DBN/Code/models//series_10runs_normal/mnist_normal_greedy_dbn0_cd1_ep50_nodrop_gcorr0d1.pkl'

Here's the content of my Developmental-Approach-DBN/Code/models/ folder:

➜  play ll Developmental-Approach-DBN/Code/models/
total 0
drwxr-xr-x  5 aggron  staff   160B Nov  2 20:02 epochs_tmp
drwxr-xr-x  3 aggron  staff    96B Nov  2 20:02 series_10runs_glorot
drwxr-xr-x  3 aggron  staff    96B Nov  2 20:02 series_10runs_normal
drwxr-xr-x  3 aggron  staff    96B Nov  2 20:02 series_1runs_normal

Any hints?

MatteoZambra commented 3 years ago

I would say that the problem lies again in the path specification. Between models and series_10runs_normal there are two slashes. I would try to remove the first slash in line 154 of gcvis.py, that is

dbn = fetch(path_model + r'{}_{}_{}_...')