Browse Source

add offline_run docs

FlyingQianMM 4 years ago
parent
commit
536e9e24cb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dygraph/docs/how_to_offline_run.md

+ 1 - 0
dygraph/docs/how_to_offline_run.md

@@ -45,5 +45,6 @@ save_dir = '/home/work/paddlex_pretrain'
 weights_lists = [cityscapes_weights, imagenet_weights, pascalvoc_weights, coco_weights]
 weights_lists = [cityscapes_weights, imagenet_weights, pascalvoc_weights, coco_weights]
 for weights in weights_lists:
 for weights in weights_lists:
     for key, value in weights.items():
     for key, value in weights.items():
+        new_save_dir = osp.join(save_dir, key)
         download_and_decompress(value, path=new_save_dir)
         download_and_decompress(value, path=new_save_dir)
 ```
 ```