simplify import
This commit is contained in:
parent
18c72ed34d
commit
69683fec94
|
@ -2,14 +2,14 @@ import argparse
|
||||||
import os
|
import os
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
from min_dalle.min_dalle_torch import MinDalleTorch
|
from min_dalle import MinDalleTorch
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('--mega', action='store_true')
|
parser.add_argument('--mega', action='store_true')
|
||||||
parser.add_argument('--no-mega', dest='mega', action='store_false')
|
parser.add_argument('--no-mega', dest='mega', action='store_false')
|
||||||
parser.set_defaults(mega=False)
|
parser.set_defaults(mega=False)
|
||||||
parser.add_argument('--text', type=str, default='cat')
|
parser.add_argument('--text', type=str, default='alien life')
|
||||||
parser.add_argument('--seed', type=int, default=0)
|
parser.add_argument('--seed', type=int, default=7)
|
||||||
parser.add_argument('--image_path', type=str, default='generated')
|
parser.add_argument('--image_path', type=str, default='generated')
|
||||||
parser.add_argument('--token_count', type=int, default=256) # for debugging
|
parser.add_argument('--token_count', type=int, default=256) # for debugging
|
||||||
|
|
||||||
|
|
2
min_dalle.ipynb
vendored
2
min_dalle.ipynb
vendored
|
@ -134,7 +134,7 @@
|
||||||
"source": [
|
"source": [
|
||||||
"import os\n",
|
"import os\n",
|
||||||
"os.chdir('/content/min-dalle')\n",
|
"os.chdir('/content/min-dalle')\n",
|
||||||
"from min_dalle.min_dalle_torch import MinDalleTorch\n",
|
"from min_dalle import MinDalleTorch\n",
|
||||||
"\n",
|
"\n",
|
||||||
"model = MinDalleTorch(is_mega=True, is_reusable=True)"
|
"model = MinDalleTorch(is_mega=True, is_reusable=True)"
|
||||||
]
|
]
|
||||||
|
|
1
min_dalle/__init__.py
Normal file
1
min_dalle/__init__.py
Normal file
|
@ -0,0 +1 @@
|
||||||
|
from .min_dalle_torch import MinDalleTorch
|
Loading…
Reference in New Issue
Block a user