No description
Find a file
francesco-bufalini 0ba7189bfc Commit last-minute
2025-08-02 13:46:28 +02:00
__pycache__ Commit last-minute 2025-08-02 13:46:28 +02:00
hydroshoot Commit last-minute 2025-08-02 13:46:28 +02:00
src/py Commit last-minute 2025-08-02 13:46:28 +02:00
.gitignore Commit last-minute 2025-08-02 13:46:28 +02:00
baseImg.jpeg Commit last-minute 2025-08-02 13:46:28 +02:00
controlImg.png Commit last-minute 2025-08-02 13:46:28 +02:00
image_extraction.py Commit last-minute 2025-08-02 13:46:28 +02:00
index.html Commit last-minute 2025-08-02 13:46:28 +02:00
LICENSE Initial commit 2025-08-01 15:31:57 +00:00
llama.py Commit last-minute 2025-08-02 13:46:28 +02:00
openAlea.py Commit last-minute 2025-08-02 13:46:28 +02:00
output_final.png Commit last-minute 2025-08-02 13:46:28 +02:00
output_initial.png Commit last-minute 2025-08-02 13:46:28 +02:00
README.md Commit last-minute 2025-08-02 13:46:28 +02:00
requirements_plantcv.txt Commit last-minute 2025-08-02 13:46:28 +02:00
requirements_stableDiff.txt Commit last-minute 2025-08-02 13:46:28 +02:00
server.py Commit last-minute 2025-08-02 13:46:28 +02:00
stableDiff.py Commit last-minute 2025-08-02 13:46:28 +02:00

BoneMeal

How to run:

  • Download Llama 3.1-8B-Instruct
  • Insert your HuggingFace token in server.py line 9:
# Insert your HF token here:
login("<HF-token-here>")

Environment Setup for PlantCV & Stable Diffusion

Why two environments?

  • PlantCV 4.8 requires NumPy ≥ 2.0.
  • Stable Diffusion / Diffusers (which uses Torch, Accelerate, ecc.) requires NumPy < 2.0 instead.

These requirements are incompatible in the same Python environment, so the safest way to work is to have two separate virtual environments.


Environment 1 PlantCV (image analysis)

This environment is used for everything AI-free. It requires Anaconda3, but the environment set-up is in the omonymous yamn file

Create the environment

conda create -f env.yaml
conda activate myEnv

The required modules can be found in the file ```requirements_plantcv.txt".

🖼Environment 2 Stable Diffusion (image generation)

This environment is used to generate realistic images (future projections of the plant) based on the JSON produced by PlantCV.

Create the environment

python -m venv env_sd
env_sd\Scripts\activate   # Windows
source env_sd/bin/activate   # Linux/Mac

The required modules can be found in the file requirements_stableDiff.txt