Code Monkey home page Code Monkey logo

lsnet's Introduction

LSNet

Official implementation of "LSNet: Extremely lightweight Siamese Network for Change Detection in Remote Sensing Images". arxiv|IGARSS2022

Requirements

We use python/pytorch/torchvision versions as follow:

  • python 3.7
  • pytorch 1.10.0
  • torchvision 0.11.1

You can try a lower version, but the python version is no less than 3.6 and the pytorch version is not less than 1.5. If you have any questions, please submit issue.

Dataset

We use CDD dataset from Change Detection in Remote Sensing Images Using Conditional Adversarial Networks

Train

For training, you can modify parameters in "metadata.json", or just keep the default and:

python train.py

Test

All the pre-trained models have been upload in ./weights, you can modify "model name" in "metadata.json" and

python eval.py

Noted that the source code has been reconstructed and the results are a little different from the paper. But still keeping efficient.

Citation

If you feel it useful, please star and cite our work:

@inproceedings{liu2022lsnet,
  title={LSNET: Extremely Light-Weight Siamese Network for Change Detection of Remote Sensing Image},
  author={Liu, Biyuan and Chen, Huaixin and Wang, Zhixi and Xie, Wenqiang and Shuai, LingYu},
  booktitle={IGARSS 2022-2022 IEEE International Geoscience and Remote Sensing Symposium},
  pages={2358--2361},
  year={2022},
  organization={IEEE}
}

References

Note that the source code is implemented with reference to SNUNet.

lsnet's People

Contributors

qaz670756 avatar

Stargazers

 avatar  avatar  avatar  avatar Xia Lei avatar  avatar Nick Debeurre avatar  avatar  avatar  avatar  avatar  avatar Jiawei Jiang avatar Agustin avatar  avatar  avatar  avatar João Siqueira avatar Fernando Tentor avatar  avatar Francesco avatar Robin Cole avatar Yanll avatar  avatar  avatar  avatar Yizhou Chen avatar

Watchers

 avatar

lsnet's Issues

eval

Hello, why is it taking a long time when I run the eval.py file, my GPU doesn't seem to be working, but my CPU is fully loaded。what shoud I do?thanks!

Resume Training

Hello,

One question, is there a way to continue training from a saved epoch / checkpoint?

Because I am training the model using the Google Colab GPUs and every so often the execution is interrupted, and I have to start the training again from 0.

Thank you in advance

Error reproducing the results

Hello!

I am trying to reproduce the results of the paper.

When I run eval.py I get the following error: FileNotFoundError: [Errno 2] No such file or directory: 'tmp/LSNet_thin_diffFPN/checkpoint_epoch_100.pt'

I already created the ./tmp directory and the ./tmp/LSNet_thin_diffFPN directory that are not created in the repository, but what to do with "checkpoint_epoch_100.pt"?

I created a virtual environment with all the versions of the libraries corresponding to the date of October 21, 2022, which is the date of the code. That is, I am using python 3.7, pytorch 1.10.0, scikit-image 0.19.0, scikit-learn 1.0.2, torchvision 0.11.0, torchaudio 0.10.0, tensorboardx 2.4.1, opencv-python 4.5.4.58

Thank you in advance!

About the contra_hybrid_loss

the loss named bce_loss,but infact you used FOCAL_loss when calculating BCE_loss.Is this the result of negligence?

The results

I deleted the function of profile() and its results in the project. Will this operation change the results?Thank you.

output binary image

Instead of outputting the binary image of the test set, it is directly compared with the standard result to obtain the accuracy. Can you tell me how to output the binary image of the test set? Thank you.

Problems for train.

When I try "python train.py", it appeared "torch.nn.modules.module.ModuleAttributeError: 'AdaptiveAvgPool2d' object has no attribute 'total_ops'". Is this a question of my torch version?

Our version:
Python 3.8.13

torch.version
'1.7.1+cu101'
torchvision.version
'0.8.2+cu101'

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.