teamnassim commited on
Commit
689dfd2
Β·
1 Parent(s): 09e952b

attempt to use stylegan3

Browse files
.pre=commit-config.yaml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ exclude: ^stylegan3
2
+ repos:
3
+ - repo: https://github.com/pre-commit/pre-commit-hooks
4
+ rev: v4.2.0
5
+ hooks:
6
+ - id: check-executables-have-shebangs
7
+ - id: check-json
8
+ - id: check-merge-conflict
9
+ - id: check-shebang-scripts-are-executable
10
+ - id: check-toml
11
+ - id: check-yaml
12
+ - id: double-quote-string-fixer
13
+ - id: end-of-file-fixer
14
+ - id: mixed-line-ending
15
+ args: ['--fix=lf']
16
+ - id: requirements-txt-fixer
17
+ - id: trailing-whitespace
18
+ - repo: https://github.com/myint/docformatter
19
+ rev: v1.4
20
+ hooks:
21
+ - id: docformatter
22
+ args: ['--in-place']
23
+ - repo: https://github.com/pycqa/isort
24
+ rev: 5.12.0
25
+ hooks:
26
+ - id: isort
27
+ - repo: https://github.com/pre-commit/mirrors-mypy
28
+ rev: v0.991
29
+ hooks:
30
+ - id: mypy
31
+ args: ['--ignore-missing-imports']
32
+ - repo: https://github.com/google/yapf
33
+ rev: v0.32.0
34
+ hooks:
35
+ - id: yapf
36
+ args: ['--parallel', '--in-place']
__pycache__/model.cpython-310.pyc CHANGED
Binary files a/__pycache__/model.cpython-310.pyc and b/__pycache__/model.cpython-310.pyc differ
 
app.py CHANGED
@@ -4,7 +4,6 @@ from os import pipe
4
  import gradio as gr
5
  import numpy as np
6
  from model import Model
7
- from typing import Tuple
8
  from diffusers import StableDiffusionPipeline
9
  import gradio as gr
10
  from story_generator import StoryGenerator
 
4
  import gradio as gr
5
  import numpy as np
6
  from model import Model
 
7
  from diffusers import StableDiffusionPipeline
8
  import gradio as gr
9
  from story_generator import StoryGenerator
model.py CHANGED
@@ -9,6 +9,12 @@ import numpy as np
9
  import torch
10
  import torch.nn as nn
11
 
 
 
 
 
 
 
12
  current_dir = pathlib.Path(__file__).parent
13
  submodule_dir = current_dir / 'stylegan3'
14
  sys.path.insert(0, submodule_dir.as_posix())
 
9
  import torch
10
  import torch.nn as nn
11
 
12
+
13
+ current_dir = pathlib.Path(__file__).parent
14
+ submodule_dir = current_dir / 'stylegan3'
15
+ sys.path.insert(0, submodule_dir.as_posix())
16
+
17
+
18
  current_dir = pathlib.Path(__file__).parent
19
  submodule_dir = current_dir / 'stylegan3'
20
  sys.path.insert(0, submodule_dir.as_posix())