Comments (2)
Hi, thank you for your interest in our work.
To add additional channel, you can modify function here: https://github.com/KMnP/vpt/blob/main/src/models/vit_prompt/vit.py#L75
More specifically, you can concat the prompt to x before x = self.embeddings(x)
.
And remember to modify the embedding layer's size due to the added channel. And you could use https://github.com/KMnP/vpt/blob/main/src/models/vit_models.py#L98 to leave the embedding layer unfrozen.
from vpt.
@kouyk Will close this issue due to no further comments. Feel free to reopen it if you have more questions!
from vpt.
Related Issues (20)
- What is the relationship between train.py and tune*.py? HOT 1
- GPU issue HOT 1
- What is the use of grid search HOT 2
- How did you set the random seed of Table 1. HOT 1
- AssertionError: Datasets/Stanford_Dogs/train.json dir not found HOT 2
- About stanford cars HOT 1
- About your released performance file(xxxx.csv)
- How to evaluate if I get a checkpoint file? HOT 1
- After joining the prompt, has the dimension changed? HOT 1
- Compared with full fine-tuning, did the training time get reduced?
- Dataset Link Update HOT 1
- TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
- Segmentation task
- CUB dataset HOT 2
- Wrong MoCo-v3 pretrained weights?
- How to perform segmentation task on my own segmentation dataset?
- How to train? HOT 1
- Run the final evaluation using the full training data? HOT 1
- Result summarization wrong?
- Hello, save model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vpt.