Skip to content

Commit 052e11d

Browse files
committed
Fix version of x-transformers lukas-blecher#33
0.15.1 included breaking changes Also use ImageCompression instead of JpegCompression
1 parent 948c6c0 commit 052e11d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dataset/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
b_shift_limit=15, p=0.3),
3232
alb.GaussNoise(10, p=.2),
3333
alb.RandomBrightnessContrast(.05, (-.2, 0), True, p=0.2),
34-
alb.JpegCompression(95, p=.3),
34+
alb.ImageCompression(95, p=.3),
3535
alb.ToGray(always_apply=True),
3636
alb.Normalize((0.7931, 0.7931, 0.7931), (0.1738, 0.1738, 0.1738)),
3737
# alb.Sharpen()

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ opencv_python_headless>=4.1.1.26
55
requests>=2.22.0
66
einops>=0.3.0
77
chardet>=3.0.4
8-
x_transformers>=0.8.1
8+
x_transformers==0.15.0
99
torch>=1.7.0
1010
imagesize>=1.2.0
1111
transformers>=4.2.2

0 commit comments

Comments
 (0)