geekfeiw / csi-net Goto Github PK
View Code? Open in Web Editor NEWpytorch code of CSI-Net, including data and pre-trained models
Home Page: https://arxiv.org/abs/1810.03064
License: MIT License
pytorch code of CSI-Net, including data and pre-trained models
Home Page: https://arxiv.org/abs/1810.03064
License: MIT License
Hello, when I repeated the fall detection, I encountered the training and test accuracy of 0. Experiments performed with the solo_task_res_net.py file were used. The loss function and the calculation accuracy process are attached below.
loss:
criterion1 = nn.CrossEntropyLoss().cuda()
lossC = criterion1(predict_label, labelsV[:, 0].type(torch.LongTensor).cuda())
acc:
for (samples, labels) in tqdm(train_data_loader):
samplesV = Variable(samples.cuda())
labelsV = Variable(labels.cuda())
predict_label = resnet(samplesV)
fall_stand_preds = predict_label[:, 0] # 取第一列
correct_t += fall_stand_preds.eq(labelsV[:, 0].data.long()).sum()
print("Training accuracy:", (100*float(correct_t)/num_train_instances))
After following the guide and putting the dataset into a folder called data
, I'm seeing an error when I run test.py
. Here's the full error:
(model-venv) PS C:\Users\ashka\Desktop\summer 23\temple REU\wifi project\pretrained csi models\CSI-Net> python .\test.py
Traceback (most recent call last):
File "C:\Users\ashka\Desktop\summer 23\temple REU\wifi project\pretrained csi models\CSI-Net\test.py", line 29, in <module>
resnet = torch.load('weights/res18_Train100.0Test93.001.pkl')
File "C:\Users\ashka\Desktop\summer 23\temple REU\wifi project\pretrained csi models\model-venv\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\ashka\Desktop\summer 23\temple REU\wifi project\pretrained csi models\model-venv\lib\site-packages\torch\serialization.py", line 1043, in _legacy_load
result = unpickler.load()
File "C:\Users\ashka\Desktop\summer 23\temple REU\wifi project\pretrained csi models\model-venv\lib\site-packages\torch\serialization.py", line 848, in find_class
return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'res_net_use_this'
想问一下这一篇的代码时csi-net网络中使用的吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.