Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 885 Bytes

File metadata and controls

39 lines (33 loc) · 885 Bytes

Try local VLM models on Ollama

  1. Check if Ollama is running:
    curl http://localhost:11434
  2. Install dependencies
    pip install opencv-python unidecode
  3. Run the Python script 1.3.1.image_processing.py with the following content:
    import ollama
    
    response = ollama.chat(
        model='gemma3:12b',
        messages=[{
            'role': 'user',
            'content': 'Kas matoma paveikslėlyje?',
            'images': ['image.png']
        }]
    )
    
    print(response)
  4. Run the script:
    python3 ./1.3.1.image_processing.py

Let's try to run video processing with Ollama

  1. Check if Ollama is running:
    curl http://localhost:11434
  2. Run the Python script 1.3.2.video_processing.py. Produce input video input.mp4.

Return README.md