Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unsupported operand type(s) for %: 'int' and 'NoneType' #52

Closed
fasefagarich opened this issue Aug 25, 2023 · 2 comments
Closed

Comments

@fasefagarich
Copy link

Its giving me this error after training.

Traceback (most recent call last):
File "C:\Users\cb0764\Videos\Downloads\segment-anything-main\MedSAM Adapters\Medical-SAM-Adapter-main\train.py", line 137, in
tol, (eiou, edice) = function.validation_sam(args, nice_test_loader, epoch, net, writer)
File "C:\Users\cb0764\Videos\Downloads\segment-anything-main\MedSAM Adapters\Medical-SAM-Adapter-main\function.py", line 278, in validation_sam
if ind % args.vis == 0:

@jithf
Copy link

jithf commented Oct 23, 2023

I enconer the same problrm ? Could you solve it?

@wade0604
Copy link

wade0604 commented Nov 8, 2023

modify to if args.vis and ind % args.vis == 0

@WuJunde WuJunde closed this as completed Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants