-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rt1-VIT-bert #14
base: main
Are you sure you want to change the base?
Rt1-VIT-bert #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
motion is the correct folder name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only need this, vit, tokenizers, and learner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete if unneeded.
"cuda" if torch.cuda.is_available() else "cpu" | ||
) | ||
model_name = 'bert-base-uncased' | ||
self.tokenizer = BertTokenizer.from_pretrained(model_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont reinitialize every call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This call is in the constructor / __init__
method. So its only initialized once when we create the Rt1Agent
object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
observation, action, history size, image size should not be hard coded, use the current ones in the file as default values in case the config doesn't specify them.
from mbodied_agents.types.controls import Motion | ||
|
||
|
||
class MotorAgent(ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherits from Agent.
b560b84
to
1a6af9c
Compare
Changed EfficientNet to ViT and Integrated BERT Text Encoder for
rt1
Description
This update replaces the existing EfficientNet model with a Vision Transformer (ViT) and integrates a BERT text encoder for
rt1
. The current implementation includes a dummy sample to test the network functionality. The training part is not included in this update.Summary:
How Has This Been Tested?
The changes have been verified by running a dummy sample to ensure the network functionality works as expected.
Testing:
Checklist