GithubHelp home page GithubHelp logo

Comments (6)

Droliven avatar Droliven commented on July 29, 2024 1
  1. 首先在主要文件入口 头部添加:
\usepackage{algorithm}
\usepackage{algpseudocode}
\renewcommand{\algorithmicrequire}{ \textbf{输入:}} 
\renewcommand{\algorithmicensure}{ \textbf{输出:}}
% \renewcommand{\algorithmicname}{算法}
\makeatletter
\renewcommand*{\ALG@name}{算法}
\makeatother
  1. 然后在需要引入伪代码的正文其他地方写:
\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}
  1. 最后就可以了:

image

from scut_thesis.

mengchaoheng avatar mengchaoheng commented on July 29, 2024

这是个好想法,需要这个东西的专业不多,然后需要写这些的同学都有实力去开发一下,如果您能添加这个功能可以推pr给我,谢谢。

from scut_thesis.

mengchaoheng avatar mengchaoheng commented on July 29, 2024

我GitHub消息和邮件同步,可以实时收到消息

from scut_thesis.

mengchaoheng avatar mengchaoheng commented on July 29, 2024

然后这个模版有很多祖传代码,我一直找机会重构它,推翻重来,加上大部分专业需要使用的功能。可惜暂时没合适的机会。

from scut_thesis.

mengchaoheng avatar mengchaoheng commented on July 29, 2024

好的我加上,然后标注您为贡献者,特别感谢🙏

from scut_thesis.

Droliven avatar Droliven commented on July 29, 2024

好的呀

from scut_thesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.