Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory #1

Open
SamuelLarkin opened this issue Dec 18, 2018 · 3 comments
Open

No such file or directory #1

SamuelLarkin opened this issue Dec 18, 2018 · 3 comments

Comments

@SamuelLarkin
Copy link

Hi @yoel-zeldes , what a great idea. I wanted to give it a try so I cloned your repo, installed fusepy but I'm getting the following error when I try python ../tffs/tffs.py --model chkpts/f64c32_conv/chkpt-682.meta --mount mount/

Traceback (most recent call last):
  File "../tffs/tffs.py", line 290, in <module>
    FUSE(TfFs(mount_point=args.mount, model_path=args.model), args.mount, foreground=True)
  File "../tffs/tffs.py", line 162, in __init__
    self._populate_bin(mount_point)
  File "../tffs/tffs.py", line 186, in _populate_bin
    TENSOR_TO_TENSORS_PLACEHOLDER=str(tensor_to_tensors()))
  File "../tffs/tffs.py", line 145, in _read_template_script
    with open(template_path, 'r') as f:
IOError: [Errno 2] No such file or directory: 'print_tensor_dependencies.py'
ls -1 chkpts/f64c32_conv/chkpt-682.*
chkpts/f64c32_conv/chkpt-682.data-00000-of-00001
chkpts/f64c32_conv/chkpt-682.index
chkpts/f64c32_conv/chkpt-682.meta

What am I doing wrong here?

My conda environment has:

Package                            Version
---------------------------------- -----------
absl-py                            0.5.0
astor                              0.7.1
backports-abc                      0.5
backports.functools-lru-cache      1.5
backports.shutil-get-terminal-size 1.0.0
backports.weakref                  1.0.post1
bashplotlib                        0.6.5
certifi                            2018.10.15
chardet                            3.0.4
configparser                       3.5.0
cycler                             0.10.0
decorator                          4.3.0
enum34                             1.1.6
funcsigs                           1.0.2
functools32                        3.2.3.post2
fusepy                             3.0.1
futures                            3.2.0
gast                               0.2.0
grpcio                             1.12.1
h5py                               2.8.0
idna                               2.7
influxdb                           5.2.0
ipython                            5.8.0
ipython-genutils                   0.2.0
kiwisolver                         1.0.1
linecache2                         1.0.0
Markdown                           3.0.1
matplotlib                         2.2.3
mkl-fft                            1.0.6
mkl-random                         1.0.1
mock                               2.0.0
numpy                              1.15.3
olefile                            0.46
pathlib2                           2.3.2
pbr                                4.3.0
pexpect                            4.6.0
pickleshare                        0.7.5
Pillow                             5.3.0
pip                                18.1
progressbar                        2.5
prompt-toolkit                     1.0.15
protobuf                           3.6.0
ptyprocess                         0.6.0
pudb                               2018.1
Pygments                           2.2.0
pyparsing                          2.2.2
python-dateutil                    2.7.5
pytz                               2018.7
requests                           2.20.0
scandir                            1.9.0
setuptools                         40.4.3
simplegeneric                      0.8.1
singledispatch                     3.4.0.3
six                                1.11.0
subprocess32                       3.5.3
tabulate                           0.8.2
tensorboard                        1.10.0
tensorflow                         1.10.0
termcolor                          1.1.0
tornado                            5.1.1
tqdm                               4.28.1
traceback2                         1.4.0
traitlets                          4.3.2
unittest2                          1.1.0
urllib3                            1.24
urwid                              2.0.1
wcwidth                            0.1.7
Werkzeug                           0.14.1
wheel                              0.32.2
@SamuelLarkin
Copy link
Author

SamuelLarkin commented Dec 18, 2018

Never mind, my bad, I was missing PYTHONPATH=$HOME/git/tffs.

I used python tffs.py --model ../ednn_train/chkpts/f64c32_conv/chkpt-682.meta --mount mount which runs straight from my clone of your repo and it workds.

I'm going to give it a go now. :)

@SamuelLarkin
Copy link
Author

I successfully mounted my network. I can see the hierarchy. I can navigate but I can't seem to be able to cat any Tensor

find fully_connected type f -ls

       46      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected
       47      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights
       51      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam_1
       52      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam_1/Assign:0
       53      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam_1/Initializer
       54      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam_1/Initializer/zeros
       55      0 -r--r--r--   1 root     root           12 Dec 18 15:10 fully_connected/weights/Adam_1/Initializer/zeros/Const:0
       56      0 -r--r--r--   1 root     root           23 Dec 18 15:10 fully_connected/weights/Adam_1/Initializer/zeros/shape_as_tensor:0
       57      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam_1/Initializer/zeros:0
       58      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam_1/read:0
       59      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/read:0
       60      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Initializer
       61      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform:0
       62      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform
       63      0 -r--r--r--   1 root     root           23 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/shape:0
       64      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/mul:0
       65      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/RandomUniform:0
       66      0 -r--r--r--   1 root     root           12 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/min:0
       67      0 -r--r--r--   1 root     root           12 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/max:0
       68      0 -r--r--r--   1 root     root           12 Dec 18 15:10 fully_connected/weights/Initializer/random_uniform/sub:0
       69      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam
       70      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam/read:0
       71      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam/Initializer
       72      0 dr--r--r--   2 root     root            0 Dec 18 15:10 fully_connected/weights/Adam/Initializer/zeros
       73      0 -r--r--r--   1 root     root           12 Dec 18 15:10 fully_connected/weights/Adam/Initializer/zeros/Const:0
       74      0 -r--r--r--   1 root     root           23 Dec 18 15:10 fully_connected/weights/Adam/Initializer/zeros/shape_as_tensor:0
       75      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam/Initializer/zeros:0
       76      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam/Assign:0
       77      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam_1:0
       78      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Adam:0
       79      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights/Assign:0
       48      0 -r--r--r--   1 root     root     46149632 Dec 18 15:10 fully_connected/weights:0

If I cat fully_connected/weights:0, I get None when I was expecting to see a matrix of numbers.

@yoel-zeldes
Copy link
Owner

Thanks @SamuelLarkin for showing interest in this project.
Could you please provide me with the model / code that builds the mode so I can inspect it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants