GithubHelp home page GithubHelp logo

vnopenai / vn-aidr Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 7.0 10.14 MB

VN AIDr - Open source medical image processing platform

Home Page: https://dr.vnopenai.org/

CSS 68.56% JavaScript 5.27% HTML 3.86% SCSS 8.44% Python 13.33% Dockerfile 0.53%
medical-image-processing nlp vn-aidr

vn-aidr's Introduction

VN AIDr - Open source medical image processing project

Project documentation (only Vietnamese): https://vnopenai.github.io/ai-doctor/.

This project contains baseline models for medical image processing and a web user interface for interacting with the system. Our goal is to create an open source code base for students, hobbylists, engineers, or even researchers to get familar with image processing, machine learning and deep learning through medical image processing problems. In this system, we also integrate natural language processing (NLP) models for automatic completion of medical reports.

Want to join us in this project? Send us a message via our contact form.

Click following image to play demo video.

VN AIDr - Prediction

Requirements

1. Server

  • Download pretrained models here and extract them into trained_models.

  • Install requirements:

pip install -r requirements.txt

Or for requirements for CUDA support (require CUDA 10.2):

pip install -r requirements-gpu.txt
  • Update USE_GPU in configs/common.py to True to enable GPU support.

  • Run the server:

python app.py --port 8080
  • Open http://localhost:8080 in your browser to access web UI.

2. Frontend (UI)

Development

cd frontend
yarn
yarn start

Build

cd frontend
yarn
yarn build

3. Deployment using Docker

Without GPU support

  • Build image
docker build . -t vnaidr
  • Run server
docker run -it -p 8080:8080 vnaidr
  • Open http://localhost:8080 in your browser to access web UI.

With GPU support (Only NVIDIA GPU with CUDA)

  • Update USE_GPU in configs/common.py to True to enable GPU support.

  • Build image

docker build -t vnaidr-gpu -f Dockerfile-gpu .
  • Run server
docker run --gpus all -it  -p 8080:8080  vnaidr-gpu
  • Open http://localhost:8080 in your browser to access web UI.

Copyright and License

The template was developed based on SB Admin 2.

vn-aidr's People

Contributors

dependabot[bot] avatar vietanhdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vn-aidr's Issues

Could not load dynamic library 'libcudart.so.11.0'

Hi @vietanhdev ,

I am a newbie to AI&ML. I am very impressed with this project. I tried to run it on my iMac with docker. But I got this error. Can you help me to resolve it?

Many thanks.

Error image here

docker run -it -p 8080:8080 vnaidr
2022-09-29 09:11:50.024991: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-09-29 09:11:50.885497: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/appuser/.local/lib/python3.8/site-packages/cv2/../../lib64:
2022-09-29 09:11:50.885563: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2022-09-29 09:11:51.009429: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2022-09-29 09:11:52.213252: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/appuser/.local/lib/python3.8/site-packages/cv2/../../lib64:
2022-09-29 09:11:52.214585: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /home/appuser/.local/lib/python3.8/site-packages/cv2/../../lib64:
2022-09-29 09:11:52.216723: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
Traceback (most recent call last):
  File "/home/appuser/.local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
  File "/home/appuser/.local/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/appuser/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/appuser/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/appuser/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/main.py", line 408, in main
    run(
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/main.py", line 576, in run
    server.run()
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/server.py", line 67, in serve
    config.load()
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/config.py", line 479, in load
    self.loaded_app = import_from_string(self.app)
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/importer.py", line 24, in import_from_string
    raise exc from None
  File "/home/appuser/.local/lib/python3.8/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/appuser/app/./app.py", line 16, in <module>
    from runners.vn_accent import VNAccentRunner
  File "/home/appuser/app/./runners/vn_accent.py", line 7, in <module>
    from model_utils.vn_accent.accent_utils import extract_words, remove_tone_line
ModuleNotFoundError: No module named 'model_utils.vn_accent.accent_utils'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.