Xilinx / BNN-PYNQ

Quantized Neural Networks (QNNs) on PYNQ
https://xilinx.github.io/finn/
BSD 3-Clause "New" or "Revised" License
662 stars 307 forks source link

Where is the fold "10_mnist_pictures" #140

Closed yyyzzzyyy closed 4 years ago

yyyzzzyyy commented 4 years ago

Hello, I am trying to use the code of LFC-QNN_MNIST.ipynb. However, when I try to execute the code:

"with open("/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures", "wb") as out_file: with open("/home/xilinx/jupyter_notebooks/bnn/t10k-images-idx3-ubyte","rb") as img_file:"

It throw the error of: "FileNotFoundError: [Errno 2] No such file or directory: '/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures".

My question is where is the fold "10_mnist_pictures"? Thank you.

yangliuxi007 commented 4 years ago

I'm don't know, bro. sorry......

---Original--- From: "Zeyuan Yang"<notifications@github.com> Date: Mon, Jul 27, 2020 23:03 PM To: "Xilinx/BNN-PYNQ"<BNN-PYNQ@noreply.github.com>; Cc: "Subscribed"<subscribed@noreply.github.com>; Subject: [Xilinx/BNN-PYNQ] Where is the fold "10_mnist_pictures" (#140)

Hello, I am trying to use the code of LFC-QNN_MNIST.ipynb. However, when I try to execute the code:

"with open("/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures", "wb") as out_file: with open("/home/xilinx/jupyter_notebooks/bnn/t10k-images-idx3-ubyte","rb") as img_file:"

It throw the error of: "FileNotFoundError: [Errno 2] No such file or directory: '/home/xilinx/jupyter_notebooks/bnn/10_mnist_pictures".

My question is where is the fold "10_mnist_pictures"? Thank you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

giuliogamba commented 4 years ago

That's a file which is generated in the jupyter notebook, that's why the flag is wb. Please check the /home/xilinx/jupyter_notebooks/bnn/ folder exists, if not change the path to an existing path.

yyyzzzyyy commented 4 years ago

That's a file which is generated in the jupyter notebook, that's why the flag is wb. Please check the /home/xilinx/jupyter_notebooks/bnn/ folder exists, if not change the path to an existing path.

Thank you. I create a new file with the same name and solve the error.