Skip to content

Commit 7b30afe

Browse files
committed
tests
1 parent a6f7d2a commit 7b30afe

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/test_context_release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def test_memory_usage_in_loop(numpy_image, batch_size, width, height,
6565

6666
if i == 0:
6767
initial_memory = psutil.virtual_memory()[2]
68-
assert(psutil.virtual_memory()[2] <= initial_memory * 1.1)
68+
assert(psutil.virtual_memory()[2] <= initial_memory * 1.5)

tests/test_one_channel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def test_memory_usage_in_loop(numpy_image, cam_method):
3939
input_tensor = torch.from_numpy(
4040
np.float32(gray_img)).unsqueeze(0).unsqueeze(0)
4141
input_tensor = input_tensor.repeat(16, 1, 1, 1)
42-
print("input_tensor", input_tensor.shape)
4342
targets = None
4443
with cam_method(model=model,
4544
target_layers=target_layers) as cam:

0 commit comments

Comments
 (0)