Change directory structure

This commit is contained in:
Tobias Eidelpes 2023-02-14 11:42:39 +01:00
parent 55011144fb
commit 6f1dac0627
239 changed files with 28 additions and 8 deletions

23
.gitignore vendored
View File

@ -51,4 +51,25 @@ plantsdata/
images/ images/
dataset*/ dataset*/
*.ptl *.ptl
venv/
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

View File

@ -8,8 +8,8 @@ import albumentations as A
from torchvision import transforms, ops from torchvision import transforms, ops
from albumentations.pytorch import ToTensorV2 from albumentations.pytorch import ToTensorV2
from utils.conversions import scale_bboxes from code.utils.conversions import scale_bboxes
from utils.manipulations import get_cutout from code.utils.manipulations import get_cutout
def detect(img_path: str, yolo_path: str, resnet_path: str): def detect(img_path: str, yolo_path: str, resnet_path: str):
"""Load an image, detect individual plants and label them as """Load an image, detect individual plants and label them as

View File

@ -1,6 +1,6 @@
import fiftyone as fo import fiftyone as fo
from PIL import Image from PIL import Image
from evaluate import detect from code.evaluation.detection import detect
name = "dataset-small" name = "dataset-small"
dataset_dir = "/home/zenon/Documents/master-thesis/evaluation/dataset-small" dataset_dir = "/home/zenon/Documents/master-thesis/evaluation/dataset-small"

View File

@ -4,8 +4,8 @@ import cv2
import json import json
import os import os
from utils.conversions import convert_to_yolo from code.utils.conversions import convert_to_yolo
from detection import detect from code.evaluation.detection import detect
template = [{ template = [{
"data": { "data": {

View File

@ -2,7 +2,6 @@ import argparse
import cv2 import cv2
import torch import torch
from torchvision import transforms from torchvision import transforms
import tkinter
def load_models(yolo_path: str, resnet_path: str): def load_models(yolo_path: str, resnet_path: str):

View File

@ -6,7 +6,7 @@ from apscheduler.schedulers.background import BackgroundScheduler
from multiprocessing import Manager from multiprocessing import Manager
from model import detect from code.evaluation.detection import detect
app = Flask(__name__) app = Flask(__name__)
scheduler = BackgroundScheduler(daemon=True) scheduler = BackgroundScheduler(daemon=True)

Some files were not shown because too many files have changed in this diff Show More