Giter Club home page Giter Club logo

clda-2022's Introduction

Confident Learning-Based Domain Adaptation for Hyperspectral Image Classification

January 2022 IEEE Transactions on Geoscience and Remote Sensing 60:1-1 Follow journal DOI: 10.1109/TGRS.2022.3166817 This is a code demo for the paper "Confident Learning-Based Domain Adaptation for Hyperspectral Image Classification"

Some of our code references the projects

Requirements

CUDA = 10.2

Python = 3.7

Pytorch = 1.5

sklearn = 0.23.2

numpy = 1.19.2

cleanlab = 1.0

dataset

You can download the hyperspectral datasets in mat format at:https://pan.baidu.com/s/184BXDD2KnlreqXX70Nar4Q?pwd=kfgj, and move the files to ./datasets folder.

An example dataset folder has the following structure:

datasets
├──Indiana
│   ├── DataCube.mat
├── Houston
│   ├── Houston13.mat
│   └── Houston13_7gt.mat
│   ├── Houston18.mat
│   └── Houston18_7gt.mat
├── Pavia
│   ├── paviaU.mat
│   └── paviaU_gt_7.mat
│   ├── pavia.mat
│   └── pavia_gt_7.mat
│── Shanghai-Hangzhou
│   └── DataCube.mat

Usage:

Take CLDA method on the UP2PC dataset as an example:

  1. Open a terminal or put it into a pycharm project.
  2. Put the dataset into the correct path.
  3. Run CLDA_UP2PC.py. `

clda-2022's People

Contributors

li-zk avatar fang-zhuoqun avatar

Stargazers

 avatar FuxiangZhai avatar Felipe avatar  avatar  avatar  avatar  avatar jg_zhao avatar  avatar Wenxin Su avatar  avatar whper07 avatar  avatar  avatar  avatar  avatar Irfan Ahmad avatar  avatar Yazhen Wang avatar  avatar Unqua avatar  avatar Xin Zhao avatar Perseverance avatar Zhe Meng avatar

Watchers

 avatar  avatar

clda-2022's Issues

关于伪标签的获取

李老师,您好
拜读了您的文章,我有个问题想请教一下
您的代码中是if (ep >= train_num and ep < num_epoch) and ep % 20 == 0: 才会获取fake_label并clean data,用confident 目标域的data和fake_label去训练。但是在训练过程中您的代码中
if ep >= train_epoch:
(data_s, label_s), (data_t, fake_label_t) = data
fake_label_t = Variable(fake_label_t).cuda()
您的train_num =train_epoch ,您代码中的设置都为20
如果ep=21 那么这时候就不会获取fake_label,而您 (data_s, label_s), (data_t, fake_label_t) = data 这行代码中获取的fake_label_t 不就是目标域的真实标签吗?
可能理解的不对,请您赐教,万分感谢

AttributeError

AttributeError: module 'cleanlab' has no attribute 'latent_estimation'
您好,非常感谢您的研究成果,请问cleanlab这个模块在使用的时候,对应的版本号为多少?
我当前使用的cleanlab==2.1.0,但是在CLDA-2022-main/CLDA_UP2PC.py的223行 label_error_indices = cleanlab.latent_estimation.compute_confident_joint(
出现了AttributeError这个错误,请您能讲解一下这个模块的使用吗?
谢谢您

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.