yunkun-zhang / cite Goto Github PK
View Code? Open in Web Editor NEWOfficial code of MICCAI'23 paper "Text-guided Foundation Model Adaptation for Pathological Image Classification"
Official code of MICCAI'23 paper "Text-guided Foundation Model Adaptation for Pathological Image Classification"
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?
Very nice work, can you provide 'data/gastric_cls3_ann/train_all_0.2.txt' please?
Thx
Hi, where is the paper for this method? The link does not seem to work. Thanks.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.