Skip to content

Fix infer api#279

Open
allo- wants to merge 2 commits intoace-step:mainfrom
allo-:fix_infer_api
Open

Fix infer api#279
allo- wants to merge 2 commits intoace-step:mainfrom
allo-:fix_infer_api

Conversation

@allo-
Copy link

@allo- allo- commented Jun 23, 2025

The infer-api.py script does not set the new format parameter. Using save_path with a filename was also broken and I added a commit that fixed that for the example script in discussion #183.

@allo- allo- force-pushed the fix_infer_api branch 2 times, most recently from d113da6 to 42b302b Compare June 23, 2025 21:15
When save_path is a filename without directory, os.dirname(save_path) is
an empty string and ensure_directory fails. This adds a check if the
directory variable contains an empty string before running os.makedirs.
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

Successfully merging this pull request may close these issues.

1 participant