zip2 [ PyTorch / torchvision ] draw_bounding_boxes() 사용하기 [ PyTorch / torchvision ] draw_bounding_boxes() 사용하기 [ 이전 글 ] [ Pytorch ] 파이토치 텐서 합치는 방법 : cat(), stack() ( + dim의 의미와, 병합 방식의 차이) [ Pytorch ] nn.BCELoss, nn.BCEWithLogitsLoss, nn.CrossEntropyLoss, nn.NLLLoss 총정리 [ PyTorch / torchvision ] make_grid() 사용하기 torchivision.utils.draw_bounding_box (링크) 이미지에 Bounding Box를 그려주는 함수입니다. Input 이미지는 0~255 사이의 값(uint8)을 가져야 합니다. parameters tensor (Tensor) : .. 2022. 8. 30. [Python 3] iterable 란 무엇인가. filter(), map(), zip(), sorted iterable 이란 반복 가능하다는 뜻이다. 한 번에 하나씩 자료를 반환할 수 있는 파이썬 객체이다. 간단히 말해 for 문으로 그 값을 출력 할 수 있는 것을 의미한다. iterable한 객체 종류 - All sequence types : list, str, and tuple - Some non-sequence types : dict, file, and objects of any classes you define with an __iter__() or __getitem__()method. iterable한 객체를 argument로 받는 함수 종류 all (x) : iterable 자료형 x 를 입력 인수로 받으며, x 가 모두 참이면 True, 하나라도 거짓이면 False를 리턴. >>> x = [1.. 2020. 3. 10. 이전 1 다음