Closed ZheningHuang closed 3 months ago
Hi,
Could you add an interrupt here to check the dimension of the image? It seems the one you pass into the function has 4 channels, not sure why this happened, but you could add one line of code to convert it to RGB.
Thanks for the quick reply. I found out that the fourth channel is 255 (not sure why it occurred), but I dropped it for generating the image. However, I have the following issue which indicates that it did not pass the test:
Only one room in the scene. Assigning the room to Procedural0.
Error: no "view" rule for type "image/png" passed its test case
(for more information, add "--debug=1" on the command line)
Any idea what caused this problem?
Also, is there any tip for regenerating the same scene with less consumption of OpenAI tokens (to save budget)?
Best, Zhening
Could you first try to comment this line to see if you still have the error? https://github.com/allenai/Holodeck/blob/db15e52238135b9595bbd344eadde81b8a1b25ff/modules/utils.py#L78
Then, you could add a line of code (e.g., matplotlib) to visualize the img
here:
https://github.com/allenai/Holodeck/blob/db15e52238135b9595bbd344eadde81b8a1b25ff/modules/utils.py#L13
If you can see the image, then use PIL to convert it to RGB.
I managed to generate the image now. Thanks.
BTW, this is really great work. Congrats!
Hi, I also got the same error. I wanted to know why are we closing the issues before merging the fixes to the main branch?
I have encountered the following issue, could you please provide some hints for debugging please.
Best, Zhening