Skip to content

Commit

Permalink
Merge pull request cquest#28 from cquest/split_blur_detect
Browse files Browse the repository at this point in the history
Split blur detect
  • Loading branch information
cquest authored Feb 27, 2024
2 parents a0b6a4d + e89fc7f commit 121c87f
Show file tree
Hide file tree
Showing 13 changed files with 584 additions and 276 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pyc
datasets

60 changes: 0 additions & 60 deletions ALGORITHMS.md

This file was deleted.

134 changes: 0 additions & 134 deletions CODE_OF_CONDUCT.md

This file was deleted.

15 changes: 8 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ultralytics==8.1.18
ultralytics==8.1.19
pyturbojpeg==1.7.3
Pillow-simd
uuid
exifread
python-multipart
fastapi
uvicorn
Pillow-simd==9.0.0
uuid=1.30
exifread=3.0.0
python-multipart==0.0.9
fastapi==0.110.0
uvicorn=0.27.1
requests=2.31.0
5 changes: 3 additions & 2 deletions scripts/blurdir
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#! /bin/bash

API=https://blur.panoramax.openstreetmap.fr/blur/
#API=https://blur.panoramax.openstreetmap.fr/blur/
API=http://127.0.0.1:8000/blur/

cd "$1"
mkdir -p blur
rm -f blur/*
ls -1 *.jpg *.JPG | /usr/bin/time -v parallel --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"
ls -1 *.jpg *.JPG | parallel -j 4 --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"
Binary file removed src/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import FastAPI, UploadFile, Response
import gc
from .blur import blur
from . import blur
import json

app = FastAPI()
Expand Down
Loading

0 comments on commit 121c87f

Please sign in to comment.