-
Notifications
You must be signed in to change notification settings - Fork 80
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
[OpenLRM] inference, training, evaluation codes #824
base: master
Are you sure you want to change the base?
Conversation
add visual results
**render_results, # 'images_rgb', 'images_depth', 'images_weight' | ||
} | ||
|
||
def construct_train( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff from construct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
original construct() is never used. I have replaced construct() with new construct_train() in latest revision. [commit#62d1021]
perceptual_weight: 1.0 | ||
tv_weight: 5e-4 | ||
optim: | ||
# lr: 4e-4 # args.start_learning_rate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uncomment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary configs/comments were removed.
examples/openlrm/eval.py
Outdated
logger.info("Batch time cost: %.3fs.", batch_time) | ||
|
||
target_images = data_batch["target_images"] # [M, C, H, W] | ||
# print(f"target_images {target_images.shape}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove redundant comments. pls also check the other parts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all redundant comments were removed.
|
||
### Inference Performance | ||
- Input a single image, here reports speed of image-to-3D and image rendering. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls describe the ms version and graph/pynative mode that are used in testing, referring to the mindone wiki page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added ms version and pynative mode that are used in "inference performance" and "training performance" in README. [commit#307d51a]
What does this PR do?
This PR adds OpenLRM Inference, Training, and Evaluation codes in
examples/openlrm
:Main modules include:
openlrm/models/modeling_lrm.py
openlrm/runners/infer
openlrm/runners/train
andopenlrm/models/lrm_with_loss.py
eval.py
@SamitHuang