61e3fc1f8e53ed541d6a8dc905e59a4611dc5335,models.py,,attempt_download,#Any#,437
Before Change
if file == "yolov3-spp.weights":
gdrive_download(id="16lYS4bcIdM2HdmyJBVDOvt3Trx6N3W2R", name=weights)
elif file == "yolov3.weights":
gdrive_download(id="1uTlyDWlnaqXcsKOktP5aH_zRDbfcDp-y", name=weights)
elif file == "yolov3-tiny.weights":
gdrive_download(id="1CCF-iNIIkYesIDzaPvdwlcf7H9zSsKZQ", name=weights)
elif file == "yolov3-spp.pt":
gdrive_download(id="1f6Ovy3BSq2wYq4UfvFUpxJFNDFfrIDcR", name=weights)
elif file == "yolov3.pt":
gdrive_download(id="1SHNFyoe5Ni8DajDNEqgB2oVKBb_NoEad", name=weights)
elif file == "yolov3-tiny.pt":
gdrive_download(id="10m_3MlpQwRtZetQxtksm9jqHrPTHZ6vo", name=weights)
elif file == "darknet53.conv.74":
gdrive_download(id="1WUVBid-XuoUBmvzBVUCBl_ELrzqwA8dJ", name=weights)
elif file == "yolov3-tiny.conv.15":
gdrive_download(id="1Bw0kCpplxUqyRYAJr9RY9SGnOJbo9nEj", name=weights)
elif file == "ultralytics49.pt":
gdrive_download(id="158g62Vs14E3aj7oPVPuEnNZMKFNgGyNq", name=weights)
After Change
msg = weights + " missing, download from https://drive.google.com/open?id=1LezFG5g3BCW6iYaV89B2i64cqEUZD7e0"
if weights and not os.path.isfile(weights):
file = Path(weights).name
d = {"yolov3-spp.weights": "16lYS4bcIdM2HdmyJBVDOvt3Trx6N3W2R",
"yolov3.weights": "1uTlyDWlnaqXcsKOktP5aH_zRDbfcDp-y",
"yolov3-tiny.weights": "1CCF-iNIIkYesIDzaPvdwlcf7H9zSsKZQ",
"yolov3-spp.pt": "1f6Ovy3BSq2wYq4UfvFUpxJFNDFfrIDcR",
"yolov3.pt": "1SHNFyoe5Ni8DajDNEqgB2oVKBb_NoEad",
"yolov3-tiny.pt": "10m_3MlpQwRtZetQxtksm9jqHrPTHZ6vo",
"darknet53.conv.74": "1WUVBid-XuoUBmvzBVUCBl_ELrzqwA8dJ",
"yolov3-tiny.conv.15": "1Bw0kCpplxUqyRYAJr9RY9SGnOJbo9nEj",
"ultralytics49.pt": "158g62Vs14E3aj7oPVPuEnNZMKFNgGyNq",
"ultralytics68.pt": "1Jm8kqnMdMGUUxGo8zMFZMJ0eaPwLkxSG"}
if weights in d:
gdrive_download(id=d[weights], name=weights)
else: // download from pjreddie.com
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ultralytics/yolov3
Commit Name: 61e3fc1f8e53ed541d6a8dc905e59a4611dc5335
Time: 2019-12-06
Author: glenn.jocher@ultralytics.com
File Name: models.py
Class Name:
Method Name: attempt_download
Project Name: pmorissette/ffn
Commit Name: 57dab295a343bfaccded0be0f45c012571856594
Time: 2014-06-24
Author: pm@rdacap.com
File Name: ffn/utils.py
Class Name:
Method Name: get_period_name
Project Name: ActiveState/code
Commit Name: 8e2528c312791c2c56c8bca365669e06ab698a88
Time: 2017-11-28
Author: mn@mn.heuthesd
File Name: recipes/Python/576621_Dump_Informix_schema_to_text/recipe-576621.py
Class Name:
Method Name: