Skip to content
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

warnings.warn(f"WARNING: mm2m is deprecated, please use object_model_unit='mm' instead!") #961

Closed
wang-shuaikang opened this issue Aug 20, 2023 · 2 comments
Labels
first answer provided question Question, not yet a bug ;)

Comments

@wang-shuaikang
Copy link

Describe the issue

(blender) huangcheng@hc:~/WSK/BlenderProc-main$ blenderproc run examples/datasets/bop_challenge/main_icbin_random.py bop_datas resources/cc_textures make_mask --num_scenes=2
Warning: Changed install path from /home_local/huangcheng... to /home/huangcheng..., there is no /home_local/ on this machine.
Using blender in /home/huangcheng/blender/blender-3.3.1-linux-x64
Using temporary directory: /dev/shm/blender_proc_87c6c0d68bae43c98f692e03c52971d3
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
Selecting render devices...
Device NVIDIA GeForce RTX 3080 Ti of type OPTIX found and used.
Device 12th Gen Intel Core i7-12700KF of type CPU found and used.
bob: bop_datas/icbin, dataset_path: bop_datas
dataset: icbin
/home/huangcheng/anaconda3/envs/blender/lib/python3.7/site-packages/blenderproc/python/loader/BopLoader.py:54: UserWarning: WARNING: mm2m is deprecated, please use object_model_unit='mm' instead!
warnings.warn(f"WARNING: mm2m is deprecated, please use object_model_unit='mm' instead!")
I installed BlenderProc through pip install BlenderProc, directly downloaded the BlenderProc-main file.

Minimal code example

assert object_model_unit in ['m', 'dm', 'cm', 'mm'], (f"Invalid object model unit: `{object_model_unit}`. "
                                                          f"Supported are 'm', 'dm', 'cm', 'mm'")
    scale = {'m': 1., 'dm': 0.1, 'cm': 0.01, 'mm': 0.001}[object_model_unit]
    if mm2m is not None:
        warnings.warn(f"WARNING: `mm2m` is deprecated, please use `object_model_unit='mm'` instead!")
        scale = 0.001

Files required to run the code

/home/huangcheng/anaconda3/envs/blender/lib/python3.7/site-packages/blenderproc/python/loader/BopLoader.py:5

Expected behavior

Hope that explains why this happens and how to fix it

BlenderProc version

main

@wang-shuaikang wang-shuaikang added the question Question, not yet a bug ;) label Aug 20, 2023
@cornerfarmer
Copy link
Member

Please add more description to your issue. I guess you complain that this warning is shown?

@wang-shuaikang
Copy link
Author

请为您的问题添加更多描述。我猜你抱怨显示了这个警告?
Thank you for the author's reply, this has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants