Skip to content

Commit

Permalink
closing in
Browse files Browse the repository at this point in the history
  • Loading branch information
waifairer committed Oct 20, 2023
1 parent 55d5b2e commit d7095da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/mask_rcnn/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def simple():
img_metadata = coco.loadImgs(random_img_id)[0]
img_filename = os.path.join(BASEDIR, 'train2017', img_metadata['file_name'])
print("training", img_filename)
print("tensors allocated", tensors_allocated())
print_gpu_memory("before_load_no_transforms")
t = Tensor(np.array(Image.open(img_filename).convert("RGB")), requires_grad=True).realize()
print("tensors allocated", tensors_allocated())
Expand Down

0 comments on commit d7095da

Please sign in to comment.