Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

반응형

 3  sudo apt install python3-pip3 -y
    4  pip33 install --user --upgrade tensorflow
    5  history
    6  python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"



    5  sudo apt install git -y
    6  git clone https://github.com/tensorflow/models.git


joe@ubuntu:~/ai/models/research$ export PYTHONPATH=$(pwd):$(pwd)/slim
joe@ubuntu:~/ai/models/research$ echo $PYTHONPATH
/home/joe/ai/models/research:/home/joe/ai/models/research/slim


import os 
import sys 
args = sys.argv 
directory = args[1] 
protoc_path = args[2] 
for file in os.listdir(directory):
if file.endswith(".proto"):
os.system(protoc_path+" "+directory+"/"+file+" --python_out=.")


     pip3 install protobuf
       pip3 install pillow
       pip3 install lxml
       pip3 install Cython
       pip3 install jupyter
       pip3 install matplotlib
       pip3 install pandas
       pip3 install opencv-python 


joe@ubuntu:~/ai/models/research$ sudo apt install protobuf -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done

No apt package "protobuf", but there is a snap with that name.
Try "snap install protobuf"

E: Unable to locate package protobuf
joe@ubuntu:~/ai/models/research$ snap install protobuf
error: This revision of snap "protobuf" was published using classic confinement and
       thus may perform arbitrary system changes outside of the security sandbox that
       snaps are usually confined to, which may put your system at risk.

       If you understand and want to proceed repeat the command including --classic.
joe@ubuntu:~/ai/models/research$ snap install protobuf --classic


models/research$ python3 test.py ./object_detection/protos/ /snap/bin/protoc
joe@ubuntu:~/ai/models/research$ 


   43  python3 setup.py build
   44  python3 setup.py install
   45  sudo python3 setup.py install


....

i     echo $PYTHONPATH
     sudo apt install vim -y
     python3 test.py ./object_detection/protos/ ./bin/protoc
     whereis protoc
     sudo updatedb
     locate protoc | grep bin
     sudo apt install protobuf -y
     snap install protobuf
     snap install protobuf --classic
     python3 test.py ./object_detection/protos/ /snap/bin/protoc
     python3 setup.py build
     sudo python3 setup.py install
     jupyter notebook object_detection_tutorial.ipynb
     sudo snap install jupyter
     sudo apt install jupyter-core -y
     ls
     jupyter notebook object_detection_tutorial.ipynb
     ls
     find ./ -type f -iname "object*.ipynb"
     cd research/object_detection
     sudo -H pip3 install --upgrade pip
     sudo -H pip3 install jupyter
     python3 -m notebook ./object_detection_tutorial.ipynb 


https://teachablemachine.withgoogle.com/



Failed to invoke the interpreter with error: Provided data count 1080000 must match the required count 602112.





반응형

'살며 생각하며,' 카테고리의 다른 글

063  (0) 2019.12.19
개 발 일 지 062  (0) 2019.12.17
개 발 일 지 060  (0) 2019.12.13
개 발 일 지 059  (0) 2019.12.13
개 발 일 지 058  (0) 2019.12.13
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기