purnasai / dino_v2 Goto Github PK
View Code? Open in Web Editor NEWDino V2 for Classification, PCA Visualization, Instance Retrival: https://arxiv.org/abs/2304.07193
Dino V2 for Classification, PCA Visualization, Instance Retrival: https://arxiv.org/abs/2304.07193
Hello! Thank you for sharing the great code. I have a question. Could you please explain why you applied 'transformer.norm' in the 'forward' function of 'DinoVisionTransformerClassifier'?
def forward(self, x):
x = self.transformer(x)
x = self.transformer.norm(x)
x = self.classifier(x)
return x
Hi, your repo is really helpful. I have one minor question, how do you know this threshold pca_features_bg = pca_features[:, 0] > 0.35
in third-party/Dino_V2/2.PCA_visualization.ipynb IN [10]
? I am not sure how to infer this number from the first histogram. Could you please explain it?
Moreover, according to the original paper of DINOv2
, it says Background is removed by removing patches with a negative score of the first PCA component. (Figure 9 caption)
May I ask what is the relationship between the negative score
and your chosen threshold. Many thanks!
Hello,
Thank you for sharing your great article on Medium and GitHub. I was inspired a lot.
In 3.DinoV2_VS_ResnetClassification.ipynb, you load the dinov2_vits14 model, and I don't see anywhere you freeze the parameters in the dinov2.
Does it mean that during the training process, you tune all the parameters in the DinoVisionTransformerClassifier
(including transformer and linear layer)?
Then does it mean that all the benefits come from the pretrained model and curated data is discarded?
Can you add requirements.txt file
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.