Git Product home page Git Product logo

sccan's People

Contributors

sam1224 avatar

Stargazers

 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

sccan's Issues

trainning detail

Thanks for sharing your work.
I have a small question.
Your paper indicates that the batch size is set to 8, but when using distributed training in the 5-shot setting (such as the figure below), doesn't the real batch size become 8*4=32?
image
image

some questions

Hello, and thank you for your kind words. While carefully reviewing the code, I noticed that the handling of support patches doesn't seem to align with what the paper describes as self-attention. Instead, it appears to resemble self-calibrated cross-attention, similar to how query patches are treated.Did I misunderstand?
At the same time, I would like to ask if you can provide the training time required for each stage of the project, depending on your training environment, thank you!

about BN

I wonder why most of the module's implementations don't work with BN?
The same is true for other few-shot segmentation paper implementations.

AssertionError: assert len(label_class) > 0 failed

I followed the provided instructions to download the model checkpoints and prepared the data folder as organized. I tried to use the provided base models to reproduce the results in the paper. However, The evaluation script failed shortly after a few iterations.

Here is the command line I used to invoke the evaluation process

(sccan) ➜  SCCAN git:(master) ✗ python test_sccan.py --config=config/pascal/pascal_split2_resnet101.yaml

Here is the generated output.

[2023-11-11 12:04:07,635 INFO test_sccan.py line 254 22439] Test: [200/1000] Data 0.003 (0.005) Batch 0.111 (0.117) Remain 00:01:33 Loss 0.7433 (0.9561) Accuracy 0.9135.
[2023-11-11 12:04:08,765 INFO test_sccan.py line 254 22439] Test: [210/1000] Data 0.003 (0.005) Batch 0.112 (0.117) Remain 00:01:32 Loss 0.2042 (0.9433) Accuracy 0.9357.
Traceback (most recent call last):
  File "test_sccan.py", line 294, in <module>
    main()
  File "test_sccan.py", line 150, in main
    fb_iou, miou, piou = validate(val_loader, model, val_seed, args.split)
  File "test_sccan.py", line 209, in validate
    for i, (input, target, s_input, s_mask, subcls, ori_label) in enumerate(val_loader):
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
    data = self._next_data()
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1085, in _next_data
    return self._process_data(data)
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1111, in _process_data
    data.reraise()
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/_utils.py", line 428, in reraise
    raise self.exc_type(msg)
AssertionError: Caught AssertionError in DataLoader worker process 7.
Original Traceback (most recent call last):
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
    data = fetcher.fetch(index)
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/roger/anaconda3/envs/sccan/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/roger/reproduction/SCCAN/util/dataset.py", line 229, in __getitem__
    assert len(label_class) > 0
AssertionError

I looked into this file. It seemed to have something to do with the segmentation masks, which I am not sure how to resolve.

Did you do any pre-processing for masks in the SegmentationClassAug folder? Would you mind sharing your processed Pascal dataset?

Unable to obtain model pretrained parameters.

Hello, I encountered some issues during the process of reproducing the experiment. The pre trained parameters need to be obtained through application. I hope to address this issue once I see it. Thank you for your contribution!

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.