-
Notifications
You must be signed in to change notification settings - Fork 17
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
Two questions that I hope to consult with you #5
Comments
Hi, happy that you are interested.
Hope it helps. |
Thank you very much for your reply, and I will try it. |
Hello, Could you show me the shape error you got? I have answered a question regarding the loading of other ViT sizes here: #7 |
Thank you very much for your sharing. I have two questions that I hope to consult with you.
1.If I would like to incorporate a validation set into your code, how should the code be modified?
2.When I change the BATCH_SIZE to 2 or 3, I encounter the following error. How should I modify the code to avoid such errors?
Traceback (most recent call last): File "c:/Users/PC/Documents/Code/Sam_LoRA-main/train.py", line 59, in <module> stk_gt, stk_out = utils.stacking_batch(batch, outputs) File "c:\Users\PC\Documents\Code\Sam_LoRA-main\src\utils.py", line 101, in stacking_batch stk_gt = torch.stack([b["ground_truth_mask"] for b in batch], dim=0) RuntimeError: stack expects each tensor to be equal size, but got [300, 450] at entry 0 and [500, 600] at entry 1
Thank you very much!
The text was updated successfully, but these errors were encountered: