-
Notifications
You must be signed in to change notification settings - Fork 20
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
Hi ,get trouble with runing , when run to trainer.py for idx, data in enumerate(self.train_loader): it stop at here #14
Comments
the above is vscode json ,the following is output
Files already downloaded and verified |
Hi @Zhongwei-Luo , I am not familiar with VScode configuration, but I guess the problem comes from |
hi, KD,MLKD, DKD don't work hh, both of them. and alought I already install mdistiller,but when I run command in terminal I will get error "no module mdistiller",but If I use vscode json config to run code ,this won't happen hh |
Thanks for your response. Since I did not try our codes on vscode, I thus cannot provide any helpful suggestions for your vscode issue. But regarding your current issue on terminal, I find a similar issue and potential solution. You could follow the instruction if possible. |
Hi, I will try your solution ,but what is more, I dont think the problem is caused by vscode, another person create a new paper based on your code,[https://github.com/zju-swj/rld?tab=readme-ov-file] it is Knowledge Distillation with Refined Logits, but I could run it without problem. so back to the origin problem , when I running your logit std code ,stuck when run to [for idx, data in enumerate(self.train_loader):] in trainer.py |
Thank you for your information. I will try reproducing the first issue and update if any solution is found. For now, you could alternatively try running on the terminal and addressing the issue of |
thank you very much! I found solution,and find problem is vscode itself ,lol ! https://stackoverflow.com/questions/53660465/vscode-bug-with-pytorch-dataloader running code using vscode need get dataloader with num_workers=0 |
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "MLKD+Ours", "type": "debugpy-old", "request": "launch", "program": "/home/linfeng/lzw/code/log_kd/tools/train.py", "args": [ "--cfg","configs/cifar100/mlkd/resnet32x4_resnet8x4.yaml", "--logit-stand", "--base-temp","2", "--kd-weight","9" ], "console": "integratedTerminal", "justMyCode": true } ] }
The text was updated successfully, but these errors were encountered: