mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-10 11:40:48 +08:00
update
This commit is contained in:
@@ -23,7 +23,7 @@ class CTRLGenerator():
|
||||
def __init__(self, control_code="Writing Text: ", generate_num=64, temperature=0.5, topk=40):
|
||||
|
||||
self.generate_num=generate_num
|
||||
model_dir = "generator/ctrl/model/seqlen256_v1.ckpt/"
|
||||
model_dir = "generator/ctrl/model/seqlen512_v1.ckpt/"
|
||||
self.control_code = control_code
|
||||
vocab_file = 'generator/ctrl/model/vocab'
|
||||
code_file = 'generator/ctrl/model/codes'
|
||||
|
||||
@@ -2,12 +2,7 @@ curl https://sdk.cloud.google.com | bash
|
||||
exec -l $SHELL
|
||||
gcloud init
|
||||
|
||||
# Download the 512-length model if specified, 256-length otherwise
|
||||
if [ "$1" = "512" ]
|
||||
then
|
||||
URL="gs://sf-ctrl/seqlen512_v1.ckpt/"
|
||||
else
|
||||
URL="gs://sf-ctrl/seqlen256_v1.ckpt/"
|
||||
fi
|
||||
|
||||
URL="gs://sf-ctrl/seqlen512_v1.ckpt/"
|
||||
|
||||
gsutil -m cp -r "$URL" model
|
||||
|
||||
Reference in New Issue
Block a user