8000 GitHub - azegas/kalorijos
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

azegas/kalorijos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kalorijos

  • TODO what is data types in python
  • TODO what are data structures in python
  • TODO what is numpy
  • TODO try to use uncensorised model (from llama page)
  • TODO try to load custom model like such
  • TODO how to run this thing in the cloud/faster?
  • TODO instead of scraping infro from the site, try to give the html for the ai and let it pick out headlines for example

Inspirations

Run lokaliai

curl -fsSL https://ollama.com/install.sh | sh
ollama pull llava:7b
ollama run llava:7b
/show
/set
/set system "you are a drunk assistant that slurs a lot and speaks rudely"
/save drunk
/load drunk
/bye
ollama list
pip install ollama
curl -o cepelinai.jpg https://ecoangus.lt/wp-content/uploads/2021/01/cepelinai-80268533.jpg

It takes about 3-4 minutes to process one images and the results are not so great:

(venv-kalorijos) aze@DESKTOP-AUDMJ7D:~/GIT/kalorijos$ python main.py 
 The image shows a dish consisting of two golden-brown potato wedges, likely baked or fried, topped with what appears to be crumbled cheese and finely chopped herbs. The dish is garnished with a dollop of cream or sauce on the side. The wedges are placed on a ceramic plate with visible grain lines, which suggests it could be a handcrafted or artisanal piece. In the background, there's a blurred wooden surface that might be a table, and the focus is clearly on the food in the foreground. There are no texts visible in the image. 
(venv-kalorijos) aze@DESKTOP-AUDMJ7D:~/GIT/kalorijos$ python main.py 
 This is a plate of mixed vegetables including what appears to be shrimp, cucumber, lettuce, tomato, and carrot. It's garnished with herbs and possibly feta cheese or crumbled nuts. The colors suggest it might also have some bell pepper. The dish looks fresh and vibrant, suggesting a healthy and balanced meal. A rough estimate of the calories in this meal would be around 350-450 calories, depending on portion size and any additional dressing or sauce that may not be visible. This assumes an average serving size for shrimp and mixed vegetables. 
(venv-kalorijos) aze@DESKTOP-AUDMJ7D:~/GIT/kalorijos$ python main.py 
 The food appears to be a breakfast cereal, such as oatmeal, with visible flakes and perhaps some nuts or seeds on top. The dish is in a bowl and there are additional flakes spread around it. 
(venv-kalorijos) aze@DESKTOP-AUDMJ7D:~/GIT/kalorijos$ python main.py 
 The image shows a bowl of oatmeal, which appears to be a simple, unflavored preparation. Oatmeal is a common breakfast item made from whole grain oats and water or milk. It's often served with additional ingredients like sugar, cinnamon, butter, or fruit, which would add more calories. The calorie count of the food in the picture would depend on several factors such as the size of the bowl, whether it's made with water or milk, if any sweeteners or fats have been added, and if there are additional ingredients like fruits, nuts, or seeds mixed in.

Without knowing the exact preparation and serving size, it's not possible to provide an accurate calorie count for this bowl of oatmeal. If we consider a basic unsweetened serving of oatmeal made with water or milk, the calories can range from around 150 to 300 per serving, depending on the ingredients and portion size. However, without more information or context, I'm unable to provide a specific calorie count for this image. 

Baisiai brangu runninti on the cloud...

While vCPUs can handle ML models, models like LLaMA benefit heavily from GPUs due to the parallel processing required for efficient matrix operations, especially during inference (i.e., processing the image and generating predictions).
Running a model on a GPU-accelerated instance will result in much faster inference compared to CPU-based VMs, especially for real-time applications like meal recognition.
VM Recommendations for Your Case:
For running LLaMA and handling image processing with meal recognition, I recommend the following GCP instance types:

N2 Standard (CPU-based):

4 vCPUs, 16 GB RAM, 100 GB storage: $0.14/hour ($100/month)
This might be okay for light inference, but still may struggle with real-time processing.
A2 Instance (GPU-accelerated):

1 GPU, 12 vCPUs, 85 GB RAM: $0.52/hour ($380/month)
This will be much faster for processing images and running models like LLaMA.
Preemptible A2 Instance (GPU-accelerated, cheaper):

1 GPU, 12 vCPUs, 85 GB RAM: $0.16/hour ($115/month)
This could be a cost-saving option for non-real-time applications where uptime is less critical.

Hugging face yra toks modelis pvz - https://huggingface.co/Kaludi/food-category-classification-v2.0 , BET kaip suprantu jisai nera hostintas api huggingface. Jeigu butu - galeciau tiesiog api callus i ji daryti ir psio, nereiketu moketi uz modelio hostinima.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0