zhigangjiang commited on
Commit
54dbfd8
1 Parent(s): 0f026b7

Update utils/conversion.py

Browse files
Files changed (1) hide show
  1. utils/conversion.py +1 -1
utils/conversion.py CHANGED
@@ -52,7 +52,7 @@ def get_lon(w, is_np, b=None):
52
 
53
 
54
  def pixel2uv(pixel, w=1024, h=512, axis=None):
55
- pixel = pixel.astype(np.float) if isinstance(pixel, np.ndarray) else pixel.float()
56
  # +0.5 will make left/right and up/down coordinates symmetric
57
  if axis is None:
58
  u = (pixel[..., 0:1] + 0.5) / w
 
52
 
53
 
54
  def pixel2uv(pixel, w=1024, h=512, axis=None):
55
+ pixel = pixel.astype(np.float64) if isinstance(pixel, np.ndarray) else pixel.float()
56
  # +0.5 will make left/right and up/down coordinates symmetric
57
  if axis is None:
58
  u = (pixel[..., 0:1] + 0.5) / w