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

fix raster.inference() args #65

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix raster.inference() args #65

wants to merge 2 commits into from

Conversation

dhodcz2
Copy link
Collaborator

@dhodcz2 dhodcz2 commented Apr 23, 2024

Previously --dump_percent was hardcoded to args. Now this:

        args = [
            "python",
            "-m",
            "tile2net",
            "inference",
            *args,
        ]
        sargs = set(args)
        if '--city_info' not in sargs:
            args.extend(['--city_info', str(info)])
        if '--dump_percent' not in sargs:
            args.extend(['--dump_percent', str(self.dump_percent)])
        if '--interactive' not in sargs:
            args.append('--interactive')

(Previous closed PR was on top of old diverging commits)

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.

None yet

1 participant