skumra / robotic-grasping

Antipodal Robotic Grasping using GR-ConvNet. IROS 2020.
Other
456 stars 119 forks source link

About the path of trained-network in evaluate.py #23

Open Jhonny-cell opened 3 years ago

Jhonny-cell commented 3 years ago

Thank you for your amazing work! When I reappear this code, I successfully run the train_network.py by cornell, but I meet some trouble in repappearing evaluate.py. Firstly, on the usual running, in my opinion, the trained-models would be saved in logs file, so what is the effect of the file of trained-models.(ps: maybe my guess is wrong.) Secondly, I haved input the logs's path(D:/code/RGB/robotic-grasping-master/robotic-grasping-master/logs/2012292242') and trained-models's path as the default of network in evaluate.py, but I meet this error(FileNotFoundError: [Errno 2] No such file or directory: 'D').(ps:I have tried another file's path,but the same error will be reported, just the difference of the first letter,such as trained-models,the error will be this([Errno 2] No such file or directory: 't'))) My mother tongue is not English. I'm sorry for my mistakes in grammar and words. I hope you can give me an answer to my question. Thank you.

skumra commented 3 years ago

You should be able to run evaluate.py on your own model. Here is an example: python evaluate.py --network <Path to Trained Network> --dataset cornell --dataset-path <Path to Dataset> --iou-eval

silver60229 commented 3 years ago

感謝您的出色工作! 當我重新出現這段代碼時,我成功地運行了cornell的train_network.py,但是在重新出現evaluate.py時遇到了一些麻煩。 首先,在通常的運行中,我認為訓練模型會保存在日誌文件中,那麼訓練模型文件的作用是什麼。(ps:也許我的猜測是錯誤的。) 其次,我已經輸入了日誌的路徑(D:/code/RGB/robotic-grasping-master/robotic-grasping-master/logs/2012292242')和trained-models的路徑作為evaluate.py中網絡的默認值,但我遇到這個錯誤(FileNotFoundError: [Errno 2] No such file or directory: 'D').(ps:我試過另一個文件的路徑,但會報同樣的錯誤,只是第一個字母的不同,比如trained -models,錯誤將是這個([Errno 2] No such file or directory: 't'))) 我的母語不是英語。我很抱歉我在語法和單詞上的錯誤。我希望你能回答我的問題。謝謝你。

I also encountered the same problem. Did you solve this problem? thx

Jhonny-cell commented 3 years ago

I have solved this problem. you can't add the default path in the evaluate.py, you must run this in terminal(just the 'cmd' in windows),cd to the dir, then run the evalution.py

在 2021-06-25 13:33:08,"silver60229" @.***> 写道:

感謝您的出色工作! 當我重新出現這段代碼時,我成功地運行了cornell的train_network.py,但是在重新出現evaluate.py時遇到了一些麻煩。 首先,在通常的運行中,我認為訓練模型會保存在日誌文件中,那麼訓練模型文件的作用是什麼。(ps:也許我的猜測是錯誤的。) 其次,我已經輸入了日誌的路徑(D:/code/RGB/robotic-grasping-master/robotic-grasping-master/logs/2012292242')和trained-models的路徑作為evaluate.py中網絡的默認值,但我遇到這個錯誤(FileNotFoundError: [Errno 2] No such file or directory: 'D').(ps:我試過另一個文件的路徑,但會報同樣的錯誤,只是第一個字母的不同,比如trained -models,錯誤將是這個([Errno 2] No such file or directory: 't'))) 我的母語不是英語。我很抱歉我在語法和單詞上的錯誤。我希望你能回答我的問題。謝謝你。

I also encountered the same problem. Did you solve this problem? thx

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

silver60229 commented 3 years ago

I have solved this problem. you can't add the default path in the evaluate.py, you must run this in terminal(just the 'cmd' in windows),cd to the dir, then run the evalution.py

Thank you very much for your answer,

what do you mean is "parser.add_argument('--network', metavar='N', type=str, nargs='+'," no need to add default='I:/robotic-grasping-master/logs/training ',? Then execute evalution.py directly in "cmd"? I use Anaconda to run on WIN10. Thanks again for your willingness to answer my question.