Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Thr_info.txt #4

Open
Liam-zzZ opened this issue Dec 28, 2018 · 4 comments
Open

关于Thr_info.txt #4

Liam-zzZ opened this issue Dec 28, 2018 · 4 comments

Comments

@Liam-zzZ
Copy link

您好。关于HM-16.5_AI(帧内),Thr_info.txt的内容为8 0.5 0.5 0.5 0.5 0.5 0.5
。按照我的理解,阈值应该为六个数。是否应该去掉8 ? 8 有什么特别的用处吗?

@tianyili2017
Copy link
Owner

您好。8是我们调试程序用的变量,若大于0表示需要调用编码加速算法,否则按标准方法编码。
现在的代码看起来没有用到8,我们准备再验证一下是否如此,谢谢您提醒!您也可以先尝试把8删掉,只保留后面的6个0.5,看结果是否合理。

@Liam-zzZ
Copy link
Author

Liam-zzZ commented Dec 29, 2018

还有一个问题请教您:把video_to_cu_depth.py中的14行改成 os.environ['CUDA_VISIBLE_DEVICES'] = '0' ,可以使用tensorflow-gpu版本环境来运行程序吗?

@tianyili2017
Copy link
Owner

可以用GPU运行,比如像您这样把video_to_cu_depth.py中的14行改成 os.environ['CUDA_VISIBLE_DEVICES'] = '0' ,或者根据您机器上的GPU配置,改成其他编号。无论用CPU还是GPU,都不影响编码结果,只是神经网络运行所需要的时间不同。默认用CPU,是为了在测量时间复杂度时保证公平,因为HM编码器是纯CPU程序,所以Tensorflow也用CPU,测出的总时间更有意义。

@fly1198721171
Copy link

老师您好:
请教几个问题,1、Thr_info.txt中的 初始值就用0.5 0.5 0.5 0.5 0.5 0.5是吗?
2、训练好的模型存储在model_2000000_qp2025.dat.data-00000-of-00001
model_2000000_qp20
25.dat.index
model_2000000_qp20~25.dat.meta
是吗?
3、 sprintf(cmd, "python video_to_cu_depth.py %s %d %d %d", m_pchInputFile, m_iSourceWidth, m_iSourceHeight, m_iQP);
assert(system(cmd)==0);
HM code中这两行的意思是 调用python 来执行网络是吗?如果调用成功是不是assert就不会被触发,那如果没调用成功是不是就会报错,但是我再release版本下可以running,但是debug的时候他就报错了(我的tensorflow还没OK)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants