windofshadow / that Goto Github PK
View Code? Open in Web Editor NEWCode for AAAI paper "Two-Stream Convolution Augmented Transformer for Human Activity Recognition"
Code for AAAI paper "Two-Stream Convolution Augmented Transformer for Human Activity Recognition"
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
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?
您好,请问可以给我一份自制数据集来复现一下代码吗?
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.