Code Monkey home page Code Monkey logo

csi-net's Issues

How to use the given fall data set to reproduce in the given code?

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))

Error: `ModuleNotFoundError: No module named 'res_net_use_this'` in `test.py`

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网络中使用的吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.