Skip to content

Commit

Permalink
update for requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
KzZheng committed Dec 12, 2024
1 parent 2121c74 commit 6356764
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Clone our repo and create a new python environment.
```bash
git clone https://github.com/eric-ai-lab/MiniGPT-5.git
cd MiniGPT-5
conda create -n minigpt5 python=3.9
conda create -n minigpt5 python=3.10
conda activate minigpt5
pip install -r requirements.txt
```
Expand Down
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from utils import plot_images_and_text
from constants import *
from diffusers import StableDiffusionPipeline
from diffusers.models.vae import DiagonalGaussianDistribution
from diffusers.models.autoencoders.vae import DiagonalGaussianDistribution

class MiniGPT5_InputProcessor(object):

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ transformers==4.31.0
# xformers
accelerate>=0.20.3
opencv-python
peft
peft==0.10.0
tokenizers
lightning>=2.0.2
open_clip_torch
Expand Down
2 changes: 1 addition & 1 deletion train_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from lightning.pytorch.callbacks import BasePredictionWriter
from model import MiniGPT5_Model, MiniGPT5_InputProcessor
from metric import *
# from metric import *

class PredWriter(BasePredictionWriter):
def write_on_epoch_end(
Expand Down

0 comments on commit 6356764

Please sign in to comment.