Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgil committed Oct 7, 2024
1 parent a6f7d2a commit 7b30afe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_context_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ def test_memory_usage_in_loop(numpy_image, batch_size, width, height,

if i == 0:
initial_memory = psutil.virtual_memory()[2]
assert(psutil.virtual_memory()[2] <= initial_memory * 1.1)
assert(psutil.virtual_memory()[2] <= initial_memory * 1.5)
1 change: 0 additions & 1 deletion tests/test_one_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def test_memory_usage_in_loop(numpy_image, cam_method):
input_tensor = torch.from_numpy(
np.float32(gray_img)).unsqueeze(0).unsqueeze(0)
input_tensor = input_tensor.repeat(16, 1, 1, 1)
print("input_tensor", input_tensor.shape)
targets = None
with cam_method(model=model,
target_layers=target_layers) as cam:
Expand Down

0 comments on commit 7b30afe

Please sign in to comment.