Skip to content

Commit

Permalink
fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Sep 21, 2023
1 parent 4e1a193 commit fa3e095
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/architectures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,8 +1206,11 @@ def instantiate_layers(self):
if level5_tensor_shape % 1 == 0:
level5_tensor_shape = int(level5_tensor_shape)
else:
raise ModelConfigError('Last layer dimensions do not seem to be'
raise ModelConfigError('Last layer dimensions do not seem to be '
'integers.')
# why the kernel in the size of the feature map?
# cite: these fully connected layers can also be viewed as
# convolutions with kernels that cover their entire input regions
self.level5_classifier_layers.append(
ConvBlock((self.nr_filters * (2 ** 4) * 4, ),
((level5_tensor_shape, level5_tensor_shape, ), ),
Expand Down Expand Up @@ -1251,6 +1254,7 @@ def instantiate_layers(self):
self.upsamples.append(
UpSampling2D(size=(2, 2),
name=f'upsampling_{i}_to_{i - 1}'))
# seems like only 1x1 convolutions are in the upper levels
self.classifiers.append(Conv2D(
self.nr_classes,
(1, 1),
Expand Down

1 comment on commit fa3e095

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src
   architectures.py3856184%75, 88, 100, 114, 150, 161, 561, 565, 590–608, 619–626, 718, 728, 798, 855–858, 915–921, 976, 999–1017, 1028–1034, 1073–1080, 1096, 1136, 1209, 1242–1244, 1246, 1281–1286
   cnn_lib.py3099868%48, 117, 128–142, 160, 171, 181–183, 195–201, 225, 270–273, 293–315, 409–420, 451–465, 529–534, 582–592, 651–655, 691–701, 763–777, 842–853, 894–903, 913–917, 938–945, 984–1003, 1014–1019, 1028
   data_preparation.py103991%35, 56, 60, 88, 107, 117, 125, 131, 183
   detect.py67670%3–186
   train.py834447%29, 41, 59, 96, 110, 147–272
   utils.py432151%53–60, 73–80, 94–105
   visualization.py916133%26–40, 75, 100–188
TOTAL108736167% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 172m 28s ⏱️

Please sign in to comment.