TypeError: Input 'shape' of 'ScatterNd' Op has type int64 that does not match type int32 of argument 'indices'.

Đang mở
#684 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
computer-graphics

Hướng nghiên cứu

Bắt đầu với graphics/reconstruct_geometry.py và lần theo mẫu Local Implicit vào core/reconstruction.py, đặc biệt là LIGOptimizer._init_graph ở dòng 106, nơi tf.scatter_nd bị lỗi. Tái hiện quá trình tối ưu hóa lưới tiềm ẩn của mẫu và kiểm tra các dtypes của chỉ mục cũng như các đầu vào shape. Được xem là hoàn tất khi quá trình tái dựng tiếp tục vượt qua lỗi ScatterNd này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Trying to test Local Implicit sample I've found this issue:


Performing latent grid optimization...
Traceback (most recent call last):
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 508, in _apply_op_helper
    values = ops.convert_to_tensor(
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\tensorflow\python\profiler\trace.py", line 183, in wrapped
    return func(*args, **kwargs)
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\tensorflow\python\framework\ops.py", line 1662, in convert_to_tensor
    raise ValueError(
ValueError: Tensor conversion requested dtype int32 for Tensor with dtype int64: <tf.Tensor 'Const_3:0' shape=(2,) dtype=int64>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Dependencias\LocalImplicitGrid\graphics\reconstruct_geometry.py", line 108, in <module>
    app.run(main)
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\absl\app.py", line 312, in run
    _run_main(main, args)
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\absl\app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "D:\Dependencias\LocalImplicitGrid\graphics\reconstruct_geometry.py", line 88, in main
    v, f, _, _ = rec.encode_decoder_one_scene(
  File "D:\Dependencias\LocalImplicitGrid\graphics\tensorflow_graphics\projects\local_implicit_grid\core\reconstruction.py", line 351, in encode_decoder_one_scene
    goptim = LIGOptimizer(
  File "D:\Dependencias\LocalImplicitGrid\graphics\tensorflow_graphics\projects\local_implicit_grid\core\reconstruction.py", line 61, in __init__
    self._init_graph()
  File "D:\Dependencias\LocalImplicitGrid\graphics\tensorflow_graphics\projects\local_implicit_grid\core\reconstruction.py", line 106, in _init_graph
    self.feat_grid = tf.scatter_nd(self.occ_idx_flat_,
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 9185, in scatter_nd
    _, _, _op, _outputs = _op_def_library._apply_op_helper(
  File "C:\Users\Victor\anaconda3\envs\LocalImplicit\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 546, in _apply_op_helper
    raise TypeError(
TypeError: Input 'shape' of 'ScatterNd' Op has type int64 that does not match type int32 of argument 'indices'.

Any tip on this?

Thank you in advance.

Ngôn ngữ chính
Python
Star
2.8k
Fork
374
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tensorflow/graphics

Tất cả issue của tensorflow/graphics

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.