Hey,
sure!
print("The number of 0/1 labels: ",class_sample_count)
>>>The number of 0/1 labels:  tensor([ 1048, 10605])

Here is the number of 0 and 1 labels for a batchsize of 100.
dl = DataLoader(test, batch_size=100, collate_fn=stack_collate, sampler=sampler)


for i, dtlst in enumerate(dl):
    dt, target = dtlst
    if i % 10 == 0:
        print(f"For the {i}th iteration : 0/1 = {len(target[target == 0])}/{len(target[target == 1])}")
>>>For the 0th iteration : 0/1 = 14/86
>>>For the 10th iteration : 0/1 = 8/92
>>>For the 20th iteration : 0/1 = 6/94
>>>For the 30th iteration : 0/1 = 5/95
>>>For the 40th iteration : 0/1 = 9/91
>>>For the 50th iteration : 0/1 = 13/87
>>>For the 60th iteration : 0/1 = 10/90