發表文章

在windows更新所有python套件

使用pip-review來協助更新 安裝後執行按a(All)即可 pip install pip-review pip-review --local --interactive 參考資料 https://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip

執行object detection 發生錯誤:cannot import name 'preprocessor_pb2'

執行object detection專案時,一切設定完成要進行train時 發生錯誤:cannot import name 'preprocessor_pb2' 解決方法: 執行指令: protoc object_detection/protos/*.proto --python_out=. 在https://github.com/tensorflow/models下載後 下來的根目錄 models / research /執行該指令

tesseract is not installed or it's not in your path

在進行驗證碼解析需要用到的python套件tesseract-ocr 始終會出現路徑找不到的問題 錯誤: tesseract is not installed or it's not in your path 解法: 修改套件原始路徑 C:\Users\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pytesseract\pytesseract.py tesseract_cmd = 'tesseract' 改為 tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' 將路徑改為另外安裝的Tesseract-OCR路徑就可以抓到了

It's not your fault

最近看完了心靈捕手的電影 一句『這不是你的錯』讓我久久不能自己,或許是因為最近的經歷,讓我有如此深刻的體悟,自己的運氣還不錯,有遇到自己的心靈導師,一直以來都希望自己是獨立而不用去麻煩別人的,努力充實自己的能力,嘗試著用自己的能力去賺錢,養活自己,總是兢兢業業的過著生活,每一天每一分鐘,都覺得呼吸的空氣會讓我窒息,但還是不想麻煩別人,不想將這份負能量傳達給任何人,這份自以為的“獨立”似乎是根生蒂固的在心裏,但社會總是現實,生活亦是,不管你做了多少努力,還是會重重的把你拍在地上,可能是能力不足,也可能是時間不夠,跟社會打交道了幾次,嗚著嘴壓抑著,眼淚還是留下來了,不能說的獨立還在,但懷抱著夢想的少年已經消失,曾經是對任何事都充滿熱情,勇於嘗試的自己,在近幾年已經看不見,我害怕,穩定就好了.

bcb C++ Builder無法讀取JPG

圖片
問題 使用C++ Builder TImage讀取圖片路徑 Image1->Picture->LoadFromFile("icant.jpeg"); 出現錯誤unknown picture file extension (.jpg) 解決方法 加入 #include <JPEG.HPP> 如果還不能使用,則調整圖片,如換張,或轉檔為jpg,jpeg,png等

android錯誤:Error converting bytecode to dex:

Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file. ...while parsing org/tensorflow/DataType.class 修改buidle.gradle版本 buildscript { repositories { } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' } } android { compileSdkVersion 26 buildToolsVersion "26.0.1" }

tensorboard運作錯誤

訓練完tensorflow後想要用tensorboard看log資料卻跳出錯誤 (tensorflow) C:\WINDOWS\system32>tensorboard --logdir /tmp/retrain_logs Traceback (most recent call last):   File "c:\users\im\anaconda3\envs\tensorflow\lib\runpy.py", line 193, in _run_module_as_main     "__main__", mod_spec)   File "c:\users\im\anaconda3\envs\tensorflow\lib\runpy.py", line 85, in _run_code     exec(code, run_globals)   File "C:\Users\im\Anaconda3\envs\tensorflow\Scripts\tensorboard.exe\__main__.py", line 9, in <module>   File "c:\users\im\anaconda3\envs\tensorflow\lib\site-packages\tensorboard\main.py", line 39, in main     return program.main(default.get_plugins(),   File "c:\users\im\anaconda3\envs\tensorflow\lib\site-packages\tensorboard\default.py", line 71, in get_plugins     debugger = debugger_plugin_loader.get_debugger_plugin()   File "c:\users\im\anaconda3\envs\tensorflow\lib\site-packages\tensorboard\plugins\debugger\debugger_pl...