본문 바로가기
반응형

컴퓨터쟁이/Python26

우분투 jupyter notebook 파일 삭제 후 복원하기 우분투에서 어쩌다가 juypyter notebook에서 폴더나 파일을 삭제했을 경우에 다시 어떻게 복원하는지를 찾아보게 되었다. 파일 이름으로 복원하는 방법 %history -g -f anyfilename 리눅스의 경우 삭제된 파일이 완전 삭제되지않는한, 기록되어있는 폴더가 있으니 거기서 찾아오는 방법도 있다. 폴더 위치 : /home/$USER/.local/share/Trash/anyfilename [참고] https://stackoverflow.com/questions/38819322/how-to-recover-deleted-ipython-notebooks How to recover deleted iPython Notebooks I have iPython Notebook through Anaconda.. 2022. 3. 8.
error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'circle' - img = array_patient[:,:, img_shape[2]//2] 인 상태에서 사용했을 경우에 이러한 오류가 난다. error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'circle' > Overload resolution failed: > - Layout of the output array img is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels) > - Expected Ptr for argument 'img' - img2 = array_patient[:,:, img_shape[2]//2].copy() .copy()를 사용.. 2022. 3. 2.
python 패키징 하는 방법 2 - py2exe 여긴 아직 안해보고 조사만 했다. 해보고 다시 또 글 수정하는 걸로...ㅎ Py2exe http://www.py2exe.org/ FrontPage - py2exe.org py2exe py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Development is hosted on GitHub. You can find the mailing list, svn, and downloads for Python www.py2exe.org https://docs.python.org/2/faq/w.. 2021. 8. 26.
python 패키징 하는 방법 1- Pyinstaller 정말 나는 패키징에 대해서 한번도 해본 적이 없어서 몰랐다. 이게 엄청....엄청....생각보다 까다로웠다는 것을.....! 혹시 딥러닝이나 머신러닝을 돌리고 해당 모델을 패키징을 하려면 아래의 글을 읽고 코드의 구조가 저렇게 정리되어 있는지 확인하길 바란다. https://towardsdatascience.com/building-package-for-machine-learning-project-in-python-3fc16f541693 Building package for machine learning project in Python Most of machine learning projects I’ve seen are in permanent experiment state with no clear plan.. 2021. 8. 26.
728x90
반응형