...
If you haven’t already, download and install Git: https://git-scm.com/
Git should already be installed on Linux and MacOS.
Windows (Linux and MacOS users skip step): Ensure
core.autocrlf
is set totrue
orinput
. Line endings on GitHub are LF only, not CRLF!Check:
git config --get core.autocrlf
.Set:
git config --global core.autocrlf [setting]
.--global
is optional, and replace[setting]
with the desired setting (true
orinput
).When in doubt, use
input
.
Additional information here: https://www.git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_autocrlf
Configure Git with your name and email: https://linuxize.com/post/how-to-configure-git-username-and-email/
--global
if you want to use it as the default, otherwise it will just be for the current repository.You can use your anonymous GitHub no-reply email.
Go to GitHub and navigate to your copy of the repository, under your account. Do not go to WARG’s copy of the repository!
Click on the green Code button.
In the dropdown, you can copy either the HTTPS or SSH link.
Windows and MacOS: Copy the HTTPS link (although you can copy the SSH link if you desire).
Linux: Copy the SSH link.
If you really want to use HTTPS on Linux, you have to install the Git Credential Manager or create a Personal Access Token on GitHub. How to do this is left as an exercise for the bootcamper.
If you’re using the SSH link (HTTPS link users can skip this):
If you haven’t already, create a new SSH key and add it to your GitHub account:
Pick a parent directory to clone into.
Example: Cloning in
C:\Users\Username\
will create a folder and then populate it:C:\Users\Username\autonomy-bootcamp-2023\[bootcamp stuff]
Open a terminal in the parent directory.
Windows: Command prompt or Powershell.
Linux and MacOS: Terminal.
Run:
git clone [link you copied]
, where[link you copied]
is the link you copied in step 5.HTTPS link users: You will be prompted to log into your GitHub account. Do so.
Done!
...
If you haven’t already, download and install Python 3.8: https://www.python.org/
If you already have Python 3.7 or below installed, you must install Python 3.8 (you do not need to uninstall the other version(s)). This is because of a package dependency which requires Python 3.8 or greater.
If you have Python 3.9 or above installed, you’re probably fine. Probably. The bootcamp was designed and tested on Python 3.8 so use a different version at your own risk.
Open a terminal in the repository root.
Example:
C:\Users\Username\autonomy-bootcamp-2023
Create a virtual environment called
venv
by running:[python] -m venv venv/
, where[python]
is Python 3.8 (e.g.python
,python38
).You can check which version of Python it is by running
[python] --version
.If you move the repository to a different path after creating a virtual environment, you will have to delete the
venv
directory and repeat this step.If you want to call the virtual environment by a different name, replace
venv/
with the name you want. Virtual environments are identified by their path, so different projects with the samevenv
virtual environment name is fine.Example:
C:\Users\Username\autonomy-bootcamp-2023\venv\
andC:\Users\Username\computer-vision-python\venv\
are different.
Activate the virtual environment:
Windows command prompt:
venv\Scripts\activate.bat
Windows Powershell:
.\venv\Scripts\Activate.ps1
Linux and MacOS:
source venv/bin/activate
You should now see
(venv)
in the prompt line.Confirm the version of Python in your virtual environment uses Python 3.8:
python --version
.Literally use
python
, none of the fancy stuff above.Example output:
Python 3.8.10
Open
requirements.txt
.MacOS: Remove
+cu117
from bothtorch
andtorchvision
.Everyone elseWindows and Linux:
If you have a CUDA capable GPU but don’t want to use it for some reason, change
+cu117
to+cpu
for bothtorch
andtorchvision
.If you don’t have a CUDA capable GPU, don’t change anything.
Download and install required packages:
pip install -r requirements.txt
This will install in your virtual environment under
venv
. The rest of your system is unaffected.
Done!
...
“I keep all my files in the recycle bin because it’s they’re easier to get to access this way.” - Overheard near the Director of Finance’s office
...
“LGTM” - Every pull request ever (LGTM is an initialism for Looks Good To Me)
Once your submission is ready for review, open a pull request (PR) from your fork to the WARG repository.
...
Info |
---|
Can I ask other people for help? We expect you to complete these bootcamp tasks on your own. You can ask for general advice, but please do not share code or look at other submissions. The bootcamp (and WARG in general) exists for you to learn and develop (and possibly also put something great into the sky while at it). |
Info |
---|
Can I use AI to write code for me? We ask that you avoid using ML code generators such as ChatGPT or GitHub Copilot. Going through the iteration process (design, implementat, test, debug) yourself and gaining experience is much more valuable than completing the bootcamp faster. It also takes the fun out of doing it yourself; is it really an accomplishment if you just copy pasted code someone else wrote? |
...