Giter Club home page Giter Club logo

cite's People

Contributors

yunkun-zhang 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

Watchers

 avatar  avatar  avatar

cite's Issues

Can you provide trained weight file?

Hi! thanks for your great work. I tried using your code for training, but the accuracy of the training was not as high as you described in the article. can you provide the weight file that you have trained?

data

Very nice work, can you provide 'data/gastric_cls3_ann/train_all_0.2.txt' please?

Thx

Paper

Hi, where is the paper for this method? The link does not seem to work. Thanks.

ModuleNotFoundError: No module named 'models'

I ran the code as instructed, but encountered the following error.
While running this code: "!mim train mmcls /configs/gastric/cite/clip-vitb16_biolinkbert-l_cb_bs128_i1000.py"
Did I make any mistake here? Can you correct it for me?
Thank you a lot for your code.
image

RuntimeError: mat1 and mat2 must have the same dtype

When I use clip-vitb16_biolinkbert-l_cb_bs128_i1000.py as the config to run the model,there are some mistake.
Traceback (most recent call last):
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/.mim/tools/train.py", line 205, in
main()
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/.mim/tools/train.py", line 193, in main
train_model(
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/apis/train.py", line 233, in train_model
runner.run(data_loaders, cfg.workflow)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcv/runner/iter_based_runner.py", line 145, in run
iter_runner(iter_loaders[i], **kwargs)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcv/runner/iter_based_runner.py", line 65, in train
outputs = self.model.train_step(data_batch, self.optimizer, **kwargs)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/models/classifiers/base.py", line 139, in train_step
losses = self(**data)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcv/runner/fp16_utils.py", line 119, in new_func
return old_func(*args, **kwargs)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/models/classifiers/base.py", line 83, in forward
return self.forward_train(img, **kwargs)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/models/classifiers/image.py", line 141, in forward_train
x = self.extract_feat(img)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/mmcls/models/classifiers/image.py", line 117, in extract_feat
x = self.neck(x)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/home2/CITE-main/models/prompt_vit.py", line 139, in forward
x = super().forward(x)
File "/home2/anaconda3/envs/CITE2/lib/python3.9/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 must have the same dtype

CLIPTextHead missing 1 required positional argument: 'arch'

In the file "zeroshot_clip-vitb16_bs128_i1000.py", no arch parameter has been passed to the "head" in the code"head=dict(type='CLIPTextHead', texts=[prompt.format(t) for t in TEXTS]))".
image
But the class CLIPTextHead requires a parameter "arch" in the init funciton
image
which cause TypeError

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.