princeton-vl / infinigen

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

ValueError: invalid literal for int() with base 10 #230

Closed TomTomTommi closed 1 month ago

TomTomTommi commented 2 months ago

I tried to comment the code in infinigen/infinigen/datagen/util/submitit_emulator.py from line 163~166 (link) and it fixed. I wonder if this is a correct solution.

araistrick commented 1 month ago

It seems your CUDA_VISIBLE_DEVICES contains long strings like GPU-c5aa4d0e-51b8-94f4-8799-3f17f14b64ea where I (incorrectly) had assumed it was only integers. Could you try removing the int(..) from int(s.strip()) so it just looks like [s.strip() for s in os.environ[CUDA_VARNAME].split(',')]? If this works for you I will patch it into main. I should probably find and follow some kind of specification for what these are allowed to look like.

TomTomTommi commented 1 month ago

Yes. This works.