Comments (8)
难道是我的python版本是3.5才报错的吗?
from gaitset.
我没记错的话random应该是一个Python自带的包。你可以单独调试一下random.choices()
from gaitset.
我把choices改成choice之后又报错了,说choice接收了一个unexpected的值:k,如果我换成python3.6,是不是就会解决这个问题了呢?
from gaitset.
我换成Python3.6之后,就能运行了,谢谢你。
from gaitset.
Unfortunately, I have encountered new problems:
Traceback (most recent call last):
File "/pycharmProject/GaitSet-master/train.py", line 21, in
m.fit()
File "/pycharmProject/GaitSet-master/model/model.py", line 150, in fit
for seq, view, seq_type, label, batch_frame in train_loader:
File "/home/tbb/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 819, in iter
return _DataLoaderIter(self)
File "/home/tbb/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 584, in init
self._put_indices()
File "/home/tbb/.local/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 646, in _put_indices
indices = next(self.sample_iter, None)
File "/pycharmProject/GaitSet-master/model/utils/sampler.py", line 15, in iter
self.batch_size[0])
File "/usr/lib/python3.6/random.py", line 320, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
from gaitset.
我知道怎么解决了,因为GPU显存小,训练的样本少,config里面设置的一次训练的个数超出了。谢谢。
from gaitset.
请问,这两个参数有什么用?
'pid_num': 73,
'pid_shuffle': False,
from gaitset.
您好,pid_num是选取前多少个人的样本用于训练。shuffle在casia上没有用,是说分割train和test的时候id是顺序的还是shuffle过的。
另外,上面你提到那个报错,应该和gpu没什么关系。是说你一个batch希望取出的人数大于了总的人数。config中batch_size第一维是每次取出的id数,第二维是每个id取的样本数。以pid_num=73为例,batch_size第一维应小于等于73。
很抱歉random.choices存在兼容性问题,感谢你提出这一问题。我会在后面的更新中更换这一函数,尽量使代码在Python3各个版本上都适用。
from gaitset.
Related Issues (20)
- 您好,尝试用GaitSet测试OUMVLP单90度序列的问题
- pretreatment.py running error HOT 1
- Question about getting silhouette images from my own dataset
- why there is no normalization in GaitSet network?
- test.py运行报错,预处理后的路径设置好了 HOT 2
- How to fitune in my own dataset
- 运行train.py文件时,随机取样有问题,请问怎么解决? HOT 2
- Signs of good learning HOT 1
- pytorch to mindspore of mindspore
- Less accuracy of OUMVLP dataset while testing... HOT 1
- How long did you train on each dataset.
- 运行test脚本出错
- train出错 HOT 1
- 运行OUMVLP数据集所需的CPU内存为多大
- 您好,请问gaitset 中acc具体表示的什么?如何找到最相似的那个人的准确率?
- CASIA-B dataset checkpoints
- 环境配置详细指南 HOT 1
- 我有复现和改进过这个模型,如果对gaitset或者步态识别感兴趣的可以联系我,联系方式,wechat: lovedaixiaobaby
- train.py 执行后无反应 RuntimeError: CuDNN error: CUDNN_STATUS_EXECUTION_FAILED
- OUMVLP数据集
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gaitset.