-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI and project tools * remove commented code
- Loading branch information
Showing
4 changed files
with
59 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,6 @@ venv/ | |
logs/ | ||
|
||
# Pytorch and Ultralytics | ||
runs/ | ||
*.pt | ||
*.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Initialize the project for Windows | ||
|
||
# Activate venv to prevent accidentally installing into global space | ||
./venv/Scripts/Activate.ps1 | ||
|
||
if($?) { | ||
# If successfully activated venv | ||
"Installing project dependencies..." | ||
pip install -r requirements.txt | ||
|
||
"" | ||
"Installing submodules and their dependencies..." | ||
git submodule update --init --remote --recursive | ||
git submodule foreach --recursive "pip install -r requirements.txt" | ||
|
||
deactivate | ||
"" | ||
"Seutp complete!" | ||
} else { | ||
"Please install a virtual environment in the directory 'venv', at the project root directory" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Initialize and update submodules script for Linux | ||
|
||
# Activate venv to prevent accidentally installing into global space | ||
source ./venv/bin/activate | ||
|
||
if [ $? -eq 0 ]; then | ||
echo "Installing project dependencies..." | ||
pip install -r requirements.txt | ||
|
||
echo "" | ||
echo "Installing submodules and their dependencies..." | ||
git submodule update --init --remote --recursive | ||
git submodule foreach --recursive "pip install -r requirements.txt" | ||
|
||
deactivate | ||
echo "" | ||
echo "Setup complete!" | ||
else | ||
echo "Please install a virtual environment in the directory 'venv', at the project root directory" | ||
fi |