image_through_model #49

Merged
brian merged 75 commits from image_through_model into main 2024-10-20 00:10:27 +02:00
Showing only changes of commit be6833ac6a - Show all commits
+2 -2
View File
@@ -35,10 +35,10 @@ from .visual_syntax import VisualSyntaxTail
class VisualCommunicationModel(nn.Module):
"""Visual communication model."""
def __init__(self):
def __init__(self, download_resnet_weights: bool = False):
super().__init__()
# store other models
self.resnet_head = ResNet18Head()
self.resnet_head = ResNet18Head(download_resnet_weights)
self.visual_syntax_tail = VisualSyntaxTail()
self.contact_tail = ContactTail()
self.angle_tail = AngleTail()