From 439099fdf3b93b68c356c735472ed7180a06011f Mon Sep 17 00:00:00 2001 From: Alexandre Girard Date: Tue, 22 Aug 2023 09:03:01 +0000 Subject: [PATCH] fix: change argument name to remove raised exception --- options/predict_options.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/options/predict_options.py b/options/predict_options.py index bc9800e85..f9c2ce9b1 100644 --- a/options/predict_options.py +++ b/options/predict_options.py @@ -231,16 +231,8 @@ def initialize(self, parser): help="eta parameter for ddim variance", ) - # TODO: raise exception when running server - # File "/home/alx/code/alx/joliGEN/server/joligen_api.py", line 91, in - # PredictBodySchema["properties"]["predict_options"] = PredictOptions().get_schema() - # File "/home/alx/code/alx/joliGEN/options/base_options.py", line 1261, in get_schema - # json_vals = self.to_json() - # File "/home/alx/code/alx/joliGEN/options/base_options.py", line 965, in to_json - # parent[path[-1]] = v - # TypeError: 'bool' object does not support item assignment - parser.add_argument( - "--cls", + parser.add_argument( + "--cls-override", action="store_false", help="override input bbox classe for generation", )