JXingZhao / EGNet

EGNet:Edge Guidance Network for Salient Object Detection (ICCV 2019)
311 stars 62 forks source link

For testing:which path should I change? #1

Open wotaiaixx opened 4 years ago

wotaiaixx commented 4 years ago

In the dataset.py ,have much path,which which path should I change for the one picture? I can't find the test.lst file.

thanks for you read.

wotaiaixx commented 4 years ago

Or you could view it as how to generate this .lst

JXingZhao commented 4 years ago

For on image, what you should do is that you add the several lines in the line 86 of dataset.py.

For example, if you picture are called 1.jpg and in /data/test/img/. You should generate the test.lst first by ls command. Then you can add these code: else if sal_mode == 'abc': self.image_root = '/data/test/img/' self.image_source = '/data/test/test.lst' self.test_fold = '/data/test/' Then you run the python3 run.py --mode test --sal_mode abc You will get the result in /data/test/

发件人:wotaiaixx notifications@github.com 发送日期:2019-08-30 13:53:20 收件人:JXingZhao/EGNet EGNet@noreply.github.com 抄送人:Subscribed subscribed@noreply.github.com 主题:Re: [JXingZhao/EGNet] For testing:which path should I change? (#1) Or you could view it as how to generate this .lst — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

qqwinn commented 4 years ago

Hello, first, I need to emphasize that I just doing I a picture test. I have already slove all the procedural problem,but met CUDA out of memory,CUDA=4G then, I close the CUDA=Flase ,use CPU run this code,was killed. what should i do for this problem ?

JXingZhao commented 4 years ago

Hi, it maybe because of the limitation of cuda memory. You can try to run it by the GPU with larger memory.

发件人:qqwinn notifications@github.com 发送日期:2019-08-30 20:13:15 收件人:JXingZhao/EGNet EGNet@noreply.github.com 抄送人:JXingZhao zhaojiaxing@mail.nankai.edu.cn,Comment comment@noreply.github.com 主题:Re: [JXingZhao/EGNet] For testing:which path should I change? (#1) Hello, first, I need to emphasize that I just doing I a picture test. I have already slove all the procedural problem,but met CUDA out of memory,CUDA=4G then, I close the CUDA=Flase ,use CPU run this code,was killed. what should i do for this problem ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

qqwinn commented 4 years ago

If i use epoch_vgg.pth weight replace epoch_resnet.pth, where should i change ?

JXingZhao commented 4 years ago

Just change the 25 line in solver.py

cs19469 commented 2 years ago

For on image, what you should do is that you add the several lines in the line 86 of dataset.py. For example, if you picture are called 1.jpg and in /data/test/img/. You should generate the test.lst first by ls command. Then you can add these code: else if sal_mode == 'abc': self.image_root = '/data/test/img/' self.image_source = '/data/test/test.lst' self.test_fold = '/data/test/' Then you run the python3 run.py --mode test --sal_mode abc You will get the result in /data/test/ 发件人:wotaiaixx notifications@github.com 发送日期:2019-08-30 13:53:20 收件人:JXingZhao/EGNet EGNet@noreply.github.com 抄送人:Subscribed subscribed@noreply.github.com 主题:Re: [JXingZhao/EGNet] For testing:which path should I change? (#1) Or you could view it as how to generate this .lst — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

I get nothing.