SakuraD commited on
Commit
677f5a0
1 Parent(s): 29a3d5a
Files changed (2) hide show
  1. requirements.txt +13 -34
  2. transforms.py +0 -31
requirements.txt CHANGED
@@ -1,34 +1,13 @@
1
- apex==0.1
2
- av==11.0.0
3
- decord==0.6.0
4
- deepspeed==0.13.1
5
- einops==0.7.0
6
- ftfy==6.1.3
7
- fvcore==0.1.5.post20221221
8
- imageio==2.33.1
9
- lm_eval==0.4.1
10
- numpy==1.26.4
11
- omegaconf==2.3.0
12
- opencv_python==4.8.1.78
13
- packaging==24.0
14
- pandas==2.2.1
15
- Pillow==10.1.0
16
- pytest==8.1.1
17
- PyYAML==6.0.1
18
- regex==2023.10.3
19
- Requests==2.31.0
20
- scipy==1.12.0
21
- setuptools==68.2.2
22
- skimage==0.0
23
- submitit==1.5.1
24
- tensorboardX==2.6.2.2
25
- tensorflow==2.16.1
26
- termcolor==2.4.0
27
- timm==0.4.12
28
- torch==2.1.1
29
- torchvision==0.16.1
30
- tqdm==4.66.1
31
- transformers==4.36.1
32
- wandb==0.16.2
33
- wheel==0.42.0
34
- xformers==0.0.24
 
1
+ decord
2
+ einops
3
+ lm_eval
4
+ numpy
5
+ packaging
6
+ pytest
7
+ setuptools
8
+ skimage
9
+ timm
10
+ torch
11
+ torchvision
12
+ transformers
13
+ wheel
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
transforms.py CHANGED
@@ -410,34 +410,3 @@ class IdentityTransform(object):
410
 
411
  def __call__(self, data):
412
  return data
413
-
414
-
415
- if __name__ == "__main__":
416
- trans = torchvision.transforms.Compose([
417
- GroupScale(256),
418
- GroupRandomCrop(224),
419
- Stack(),
420
- ToTorchFormatTensor(),
421
- GroupNormalize(
422
- mean=[.485, .456, .406],
423
- std=[.229, .224, .225]
424
- )]
425
- )
426
-
427
- im = Image.open('../tensorflow-model-zoo.torch/lena_299.png')
428
-
429
- color_group = [im] * 3
430
- rst = trans(color_group)
431
-
432
- gray_group = [im.convert('L')] * 9
433
- gray_rst = trans(gray_group)
434
-
435
- trans2 = torchvision.transforms.Compose([
436
- GroupRandomSizedCrop(256),
437
- Stack(),
438
- ToTorchFormatTensor(),
439
- GroupNormalize(
440
- mean=[.485, .456, .406],
441
- std=[.229, .224, .225])
442
- ])
443
- print(trans2(color_group))
 
410
 
411
  def __call__(self, data):
412
  return data