Skip to content

Commit

Permalink
Fix: Remove __main__ relative path
Browse files Browse the repository at this point in the history
Github issue #61
  • Loading branch information
jjjuuuun committed Jul 26, 2023
1 parent 73e912a commit 3bbb425
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ repos:
rev: stable
hooks:
- id: black
exclude:|
exclude: |
src/scratch/htdocs
.github/workflows/testing.yaml
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .scratch import main, streamlit_frontend, gpt3_api
from .stable_diffusion import main, test
from .stable_diffusion import dataset, train, utils
from .redis_celery import main, streamlit_frontend, gpt3_api, worker
3 changes: 1 addition & 2 deletions src/stable_diffusion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .dataset import valid_prompt, MelonDataset
from .main import main
from .test import test
from .train import train, valid
from .utils import plot, training, util
6 changes: 3 additions & 3 deletions src/stable_diffusion/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

from diffusers import StableDiffusionPipeline

from .utils.training import compute_snr
from .utils.plot import make_image_grid

from PIL import Image
import numpy as np
from functools import partial

from .utils.training import compute_snr
from .utils.plot import make_image_grid


def train(
args,
Expand Down

0 comments on commit 3bbb425

Please sign in to comment.