Encoding images are slightly different than encoding format for other files
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/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-vision
Hướng nghiên cứu
Start with the linked Colab reproduction and compare the bytes produced by the image encoding operation with those written through tf.io.write_file. Check the REST API path described in the issue and establish whether the returned bytes can be written as png, jpeg, bmp, or gif files. Done means the discrepancy is explained and a reproducible correction or documented limitation is identified.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am trying to write a tensor to a png, jpeg, bmp, or gif. As seen in colab in bottom, when I take the encoded bytes and write it a file using python, it doesn't work. Trying opening the image it gets corrupted
When I use tf.io.write_file it works. I also tried taking a png and using tf.io_decode_png and than tf.io.encoding_png and the image string bytes differ from the original png. I am using tensorflow serving and using this png result through the rest api, where I don't have access to tf.io.write_file so I was wondering what encode_png does differently, than traditional png encodings.
https://www.loom.com/share/4b32b330a0e742cab2ea3a1a9af11b22
https://colab.research.google.com/drive/13Y4ET8jAHZDq7qwUYgg8nuBkxqniUqGu#scrollTo=IcXVZepnhkW4
- Ngôn ngữ chính
- C++
- Star
- 739
- Fork
- 311
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tensorflow/io
-
Is this project abandoned? Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tensorflow/io#2160 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
tensorflow/io#2156 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 45/100
tensorflow/io#2152 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
tensorflow/io#2145 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
tensorflow/io#2139 · 1 bình luận ·
Tất cả issue của tensorflow/io
Issue tương tự
-
Website Doc Typo Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
autowarefoundation/autoware_universe#13413 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
automated-analysis bug memory-safety
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100