question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with segment_folder function in segment.py

See original GitHub issue

I found two problems while trying to segment multiple images in the same folder.

  1. In the documentation, there is a space in the filename that shouldn’t be there (image 1_sem/) here.

  2. Even though the test for segment_folder is passing, the command in the documentation doesn’t work. There is a problem with the path folder being duplicated, so the images are not found.

I’m going to open a PR to fix it and see what happen with the test after.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mathieuboudreaucommented, Jun 26, 2020

@mariehbourget I found a solution - am pushing to PR soon

1reaction
mariehbourgetcommented, Jun 25, 2020

For the command, I found the problem in segment_folders here, img_files is a list of path (not a list of filename). So here, the path is duplicated (and everywhere with path_testing_images_folder / file_ string. I don’t know why it doesn’t raise problem in the tests

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analytics for Python | Segment Documentation
Segment's Python library lets you record analytics data from your Python code. The requests hit Segment's servers, and then Segment routes ...
Read more >
Error using the closing function of the segment editor in semi ...
I call all segment editor functions in a similar fashion but the part calling the closing function seems to be the only one...
Read more >
Segment Analytics syntax error is causing my pytest suite to fail
I'm setting up a suite of unit tests via Pytest for an application, but when I run python -m pytest I get the...
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes ... in subroutines and functions, and a heap segment for variables ...
Read more >
Load collection failed when running `verify_all_collections.py ...
congqixia commented on Jun 16 ... This function tries to fetch segmentInfo with dropped segment id while datacoord will report error when a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found