Git Product home page Git Product logo

sod100k's People

Contributors

gasvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sod100k's Issues

测试过程中报错

Traceback (most recent call last):
File "D:\Paper\object detection paper\salient object detection\SOD100K-master\CSNet\test.py", line 130, in
main()
File "D:\Paper\object detection paper\salient object detection\SOD100K-master\CSNet\test.py", line 52, in main
test(model, cfg.TEST.DATASETS, loadepoch)
File "D:\Paper\object detection paper\salient object detection\SOD100K-master\CSNet\test.py", line 86, in test
img = np.transpose((img - mean) / std, (2, 0, 1))
ValueError: operands could not be broadcast together with shapes (224,224) (3,)

Unresolved reference 'redefine_model'

Hi! First of all, thanks for sharing your great work on salient object detection!

When i reading the source code 【SOD100K/CSNet_training/model/csnet.py/build_model]】
I cannot find the implementation of the function 'redefine_model' in line918.

please give me some help!

ModuleNotFoundError: No module named 'yacs

when run "python test.py --config configs/csnet-L-x2.yml",I met this error. The 'yacs is a packge written by yourself or come with python. Please help me. Thank you and best wish.
Traceback (most recent call last):
File "test.py", line 9, in
from configs import cfg
File "/home/sln/SOD/SOD100K-master/CSNet_training/configs/init.py", line 2, in
from .defaults import _C as cfg
File "/home/sln/SOD/SOD100K-master/CSNet_training/configs/defaults.py", line 2, in
from yacs.config import CfgNode as CN
ModuleNotFoundError: No module named 'yacs

csnet-L-x1

Hi, if I want to train csnet-L-x1 model, what should I do ?

saliency maps

You only provide the saliency maps of CSF+Res2Net. Can you provide the saliency maps of CSNet?

Question about resize with mode='reflect' for CSNet

Hi! First of all, thanks for sharing your great work on salient object detection!

I'd like to ask about skimage.transform.resize in ${REPO_ROOT}/CSNet/test.py.

In the code, it passes 'reflect' to mode for skimage.transform.resize.

                    img = resize(img, (cfg.TEST.IMAGE_H, cfg.TEST.IMAGE_W),
                                 mode='reflect',
                                 anti_aliasing=False)

And I found it means:

Pads with the reflection of the vector mirrored on the first and last values of the vector along each axis.

Is there any reason you choose 'reflect' rather than others like 'empty'?

Actually, I usually handle object detectors and the most repos I've seen just zero-pad to keep aspect ratios.

Have you experienced a performance gap between 'reflect' and others like 'empty'?

CSF+Res2Net batch size

Hi, thanks for your wonderful work!
I met a size not match error when I try a bigger batch size. However, when I used my own dataset, it works. Do I ignore something about the DUTs dataset?

Export CSNet to ONNX error

thanks for your good research. I faced a problem when I export to onnx as below:
image

thanks for your help
best regards

[bug-report] test.py failed when loading gray-scale image in ECSSD dataset

0557.jpg is a gray-scale image in ECSSD dataset. when runing CSNet‘s testing code

python test.py --config configs/csnet-L-x2.yml

error will occur

Traceback (most recent call last):
File "test.py", line 135, in
main()
File "test.py", line 53, in main
test(model, cfg.TEST.DATASETS, loadepoch)
File "test.py", line 91, in test
img = np.transpose((img - mean) / std, (2, 0, 1))
ValueError: operands could not be broadcast together with shapes (224,224) (3,)

May be you can judge the gray-scale image & convert it into RGB image

img = skimage.img_as_float(
    io.imread(os.path.join(img_dir, img_name)))
if len(img.shape) == 2:
    img = skimage.color.gray2rgb(img)

speed

Can you report the speed of CSNet on a GTX 1080Ti GPU?

size mismatch after training model when running test

hello, i have trained my model but when runnng test.py am getting size mismatchsize mismatch error.

RuntimeError: Error(s) in loading state_dict for CSNet:
        size mismatch for stage0.0.conv1x1.conv.weight: copying a param with shape torch.Size([40, 3, 3, 3]) from checkpoint, the shape in current model is torch.Size([23, 3, 3, 3]).

关于backbone

请问有没有 ResNet50 的版本以及相应得到的saliency maps,而不是 Res2Net50

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.