-
Clone the repository to your local machine:
git clone https://github.com/Spiral-Memory/MemoryLane.git
-
Navigate to the project directory:
cd MemoryLane
-
Ensure that Python 3.10.0 is installed on your system. This version is required to avoid any potential dependency resolution errors.
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
- On Windows:
.venv\Scripts\activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Download the
intent_cf_model
from the provided link, extract it, and place it in the root folder.
Download intent_cf_model -
Download the
vosk-model-small-en-in-0.4
(used for speech-to-text) from the provided link, and place it in the root folder.
Download vosk-model-small-en-in-0.4
The intent_cf_model
can also be generated manually. To do so, navigate to the dev_test
folder, then go to the intent_train
folder, and run the train.py
file:
cd dev_test/intent_train
python train.py
-
Create a
.env
file and include the following line with your MongoDB connection string:DB_URL=mongodb+srv://username:password@cluster_url/?retryWrites=true&w=majority&appName=appName
-
Navigate to the main script file,
main.py
. -
Run the script to start the project:
python main.py
The main script, main.py
, launches an Assistance Bot to help users interact with the system. Follow these steps:
-
Select an option by typing the corresponding number and pressing Enter:
- 1: Add a new relative.
- 2: Start recognition.
- 3: Exit the program.
-
Adding a New Relative:
- If you choose option
1
, you will be prompted to:- Enter the name, address, relationship, and gender of the relative.
- Upload images of the relative as instructed.
- The script will generate embeddings and update the face detector.
- If you choose option
-
Starting Recognition:
- If you choose option
2
, you will select a mode:- 1: Voice mode for voice recognition.
- 2: Text mode for text recognition.
- The bot will assist with recognition tasks based on the selected mode.
- If you choose option
-
Exiting the Program:
- Choose option
3
to safely exit the application.
- Choose option
-
Invalid Input:
- If an invalid option is entered, the bot will display "Invalid Choice" and prompt you to select again.
Follow the terminal prompts for seamless interaction with the Assistance Bot.