Skip to content

htil/Neuroevolution

 
 

Repository files navigation

This project is not yet ready for generic use. I am using it for drone recorded data currently. I'll work on redoing it to be useful for other neuroevolutionary projects later...

See the setup folder for a getting-started video.

Setup

This project requires Python 3.10 and uses a virtual environment to manage dependencies.

Prerequisites

  • Python 3.10 (must be installed and available in your PATH)
  • Git (to clone the repository)

macOS Setup

  1. Clone the repository (if you haven't already):

    git clone <repository-url>
    cd Neuroevolution
  2. Run the setup script:

    ./setup/macos/setup.sh

    Or if you prefer:

    zsh setup/macos/setup.sh
  3. Activate the virtual environment:

    source venv/bin/activate
  4. Verify installation:

    python3 run_all.py

Windows Setup

  1. Clone the repository (if you haven't already):

    git clone <repository-url>
    cd Neuroevolution
  2. Run the setup script:

    .\setup\windows\setup.ps1

    Note: If you encounter an execution policy error, run:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

    Then try running the setup script again.

  3. Activate the virtual environment:

    venv\Scripts\Activate.ps1

    If PowerShell scripts are blocked, use the batch file instead:

    venv\Scripts\activate.bat
  4. Verify installation:

    python run_all.py

Manual Setup (Alternative)

If you prefer to set up manually:

  1. Create a virtual environment:

    • macOS/Linux: python3.10 -m venv venv
    • Windows: py -3.10 -m venv venv or python3.10 -m venv venv
  2. Activate the virtual environment:

    • macOS/Linux: source venv/bin/activate
    • Windows: venv\Scripts\Activate.ps1 or venv\Scripts\activate.bat
  3. Upgrade pip:

    pip install --upgrade pip
  4. Install dependencies:

    pip install -r requirements.txt

Troubleshooting

  • Python 3.10 not found: Make sure Python 3.10 is installed and added to your PATH. You can verify by running python3.10 --version (macOS) or py -3.10 --version (Windows).

  • Virtual environment activation fails: Make sure you're in the project root directory and the venv folder exists.

  • Dependencies fail to install: Ensure you have an active internet connection and pip is up to date. Try upgrading pip first: pip install --upgrade pip

  • PowerShell execution policy error (Windows): Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser in an administrator PowerShell window.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.8%
  • PowerShell 9.3%
  • Shell 5.9%