라벨이 python인 게시물 표시

detectron compile error

  ## detectron compile conda create -n gtext2 python==3.8 conda activate gtext2 pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117 pip install opencv-python scipy timm shapely albumentations Polygon3 python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' rm -rf build/ **/*.so python setup.py build develop cd gtextdetect/ sudo apt install gcc-10 g++-10 nvcc --version conda install -c "nvidia/label/cuda-11.7.0" cuda-toolkit nvcc --version python setup.py build develop python demo/demo.py --config-file ./configs/DPText_DETR/TotalText/R_50_poly.yaml --input /data/camera1/2023/202307/20230705/5 --output /home/gnoti/gtextdetect/output/test ## detectron2 error (base) min@min-MS-7C94:~/python/dptext-detr$ conda create --name textfusenet python=3.7.3 -y Collecting package metadata (current_repodata.json): done Solving environment: failed with repodata from current_repodat

RuntimeError: CUDA error: no kernel image is available for execution on the device

이미지
  ## pytorch remove pip uninstall torch Found existing installation: torch 1.9.0 Uninstalling torch-1.9.0: Would remove: /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/caffe2_legacy_pb2.py /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/hsm_pb2.py /home/min/anaconda3/envs/easy/lib/python3.8/site-packages/caffe2/proto/metanet_pb2.py      check torch  version   ## pytroch install https://pytorch.org/get-started/previous-versions/ ## pytorch reinstall (easy) [min@ai deep-text-recognition-benchmark]$ conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=10.2 -c pytorch Collecting package metadata (current_repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.10.3 latest version: 4.13.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /ho

CUDA error: no kernel image is available for execution on the device

  ## pytorch reinstall (keras) [min@ai grecognition]$ conda uninstall pytorch Collecting package metadata (repodata.json): done Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.10.3 latest version: 4.13.0 Please update conda by running $ conda update -n base -c defaults conda ## Package Plan ## environment location: /home/min/anaconda3/envs/keras removed specs: - pytorch The following packages will be downloaded: package | build ---------------------------|----------------- debugpy-1.5.1 | py37h295c915_0 1.7 MB entrypoints-0.4 | py37h06a4308_0 16 KB ipython-7.31.1 | py37h06a4308_0 1013 KB jedi-0.18.1 | py37h06a4308_1 980 KB jupyter_client-7.2.2 | py37h06a4308_0 190 KB jupyter_core-4.10.0 | py37h06a4308_0 75 KB nest-asyn

AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'

## python error (a1) [root@localhost Autonomous-Vehicle-Environment-Perception]# python main.py --video test.mov Yolo model loaded! CULane model loaded! Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /root/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth 100%|████████████████████████████████████████████████████████████████████████████████████| 44.7M/44.7M [00:00<00:00, 70.5MB/s] SGD model loaded! Sign Detection model loaded! resize False rotate False Traceback (most recent call last): File "main.py", line 101, in <module> yoloOutput = detector.detect(frame) File "/root/yolo/Autonomous-Vehicle-Environment-Perception/elements/yolo.py", line 46, in detect pred = self.yolo_model(img, augment=False)[0] File "/root/anaconda3/envs/a1/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, **kwargs) File "/root/yolo/Autonomous-Vehicle

install labelImg

## install labelImg sungmin@ requirements % conda create -n labelimg python=3.8 Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: /Users/sungmin/miniforge3/envs/labelimg added / updated specs: - python=3.8 The following NEW packages will be INSTALLED: ca-certificates pkgs/main/osx-arm64::ca-certificates-2021.10.26-hca03da5_2 certifi pkgs/main/osx-arm64::certifi-2021.10.8-py38hca03da5_2 libcxx pkgs/main/osx-arm64::libcxx-12.0.0-hf6beb65_1 libffi pkgs/main/osx-arm64::libffi-3.4.2-hc377ac9_2 ncurses pkgs/main/osx-arm64::ncurses-6.3-h1a28f6b_2 openssl pkgs/main/osx-arm64::openssl-1.1.1m-h1a28f6b_0 pip pkgs/main/osx-arm64::pip-21.2.4-py38hca03da5_0 python pkgs/main/osx-arm64::python-3.8.11-hbdb9e5c_5 readline pkgs/main/osx-arm64::readline-8.1.2-h1a28f6b_1 setuptools pkgs/main/osx-

ImportError Tensorflow 2.7.0 on M1

## Error Message >>> import tensorflow as tf Traceback (most recent call last): File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/__init__.py", line 22, in <module> from . import multiarray File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in <module> from . import overrides File "/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in <module> from numpy.core._multiarray_umath import ( ImportError: dlopen(/Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so, 0x0002): Library not loaded: @rpath/libcblas.3.dylib Referenced from: /Users/sungmin/miniforge3/envs/tf/lib/python3.9/site-packages/numpy/core/_multiarray_umath.cpython-39-darwin.so Reason: tried: '/Users/sungmin/miniforge3/envs/tf/lib/libcblas.3.dylib' (no such f

Using Tensorflow GPUs on M1

## Install Xcode xcode-select --install   ## Install miniforge wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh chmod +x Miniforge3-MacOSX-arm64.sh sh Miniforge3-MacOSX-arm64.sh source ~/miniforge3/bin/activate ## Create Env conda create -n tf python==3.9 -y conda activate tf ## Install Tensorflow  conda install -c apple tensorflow-deps pip install tensorflow-macos pip install tensorflow-metal ## Check >>> import tensorflow as tf >>> tf.__version__ '2.6.0' >>> tf.config.list_physical_devices() [PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU'), PhysicalDevice(name='/physical_device:GPU:0', device_type='GPU')]

install kochat

## install kochat   (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install kochat Requirement already satisfied: kochat in /root/anaconda3/lib/python3.8/site-packages (1.0.3) Requirement already satisfied: pytorch-crf==0.7.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.7.2) Requirement already satisfied: pandas==1.0.4 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.0.4) Requirement already satisfied: flask==1.1.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.1.2) Requirement already satisfied: konlpy==0.5.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.5.2) Requirement already satisfied: joblib==0.15.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.15.1) Requirement already satisfied: requests==2.24.0 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (2.24.0) Requirement already satisfied: matplotlib==3.2.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (3.2.1) Require

install python 3.7 on centos7

install python 3.7 on centos7 #install yum repository [root@localhost ~]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm Loaded plugins: fastestmirror, langpacks ius-release.rpm | 8.2 kB 00:00:00 Examining /var/tmp/yum-root-CBgYb0/ius-release.rpm: ius-release-2-1.el7.ius.noarch Marking /var/tmp/yum-root-CBgYb0/ius-release.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package ius-release.noarch 0:2-1.el7.ius will be installed --> Finished Dependency Resolution base/7/x86_64 | 3.6 kB 00:00:00 base/7/x86_64/group_gz | 165 kB 00:00:00 base/7/x86_64/primary_db