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

Precomputed image pairs reference wrong image paths #4

Open
mveres01 opened this issue Jun 12, 2019 · 1 comment
Open

Precomputed image pairs reference wrong image paths #4

mveres01 opened this issue Jun 12, 2019 · 1 comment

Comments

@mveres01
Copy link

The precomputed image pairs in imgs_skipped_1.pkl reference /home/thanard/Downloads/rope_full, and not the paths specified under the data_dir flag in main. So when running, I'm getting a lot of path doesn't exist errors.

This seems to be fine as a workaround, but I'm not sure if there's an easier way to provide the precomputed pairs:

path_to_data_dir = 'XXXXXXX'

filename = 'imgs_skipped_%d.pkl' % k
if os.path.exists(filename):
    with open(filename, 'rb') as f:
        data = pkl.load(f)
    pairs = []
    for d in data:
        idx = d[0][0].index('rope_full')
        path = os.path.join(path_to_data_dir , d[0][0][idx:])
        pair1 = (path, d[0][1])

        idx = d[1][0].index('rope_full')
        path = os.path.join(path_to_data_dir , d[1][0][idx:])
        pair2 = (path, d[1][1])

        pairs.append((pair1, pair2))
    return pairs
@mveres01
Copy link
Author

edit: Seems this is a similar issue to #2, but is still present in the code

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

No branches or pull requests

1 participant