I often see words like ** bash **, but I don't understand them at all. I usually work on Windows, but sometimes I come into contact with bash because of the environment presented by deep learning. There, I encountered the following error.
** I imagined that the solution was shocking and that it was often not possible to reach this solution just by googled **, so I will write it as an article. (Even if it's shocking, it's just that kind of preparation ... I don't understand how it works.)
The details of the error are as follows.
$ python3 classify_image.py \
> --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
> --labels models/inat_bird_labels.txt \
> --input images/parrot.jpg
bash: /c/Users/XYZZZ/AppData/Local/Microsoft/WindowsApps/python3: Permission denied
The following is an excerpt of only the essential error part.
bash: /c/Users/XYZZZ/AppData/Local/Microsoft/WindowsApps/python3: Permission denied
Stack Exchange
How to fix “Permission Denied” in Git Bash in Windows 10? https://superuser.com/questions/1532831/how-to-fix-permission-denied-in-git-bash-in-windows-10
According to the answer of, it was solved. (I'm sorry, I don't understand how it works.)
The solution is
python3 --> PY
It is said that it will be.
The result of running without errors. This is deep learning related to Google Coral TPU.
$ PY classify_image.py \
--labels models/inat_bird_labels.txt \
> --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
> --labels models/inat_bird_labels.txt \
> --input images/parrot.jpg
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
19.7ms
4.7ms
5.0ms
4.7ms
10.4ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.77734
Only the first two letters ("** PY **") are directly related to this article. .. ..
By the way, These are running on ** MINGW64 **. (I don't really understand this either.)
If you don't know a lot of things, you can't solve the error by yourself, and you often go through it. It's a bit of annoying work, but if you're not familiar with various things, it's difficult to deal with errors on your own. .. .. : candy: If you have any comments, please let us know.
Recommended Posts