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

(data.dataloader.dir_image_pair) error #4

Closed
LeeDoYup opened this issue Jun 2, 2018 · 2 comments
Closed

(data.dataloader.dir_image_pair) error #4

LeeDoYup opened this issue Jun 2, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@LeeDoYup
Copy link
Owner

LeeDoYup commented Jun 2, 2018

when I use list(pair_path) after for statement, the result becomes empty.
Now, it assign
result = list(pair_path)
before for blur, real in iter_pair_path:
.

why?

@LeeDoYup LeeDoYup added the bug Something isn't working label Jun 2, 2018
@LeeDoYup LeeDoYup self-assigned this Jun 2, 2018
@LeeDoYup
Copy link
Owner Author

LeeDoYup commented Jun 2, 2018

Below codes result empty list.

    for blur, real in iter_pair_path:
        name1=blur.split('/')[-1]
        name2=real.split('/')[-1]
        if name1 != name2:
            pair_path.remove((blur, real))
            print("blur: %s, real: %s pair was removed in training data"%(name1, name2))
            #logging

    return list(pair_path)

@LeeDoYup
Copy link
Owner Author

LeeDoYup commented Jun 2, 2018

It gives normal result.

result = list(pair_path)
    for blur, real in iter_pair_path:
        name1=blur.split('/')[-1]
        name2=real.split('/')[-1]
        if name1 != name2:
            result.remove((blur, real))
            print("blur: %s, real: %s pair was removed in training data"%(name1, name2))
            #logging

    print(result)
    return result

@LeeDoYup LeeDoYup closed this as completed Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant