diff --git a/cope2n-ai-fi/Dockerfile b/cope2n-ai-fi/Dockerfile index 156497d..9c5d91c 100755 --- a/cope2n-ai-fi/Dockerfile +++ b/cope2n-ai-fi/Dockerfile @@ -15,7 +15,7 @@ RUN pip install mmcv==1.6.0 -f https://download.openmmlab.com/mmcv/dst/cu116/tor RUN ln -s /opt/conda/lib/python3.10/site-packages/torch/lib/libcudnn.so.8 /usr/lib/libcudnn.so && \ ln -s /opt/conda/lib/libcublas.so /usr/lib/libcublas.so -RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir +# RUN python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html --no-cache-dir RUN pip install fastdeploy-gpu-python==1.0.7 -f https://www.paddlepaddle.org.cn/whl/fastdeploy.html --no-cache-dir @@ -29,36 +29,9 @@ RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu/sdsvkvu/externals/sdsvocr/sdsvocr RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu/sdsvkvu/externals/sdsvocr/sdsvocr/externals/sdsvtr && pip3 install -v -e . --no-cache-dir RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu/sdsvkvu/externals/sdsvocr && pip3 install -v -e . --no-cache-dir -# COPY ./modules/sdsvkvu/sdsvkvu/externals/sdsvocr/externals/sdsv_dewarp /tmp/sdsv_dewarp -# RUN cd /tmp/sdsv_dewarp && pip install -v -e . --no-cache-dir - -# COPY ./modules/sdsvkvu/sdsvkvu/externals/sdsvocr/externals/sdsvtd /tmp/sdsvtd -# RUN cd /tmp/sdsvtd && pip install -v -e . --no-cache-dir - -# COPY ./modules/sdsvkvu/sdsvkvu/externals/sdsvocr/externals/sdsvtr /tmp/sdsvtr -# RUN cd /tmp/sdsvtr && pip install -v -e . --no-cache-dir - -# COPY ./modules/sdsvkvu/sdsvkvu/externals/sdsvocr/requirements.txt /tmp/sdsvocr/requirements.txt -# RUN pip install -r /tmp/sdsvocr/requirements.txt - -# ENV PIP_DEFAULT_TIMEOUT 100 -# COPY ./modules/sdsvkvu /tmp/sdsvkvu -# RUN cd /tmp/sdsvkvu && pip install -v -e . --no-cache-dir - -# COPY ./requirements.txt /tmp/requirements.txt -# RUN pip install -r /tmp/requirements.txt --no-cache-dir - RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu && pip3 install -v -e . --no-cache-dir RUN cd /workspace/cope2n-ai-fi && pip3 install -r requirements.txt --no-cache-dir -# RUN rm -f /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libcublasLt.so.11 && \ -# rm -f /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libcublas.so.11 && \ -# rm -f /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libnvblas.so.11 && \ -# ln -s /opt/conda/lib/libcublasLt.so /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libcublasLt.so.11 && \ -# ln -s /opt/conda/lib/libcublas.so /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libcublas.so.11 && \ -# ln -s /opt/conda/lib/libnvblas.so /usr/local/lib/python3.10/dist-packages/nvidia/cublas/lib/libnvblas.so.11 - - WORKDIR /workspace ENV PYTHONPATH="." diff --git a/cope2n-api/fwd_api/api/accuracy_view.py b/cope2n-api/fwd_api/api/accuracy_view.py index 67c9ae4..8f2c408 100755 --- a/cope2n-api/fwd_api/api/accuracy_view.py +++ b/cope2n-api/fwd_api/api/accuracy_view.py @@ -213,7 +213,8 @@ class AccuracyViewSet(viewsets.ViewSet): 'Server Processing Time (ms)': rq.preprocessing_time + rq.ai_inference_time, 'Is Reviewed': rq.is_reviewed, # 'Is Bad Quality': request.is_bad_image_quality, - 'created_at': rq.created_at.isoformat() + 'created_at': rq.created_at.isoformat(), + 'raw_accuracy': rq.raw_accuracy*100 if isinstance(rq.raw_accuracy, float) else None, }) response = { @@ -783,7 +784,8 @@ class AccuracyViewSet(viewsets.ViewSet): 'Feedback Accuracy': subscription_request.feedback_accuracy, 'Reviewed Accuracy': subscription_request.reviewed_accuracy, 'Created At': subscription_request.created_at.isoformat(), - 'Updated At': subscription_request.updated_at.isoformat() + 'Updated At': subscription_request.updated_at.isoformat(), + 'raw_accuracy': subscription_request.raw_accuracy*100 if isinstance(subscription_request.raw_accuracy, float) else None, }) response = {