Community-led Computer Vision Community Course Sprint ๐ค
This is the repository for a community-led course on Computer Vision. Once finished, the course will be released in huggingface.co/learn. Below, you can find how you can help us in this effort.
Table of Contents
- ๐โโ๏ธ How to get started
- ๐ค How to contribute to course
- ๐ Deadlines
- ๐ Prizes
- ๐ Content guidelines (Syntax, Notebooks, Becoming a Reviewer)
- ๐ซ Asking for Help
๐โโ๏ธ How to get started
-
Join us in Discord ๐พ
Join the Hugging Face discord, take the role open-source and join us at the channel #cv-community-project.
- Pick a section from the table of contents and add your first name and discord username there. (Please only sign up for two chapters maximum for now.)
- Connect with your team members in Discord
๐ค How to contribute to the course
Important Note: If youโve never contributed to open-source projects on GitHub, kindly read this document to learn how to do so.
Before you, start reading more on the contribution guidelines, this is how our course outline looks like:
.
โโโ chapters/
โโโ chapter0/
โ โโโ introduction.mdx
โ โโโ getting_started.mdx
โโโ chapter1/
โ โโโ ...mdx
โโโ _toctree.yml
- First go to the discussion section.
- Each new chapter outline should be put up under a pinned discussion. As shown in this example.
- Each chapter can contain multiple topics and sub-topics. All of that should be defined in the chapter outline. Also, for each sub-topic, a single contributor should be assigned to work on that. See more in this example.
- Interested contributors motivated to work in a common chapter can come together to form a team. Where each contributor can directly contribute to a sub-topic and other fellow teammates can act as reviewers.
- One contributor from each team should fork the repository and other contributors should mutually agree on working collaboratively under that forked repo.
- Under the forked repo, contributors should create issues (that will be the sub-topic name) and start working on that issue.
- When contributors work on a subtopic, they should follow the below instructions:
- Create
.mdx
files or Jupyter Notebooks for the sub-topics you want to contribute to - Make sure to update the requirements.txt file in the root of the repository
- When you feel like you are ready, create a pull request to this repository.
- Your teammates will review your PR under that forked repo and then if things get approved, you can create the PR to merge it in our main branch ๐ค
- Create
Tip: Contribute one subsection at a time, so that itโs not overwhelming for both you and reviewers.
๐ Deadlines
We are aiming to have the version 1 of the course with this sprint.
Sprint Beginning: Dec 3rd
Submission for Pull Request Reviews Deadline: Dec 13th
Iterating over Pull Reviews until: Dec 27th
First version will be complete before December 29th.
๐ Prizes
We will have prizes for those who contribute to the course ๐ค Moreover, each contributor will have their name added to credits section of the associated chapter.
- We will provide one month of Hugging Face PRO subscription or GPU grant.
- You can earn the special merch made for this sprint (with the logo of this sprint). ๐๐
The amount of contribution required to earn the prizes will be announced. Stay tuned!
๐ Content Guidelines
Syntax and Doc Rules โ๏ธโ๏ธ
These rules are required to render the course on hf.co/learn ๐
- Every chapter should have a main header (h1, e.g. # Introduction) before the content.
- We can use the syntax features in Hugging Face course! This includes ๐
Tip Blocks Write tips like so:
<Tip>
Write your note here
</Tip>
You can write warnings like this:
<Tip warning={true}>
Framework Dependent Code To have multiple frameworks in one code snippet with a toggle, you can do:
<frameworkcontent>
<pt>
PyTorch content goes here
</pt>
<tf>
TensorFlow content goes here
</tf>
<flax>
Flax content goes here
</flax>
</frameworkcontent>
Embedding Gradio Demos
You can embed any Gradio demo that is hosted on Hugging Face Spaces like below ๐ Just provide the src
the url {{username}}-{{space_id}}.hf.space
.
<iframe
src="https://openai-whisper.hf.space"
frameborder="0"
width="850"
height="450">
</iframe>
Anchor Links for Headers If you want to refer to a section inside the text, you can do it like below ๐
## My awesome section[[some-section]]
// the anchor link is: `some-section`
Code Blocks
You can write codeblocks by wrapping it with three backticks. Please add the associated language code, e.g. py
or bash
after top backticks to enable language specific rendering of code blocks.
LaTeX You can write LaTeX by writing it like this: `$$...$$`` For example ๐
$$Y = X * \textbf{dequantize}(W); \text{quantize}(W)$$
- Add your chapter to
_toctree.yml
.
- Note that the directory structure is as follows, so when you add a new chapter, make sure to stick to it:
.
โโโ course/
โโโ chapters/
โโโ chapter0/
โ โโโ introduction.mdx
โ โโโ getting_started.mdx
โโโ chapter1/
โ โโโ ...mdx
โโโ _toctree.yml
-
If you need advice on the tone of your content, feel free to check out Hugging Face Audio Course as it's a good example.
-
Before contributing, please read the general contribution guide.
-
If you have any images, videos and more in your PRs, please store them in this Hugging Face repository to keep this repository lightweight. You can ask for an access to the organization if you aren't a part of it yet. The steps to do so are below ๐
- Request to join the https://huggingface.co/hf-vision organization.
- Upload an image to https://huggingface.co/datasets/hf-vision/course-assets, e.g. via the web UI.
- Get the URL (e.g. https://huggingface.co/datasets/huggingface-course/audio-course-images/blob/main/all_models.png) right click to "Download" button and copy the link.
- Use that in standard markdown like
Notebooks
Thanks to Hugging Face's documentation builder, when we add [[open-in-colab]]
on top of .mdx
files, it creates a button that you can automatically open a notebook containing the notebook version of your markdown file. If you still want to create a notebook that is separate from markdown (and the markdown is complete by means of context you're providing in the notebook), you can do so, in the notebooks folder. Make sure to add it to the associated chapter's folder under notebooks (and if it doesn't exist, feel free to create it).
Become a Reviewer
Is everything already assigned, but do you want to contribute to the course? No worries, you can still become a reviewer! This will allow you to review the notebooks and READMEs and give feedback to the authors.
- Go here and at the bottom choose the "Reviewers" tab,
- Add your first name and GitHub username,
- You'll be added to the repo as a contributor and will be able to review Pull Requests (PRs)!
- Assign yourself to any PRs you think make sense for you,
- While reviewing, ask yourself if the changes and additions make sense - After all, the most important part of a course is conveying ideas properly, which makes the learning experience smoother.
- Share your feedback and ideas with the authors on how they can improve. In the long term, we're aiming to make a robust, high-quality course accessible to everyone!
- Finally, every PR can be merged when it has two approvals from reviewers.
๐ฃย Asking for Help
Do not hesitate to ask for help in #cv-community-project channel. ๐ซ
Tips and Hints
-
For an easier collaboration when working on notebooks together, feel free to use ReviewNB, which is free for open-source and educational use cases.
-
In the requirements.txt file you can find some packages that can be helpful when creating the material. As we're originating from the HuggingFace community, we can recommend using the transformers, datasets, evaluate and timm libraries.