Skip to content

Commit

Permalink
Update README - Clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lannguyen0910 committed Oct 24, 2023
1 parent e4016cd commit e8efd2a
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 30 deletions.
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ food-detection-yolov5


## 📔 **Notebook**
- For inference, use this notebook to run the web app [![Notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/1CGEtC65kvoZ-4tcqzeknGrbERvb0beuU/view?usp=sharing)
- For inference, use this notebook to run the web app [![Notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1X06Y-HSPeHbEWtsXpyal8R1PliiVvpJq?usp=sharing)
- For training, refer to these notebooks for your own training:
- Detection: [![Notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/1SywGfyfj3SVrE7VAAl3CshB9s3o8WRXL/view?usp=sharing)
- Classification: [![Notebook](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/11VzRR8NmJyZGJ-3obkuV0zZAlYAPhCY1?usp=sharing)
Expand Down Expand Up @@ -117,19 +117,6 @@ In total, there are 3 implementation versions:
For those who want to play around with the first version, which remains some features, differ from the new version. You can check out the [v1](https://github.com/lannguyen0910/food-detection-yolov5/tree/v1) branch.

## 🌟 **Inference**
- File structure
```
this repo
│ app.py
└───configs
│ └───classification # Contains classification's configurations
| └───test.yaml
│ └───detection # Contains detection's configurations
| └───....
│ └───segmentation # Contains segmentation's configurations
| └───....
```
- Install requirements.
```
pip install -e .
Expand All @@ -140,10 +127,14 @@ pip install -e .
sudo apt-get install ffmpeg
``` -->

- Start the app. Safe to run in insecure connection ```http``` on localhost. You can generate SSL certificate to run the app in ```https```.
- Start the app (Windows). Safe to run in insecure connection ```http``` on localhost. You can generate SSL certificate to run the app in ```https```.
```
run.bat
```
or
```python
python3 app.py
```

<!-- - Switch between ```CPU``` and ```GPU``` in ```configs```
```python
Expand Down
1 change: 0 additions & 1 deletion theseus/detection/augmentations/tta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import torch
from itertools import product
from theseus.utilities.postprocess import box_fusion


Expand Down
1 change: 0 additions & 1 deletion theseus/detection/models/yolov8.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import numpy as np

import torch
Expand Down
1 change: 0 additions & 1 deletion theseus/opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Modified from https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.4/tools/program.py
"""

from argparse import ArgumentParser, RawDescriptionHelpFormatter
import yaml
import json
import os
Expand Down
3 changes: 1 addition & 2 deletions theseus/segmentation/datasets/csv_dataset.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Dict, List, Optional
import os
from typing import List, Optional
import torch
import numpy as np
import pandas as pd
Expand Down
2 changes: 1 addition & 1 deletion theseus/segmentation/datasets/dataset.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, List, Optional
from typing import Dict
import os
import torch
import numpy as np
Expand Down
3 changes: 0 additions & 3 deletions theseus/utilities/loading.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import os
import yaml
import torch
import glob
import logging
from theseus.utilities.loggers.observer import LoggerObserver
LOGGER = LoggerObserver.getLogger("main")

Expand Down
2 changes: 1 addition & 1 deletion theseus/utilities/loggers/observer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Callable, Dict, Optional, List
from typing import Dict, List
import logging
import torch
import matplotlib as mpl
Expand Down
1 change: 0 additions & 1 deletion theseus/utilities/loggers/stdout_logger.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import logging
from .observer import LoggerSubscriber

Expand Down
3 changes: 0 additions & 3 deletions theseus/utilities/loggers/subscriber.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from typing import Callable, Dict, Optional


class LoggerSubscriber:
def __init__(self, **kwargs) -> None:
pass
Expand Down
1 change: 0 additions & 1 deletion theseus/utilities/tools/split_image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import csv
import argparse
import random
from tqdm import tqdm
Expand Down

0 comments on commit e8efd2a

Please sign in to comment.