Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Jun 23, 2023

Fixing chromadbd installation ERROR: Failed building wheel for hnswlib

When trying to install chromadb on a python environment, using

$ pip install chromadb

This error below might show up:

[...]

 x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include -I/tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/numpy/core/include -I./hnswlib/ -I/home/p/Documents/dev/python/openai/include -I/usr/include/python3.10 -c ./python_bindings/bindings.cpp -o build/temp.linux-x86_64-cpython-310/./python_bindings/bindings.o -O3 -march=native -fopenmp -DVERSION_INFO=\"0.7.0\" -std=c++14 -fvisibility=hidden
 In file included from /tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../attr.h:13,
 from /tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/class.h:12,
 from /tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/pybind11.h:13,
 from /tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/functional.h:12,
 from ./python_bindings/bindings.cpp:2:
 /tmp/pip-build-env-lorq5gen/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
 266 | #include 
 | ^~~~~~~~~~
 compilation terminated.
 error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
 [end of output]
 
 note: This error originates from a subprocess, and is likely not a problem with pip.
 ERROR: Failed building wheel for hnswlib
Failed to build hnswlib
ERROR: Could not build wheels for hnswlib, which is required to install pyproject.toml-based projects

On a Linux system the solution to fix the error above is to install 2 missing libraries:

$ sudo apt install python3-dev
$ sudo apt-get install build-essential -y






Dec 22, 2022

First steps with AI learning


Since AI (Artificial Intelligence) is all over the place right now, I started to look into that topic and found a few interesting websites.

First, AI is really a revolutionary step forward, why am I saying this?

Well, just look at the music, images that are now generated by a simple text prompt, this is insane, this technology is close to magic, really - it is advanced mathematics, but it feels like magic.

You say the word, and the picture appears in seconds, with visual that can be compared to the most talented artist creation. That is magic.

How does it work, in the background, I have tried to get into the basic of 'Stable Diffusion' (SD for short) and basically it comes to Machine learning, there is a very extensive data set of images, or collection of similar photos, that will be the starting point, then a model is made that is the part which is traditionally called the software, the algorithm, thanks to that part SD will be able to produce an artwork that looks like a painting, or in the style of a particular artist, or a visual style.

To summarize:

- Dataset, that will train the machine learning

- model, that will be interfaced with the program to produce a particular 'style'

and then running the whole thing into a browser


The picture above is 'Black widow' using a style byMarvel Studio, quite decent result

Jun 4, 2020

Minimal Python and git installation for Windows 10 Home edition

The purpose here is to get a super light python development platform

Fits for lightweight PC running Windows 10 Home - with less than 4GB of Ram


Subscribe to: Comments (Atom)

Popular Posts

  • A little pseudo painting using ArtRage2 - "Spring" is the word !
  • What is it lately, this unexplainable need to change everything that works ? What about this idiom " if it ain't broke, don't ...
  • Hannah Wagner (better known by her stage name Miss Hannah Minx; born Oct. 1990) is an American vlogger known on Youtube for her Kawaii ...
  • After I gave a shot at ArtRage2 bundled with the Wacom tablet, I took the other cd that was in the box - and installed .... Photoshop Eleme...

AltStyle によって変換されたページ (->オリジナル) /