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

Update pointcloud.py #265

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update pointcloud.py #265

wants to merge 1 commit into from

Conversation

shashankyld
Copy link

This update lets you run the pointcloud.py that downloads and visualizes the bunnies before any ICP.

This update lets you run the pointcloud.py that downloads and visualizes the bunnies before any ICP.

Signed-off-by: Shashank Dammalapati <[email protected]>
@XyC0212
Copy link
Contributor

XyC0212 commented Jul 25, 2023

Please re run the test in circleci, there is something wrong but not in your part. Re run the test can fix it.

import torch, os
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from torchvision.datasets.utils import download_and_extract_archive
import argparse
import os
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os has been import in line 8

import torch, os
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from torchvision.datasets.utils import download_and_extract_archive
import argparse
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow the pyramid coding style mentioned in https://github.com/pypose/pypose/wiki/Developer-Guideline

Comment on lines +1 to +7
'''
Simple Test

python pointcloud.py --algorithm Bunnies_before_ICP --dataroot data --save save --show

'''

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our current style is to provide this in readme.md of the examples, respectively.

# Load bunny

source, target, gt_tf = load_bunny(root=args.dataroot, device=args.device)
pointcloud_plot(args.algorithm, source, target, save=args.save, show=args.show)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't run the algorithm yet, thus the default arg args.algorithm is not appropriate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants