princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.16k stars 431 forks source link

Why I can not launch Blender UI ? #257

Open SearAbbas opened 1 week ago

SearAbbas commented 1 week ago

Describe the bug

I installed infinigen as a Blender Python script, Normal install, and how can i launch UI? I executed python -m infinigen.launch_blender and faild,it will automatically exit.

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log infinigen-1.3.4

What command did you run?

python -m infinigen.launch_blender

What are your FULL output logs?

The error is as follows: Read prefs: "/home/cy/.config/blender/3.6/config/userpref.blend" /home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero. return self._float_to_str(self.smallest_subnormal) /home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0]) /home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. return self._float_to_str(self.smallest_subnormal) 已放弃 (核心已转储)

If this is your first time running Infinigen, what are the full install logs?**

Run pip install -vv -e . > logs.txt 2>&1 and send logs.txt as an attachment. logs.txt

Platform

Additional context

image

araistrick commented 1 week ago

Hello,

The warnings you show are all nonfatal (we see these every startup, I believe they are from the landlab package not our own code).

Your logs.txt also has no errors.

Can you first check if running the blender executable directly works for you ? IE execute ./blender/blender from the root of the repo if you are on linux. You can also check if manually installing and running blender works for you. Either way I suspect it is likely a platform / driver issue, but by checking if non-infinigen blender works we can narrow this down

SearAbbas commented 1 week ago

Hello,

Thank you!

Sorry, I'm not familiar with blender-python script.

I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as phyllotaxis_flower.log is ok, but fisher_iris_visualization.log is not.

SearAbbas commented 1 week ago

Hello,

Thank you!

Sorry, I'm not familiar with blender-python script.

I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as phyllotaxis_flower.log is ok, but fisher_iris_visualization.log is not.

I find fisher_iris_visualization.log where don't work: from sklearn import datasets But I don't know how to fix it.I don't know its relationship with Blender UI either。

SearAbbas commented 1 week ago

Hello, Thank you! Sorry, I'm not familiar with blender-python script. I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as phyllotaxis_flower.log is ok, but fisher_iris_visualization.log is not.

I find fisher_iris_visualization.log where don't work: from sklearn import datasets But I don't know how to fix it.I don't know its relationship with Blender UI either。

I can solve the above problem using Blender-4.1. I don't know if all the problems are caused by issues with the Blender version. If I want to try using Blender-4.1, how should I build the code for infinigen?

araistrick commented 3 days ago

Running Infinigen code inside blender4.1 does not work - updating is quite hard (#252) since the blender API changes significantly each time. It may come in a future update but is not possible currently.

However, you can use blender4.1 to open files generated by Infinigen provided you dont run any code via the commandline. You could also probably do this with a non-infinigen copy of blender3.6 - our scripts/install/interactive_blender.sh both downloads 3.6 and also installs infinigen into it, but this is not actually needed just to open the file and view it.

Could you edit scripts/install/interactive_blender.sh so its last line (the pip install) has -vv . > logs.txt 2>&1? Then send the logs.txt from this install.

sidenot: I need to make the docs clearer on what logs to send if interactive_blender.sh sends, the default pip logs arent relevant as it is an entirely different python install.

SearAbbas commented 3 days ago

Running Infinigen code inside blender4.1 does not work - updating is quite hard (#252) since the blender API changes significantly each time. It may come in a future update but is not possible currently.

However, you can use blender4.1 to open files generated by Infinigen provided you dont run any code via the commandline. You could also probably do this with a non-infinigen copy of blender3.6 - our scripts/install/interactive_blender.sh both downloads 3.6 and also installs infinigen into it, but this is not actually needed just to open the file and view it.

Could you edit scripts/install/interactive_blender.sh so its last line (the pip install) has -vv . > logs.txt 2>&1? Then send the logs.txt from this install.

sidenot: I need to make the docs clearer on what logs to send if interactive_blender.sh sends, the default pip logs arent relevant as it is an entirely different python install.

Thanks, I use docker with no-gpu is ok, but using CUDA's Docker still has the same issue. And, I found that the problem lies in the fact that the 'from infiniten_examples import generate-feature' in blendscript_impord_infiniten.py can cause the aforementioned issues. I started scripts/install/interactive_blender.sh from scratch with a new conda environment. logs.txt