You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.py 2.4 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # !/usr/bin/env python
  2. # -*- coding:utf-8 -*-
  3. """
  4. Copyright 2020 Tianshu AI Platform. All Rights Reserved.
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. =============================================================
  15. """
  16. import json
  17. host = ''
  18. port = 6379
  19. db = 0
  20. password = ''
  21. # text_classification
  22. textClassificationQueue = 'text_classification_task_queue'
  23. textClassificationStartQueue = 'text_classification_processing_queue'
  24. textClassificationFinishQueue = 'text_classification_finished_queue'
  25. # annotation
  26. queue = 'annotation_task_queue'
  27. annotationStartQueue = 'annotation_processing_queue'
  28. annotationFinishQueue = 'annotation_finished_queue'
  29. # imagenet
  30. imagenetTaskQueue = 'imagenet_task_queue'
  31. imagenetStartQueue = 'imagenet_processing_queue'
  32. imagenetFinishQueue = 'imagenet_finished_queue'
  33. # ofrecord
  34. ofrecordTaskQueue = 'ofrecord_task_queue'
  35. ofrecordStartQueue = 'ofrecord_processing_queue'
  36. ofrecordFinishQueue = 'ofrecord_finished_queue'
  37. # track
  38. trackTaskQueue = 'track_task_queue'
  39. trackStartQueue = 'track_processing_queue'
  40. trackFinishQueue = 'track_finished_queue'
  41. trackFailedQueue = 'track_failed_queue'
  42. # videosample
  43. videoPendingQueue = "videoSample_unprocessed"
  44. videoStartQueue = "videoSample_processing"
  45. videoFinishQueue = "videoSample_finished"
  46. videoFailedQueue = "videoSample_failed"
  47. # lungsegmentation
  48. dcmTaskQueue = "dcm_task_queue"
  49. dcmStartQueue = "dcm_processing_queue"
  50. dcmFinishQueue = "dcm_finished_queue"
  51. # imgprocess
  52. imgProcessTaskQueue = 'imgProcess_unprocessed'
  53. imgProcessFinishQueue = 'imgProcess_finished'
  54. imgProcessStartQueue = "imgProcess_processing"
  55. imgProcessFailedQueue = "imgProcess_failed"
  56. threadCount = 5
  57. configPath = "/Users/wangwei/Downloads/algorithm/config.json"
  58. sign = "/Users/wangwei/Downloads/algorithm/sign"
  59. def loadJsonData(path):
  60. with open(path, 'r', encoding='utf8') as fp:
  61. jsonData = json.load(fp)
  62. return jsonData

一站式算法开发平台、高性能分布式深度学习框架、先进算法模型库、视觉模型炼知平台、数据可视化分析平台等一系列平台及工具,在模型高效分布式训练、数据处理和可视分析、模型炼知和轻量化等技术上形成独特优势,目前已在产学研等各领域近千家单位及个人提供AI应用赋能