Coder Social home page Coder Social logo

bgnet's People

Contributors

thograce 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

Watchers

 avatar  avatar

bgnet's Issues

When I test I get the following error

When I test I get the following error:

Traceback (most recent call last):
File "etest.py", line 30, in
image, gt, name = test_loader.load_data()
File "/data/zjb/camo/BGNet-master/utils/tdataloader.py", line 113, in load_data
gt = self.binary_loader(self.gts[self.index])
IndexError: list index out of range

What's wrong with this error?

isn't the lower the loss, the better the effect of the model?

Hello! I have now set the batchsize to 16 and the epoch of your source code to 25, but I set the epoch to 500, while I train and test, I find that the loss will continue to decrease when the epoch exceeds 25, so I think the model After the epoch exceeds 25, the effect should be better, so I tested it when epoch=126, but the test results are still different from the original paper. I would like to ask, isn't the lower the loss, the better the effect of the model? ?

why use the gray image to train model

i see that the input channel of the pretrained model is the gray image,why selecting the gray image to train the model ,if using the rgb image to train model ,the performance of the model will be better?when train the stereo matching model ,which image should be used,the gray image or rgb image? thank you

number of test dataset

I have a question about the number of pictures in the test dataset,test image is not 4k in cod10k??I found only 2026 pictures in your test dataset

edge image

Where to find the training set of edge image

About pre-computed map for other model

Thanks for your nice work.
When I use the eval.py file to evaluate a pre-computed map for another model, I get the following error:

Traceback (most recent call last):
File "D:/1_code/1Net/eval.py", line 32, in
FM.step(pred=pred, gt=mask)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\py_sod_metrics\sod_metrics.py", line 67, in step
adaptive_fm = self.cal_adaptive_fm(pred=pred, gt=gt)
File "D:\Anaconda3\envs\pytorch\lib\site-packages\py_sod_metrics\sod_metrics.py", line 84, in cal_adaptive_fm
area_intersection = binary_predcition[gt].sum()
IndexError: boolean index did not match indexed array along dimension 1; dimension is 700 but corresponding boolean dimension is 702

could you tell what problems in me my steps.

Test problem

When I test I get the following error:
None of the test results matched the original image
The result is not related to the original image
For example:
image
image
What's the problem, please?

about the evalution

we dowmnoaded the BGNet.pth ,then run the etest.py to generate the predicted results, finally I run the eval.py. I get the final evalution metrics. But I found that the metric results which I tested has a big gap with that in the paper. could you tell what problems in me my steps. It is very importance for me! thanks your great contrubitions!

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

When I replay eval.py I get the following error when test the :
'maxFm': 0.7736841486165681}
63%|██████▎ | 2605/4121 [06:05<02:38, 9.59it/s][ WARN:[email protected]] global /io/opencv/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('./results/BGNet/NC4K/429.png'): can't open/read file: check file path/integrity
63%|██████▎ | 2606/4121 [06:05<03:32, 7.13it/s]
Traceback (most recent call last):
File "/ssdhome/qzb521/abc/BGNet/eval.py", line 30, in
FM.step(pred=pred, gt=mask)
File "/home/qzb521/miniconda3/envs/sinet/lib/python3.9/site-packages/py_sod_metrics/sod_metrics.py", line 65, in step
pred, gt = _prepare_data(pred, gt)
File "/home/qzb521/miniconda3/envs/sinet/lib/python3.9/site-packages/py_sod_metrics/sod_metrics.py", line 23, in _prepare_data
pred = pred / 255
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

It maybe not generate the predict image before eval it? What's wrong with this error?

关于多卡训练的问题

您好,关于多卡的训练,我修改了两处地方,包括如下:
os.environ["CUDA_VISIBLE_DEVICES"] = "0,1,2,3"
def train(train_loader, model, optimizer, epoch):
model = torch.nn.DataParallel(model, device_ids=[0, 1, 2]).cuda() #添加
model.train()
[训练后的模型经过测试发现结果全是灰色图,如下
image
想问下您是否知道出了什么问题呢,万分感谢

calculate the camouflaged object edge

Thanks for sharing the code.
I don't know how you calculate the camouflaged object edge( ground truth: Ge) based on the camouflaged object mask. Because the edge ground truth will be used in the loss function.
So, can you tell me how to get the camouflaged object edge map?

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.