Update 'tac_ssl_tag.py'

This commit is contained in:
Vedant Dave 2023-09-12 14:07:39 +00:00
parent 913e000336
commit 5634afcfcd

View File

@ -318,6 +318,7 @@ if __name__ == "__main__":
# Initialize optimizer # Initialize optimizer
modules = list(model.vision_base_q.parameters()) + list(model.tactile_base_q.parameters()) + list(model.phi_vision_q.parameters()) + list(model.phi_tactile_q.parameters()) + \ modules = list(model.vision_base_q.parameters()) + list(model.tactile_base_q.parameters()) + list(model.phi_vision_q.parameters()) + list(model.phi_tactile_q.parameters()) + \
list(model.Phi_vision_q.parameters()) + list(model.Phi_tactile_q.parameters()) list(model.Phi_vision_q.parameters()) + list(model.Phi_tactile_q.parameters())
optimizer = optim.Adam(modules, lr=0.03)
classifier, criterion = None, None classifier, criterion = None, None
else: else:
# Initialize training # Initialize training