Closed YangBai1109 closed 5 years ago
which test function do you mean? If you have some problem with your data, then I recommend you to test this code with ISIC data.
And you can refer this issue
ok,i will see .
now i have another question
Traceback (most recent call last): File "/home/panpan/wenjian/master/main.py", line 101, in <module> main(config) File "/home/panpan/wenjian/master/main.py", line 56, in main solver = Solver(config, train_loader, valid_loader, test_loader) File "/home/panpan/wenjian/master/solver.py", line 50, in __init__ self.device = torch.device('cuda'if torch.cuda.is_available() else 'cpu') AttributeError: module 'torch' has no attribute 'device'
i donot know how to solve it
Check your pytorch version and refer here :)
If you don't have further questions, I will close the issue. I hope my answer was helpful.
thank you
my label is background to 0 and others to 1 .but i donot know how to make it work, the code may not have a test function?