chenyangqi commited on
Commit
dc1b073
1 Parent(s): 43ca864

update swarovski

Browse files
FateZero/video_diffusion/models/resnet.py CHANGED
@@ -27,17 +27,20 @@ class PseudoConv3d(nn.Conv2d):
27
 
28
 
29
  if 'lora' in model_config.keys() :
30
- self.conv_temporal = (
31
- LoRALinearLayer(
32
- out_channels,
33
- out_channels,
34
- rank=model_config['lora'],
35
- stride=temporal_stride
36
-
 
 
 
 
37
  )
38
- if kernel_size > 1
39
- else None
40
- )
41
  else:
42
  self.conv_temporal = (
43
  nn.Conv1d(
 
27
 
28
 
29
  if 'lora' in model_config.keys() :
30
+ if model_config['lora'] is not None:
31
+ self.conv_temporal = (
32
+ LoRALinearLayer(
33
+ out_channels,
34
+ out_channels,
35
+ rank=model_config['lora'],
36
+ stride=temporal_stride
37
+
38
+ )
39
+ if kernel_size > 1
40
+ else None
41
  )
42
+ else:
43
+ self.conv_temporal = None
 
44
  else:
45
  self.conv_temporal = (
46
  nn.Conv1d(
example.py CHANGED
@@ -1,3 +1,4 @@
 
1
  style_example = [
2
  [
3
  'CompVis/stable-diffusion-v1-4',
@@ -8,7 +9,7 @@ style_example = [
8
  0.8,
9
  "watercolor",
10
  10,
11
- 10,
12
  7.5,
13
  # input video argument
14
  None, 0, 8, 1, 0,0,0,0
@@ -23,7 +24,7 @@ style_example = [
23
  0.5,
24
  'van gogh',
25
  10,
26
- 10,
27
  7.5,
28
  None, 0, 8, 1, 0,0,0,0
29
  ],
@@ -36,7 +37,7 @@ style_example = [
36
  0.9,
37
  'Ukiyo-e',
38
  10,
39
- 10,
40
  7.5,
41
  None, 0, 8, 1, 0,0,0,0
42
  ],
@@ -49,7 +50,21 @@ style_example = [
49
  0.9,
50
  'Makoto Shinkai',
51
  10,
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  10,
 
53
  7.5,
54
  None, 0, 8, 1, 0,0,0,0
55
  ],
 
1
+ num_steps = 10
2
  style_example = [
3
  [
4
  'CompVis/stable-diffusion-v1-4',
 
9
  0.8,
10
  "watercolor",
11
  10,
12
+ num_steps,
13
  7.5,
14
  # input video argument
15
  None, 0, 8, 1, 0,0,0,0
 
24
  0.5,
25
  'van gogh',
26
  10,
27
+ num_steps,
28
  7.5,
29
  None, 0, 8, 1, 0,0,0,0
30
  ],
 
37
  0.9,
38
  'Ukiyo-e',
39
  10,
40
+ num_steps,
41
  7.5,
42
  None, 0, 8, 1, 0,0,0,0
43
  ],
 
50
  0.9,
51
  'Makoto Shinkai',
52
  10,
53
+ num_steps,
54
+ 7.5,
55
+ None, 0, 8, 1, 0,0,0,0
56
+ ],
57
+
58
+ [
59
+ 'CompVis/stable-diffusion-v1-4',
60
+ 'FateZero/data/attribute/swan_swarov',
61
+ 'a black swan with a red beak swimming in a river near a wall and bushes',
62
+ 'a Swarovski crystal swan with a red beak swimming in a river near a wall and bushes',
63
+ 0.8,
64
+ 0.6,
65
+ 'Swarovski crystal',
66
  10,
67
+ num_steps,
68
  7.5,
69
  None, 0, 8, 1, 0,0,0,0
70
  ],