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...

git push with stored password

## set userid git config --global user.name 이름 git config --global user.email 이메일   ## set password git config credential.helper store  

install nvidia driver on rocky linux

## install nvidia driver dnf install epel-release# sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r) sudo dnf install nvidia-driver nvidia-settings sudo dnf install cuda-driver nvidia-smi      ## check  (base) [root@localhost ~]# nvidia-smi Mon Mar 14 15:34:06 2022 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================...

rocky linux login xfce with xrdp

## install xrdp (base) [root@localhost min]# dnf install xrdp Rocky Linux 8 - PowerTools 6.3 kB/s | 4.8 kB 00:00 꾸러미 xrdp-1:0.9.18-5.el8.x86_64가 이미 설치되어 있습니다. 종속성이 해결되었습니다. 처리가 필요하지 않습니다. 완료되었습니다! (base) [root@localhost min]#   ## install xrdp systemctl enable xrdp --now systemctl status xrdp firewall-cmd --add-port=3389/tcp --permanent firewall-cmd --reload   ##  Install XFCE Desktop Environment (base) [root@localhost min]# dnf groupinstall -y "Xfce" 마지막 메타자료 만료확인 0:02:57 이전인: 2022년 03월 04일 (금) 오후 04시 46분 22초. 그룹 꾸러미 "NetworkManager-gnome"에 일치하는 항목이 없습니다 종속성이 해결되었습니다. =============================================================================================================================================================================== 꾸러미 구조 버전 ...

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')]