-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to run blender_script.py and also how do I train on objaverse? #33
Comments
Hi, |
Just to clarify the blender_script.py works only for 1 object right? |
Thankyou |
Yes, |
Thanks a lot 😄 |
@ZexinHe whenever I try to train I'm getting the following error while on [TRAIN STEP] at 100th iteration, I tried to change the values of accum_steps and epochs in yaml file but at every 100th iteration the error occurs. Also what should I put in distributed type in accelerate-train.yaml if I'm a using single gpu. I'm using one nvidia A6000. |
Hi, It looks like some usage problem with |
Ubuntu 22 |
One possible workaround here is to modify https://github.com/3DTopia/OpenLRM/blob/main/openlrm/runners/train/lrm.py#L418-L422.
Just add an explicit empty |
It works now, thanks |
Hey @ZexinHe I'm not able to run the convert_hf.ly file, I'm getting the following error: omegaconf.errors.ConfigAttributeError: Missing key convert My command: python scripts/convert_hf.py --config "/home/Kunal/OpenLRM/configs/train-sample.yaml" Also can I download the objaverse renderings used in training from anywhere, as it takes a lot of time for me to produce them through objaverse. |
Hi, I've updated some docs here https://github.com/3DTopia/OpenLRM/tree/main?tab=readme-ov-file#inference-on-trained-models. Plz try to use |
Works now 😄 |
Hi @kunalkathare , thank you for the post, it was very helpful. |
Hi @hayoung-jeremy, the blender_script.py renders pose, rgba, and intrinsic for each object, like this u have to run this script for each object, all this will be stored under views/ folder which will be the root dir in train sample yaml file, the json files should contain the list of uids of objects ["xxx","yyy",...]. This blender script file stores these 3 things under views/uid-of-object for your each object. First install blender, then run this command for each object: |
Thank you for the kind reply! |
Yes |
It works perfectly fine! #!/bin/bash
DIRECTORY="./data" # replace it with your data folder path containing glb files
for glb_file in "$DIRECTORY"/*.glb; do
echo "Processing $glb_file"
blender -b -P scripts/data/objaverse/blender_script.py -- --object_path "$glb_file"
done |
Hi @kunalkathare , I was able to sucessfully run the training code. I needed to set up the config file, but it was difficult to adjust because I don't understand what each item means, so I only specified the path and the number of GPUs before proceeding with the training as is. Would it be meaningless to proceed with training using a dataset of 100 pairs? |
Hello! I also encountered this problem, my mathutils and bpy appeared red error, may I ask how you solved it? Your help will be greatly appreciated |
@hayoung-jeremy Hello! I also encountered this problem, my mathutils and bpy appeared red error, may I ask how you solved it? Your help will be greatly appreciated |
Hi, |
Do you mean to use the blender_script from this URL instead of openlrm? I have a lot of knowledge is not very understanding at the beginning,Thank you for your help. |
Use from OpenLRM |
I'm not able to install the following two libraries mathutils and bpy:
For bpy it says:
ERROR: No matching distribution found for bpy
For mathutils it says:
ERROR: Failed building wheels for mathutils and
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
My python version is 3.8.10
I have the objaverse dataset downloaded with objects, my question is do I have to run blender_script.py file for each .glb object in the dataset ?
Can you please provide the instructions on how to prepare the data properly for training.
The text was updated successfully, but these errors were encountered: