lshiwjx / 2s-agcn Goto Github PK
View Code? Open in Web Editor NEWTwo-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition in CVPR19
License: Other
Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition in CVPR19
License: Other
实验结果差不多不到百分之十,这是因为啥原因呢?
I have a few questions.
1、Why the training and test is divided into the following two steps and then fusion?I saw the data only train_bone should only be the bone point.
python main.py --config ./config/nturgbd-cross-view/train_joint.yaml
python main.py --config ./config/nturgbd-cross-view/train_bone.yaml
2、Can you provide the pre-training model?
3、How long have you been training?
4、The accuracy rate of my training on Kinetics-skeleton dataset is only 26%.How can I import it.
Thank you for share the code.
When the command: python ntu_gendata.py
resluts:
xsub train
96%|██████████████████████████████████▍ | 24466/25614 [03:52<00:11, 104.06it/s]Traceback (most recent call last):
File "ntu_gendata.py", line 166, in
part=p)
File "ntu_gendata.py", line 137, in gendata
data = read_xyz(os.path.join(data_path, s), max_body=max_body_kinect, num_joint=num_joint)
File "ntu_gendata.py", line 74, in read_xyz
seq_info = read_skeleton_filter(file)
File "ntu_gendata.py", line 25, in read_skeleton_filter
skeleton_sequence['numFrame'] = int(f.readline())
ValueError: invalid literal for int() with base 10: ''
96%|██████████████████████████████████▍ | 24466/25614 [03:52<00:10, 105.40it/s]
pytorch 0.4.0 cuda8 cudnn5.1 ubuntu 16.04
Needs your help!
Thanks a lot.
data_numpy[0:2] = data_numpy[0:2] - 0.5
data_numpy[1:2] = -data_numpy[1:2]
data_numpy[0][data_numpy[2] == 0] = 0
data_numpy[1][data_numpy[2] == 0] = 0
What does the “centralization” operation mean in the generating process of kinetics dataset?Especially the first two operations.
When extract train_data_bone.npy file for kinetics, there is segmentation fault error. So, could you provide this file in this github or some link?
When I run python main.py --config ./config/nturgbd-cross-view/train_joint.yaml
.py ,gets the error : OSError: [Errno 22] Invalid argument
And data processing has already completed.
I would appreciate it if you could help me!
Hi, recently I read your paper of 2s-AGCN, I just wonder when will you release your code? looking for your reply.
I ran your implemented code using J-AAGCN and NTU-RGBD CV dataset.
But Accuracy is 94.64, not 95.1 in your paper.
What is the difference?
The batch size was 32, not 64 because of the resource limit.
Are there any other things to be aware of? I use your implemented code.
python ./data_gen/ntu_gen_preprocess.py
Traceback (most recent call last):
File "./data_gen/ntu_gen_preprocess.py", line 7, in
from data_gen.preprocess import pre_normalization
ModuleNotFoundError: No module named 'data_gen'
What is your elements for number of joints (18)?
When I run your code, I got this error " RuntimeError: running_mean should contain 126 elements not 63". 63 means I change number of node.
How to adjust these elements and how to get your elements 126 for your experiment?
Hi, thank you for your awsome emplementation. Can you release training log of 2sAGCN for NTU-RGB cross subject. thank you.
注释掉该参数后,got another error
I got this error ,but I don't know how to solve. Could you give me some advice?
Traceback (most recent call last):
File "/home/sues/Desktop/2s-AGCN-master/main.py", line 550, in
processor.start()
File "/home/sues/Desktop/2s-AGCN-master/main.py", line 491, in start
self.train(epoch, save_model=save_model)
File "/home/sues/Desktop/2s-AGCN-master/main.py", line 372, in train
loss.backward()
File "/home/sues/anaconda3/envs/2sAGCN/lib/python3.5/site-pac[kages/torch/autograd/variable.py", line 167, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables)
File "/home/sues/anaconda3/envs/2sAGCN/lib/python3.5/site-packages/torch/autograd/init.py", line 99, in backward
variables, grad_variables, retain_graph)
RuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/torch/lib/THC/generic/THCTensorMath.cu:26
/pytorch/torch/lib/THCUNN/ClassNLLCriterion.cu:101: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion `t >= 0 && t < n_classes
Hi,
I want to know the data augmentation in the feeder has not improved? Does the length of the input have a big influence?
Also, have you trained the model on the 120 dataset? How's the accuracy?
《Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition》(cvpr,
2019)中没有给出三邻接矩阵ABC在NTU RGB+D cross subject情况下的ablation实验,
《Skeleton-Based Action Recognition with Multi-Stream Adaptive Graph Convolutional Networks》(arxiv,2019) 中补全了相应的ablation实验,然而实验结果似乎并不能复现
用agcn文件来复现包含三个邻接矩阵(ABC)的joint stream结果,最终为86. 17%,无法达到86.6%
dear,
Can anyone give me the trained model because my pc is weak, no gpu?
Thannk you so much!
Hi,
I am trying to download the data. Can you please tell the correct data which we should download to process your code? The hyperlinks given in ReadMe donot work.
Thank you for sharing. How do I change the program if the computer only has a CPU and no GPU?An error occurs when running with the CPU:raise AssertionError("Torch not compiled with CUDA enabled") AssertionError: Torch not compiled with CUDA enabled
Hi @lshiwjx,
In the MS-AAGCN paper, it is mentioned that the training strategy for learning graph topology is initializing the B_k with A_k and blocking the propagation of the gradient for B_k at the early stage of the training process until the training stabilizes.
Is it implemented in the current released code? If not, can you please guide me how to do this? Thanks!
I think your work is wonderful, and I want to use your models to complete some works. Can you provide the trained models?
我在ubuntu16、pytorch1.1.0版本中,可以生成训练数据,但无法训练。
请问软件环境如何配置?
Hello,think you for your work,How to run your code on ModelNet40 dataset for classification?expect for your reply.
你好,请问一下我跑gen_bone_data.py时报错,好像是矩阵的维度有问题,该怎么解决,谢谢
lin@lin:~/2s-AGCN-master/data_gen$ python gen_bone_data.py
ntu/xsub train
4%|█▋ | 1/25 [06:49<2:43:40, 409.20s/it]Traceback (most recent call last):
File "gen_bone_data.py", line 50, in
fp_sp[:, :, :, v1, :] = data[:, :, :, v1, :] - data[:, :, :, v2, :]
IndexError: index 20 is out of bounds for axis 3 with size 18
4%|█▋ | 1/25 [06:49<2:43:45, 409.41s/it]
Because the official website has been in error, can I get the NTU-RGBD dataset from baidu disk/ dropbox? email: [email protected]
dear,
Can you show me how to demo?
Thank you so much.
Dear Colleagues,
For Data Preparation, when I tried to run the code "python data_gen/ntu_gendata.py", the code run the file of “preprocess.py”, and run the function "pre_normalization(data, zaxis=[0, 1], xaxis=[8, 4]):"
It has encountered the following problems:
pad the null frames with the previous frames
0%| | 0/40091 [00:00<?, ?it/s]
Traceback (most recent call last):
File "ntu_gendata.py", line 166, in
part=p)
File "ntu_gendata.py", line 140, in gendata
fp = pre_normalization(fp)
File "../data_gen/preprocess.py", line 30, in pre_normalization
s[i_s, i_p, i_f:] = pad
ValueError: could not broadcast input array from shape (186,25,3) into shape (238,25,3)
What is the reason?
And how to fix it?
Thanks
LCW
I want to run this code on my machine with pytorch1.2.0. I got this
File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\pydevd.py", line 1758, in <module> main() File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\pydevd.py", line 1752, in main globals = debugger.run(setup['file'], None, None, is_module) File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\pydevd.py", line 1147, in run pydev_imports.execfile(file, globals, locals) # execute the script File "C:\Program Files\JetBrains\PyCharm 2019.1.3\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "D:/Documents/PycharmProjects/2s-AGCN-master/main.py", line 549, in <module> processor.start() File "D:/Documents/PycharmProjects/2s-AGCN-master/main.py", line 490, in start self.train(epoch, save_model=save_model) File "D:/Documents/PycharmProjects/2s-AGCN-master/main.py", line 351, in train for batch_idx, (data, label, index) in enumerate(process): File "D:\ProgramData\Anaconda3\lib\site-packages\tqdm\std.py", line 1081, in __iter__ for obj in iterable: File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 278, in __iter__ return _MultiProcessingDataLoaderIter(self) File "D:\ProgramData\Anaconda3\lib\site-packages\torch\utils\data\dataloader.py", line 682, in __init__ w.start() File "D:\ProgramData\Anaconda3\lib\multiprocessing\process.py", line 112, in start self._popen = self._Popen(self) File "D:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "D:\ProgramData\Anaconda3\lib\multiprocessing\context.py", line 322, in _Popen return Popen(process_obj) File "D:\ProgramData\Anaconda3\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__ reduction.dump(process_obj, to_child) File "D:\ProgramData\Anaconda3\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) OverflowError: cannot serialize a bytes object larger than 4 GiB Traceback (most recent call last): File "<string>", line 1, in <module> File "D:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 105, in spawn_main exitcode = _main(fd) File "D:\ProgramData\Anaconda3\lib\multiprocessing\spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) EOFError: Ran out of input
I ran your code in following setting:
./config/nturgbd-cross-view/train_joint.yaml
But I just got 90.3% for cross view evaluation, which is 93.7% in your paper.
First of all, thanks a lot for making your code public. I am trying to do the experiment on NTU RGB D 120 dataset and I have split the data into training and testing in CS as given in the NTU-RGB D 120 paper. I have 63026 training samples and 54702 testing samples. I am trying to train the model on a GPU cluster but after running for one epoch, my model exceeds the memory limit:
I try to clear the cache explicitly using gc.collect but the model still continues to grow in size.
It will be great if you can help regarding this.
您好,非常感谢您的对这份工作的开源。
如题,在测试的时候,我发现没有与训练的模型,因此需要自己重新训练。
所以想问一下,什么时候会release预训练好的模型呢?
再次感谢!
**y = None**
for i in range(self.num_subset):
A1 = self.conv_a[i](x).permute(0, 3, 1, 2).contiguous().view(N, V, self.inter_c * T)
A2 = self.conv_b[i](x).view(N, self.inter_c * T, V)
A1 = self.soft(torch.matmul(A1, A2) / A1.size(-1)) # N V V
A1 = A1 + A[i]
A2 = x.view(N, C * T, V)
z = self.conv_d[i](torch.matmul(A2, A1).view(N, C, T, V))
y = z + y if y is not None else z
图8,图9画出了骨架,并用大小圈代表了关节点连接的strength,感觉看上去特别直观。我从您github公开的代码中没看到相关画图的代码,所以向您请教一下,您是怎么画出来的?有没有可以分享的代码呢?如能不吝赐教,将不胜感激!谢谢!
When I extract bone data file for kinetics, I got segmentation fault (core dumped) error for kinetics_train.
It is ok for kinetics_val. How to fix this?
Hi. Thank you for posting the code and weights. I get errors loading your weights:
Setup:
Python: 3.6
Pytorch: 0.3.1 on cuda 9.0.
I have download NTU-RGBD dataset from official site and preprocessed using your scripts ntu_gendata.py
followed by gen_bone_data.py
when i run test script as follows:
python main.py --config ./config/nturgbd-cross-view/test_bone.yaml --weights pretrained_weights/ntu_cv_agcn_bone-49-29400.pt --save-score 1 --device 0 1
I get the following error:
KeyError: 'unexpected key "l1.gcn1.conv_res.0.weight" in state_dict'
Similarly, on running:
python main.py --config ./config/nturgbd-cross-subject/test_bone.yaml --weights pretrained_weights/ntu_cs_agcn_bone-49-31300.pt --save-score 1 --device 0 1 2
I get the following error:
KeyError: 'unexpected key "l1a.PA" in state_dict'
Please guide me if this is a problem with weights or my setup?
Thank you
When I run "python data_gen/ntu_gendata.py", gets the error : ModuleNotFoundError: No module named 'data_gen'.
When I run "python data_gen/kinetics_gendata.py", gets the error : FileNotFoundError: [Errno 2] No such file or directory: '../data/kinetics_raw/kinetics_val'.
My raw data has put in the ./data.
Needs your help!
个人认为任何一个细节都可能影响最后的结果,而代码中有太多文献里没有提及的改动,因此不太容易验证文章的ablation实验是否正确
Hi,
Thanks for your code.
I'm wondering why unit_gcn are split into num_subsets and inter_channels?
Thanks in advance.
I would like to analyze which types of actions are difficult for this model. I think the test_bone/joint_wrong.txt may help. But I am not sure how to match it with the labels. Could you give a hand? Thanks.
dear,
Can you update pytorch to 1.0?
I can not install pytorch=0.3 cuda101.
thank your source code, but when I run this code, The following error occurs:
ValueError: num_samples should be a positive integer value, but got num_samples=0
I've run the program 'python data_gen/ntu_gendata.py 'before, and some documents were generated :
train_data_joint.npy
train_label.pkl
val_data_joint.npy
val_label.pkl
but their size are all 1K
How should I deal with, trouble you give directions.
thanks
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.