AssertionError: force_apply must have bool or int type

I faced the same issue, the solution is simple:

   sample = {'image':image, 'label':label}

    if self.transform:
        sample = self.transform(**sample)

notice the ** in self.transform