yun-liu / FastSaliency

Code for "SAMNet: Stereoscopically Attentive Multi-scale Network for Lightweight Salient Object Detection" and "Lightweight Salient Object Detection via Hierarchical Visual Perception Learning"
Other
52 stars 17 forks source link

train& test #8

Open SanQi888 opened 2 years ago

SanQi888 commented 2 years ago

model = net() test.py 和train.py中的这行代码net()下边一直有红线,是哪里出现问题了呢? test.py运行结果: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType train.py 运行结果如下 FileNotFoundError: [Errno 2] No such file or directory: './Data\DUTS-TR/ILSVRC2012_test_00000004.jpg'

SanQi888 commented 2 years ago

Testing and training Before running the code, you should first link the saliency datasets to the ROOT folder:

ln -s /path/to/saliency/datasets/ Data 这个具体要怎么做呢

yun-liu commented 2 years ago

ln -s 是Linux系统中的常用命令,建议您先学习一下怎么简单地使用Linux系统。