Git Product home page Git Product logo

Comments (15)

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

Thank you for your interest in our work. I recommend that you follow these two repositories.
https://github.com/jeonsworld/ViT-pytorch
https://github.com/kentaroy47/vision-transformers-cifar10

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

I just quickly checked the code, and it seems that the checkpoint was not loaded successfully (--checkpoint). I will further check and correct the code.

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

Thanks, we will update the code.

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

This repository has the ResNet config, you could follow it.
https://github.com/kentaroy47/vision-transformers-cifar10

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

@Yangsenqiao Hi, friend, could you kindly share your source model training code? (It is warmup (initialization process) right?) I assume you attached ViDAInjectedLinear to ViT. And my paper, BECoTTA shares the same sprits. I would really appreciate if you share your code to reimplement your method clearly. Thanks!

Hi, Daeun, I am happy to see your new work 😃. Additionally, I have included your paper in our recently organized repository focus on awesome-CTTA related paper. I suggest that you cite more related work in your paper to help readers understand the context of this research topic 👍.

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024 1

@Yangsenqiao, friend, I addressed it by directly assigning a checkpoint path here. If someone has similar problem, it could be addressed like below. Thanks for your quick reply.

  base_model = torch.nn.DataParallel(base_model) # make parallel
  checkpoint = torch.load('/d1/daeun/vida/cifar/dataset/vit_base_384_cifar10.t7')
  base_model.load_state_dict(checkpoint['model'], strict=False)

These bugs have been fixed. Thanks!

from vida.

daeunni avatar daeunni commented on August 22, 2024

Thanks a lot Yangsenqiao!

Btw, while reimplementing your code and running source_vit.sh with the CIFAR10 dataset, I got pretty different source-only results like below.

[24/03/22 16:27:47] [cifar10c_vit.py:   68]: not resetting model
[24/03/22 16:29:41] [cifar10c_vit.py:   87]: error % [gaussian_noise5]: 88.48%
[24/03/22 16:29:41] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:31:37] [cifar10c_vit.py:   87]: error % [shot_noise5]: 87.51%
[24/03/22 16:31:37] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:33:33] [cifar10c_vit.py:   87]: error % [impulse_noise5]: 92.07%
[24/03/22 16:33:33] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:35:29] [cifar10c_vit.py:   87]: error % [defocus_blur5]: 89.76%
[24/03/22 16:35:29] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:37:26] [cifar10c_vit.py:   87]: error % [glass_blur5]: 89.25%
[24/03/22 16:37:26] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:39:34] [cifar10c_vit.py:   87]: error % [motion_blur5]: 88.75%
[24/03/22 16:39:34] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:41:32] [cifar10c_vit.py:   87]: error % [zoom_blur5]: 89.07%
[24/03/22 16:41:32] [cifar10c_vit.py:   70]: not resetting model
[24/03/22 16:43:29] [cifar10c_vit.py:   87]: error % [snow5]: 89.86%
[24/03/22 16:43:29] [cifar10c_vit.py:   70]: not resetting model

I just utilized these config you provided.

MODEL:
  ADAPTATION: source
  ARCH: Standard_VITB
DATA_DIR: /dataset
TEST:
  BATCH_SIZE: 40
CORRUPTION:
  DATASET: cifar10
  SEVERITY:
    - 5
  TYPE:
    - gaussian_noise
    - shot_noise
    - impulse_noise
    - defocus_blur
    - glass_blur
    - motion_blur
    - zoom_blur
    - snow
    - frost
    - fog
    - brightness
    - contrast
    - elastic_transform
    - pixelate
    - jpeg_compression

I would be really appreciate if you have some ideas!

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024

from vida.

daeunni avatar daeunni commented on August 22, 2024

@Yangsenqiao, friend, I addressed it by directly assigning a checkpoint path here. If someone has similar problem, it could be addressed like below. Thanks for your quick reply.

  base_model = torch.nn.DataParallel(base_model) # make parallel
  checkpoint = torch.load('/d1/daeun/vida/cifar/dataset/vit_base_384_cifar10.t7')
  base_model.load_state_dict(checkpoint['model'], strict=False)

from vida.

daeunni avatar daeunni commented on August 22, 2024

Thanks a lot. I think some elements in the config .yaml file are not working.

from vida.

daeunni avatar daeunni commented on August 22, 2024

Senqiao, also may I ask how did you train ViDA source model (WideResNet-28)? (not ViT backbone)

from vida.

daeunni avatar daeunni commented on August 22, 2024

Thanks, you are the best!

from vida.

daeunni avatar daeunni commented on August 22, 2024

@Yangsenqiao Hi, friend, could you kindly share your source model training code? (It is warmup (initialization process) right?)
I assume you attached ViDAInjectedLinear to ViT. And my paper, BECoTTA shares the same sprits. I would really appreciate if you share your code to reimplement your method clearly. Thanks!

from vida.

Yangsenqiao avatar Yangsenqiao commented on August 22, 2024

Thank you for your interest in our work. I recommend that you follow these two repositories. https://github.com/jeonsworld/ViT-pytorch https://github.com/kentaroy47/vision-transformers-cifar10

And our training code follows these GitHub repositories. We first train the source model, then add the ViDA to the source model, freezing the backbone ❄️ to tune the adapter 🔥.

from vida.

TyroneLi avatar TyroneLi commented on August 22, 2024

@Yangsenqiao Hi, friend, could you kindly share your source model training code? (It is warmup (initialization process) right?) I assume you attached ViDAInjectedLinear to ViT. And my paper, BECoTTA shares the same sprits. I would really appreciate if you share your code to reimplement your method clearly. Thanks!

Hi, Daeun, I am happy to see your new work 😃. Additionally, I have included your paper in our recently organized repository focus on awesome-CTTA related paper. I suggest that you cite more related work in your paper to help readers understand the context of this research topic 👍.

For sure, why have not you released the segmentation part codes yet?????

from vida.

Related Issues (14)

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.