Complete guide to set up OpenClaw AI assistant in an isolated VM with local LLM (no cloud APIs).
These are the additional (to the facebase steps) steps taken to make the FaceBase automatic landmarking software work - https://www.facebase.org/resources/human/facial_landmarking/
- Matlab - https://www.mathworks.com/help/install/ug/install-products-with-internet-connection.html
- PyMeshlab - https://pymeshlab.readthedocs.io/en/latest/installation.html
- Install
Statistics and Machine Learning Toolboxadd-on in Matlab for thepdistfunction.
Steps taken
Get_compute_many_Windowsgenerates a now defunct command usingmeshlabserver.exe. This executable has been deprecated since 2020. We need to use PyMeshlab library in python instead.- Use
compute_curvature.pyinstead. This utility generates the curvature of each object.objfile and converts it into a.plyfile withCinformation in it required by the landmarking method. Currently, if you open.objfile, you'll findV(vertices) andF(faces) information.
This file contains hidden or 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
| # Import necessary packages | |
| import os | |
| import pickle | |
| from llama_index import GPTSimpleVectorIndex, download_loader | |
| os.environ['OPENAI_API_KEY'] = '<openai_api_key>' | |
| # Load custom data source. Here it is being loaded from the data directory. | |
| SimpleDirectoryReader = download_loader("SimpleDirectoryReader") |
This file contains hidden or 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
| FROM python:3.6.3 | |
| # install Python modules needed by the Python app | |
| COPY . /Captcha-Prediction | |
| WORKDIR /Captcha-Prediction | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # tell the port number the container should expose | |
| EXPOSE 5000 |
This file contains hidden or 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 script removes stray lines from images using image processing techniques with OpenCV library. | |
| All credit where it's due - https://stackoverflow.com/a/45563349/4411757. Simon Mourier created a script in C# which I | |
| have ported to python. Tested with python 3.5 and opencv-python==3.4.2.17. Shoot your suggestions/improvements in the | |
| comments. Cheers! | |
| """ | |
| def clean_image(img): | |
| height, width = img.shape[:2] |