index.js 2.84 KB
Newer Older
1
/**
2
 * Copyright (c) Meta Platforms, Inc. and affiliates.
Patrick Labatut's avatar
Patrick Labatut committed
3
4
5
6
7
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 *
8
 * @format
Patrick Labatut's avatar
Patrick Labatut committed
9
 */
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

const React = require('react');

const CWD = process.cwd();

const CompLibrary = require(`${CWD}/node_modules/docusaurus/lib/core/CompLibrary.js`);
const Container = CompLibrary.Container;
const MarkdownBlock = CompLibrary.MarkdownBlock;

const TutorialSidebar = require(`${CWD}/core/TutorialSidebar.js`);
const bash = (...args) => `~~~bash\n${String.raw(...args)}\n~~~`;

class TutorialHome extends React.Component {
  render() {
    return (
      <div className="docMainWrapper wrapper">
        <TutorialSidebar currentTutorialID={null} />
        <Container className="mainContainer documentContainer postContainer">
          <div className="post">
            <header className="postHeader">
Nikhila Ravi's avatar
Nikhila Ravi committed
30
31
32
              <h1 className="postHeaderTitle">
                Welcome to the PyTorch3D Tutorials
              </h1>
33
34
            </header>
            <p>
Nikhila Ravi's avatar
Nikhila Ravi committed
35
              Here you can learn about the structure and applications of
Jeremy Reizenstein's avatar
Jeremy Reizenstein committed
36
              PyTorch3D from examples which are in the form of ipython
Nikhila Ravi's avatar
Nikhila Ravi committed
37
              notebooks.
38
39
40
            </p>
            <h3> Run interactively </h3>
            <p>
Nikhila Ravi's avatar
Nikhila Ravi committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
              At the top of each example you can find a button named{' '}
              <strong>"Run in Google Colab"</strong> which will open the
              notebook in{' '}
              <a href="https://colab.research.google.com/notebooks/intro.ipynb">
                {' '}
                Google Colaboratory{' '}
              </a>{' '}
              where you can run the code directly in the browser with access to
              GPU support - it looks like this:
            </p>
            <div className="tutorialButtonsWrapper">
              <div className="tutorialButtonWrapper buttonWrapper">
                <a className="tutorialButton button" target="_blank">
                  <img
                    className="colabButton"
                    align="left"
                    src="/img/colab_icon.png"
                  />
                  {'Run in Google Colab'}
                </a>
              </div>
            </div>
            <p>
              {' '}
              You can modify the code and experiment with varying different
66
              settings. Remember to install the latest stable version of
Nikhila Ravi's avatar
Nikhila Ravi committed
67
              PyTorch3D and its dependencies. Code to do this with pip is
68
              provided in each notebook.{' '}
69
            </p>
Nikhila Ravi's avatar
Nikhila Ravi committed
70
71
72
73
74
75
            <h3> Run locally </h3>
            <p>
              {' '}
              There is also a button to download the notebook and source code to
              run it locally.{' '}
            </p>
76
77
78
79
80
81
82
83
          </div>
        </Container>
      </div>
    );
  }
}

module.exports = TutorialHome;