File size: 2,541 Bytes
82b68ff
af87ccd
82b68ff
 
af87ccd
82b68ff
 
 
 
 
af87ccd
82b68ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# CSE 555 Term Project (Computer Vision and Natural Language Processing)

## Overview
This project is a multi-featured application focused on food image classification, variation detection, recipe recommendation, and reporting. It leverages deep learning and NLP techniques to provide a comprehensive toolkit for food-related data analysis and user interaction.

## Features
- **Image Classification:** Classify food images using pre-trained models.
- **Variation Detection:** Detect variations in food items.
- **Recipe Recommendation:** Recommend recipes based on user input and image analysis.
- **Report Generation:** Generate reports based on classification and recommendation results.

## Project Structure
```
PatternRec_Project_Group5/
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ css/                # Stylesheets
β”‚   β”œβ”€β”€ modelWeights/       # Pre-trained model weights (.pth)
β”‚   └── nlp/                # NLP data and models (to be downloaded from google drive once the app runs)
β”œβ”€β”€ config.py               # Configuration file
β”œβ”€β”€ Scripts/                # Configuration file
β”‚   β”œβ”€β”€ CV/                 # CV Training script
β”‚   β”œβ”€β”€ NLP/                # NLP Training script
β”œβ”€β”€ Home.py                 # Main entry point (possibly Streamlit or similar)
β”œβ”€β”€ model/                  # Model code (classifier, search recipe)
β”œβ”€β”€ pages/                  # App pages (image classification, variation detection, etc.)
β”œβ”€β”€ utils/                  # Utility functions (layout, etc.)
β”œβ”€β”€ sakenv/                 # Python virtual environment
```

## Setup Instructions
1. **Clone the repository:**
   ```bash
   git clone <repo-url>
   cd PatternRec_Project_Group5
   ```
2. **Create and activate the virtual environment: (Already included as sakenv/):**
   ```bash
   source sakenv/bin/activate
   ```
3. **Install dependencies:**
   ```bash
   pip install -r requirements.txt
   ```
4. **Run the application:**
   - If using Streamlit:
     ```bash
     streamlit run Home.py
     ```
   - Or follow the instructions in `Home.py`.

## Python Version
- Python 3.12.2

## Notes
- Model weights are stored in the `assets/` directory.
- NLP weights were quite large and are stored at [CSE 555 Project Group 5](https://drive.google.com/drive/folders/1m6cfy4NuxIKNDBtJqm150NNN0FSUS8Np)
- Ensure you have the necessary permissions to access large files in `assets/modelWeights/` and `assets/nlp/`.
- For best results, use the provided virtual environment and requirements file.