본문 바로가기

반응형

전체 글

(130)
[에러 해결] hint: You have divergent branches and need to specify how to reconcile them. / git config pull.rebase true hint: You have divergent branches and need to specify how to reconcile them.  hint: You have divergent branches and need to specify how to reconcile them.you can do so by running one of the following commands sometime before your next pull... 해당 브랜치에서 remote branch에서 업데이트된 내용을 local branch에 가져오려고 'git pull' 또는 'git fetch'를 할 때 이런 에러가 날 때가 있다.     해당 에러는 로컬 브랜치에서 아직 변경한 내용이 남겨져서 그럴 수도 있다     해결: ..
[코드] matplotlib에서 marker 마커로 scatter plot하기 / 성능 그래프 피겨 figure 1. 가장 간단한 matplotlib with scatter plot  import matplotlib.pyplot as plt# Example Datax = [10, 20, 30, 40, 50, 60]y = [10, 30, 20, 50, 70, 80]labels = ['Method A', 'Method B', 'Method C', 'Method D', 'Method E', 'Method F']categories = ['Classic', 'Machine Learning', 'Self-Supervised', 'Externally Guided', 'Externally Guided', 'Machine Learning']colors = ['green', 'blue', 'orange', ..
[코드] PIL image를 show 하기 / numpy array plt.show PIL image를 보는 여러 방법  PIL Image는 python code에서 이미지를 볼 때 많이 사용됩니다. 그 이미지를 보는 방법은 여러 가지가 있는데,  # 1. Show the image directly (opens in default image viewer)image = row['image']image.show() 첫번째는 image.show()입니다단순하게 이미지를 보여주는 function이 PIL Image 오브젝트에 포함되어 있기 때문에 바로 사용할 수 있습니다   # 2. Convert to numpy array (useful for manipulation or visualization with matplotlib)import numpy as npimport matplotlib.py..

반응형