Error with segment_folder function in segment.py
See original GitHub issueI found two problems while trying to segment multiple images in the same folder.
-
In the documentation, there is a space in the filename that shouldn’t be there (
image 1_sem/
) here. -
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:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mariehbourget I found a solution - am pushing to PR soon
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