We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95548c commit 389a91eCopy full SHA for 389a91e
setup.py
@@ -3,8 +3,12 @@
3
setup(
4
name = 'stylegan2_pytorch',
5
packages = find_packages(),
6
- scripts=['bin/stylegan2_pytorch'],
7
- version = '0.21.1',
+ entry_points={
+ 'console_scripts': [
8
+ 'stylegan2_pytorch = stylegan2_pytorch.cli:main',
9
+ ],
10
+ },
11
+ version = '0.21.2',
12
license='GPLv3+',
13
description = 'StyleGan2 in Pytorch',
14
author = 'Phil Wang',
bin/stylegan2_pytorch renamed to stylegan2_pytorch/cli.py
@@ -102,5 +102,5 @@ def train_from_folder(
102
if _ % 50 == 0:
103
model.print_log()
104
105
-if __name__ == "__main__":
+def main():
106
fire.Fire(train_from_folder)
0 commit comments