OPHoperHPO / image-background-remove-tool

✂️ Automated high-quality background removal framework for an image using neural networks. ✂️
https://carve.photos
Apache License 2.0
1.39k stars 272 forks source link

Wrong image order when running on a dir using console interface #80

Closed BostonLobster closed 2 years ago

BostonLobster commented 2 years ago

I use the following command to run default carvekit on a dir:

python -m carvekit -i ./images -o ./masked_images --device cuda

However, when I check the results, the output images are out-of-order.

For example, the images/001.jpg is 001

but the result is 001

which corresponds to another input image.

Very weird thing, could you please check this problem?

Larry-u commented 2 years ago

Same issue here

OPHoperHPO commented 2 years ago

Hello, @BostonLobster. There was a typo in the CLI code that caused this issue. This has been fixed by @Larry-u in PR #81.