pytorch-ignite / pytorch-ignite.ai Goto Github PK
View Code? Open in Web Editor NEWPyTorch-Ignite website
Home Page: https://pytorch-ignite.ai/
License: BSD 3-Clause "New" or "Revised" License
PyTorch-Ignite website
Home Page: https://pytorch-ignite.ai/
License: BSD 3-Clause "New" or "Revised" License
Hugo highlighted line numbers are not preserved as shiki override the code blocks.
This can be applied to blog posts and tutorials
Once we solve issue #10 we can work on how to display the output of all tutorials (see picture below for reference) while also caching them so they aren't expensive for each new build.
@Priyansi can you fix bad links here, please
@ydcjeff can we make some CI links checks to ensure that they are correct.
The index page of posts/ is automatically generated with an image, preview text and titles of the available blog posts. However, there is nothing like this for docs and we have to manually list down all the topics. Any ideas and suggestions on how to display various topics on the index pages will be appreciated!
Ideas List:
So directory based sidebar is added in ff3e6ce.
Questions is should we show in all pages and do not show in some pages we don't want?
They have to be same size.
Almost recopy https://pytorch.org/ignite/master/about.html and update the info.
If we limit a page by a certain amount of tutorials or guides, we might need to have pagination pages for older content.
It doesn't make sense to have infinitely scrolling pages.
As of now, if I need to copy a code snippet from the site I need to highlight the entire area before copying. This is inconvenient and would be better if the users have access to a quick Copy to Clipboard button. Ideas on how to implement this: https://www.dannyguo.com/blog/how-to-add-copy-to-clipboard-buttons-to-code-blocks-in-hugo/
@vfdev-5 mentioned to add sidebar so that we can shorten the link clicks for nested contents.
I wish to make sidebar to show the link to the files (posts/*.md) in a directory (e.g, posts/). And show the h2
of the current visiting page.
Sidebar draft design:
| posts
|-- a.md (current viewing page)
|-- h2
|-- h2
|-- h2
|-- h2
|-- h2
|-- b.md
|-- c.md
|-- d.md
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
prettier
, shiki
).github/workflows/deploy.yml
actions/checkout v4
peaceiris/actions-hugo v2
actions/setup-node v4
peaceiris/actions-gh-pages v3
.github/workflows/linkcheck.yml
actions/checkout v4
peaceiris/actions-hugo v2
actions/setup-node v4
.github/workflows/submodule.yml
actions/checkout v4
actions/checkout v4
actions/setup-python v4
actions/checkout v4
actions/setup-python v4
peter-evans/create-pull-request v6
package.json
jsdom ^22.1.0
prettier ^2.8.3
shiki ^0.12.1
windicss ^3.5.6
scripts/requirements.txt
@ydcjeff I would like to put somewhere the links on our previous public presentations and other resources like posters etc.
Here is the content:
It can be a new page or a section somewhere, I do not know yet where it would be the best place.
As I recall from our last meeting, Code Generator has to be included under Ecosystem on the main page (pytorch-ignite.github.io).
When I click on documentation as of now, it redirects back to the old documentation.
A new page divided into 4 sections with links that lead to tutorials, how-to's, explanation and API reference is needed.
Job "Run ./bin/htmltest dist" is currently failing
concepts/02-events-and-handlers/index.html
href blank --- concepts/02-events-and-handlers/index.html -->
href blank --- concepts/02-events-and-handlers/index.html -->
========================================================================
https://github.com/pytorch-ignite/pytorch-ignite.ai/runs/4915145002?check_suite_focus=true
Numpy tutorials have easy to use download links (.ipynb, .py or .md) at the top of every page, courtesy of the Sphinx Book theme. Is it possible to recreate something identical for this site? Ideally, there should be 4 buttons - Open in Colab, Download as a Jupyter notebook, View in GitHub and Download a python file.
When Numpy renders its tutorials, they create a Jupyter Notebook and other necessary files that are linked to these Download buttons. I think we have to implement something like that.
Related pytorch/ignite issue: pytorch/ignite#2415
I am not sure if this is possible with Hugo but it'd be great if instead of us formatting code, Hugo could automatically do it while rendering the site as it happens right now in Ignite with Black.
@gucifer please update the notebook and generate its markdown with the following fixes:
Use #
only once for the title and ##
, ###
etc for others. As title is specified in tags as title: ...
, you have to update all headers by adding one more #
to each of them.
Fix this :
# Models for GAN
## Generator
The latent space dimension of input vectors for the generator is a key parameter of GAN.
....
## Generator
You have twice the header ## Generator
- dataset, emmiting events as it goes.
+ dataset, triggering events as it goes.
- Events - Events are emmited by the Engine
+ Events - Events are emitted by the Engine
- Event is emmited by the Engine.
+ Event is emitted by the Engine.
By the way, the following sentence is a bit incorrect
Handlers - These are functions which can be configured so that they are triggered when a certain
Event is emmited by the Engine. Ignite has a long list of pre defined Handlers such as checkpoint,
early stopping, logging and built-in metrics.
=> Handlers are any functions and not only the ones under the link. Please fix the wording.
In [ ]:
image_size = 64
In [ ]:
data_transform = transforms.Compose(
[
transforms.Resize(image_size),
transforms.CenterCrop(image_size),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)),
]
)
In [ ]:
train_dataset = ImageFolder(root="./data", transform=data_transform)
In [ ]:
test_dataset = torch.utils.data.Subset(train_dataset, torch.arange(3000))
=>
In [ ]:
image_size = 64
data_transform = transforms.Compose(
[
transforms.Resize(image_size),
transforms.CenterCrop(image_size),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5)),
]
)
train_dataset = ImageFolder(root="./data", transform=data_transform)
test_dataset = torch.utils.data.Subset(train_dataset, torch.arange(3000))
Please apply that for all cells that are not separed with any text or output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.