일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- 샤미르
- zero knowledge proof
- Adobe
- 블로그_이전_계획보다_지금_해야할게_더_많아서_유지예정
- 어도비
- 완전 비밀 분산
- CC
- haze #텐서플로 #tensorflow #ai
- 디자인
- graph 3 coloring
- #암호학이론
- 비밀 분산 기법
- Shamir
- 포토샵
- UX
- Today
- Total
For Beginners
[딥러닝] 실험 일지 4 본문
음 오늘은 대부분의 에러를 고쳤지만, 자꾸 차원 문제로 골머리를 앓고 있다.
솔직히 이렇게 해서 결과가 좋으면 다행인데, 자꾸 안될 것 같은데 일단 실험의 결과가 나올 때 까지는 보아야 한다.
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 206
hs[ , , :] = image_int
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 208
hs[ , , :] = image_int
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 208
hs[ , , :] = image_int
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 202, in
for image in dirs:
NameError: name 'dirs' is not defined
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 206, in
hs = RGB_To_HSI(hs_path+image)
File "dehaze_int.py", line 96, in RGB_To_HSI
I = np.mean(rgb)
File "<__array_function__ internals>", line 6, in mean
File "/home/yejin/.local/lib/python3.5/site-packages/numpy/core/fromnumeric.py", line 3257, in mean
out=out, **kwargs)
File "/home/yejin/.local/lib/python3.5/site-packages/numpy/core/_methods.py", line 151, in _mean
ret = umr_sum(arr, axis, dtype, out, keepdims)
TypeError: cannot perform reduce with flexible type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 209, in
hs = RGB_To_HSI(hs_path+image)
File "dehaze_int.py", line 101, in RGB_To_HSI
if (r==g==b):
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 209, in
hs = RGB_To_HSI(hs_path+image)
File "dehaze_int.py", line 106, in RGB_To_HSI
min_rgb = min(rgb)
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
dehaze_int.py:109: RuntimeWarning: invalid value encountered in true_divide
temp = ((r-g) + (r-b)) / (2*np.sqrt( (r-g)*(r-g) + (r-b)*(g-b)))
Traceback (most recent call last):
File "dehaze_int.py", line 209, in
hs = RGB_To_HSI(hs_path+image)
File "dehaze_int.py", line 112, in RGB_To_HSI
if b > g:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 99
def GetHue(fi)
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 163, in
cv2.imwrite(savepath+image, hs)
TypeError: Expected Ptr for argument '%s'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 164, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2638, in fromarray
arr = obj.__array_interface__
AttributeError: 'list' object has no attribute '__array_interface__'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 167, in
cv2.imwrite(savepath+image, hs)
TypeError: Expected Ptr for argument '%s'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 254, in
S = GetSaturation(hs_path+image, I)
File "dehaze_int.py", line 190, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: string indices must be integers
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 258, in
S = GetSaturation(hs_path+image, I)
File "dehaze_int.py", line 194, in GetSaturation
S = 1.0 - min_rgb/(intensity+me)
File "/home/yejin/.local/lib/python3.5/site-packages/torch/tensor.py", line 366, in __rdiv__
return self.reciprocal() * other
TypeError: mul(): argument 'other' (position 1) must be Tensor, not numpy.ndarray
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
S = GetSaturation(hs_path+image, I)
File "dehaze_int.py", line 191, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: 'PngImageFile' object is not subscriptable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 191, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: 'PngImageFile' object is not subscriptable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 257, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
IndexError: too many indices for array
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
I = image_int.reshape(480,640)
RuntimeError: shape '[480, 640]' is invalid for input of size 810000
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
I = image_int.reshape(8, 640, 480)
RuntimeError: shape '[8, 640, 480]' is invalid for input of size 810000
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
I = image_int.reshape(640, 480)
RuntimeError: shape '[640, 480]' is invalid for input of size 810000
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
I = image_int.reshape(3, 640, 480)
RuntimeError: shape '[3, 640, 480]' is invalid for input of size 810000
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 257, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
IndexError: too many indices for array
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 257, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
IndexError: too many indices for array
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
print(I.shape())
NameError: name 'I' is not defined
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
print(image_int.shape())
TypeError: 'torch.Size' object is not callable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 256, in
print(image_int.dimension())
AttributeError: 'Tensor' object has no attribute 'dimension'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
Traceback (most recent call last):
File "dehaze_int.py", line 255, in
image_int = dehaze_image(path+image)
File "dehaze_int.py", line 227, in dehaze_image
print(data_hazy.shape())
TypeError: 'tuple' object is not callable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
Traceback (most recent call last):
File "dehaze_int.py", line 257, in
print(image_int.get_shape())
AttributeError: 'Tensor' object has no attribute 'get_shape'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 259, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
IndexError: too many indices for array
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 258
I = image_int[:,, :, :]
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 259, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: 'PngImageFile' object is not subscriptable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 259, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 192, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: 'Image' object is not subscriptable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 259, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 194, in GetSaturation
S = 1.0 - min_rgb/(intensity+me)
File "/home/yejin/.local/lib/python3.5/site-packages/torch/tensor.py", line 366, in __rdiv__
return self.reciprocal() * other
TypeError: mul(): argument 'other' (position 1) must be Tensor, not numpy.ndarray
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 271, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 204, in GetSaturation
min_rgb = cv2.min(cv2.min( fi[:, :, 0], fi[:, :, 1]), fi[:, :, 2])
TypeError: 'PngImageFile' object is not subscriptable
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 269, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 200, in GetSaturation
fi = Image.load(image_path).convert('RGB')
AttributeError: module 'PIL.Image' has no attribute 'load'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 269, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 204, in GetSaturation
S = 1.0 - min_rgb/(intensity+me)
File "/home/yejin/.local/lib/python3.5/site-packages/torch/tensor.py", line 366, in __rdiv__
return self.reciprocal() * other
TypeError: mul(): argument 'other' (position 1) must be Tensor, not numpy.ndarray
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 269, in
I = torch.from_numpy(I)
TypeError: expected np.ndarray (got Tensor)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 269, in
I_tens = torch.from_numpy(I)
TypeError: expected np.ndarray (got Tensor)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 270, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 204, in GetSaturation
S = 1.0 - min_rgb/(intensity+me)
File "/home/yejin/.local/lib/python3.5/site-packages/torch/tensor.py", line 366, in __rdiv__
return self.reciprocal() * other
TypeError: mul(): argument 'other' (position 1) must be Tensor, not numpy.ndarray
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'torch.Tensor'>
Traceback (most recent call last):
File "dehaze_int.py", line 274, in
S = GetSaturation(path+image, I)
File "dehaze_int.py", line 208, in GetSaturation
S = 1.0 - min_rgb/(intensity+me)
File "/home/yejin/.local/lib/python3.5/site-packages/torch/tensor.py", line 366, in __rdiv__
return self.reciprocal() * other
TypeError: mul(): argument 'other' (position 1) must be Tensor, not numpy.ndarray
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 274, in
I_num = I.numpy()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 274, in
I_num = I.numpy().argmax()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
Traceback (most recent call last):
File "dehaze_int.py", line 274, in
I_num = I.cpu().numpy()
RuntimeError: Can't call numpy() on Variable that requires grad. Use var.detach().numpy() instead.
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 276, in
H = GetHue(path)
File "dehaze_int.py", line 212, in GetHue
fi = Image.open(image_path)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2766, in open
fp = builtins.open(filename, "rb")
IsADirectoryError: [Errno 21] Is a directory: './test_images_int/'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 276, in
H = GetHue(hs_path+image)
File "dehaze_int.py", line 213, in GetHue
hsv_img = cv2.cvtColor(fi, cv2.COLOR_BGR2HSV)
TypeError: Expected Ptr for argument '%s'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 284, in
cv2.imwrite(savepath+image, hs)
TypeError: Expected Ptr for argument '%s'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1), '|O')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dehaze_int.py", line 282, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 280, in
hsi2rgb(hs)
File "dehaze_int.py", line 154, in hsi2rgb
"Expected (..., ..., 3) got {}".format(hsi.shape)
AssertionError: 'hsi' has incomplete shape.Expected (..., ..., 3) got (3,)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(1, 3, 450, 600)
torch.Size([1, 3, 450, 600])
(3,)
Traceback (most recent call last):
File "dehaze_int.py", line 284, in
hsi2rgb(hs)
File "dehaze_int.py", line 154, in hsi2rgb
"Expected (..., ..., 3) got {}".format(hsi.shape)
AssertionError: 'hsi' has incomplete shape.Expected (..., ..., 3) got (3,)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(1, 3, 450, 600)
(1, 3, 450, 600)
(3,)
Traceback (most recent call last):
File "dehaze_int.py", line 284, in
hsi2rgb(hs)
File "dehaze_int.py", line 154, in hsi2rgb
"Expected (..., ..., 3) got {}".format(hsi.shape)
AssertionError: 'hsi' has incomplete shape.Expected (..., ..., 3) got (3,)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 277, in
I_num.shape = (450, 600)
ValueError: cannot reshape array of size 810000 into shape (450,600)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 278, in
S.shape = (450, 600)
ValueError: cannot reshape array of size 810000 into shape (450,600)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 280
hs = [H, S[ , ,0], I_num[ , ,0]]
^
SyntaxError: invalid syntax
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 281, in
hs.shape = (..., ..., 3)
AttributeError: 'list' object has no attribute 'shape'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(3, 450, 600)
Traceback (most recent call last):
File "dehaze_int.py", line 287, in
hsi2rgb(hs)
File "dehaze_int.py", line 154, in hsi2rgb
"Expected (..., ..., 3) got {}".format(hsi.shape)
AssertionError: 'hsi' has incomplete shape.Expected (..., ..., 3) got (3, 450, 600)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 283, in
hs.permute(1,2,0)
AttributeError: 'numpy.ndarray' object has no attribute 'permute'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 282, in
hs.permute(1,2,0)
AttributeError: 'list' object has no attribute 'permute'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 281, in
hs.shape = (450, 600, 3)
AttributeError: 'list' object has no attribute 'shape'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
Traceback (most recent call last):
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dehaze_int.py", line 290, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
Traceback (most recent call last):
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dehaze_int.py", line 290, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dehaze_int.py", line 290, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
Traceback (most recent call last):
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2645, in fromarray
mode, rawmode = _fromarray_typemap[typekey]
KeyError: ((1, 1, 3), '<f8')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "dehaze_int.py", line 291, in
im = Image.fromarray(hs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2647, in fromarray
raise TypeError("Cannot handle this data type")
TypeError: Cannot handle this data type
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
Traceback (most recent call last):
File "dehaze_int.py", line 291, in
svhs=hs.fromarray(data.astype('uint8'))
AttributeError: 'numpy.ndarray' object has no attribute 'fromarray'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
Traceback (most recent call last):
File "dehaze_int.py", line 292, in
im = Image.fromarray(svhs)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2666, in fromarray
return frombuffer(mode, size, obj, "raw", rawmode, 0, 1)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2609, in frombuffer
return frombytes(mode, size, data, decoder_name, args)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 2542, in frombytes
im.frombytes(data, decoder_name, args)
File "/home/yejin/.local/lib/python3.5/site-packages/PIL/Image.py", line 826, in frombytes
s = d.decode(data)
TypeError: a bytes-like object is required, not 'Image'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
Traceback (most recent call last):
File "dehaze_int.py", line 294, in
cv2.imwrite(savepath+image, svhs)
TypeError: Expected Ptr for argument '%s'
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
test.png done!
(442, 622)
(442, 622, 3)
torch.Size([1, 3, 442, 622])
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 277, in
I_num.shape = (450, 600, 3)
ValueError: cannot reshape array of size 824772 into shape (450,600,3)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
test.png done!
(442, 622)
(442, 622, 3)
torch.Size([1, 3, 442, 622])
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
Traceback (most recent call last):
File "dehaze_int.py", line 277, in
I_num.shape = (450, 600, 3)
ValueError: cannot reshape array of size 824772 into shape (450,600,3)
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 270
image_int = dehaze_image(path+image)
^
IndentationError: unexpected indent
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python rgb2int.py
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 328
^
SyntaxError: EOF while scanning triple-quoted string literal
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
File "dehaze_int.py", line 324
^
SyntaxError: EOF while scanning triple-quoted string literal
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ python dehaze_int.py
(450, 600)
(450, 600, 3)
torch.Size([1, 3, 450, 600])
libpng warning: iCCP: known incorrect sRGB profile
<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.ndarray'>
(450, 600)
(450, 600, 3)
(450, 600, 3)
(450, 600, 3)
<class 'numpy.ndarray'>
(450, 600, 3)
test.png done!
(aod) yejin@yejin:~/Desktop/PyTorch-Image-Dehazing-master$ cd ..
(aod) yejin@yejin:~/Des