update
This commit is contained in:
parent
9ff1174b89
commit
65479e6844
File diff suppressed because one or more lines are too long
@ -144,6 +144,7 @@ def create_accuracy_report(report_id, **kwargs):
|
|||||||
request.is_required = request.raw_accuracy < settings.NEED_REVIEW if isinstance(request.raw_accuracy, float) else False # No need to review by default
|
request.is_required = request.raw_accuracy < settings.NEED_REVIEW if isinstance(request.raw_accuracy, float) else False # No need to review by default
|
||||||
|
|
||||||
request.save()
|
request.save()
|
||||||
|
|
||||||
number_images += request_att["total_images"]
|
number_images += request_att["total_images"]
|
||||||
number_bad_images += request_att["bad_images"]
|
number_bad_images += request_att["bad_images"]
|
||||||
bad_image_list += request_att["bad_image_list"]
|
bad_image_list += request_att["bad_image_list"]
|
||||||
|
@ -125,6 +125,7 @@ class ReportAccumulateByRequest:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def update_total(total, report_file):
|
def update_total(total, report_file):
|
||||||
|
# Update total = update month
|
||||||
if report_file.bad_image_reason not in settings.ACC_EXCLUDE_RESEASONS:
|
if report_file.bad_image_reason not in settings.ACC_EXCLUDE_RESEASONS:
|
||||||
total["images_quality"]["successful"] += 1 if not report_file.is_bad_image else 0
|
total["images_quality"]["successful"] += 1 if not report_file.is_bad_image else 0
|
||||||
total["images_quality"]["bad"] += 1 if report_file.is_bad_image else 0
|
total["images_quality"]["bad"] += 1 if report_file.is_bad_image else 0
|
||||||
|
@ -17,25 +17,26 @@ services:
|
|||||||
- ctel-sbt
|
- ctel-sbt
|
||||||
privileged: true
|
privileged: true
|
||||||
image: sidp/cope2n-ai-fi-sbt:latest
|
image: sidp/cope2n-ai-fi-sbt:latest
|
||||||
|
# runtime: nvidia
|
||||||
environment:
|
environment:
|
||||||
- PYTHONPATH=${PYTHONPATH}:/workspace/cope2n-ai-fi # For import module
|
- PYTHONPATH=${PYTHONPATH}:/workspace/cope2n-ai-fi # For import module
|
||||||
- CELERY_BROKER=amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq-sbt:5672
|
- CELERY_BROKER=amqp://${RABBITMQ_DEFAULT_USER}:${RABBITMQ_DEFAULT_PASS}@rabbitmq-sbt:5672
|
||||||
- CUDA_VISIBLE_DEVICES=0
|
# - CUDA_VISIBLE_DEVICES=0
|
||||||
volumes:
|
volumes:
|
||||||
- ./cope2n-ai-fi:/workspace/cope2n-ai-fi # for dev container only
|
- ./cope2n-ai-fi:/workspace/cope2n-ai-fi # for dev container only
|
||||||
working_dir: /workspace/cope2n-ai-fi
|
working_dir: /workspace/cope2n-ai-fi
|
||||||
# deploy:
|
deploy:
|
||||||
# resources:
|
resources:
|
||||||
# reservations:
|
reservations:
|
||||||
# devices:
|
devices:
|
||||||
# - driver: nvidia
|
- driver: nvidia
|
||||||
# count: 1
|
count: 1
|
||||||
# capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
# command: bash -c "tail -f > /dev/null"
|
# command: bash -c "tail -f > /dev/null"
|
||||||
command: bash run.sh
|
command: bash run.sh
|
||||||
deploy:
|
# deploy:
|
||||||
mode: replicated
|
# mode: replicated
|
||||||
replicas: 1
|
# replicas: 1
|
||||||
# Back-end services
|
# Back-end services
|
||||||
be-ctel-sbt:
|
be-ctel-sbt:
|
||||||
build:
|
build:
|
||||||
@ -195,8 +196,8 @@ services:
|
|||||||
- POSTGRES_USER=${DB_USER}
|
- POSTGRES_USER=${DB_USER}
|
||||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||||
- POSTGRES_DB=${DB_SCHEMA}
|
- POSTGRES_DB=${DB_SCHEMA}
|
||||||
ports:
|
# ports:
|
||||||
- 54321:5432
|
# - 54321:5432
|
||||||
|
|
||||||
rabbitmq-sbt:
|
rabbitmq-sbt:
|
||||||
mem_reservation: 600m
|
mem_reservation: 600m
|
||||||
|
Loading…
Reference in New Issue
Block a user