Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Y1ran committed Nov 9, 2020
1 parent 9fbeae4 commit 40fd42e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file modified .vs/EssayKiller_V2/v16/.suo
Binary file not shown.
2 changes: 2 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"",
"\\LanguageNetwork",
"\\LanguageNetwork\\GPT2",
"\\LanguageNetwork\\GPT2\\finetune",
"\\LanguageNetwork\\GPT2\\finetune\\trained_model",
"\\LanguageNetwork\\GPT2\\scripts"
],
"SelectedNode": "\\colab_online.ipynb",
Expand Down
Binary file modified .vs/slnx.sqlite
Binary file not shown.
5 changes: 2 additions & 3 deletions LanguageNetwork/GPT2/scripts/gdown.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
die "\n./gdown.pl 'gdrive file url' [desired file name]\n\n" if $URL eq '';

my $FILENAME=shift;
my $TEMP_FILENAME='gdown.'.strftime("%Y%m%d%H%M%S", localtime).'.'.substr(rand,2);
my $TEMP_FILENAME='trained_models/model.ckpt-280000.data-00000-of-00001';

if ($URL=~m#^https?://drive.google.com/file/d/([^/]+)#) {
$URL="https://docs.google.com/uc?id=$1&export=download";
Expand Down Expand Up @@ -89,8 +89,7 @@ ()
}

$COMMAND="wget $CONTINUE --progress=dot:giga --no-check-certificate --load-cookie $TEMP --save-cookie $TEMP \"$URL\"";
$COMMAND.=" -O \"$FILENAME\"" if $FILENAME ne '';

$COMMAND.=" -O \"$OUTPUT_FILENAME\"";
my $OUTPUT = system( $COMMAND );
if ( $OUTPUT == 2 ) { # do a clean exit with Ctrl+C
unlink $TEMP;
Expand Down

0 comments on commit 40fd42e

Please sign in to comment.