-
PyTorch pow()
PyTorch - torch.pow[1] a = torch.randn(4) # tensor([ 0.4331, 1.2475, 0.6834, -0.2791]) torch.pow(a, 2) # tensor([ 0.1875, 1.5561, 0.4670, 0.0779]) exp = torch.arange(1., 5.) # tensor([ 1., 2., 3., 4.]) a = torch.arange(1., 5.) # tensor([ 1., 2., 3., 4.]) torch.pow(a, exp) # tensor([ 1., 4., 27., 256.]) explain Takes th... Read More
-
Instance Normalization: The Missing Ingredient for Fast Stylization
Normalization Literature List Instance Normalization: The Missing Ingredient for Fast Stylization https://arxiv.org/abs/1607.08022 Read More
-
PyTorch ReflectionPad2d()
PyTorch - torch.nn.ReflectionPad2d[1] torch.nn.ReflectionPad2d( padding: Tuple[int, int, int, int] # Tuple[left, right, top, bottom] ) m = torch.nn.ReflectionPad2d(2) input = torch.arange(9, dtype=torch.float).reshape(1, 1, 3, 3) print(input) print(m(input)) ''' tensor([[[[0., 1., 2.], [3., 4., 5.], [6., 7., 8.]]]]) ... Read More
-
PyTorch InstanceNorm2d()
PyTorch - torch.nn.InstanceNorm2d[1] torch.nn.InstanceNorm2d( num_features: int, eps: float = 1e-5, momentum: float = 0.1, affine: bool = False, track_running_stats: bool = False, device=None, dtype=None ) -> None: m = torch.nn.InstanceNorm2d(100) m = torch.nn.InstanceNorm2d(100, affine=True) input = torch.randn... Read More
-
ubuntu count directory files
현재 위치에서 파일의 개수 세기 ls -l | grep ^- | wc -l 현재 디렉토리의 하위 파일 개수 세기 find . -type f | wc -l Reference https://lee-mandu.tistory.com/420 Read More
-
pytorch 1.7.1 install error
python-pillow - Issues Error message ... The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. Solution pip3 -U --force-reinstall pip Read More
-
mmfashion Dockerfile GPG error
mmfashion - Issues Error message W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRe... Read More