Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error occur when evaling #55

Open
JusticeLin opened this issue Mar 16, 2023 · 1 comment
Open

error occur when evaling #55

JusticeLin opened this issue Mar 16, 2023 · 1 comment

Comments

@JusticeLin
Copy link

When I use"python hed.py --checkpoint ./data/hed_checkpoint.pt --output ./output-mypretrain --test",it will appear with_"FileNotFoundError: [Errno 2] No such file or directory: '.\hr\train_pair.lst_'",it make me so upset.By the way,the route "hr"is my folder for storing photo.
And I use the command as follow will result in other error:
cd eval
(echo "data_dir = '../output-mypretrain/test'"; cat eval_edge.m)|matlab -nodisplay -nodesktop -nosplash
**所在位置 行:1 字符: 47

  • (echo "data_dir = '../output-mypretrain/test'"; cat eval_edge.m)|matl ...
  •                                           ~
    

表达式中缺少右“)”。
所在位置 行:1 字符: 64

  • ... ho "data_dir = '../output-mypretrain/test'"; cat eval_edge.m)|matlab ...
  •                                                             ~
    

表达式或语句中包含意外的标记“)”。
所在位置 行:1 字符: 65

  • ... o "data_dir = '../output-mypretrain/test'"; cat eval_edge.m)|matlab - ...
  •                                                             ~
    

不允许使用空管道元素。
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInExpression**

Please tell me how I can eval successfully,in other words,what command shoule I take?
Thank you very much!!

@xwjabc
Copy link
Owner

xwjabc commented Mar 25, 2023

Hi @JusticeLin,

  1. For error "FileNotFoundError: [Errno 2] No such file or directory: '.\hr\train_pair.lst", please download the data from https://cseweb.ucsd.edu/~weijian/static/datasets/hed/hed-data.tar and make sure the train_pair.lst is in the correct path.
  2. The following evaluation command
    (echo "data_dir = '../output-mypretrain/test'"; cat eval_edge.m)|matlab -nodisplay -nodesktop -nosplash
    is tested on MATLAB for Linux. You may encounter error if you use MATLAB for Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants