broccoli-ml 0.4.3__tar.gz → 0.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/PKG-INFO +1 -1
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/vit.py +2 -2
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/pyproject.toml +1 -1
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/LICENSE +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/README.md +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/__init__.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/activation.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/assets/2025_resnet_imagenet_1k_pretrained_state_dict.pkl +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/assets/cifar100_eigenvectors_size_2.pt +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/assets/cifar100_eigenvectors_size_3.pt +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/cnn.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/eigenpatches.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/linear.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/rope.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/tensor.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/transformer.py +0 -0
- {broccoli_ml-0.4.3 → broccoli_ml-0.4.4}/broccoli/utils.py +0 -0
@@ -160,7 +160,7 @@ class DCTEncoder(nn.Module):
|
|
160
160
|
if pooling_type in ["maxpool", None]:
|
161
161
|
cnn_out_channels = transformer_embedding_size
|
162
162
|
elif pooling_type == "concat":
|
163
|
-
cnn_out_channels =
|
163
|
+
cnn_out_channels = max(
|
164
164
|
math.floor(transformer_embedding_size / pooling_kernel_voxels),
|
165
165
|
minimum_cnn_out_channels,
|
166
166
|
)
|
@@ -333,8 +333,8 @@ class DCT(nn.Module):
|
|
333
333
|
msa_dropout=0.1,
|
334
334
|
stochastic_depth=0.1,
|
335
335
|
batch_norm_outputs=True,
|
336
|
-
linear_module=nn.Linear,
|
337
336
|
initial_batch_norm=True,
|
337
|
+
linear_module=nn.Linear,
|
338
338
|
image_classes=100,
|
339
339
|
):
|
340
340
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|