Comments (6)
- 首先在主要文件入口 头部添加:
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\algorithmicrequire}{ \textbf{输入:}}
\renewcommand{\algorithmicensure}{ \textbf{输出:}}
% \renewcommand{\algorithmicname}{算法}
\makeatletter
\renewcommand*{\ALG@name}{算法}
\makeatother
- 然后在需要引入伪代码的正文其他地方写:
\begin{algorithm}[!t]
\caption{增强多样化变分自编码器 d-CVAE 的训练过程}
\label{alg:rank_train}
\begin{algorithmic}[1]
\Require Observed pose sequence $\mathbf{x}$, number of samples $K$, auxiliary space generation network $\mathcal{N}_{\bm{\beta}}$, Gaussian distribution generation network $\mathcal{N}_{\bm{\gamma}}$, CVAE decoder network $\mathcal{G}_{\bm{\theta}}$
\Ensure A set of samples $\{\mathbf{\tilde{y}}_k\}_{k=1}^{K}$
\State $\mathbf{B} = \mathcal{N}_{\bm{\beta}}(\mathbf{x})$ // \textit{generate an auxiliary space given input poses}
\State $\mathbf{W} \leftarrow \text{Gumbel-Softmax sampling}$ // \textit{see \rm{Algorithm} \ref{alg:gumbel-softmax}}
\State $\mathbf{P}=\mathbf{W}\mathbf{B}$ // \textit{Multiply $\mathbf{W}$ and $\mathbf{B}$ to obtain a point matrix $\mathbf{P}$}
\State $\left\{\mathbf{A}_k,\mathbf{b}_k\right\}_{k=1}^K = \mathcal{N}_{\bm{\gamma}}(\mathbf{P})$ // \textit{convert points into means and variances}
\State $\bm{\epsilon} \sim \mathcal{N}(0,1)$ // \textit{sampling an $\bm{\epsilon}$ from the normal distribution}
\For{$k=1$ to $K$}
\State $\mathbf{z}_k = \mathbf{A}_k \mathbf{\bm{\epsilon}} + \mathbf{b}_k$ // \textit{reparameterization trick}
\State $\mathbf{\tilde{y}}_k = \mathcal{G}_{\bm{\theta}}(\mathbf{x},\mathbf{z}_k)$ // \textit{decode $\mathbf{z}_k$ and $\mathbf{x}$ into a result $\mathbf{\tilde{y}}_k$}
\EndFor
\end{algorithmic}
\end{algorithm}
- 最后就可以了:
from scut_thesis.
这是个好想法,需要这个东西的专业不多,然后需要写这些的同学都有实力去开发一下,如果您能添加这个功能可以推pr给我,谢谢。
from scut_thesis.
我GitHub消息和邮件同步,可以实时收到消息
from scut_thesis.
然后这个模版有很多祖传代码,我一直找机会重构它,推翻重来,加上大部分专业需要使用的功能。可惜暂时没合适的机会。
from scut_thesis.
好的我加上,然后标注您为贡献者,特别感谢🙏
from scut_thesis.
好的呀
from scut_thesis.
Related Issues (20)
- 参考文献中去掉//的方式 HOT 3
- 封面thesis_cover显示不全 HOT 12
- 请问一下,目录页中插图目录和表格目录该怎么去除? HOT 10
- references.bib没有起作用 HOT 14
- 参考文献显示格式好像不对 HOT 4
- 封面显示异常 HOT 3
- 引用的问题 HOT 5
- overleaf字体问题 HOT 6
- 总结页以奇数页结尾问题 HOT 9
- 可以增加一个双盲审的模板吗 HOT 2
- 交叉引用编号的字符间隙 HOT 15
- 标题换行页眉不换行的问题 HOT 5
- 参考文献GB7714-87标准 HOT 55
- 关于标题前后距离的问题 HOT 3
- 如何使用带括号的项目编号 HOT 1
- 类似 MS Word 的孤行控制功能 HOT 4
- 是否能够把封面页也用tex文件来编译生成? HOT 1
- 摘要页编码错误 HOT 35
- 需要修改一下封面校徽年份,以及摘要到目录页码字体大小 HOT 6
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 scut_thesis.