/** * Copyright (c) Facebook, Inc. and its affiliates. * @format **/ 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 (

Welcome to the PyTorch3D Tutorials

Here you can learn about the structure and applications of Pytorch3D from examples which are in the form of ipython notebooks.

Run interactively

At the top of each example you can find a button named{' '} "Run in Google Colab" which will open the notebook in{' '} {' '} Google Colaboratory{' '} {' '} where you can run the code directly in the browser with access to GPU support - it looks like this:

{' '} You can modify the code and experiment with varying different settings. Remember to install pytorch, torchvision, fvcore and pytorch3d in the first cell of the colab notebook by running:{' '}

{bash`!pip install torch torchvision !pip install 'git+https://github.com/facebookresearch/pytorch3d.git@stable'`} This installs the latest stable version of PyTorch3D from github.

Run locally

{' '} There is also a button to download the notebook and source code to run it locally.{' '}

); } } module.exports = TutorialHome;