Giter VIP home page Giter VIP logo

that's People

Contributors

windofshadow avatar zhangleuestc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

that's Issues

the problem about the dataset

In "transformer-csi.py", there is parser.add_argument('--dataset', type=str, default='53001_npy', help='dataset'). I am confused by "53001_npy", and I wonder whether the dataset(https://drive.google.com/file/d/19uH0_z1MBLtmMLh8L4BlNA0w-XAFKipM/view) is in 53001_npy folder?
By the way, I think that "load_public_data.py" is used to torch.save(data, "Data.pt"), right? If I run this script, does it mean that I do not need to run below IF segment of "transformer-csi.py", because I already hava "Data.pt" after running.

def load_data(root):
    if root.find("npy") != -1:
        root = root + '\\'
        file_list = os.listdir(root)
        label = []
        data = []
        aclist = ['empty', 'jump', 'pick', 'run', 'sit', 'walk', 'wave']
        for file in file_list:
            file_name = root + file
            csi = np.load(file_name)
            csi = torch.from_numpy(csi).float().unsqueeze(0)  # 1*2000*3*30
            csi.requires_grad = False
            csi = csi.view(1, 2000, 90)
            data.append(csi)
            for j in range(len(aclist)):
                if file.find(aclist[j]) != -1:
                    label.append(j)
                    break
        data = torch.cat(data, dim=0)
        label = torch.tensor(label)
        data = Data.TensorDataset(data, label)
        args.category = len(aclist)
    else:
        data = torch.load("Data.pt")
        aclist = ['bed', 'fall', 'pickup', 'run', 'sitdown', 'standup', 'walk']
    return data, aclist

load_public_data.py got decode error return

image

Hi, I‘ve removed all the annotation files as you mentioned, and ran load_data_public.py
however, I still got a Unicode Decoder Error information as the screenshot shows

Also, I double checked my Data folder, there is no file name like like '._xxxx.csv'

I was suspect the python version might be the root cause of this issue, but I tried python 3.7.X and python 3.9.X, they all return the same error info as screen shot shows.

Would you mind help me on this issue?

数据集

您好,请问可以给我一份自制数据集来复现一下代码吗?

Transformer-csi.py文件运行出错问题

微信图片_20240104220131
通过运行load_public_data.py文件顺利生成了Data.pt文件,然后运行Transformer=csi.py文件出现了上述问题,研一学术垃圾跪求帮助,感谢各位路过的大佬们,万分感谢。

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.