-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
77 lines (64 loc) · 1.97 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PONY: awslab
awslab:
@echo "Creating virtual environment..."
@conda env create --name awslab --file diffusion/diffusers.yml
@echo "Virtual environment created."
.PONY: diffusers
diffusers:
@echo "Creating virtual environment..."
@conda env create --name diffusers --file diffusers.yml
@echo "Virtual environment created."
.PONY: newdiffusers
newdiffusers:
@echo "Creating virtual environment with python 3.11..."
@conda create --name diffusers python=3.11 -y
@echo "Virtual environment created."
.PONY: torch
torch:
@echo "Installing torch..."
@conda install pytorch::pytorch torchvision torchaudio -c pytorch -y
@echo "Torch installed."
.PONY: install
install:
@echo "Installing dependencies..."
@pip install diffusers["torch","flax"] transformers
@echo "Dependencies installed."
.PONY: freeze
freeze:
@echo "Freezing dependencies..."
@conda env export > diffusers.yml
@echo "Dependencies frozen."
###################################################################################################
.PONY: newimp
newimp:
@echo "Creating virtual environment with python 3.11..."
@conda create --name imp python=3.11 -y
@echo "Virtual environment created."
.PONY: freezeimp
freezeimp:
@echo "Freezing dependencies..."
@conda env export > implementation/implementaion.yml
@echo "Dependencies frozen."
.PONY: installimp
installimp:
@echo "Installing dependencies..."
@conda env create --name imp --file implementation/implementaion.yml
@echo "Dependencies installed."
###################################################################################################
# Commit and recommit changes to github
.PONY: commit
commit:
@echo "Committing changes..."
@git add .
@git commit -s -m"${message}"
@git push origin main
@git log -1
@echo "Changes committed and pushed to github."
.PONY: recommit
recommit:
@echo "Committing changes..."
@git add .
@git commit -s --amend --no-edit
@git push -f origin main
@git log -1
@echo "Changes committed and pushed to github."