Upload 18 files
Browse files
milk10k_effb2_metadata/__pycache__/models.cpython-314.pyc
CHANGED
|
Binary files a/milk10k_effb2_metadata/__pycache__/models.cpython-314.pyc and b/milk10k_effb2_metadata/__pycache__/models.cpython-314.pyc differ
|
|
|
milk10k_effb2_metadata/models.py
CHANGED
|
@@ -91,6 +91,8 @@ class DualEffB2MetadataClassifier(nn.Module):
|
|
| 91 |
) -> torch.Tensor:
|
| 92 |
clinical_features = self.clinical_encoder(clinical)
|
| 93 |
dermoscopic_features = self.dermoscopic_encoder(dermoscopic)
|
|
|
|
|
|
|
| 94 |
clinical_repr = self.clinical_head(clinical_features)
|
| 95 |
dermoscopic_repr = self.dermoscopic_head(dermoscopic_features)
|
| 96 |
metadata_repr = self.metadata_head(metadata)
|
|
|
|
| 91 |
) -> torch.Tensor:
|
| 92 |
clinical_features = self.clinical_encoder(clinical)
|
| 93 |
dermoscopic_features = self.dermoscopic_encoder(dermoscopic)
|
| 94 |
+
clinical_features = torch.flatten(clinical_features, 1)
|
| 95 |
+
dermoscopic_features = torch.flatten(dermoscopic_features, 1)
|
| 96 |
clinical_repr = self.clinical_head(clinical_features)
|
| 97 |
dermoscopic_repr = self.dermoscopic_head(dermoscopic_features)
|
| 98 |
metadata_repr = self.metadata_head(metadata)
|