Parcourir la source

add infer code

often il y a 5 mois
Parent
commit
a77f3a13bc

+ 2 - 2
recommend-model-produce/src/main/python/tools/static_ps_infer_v2.py

@@ -214,8 +214,8 @@ class Main(object):
         init_model_path = config.get("runner.infer_load_path")
         model_mode = config.get("runner.model_mode", 0)
         client = HangZhouOSSClient("art-recommend")
-        client.get_object_to_file("lqc/64.zip", "64.zip")
-        compress.uncompress_tar("64.zip", init_model_path)
+        client.get_object_to_file("lqc/64.tar.gz", "64.tar.gz")
+        compress.uncompress_tar("64.tar.gz", init_model_path)
         assert os.path.exists(init_model_path)
 
         #if fleet.is_first_worker():