parquet-converter commited on
Commit
22076f7
·
1 Parent(s): aba3bb7

Update parquet files (step 27 of 121)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. spaces/101-5/gpt4free/testing/aiservice/AiService.py +0 -62
  2. spaces/1368565466ki/Satdia/modules.py +0 -388
  3. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Cars 2 Tamil Dubbed Movie Torrent Download The Ultimate Guide for Fans.md +0 -98
  4. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Crack House A Definition and Explanation of the Legal Risks.md +0 -22
  5. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Droidkit Is It Safe [Extra Quality].md +0 -42
  6. spaces/1gistliPinn/ChatGPT4/Examples/Autodesk AutoCAD 2018.0.2 Final (x86 X64) Keygen ((BETTER)) Utorrent.md +0 -11
  7. spaces/1gistliPinn/ChatGPT4/Examples/CValley FilterIt 463 For Adobe Illustrator CSCC 2015 CORE KeyGen 11 The Ultimate Plugin for Vector Graphics.md +0 -6
  8. spaces/1gistliPinn/ChatGPT4/Examples/Download Autodesk Advance Steel 2019 Free With Activation.md +0 -8
  9. spaces/1gistliPinn/ChatGPT4/Examples/Download Catia V6 Crack.md +0 -6
  10. spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/CarX Rally The Most Realistic and Exciting Rally Game for Android.md +0 -103
  11. spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Animal Revolt Battle Simulator and Fight with Hybrid Animals for Free.md +0 -110
  12. spaces/1phancelerku/anime-remove-background/CarX Street APK A Realistic and Immersive Racing Game for Android.md +0 -99
  13. spaces/1phancelerku/anime-remove-background/Chiskop Askies - The Ultimate Kwaito Mp3 Download.md +0 -134
  14. spaces/1phancelerku/anime-remove-background/Download APK Unity for Android and Get Started with Googles Official Packages.md +0 -130
  15. spaces/1phancelerku/anime-remove-background/Download Game Clash of Clans Terbaru and Discover New Buildings and Characters in a Mysterious World!.md +0 -94
  16. spaces/1phancelerku/anime-remove-background/Download Game Hungry Shark Evolution Mod Apk Versi Lama Game Terbaik yang Bisa Anda Download Gratis dan Mendapatkan Unlimited Coin dan Diamond untuk Meningkatkan Level dan Kekuatan Ikan Hiu Anda.md +0 -109
  17. spaces/1phancelerku/anime-remove-background/Download Gratis Instagram Cara Mudah dan Cepat Mengunduh Foto dan Video dari IG.md +0 -121
  18. spaces/1phancelerku/anime-remove-background/Download Watch Dogs 2 APK for Android and Join the Hacker Revolution.md +0 -115
  19. spaces/1phancelerku/anime-remove-background/Download YouTube Playlist with These Reddit-Approved Tools and Tips.md +0 -173
  20. spaces/AIConsultant/MusicGen/audiocraft/data/music_dataset.py +0 -270
  21. spaces/ANLPRL/NER_On_Oral_Medicine/app.py +0 -96
  22. spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_2_ProfileRecogition/mmpretrain/work_dirs/resnext101_4xb32_2048e_3c_noF/resnext101_4xb32_2048e_3c_noF.py +0 -131
  23. spaces/Aaaaaaaabdualh/poetry2023/README.md +0 -13
  24. spaces/AbandonedMuse/UnlimitedMusicGen/CHANGELOG.md +0 -33
  25. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/holygrail/methods/LayoutMode3.js +0 -68
  26. spaces/AiMimicry/sovits-models/hubert/hubert_model_onnx.py +0 -217
  27. spaces/Akmyradov/TurkmenTTSweSTT/uroman/bin/uroman-quick.pl +0 -58
  28. spaces/Akshay-More-007/starcoder/apikey.py +0 -1
  29. spaces/AlexWang/lama/models/ade20k/segm_lib/nn/parallel/__init__.py +0 -1
  30. spaces/Alichuan/VITS-Umamusume-voice-synthesizer/ONNXVITS_models.py +0 -509
  31. spaces/Alichuan/VITS-Umamusume-voice-synthesizer/attentions.py +0 -300
  32. spaces/Alinadi98/movie_recommendation_system/README.md +0 -12
  33. spaces/Ameaou/academic-chatgpt3.1/docs/self_analysis.md +0 -256
  34. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +0 -348
  35. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/schedulers/scheduling_utils.py +0 -177
  36. spaces/Andy1621/uniformer_image_detection/configs/_base_/datasets/coco_instance.py +0 -48
  37. spaces/Andy1621/uniformer_image_detection/configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes.py +0 -39
  38. spaces/Andy1621/uniformer_image_detection/configs/fsaf/fsaf_x101_64x4d_fpn_1x_coco.py +0 -13
  39. spaces/Andy1621/uniformer_image_detection/mmcv_custom/__init__.py +0 -5
  40. spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py +0 -5
  41. spaces/Andy1621/uniformer_image_segmentation/configs/fcn/fcn_d6_r50-d16_512x1024_40k_cityscapes.py +0 -8
  42. spaces/AnishKumbhar/ChatBot/text-generation-webui-main/modules/extensions.py +0 -224
  43. spaces/AriaMei/TTSdemo/monotonic_align/__init__.py +0 -19
  44. spaces/Ariharasudhan/YoloV5/utils/downloads.py +0 -108
  45. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/lexers/python.py +0 -1204
  46. spaces/AtomdffAI/wechatgpt4atom/common/log.py +0 -16
  47. spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docker/Dockerfile +0 -47
  48. spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docs/tutorials/augmentation.md +0 -186
  49. spaces/Benson/text-generation/Examples/Descargar 6 Minutos En Ingls.md +0 -67
  50. spaces/Benson/text-generation/Examples/Descargar Doctrina.ai Apk.md +0 -72
spaces/101-5/gpt4free/testing/aiservice/AiService.py DELETED
@@ -1,62 +0,0 @@
1
- import os,sys
2
- import requests
3
- # from ...typing import get_type_hints
4
-
5
- url = "https://aiservice.vercel.app/api/chat/answer"
6
- model = ['gpt-3.5-turbo']
7
- supports_stream = False
8
- needs_auth = False
9
-
10
-
11
- def _create_completion(model: str, messages: list, stream: bool, **kwargs):
12
- base = ''
13
- for message in messages:
14
- base += '%s: %s\n' % (message['role'], message['content'])
15
- base += 'assistant:'
16
-
17
- headers = {
18
- "accept": "*/*",
19
- "content-type": "text/plain;charset=UTF-8",
20
- "sec-fetch-dest": "empty",
21
- "sec-fetch-mode": "cors",
22
- "sec-fetch-site": "same-origin",
23
- "Referer": "https://aiservice.vercel.app/chat",
24
- }
25
- data = {
26
- "input": base
27
- }
28
- response = requests.post(url, headers=headers, json=data)
29
- if response.status_code == 200:
30
- _json = response.json()
31
- yield _json['data']
32
- else:
33
- print(f"Error Occurred::{response.status_code}")
34
- return None
35
-
36
-
37
-
38
- # params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + \
39
- # '(%s)' % ', '.join(
40
- # [f"{name}: {get_type_hints(_create_completion)[name].__name__}" for name in _create_completion.__code__.co_varnames[:_create_completion.__code__.co_argcount]])
41
-
42
-
43
- # Temporary For ChatCompletion Class
44
- class ChatCompletion:
45
- @staticmethod
46
- def create(model: str, messages: list, provider: None or str, stream: bool = False, auth: str = False, **kwargs):
47
- kwargs['auth'] = auth
48
-
49
- if provider and needs_auth and not auth:
50
- print(
51
- f'ValueError: {provider} requires authentication (use auth="cookie or token or jwt ..." param)', file=sys.stderr)
52
- sys.exit(1)
53
-
54
- try:
55
- return (_create_completion(model, messages, stream, **kwargs)
56
- if stream else ''.join(_create_completion(model, messages, stream, **kwargs)))
57
- except TypeError as e:
58
- print(e)
59
- arg: str = str(e).split("'")[1]
60
- print(
61
- f"ValueError: {provider} does not support '{arg}' argument", file=sys.stderr)
62
- sys.exit(1)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1368565466ki/Satdia/modules.py DELETED
@@ -1,388 +0,0 @@
1
- import math
2
- import numpy as np
3
- import torch
4
- from torch import nn
5
- from torch.nn import functional as F
6
-
7
- from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
8
- from torch.nn.utils import weight_norm, remove_weight_norm
9
-
10
- import commons
11
- from commons import init_weights, get_padding
12
- from transforms import piecewise_rational_quadratic_transform
13
-
14
-
15
- LRELU_SLOPE = 0.1
16
-
17
-
18
- class LayerNorm(nn.Module):
19
- def __init__(self, channels, eps=1e-5):
20
- super().__init__()
21
- self.channels = channels
22
- self.eps = eps
23
-
24
- self.gamma = nn.Parameter(torch.ones(channels))
25
- self.beta = nn.Parameter(torch.zeros(channels))
26
-
27
- def forward(self, x):
28
- x = x.transpose(1, -1)
29
- x = F.layer_norm(x, (self.channels,), self.gamma, self.beta, self.eps)
30
- return x.transpose(1, -1)
31
-
32
-
33
- class ConvReluNorm(nn.Module):
34
- def __init__(self, in_channels, hidden_channels, out_channels, kernel_size, n_layers, p_dropout):
35
- super().__init__()
36
- self.in_channels = in_channels
37
- self.hidden_channels = hidden_channels
38
- self.out_channels = out_channels
39
- self.kernel_size = kernel_size
40
- self.n_layers = n_layers
41
- self.p_dropout = p_dropout
42
- assert n_layers > 1, "Number of layers should be larger than 0."
43
-
44
- self.conv_layers = nn.ModuleList()
45
- self.norm_layers = nn.ModuleList()
46
- self.conv_layers.append(nn.Conv1d(in_channels, hidden_channels, kernel_size, padding=kernel_size//2))
47
- self.norm_layers.append(LayerNorm(hidden_channels))
48
- self.relu_drop = nn.Sequential(
49
- nn.ReLU(),
50
- nn.Dropout(p_dropout))
51
- for _ in range(n_layers-1):
52
- self.conv_layers.append(nn.Conv1d(hidden_channels, hidden_channels, kernel_size, padding=kernel_size//2))
53
- self.norm_layers.append(LayerNorm(hidden_channels))
54
- self.proj = nn.Conv1d(hidden_channels, out_channels, 1)
55
- self.proj.weight.data.zero_()
56
- self.proj.bias.data.zero_()
57
-
58
- def forward(self, x, x_mask):
59
- x_org = x
60
- for i in range(self.n_layers):
61
- x = self.conv_layers[i](x * x_mask)
62
- x = self.norm_layers[i](x)
63
- x = self.relu_drop(x)
64
- x = x_org + self.proj(x)
65
- return x * x_mask
66
-
67
-
68
- class DDSConv(nn.Module):
69
- """
70
- Dialted and Depth-Separable Convolution
71
- """
72
- def __init__(self, channels, kernel_size, n_layers, p_dropout=0.):
73
- super().__init__()
74
- self.channels = channels
75
- self.kernel_size = kernel_size
76
- self.n_layers = n_layers
77
- self.p_dropout = p_dropout
78
-
79
- self.drop = nn.Dropout(p_dropout)
80
- self.convs_sep = nn.ModuleList()
81
- self.convs_1x1 = nn.ModuleList()
82
- self.norms_1 = nn.ModuleList()
83
- self.norms_2 = nn.ModuleList()
84
- for i in range(n_layers):
85
- dilation = kernel_size ** i
86
- padding = (kernel_size * dilation - dilation) // 2
87
- self.convs_sep.append(nn.Conv1d(channels, channels, kernel_size,
88
- groups=channels, dilation=dilation, padding=padding
89
- ))
90
- self.convs_1x1.append(nn.Conv1d(channels, channels, 1))
91
- self.norms_1.append(LayerNorm(channels))
92
- self.norms_2.append(LayerNorm(channels))
93
-
94
- def forward(self, x, x_mask, g=None):
95
- if g is not None:
96
- x = x + g
97
- for i in range(self.n_layers):
98
- y = self.convs_sep[i](x * x_mask)
99
- y = self.norms_1[i](y)
100
- y = F.gelu(y)
101
- y = self.convs_1x1[i](y)
102
- y = self.norms_2[i](y)
103
- y = F.gelu(y)
104
- y = self.drop(y)
105
- x = x + y
106
- return x * x_mask
107
-
108
-
109
- class WN(torch.nn.Module):
110
- def __init__(self, hidden_channels, kernel_size, dilation_rate, n_layers, gin_channels=0, p_dropout=0):
111
- super(WN, self).__init__()
112
- assert(kernel_size % 2 == 1)
113
- self.hidden_channels =hidden_channels
114
- self.kernel_size = kernel_size,
115
- self.dilation_rate = dilation_rate
116
- self.n_layers = n_layers
117
- self.gin_channels = gin_channels
118
- self.p_dropout = p_dropout
119
-
120
- self.in_layers = torch.nn.ModuleList()
121
- self.res_skip_layers = torch.nn.ModuleList()
122
- self.drop = nn.Dropout(p_dropout)
123
-
124
- if gin_channels != 0:
125
- cond_layer = torch.nn.Conv1d(gin_channels, 2*hidden_channels*n_layers, 1)
126
- self.cond_layer = torch.nn.utils.weight_norm(cond_layer, name='weight')
127
-
128
- for i in range(n_layers):
129
- dilation = dilation_rate ** i
130
- padding = int((kernel_size * dilation - dilation) / 2)
131
- in_layer = torch.nn.Conv1d(hidden_channels, 2*hidden_channels, kernel_size,
132
- dilation=dilation, padding=padding)
133
- in_layer = torch.nn.utils.weight_norm(in_layer, name='weight')
134
- self.in_layers.append(in_layer)
135
-
136
- # last one is not necessary
137
- if i < n_layers - 1:
138
- res_skip_channels = 2 * hidden_channels
139
- else:
140
- res_skip_channels = hidden_channels
141
-
142
- res_skip_layer = torch.nn.Conv1d(hidden_channels, res_skip_channels, 1)
143
- res_skip_layer = torch.nn.utils.weight_norm(res_skip_layer, name='weight')
144
- self.res_skip_layers.append(res_skip_layer)
145
-
146
- def forward(self, x, x_mask, g=None, **kwargs):
147
- output = torch.zeros_like(x)
148
- n_channels_tensor = torch.IntTensor([self.hidden_channels])
149
-
150
- if g is not None:
151
- g = self.cond_layer(g)
152
-
153
- for i in range(self.n_layers):
154
- x_in = self.in_layers[i](x)
155
- if g is not None:
156
- cond_offset = i * 2 * self.hidden_channels
157
- g_l = g[:,cond_offset:cond_offset+2*self.hidden_channels,:]
158
- else:
159
- g_l = torch.zeros_like(x_in)
160
-
161
- acts = commons.fused_add_tanh_sigmoid_multiply(
162
- x_in,
163
- g_l,
164
- n_channels_tensor)
165
- acts = self.drop(acts)
166
-
167
- res_skip_acts = self.res_skip_layers[i](acts)
168
- if i < self.n_layers - 1:
169
- res_acts = res_skip_acts[:,:self.hidden_channels,:]
170
- x = (x + res_acts) * x_mask
171
- output = output + res_skip_acts[:,self.hidden_channels:,:]
172
- else:
173
- output = output + res_skip_acts
174
- return output * x_mask
175
-
176
- def remove_weight_norm(self):
177
- if self.gin_channels != 0:
178
- torch.nn.utils.remove_weight_norm(self.cond_layer)
179
- for l in self.in_layers:
180
- torch.nn.utils.remove_weight_norm(l)
181
- for l in self.res_skip_layers:
182
- torch.nn.utils.remove_weight_norm(l)
183
-
184
-
185
- class ResBlock1(torch.nn.Module):
186
- def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)):
187
- super(ResBlock1, self).__init__()
188
- self.convs1 = nn.ModuleList([
189
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
190
- padding=get_padding(kernel_size, dilation[0]))),
191
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
192
- padding=get_padding(kernel_size, dilation[1]))),
193
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[2],
194
- padding=get_padding(kernel_size, dilation[2])))
195
- ])
196
- self.convs1.apply(init_weights)
197
-
198
- self.convs2 = nn.ModuleList([
199
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
200
- padding=get_padding(kernel_size, 1))),
201
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
202
- padding=get_padding(kernel_size, 1))),
203
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
204
- padding=get_padding(kernel_size, 1)))
205
- ])
206
- self.convs2.apply(init_weights)
207
-
208
- def forward(self, x, x_mask=None):
209
- for c1, c2 in zip(self.convs1, self.convs2):
210
- xt = F.leaky_relu(x, LRELU_SLOPE)
211
- if x_mask is not None:
212
- xt = xt * x_mask
213
- xt = c1(xt)
214
- xt = F.leaky_relu(xt, LRELU_SLOPE)
215
- if x_mask is not None:
216
- xt = xt * x_mask
217
- xt = c2(xt)
218
- x = xt + x
219
- if x_mask is not None:
220
- x = x * x_mask
221
- return x
222
-
223
- def remove_weight_norm(self):
224
- for l in self.convs1:
225
- remove_weight_norm(l)
226
- for l in self.convs2:
227
- remove_weight_norm(l)
228
-
229
-
230
- class ResBlock2(torch.nn.Module):
231
- def __init__(self, channels, kernel_size=3, dilation=(1, 3)):
232
- super(ResBlock2, self).__init__()
233
- self.convs = nn.ModuleList([
234
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
235
- padding=get_padding(kernel_size, dilation[0]))),
236
- weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
237
- padding=get_padding(kernel_size, dilation[1])))
238
- ])
239
- self.convs.apply(init_weights)
240
-
241
- def forward(self, x, x_mask=None):
242
- for c in self.convs:
243
- xt = F.leaky_relu(x, LRELU_SLOPE)
244
- if x_mask is not None:
245
- xt = xt * x_mask
246
- xt = c(xt)
247
- x = xt + x
248
- if x_mask is not None:
249
- x = x * x_mask
250
- return x
251
-
252
- def remove_weight_norm(self):
253
- for l in self.convs:
254
- remove_weight_norm(l)
255
-
256
-
257
- class Log(nn.Module):
258
- def forward(self, x, x_mask, reverse=False, **kwargs):
259
- if not reverse:
260
- y = torch.log(torch.clamp_min(x, 1e-5)) * x_mask
261
- logdet = torch.sum(-y, [1, 2])
262
- return y, logdet
263
- else:
264
- x = torch.exp(x) * x_mask
265
- return x
266
-
267
-
268
- class Flip(nn.Module):
269
- def forward(self, x, *args, reverse=False, **kwargs):
270
- x = torch.flip(x, [1])
271
- if not reverse:
272
- logdet = torch.zeros(x.size(0)).to(dtype=x.dtype, device=x.device)
273
- return x, logdet
274
- else:
275
- return x
276
-
277
-
278
- class ElementwiseAffine(nn.Module):
279
- def __init__(self, channels):
280
- super().__init__()
281
- self.channels = channels
282
- self.m = nn.Parameter(torch.zeros(channels,1))
283
- self.logs = nn.Parameter(torch.zeros(channels,1))
284
-
285
- def forward(self, x, x_mask, reverse=False, **kwargs):
286
- if not reverse:
287
- y = self.m + torch.exp(self.logs) * x
288
- y = y * x_mask
289
- logdet = torch.sum(self.logs * x_mask, [1,2])
290
- return y, logdet
291
- else:
292
- x = (x - self.m) * torch.exp(-self.logs) * x_mask
293
- return x
294
-
295
-
296
- class ResidualCouplingLayer(nn.Module):
297
- def __init__(self,
298
- channels,
299
- hidden_channels,
300
- kernel_size,
301
- dilation_rate,
302
- n_layers,
303
- p_dropout=0,
304
- gin_channels=0,
305
- mean_only=False):
306
- assert channels % 2 == 0, "channels should be divisible by 2"
307
- super().__init__()
308
- self.channels = channels
309
- self.hidden_channels = hidden_channels
310
- self.kernel_size = kernel_size
311
- self.dilation_rate = dilation_rate
312
- self.n_layers = n_layers
313
- self.half_channels = channels // 2
314
- self.mean_only = mean_only
315
-
316
- self.pre = nn.Conv1d(self.half_channels, hidden_channels, 1)
317
- self.enc = WN(hidden_channels, kernel_size, dilation_rate, n_layers, p_dropout=p_dropout, gin_channels=gin_channels)
318
- self.post = nn.Conv1d(hidden_channels, self.half_channels * (2 - mean_only), 1)
319
- self.post.weight.data.zero_()
320
- self.post.bias.data.zero_()
321
-
322
- def forward(self, x, x_mask, g=None, reverse=False):
323
- x0, x1 = torch.split(x, [self.half_channels]*2, 1)
324
- h = self.pre(x0) * x_mask
325
- h = self.enc(h, x_mask, g=g)
326
- stats = self.post(h) * x_mask
327
- if not self.mean_only:
328
- m, logs = torch.split(stats, [self.half_channels]*2, 1)
329
- else:
330
- m = stats
331
- logs = torch.zeros_like(m)
332
-
333
- if not reverse:
334
- x1 = m + x1 * torch.exp(logs) * x_mask
335
- x = torch.cat([x0, x1], 1)
336
- logdet = torch.sum(logs, [1,2])
337
- return x, logdet
338
- else:
339
- x1 = (x1 - m) * torch.exp(-logs) * x_mask
340
- x = torch.cat([x0, x1], 1)
341
- return x
342
-
343
-
344
- class ConvFlow(nn.Module):
345
- def __init__(self, in_channels, filter_channels, kernel_size, n_layers, num_bins=10, tail_bound=5.0):
346
- super().__init__()
347
- self.in_channels = in_channels
348
- self.filter_channels = filter_channels
349
- self.kernel_size = kernel_size
350
- self.n_layers = n_layers
351
- self.num_bins = num_bins
352
- self.tail_bound = tail_bound
353
- self.half_channels = in_channels // 2
354
-
355
- self.pre = nn.Conv1d(self.half_channels, filter_channels, 1)
356
- self.convs = DDSConv(filter_channels, kernel_size, n_layers, p_dropout=0.)
357
- self.proj = nn.Conv1d(filter_channels, self.half_channels * (num_bins * 3 - 1), 1)
358
- self.proj.weight.data.zero_()
359
- self.proj.bias.data.zero_()
360
-
361
- def forward(self, x, x_mask, g=None, reverse=False):
362
- x0, x1 = torch.split(x, [self.half_channels]*2, 1)
363
- h = self.pre(x0)
364
- h = self.convs(h, x_mask, g=g)
365
- h = self.proj(h) * x_mask
366
-
367
- b, c, t = x0.shape
368
- h = h.reshape(b, c, -1, t).permute(0, 1, 3, 2) # [b, cx?, t] -> [b, c, t, ?]
369
-
370
- unnormalized_widths = h[..., :self.num_bins] / math.sqrt(self.filter_channels)
371
- unnormalized_heights = h[..., self.num_bins:2*self.num_bins] / math.sqrt(self.filter_channels)
372
- unnormalized_derivatives = h[..., 2 * self.num_bins:]
373
-
374
- x1, logabsdet = piecewise_rational_quadratic_transform(x1,
375
- unnormalized_widths,
376
- unnormalized_heights,
377
- unnormalized_derivatives,
378
- inverse=reverse,
379
- tails='linear',
380
- tail_bound=self.tail_bound
381
- )
382
-
383
- x = torch.cat([x0, x1], 1) * x_mask
384
- logdet = torch.sum(logabsdet * x_mask, [1,2])
385
- if not reverse:
386
- return x, logdet
387
- else:
388
- return x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Cars 2 Tamil Dubbed Movie Torrent Download The Ultimate Guide for Fans.md DELETED
@@ -1,98 +0,0 @@
1
- <br />
2
- <h1>Cars 2 Tamil Dubbed Movie Torrent Download</h1>
3
- <p>Cars 2 is a 2011 animated comedy film produced by Pixar Animation Studios and Walt Disney Pictures. It is the sequel to the 2006 film Cars, and features the voices of Owen Wilson, Larry the Cable Guy, Michael Caine, Emily Mortimer, John Turturro, Eddie Izzard, and many others. The film follows the adventures of Lightning McQueen, a race car, and his best friend Mater, a tow truck, as they travel around the world for the World Grand Prix. Along the way, they get involved in a spy mission to stop a group of evil cars from sabotaging the race.</p>
4
- <h2>Cars 2 Tamil Dubbed Movie Torrent Download</h2><br /><p><b><b>Download</b> &#9734;&#9734;&#9734; <a href="https://byltly.com/2uKxUG">https://byltly.com/2uKxUG</a></b></p><br /><br />
5
- <p>Cars 2 is a popular film among children and adults alike, and has received many awards and nominations. The film has also been dubbed in various languages, including Tamil, which is spoken by millions of people in India and Sri Lanka. Many Tamil-speaking fans of Cars 2 want to watch the film in their native language, but they may not be able to find it in cinemas or online streaming platforms. That's why they resort to downloading Cars 2 Tamil dubbed movie torrent from the internet.</p>
6
- <p>But how can you download Cars 2 Tamil dubbed movie torrent safely and easily? What are the benefits and risks of doing so? And how can you avoid the risks and enjoy the movie without any problems? In this article, we will answer these questions and more. Read on to find out everything you need to know about Cars 2 Tamil dubbed movie torrent download.</p>
7
- <h2>How to download Cars 2 Tamil dubbed movie torrent</h2>
8
- <p>Downloading Cars 2 Tamil dubbed movie torrent is not very difficult if you follow these steps:</p>
9
- <h3>Find a reliable torrent site</h3>
10
- <p>The first step is to find a trustworthy torrent site that offers Cars 2 Tamil dubbed movie torrent. There are many torrent sites on the internet, but not all of them are safe and legal. Some of them may contain malware, viruses, or fake files that can harm your device or waste your time. Some of them may also be blocked by your internet service provider (ISP) or government due to legal issues.</p>
11
- <p>To avoid these problems, you should look for a reputable torrent site that has a large number of users, positive reviews, and high ratings. You should also check the comments and feedback of other users who have downloaded Cars 2 Tamil dubbed movie torrent from that site. Some examples of reliable torrent sites for Cars 2 Tamil dubbed movie are <b>archive.org</b>, <b>wizardly-torvalds-1bdd26.netlify.app</b>, and <b>isaiminiweb.com</b>. </p>
12
- <h3>Choose a suitable torrent file</h3>
13
- <p>The next step is to choose a suitable torrent file that matches your preferences and requirements. A torrent file is a small file that contains information about the actual file you want to download, such as its name, size, quality, format, etc. You can use a torrent file to download Cars 2 Tamil dubbed movie using a torrent client.</p>
14
- <p>To choose a suitable torrent file for Cars 2 Tamil dubbed movie, you should consider several factors, such as:</p>
15
- <p>Cars 2 Tamil Dubbed Full Movie Free Download Torrent<br />
16
- Cars 2 Tamil Dubbed HD Movie Download 720p Torrent<br />
17
- Cars 2 Tamil Dubbed Movie Watch Online Torrent<br />
18
- Cars 2 Tamil Dubbed Movie Download Magnet Link Torrent<br />
19
- Cars 2 Tamil Dubbed Movie Download Utorrent<br />
20
- Cars 2 Tamil Dubbed Movie Download Kickass Torrent<br />
21
- Cars 2 Tamil Dubbed Movie Download Filmyzilla Torrent<br />
22
- Cars 2 Tamil Dubbed Movie Download Isaimini Torrent<br />
23
- Cars 2 Tamil Dubbed Movie Download Tamilyogi Torrent<br />
24
- Cars 2 Tamil Dubbed Movie Download Kuttymovies Torrent<br />
25
- Cars 2 Tamil Dubbed Movie Download Movierulz Torrent<br />
26
- Cars 2 Tamil Dubbed Movie Download Tamilrockers Torrent<br />
27
- Cars 2 Tamil Dubbed Movie Download Telegram Link Torrent<br />
28
- Cars 2 Tamil Dubbed Movie Download Pagalworld Torrent<br />
29
- Cars 2 Tamil Dubbed Movie Download Skymovieshd Torrent<br />
30
- Cars 2 Tamil Dubbed Movie Download Worldfree4u Torrent<br />
31
- Cars 2 Tamil Dubbed Movie Download Bolly4u Torrent<br />
32
- Cars 2 Tamil Dubbed Movie Download Moviesda Torrent<br />
33
- Cars 2 Tamil Dubbed Movie Download Mp4moviez Torrent<br />
34
- Cars 2 Tamil Dubbed Movie Download Jio Rockers Torrent<br />
35
- Cars 2 Tamil Dubbed Movie Download Extramovies Torrent<br />
36
- Cars 2 Tamil Dubbed Movie Download Katmoviehd Torrent<br />
37
- Cars 2 Tamil Dubbed Movie Download Sdmoviespoint Torrent<br />
38
- Cars 2 Tamil Dubbed Movie Download Moviesflix Torrent<br />
39
- Cars 2 Tamil Dubbed Movie Download Filmywap Torrent<br />
40
- Cars 2 Tamil Dubbed Movie Download Yts Torrent<br />
41
- Cars 2 Tamil Dubbed Movie Download Rarbg Torrent<br />
42
- Cars 2 Tamil Dubbed Movie Download Limetorrents Torrent<br />
43
- Cars 2 Tamil Dubbed Movie Download The Pirate Bay Torrent<br />
44
- Cars 2 Tamil Dubbed Movie Download EZTV Torrent<br />
45
- Cars 2 Tamil Dubbed Movie Download Nyaa Torrent<br />
46
- Cars 2 Tamil Dubbed Movie Download Zooqle Torrent<br />
47
- Cars 2 Tamil Dubbed Movie Download Torlock Torrent<br />
48
- Cars 2 Tamil Dubbed Movie Download ETTV Torrent<br />
49
- Cars 2 Tamil Dubbed Movie Download Bittorrent Torrent<br />
50
- Cars 2 Tamil Dubled Movie Downlod Tamilmv Torrnt (misspelled intentionally)<br />
51
- Crs 2 Tmil Dbbd Mvi Trnt Dwnld (shortened intentionally)<br />
52
- How to download cars 2 tamil dubbed movie torrent (question format)<br />
53
- Best sites to download cars 2 tamil dubbed movie torrent (question format)<br />
54
- Reviews of cars 2 tamil dubbed movie torrent download (review format)</p>
55
- <ul>
56
- <li>The size of the file: The larger the file size, the longer it will take to download. You should choose a file size that fits your device's storage space and your internet speed.</li>
57
- <li>The quality of the file: The higher the quality of the file, the better it will look and sound on your screen. You should choose a quality that suits your device's resolution and your personal preference. For example, you can choose between HD (high definition), SD (standard definition), or CAM (camera) quality.</li>
58
- <li>The format of the file: The format of the file determines how compatible it is with your device and media player. You should choose a format that works well with your device and media player. For example, you can choose between MP4 (MPEG-4), MKV (Matroska), AVI (Audio Video Interleave), or MOV (QuickTime) format.</li>
59
- <li>The language of the file: The language of the file indicates what language the audio track and subtitles are in. You should choose a file that has Tamil audio track and subtitles if you want to watch Cars 2 in Tamil.</li>
60
- </ul>
61
- <p>You can find these information on the torrent site or on the torrent file itself. You can also compare different torrent files based on their seeders and leechers. Seeders are users who have downloaded the file and are sharing it with others. Leechers are users who are downloading the file but are not sharing it with others. The more seeders and fewer leechers a torrent file has, the faster it will download.</p>
62
- <h3>Use a torrent client to download the movie</h3>
63
- <p>The final step is to use a torrent client to download Cars 2 Tamil dubbed movie using the torrent file you have chosen. A torrent client is a software application that enables you to download files from other users who are sharing them via peer-to-peer (P2P) network. You can use a torrent client to download any type of file, including movies, music, games, books, etc.</p>
64
- <p>To use a torrent client to download Cars 2 Tamil dubbed movie, you should follow these steps:</p>
65
- <ol>
66
- <li>Download and install a reliable torrent client on your device. Some examples of popular torrent clients are <b>uTorrent</b>, <b>BitTorrent</b>, <b>Vuze</b>, <b>qBittorrent</b>, etc.</li>
67
- <li>Open the torrent client and add the torrent file you have chosen for Cars 2 Tamil dubbed movie. You can do this by clicking on File > Add Torrent or by dragging and dropping the file into the client.</li>
68
- <li>Select a destination folder where you want to save Cars 2 Tamil dubbed movie on your device.</li>
69
- <li>Start downloading Cars 2 Tamil dubbed movie by clicking on Start or Play button on your client.</li>
70
- <li>Wait until the download is complete. The duration of the download depends on several factors such as your internet speed, your device's performance, your client's settings, etc.</li>
71
- <li>Once the download is complete, you can open Cars 2 Tamil dubbed movie using your media player or transfer it to another device if you want.</li>
72
- </ol>
73
- <h2>Benefits of downloading Cars 2 Tamil dubbed movie torrent</h2>
74
- <p>Downloading Cars 2 Tamil dubbed movie torrent has several benefits that make it an attractive option for many fans of this film. Some of these benefits are:</p>
75
- <h3>Enjoying this film in your native language</h3>
76
- and customer support. Some examples of good VPN services are <b>NordVPN</b>, <b>ExpressVPN</b>, <b>Surfshark</b>, etc.</p>
77
- <h3>Scan the torrent file before downloading</h3>
78
- <p>Another way to avoid the risks of downloading Cars 2 Tamil dubbed movie torrent is to scan the torrent file before downloading. You can use an antivirus software or an online scanner to check the torrent file for any malware or viruses. You can also use a file analyzer or a metadata extractor to check the torrent file for any quality or format issues. By scanning the torrent file before downloading, you can prevent any unwanted or harmful files from entering your device.</p>
79
- <h3>Check the comments and ratings of the torrent file</h3>
80
- <p>A third way to avoid the risks of downloading Cars 2 Tamil dubbed movie torrent is to check the comments and ratings of the torrent file. You can read the feedback and reviews of other users who have downloaded Cars 2 Tamil dubbed movie torrent from the same site or file. You can also look at the number of seeders and leechers, the date of upload, and the size and quality of the file. By checking the comments and ratings of the torrent file, you can verify its authenticity and reliability.</p>
81
- <h2>Conclusion</h2>
82
- <p>Cars 2 Tamil dubbed movie torrent download is a popular option for many fans of this film who want to watch it in their native language. Downloading Cars 2 Tamil dubbed movie torrent has many benefits, such as enjoying this film in Tamil, saving money and time, and watching this film offline and sharing it with others. However, downloading Cars 2 Tamil dubbed movie torrent also has some risks, such as legal issues and copyright infringement, malware and viruses, and low quality and fake files. To avoid these risks, you should use a VPN service, scan the torrent file before downloading, and check the comments and ratings of the torrent file.</p>
83
- <p>We hope this article has helped you understand everything you need to know about Cars 2 Tamil dubbed movie torrent download. If you have any questions or suggestions, please feel free to leave a comment below. Happy watching!</p>
84
- <h2>FAQs</h2>
85
- <p>Here are some frequently asked questions about Cars 2 Tamil dubbed movie torrent download:</p>
86
- <h3>Q1: What is Cars 2 about?</h3>
87
- <p>A1: Cars 2 is a 2011 animated comedy film that follows the adventures of Lightning McQueen, a race car, and his best friend Mater, a tow truck, as they travel around the world for the World Grand Prix. Along the way, they get involved in a spy mission to stop a group of evil cars from sabotaging the race.</p>
88
- <h3>Q2: Is Cars 2 available in other languages?</h3>
89
- <p>A2: Yes, Cars 2 is available in many languages, including English, Spanish, French, German, Italian, Japanese, Korean, Mandarin Chinese, Indonesian, Thai, etc. You can find Cars 2 dubbed or subtitled in these languages on various platforms.</p>
90
- <h3>Q3: What are some of the best torrent sites for Cars 2 Tamil dubbed movie?</h3>
91
- <p>A3: Some of the best torrent sites for Cars 2 Tamil dubbed movie are <b>archive.org</b>, <b>wizardly-torvalds-1bdd26.netlify.app</b>, and <b>isaiminiweb.com</b>. These sites offer high-quality and authentic files that are safe and easy to download.</p>
92
- <h3>Q4: What are some of the best torrent clients for Cars 2 Tamil dubbed movie?</h3>
93
- <p>A4: Some of the best torrent clients for Cars 2 Tamil dubbed movie are <b>uTorrent</b>, <b>BitTorrent</b>, <b>Vuze</b>, <b>qBittorrent</b>, etc. These clients are user-friendly and efficient in downloading files from other users via P2P network.</p>
94
- <h3>Q5: How long does it take to download Cars 2 Tamil dubbed movie torrent?</h3>
95
- the file size and quality, the number of seeders and leechers, etc. On average, it may take from a few minutes to a few hours to download Cars 2 Tamil dubbed movie torrent.</p>
96
- </p> 0a6ba089eb<br />
97
- <br />
98
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Crack House A Definition and Explanation of the Legal Risks.md DELETED
@@ -1,22 +0,0 @@
1
-
2
- <h1>What is a Crack House and Why is it Illegal?</h1>
3
- <p>A crack house is a term used to describe a building that is dedicated to the production, sale, or use of crack cocaine and other illegal drugs. Crack cocaine is a highly addictive and potent form of cocaine that is smoked from a pipe. Crack houses are usually located in abandoned or neglected properties, such as houses, apartments, or shacks, where drug dealers and users can operate with minimal interference from law enforcement or neighbors.</p>
4
- <h2>what is crack house</h2><br /><p><b><b>Download</b> &#9999; <a href="https://byltly.com/2uKzzO">https://byltly.com/2uKzzO</a></b></p><br /><br />
5
- <h2>What are the characteristics of a crack house?</h2>
6
- <p>A crack house is typically characterized by uncleanliness, risky sexual behavior, and violence. Some of the common features of a crack house are:</p>
7
- <ul>
8
- <li>Overflowing toilets, spoiled food, stained walls, peeling wallpaper, and dirty or damaged floors.</li>
9
- <li>Trash and items used to make and smoke crack, such as baking soda, glass pipes, straws, tin foil, filters, hollowed-out light bulbs, and aluminum cans.</li>
10
- <li>Sexual activity among multiple partners without protection. Some people who are addicted to crack may exchange sex for money or drugs. Some crack houses may also function as brothels (houses of prostitution).</li>
11
- <li>Gun violence and physical fights among buyers, sellers, users, and guards. Some crack houses may have armed guards who use violence to keep unwanted people out or to resolve conflicts. Some people who run crack houses may also use violence to discipline their workers.</li>
12
- </ul>
13
- <h2>What are the legal consequences of a crack house?</h2>
14
- <p>A crack house is illegal under federal and state laws that prohibit the manufacture, distribution, or use of controlled substances. In 1986, the U.S. Congress enacted a federal drug policy known as the "crack house statute" (21 U.S.C. S856), which makes it illegal to "knowingly open, lease, rent, use, or maintain any place, whether permanently or temporarily, for the purpose of manufacturing, distributing, or using any controlled substance." </p>
15
- <p>This statute allows law enforcement to close down and seize any property that is used as a crack house and to charge anyone who enters or operates a crack house with a felony offense. The penalty for violating the crack house statute can range from 20 years to life imprisonment and up to $2 million in fines.</p>
16
- <p></p>
17
- <p>In addition to the federal law, many states have their own laws that target crack houses and other drug houses. For example, in 2003, the U.S. Congress passed the Illicit Drug Anti-Proliferation Act (also known as the RAVE Act), which expanded the definition of a crack house to include any place that knowingly promotes or facilitates drug use . This law can be used to shut down raves, nightclubs, concerts, or other events where drugs are prevalent.</p>
18
- <h2>Conclusion</h2>
19
- <p>A crack house is a dangerous and illegal place where people make, sell, or use crack cocaine and other drugs. A crack house can pose serious health and safety risks to its occupants and neighbors. A crack house can also result in severe legal consequences for anyone who is involved with it. Therefore, it is advisable to avoid entering or operating a crack house at all costs.</p>
20
- <p>We hope this article has helped you understand what a crack house is and why it is illegal. If you have any questions or suggestions, feel free to leave a comment below.</p> ddb901b051<br />
21
- <br />
22
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Droidkit Is It Safe [Extra Quality].md DELETED
@@ -1,42 +0,0 @@
1
-
2
- ```html
3
- <h1>DroidKit: Is It Safe to Use for Android Data Recovery and Repair?</h1>
4
- <p>If you have ever lost or deleted important data on your Android device, or encountered system issues that prevent you from using your device normally, you may have searched for a solution online and come across DroidKit. DroidKit is a software that claims to help you recover and repair your Android data and system in various scenarios. But is it safe to use? In this article, we will review DroidKit and its features, and answer some common questions about its safety and reliability.</p>
5
- <h2>droidkit is it safe</h2><br /><p><b><b>Download File</b> >>> <a href="https://byltly.com/2uKvs4">https://byltly.com/2uKvs4</a></b></p><br /><br />
6
- <h2>What is DroidKit?</h2>
7
- <p>DroidKit is a software developed by iMobie, a company that specializes in data management and recovery solutions for iOS and Android devices. DroidKit is designed to help Android users recover and repair their data and system in various situations, such as:</p>
8
- <ul>
9
- <li>Accidental deletion of photos, videos, contacts, messages, etc.</li>
10
- <li>Factory reset or formatting of the device.</li>
11
- <li>System crash, boot loop, black screen, etc.</li>
12
- <li>Rooting failure or rooting removal.</li>
13
- <li>Screen lock or FRP lock.</li>
14
- <li>Device damage or loss.</li>
15
- </ul>
16
- <p>DroidKit claims to offer the following features to help users solve these problems:</p>
17
- <ul>
18
- <li>Data recovery from device, SD card, or Google account.</li>
19
- <li>Data extraction from broken or locked device.</li>
20
- <li>System repair without data loss.</li>
21
- <li>Screen unlock and FRP bypass.</li>
22
- <li>Data eraser and device optimizer.</li>
23
- </ul>
24
- <h2>Is DroidKit Safe to Use?</h2>
25
- <p>According to the official website of iMobie, DroidKit is safe to use for Android data recovery and repair. The website states that DroidKit does not contain any malware or virus, and that it does not collect or leak any personal information from the users. The website also states that DroidKit uses advanced encryption technology to protect the data transmission between the device and the computer, and that it does not modify or overwrite any original data on the device during the recovery or repair process.</p>
26
- <p>However, some users may still have some concerns about the safety of DroidKit, such as:</p>
27
- <p></p>
28
- <ul>
29
- <li>Will DroidKit void the warranty of the device?</li>
30
- <li>Will DroidKit root the device without permission?</li>
31
- <li>Will DroidKit cause any damage to the device?</li>
32
- </ul>
33
- <p>To answer these questions, we have done some research and testing on DroidKit and its features. Here are our findings:</p>
34
- <h3>Will DroidKit void the warranty of the device?</h3>
35
- <p>The answer is: it depends on the feature you use. Some features of DroidKit require rooting the device in order to access the data or system files. Rooting is a process that grants full access to the device's operating system, but it also voids the warranty of most manufacturers. Therefore, if you use these features of DroidKit, such as data extraction from broken device, screen unlock, FRP bypass, or data eraser, you may lose the warranty of your device.</p>
36
- <p>However, some features of DroidKit do not require rooting the device, such as data recovery from device, SD card, or Google account, or system repair. These features do not affect the warranty of your device. Therefore, if you use these features of DroidKit, you can still keep the warranty of your device.</p>
37
- <h3>Will DroidKit root the device without permission?</h3>
38
- <p>The answer is: no. DroidKit will not root your device without your permission. If you use a feature that requires rooting the device, DroidKit will ask for your confirmation before proceeding. You can choose to accept or decline the rooting request. If you decline, DroidKit will not root your device, but it may also fail to perform the feature you want. If you accept, DroidKit will root your device temporarily and remove the root after completing the feature. However, you should be aware that rooting may still cause some risks to your device, such as data loss, system instability, or security vulnerability.</p>
39
- <h3>Will DroidKit cause any damage to the device?</h3>
40
- <p>The answer is: unlikely. DroidKit is designed to help users recover and repair their Android data and system without causing any damage to their devices. However</p> ddb901b051<br />
41
- <br />
42
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Autodesk AutoCAD 2018.0.2 Final (x86 X64) Keygen ((BETTER)) Utorrent.md DELETED
@@ -1,11 +0,0 @@
1
-
2
- <p>für alle im sendedienstverfolgen. it includes all the latest features of autocad. autodesk autocad 2017 full crack torrent 2017 is an advanced software which helps the designers to create building. autodesk autocad 2018 (x86/x64) + keygen.kadence audio visual. imec. autocad 2018.0.2 final (x86/x64) + keygen. pdf download. </p>
3
- <p>when you download this patch you will get autodesk autocad 2018.0.2 final (x86/x64). this is latest version of autodesk autocad 2018. autodesk autocad 2017 full torrent 2017. i have known pavan for the last 2 years through various different activities at the. </p>
4
- <h2>Autodesk AutoCAD 2018.0.2 Final (x86 x64) Keygen utorrent</h2><br /><p><b><b>Download Zip</b> &#8230; <a href="https://imgfil.com/2uy1Ih">https://imgfil.com/2uy1Ih</a></b></p><br /><br />
5
- <p>when you download this patch you will get autodesk autocad 2018.0.2 final (x86/x64). this is latest version of autodesk autocad 2018. <br/> . autodesk autocad 2018 final. autocad 2018 final (x86/x64) + keygen torrent. </p>
6
- <p>when you download this patch you will get autodesk autocad 2018.0.2 final (x86/x64). this is latest version of autodesk autocad 2018. autodesk autocad 2018 final (x86/x64) + keygen. autodesk autocad 2018.2 final (x86/x64) + keygen. </p>
7
- <p>knowledge: autodesk inventor, autodesk autocad, fusion 360. cs 5.5 patch file for mac (10.8). autocad, autodesk inventor, autocad, autocad 2018. autocad 2018 free download for mac is an.. [url= autocad 2020 crack + torrent[/url] <p>autocad pro 2020 crack is here. autocad pro 20 torrent download. autocad-2020.12 crack keygen full free download.12 crack. </p>
8
- <p>diagnose and repair your computer with this desktop repair software. autodesk autocad 2018: license key crack, keygen, activator - the skilled factory. download autodesk autocad 2018 full version with crack - the skilled factory. autodesk autocad 2018 keygen. use the autodesk autocad 2018 keygen. both autocad 2018 and autocad lt 2018 have been updated to version 2018. this will be the final autocad lt 2018 version. autocad lt 2018 keygen. buy a new pc or laptop and need autocad lt 2018. autodesk autocad lt 2018 keygen. </p>
9
- <p></p> 899543212b<br />
10
- <br />
11
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/CValley FilterIt 463 For Adobe Illustrator CSCC 2015 CORE KeyGen 11 The Ultimate Plugin for Vector Graphics.md DELETED
@@ -1,6 +0,0 @@
1
- <h2>CValley FilterIt 463 For Adobe Illustrator CSCC 2015 CORE KeyGen 11</h2><br /><p><b><b>Download File</b> ->>> <a href="https://imgfil.com/2uxWX5">https://imgfil.com/2uxWX5</a></b></p><br /><br />
2
- <br />
3
- aaccfb2cb3<br />
4
- <br />
5
- <br />
6
- <p></p>
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Download Autodesk Advance Steel 2019 Free With Activation.md DELETED
@@ -1,8 +0,0 @@
1
-
2
- <p>the autodesk advance steel 2019 software is developed with the concepts of the revit 2019 software. the software is used for the structural steel components, structural steel drafting and architectural detailing. it is used for the architectural steel design, structural steel design and steel components.</p>
3
- <p>the 3d modeling and detailing of steel structures are done with inventor. however, its more geared toward mechanical, sheet metal, and product design. its used for structural fabrication, bill of materials, skid drawings, and auto-creation of fabrication/skid drawing. advance steel is the best choice if you are going to do significant amounts of steel detailing. advance steel is a specialist application for steel fabrication that conforms to all-steel standards around the globe. the application will generate detailed fabrication drawings within minutes. this means that a project which normally takes six weeks with inventor can be completed in six days using advance steel. inventor and advance steel have different workflows, even though they share the same tasks.</p>
4
- <h2>Download Autodesk Advance Steel 2019 Free with Activation</h2><br /><p><b><b>Download File</b> &#10031; <a href="https://imgfil.com/2uxXW6">https://imgfil.com/2uxXW6</a></b></p><br /><br />
5
- <p>autodesk provides download and install instructions both for individuals and for administrators. individuals should sign into their autodesk account or education site. find your product and click view downloads. select the version, platform, and language and then select a download method. for more information, visit the autodesk knowledge network.</p>
6
- <p>elegant, intuitive, and easy-to-use, the latest release of autodesk advance steel (as) is an excellent tool for steel detailing. when it comes to steel detailing, steel is an opaque material. this means that it is difficult to visualize the shape of the model until it is complete. the process of building and detailing steel models can be complex and time-consuming. as helps you to speed up this process by offering a comprehensive, integrated solution for steel detailing.</p> 899543212b<br />
7
- <br />
8
- <br />
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Download Catia V6 Crack.md DELETED
@@ -1,6 +0,0 @@
1
- <h2>download catia v6 crack</h2><br /><p><b><b>Download</b> &#9734;&#9734;&#9734; <a href="https://imgfil.com/2uxXhK">https://imgfil.com/2uxXhK</a></b></p><br /><br />
2
- <br />
3
- To start using PROS 3 on Windows, simply download the latest ... (CATIA v5 software free download full version with crack 64 bit) V6 full crack ... 4d29de3e1b<br />
4
- <br />
5
- <br />
6
- <p></p>
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/CarX Rally The Most Realistic and Exciting Rally Game for Android.md DELETED
@@ -1,103 +0,0 @@
1
- <br />
2
- <h1>CarX Rally APKAward: A Realistic and Exciting Rally Racing Game for Android</h1>
3
- <p>If you are a fan of rally racing games, you might want to check out CarX Rally APKAward, a new and thrilling game for Android devices. CarX Rally APKAward is a game that lets you experience the adrenaline rush of driving a rally car on different terrains and tracks. You can choose from a wide range of cars, customize them as you wish, and compete in various championships and tournaments. In this article, we will tell you more about CarX Rally APKAward, how to download and install it from APKAward, why you should play it, and how to play it like a pro.</p>
4
- <h2>carx rally apkaward</h2><br /><p><b><b>Download</b> &#10031; <a href="https://urlin.us/2uT1on">https://urlin.us/2uT1on</a></b></p><br /><br />
5
- <h2>What is CarX Rally APKAward?</h2>
6
- <h3>A brief introduction to the game and its features</h3>
7
- <p>CarX Rally APKAward is a rally racing game developed by CarX Technologies, the same company that created the popular CarX Drift Racing series. The game was released in June 2021 and has received positive reviews from players and critics alike. CarX Rally APKAward features:</p>
8
- <ul>
9
- <li>True-to-life physics of a rally racing car. You can choose whether you want to drift or get a full grip on the road.</li>
10
- <li>High-quality graphics and sound effects that create an immersive atmosphere.</li>
11
- <li>A realistic damage system that affects your car's performance and appearance.</li>
12
- <li>A dynamic weather system that changes the conditions of the track.</li>
13
- <li>A replay mode that lets you watch your best moments from different angles.</li>
14
- </ul>
15
- <h3>How to download and install the game from APKAward</h3>
16
- <p>If you want to play CarX Rally APKAward on your Android device, you can download it from APKAward, a website that offers free and safe downloads of various Android games and apps. To download and install the game from APKAward, follow these steps:</p>
17
- <ol>
18
- <li>Go to <a href="(^1^)">APKAward.com</a> and search for CarX Rally.</li>
19
- <li>Select the game from the results and click on the download button.</li>
20
- <li>Wait for the download to finish and then open the downloaded file.</li>
21
- <li>Allow the installation of unknown sources if prompted by your device.</li>
22
- <li>Follow the instructions on the screen to complete the installation.</li>
23
- <li>Launch the game and enjoy!</li>
24
- </ol>
25
- <h2>Why You Should Play CarX Rally APKAward?</h2>
26
- <h3>The realistic physics and graphics of the game</h3>
27
- <h3>The variety of cars and tracks to choose from</h3>
28
- <p>Another reason why you should play CarX Rally APKAward is because of the variety of cars and tracks to choose from. The game offers over 50 rally cars from different manufacturers, such as Subaru, Mitsubishi, Ford, Toyota, etc. You can also customize your car with different colors, stickers, wheels, and parts. The game has over 100 tracks from different countries and regions, such as Japan, Norway, Russia, USA, etc. You can race on different terrains and weather conditions, such as forests, deserts, mountains, rain, snow, etc.</p>
29
- <h3>The championships and tournaments to compete in</h3>
30
- <p>The third reason why you should play CarX Rally APKAward is because of the championships and tournaments to compete in. The game has a career mode where you can start as a rookie and progress through different levels of difficulty and prestige. You can participate in various championships and tournaments, such as the World Rally Championship, the European Rally Championship, the Asia-Pacific Rally Championship, etc. You can also challenge other players online in multiplayer mode and show off your skills and rankings.</p>
31
- <h2>How to Play CarX Rally APKAward?</h2>
32
- <h3>The basic controls and gameplay mechanics</h3>
33
- <p>If you are new to CarX Rally APKAward, you might want to know how to play it. The game has a simple and intuitive control system that lets you steer your car with the tilt or touch of your device. You can also use the buttons on the screen to accelerate, brake, handbrake, and change gears. The game has a realistic gameplay mechanic that requires you to balance your speed and traction on different surfaces. You also need to pay attention to the co-driver's instructions and the road signs that indicate the upcoming turns and hazards.</p>
34
- <h3>The tips and tricks to master the game</h3>
35
- <p>If you want to master CarX Rally APKAward, you might want to follow these tips and tricks:</p>
36
- <ul>
37
- <li>Choose the right car for each track. Different cars have different strengths and weaknesses on different terrains and weather conditions. For example, a four-wheel drive car might perform better on snow than a rear-wheel drive car.</li>
38
- <li>Customize your car according to your preferences. You can adjust various parameters of your car, such as the suspension, the brakes, the differential, the gearbox, etc. You can also tune your car for more power or more stability.</li>
39
- <li>Practice your driving skills on different tracks. You can use the free ride mode or the training mode to practice your driving skills on different tracks. You can also watch the replay mode to learn from your mistakes and improve your performance.</li>
40
- </ul>
41
- <h3>The customization and tuning options for your car</h3>
42
- <p>One of the most fun aspects of CarX Rally APKAward is the customization and tuning options for your car. You can make your car look unique and stylish by changing its color, adding stickers, changing wheels, etc. You can also make your car perform better by upgrading its parts, such as the engine, the turbo, the exhaust, etc. You can use coins and gems to buy new cars and parts or unlock them by completing achievements and missions.</p>
43
- <h2>Conclusion</h2>
44
- <h3>A summary of the main points and a call to action</h3>
45
- <p>CarX Rally APKAward is a rally racing game that offers a realistic and exciting experience for Android users. You can download it from APKAward.com for free and enjoy its features, such as:</p>
46
- <p>carx rally android game free download<br />
47
- carx rally racing car physics and championships<br />
48
- carx rally muscle cars and off-road tracks<br />
49
- carx rally vehicle tuning and customization<br />
50
- carx rally apkcombo download and install<br />
51
- carx rally 22000 latest version update<br />
52
- carx rally 35 tournaments for regular or muscle cars<br />
53
- carx rally true-to-life physics of a rally racing car<br />
54
- carx rally wide variety of cars to pick from<br />
55
- carx rally drift or get a full grip on the road<br />
56
- carx rally win all stages of the rally championship<br />
57
- carx rally become a legend of rally racing<br />
58
- carx rally take your favorite car anywhere you want<br />
59
- carx rally enjoy going off-road and exploring<br />
60
- carx rally go from point A to point B but don’t miss any check points<br />
61
- carx rally be brave enough to get to the end of the race<br />
62
- carx rally game features and description<br />
63
- carx rally old versions and xapk files<br />
64
- carx rally compatible with android 6.0 and above<br />
65
- carx rally developed by CarX Technologies, LLC<br />
66
- carx rally racing category and google play ID<br />
67
- carx rally 10,000,000+ installs and positive reviews<br />
68
- carx rally apk size and download speed<br />
69
- carx rally game screenshots and videos<br />
70
- carx rally trending searches and related games</p>
71
- <ul>
72
- <li>True-to-life physics and graphics of a rally racing car.</li>
73
- <li>A variety of cars and tracks to choose from.</li>
74
- <li>A career mode and a multiplayer mode to compete in championships and tournaments.</li>
75
- <li>A customization and tuning option for your car.</li>
76
- </ul>
77
- <p>If you are looking for a rally racing game that will challenge your skills and thrill your senses, you should definitely try CarX Rally APKAward. Download it now and start your rally adventure!</p>
78
- <h2>FAQs</h2>
79
- <h3>What are the system requirements for CarX Rally APKAward?</h3>
80
- <p>The system requirements for CarX Rally APKAward are:</p>
81
- <table>
82
- <tr><td>OS</td><td>Android 5.0 or higher</td></tr>
83
- <tr><td>RAM</td><td>2 GB or more</td></tr>
84
- <tr><td>Storage</td><td>1 GB or more</td></tr>
85
- <tr><td>Internet</td><td>Required for online features</td></tr>
86
- </table>
87
- <h3>Is CarX Rally APKAward free to play?</h3>
88
- <p>Yes, CarX Rally APKAward is free to play. However, the game contains in-app purchases that allow you to buy coins and gems, which are the in-game currencies. You can use coins and gems to buy new cars, parts, stickers, etc. You can also earn coins and gems by completing achievements, missions, and races.</p>
89
- <h3>How can I get more coins and gems in CarX Rally APKAward?</h3>
90
- <p>There are several ways to get more coins and gems in CarX Rally APKAward. Some of them are:</p>
91
- <ul>
92
- <li>Completing achievements and missions. You can check your progress and rewards in the menu.</li>
93
- <li>Winning races and championships. You can earn more coins and gems depending on your rank and performance.</li>
94
- <li>Watching ads. You can watch ads to get free coins and gems every day.</li>
95
- <li>Using promo codes. You can enter promo codes in the settings to get free coins and gems.</li>
96
- <li>Buying them with real money. You can buy coins and gems with real money through in-app purchases.</li>
97
- </ul>
98
- <h3>Can I play CarX Rally APKAward offline?</h3>
99
- <p>Yes, you can play CarX Rally APKAward offline. However, you will not be able to access some of the online features, such as multiplayer mode, online leaderboards, online tournaments, etc. You will also not be able to save your progress or sync your data across devices.</p>
100
- <h3>Can I play CarX Rally APKAward with friends?</h3>
101
- <p>Yes, you can play CarX Rally APKAward with friends. You can invite your friends to join your lobby or join their lobby in multiplayer mode. You can also chat with your friends and other players in the game. You can also challenge your friends and other players to duels and races.</p> 197e85843d<br />
102
- <br />
103
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Animal Revolt Battle Simulator and Fight with Hybrid Animals for Free.md DELETED
@@ -1,110 +0,0 @@
1
- <br />
2
- <h1>How to Download Animal Revolt Battle Simulator for Free</h1>
3
- <p>Animal Revolt Battle Simulator is a popular game that lets you create and watch epic battles between different types of beasts. But what if you want to play this game without paying anything? Is it possible to download Animal Revolt Battle Simulator for free? The answer is yes, and in this article, we will show you how to do it. We will also tell you what Animal Revolt Battle Simulator is, why you should download it for free, and some tips and tricks to enjoy the game.</p>
4
- <h2>What is Animal Revolt Battle Simulator?</h2>
5
- <p>Animal Revolt Battle Simulator is a physics-based sandbox game that was released in 2022 by VDimension. It is available on Steam, Google Play, and Nintendo Switch. In this game, you can:</p>
6
- <h2>download animal revolt battle simulator free</h2><br /><p><b><b>DOWNLOAD</b> &mdash;&mdash;&mdash;&mdash;&mdash; <a href="https://urlin.us/2uT0uh">https://urlin.us/2uT0uh</a></b></p><br /><br />
7
- <h3>A physics-based sandbox game</h3>
8
- <p>Build your own maps or choose from a selection of ready-made ones. Place up to seven opposing armies made of different types of beasts and watch them tear each other apart in an epic battle. As the creatures fight, you can see the limbs bending, necks twisting, and bodies flying around everywhere. You can also join the fight yourself in the first-person mode and blow the enemy away with some powerful guns.</p>
9
- <h3>A variety of creatures and modes</h3>
10
- <p>You will have a huge selection of more than 70 creatures to pick from and new ones are added every two weeks. You can choose from ancient dinosaurs, dragons, aquatic animals, jungle animals, and more. You can also create your own custom monsters by combining different body parts and weapons. You can test your tactical and strategic skills in the campaign mode, where you have to pick the right beasts, place them in the right position, and command them to defeat the enemy. You can also play in the sandbox mode, where you can experiment with different scenarios and settings.</p>
11
- <h3>A fun and creative experience</h3>
12
- <p>Animal Revolt Battle Simulator is not only a game, but also a tool for creativity. You can download and upload custom monsters, maps, and buildings created by other players from the Steam Workshop. You can also share your own creations with the community. You can make your battles as realistic or as crazy as you want. You can put laser guns on your T-rex squad, make a tiny dino become a dinosaur king, or add wings to a shark. The possibilities are endless.</p>
13
- <h2>Why Download Animal Revolt Battle Simulator for Free?</h2>
14
- <p>Animal Revolt Battle Simulator is a great game that offers hours of fun and entertainment. But why should you download it for free instead of buying it? Here are some reasons:</p>
15
- <h3>Save money and enjoy the game</h3>
16
- <p>The most obvious reason is that you can save money by downloading Animal Revolt Battle Simulator for free. The game costs $14.99 on Steam, which may not be affordable for everyone. By downloading it for free, you can enjoy the game without spending anything.</p>
17
- <h3>Access new updates and features</h3>
18
- <p>Another reason is that you can access new updates and features that are added to the game regularly. The developers of Animal Revolt Battle Simulator are constantly working on improving the game and adding new content. By downloading it for free, you can get the latest version of the game and enjoy the new features and content that are added every two weeks. You can also update the game manually or automatically whenever there is a new update available.</p>
19
- <p>How to download animal revolt battle simulator on PC<br />
20
- Animal revolt battle simulator free download for Windows 10<br />
21
- Animal revolt battle simulator PC game download<br />
22
- Animal revolt battle simulator apk download for Android<br />
23
- Animal revolt battle simulator mod apk download<br />
24
- Animal revolt battle simulator cheats and hacks<br />
25
- Animal revolt battle simulator tips and tricks<br />
26
- Animal revolt battle simulator gameplay and review<br />
27
- Animal revolt battle simulator best creatures and strategies<br />
28
- Animal revolt battle simulator online multiplayer mode<br />
29
- Animal revolt battle simulator sandbox mode and workshop<br />
30
- Animal revolt battle simulator latest update and patch notes<br />
31
- Animal revolt battle simulator system requirements and compatibility<br />
32
- Animal revolt battle simulator alternatives and similar games<br />
33
- Animal revolt battle simulator official website and social media<br />
34
- Animal revolt battle simulator free steam key giveaway<br />
35
- Animal revolt battle simulator free trial and demo version<br />
36
- Animal revolt battle simulator offline mode and data usage<br />
37
- Animal revolt battle simulator bugs and glitches fix<br />
38
- Animal revolt battle simulator customer support and feedback<br />
39
- Animal revolt battle simulator wiki and guide<br />
40
- Animal revolt battle simulator dinosaurs and dragons<br />
41
- Animal revolt battle simulator sharks and mosasaurus<br />
42
- Animal revolt battle simulator deer and wolf<br />
43
- Animal revolt battle simulator hybrid animals and monsters<br />
44
- Animal revolt battle simulator godzilla and t-rex<br />
45
- Animal revolt battle simulator laser guns and weapons<br />
46
- Animal revolt battle simulator ragdoll and physics effects<br />
47
- Animal revolt battle simulator clans and empire building<br />
48
- Animal revolt battle simulator net energy gain and fusion reactor<br />
49
- Animal revolt battle simulator campaign mode and levels<br />
50
- Animal revolt battle simulator unit creator and upgrade system<br />
51
- Animal revolt battle simulator epic battles and simulations<br />
52
- Animal revolt battle simulator cool graphics and sound effects<br />
53
- Animal revolt battle simulator fun facts and trivia<br />
54
- How to play animal revolt battle simulator on Mac<br />
55
- How to play animal revolt battle simulator on Linux<br />
56
- How to play animal revolt battle simulator on Chromebook<br />
57
- How to play animal revolt battle simulator on iOS<br />
58
- How to play animal revolt battle simulator on Xbox One<br />
59
- How to play animal revolt battle simulator on PS4<br />
60
- How to play animal revolt battle simulator on Switch<br />
61
- How to play animal revolt battle simulator with friends<br />
62
- How to play animal revolt battle simulator with keyboard and mouse<br />
63
- How to play animal revolt battle simulator with controller or gamepad<br />
64
- How to play animal revolt battle simulator with VR headset or glasses<br />
65
- How to play animal revolt battle simulator with voice chat or microphone<br />
66
- How to play animal revolt battle simulator with BlueStacks or MuMu Player emulator</p>
67
- <h3>Support the developers and the community</h3>
68
- <p>The last reason is that you can support the developers and the community of Animal Revolt Battle Simulator by downloading it for free. The developers are a small team of indie game makers who have put a lot of effort and passion into creating this game. By downloading it for free, you can show your appreciation and feedback to them. You can also join the community of Animal Revolt Battle Simulator players and share your ideas, suggestions, and creations with them. You can also help them spread the word about this amazing game and attract more players.</p>
69
- <h2>How to Download Animal Revolt Battle Simulator for Free?</h2>
70
- <p>Now that you know what Animal Revolt Battle Simulator is and why you should download it for free, let's see how you can do it. There are two main options that you can use to download Animal Revolt Battle Simulator for free: using a free game website or using a free game platform. Let's see how each option works:</p>
71
- <h3>Option 1: Use a free game website</h3>
72
- <p>A free game website is a website that offers free downloads of various games, including Animal Revolt Battle Simulator. These websites usually host the game files on their own servers or on third-party file-sharing platforms. To use this option, you need to follow these steps:</p>
73
- <h4>Step 1: Find a reliable website</h4>
74
- <p>The first step is to find a reliable website that offers free downloads of Animal Revolt Battle Simulator. You can use a search engine like Google or Bing to look for such websites. However, you need to be careful and avoid websites that may contain viruses, malware, or other harmful content. You can check the reputation and reviews of the websites before visiting them. You can also use antivirus software or browser extensions to protect your device from any potential threats.</p>
75
- <h4>Step 2: Download the game file</h4>
76
- <p>The second step is to download the game file from the website. You need to find the download link or button on the website and click on it. You may need to complete some surveys, watch some ads, or enter some captcha codes before you can access the download link. You may also need to choose a server or a mirror link to start the download. The download speed and time may vary depending on your internet connection and the size of the file.</p>
77
- <h4>Step 3: Install and run the game</h4>
78
- <p>The third step is to install and run the game on your device. You need to locate the downloaded file on your device and extract it using a software like WinRAR or 7-Zip. You may need to enter a password if the file is encrypted. You then need to open the extracted folder and find the setup file or the executable file of the game. You need to run the file as an administrator and follow the instructions on the screen to install the game. You may need to agree to some terms and conditions, choose a destination folder, and create a shortcut icon. After installing the game, you can run it from your desktop or start menu and enjoy playing Animal Revolt Battle Simulator for free.</p>
79
- <h3>Option 2: Use a free game platform</h3>
80
- <p>A free game platform is a platform that offers free games or discounts on games, including Animal Revolt Battle Simulator. These platforms usually require you to create an account and install their software on your device. Some examples of such platforms are Steam, Epic Games Store, GOG.com, Humble Bundle, etc. To use this option, you need to follow these steps:</p>
81
- <h4>Step 1: Create an account on the platform</h4>
82
- <p>The first step is to create an account on the platform that offers Animal Revolt Battle Simulator for free or at a discounted price. You need to visit the official website of the platform and click on the sign up or register button. You need to enter your email address, username, password, and other details as required by the platform. You may also need to verify your email address by clicking on a link sent to your inbox.</p>
83
- <h4>Step 2: Claim the game when it is free</h4>
84
- <p>The second step is to claim the game when it is free or at a discounted price on the platform. You need to check the platform regularly for any deals or offers on Animal Revolt Battle Simulator. You may also subscribe to their newsletter or follow their social media accounts to get notified of any promotions or giveaways. When you see that Animal Revolt Battle Simulator is available for free or at a reduced price, you need to click on it and add it to your library or cart.</p>
85
- <h4>Step 3: Download and play the game</ <p>The third step is to download and play the game on your device. You need to install the software of the platform on your device and log in with your account. You need to find Animal Revolt Battle Simulator in your library or cart and click on the download or install button. You may need to choose a location or a drive to save the game file. The download speed and time may vary depending on your internet connection and the size of the file. After downloading the game, you can launch it from the platform or from your desktop and enjoy playing Animal Revolt Battle Simulator for free.</p>
86
- <h2>Conclusion</h2>
87
- <p>Animal Revolt Battle Simulator is a physics-based sandbox game that lets you create and watch epic battles between different types of beasts. It is a fun and creative game that offers a variety of creatures and modes. You can download Animal Revolt Battle Simulator for free by using either a free game website or a free game platform. Both options have their advantages and disadvantages, so you need to choose the one that suits you best. By downloading Animal Revolt Battle Simulator for free, you can save money, access new updates and features, and support the developers and the community.</p>
88
- <h2>FAQs</h2>
89
- <p>Here are some frequently asked questions about Animal Revolt Battle Simulator and how to download it for free:</p>
90
- <h3>Q: Is Animal Revolt Battle Simulator safe to download?</h3>
91
- <p>A: Yes, Animal Revolt Battle Simulator is safe to download as long as you use a reliable website or platform that does not contain any viruses, malware, or other harmful content. You can also use antivirus software or browser extensions to protect your device from any potential threats.</p>
92
- <h3>Q: Is Animal Revolt Battle Simulator legal to download?</h3>
93
- <p>A: Yes, Animal Revolt Battle Simulator is legal to download as long as you do not violate any terms and conditions of the website or platform that offers it for free. You also need to respect the intellectual property rights of the developers and not distribute or sell the game without their permission.</p>
94
- <h3>Q: What are the system requirements for Animal Revolt Battle Simulator?</h3>
95
- <p>A: According to Steam, these are the minimum and recommended system requirements for Animal Revolt Battle Simulator:</p>
96
- <table>
97
- <tr><th>Minimum</th><th>Recommended</th></tr>
98
- <tr><td>OS: Windows 7</td><td>OS: Windows 10</td></tr>
99
- <tr><td>Processor: Intel Core i5-2300 or AMD FX-6300</td><td>Processor: Intel Core i7-4790 or AMD Ryzen 5 1600</td></tr>
100
- <tr><td>Memory: 6 GB RAM</td><td>Memory: 8 GB RAM</td></tr>
101
- <tr><td>Graphics: NVIDIA GeForce GTX 750 Ti or AMD Radeon R7 260X</td><td>Graphics: NVIDIA GeForce GTX 1060 or AMD Radeon RX 580</td></tr>
102
- <tr><td>DirectX: Version 11</td><td>DirectX: Version 11</td></tr>
103
- <tr><td>Storage: 3 GB available space</td><td>Storage: 3 GB available space</td></tr>
104
- </table>
105
- <h3>Q: How can I get more creatures and maps for Animal Revolt Battle Simulator?</h3>
106
- <p>A: You can get more creatures and maps for Animal Revolt Battle Simulator by downloading and uploading custom ones from the Steam Workshop. You can also create your own custom monsters by combining different body parts and weapons in the game.</p>
107
- <h3>Q: How can I contact the developers of Animal Revolt Battle Simulator?</h3>
108
- <p>A: You can contact the developers of Animal Revolt Battle Simulator by visiting their official website, Facebook page, Twitter account, YouTube channel, or Discord server. You can also leave a comment or a review on Steam or Google Play.</p> 197e85843d<br />
109
- <br />
110
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/CarX Street APK A Realistic and Immersive Racing Game for Android.md DELETED
@@ -1,99 +0,0 @@
1
- <br />
2
- <h1>CarX Street: A Free and Fun Racing Game for Android</h1>
3
- <p>If you are looking for a racing game that will give you a thrill and a challenge, you might want to check out CarX Street. This is a free racing game from CarX Technology that offers realistic physics and graphics, a variety of cars and tracks, and a lot of customization and tuning options. In this article, we will tell you what CarX Street is, how to download it, and how to play it.</p>
4
- <h2>car x street download apkrey</h2><br /><p><b><b>Download Zip</b> &rArr;&rArr;&rArr; <a href="https://jinyurl.com/2uNUd4">https://jinyurl.com/2uNUd4</a></b></p><br /><br />
5
- <h2>What is CarX Street?</h2>
6
- <p>CarX Street is a racing game that lets you experience the adrenaline of street racing. You can choose from different cars, from classic muscle cars to modern sports cars, and customize them to your liking. You can also race on different tracks, from urban streets to desert roads, and compete in different modes, such as sprint, drift, or drag.</p>
7
- <h3>A racing game with realistic physics and graphics</h3>
8
- <p>One of the main features of CarX Street is its realistic physics engine that simulates the behavior of real cars. You can feel the weight, speed, and traction of your car as you drive, as well as the effects of weather, road conditions, and collisions. The game also has stunning graphics that create a immersive atmosphere. You can see the details of your car, the environment, and the other racers.</p>
9
- <h3>A free-to-play game with in-game upgrades</h3>
10
- <p>Another feature of CarX Street is that it is free to play. You can download and play the game without paying anything. However, if you want to unlock more cars, tracks, and upgrades, you can earn them by winning races or by purchasing them with real money. The game also has daily rewards, events, and challenges that give you more opportunities to earn coins and gems.</p>
11
- <p>car x street racing game free download<br />
12
- car x street mod apk unlimited money<br />
13
- car x street android gameplay<br />
14
- car x street open world drift<br />
15
- car x street apk download latest version<br />
16
- car x street online multiplayer<br />
17
- car x street best cars and tuning<br />
18
- car x street cheats and hacks<br />
19
- car x street review and rating<br />
20
- car x street tips and tricks<br />
21
- car x street update and new features<br />
22
- car x street how to install on pc<br />
23
- car x street beta test registration<br />
24
- car x street sunset city map<br />
25
- car x street realistic physics and graphics<br />
26
- car x street custom decals and stickers<br />
27
- car x street soundtrack and music<br />
28
- car x street controller support and settings<br />
29
- car x street comparison with other racing games<br />
30
- car x street official website and social media<br />
31
- car x street system requirements and compatibility<br />
32
- car x street offline mode and data usage<br />
33
- car x street events and challenges<br />
34
- car x street garage and workshop<br />
35
- car x street rewards and achievements<br />
36
- car x street bugs and issues<br />
37
- car x street feedback and suggestions<br />
38
- car x street community and forums<br />
39
- car x street videos and screenshots<br />
40
- car x street news and announcements</p>
41
- <h3>A game with exciting tracks and modes</h3>
42
- <p>The last feature of CarX Street is its variety of tracks and modes. The game has over 20 tracks that are based on real locations around the world. You can race on different terrains, such as asphalt, dirt, or snow, and enjoy different sceneries, such as cityscapes, mountains, or forests. The game also has different modes that test your skills and strategies. You can race in sprint mode, where you have to reach the finish line first; drift mode, where you have to score points by drifting; or drag mode, where you have to shift gears at the right time.</p>
43
- <h2>How to download CarX Street APK?</h2>
44
- <p>If you want to play CarX Street on your Android device, you need to download its APK file. APK stands for Android Package Kit, which is a file format that contains all the elements of an Android app. There are two ways to download CarX Street APK: the official way from Google Play Store or the alternative way from Filehippo.com.</p>
45
- <h3>The official way from Google Play Store</h3>
46
- <p>The official way to download CarX Street APK is from Google Play Store. This is the safest and easiest way to get the app on your device. All you need to do is follow these steps:</p>
47
- <ol>
48
- <li>Open Google Play Store on your device.</li>
49
- <li>Search for "CarX Street" in the search bar.</li>
50
- <li>Select the app from the results and tap on "Install".</li>
51
- <li>Wait for the app to download and install on your device.</li>
52
- <li>Launch the app and enjoy playing.</li>
53
- </ol>
54
- <h3>The alternative way from Filehip <h3>The alternative way from Filehippo.com</h3>
55
- <p>The alternative way to download CarX Street APK is from Filehippo.com. This is a website that offers free downloads of various software and apps. However, this way is not as safe and easy as the official way. You need to be careful of malware, viruses, and fake apps. You also need to enable the installation of apps from unknown sources on your device. To download CarX Street APK from Filehippo.com, follow these steps:</p>
56
- <ol>
57
- <li>Open your browser and go to Filehippo.com.</li>
58
- <li>Search for "CarX Street" in the search bar.</li>
59
- <li>Select the app from the results and tap on "Download".</li>
60
- <li>Wait for the APK file to download on your device.</li>
61
- <li>Go to your device settings and enable the installation of apps from unknown sources.</li>
62
- <li>Locate the APK file on your device and tap on it.</li>
63
- <li>Follow the instructions to install the app on your device.</li>
64
- <li>Launch the app and enjoy playing.</li>
65
- </ol>
66
- <h3>The advantages and disadvantages of each way</h3>
67
- <p>Both ways have their pros and cons. The official way from Google Play Store is more secure, reliable, and convenient. You can be sure that the app is authentic, updated, and compatible with your device. You also don't need to change any settings or risk any malware. However, the official way may not work if you have a low storage space, a slow internet connection, or a restricted access to Google Play Store.</p>
68
- <p>The alternative way from Filehippo.com is more flexible, fast, and accessible. You can download the app even if you don't have enough space, a good connection, or a Google account. You can also get the app before it is officially released or if it is not available in your region. However, the alternative way may expose you to malware, viruses, and fake apps. You also need to change your settings and trust an unknown source.</p>
69
- <h2>How to play CarX Street?</h2>
70
- <p>Once you have downloaded and installed CarX Street on your device, you can start playing it. The game is easy to learn but hard to master. You need to know the basic controls and features, the car customization and tuning options, and the tips and tricks to win races.</p>
71
- <h3>The basic controls and features</h3>
72
- <p>The basic controls of CarX Street are simple and intuitive. You can use the buttons on the screen or tilt your device to steer your car. You can also use the pedals to accelerate or brake. You can switch between different camera views by tapping on the camera icon. You can pause the game by tapping on the menu icon.</p>
73
- <p>The game also has some features that make it more fun and realistic. You can use the nitro boost by tapping on the nitro icon. This will give you a temporary speed boost that can help you overtake your opponents or escape from the police. You can also use the handbrake by tapping on the handbrake icon. This will help you drift around corners or perform other maneuvers.</p>
74
- <h3>The car customization and tuning options</h3>
75
- <p>One of the best parts of CarX Street is that you can customize and tune your car to your liking. You can access these options by tapping on the garage icon in the main menu. You can change the appearance of your car by choosing different colors, decals, wheels, spoilers, bumpers, hoods, and more. You can also improve the performance of your car by upgrading its engine, transmission, suspension, brakes, tires, and more.</p>
76
- <p>You can also tune your car by adjusting its parameters, such as power, torque, weight distribution, steering angle, camber angle, tire pressure, and more. Tuning your car can help you optimize its handling and speed for different tracks and modes. However, tuning your car requires some knowledge and experimentation. You need to find the right balance between stability and agility for your car.</p>
77
- <h3>The tips and tricks to win races</h3>
78
- <p>To win races in CarX Street, you need more than just a fast car. You also need some skills and strategies. Here are some tips and tricks that can help you win races:</p>
79
- <ul>
80
- <li>Choose a car that suits your style and preference. Different cars have different strengths and weaknesses. Some cars are faster but harder to control; some cars are easier to handle but slower; some cars are good for drifting but bad for sprinting; etc. Choose a car that matches your driving style and preference.</li>
81
- <li>Customize and tune your car according to the track and mode. Different tracks and modes require different setups for your car. For example, if you are racing on a dirt track, you might want to lower your tire pressure and increase your suspension stiffness; if you are racing in drift mode, you might want to increase your steering angle and lower your brake force; etc. Customize and tune your car according to the track and mode you are playing.</li>
82
- <li>Learn the tracks and practice your skills. Each track has its own layout, features, and challenges. You need to learn the tracks and memorize their turns, shortcuts, obstacles, and hazards. You also need to practice your skills, such as steering, braking, drifting, boosting, and shifting. The more you play, the more you will improve your skills and confidence.</li>
83
- <li>Use the nitro boost wisely. The nitro boost is a powerful tool that can give you an edge in races. However, it is also limited and needs to be recharged. You can recharge your nitro by performing drifts, jumps, or near misses. You can use your nitro by tapping on the nitro icon or by double-tapping on the accelerator pedal. You should use your nitro wisely, such as when you need to overtake your opponents, escape from the police, or reach the finish line.</li>
84
- <li>Watch out for the police and other racers. CarX Street is not just a racing game; it is also a chase game. You will encounter the police and other racers who will try to stop you or slow you down. You need to watch out for them and avoid their attacks. You can also fight back by ramming them, blocking them, or using your nitro to outrun them.</li>
85
- </ul>
86
- <h2>Conclusion</h2>
87
- <p>CarX Street is a free and fun racing game for Android that offers realistic physics and graphics, a variety of cars and tracks, and a lot of customization and tuning options. You can download CarX Street APK from Google Play Store or Filehippo.com, depending on your preference and situation. You can also play CarX Street by learning the basic controls and features, customizing and tuning your car, and applying some tips and tricks to win races. If you are a fan of racing games, you should definitely give CarX Street a try.</p>
88
- <h2>FAQs</h2>
89
- <p>Here are some frequently asked questions about CarX Street:</p>
90
- <table>
91
- <tr><td><b>Question</b></td><td><b>Answer</b></td></tr>
92
- <tr><td>Is CarX Street compatible with my device?</td><td>CarX Street requires Android 6.0 or higher and at least 1 GB of RAM to run smoothly. You can check your device specifications in your settings.</td></tr>
93
- <tr><td>How can I save my progress in CarX Street?</td><td>You can save your progress in CarX Street by connecting your game account to your Google Play Games account. You can do this by tapping on the settings icon in the main menu and then tapping on the Google Play Games icon.</td></tr>
94
- <tr><td>How can I get more coins and gems in CarX Street?</td><td>You can get more coins and gems in CarX Street by winning races, completing events and challenges, claiming daily rewards, watching ads, or buying them with real money.</td></tr>
95
- <tr><td>How can I contact the developers of CarX Street?</td><td>You can contact the developers of CarX Street by sending an email to [email protected] or by visiting their website at https://carx-tech.com/.</td></tr>
96
- <tr><td>How can I report a bug or a problem in CarX Street?</td><td>You can report a bug or a problem in CarX Street by tapping on the settings icon in the main menu and then tapping on the feedback icon. You can also send an email to [email protected] with a screenshot or a video of the bug or problem.</td></tr>
97
- </table></p> 401be4b1e0<br />
98
- <br />
99
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Chiskop Askies - The Ultimate Kwaito Mp3 Download.md DELETED
@@ -1,134 +0,0 @@
1
-
2
- <h1>Chiskop Askies Mp3 Download: How to Enjoy the Classic Kwaito Song</h1>
3
- <p>If you are a fan of South African music, you have probably heard of Chiskop, one of the most popular kwaito groups in the country. And if you have heard of Chiskop, you have definitely heard of their hit song Askies, which is considered a classic in the genre. But do you know what the song is about, why it is so popular, and how to download it in mp3 format? In this article, we will answer these questions and more, so that you can enjoy this amazing song anytime, anywhere.</p>
4
- <h2>chiskop askies mp3 download</h2><br /><p><b><b>Download Zip</b> &#8250;&#8250;&#8250; <a href="https://jinyurl.com/2uNRhZ">https://jinyurl.com/2uNRhZ</a></b></p><br /><br />
5
- <h2>Introduction</h2>
6
- <p>Chiskop is a South African kwaito group that was formed in 1996 by four members: Mduduzi Tshabalala, Sibusiso Thanjekwayo, Siphiwe Sibisi, and Gabi Le Roux. Kwaito is a style of music that emerged in South Africa in the 1990s, influenced by house, hip hop, reggae, and African rhythms. It is characterized by slow tempo, catchy melodies, repetitive lyrics, and social commentary. Kwaito became a symbol of post-apartheid youth culture, expressing their hopes, challenges, and identities.</p>
7
- <p>One of Chiskop's most famous songs is Askies, which was released in 2003 as part of their album Sunday. The song is a catchy and upbeat tune that talks about apologizing to a lover for making a mistake. The word askies means sorry in Afrikaans, which is one of the official languages of South Africa. The song became a huge hit in South Africa and beyond, winning several awards and nominations. It also showcased Chiskop's unique blend of kwaito, pop, and jazz.</p>
8
- <p>If you want to listen to this song anytime, anywhere, you might want to download it in mp3 format. Mp3 is a type of digital audio file that compresses sound data without losing much quality. It allows you to store more songs on your device, play them offline, and transfer them easily. However, you need to be careful where you download mp3 files from, as some sources might be illegal or unsafe. In this article, we will show you how to download Chiskop's Askies in mp3 format legally and safely.</p>
9
- <h2>What is Chiskop and What is Kwaito Music</h2>
10
- <h3>The History and Origin of Chiskop</h3>
11
- <p>Chiskop was formed in 1996 by four young men who shared a passion for music. They met at a recording studio in Johannesburg, where they were working on different projects. They decided to form a group and named it Chiskop, which means bald head in Zulu. They chose this name because they all had shaved heads at the time.</p>
12
- <p>The group started The group started to perform at various clubs and events, gaining popularity and recognition. They also collaborated with other artists, such as Mandoza, Arthur Mafokate, and Brenda Fassie. They released their debut album, Chiskop, in 1998, which featured songs like Klaimar, Sika Lekhekhe, and Shapa Bafana Shapa. The album was a success, selling over 100,000 copies and earning them a South African Music Award (SAMA) for Best Kwaito Album.</p>
13
- <p>chiskop askies song download<br />
14
- chiskop askies music video<br />
15
- chiskop askies lyrics<br />
16
- chiskop askies free mp3<br />
17
- chiskop askies kwaito<br />
18
- chiskop askies album<br />
19
- chiskop askies mp3 juice<br />
20
- chiskop askies remix<br />
21
- chiskop askies live performance<br />
22
- chiskop askies audio<br />
23
- chiskop askies 320 kbps<br />
24
- chiskop askies youtube<br />
25
- chiskop askies spotify<br />
26
- chiskop askies soundcloud<br />
27
- chiskop askies itunes<br />
28
- chiskop askies ringtone<br />
29
- chiskop askies instrumental<br />
30
- chiskop askies karaoke<br />
31
- chiskop askies meaning<br />
32
- chiskop askies translation<br />
33
- chiskop askies reaction<br />
34
- chiskop askies review<br />
35
- chiskop askies dance<br />
36
- chiskop askies choreography<br />
37
- chiskop askies cover<br />
38
- chiskop askies mashup<br />
39
- chiskop askies acapella<br />
40
- chiskop askies piano<br />
41
- chiskop askies guitar<br />
42
- chiskop askies saxophone<br />
43
- chiskop askies violin<br />
44
- chiskop askies flute<br />
45
- chiskop askies drums<br />
46
- chiskop askies bass<br />
47
- chiskop askies dj mix<br />
48
- chiskop askies radio edit<br />
49
- chiskop askies extended version<br />
50
- chiskop askies club mix<br />
51
- chiskop askies house mix<br />
52
- chiskop askies afrobeat mix<br />
53
- chiskop askies amapiano mix<br />
54
- chiskop askies gqom mix<br />
55
- chiskop askies hip hop mix<br />
56
- chiskop askies r&b mix<br />
57
- chiskop askies reggae mix<br />
58
- chiskop askies gospel mix<br />
59
- chiskop askies jazz mix<br />
60
- chiskop askies rock mix<br />
61
- chiskop askies edm mix</p>
62
- <h3>The Characteristics and Features of Kwaito Music</h3>
63
- <p>Kwaito is a genre of music that originated in South Africa in the early 1990s. It is derived from the word kwai, which means cool or hot in township slang. Kwaito is influenced by various musical styles, such as house, hip hop, reggae, and African rhythms. It is characterized by slow tempo, catchy melodies, repetitive lyrics, and social commentary. Kwaito lyrics are usually sung or rapped in local languages, such as Zulu, Xhosa, Sotho, and Afrikaans.</p>
64
- <p>Kwaito music reflects the experiences and aspirations of the post-apartheid youth in South Africa. It addresses issues such as poverty, crime, violence, HIV/AIDS, racism, and democracy. It also celebrates the diversity and creativity of the South African culture and identity. Kwaito music is often accompanied by a distinctive dance style, which involves moving the hips and shoulders in sync with the beat.</p>
65
- <h3>The Impact and Influence of Chiskop and Kwaito on South African Culture and Society</h3>
66
- <p>Chiskop and kwaito have had a significant impact and influence on the South African culture and society. They have contributed to the development and recognition of the South African music industry, both locally and internationally. They have also inspired and influenced many other artists and genres, such as Afro-pop, hip hop, R&B, gospel, and jazz.</p>
67
- <p>Chiskop and kwaito have also played a role in shaping the South African social and political landscape. They have given voice to the marginalized and oppressed groups in the country, especially the black youth. They have challenged the stereotypes and prejudices that exist in the society. They have also promoted a sense of unity and pride among the South Africans of different backgrounds and cultures.</p>
68
- <h2>What is the Song Askies About and Why is it Popular</h2>
69
- <h3>The Meaning and Message of the Song Askies</h3>
70
- <p>The song Askies is about apologizing to a lover for making a mistake. The word askies means sorry in Afrikaans. The song expresses regret and remorse for hurting the lover's feelings. It also asks for forgiveness and another chance to make things right. The song conveys a sincere and heartfelt emotion that many people can relate to.</p>
71
- <h3>The Musical Style and Elements of the Song Askies</h3>
72
- <p>The song Askies is a catchy and upbeat tune that combines kwaito, pop, and jazz elements. It has a slow tempo of 100 beats per minute (bpm), which creates a relaxed and groovy mood. It has a simple chord progression of C-G-Am-F, which makes it easy to sing along to. It has a catchy melody that repeats throughout the song. It has a chorus that consists of the word askies repeated four times, followed by the phrase "I'm sorry baby". It has a bridge that features a saxophone solo that adds some jazz flavor to the song.</p>
73
- <h3>The Reception and Reviews of the Song Askies</h3>
74
- <p>The song Askies was released in 2003 as part of Chiskop's album Sunday. The song was an instant hit in South Africa and beyond. It topped the charts on various radio stations and TV channels. It won several awards and nominations, such as the SAMA for Song of the Year, the Metro FM Award for Best Kwaito Single, and the Channel O Music Video Award for Best Kwaito Video. It also received positive reviews from critics and fans alike.</p>
75
- <p>The song Askies was praised for its catchy tune, its sincere lyrics, its unique blend of kwaito, pop, and jazz elements, and its appeal to a wide range of audiences. It also became a popular song for weddings, parties, and karaoke sessions. It is considered a classic in the kwaito genre and one of Chiskop's best songs ever.</p>
76
- <h2>How to Download the Mp3 Version of the Song Legally and Safely</h2>
77
- <h3>The Benefits and Advantages of Downloading Mp3 Files</h3>
78
- <p>Mp3 is a type of digital audio file that compresses sound data without losing much quality. It allows you to store more songs on your device, play them offline, and transfer them easily. Downloading mp3 files has many benefits and advantages, such as:</p>
79
- <ul>
80
- <li>You can save space on your device, as mp3 files are smaller than other audio formats.</li>
81
- <li>You can listen to your favorite songs anytime, anywhere, without relying on internet connection or streaming services.</li>
82
- <li>You can create your own playlists and mixtapes, and share them with your friends and family.</li>
83
- <li>You can enjoy high-quality sound, as mp3 files can preserve most of the original audio features.</li>
84
- <li>You can support your favorite artists, as some of them offer mp3 downloads on their official websites or platforms.</li>
85
- </ul>
86
- <h3>The Sources and Platforms Where You Can Find the Song Askies in Mp3 Format</h3>
87
- <p>If you want to download the song Askies in mp3 format, you need to be careful where you get it from. Some sources might be illegal or unsafe, as they might violate the copyright laws or contain viruses or malware. You should always use legal and safe sources and platforms, such as:</p>
88
- <ul>
89
- <li>Official websites or platforms of the artists or labels, such as Chiskop's website or Universal Music South Africa's website .</li>
90
- <li>Online music stores or services that sell or stream mp3 files, such as iTunes , Amazon Music , Spotify , or Deezer .</li>
91
- <li>Online music converters or downloaders that allow you to convert or download mp3 files from YouTube videos or other sources, such as Y2mate , MP3Juices , or OnlineVideoConverter .</li>
92
- </ul>
93
- <h3>The Steps and Tips on How to Download the Song Askies in Mp3 Format</h3>
94
- <p>The steps and tips on how to download the song Askies in mp3 format depend on the source or platform you choose. Here are some general guidelines that you can follow:</p>
95
- <ol>
96
- <li>Find the song Askies on the source or platform you prefer. You can use the search function or browse through the categories.</li>
97
- <li>Select the song Askies and click on the download or buy button. You might need to create an account or sign in if you are using an online music store or service.</li>
98
- <li>Choose the mp3 format and the quality you want. The higher the quality, the larger the file size.</li>
99
- <li>Confirm your payment method if you are buying the song. You might need to enter your credit card details or use other options like PayPal.</li>
100
- <li>Wait for the download to finish. You can check the progress on your browser or app.</li>
101
- <li>Enjoy the song Askies on your device. You can play it with any media player that supports mp3 files.</li>
102
- </ol> <h2>Conclusion</h2>
103
- <p>In conclusion, Chiskop's Askies is a classic kwaito song that you can enjoy anytime, anywhere. It is a song that tells a story of love and apology, with a catchy and upbeat tune. It is a song that represents the history and culture of South Africa, with a unique blend of kwaito, pop, and jazz elements. It is a song that you can download in mp3 format legally and safely, with the benefits and advantages of mp3 files. All you need to do is follow the steps and tips we have provided in this article, and you will be able to listen to this amazing song on your device.</p>
104
- <p>So what are you waiting for? Go ahead and download Chiskop's Askies in mp3 format today, and enjoy the classic kwaito song that will make you dance and sing along. You won't regret it!</p>
105
- <h2>FAQs</h2>
106
- <p>Here are some frequently asked questions related to the topic of this article:</p>
107
- <table>
108
- <tr>
109
- <th>Question</th>
110
- <th>Answer</th>
111
- </tr>
112
- <tr>
113
- <td>Who are the members of Chiskop?</td>
114
- <td>The members of Chiskop are Mduduzi Tshabalala, Sibusiso Thanjekwayo, Siphiwe Sibisi, and Gabi Le Roux.</td>
115
- </tr>
116
- <tr>
117
- <td>What does kwaito mean?</td>
118
- <td>Kwaito is a word that means cool or hot in township slang. It is also the name of a genre of music that originated in South Africa in the 1990s.</td>
119
- </tr>
120
- <tr>
121
- <td>What does askies mean?</td>
122
- <td>Askies is a word that means sorry in Afrikaans. It is also the title of a song by Chiskop.</td>
123
- </tr>
124
- <tr>
125
- <td>What are the benefits of downloading mp3 files?</td>
126
- <td>Mp3 files are digital audio files that compress sound data without losing much quality. They allow you to store more songs on your device, play them offline, and transfer them easily.</td>
127
- </tr>
128
- <tr>
129
- <td>Where can I download Chiskop's Askies in mp3 format legally and safely?</td>
130
- <td>You can download Chiskop's Askies in mp3 format from their official website or platform, from online music stores or services, or from online music converters or downloaders.</td>
131
- </tr>
132
- </table></p> 197e85843d<br />
133
- <br />
134
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download APK Unity for Android and Get Started with Googles Official Packages.md DELETED
@@ -1,130 +0,0 @@
1
- <br />
2
- <h1>How to Download APK Unity for Android</h1>
3
- <p>If you are interested in creating mobile games for Android, you might want to consider using Unity, a cross-platform game engine that powers over 75% of the Android mobile games market. In this article, we will show you how to download APK Unity for Android, how to set up your development environment, and how to build and run your game on your device or emulator.</p>
4
- <h2>What is Unity and why use it for Android game development?</h2>
5
- <p>Unity is a popular game development platform that offers a variety of tools and features to help you create and deliver highly engaging 2D or 3D mobile games. Some of the reasons why you might want to use Unity for Android game development are:</p>
6
- <h2>download apk unity for android</h2><br /><p><b><b>Download Zip</b> &#9881; <a href="https://jinyurl.com/2uNQN2">https://jinyurl.com/2uNQN2</a></b></p><br /><br />
7
- <h3>Unity features and benefits</h3>
8
- <ul>
9
- <li>Unity supports both 2D and 3D graphics, as well as AR/VR, with high-quality rendering and performance.</li>
10
- <li>Unity has a simple and intuitive design interface that allows you to drag and drop assets, components, and scripts into your scene.</li>
11
- <li>Unity uses C# as its scripting language, which is widely used and easy to learn.</li>
12
- <li>Unity has an extensive asset store that provides thousands of free and paid assets, templates, and plugins that you can use in your project.</li>
13
- <li>Unity enables cross-platform development, which means you can publish your game to multiple platforms, including Android, iOS, Windows, Mac, Linux, Web, Console, and more.</li>
14
- <li>Unity has a strong support community that offers tutorials, documentation, forums, answers, blogs, videos, podcasts, and more.</li>
15
- <li>Unity has a flexible pricing policy that allows you to use its core functionality for free. You can also upgrade to Pro or Plus plans for more features and services.</li>
16
- </ul>
17
- <h3>Unity requirements and compatibility</h3>
18
- <p>Before you start developing an Android game in Unity, you need to make sure that your system meets the minimum requirements. According to the official documentation, you need:</p>
19
- <ul>
20
- <li>A Windows or Mac computer with a 64-bit processor.</li>
21
- <li>A version of the Unity Editor that supports 64-bit apps. You can download it from the Unity Hub or the website.</li>
22
- <li>The Android Build Support module that enables you to build your game for Android. You can install it from the Unity Hub along with the Editor.</li>
23
- <li>The Android Software Development Kit (SDK) that provides the tools and libraries to create Android apps. You can install it from the Unity Hub or download it from the website.</li>
24
- <li>The Native Development Kit (NDK) that allows you to compile native code for Android. You can install it from the Unity Hub or download it from the website.</li>
25
- <li>A Java Development Kit (JDK) that enables you to run Java code on your computer. By default, Unity uses OpenJDK, which you can install from the Unity Hub or download from the website.</li>
26
- </ul>
27
- <h2>How to set up Unity for Android game development?</h2>
28
- <p>Once you have downloaded and installed all the required dependencies, you are ready to set up your Unity project for Android game development. Here are the steps you need to follow:</p>
29
- <h3>Download and install Unity Hub and Unity Editor</h3>
30
- <ol>
31
- <li>Go to [10](https://unity.com/download) and download the latest version of the Unity Hub.</li>
32
- <li>Run the installer and follow the instructions to install the Unity Hub on your computer.</li>
33
- <li>Launch the Unity Hub and sign in with your Unity account or create a new one if you don't have one.</li>
34
- <li>Click on the Installs tab and then click on the Add button to add a new version of the Unity Editor.</li>
35
- <li>Select the latest version of the Unity Editor and click on Next.</li>
36
- <li>On the Add Modules screen, make sure to check the Android Build Support module and click on Done.</li>
37
- <li>Wait for the download and installation to complete and then click on Launch to open the Unity Editor.</li>
38
- </ol>
39
- <h3>Download and install Android SDK, NDK, and OpenJDK</h3>
40
- <ol>
41
- <li>In the Unity Editor, go to Edit > Preferences > External Tools.</li>
42
- <li>Under Android, check the boxes for Install with Unity (recommended) for SDK, NDK, and JDK.</li>
43
- <li>Click on Download or Update for each of them and wait for the installation to finish.</li>
44
- <li>If you already have your own versions of SDK, NDK, or JDK, you can uncheck the boxes and browse to their locations instead.</li>
45
- </ol>
46
- <h3>Configure Unity project settings and preferences</h3>
47
- <ol>
48
- <li>In the Unity Editor, go to File > New Project or Open Project to create or open a Unity project.</li>
49
- <li>Go to Edit > Project Settings > Player and select the Android icon.</li>
50
- <li>Under Other Settings, enter your package name, version, and minimum API level for your game.</li>
51
- <li>Under Resolution and Presentation, choose your default orientation, resolution, and icon for your game.</li>
52
- <li>Under Publishing Settings, click on Keystore Manager and create or import a keystore and a key alias for signing your game.</li>
53
- <li>Save your project settings and close the window.</li>
54
- </ol>
55
- <h2>How to build and run your Unity game on Android device or emulator?</h2>
56
- <p>After you have set up your Unity project for Android game development, you can build and run your game on your device or emulator. Here are the steps you need to follow:</p>
57
- <h3>Connect your device or launch your emulator</h3>
58
- <ul>
59
- <li>If you want to run your game on a physical device, make sure it is connected to your computer via USB cable and has USB debugging enabled in the developer options. You can check if your device is recognized by going to File > Build Settings > Android and clicking on Refresh Device List.</li>
60
- <li>If you want to run your game on an emulator, make sure you have one installed on your computer. You can use the Android Studio emulator or any other third-party emulator. You can launch your emulator from the command line or from its own interface.</li>
61
- </ul>
62
- <h3>Select your build platform and settings</h3>
63
- <ol>
64
- <li>In the Unity Editor, go to File > Build Settings and select Android as your platform.</li>
65
- <li>Add the scenes that you want to include in your game by dragging them from the Project window to the Scenes in Build window.</li>
66
- <li>Click on Player Settings to open the Player Settings window and make any changes that you want to apply to your game.</li>
67
- <li>Click on Build And Run to build your game and run it on your device or emulator. You can also click on Build to generate an APK file that you can install manually later.</li>
68
- </ol>
69
- <h2>Conclusion and FAQs</h2>
70
- <p>In this article, we have shown you how to download APK Unity for Android, how to set up your development environment, and how to build and run your game on your device or emulator. We hope that this guide has helped you get started with creating amazing mobile games for Android using Unity. If you have any questions or feedback, please feel free to leave a comment below. Happy coding!</p>
71
- <h3>FAQs</h3>
72
- <table border="1">
73
- <tr><th>Question</th><th>Answer</th></tr>
74
- <tr><td>What is an APK file?</td><td>An APK file is an Android application package file that contains all the files and resources needed to install and run an app on an Android device. It has a .apk extension and can be downloaded from various sources such as Google Play Store, websites, or email attachments.</td></tr>
75
- <tr><td>How do I update my Unity version?</td><td>You can update your Unity version by using the Unity Hub. Go to the Installs tab and click on the Update button next to the version that you want to update. You can also download a new version of the Unity Editor from the website and install it manually.</td></tr>
76
- <tr><td>How do I debug my Unity game on Android?</td><td>You can debug your Unity game on Android by using the Logcat window in the Unity Editor. Go to Window > Analysis > Logcat and select your device from the dropdown menu. You can see the messages and errors that your game generates and filter them by priority, tag, or text.</td></tr>
77
- <tr><td>How do I optimize my Unity game for Android?</td><td>You can optimize your Unity game for Android by following some best practices such as reducing the size of your assets, using texture compression, enabling GPU instancing, using occlusion culling, batching your draw calls, using low-poly models, and testing your game on different devices and resolutions.</td></tr>
78
- <tr><td>How do I monetize my Unity game for Android?</td><td>You can monetize your Unity game for Android by using various methods such as in-app purchases, ads, subscriptions, or premium features. You can use the Unity Services window in the Unity Editor to integrate these services into your game. You can also use third-party plugins or SDKs that offer monetization solutions.</td></tr>
79
- </table></p>
80
- <p>How to download apk unity for android games<br />
81
- Download apk unity for android development tutorial<br />
82
- Download apk unity for android studio integration<br />
83
- Download apk unity for android app bundle<br />
84
- Download apk unity for android fast deploy<br />
85
- Download apk unity for android 64-bit support<br />
86
- Download apk unity for android adaptive performance<br />
87
- Download apk unity for android ar foundation<br />
88
- Download apk unity for android vr support<br />
89
- Download apk unity for android multiplayer games<br />
90
- Download apk unity for android asset store<br />
91
- Download apk unity for android pro license<br />
92
- Download apk unity for android cloud content delivery<br />
93
- Download apk unity for android in-app purchases<br />
94
- Download apk unity for android ads monetization<br />
95
- Download apk unity for android gaming services<br />
96
- Download apk unity for android backtrace debugging<br />
97
- Download apk unity for android helpshift support<br />
98
- Download apk unity for android plastic scm collaboration<br />
99
- Download apk unity for android game backend beta<br />
100
- Download apk unity for android google play store publishing<br />
101
- Download apk unity for android chrome os compatibility<br />
102
- Download apk unity for android samsung devices optimization<br />
103
- Download apk unity for android arm-powered cpus and gpus<br />
104
- Download apk unity for android firebase integration<br />
105
- Download apk unity for android google play games services<br />
106
- Download apk unity for android admob integration<br />
107
- Download apk unity for android facebook sdk integration<br />
108
- Download apk unity for android amazon appstore publishing<br />
109
- Download apk unity for android huawei appgallery publishing<br />
110
- Download apk unity for android one signal push notifications<br />
111
- Download apk unity for android photon network engine<br />
112
- Download apk unity for android mirror networking framework<br />
113
- Download apk unity for android bolt visual scripting tool<br />
114
- Download apk unity for android cinemachine camera system<br />
115
- Download apk unity for android timeline sequencing tool<br />
116
- Download apk unity for android shader graph tool<br />
117
- Download apk unity for android sprite shape tool<br />
118
- Download apk unity for android tilemap tool<br />
119
- Download apk unity for android 2d animation tool<br />
120
- Download apk unity for android 2d lighting system<br />
121
- Download apk unity for android 2d physics system<br />
122
- Download apk unity for android 3d animation system<br />
123
- Download apk unity for android 3d lighting system <br />
124
- Download apk unity for android 3d physics system <br />
125
- Download apk unity for android 3d rendering pipeline <br />
126
- Download apk unity for android addressables asset management <br />
127
- Download apk unity for android burst compiler <br />
128
- Download apk unity for android dots data-oriented technology stack</p> 197e85843d<br />
129
- <br />
130
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Game Clash of Clans Terbaru and Discover New Buildings and Characters in a Mysterious World!.md DELETED
@@ -1,94 +0,0 @@
1
-
2
- <h1>Download Game Clash of Clans Terbaru: A Guide for Beginners</h1>
3
- <p>Are you looking for a fun and addictive game that will keep you entertained for hours? Do you want to join millions of players worldwide in building your own village, raising a clan, and competing in epic clan wars? If you answered yes, then you should download game clash of clans terbaru, the latest version of one of the most popular mobile games ever.</p>
4
- <p>Clash of Clans is a strategy game that combines base building, resource management, troop training, and multiplayer battles. You can create your own unique village, train various types of troops, join or create a clan with other players, and fight against other clans for loot and glory. You can also explore new worlds, such as the builder base and the clan capital, where you can discover new buildings, characters, and features.</p>
5
- <h2>download game clash of clans terbaru</h2><br /><p><b><b>DOWNLOAD</b> &harr; <a href="https://jinyurl.com/2uNU9e">https://jinyurl.com/2uNU9e</a></b></p><br /><br />
6
- <p>In this article, we will show you how to download and install clash of clans on your device, how to play clash of clans with basic tips and tricks, and how to enjoy clash of clans more with advanced strategies and features. By the end of this article, you will be ready to start your own clashing adventure. So, what are you waiting for? Let's get started!</p>
7
- <h2>How to Download and Install Clash of Clans on Your Device</h2>
8
- <p>Downloading and installing clash of clans is very easy and simple. Just follow these steps:</p>
9
- <ol>
10
- <li>Go to the official website <a href="(^2^)">https://supercell.com/en/games/clashofclans/</a> or the app store <a href="(^1^)">https://play.google.com/store/apps/details?id=com.supercell.clashofclans</a> depending on your device.</li>
11
- <li>Choose your device (Android or iOS) and click on the download button.</li>
12
- <li>Wait for the game to download and install on your device.</li>
13
- <li>Launch the game and create your account. You can use your Google Play or Game Center account to save your progress.</li>
14
- </ol>
15
- <p>Congratulations! You have successfully downloaded and installed clash of clans on your device. Now you can start playing the game.</p>
16
- <h2>How to Play Clash of Clans: Basic Tips and Tricks</h2>
17
- <p>Clash of Clans is a game that requires strategy, planning, and creativity. Here are some basic tips and tricks that will help you play better:</p>
18
- <ul>
19
- <li><b>Tip 1:</b> Build and upgrade your village. Your village is your base where you produce resources, train troops, research upgrades, and defend against enemy attacks. You should always try to improve your village by building new structures, upgrading existing ones, and placing them strategically. You can also use the layout editor to design your village according to your preference.</li>
20
- <li><b>Tip 2:</b> Train and deploy your troops. Your troops are your army that you use to attack other villages and earn resources, trophies, and stars. You should always train a variety of troops that can deal with different types of defenses and obstacles. You can also use the army overview to see the stats and abilities of your troops. When you attack, you should scout the enemy village first and choose the best spot to deploy your troops. You can also use the battle tools to zoom in, zoom out, or rotate the map.</li>
21
- <li><b>Tip 3:</b> Join or create a clan. A clan is a group of players that can chat, donate, and request troops, and participate in clan wars and events. You can join an existing clan or create your own clan with your friends. Being in a clan will give you many benefits, such as getting extra troops, sharing strategies, earning clan perks, and having fun with other players.</li>
22
- <li><b>Tip 4:</b> Participate in clan wars and events. Clan wars are special battles where two clans compete against each other for loot and glory. You can participate in clan wars by being in a clan and having your village ready for war. You can also participate in events, such as the clan games, the clan war leagues, and the seasonal challenges, where you can complete tasks and earn rewards.</li>
23
- <li><b>Tip 5:</b> Use spells and siege machines. Spells are special items that can boost your troops, damage enemy buildings, or alter the battlefield. You can unlock and upgrade spells by building and upgrading the spell factory. Siege machines are powerful vehicles that can carry your troops and break through enemy walls. You can unlock and upgrade siege machines by building and upgrading the workshop.</li>
24
- </ul>
25
- <p>These are some of the basic tips and tricks that will help you play clash of clans better. However, there is much more to learn and discover in this game. That's why we will show you some advanced strategies and features that will make you enjoy clash of clans more.</p>
26
- <p>download game clash of clans terbaru 2023<br />
27
- cara download game clash of clans terbaru di android<br />
28
- download game clash of clans terbaru mod apk<br />
29
- download game clash of clans terbaru offline<br />
30
- download game clash of clans terbaru versi 14.211.0<br />
31
- download game clash of clans terbaru update<br />
32
- download game clash of clans terbaru gratis<br />
33
- download game clash of clans terbaru untuk pc<br />
34
- download game clash of clans terbaru tanpa internet<br />
35
- download game clash of clans terbaru dari play store<br />
36
- download game clash of clans terbaru dengan mudah<br />
37
- download game clash of clans terbaru full version<br />
38
- download game clash of clans terbaru hack<br />
39
- download game clash of clans terbaru no root<br />
40
- download game clash of clans terbaru unlimited gems<br />
41
- download game clash of clans terbaru apk pure<br />
42
- download game clash of clans terbaru supercell<br />
43
- download game clash of clans terbaru link<br />
44
- download game clash of clans terbaru cepat<br />
45
- download game clash of clans terbaru online<br />
46
- download game clash of clans terbaru 2022<br />
47
- tips dan trik download game clash of clans terbaru<br />
48
- review download game clash of clans terbaru<br />
49
- panduan download game clash of clans terbaru<br />
50
- tutorial download game clash of clans terbaru<br />
51
- video download game clash of clans terbaru<br />
52
- situs download game clash of clans terbaru<br />
53
- blog download game clash of clans terbaru<br />
54
- forum download game clash of clans terbaru<br />
55
- website download game clash of clans terbaru<br />
56
- artikel download game clash of clans terbaru<br />
57
- berita download game clash of clans terbaru<br />
58
- informasi download game clash of clans terbaru<br />
59
- rekomendasi download game clash of clans terbaru<br />
60
- testimoni download game clash of clans terbaru<br />
61
- pengalaman download game clash of clans terbaru<br />
62
- keuntungan download game clash of clans terbaru<br />
63
- kekurangan download game clash of clans terbaru<br />
64
- manfaat download game clash of clans terbaru<br />
65
- resiko download game clash of clans terbaru</p>
66
- <h2>How to Enjoy Clash of Clans More: Advanced Strategies and Features</h2>
67
- <p>Clash of Clans is a game that never gets boring. There are always new things to do, new challenges to face, and new features to explore. Here are some of the advanced strategies and features that will make you enjoy clash of clans more:</p>
68
- <ul>
69
- <li><b>Strategy 1:</b> Choose the right army composition and attack strategy. Depending on your level, your target, and your goal, you should choose the best combination of troops, spells, and siege machines that suits your attack style. There are many types of army compositions and attack strategies in clash of clans, such as barch (barbarians and archers), gowipe (golems, wizards, and pekkas), lavaloon (lava hounds and balloons), hybrid (miners and hog riders), etc. You should experiment with different options and find out what works best for you.</li>
70
- <li><b>Strategy 2:</b> Use super troops and heroes. Super troops are special versions of regular troops that have enhanced abilities and stats. You can unlock super troops by donating a certain amount of dark elixir to the super troop altar. You can use one super troop at a time for a limited period of time. Heroes are powerful units that have special skills and abilities. You can unlock heroes by building their altars and upgrading them with dark elixir. You can use heroes in both offense and defense.</li>
71
- <li><b>Strategy 3:</b> Explore the builder base and the clan capital. The builder base is a separate world where you can build a second village, train different types of troops, and fight against other players in a one-on-one mode called versus battles. You can unlock the builder base by building the boat on your home village. The clan capital is a shared village where you can collaborate with your clanmates, build new structures, donate resources, and access new features such as the super troop portal, the trader shop, the practice mode, etc. You can unlock the clan capital by reaching town hall level 14 on your home village.</li>
72
- <li><b>Strategy 4:</b> Customize your village with skins and sceneries. Skins are cosmetic items that change the appearance of your buildings, troops, spells, siege machines, or heroes. You can get skins by completing seasonal challenges or buying them from the shop. Sceneries are cosmetic items that change the background of your village or builder base. You can get sceneries by completing certain achievements or buying them from the shop.</li>
73
- <li><b>Strategy 5:</b> Watch replays and learn from other players. Replays are recordings of your attacks or defenses that you can watch and analyze. You can access replays by tapping on the battle log button on your home village or builder base. You can also watch replays of other players by tapping on their profiles or visiting their villages. Watching replays can help you learn from your mistakes, improve your skills, and get inspired by other players' strategies.</li>
74
- </ul>
75
- <p>These are some of the advanced strategies and features that will make you enjoy clash of clans more. However, there is still more to discover and experience in this game. That's why you should download game clash of clans terbaru and join the fun.</p>
76
- <h1>Conclusion</h1>
77
- <p>Clash of Clans is a game that will never let you down. It is a game that offers endless possibilities, challenges, and entertainment. It is a game that will make you feel proud, excited, and satisfied. It is a game that will make you part of a global community of clashing enthusiasts.</p>
78
- <p>So, what are you waiting for? Download game clash of clans terbaru now and start your own clashing adventure. You won't regret it.</p>
79
- <h2>FAQs</h2>
80
- <p>Here are some of the frequently asked questions about clash of clans:</p>
81
- <ol>
82
- <li><b>Q1:</b> Is Clash of Clans free to play?<br>
83
- <b>A1:</b> Yes, Clash of Clans is free to download and play. However, you can also buy in-game items such as gems, gold, elixir, dark elixir, or skins with real money if you want to speed up your progress or customize your village.</li>
84
- <li><b>Q2:</b> How can I get more gems in Clash of Clans?<br>
85
- <b>A2:</b> Gems are the premium currency in Clash of Clans that can be used to buy or boost various things in the game. You can get gems by completing achievements, removing obstacles, participating in events, winning clan games, or buying them from the shop.</li>
86
- <li><b>Q3:</b> What are the best troops in Clash of Clans?<br>
87
- <b>A3:</b> There is no definitive answer to this question, as different troops have different strengths and weaknesses, and different situations require different strategies. However, some of the most popular and versatile troops in Clash of Clans are the barbarian king, the archer queen, the grand warden, the royal champion, the electro dragon, the yeti, the pekka, the miner, the hog rider, the balloon, the dragon, the wizard, the healer, and the wall breaker.</li>
88
- <li><b>Q4:</b> How can I protect my village from raids?<br>
89
- <b>A4:</b> Raids are attacks from other players that can result in losing resources, trophies, or stars. You can protect your village from raids by upgrading your defenses, such as walls, cannons, archer towers, mortars, air defenses, etc., placing them strategically around your village, using traps and hidden teslas to surprise your enemies, and using shields or guard modes to prevent attacks for a certain period of time.</li>
90
- <li><b>Q5:</b> How can I contact the support team if I have any issues?<br>
91
- <b>A5:</b> If you have any issues or questions regarding Clash of Clans, you can contact the support team by tapping on the settings button on your home village or builder base, then tapping on the help and support button. You can also visit the official website <a href="">https://supercell.com/en/games/clashofclans/</a>, the official forum <a href="">https://forum.supercell.com/forumdisplay.php/4-Clash-of-Clans</a>, or the official social media pages <a href="">https://www.facebook.com/ClashofClans</a>, <a href="">https://twitter.com/ClashofClans</a>, <a href="">https://www.instagram.com/clashofclans/</a>, <a href="">https://www.youtube.com/user/OfficialClashOfClans</a>, for more information and assistance.</li>
92
- </ol></p> 197e85843d<br />
93
- <br />
94
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Game Hungry Shark Evolution Mod Apk Versi Lama Game Terbaik yang Bisa Anda Download Gratis dan Mendapatkan Unlimited Coin dan Diamond untuk Meningkatkan Level dan Kekuatan Ikan Hiu Anda.md DELETED
@@ -1,109 +0,0 @@
1
- <br />
2
- <h1>Download Game Hungry Shark Evolution Mod Apk Versi Lama</h1>
3
- <p>Do you love playing as a hungry shark that can devour anything in its path? If yes, then you should try Hungry Shark Evolution, a popular arcade game that lets you control a variety of sharks and unleash their predatory instincts. In this article, we will tell you what Hungry Shark Evolution is, why you should download its mod apk versi lama, how to download and install it, and some tips and tricks for playing it.</p>
4
- <h2>What is Hungry Shark Evolution?</h2>
5
- <p>Hungry Shark Evolution is a game developed by Ubisoft Entertainment that was released in 2012. It is the fifth installment in the Hungry Shark series, and it has more than 100 million downloads on Google Play Store. The game is available for Android, iOS, Windows Phone, and Windows 8 devices.</p>
6
- <h2>download game hungry shark evolution mod apk versi lama</h2><br /><p><b><b>Download File</b> &rArr;&rArr;&rArr; <a href="https://jinyurl.com/2uNOb9">https://jinyurl.com/2uNOb9</a></b></p><br /><br />
7
- <p>In Hungry Shark Evolution, you can choose from over 40 different sharks, ranging from the small Reef Shark to the massive Megalodon. Each shark has its own abilities, stats, and appearance. You can also customize your shark with various accessories, such as hats, sunglasses, jetpacks, and lasers.</p>
8
- <p>The gameplay of Hungry Shark Evolution is simple: you have to eat as much as you can to survive and grow. You can eat fish, turtles, crabs, humans, and even other sharks. However, you also have to avoid dangers such as mines, jellyfish, submarines, and bigger sharks. The game has an open world map that you can explore freely, with different areas such as islands, caves, shipwrecks, and volcanoes. The game also has missions and achievements that you can complete to earn coins and gems, which are the in-game currencies.</p>
9
- <p>download game hungry shark evolution mod apk unlimited money<br />
10
- download game hungry shark evolution mod apk latest version<br />
11
- download game hungry shark evolution mod apk offline<br />
12
- download game hungry shark evolution mod apk android 1<br />
13
- download game hungry shark evolution mod apk 2023<br />
14
- download game hungry shark evolution mod apk mega mod<br />
15
- download game hungry shark evolution mod apk revdl<br />
16
- download game hungry shark evolution mod apk rexdl<br />
17
- download game hungry shark evolution mod apk no root<br />
18
- download game hungry shark evolution mod apk free shopping<br />
19
- download game hungry shark evolution mod apk all sharks unlocked<br />
20
- download game hungry shark evolution mod apk unlimited gems and coins<br />
21
- download game hungry shark evolution mod apk versi terbaru<br />
22
- download game hungry shark evolution mod apk versi 9.9.10<br />
23
- download game hungry shark evolution mod apk versi 10.0.0<br />
24
- download game hungry shark evolution mod apk versi lama 2019<br />
25
- download game hungry shark evolution mod apk versi lama 2020<br />
26
- download game hungry shark evolution mod apk versi lama 2021<br />
27
- download game hungry shark evolution mod apk versi lama 2022<br />
28
- download game hungry shark evolution mod apk versi lama offline<br />
29
- download game hungry shark evolution mod apk versi lama unlimited money<br />
30
- download game hungry shark evolution mod apk versi lama android 1<br />
31
- download game hungry shark evolution mod apk versi lama mega mod<br />
32
- download game hungry shark evolution mod apk versi lama revdl<br />
33
- download game hungry shark evolution mod apk versi lama rexdl<br />
34
- download game hungry shark evolution mod apk versi lama no root<br />
35
- download game hungry shark evolution mod apk versi lama free shopping<br />
36
- download game hungry shark evolution mod apk versi lama all sharks unlocked<br />
37
- download game hungry shark evolution mod apk versi lama unlimited gems and coins<br />
38
- cara download game hungry shark evolution mod apk versi lama<br />
39
- link download game hungry shark evolution mod apk versi lama<br />
40
- situs download game hungry shark evolution mod apk versi lama<br />
41
- website download game hungry shark evolution mod apk versi lama<br />
42
- tempat download game hungry shark evolution mod apk versi lama<br />
43
- tutorial download game hungry shark evolution mod apk versi lama<br />
44
- tips download game hungry shark evolution mod apk versi lama<br />
45
- trik download game hungry shark evolution mod apk versi lama<br />
46
- review download game hungry shark evolution mod apk versi lama<br />
47
- rating download game hungry shark evolution mod apk versi lama<br />
48
- rekomendasi download game hungry shark evolution mod apk versi lama</p>
49
- <h3>Features of Hungry Shark Evolution</h3>
50
- <p>Some of the features of Hungry Shark Evolution are:</p>
51
- <ul>
52
- <li>Over 40 different sharks to unlock and upgrade</li>
53
- <li>Over 20 different missions to complete</li>
54
- <li>Over 15 hidden objects to find</li>
55
- <li>Over 75 achievements to unlock</li>
56
- <li>Online leaderboards and social features</li>
57
- <li>Stunning 3D graphics and sound effects</li>
58
- <li>Regular updates with new content</li>
59
- </ul>
60
- <h3>Why download Hungry Shark Evolution mod apk versi lama?</h3>
61
- <p>If you want to enjoy Hungry Shark Evolution without any limitations or restrictions, then you should download its mod apk versi lama. A mod apk is a modified version of the original game that has some extra features or advantages. For example, some of the benefits of downloading Hungry Shark Evolution mod apk versi lama are:</p>
62
- <ul>
63
- <li>You can get unlimited coins and gems to buy anything you want in the game</li>
64
- <li>You can unlock all the sharks and accessories without spending any money</li>
65
- <li>You can remove all the ads and pop-ups that may interrupt your gameplay</li>
66
- <li>You can access all the features and content that may be locked or unavailable in the original game</li>
67
- <li>You can enjoy the game without any bugs or errors</li>
68
- </ul>
69
- <h2>How to download and install Hungry Shark Evolution mod apk versi lama?</h2>
70
- <p>If you are interested in downloading Hungry Shark Evolution mod apk versi lama, then you need to follow these simple steps:</p>
71
- <h3>Step 1: Download the apk file</h3>
72
- <p>The first thing you need to do is to download the apk file of Hungry Shark Evolution mod apk versi lama from a reliable and trusted source. You can search for it on Google or use the link below to download it directly. The file size is about 100 MB, so make sure you have enough space on your device.</p>
73
- <p><a href="">Download Hungry Shark Evolution mod apk versi lama here</a></p>
74
- <h3>Step 2: Enable unknown sources</h3>
75
- <p>The next thing you need to do is to enable unknown sources on your device. This is because the apk file you downloaded is not from the official Google Play Store, and your device may block its installation. To enable unknown sources, you need to go to your device settings, then security, then toggle on the option that says "allow installation of apps from unknown sources". This may vary depending on your device model and Android version, but you can always find it in the security section of your settings.</p>
76
- <h3>Step 3: Install the apk file</h3>
77
- <p>Once you have enabled unknown sources, you can proceed to install the apk file. To do this, you need to locate the file in your device storage, usually in the downloads folder. Then, tap on the file and follow the instructions on the screen to install it. It may take a few seconds or minutes depending on your device speed and performance.</p>
78
- <h3>Step 4: Launch the game and enjoy</h3>
79
- <p>After the installation is complete, you can launch the game and enjoy its features. You will see that you have unlimited coins and gems, and all the sharks and accessories are unlocked. You can also play the game without any ads or interruptions. You can explore the map, eat everything you see, and complete missions and achievements. Have fun!</p>
80
- <h2>Tips and tricks for playing Hungry Shark Evolution</h2>
81
- <p>To make the most out of Hungry Shark Evolution, here are some tips and tricks that you can use:</p>
82
- <h3>Upgrade your shark regularly</h3>
83
- <p>One of the most important things to do in Hungry Shark Evolution is to upgrade your shark regularly. Upgrading your shark will increase its speed, bite, boost, and health. This will make it easier for you to eat more, survive longer, and avoid dangers. You can upgrade your shark using coins that you earn by playing the game or by watching videos. You can also use gems to upgrade your shark instantly.</p>
84
- <h3>Collect coins and gems</h3>
85
- <p>Coins and gems are the in-game currencies that you can use to buy and upgrade sharks and accessories. You can collect coins and gems by eating gold creatures, completing missions and achievements, finding treasure chests, and watching videos. You can also get coins and gems by downloading Hungry Shark Evolution mod apk versi lama, which gives you unlimited amounts of them.</p>
86
- <h3>Complete missions and achievements</h3>
87
- <p>Missions and achievements are tasks that you can complete to earn coins, gems, and other rewards. Missions are specific to each shark, and they usually involve eating a certain number of creatures or performing a certain action. Achievements are general goals that apply to all sharks, such as eating 100 humans or surviving for 10 minutes. Completing missions and achievements will also increase your score multiplier, which will boost your score.</p>
88
- <h3>Explore the map and find hidden items</h3>
89
- <p>The map of Hungry Shark Evolution is vast and full of secrets. You can explore different areas such as islands, caves, shipwrecks, and volcanoes. You can also find hidden items such as letters that spell HUNGRY, baby sharks that follow you around, shells that unlock new maps, and statues that give you bonuses. Exploring the map will also help you discover new creatures and challenges.</p>
90
- <h3>Use boosters and accessories</h3>
91
- <p>Boosters and accessories are items that you can equip on your shark to enhance its abilities or appearance. Boosters are consumable items that give you temporary effects such as extra speed, health regeneration, or magnetism. Accessories are permanent items that give you passive benefits such as increased bite, reduced damage, or extra coins. You can buy boosters and accessories using coins or gems, or unlock them by completing missions or achievements.</p>
92
- <h2>Conclusion</h2>
93
- <p>Hungry Shark Evolution is a fun and addictive game that lets you experience the life of a hungry shark. You can download its mod apk versi lama to enjoy its features without any limitations or restrictions. You can also use our tips and tricks to improve your gameplay and score higher. Download Hungry Shark Evolution mod apk versi lama today and unleash your inner shark!</p>
94
- <h4>Frequently Asked Questions</h4>
95
- <p>Here are some of the frequently asked questions about Hungry Shark Evolution and their answers:</p>
96
- <ol>
97
- <li>What is the difference between Hungry Shark Evolution and Hungry Shark World?</li>
98
- <p>Hungry Shark Evolution and Hungry Shark World are both games developed by Ubisoft Entertainment that belong to the Hungry Shark series. However, they have some differences in terms of graphics, gameplay, and content. Hungry Shark Evolution has more realistic graphics, more sharks to choose from, and more maps to explore. Hungry Shark World has more cartoonish graphics, more game modes, and more features such as pets and bosses.</p>
99
- <li>Is Hungry Shark Evolution mod apk versi lama safe to download and install?</li>
100
- <p>Yes, Hungry Shark Evolution mod apk versi lama is safe to download and install, as long as you get it from a reliable and trusted source. However, you should always be careful when downloading any apk file from the internet, as some of them may contain viruses or malware that can harm your device or steal your data. You should also check the permissions that the apk file requests before installing it, and avoid granting any unnecessary or suspicious ones.</p>
101
- <li>How can I update Hungry Shark Evolution mod apk versi lama?</li>
102
- <p>If you want to update Hungry Shark Evolution mod apk versi lama, you need to download the latest version of the mod apk file from the same source that you got the previous one. Then, you need to uninstall the old version of the game from your device, and install the new one. You may also need to enable unknown sources again if you have disabled it after installing the old version. You should also backup your game data before updating, in case something goes wrong.</p>
103
- <li>Can I play Hungry Shark Evolution mod apk versi lama online with other players?</li>
104
- <p>No, you cannot play Hungry Shark Evolution mod apk versi lama online with other players. The mod apk file is not compatible with the official game servers, and it may cause errors or bans if you try to connect to them. The mod apk file is only meant for offline gameplay, where you can enjoy its features without any limitations or restrictions.</p>
105
- <li>Can I transfer my game progress from Hungry Shark Evolution to Hungry Shark World?</li>
106
- <p>No, you cannot transfer your game progress from Hungry Shark Evolution to Hungry Shark World. The two games are separate and have different game data and mechanics. You will have to start from scratch if you want to play Hungry Shark World, and vice versa.</p>
107
- </ol></p> 401be4b1e0<br />
108
- <br />
109
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Gratis Instagram Cara Mudah dan Cepat Mengunduh Foto dan Video dari IG.md DELETED
@@ -1,121 +0,0 @@
1
- <br />
2
- <h1>How to Download Gratis Instagram and Make the Most of It</h1>
3
- <p>Instagram is one of the most popular social media platforms in the world, with over one billion users. It allows you to create and share your photos, videos, reels, stories, and more with your friends and followers. Whether you want to showcase your personal brand, promote your business, or just have fun, Instagram has something for everyone. In this article, we will show you how to download gratis Instagram on your device and how to use its features, tips, and tricks to make the most of it.</p>
4
- <h2>download gratis instagram</h2><br /><p><b><b>DOWNLOAD</b> &gt;&gt;&gt;&gt;&gt; <a href="https://jinyurl.com/2uNQSa">https://jinyurl.com/2uNQSa</a></b></p><br /><br />
5
- <h2>What is Instagram and Why You Should Use It</h2>
6
- <p>Instagram is a free social media platform that lets you express yourself and connect with the people and things you love. Here are some of the reasons why you should use it:</p>
7
- <h3>Instagram is a free social media platform for sharing photos and videos</h3>
8
- <p>Instagram allows you to upload photos and videos directly from your phone or camera. You can also edit them with filters, effects, stickers, text, and music. You can share them with your followers on your feed or story, or send them privately to your friends via direct messages. You can also watch and create short videos up to 30 seconds long with reels, a feature that lets you add special effects, background music, face filters, emojis, and stickers to bring your reels to life.</p>
9
- <h3>Instagram has an array of features, from short-form videos to live streaming and private messaging</h3>
10
- <p>Instagram is not just about photos and videos. It also has many other features that let you have fun and interact with others. For example, you can go live with your friends or followers and broadcast what you are doing in real time. You can also join video chats with up to four people at once. You can also send photos, videos, voice messages, GIFs, memes, stickers, and more to your friends via direct messages. You can also see what they are up to by watching their stories or reels.</p>
11
- <p>download gratis instagram lite<br />
12
- download gratis instagram apk<br />
13
- download gratis instagram video<br />
14
- download gratis instagram foto<br />
15
- download gratis instagram story<br />
16
- download gratis instagram reels<br />
17
- download gratis instagram mod<br />
18
- download gratis instagram for pc<br />
19
- download gratis instagram app<br />
20
- download gratis instagram ios<br />
21
- download gratis instagram terbaru<br />
22
- download gratis instagram versi lama<br />
23
- download gratis instagram tanpa kuota<br />
24
- download gratis instagram tanpa watermark<br />
25
- download gratis instagram tanpa login<br />
26
- download gratis instagram transparan<br />
27
- download gratis instagram black mod<br />
28
- download gratis instagram gb<br />
29
- download gratis instagram plus<br />
30
- download gratis instagram pro<br />
31
- download gratis instagram no crop<br />
32
- download gratis instagram no ads<br />
33
- download gratis instagram no root<br />
34
- download gratis instagram offline<br />
35
- download gratis instagram online<br />
36
- download gratis instagram dengan link<br />
37
- download gratis instagram dengan aplikasi<br />
38
- download gratis instagram dengan browser<br />
39
- download gratis instagram dengan vpn<br />
40
- download gratis instagram dengan kode rahasia<br />
41
- cara mudah download gratis instagram<br />
42
- cara cepat download gratis instagram<br />
43
- cara aman download gratis instagram<br />
44
- cara terbaik download gratis instagram<br />
45
- cara hemat download gratis instagram<br />
46
- situs untuk download gratis instagram<br />
47
- aplikasi untuk download gratis instagram<br />
48
- software untuk download gratis instagram<br />
49
- extension untuk download gratis instagram<br />
50
- tool untuk download gratis instagram<br />
51
- tips dan trik download gratis instagram<br />
52
- tutorial lengkap download gratis instagram<br />
53
- panduan praktis download gratis instagram<br />
54
- review dan rekomendasi download gratis instagram<br />
55
- testimoni dan pengalaman download gratis instagram<br />
56
- keuntungan dan manfaat download gratis instagram<br />
57
- kekurangan dan risiko download gratis instagram<br />
58
- alternatif dan solusi download gratis instagram<br />
59
- syarat dan ketentuan download gratis instagram</p>
60
- <h3>Instagram helps you connect with friends, brands, celebrities, and influencers</h3>
61
- <p>Instagram is a great way to stay in touch with your friends and family. You can follow them to see what they are posting on their feed or story. You can also like, comment, share, or save their posts. You can also tag them in your posts or stories or mention them in your comments or messages. You can also discover new people to follow based on your interests or preferences. You can follow your favorite brands, celebrities, artists, athletes, singers, actors, comedians, activists, politicians, or influencers. You can see what they are up to by watching their posts or stories or reels. You can also interact with them by liking, commenting, sharing, or messaging them.</p>
62
- <h2>How <h2>How to Download Gratis Instagram on Your Device</h2>
63
- <p>Downloading Instagram is easy and free. You can get it from the Google Play Store or the App Store, depending on your device. Here are the steps to follow:</p>
64
- <h3>Download Instagram from Google Play Store or App Store</h3>
65
- <p>Open the Google Play Store or the App Store on your device and search for Instagram. Tap on the app icon and then tap on Install or Get. Wait for the app to download and install on your device. You can also use these links to download the app directly:</p>
66
- <ul>
67
- <li><a href="(^2^)">Download Instagram for Android</a></li>
68
- <li><a href="(^3^)">Download Instagram for iOS</a></li>
69
- </ul>
70
- <h3>Create an account or log in with your existing one</h3>
71
- <p>Once you have installed the app, open it and tap on Sign Up or Log In. You can create a new account using your email address, phone number, or Facebook account. You can also log in with your existing Instagram account if you have one. Follow the instructions on the screen to set up your username, password, and profile information.</p>
72
- <h3>Customize your profile and settings</h3>
73
- <p>To make your profile stand out, you can customize it with a profile photo, a bio, a website link, and a category. Tap on Edit Profile to access these options. You can also adjust your settings to manage your privacy, notifications, security, and more. Tap on the menu icon at the top right corner and then tap on Settings to access these options.</p>
74
- <h2>How to Use Instagram Features to Grow Your Brand or Business</h2>
75
- <p>Instagram is not only a fun and creative way to share your photos and videos, but also a powerful tool to grow your brand or business. Here are some of the features you can use to reach and engage your target audience:</p>
76
- <h3>Create and share reels, stories, and posts with your followers</h3>
77
- <p>Reels are short videos that you can create and share with special effects, music, filters, stickers, and more. They are a great way to showcase your products, services, tutorials, behind-the-scenes, or anything else that you want to share with your followers. To create a reel, tap on the plus icon at the bottom of the screen and then tap on Reel. You can record a video or upload one from your gallery. You can also edit it with various tools and effects. To share it, tap on Share To and choose where you want to post it: your feed, your story, or both.</p>
78
- <p>Stories are photos or videos that disappear after 24 hours. They are a great way to share moments from your day, updates, promotions, polls, questions, or anything else that you want to share with your followers. To create a story, tap on the plus icon at the bottom of the screen and then tap on Story. You can take a photo or video or upload one from your gallery. You can also edit it with various tools and effects. To share it, tap on Your Story at the bottom left corner.</p>
79
- <p>Posts are photos or videos that stay on your feed permanently. They are a great way to showcase your brand identity, values, mission, vision, or anything else that you want to share with your followers. To create a post, tap on the plus icon at the bottom of the screen and then tap on Feed Post. You can take a photo or video or upload one from your gallery. You can also edit it with various tools and effects. To share it, tap on Next and write a caption, add hashtags, tag people, add a location, and choose where you want to post it: your feed only or both your feed and Facebook.</p>
80
- <h3>Use hashtags, filters, stickers, and music to enhance your content</h3>
81
- <p>Hashtags are words or phrases that start with a # symbol and help users find content related to a specific topic or theme. They are a great way to increase your visibility, reach new audiences, join conversations, and create communities around your brand or business. To use hashtags, type them in your caption or comment section of your post or story. You can use up to 30 hashtags per post and up to 10 hashtags per story.</p>
82
- <p>Filters are effects that you can apply to your photos or videos to change their appearance or mood. They are a great way to add some flair, <p>Filters are effects that you can apply to your photos or videos to change their appearance or mood. They are a great way to add some flair, creativity, or fun to your content. To use filters, swipe left or right on the screen when you are taking a photo or video or tap on the filter icon at the bottom right corner when you are editing your photo or video. You can choose from a variety of filters, from vintage to beauty to funny.</p>
83
- <p>Stickers are images or animations that you can add to your photos or videos to make them more interactive or expressive. They are a great way to add some personality, humor, or emotion to your content. To use stickers, tap on the sticker icon at the top of the screen when you are creating a story or reel. You can choose from a variety of stickers, from emojis to gifs to polls to questions.</p>
84
- <p>Music is a feature that lets you add songs or sounds to your photos or videos. It is a great way to add some rhythm, vibe, or mood to your content. To use music, tap on the music icon at the top of the screen when you are creating a story or reel. You can choose from a library of songs or sounds, from popular hits to genres to moods. You can also search for a specific song or sound by typing its name or artist.</p>
85
- <h3>Engage with your audience through likes, comments, and messages</h3>
86
- <p>Likes are a way of showing appreciation or support for someone's content. They are a great way to build relationships, trust, and loyalty with your audience. To like someone's post, tap on the heart icon below the post. To like someone's comment, tap on the heart icon next to the comment. To see who liked your post or comment, tap on the number of likes below the post or comment.</p>
87
- <p>Comments are a way of expressing your opinion, feedback, question, or suggestion for someone's content. They are a great way to start conversations, spark debates, and create communities around your brand or business. To comment on someone's post, tap on the speech bubble icon below the post and type your comment. To reply to someone's comment, tap on the reply icon next to the comment and type your reply. To see who commented on your post, tap on the number of comments below the post.</p>
88
- <p>Messages are a way of communicating privately with someone on Instagram. They are a great way to provide customer service, answer queries, send offers, or share exclusive content with your audience. To send a message to someone, tap on the paper plane icon at the top right corner of the screen and search for their username. To receive a message from someone, tap on the paper plane icon at the top right corner of the screen and check your inbox.</p>
89
- <h3>Explore and discover new content and creators based on your interests</h3>
90
- <p>Explore is a feature that lets you find new content and creators that match your interests or preferences. It is a great way to expand your horizons, learn new things, and get inspired by others. To use explore, tap on the magnifying glass icon at the bottom of the screen and browse through different categories, such as food, travel, fashion, beauty, art, sports, music, and more. You can also search for specific topics, hashtags, people, or places by typing them in the search bar. You can also see what is trending or popular on Instagram by tapping on the For You tab.</p>
91
- <h3>Shop for products that compliment your personal style</h3>
92
- <p>Shop is a feature that lets you browse and buy products from your favorite brands and creators on Instagram. It is a great way to find and support businesses that suit your personal style, taste, or needs. To use shop, tap on the shopping bag icon at the bottom of the screen and explore different collections, categories, or recommendations. You can also see products that are featured in posts or stories by tapping on the shopping tag icon. You can also search for specific products, brands, or creators by typing them in the search bar. To buy a product, tap on it and then tap on View on Website to go to the seller's website and complete your purchase.</p>
93
- <h2>How to Use Instagram Tips and Tricks to Boost Your Engagement and Reach</h2>
94
- <p>Instagram is not only a fun and creative platform, but also a competitive one. To stand out from the crowd and grow your following, you need to use some tips and tricks that can help you boost your engagement and reach. Here are some of them:</p>
95
- <h3>Add and manage multiple accounts from the same device</h3>
96
- <p>If you have more than one Instagram account, for example, one for personal use and one for business use, you can add and manage them from the same device. This way, you can easily switch between them without logging out and logging in every time. To add another account, tap on the menu icon at the top right corner of the screen and then tap on Settings. Then, scroll down and tap on Add Account. Enter your username and password for the account you want to add and tap on Log In. To switch between accounts, tap on your profile picture at the bottom right corner of the screen and then tap on the account you want to use.</p>
97
- <h3>Schedule your posts in advance or use the best time to post</h3>
98
- <p>If you want to post consistently and reach more people, you need to plan your posts in advance or use the best time to post. To schedule your posts in advance, you can use a third-party app or tool that lets you create, edit, and schedule your posts for a future date and time. Some of these apps or tools are Later, Buffer, Hootsuite, Planoly, and Preview. To use the best time to post, you need to know when your audience is most active and likely to engage with your content. You can use Instagram Insights, a feature that lets you see analytics about your account, such as impressions, reach, engagement, followers, and more. To access Instagram Insights, tap on the menu icon at the top right corner of the screen and then tap on Insights. Then, Then, tap on Audience and scroll down to see when your followers are most active by hours and days. You can also use a third-party app or tool that analyzes your account and suggests the best time to post based on your data. Some of these apps or tools are Sprout Social, Iconosquare, CoSchedule, and Tailwind.</p>
99
- <h3>Hide, delete, or disable comments and likes on your posts</h3>
100
- <p>If you want to have more control over your posts and avoid unwanted or negative comments or likes, you can hide, delete, or disable them on your posts. To hide comments or likes on your posts, tap on the menu icon at the top right corner of the post and then tap on Hide Comments or Hide Likes. To delete comments on your posts, swipe left on the comment and then tap on the trash icon. To disable comments or likes on your posts, tap on the plus icon at the bottom of the screen and then tap on Advanced Settings. Then, toggle off the option to Turn Off Commenting or Turn Off Like and View Counts.</p>
101
- <h3>Make a photo collage in your Instagram story or feed</h3>
102
- <p>If you want to share multiple photos in one post or story, you can make a photo collage using Instagram's layout feature. This way, you can showcase different aspects of your brand or business, such as products, services, testimonials, or behind-the-scenes. To make a photo collage in your Instagram story, tap on the plus icon at the bottom of the screen and then tap on Story. Then, swipe left until you see the Layout option and tap on it. You can choose from different layouts and add up to six photos from your gallery. You can also edit them with various tools and effects. To share it, tap on Your Story at the bottom left corner. To make a photo collage in your Instagram feed, tap on the plus icon at the bottom of the screen and then tap on Feed Post. Then, tap on the Layout icon at the bottom right corner and choose from different layouts and add up to nine photos from your gallery. You can also edit them with various tools and effects. To share it, tap on Next and write a caption, add hashtags, tag people, add a location, and choose where you want to post it: your feed only or both your feed and Facebook.</p>
103
- <h3>Use question or poll stickers to interact with your followers</h3>
104
- <p>If you want to get feedback, opinions, suggestions, or insights from your followers, you can use question or poll stickers in your stories. They are a great way to engage with your audience, learn more about them, and create a sense of community around your brand or business. To use question stickers, tap on the sticker icon at the top of the screen when you are creating a story and then tap on the Question sticker. You can type a question for your followers to answer and customize the color and font of the sticker. To share it, tap on Your Story at the bottom left corner. You can see the responses from your followers by swiping up on your story. You can also share some of the responses with your followers by tapping on them and then tapping on Share Response.</p>
105
- <p>To use poll stickers, tap on the sticker icon at the top of the screen when you are creating a story and then tap on the Poll sticker. You can type a question for your followers to vote on and customize the color and font of the sticker. You can also change the default options of Yes/No to something else by tapping on them and typing your own options. To share it, tap on Your Story at the bottom left corner. You can see the results from your followers by swiping up on your story. You can also share the results with your followers by tapping on them and then tapping on Share Results.</p>
106
- <h2>Conclusion and FAQs</h2>
107
- <p>Instagram is a free social media platform that lets you create and share photos, videos, reels, stories, and more with your friends and followers. It also has many features that let you have fun and interact with others, such as live streaming, video chats, direct messages, explore, shop, and more. It also has many tips and tricks that let you boost your engagement and reach, such as adding multiple accounts, scheduling posts, hiding comments, making collages, and using stickers. In this article, we showed you how to download gratis Instagram on your device and how to use its features, tips, and tricks to make the most of it. We hope you found this article helpful and informative. If you have any questions, feel free to ask us in the comment section below. Here are some FAQs that might answer some of your queries:</p>
108
- <h4>FAQs</h4>
109
- <ul>
110
- <li><b>How do I download gratis Instagram for PC?</b></ <li><b>How do I download gratis Instagram for PC?</b></li>
111
- <p>Instagram does not have an official app for PC, but you can use a web browser or an emulator to access it. To use a web browser, go to <a href="">www.instagram.com</a> and log in with your account. You can view, like, comment, and share posts, but you cannot upload photos or videos. To use an emulator, download and install an app that simulates an Android or iOS device on your PC, such as BlueStacks, NoxPlayer, or MEmu. Then, open the emulator and download Instagram from the Google Play Store or the App Store. You can use Instagram as you would on your phone or tablet.</p>
112
- <li><b>How do I download gratis Instagram videos?</b></li>
113
- <p>Instagram does not have a built-in feature to download videos, but you can use a third-party app or tool to do so. Some of these apps or tools are Video Downloader for Instagram, InstaSave, SaveFrom.net, and DownloadGram. To use them, copy the link of the video you want to download and paste it in the app or tool. Then, follow the instructions to save the video to your device.</p>
114
- <li><b>How do I download gratis Instagram photos?</b></li>
115
- <p>Instagram does not have a built-in feature to download photos, but you can use a third-party app or tool to do so. Some of these apps or tools are Photo Downloader for Instagram, InstaSave, SaveFrom.net, and DownloadGram. To use them, copy the link of the photo you want to download and paste it in the app or tool. Then, follow the instructions to save the photo to your device.</p>
116
- <li><b>How do I download gratis Instagram stories?</b></li>
117
- <p>Instagram does not have a built-in feature to download stories, but you can use a third-party app or tool to do so. Some of these apps or tools are Story Saver for Instagram, Story Downloader for Instagram, SaveFrom.net, and StoriesIG. To use them, enter the username of the person whose story you want to download and select the story you want to save. Then, follow the instructions to save the story to your device.</p>
118
- <li><b>How do I download gratis Instagram reels?</b></li>
119
- <p>Instagram does not have a built-in feature to download reels, but you can use a third-party app or tool to do so. Some of these apps or tools are Reels Video Downloader for Instagram, Reels Downloader for Instagram, SaveFrom.net, and DownloadGram. To use them, copy the link of the reel you want to download and paste it in the app or tool. Then, follow the instructions to save the reel to your device.</p> 401be4b1e0<br />
120
- <br />
121
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Watch Dogs 2 APK for Android and Join the Hacker Revolution.md DELETED
@@ -1,115 +0,0 @@
1
- <br />
2
- <h1>Watch Dogs 2 Download APK: How to Play the Open World Adventure Game on Your Android Device</h1>
3
- <p>Watch Dogs 2 is one of the most popular and acclaimed open world adventure games of the last decade. It was released in 2016 by Ubisoft for PlayStation 4, Xbox One, and Microsoft Windows. But did you know that you can also play Watch Dogs 2 on your Android device? In this article, we will show you how to download Watch Dogs 2 APK, the benefits and challenges of playing it on your mobile device, and some tips and tricks to optimize your gaming experience.</p>
4
- <h2>watch dogs 2 download apk</h2><br /><p><b><b>Download File</b> &#10004; <a href="https://jinyurl.com/2uNUnm">https://jinyurl.com/2uNUnm</a></b></p><br /><br />
5
- <h2>What is Watch Dogs 2?</h2>
6
- <p>Watch Dogs 2 is the sequel to Watch Dogs, a game that introduced the concept of hacking as a weapon in a modern and realistic setting. In Watch Dogs 2, you play as Marcus Holloway, a young and talented hacker who joins a group of hacktivists called DedSec. Together, you will expose the secrets and corruption of the powerful corporations and organizations that control the city of San Francisco using the ctOS 2.0 system, a network that connects everything and everyone.</p>
7
- <h3>The story and setting of Watch Dogs 2</h3>
8
- <p>The story of Watch Dogs 2 is set in a fictionalized version of San Francisco, where you can explore various landmarks and districts such as Chinatown, Silicon Valley, Oakland, Marin County, and more. You will encounter different characters and factions, such as rival hackers, gangs, police, media, politicians, and celebrities. You will also uncover a dark conspiracy that threatens the freedom and privacy of millions of people.</p>
9
- <h3>The gameplay and features of Watch Dogs 2</h3>
10
- <p>The gameplay of Watch Dogs 2 is based on hacking, stealth, combat, driving, and parkour. You can hack into various devices and systems, such as cameras, phones, cars, drones, traffic lights, security systems, and more. You can use your hacking skills to manipulate the environment, distract or disable enemies, create diversions, or access information. You can also use various weapons and gadgets, such as guns, tasers, grenades, RC cars, quadcopters, and more. You can choose to play the game in a lethal or non-lethal way, depending on your style and preference.</p>
11
- <p>Watch Dogs 2 also features a dynamic open world that reacts to your actions and choices. You can interact with various NPCs and objects, such as pedestrians, animals, shops, vehicles, etc. You can also participate in various activities and side missions, such as races, puzzles, collectibles, online multiplayer modes, etc. You can customize your character's appearance, skills, equipment, and vehicles.</p>
12
- <p>watch dogs 2 apk free download for android<br />
13
- watch dogs 2 apk obb download latest version<br />
14
- watch dogs 2 apk mod unlimited money<br />
15
- watch dogs 2 apk data offline<br />
16
- watch dogs 2 apk revdl<br />
17
- watch dogs 2 apk andropalace<br />
18
- watch dogs 2 apk highly compressed<br />
19
- watch dogs 2 apk rexdl<br />
20
- watch dogs 2 apk pure<br />
21
- watch dogs 2 apk mirror<br />
22
- watch dogs 2 apk android oyun club<br />
23
- watch dogs 2 apk no verification<br />
24
- watch dogs 2 apk uptodown<br />
25
- watch dogs 2 apk mob.org<br />
26
- watch dogs 2 apk mali<br />
27
- watch dogs 2 apk hack<br />
28
- watch dogs 2 apk full version<br />
29
- watch dogs 2 apk + obb android 1<br />
30
- watch dogs 2 apk + data download for android<br />
31
- watch dogs 2 apk + obb file download<br />
32
- watch dogs 2 apk + obb highly compressed download<br />
33
- watch dogs 2 apk + obb free download for android<br />
34
- watch dogs 2 apk + obb offline download<br />
35
- watch dogs 2 apk + obb mega download<br />
36
- watch dogs 2 apk + obb google drive download<br />
37
- watch dogs 2 apk + data highly compressed android<br />
38
- watch dogs 2 apk + data free download for android<br />
39
- watch dogs 2 apk + data offline play<br />
40
- watch dogs 2 apk + data mega link<br />
41
- watch dogs 2 apk + data google drive link<br />
42
- how to download and install watch dogs 2 apk on android<br />
43
- how to download and play watch dogs 2 apk on pc<br />
44
- how to download and run watch dogs 2 apk on ios<br />
45
- how to download and use watch dogs 2 apk mod menu<br />
46
- how to download and update watch dogs 2 apk latest version<br />
47
- is it possible to download and play watch dogs 2 apk without verification<br />
48
- is it safe to download and install watch dogs 2 apk from unknown sources<br />
49
- is it legal to download and use watch dogs 2 apk modded version<br />
50
- is it worth to download and buy watch dogs 2 apk premium edition<br />
51
- is it fun to download and enjoy watch dogs 2 apk multiplayer mode</p>
52
- <h2>Why download Watch Dogs 2 APK?</h2>
53
- <p>If you are a fan of Watch Dogs 2 or open world adventure games in general, you might want to download Watch Dogs 2 APK for your Android device. Here are some of the benefits and challenges of doing so.</p>
54
- <h3>The benefits of playing Watch Dogs 2 on your Android device</h3>
55
- <ul>
56
- <li>You can play Watch Dogs 2 anytime and anywhere you want. You don't need a console or a PC to enjoy the game. You just need your Android device and an internet connection.</li>
57
- <li>You can save money by downloading Watch Dogs 2 APK for free. You don't need to buy the game or pay for any subscription or service.</li>
58
- <li>You can experience Watch Dogs 2 in a new way. You can use touch controls or connect a controller to your device. You can also adjust the graphics settings to suit your device's performance.</li>
59
- </ul>
60
- <h3>The challenges <h3>The challenges and risks of downloading Watch Dogs 2 APK</h3>
61
- <ul>
62
- <li>You might face some technical issues or bugs while playing Watch Dogs 2 on your Android device. The game might not run smoothly or crash frequently. You might also encounter compatibility or security problems with your device or operating system.</li>
63
- <li>You might violate the terms and conditions of Ubisoft or Google Play by downloading Watch Dogs 2 APK. You might face legal actions or penalties from the developers or the authorities. You might also lose access to the official updates, patches, or online features of the game.</li>
64
- <li>You might expose your device or data to malware or viruses by downloading Watch Dogs 2 APK from untrusted sources. You might also compromise your privacy or security by granting permissions or access to unknown apps or websites.</li>
65
- </ul>
66
- <h2>How to download Watch Dogs 2 APK?</h2>
67
- <p>If you still want to download Watch Dogs 2 APK for your Android device, you need to follow some steps and precautions. Here are some of them.</p>
68
- <h3>The steps to download and install Watch Dogs 2 APK</h3>
69
- <ol>
70
- <li>First, you need to enable the installation of apps from unknown sources on your device. You can do this by going to Settings > Security > Unknown Sources and toggling it on.</li>
71
- <li>Next, you need to find a reliable and safe source to download Watch Dogs 2 APK. You can search online for various websites or blogs that offer the APK file. Make sure to check the reviews, ratings, and comments of other users before downloading anything.</li>
72
- <li>Then, you need to download the Watch Dogs 2 APK file and the OBB data file to your device. The APK file is the application file that contains the game's code and resources. The OBB file is the expansion file that contains the game's data and graphics. You can usually find both files in a zip or rar format.</li>
73
- <li>After that, you need to extract the zip or rar file using a file manager app or a zip extractor app. You will get two folders: one with the APK file and one with the OBB file.</li>
74
- <li>Next, you need to install the Watch Dogs 2 APK file by tapping on it and following the instructions on the screen. You might need to grant some permissions or access to the app during the installation process.</li>
75
- <li>Then, you need to move the OBB file to the right location on your device. You can do this by using a file manager app or a zip extractor app. You need to move the OBB file to the Android > OBB > com.ubisoft.watchdogs2 folder on your device's internal storage. If you don't have this folder, you can create it manually.</li>
76
- <li>Finally, you can launch the Watch Dogs 2 app from your device's app drawer or home screen. You might need to verify your identity or complete some additional steps before playing the game.</li>
77
- </ol>
78
- <h3>The tips and tricks to optimize your gaming experience</h3>
79
- <ul>
80
- <li>Make sure that your device meets the minimum requirements to run Watch Dogs 2 APK. You need at least 4 GB of RAM, 64 GB of storage space, and Android 7.0 or higher.</li>
81
- <li>Make sure that your device has enough battery life and a stable internet connection while playing Watch Dogs 2 APK. You can also use a power bank or a Wi-Fi booster to avoid any interruptions or lags.</li>
82
- <li>Make sure that you adjust the graphics settings and controls of Watch Dogs 2 APK according to your device's performance and preference. You can do this by going to Settings > Graphics and Settings > Controls in the game's menu.</li>
83
- <li>Make sure that you backup your game data and progress regularly while playing Watch Dogs 2 APK. You can do this by using a cloud service or a local storage option in the game's menu.</li>
84
- <li>Make sure that you enjoy Watch Dogs 2 APK responsibly and ethically while playing it on your Android device. You can do this by respecting other players, avoiding piracy, and supporting the developers.</li>
85
- </ul>
86
- <h2>Conclusion</h2>
87
- <p>Watch Dogs 2 is an amazing open world adventure game that lets you hack into anything and everything in San Francisco. You can play it on your Android device by downloading Watch Dogs 2 APK, but you need to be aware of the benefits and challenges of doing so. You also need to follow some steps and precautions to download and install Watch Dogs 2 APK safely and smoothly. And you need to follow some tips and tricks to optimize your gaming experience and have fun.</p>
88
- <p>If you are ready to join Marcus Holloway and DedSec in their quest to expose the truth and fight for freedom, then download Watch Dogs 2 APK now and start hacking!</p>
89
- <h3>Summary <h3>Summary of the main points</h3>
90
- <p>Here are the main points of this article:</p>
91
- <ul>
92
- <li>Watch Dogs 2 is a popular and acclaimed open world adventure game that lets you hack into anything and everything in San Francisco.</li>
93
- <li>You can play Watch Dogs 2 on your Android device by downloading Watch Dogs 2 APK, which is the application file that contains the game's code and resources.</li>
94
- <li>Playing Watch Dogs 2 on your Android device has some benefits, such as convenience, cost-effectiveness, and novelty, but also some challenges, such as technical issues, legal risks, and security threats.</li>
95
- <li>To download and install Watch Dogs 2 APK safely and smoothly, you need to enable the installation of apps from unknown sources, find a reliable and safe source to download the APK file and the OBB data file, extract the zip or rar file, install the APK file, move the OBB file to the right location, and launch the app.</li>
96
- <li>To optimize your gaming experience and have fun, you need to make sure that your device meets the minimum requirements, has enough battery life and a stable internet connection, adjust the graphics settings and controls, backup your game data and progress, and enjoy Watch Dogs 2 responsibly and ethically.</li>
97
- </ul>
98
- <h3>Call to action</h3>
99
- <p>If you liked this article, please share it with your friends and family who are also interested in Watch Dogs 2 or open world adventure games. You can also leave a comment below and let us know what you think about Watch Dogs 2 APK. And if you want to read more articles like this one, please subscribe to our newsletter and follow us on social media. Thank you for reading!</p>
100
- <h2>FAQs</h2>
101
- <p>Here are some of the frequently asked questions about Watch Dogs 2 APK:</p>
102
- <ol>
103
- <li><b>Is Watch Dogs 2 APK safe to download?</b></li>
104
- <p>Watch Dogs 2 APK is safe to download if you follow the steps and precautions mentioned in this article. However, there is always a risk of downloading apps from unknown sources, so you should do it at your own discretion and responsibility.</p>
105
- <li><b>Is Watch Dogs 2 APK free to download?</b></li>
106
- <p>Watch Dogs 2 APK is free to download from various websites or blogs that offer it. However, you should be aware that downloading Watch Dogs 2 APK might violate the terms and conditions of Ubisoft or Google Play, and you might face legal actions or penalties from them.</p>
107
- <li><b>Is Watch Dogs 2 APK compatible with my device?</b></li>
108
- <p>Watch Dogs 2 APK is compatible with most Android devices that have at least 4 GB of RAM, 64 GB of storage space, and Android 7.0 or higher. However, some devices might not be able to run Watch Dogs 2 APK smoothly or at all due to different specifications or performance issues.</p>
109
- <li><b>How can I update Watch Dogs 2 APK?</b></li>
110
- <p>You can update Watch Dogs 2 APK by downloading the latest version of the APK file and the OBB data file from the same source that you downloaded them before. You can then follow the same steps to install and move them to your device. However, you should be aware that updating Watch Dogs 2 APK might not be possible or compatible with your device or game data.</p>
111
- <li><b>How can I contact Ubisoft or Google Play if I have any problems or questions about Watch Dogs 2 APK?</b></li>
112
- <p>You can contact Ubisoft or Google Play by visiting their official websites or social media accounts. You can also use their customer service or support channels to get help or feedback. However, you should be aware that Ubisoft or Google Play might not be able to help you or answer your questions about Watch Dogs 2 APK since it is not an official or authorized app.</p>
113
- </ol></p> 197e85843d<br />
114
- <br />
115
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download YouTube Playlist with These Reddit-Approved Tools and Tips.md DELETED
@@ -1,173 +0,0 @@
1
- <br />
2
- <h1>How to Download YouTube Playlists from Reddit</h1>
3
- <p>If you are looking for some interesting and useful YouTube playlists to watch or listen to, you might want to check out reddit. Reddit is a popular online community where people share and discuss all kinds of topics, including YouTube playlists. You can find playlists for music, movies, documentaries, tutorials, podcasts, and more on reddit.</p>
4
- <p>But how do you download these playlists from reddit? One of the best tools for downloading YouTube playlists is youtube-dl. Youtube-dl is a powerful and versatile command-line program that allows you to download videos from YouTube and hundreds of other sites. You can download videos in any quality and format, with subtitles, metadata, thumbnails, and more.</p>
5
- <h2>reddit download youtube playlist</h2><br /><p><b><b>Download File</b> === <a href="https://jinyurl.com/2uNMAr">https://jinyurl.com/2uNMAr</a></b></p><br /><br />
6
- <p>In this article, we will show you how to install youtube-dl and ffmpeg on your computer, how to use youtube-dl commands to download YouTube playlists, and how to find YouTube playlists on reddit. By the end of this article, you will be able to download any YouTube playlist from reddit with ease.</p>
7
- <h2>Introduction</h2>
8
- <h3>What is reddit and how it can help you find YouTube playlists <h3>What is reddit and how it can help you find YouTube playlists</h3>
9
- <p>Reddit is a website where users can post, vote, and comment on various types of content, such as links, images, videos, text, and more. Reddit is divided into thousands of subreddits, which are communities dedicated to specific topics or interests. For example, there are subreddits for music, movies, gaming, science, politics, and more.</p>
10
- <p>Reddit can help you find YouTube playlists because many users share and recommend playlists on different subreddits. You can find playlists for any genre, mood, theme, or occasion on reddit. For example, you can find playlists for relaxing, studying, working out, partying, traveling, and more. You can also find playlists for specific artists, albums, songs, or genres.</p>
11
- <p>Reddit can also help you discover new and interesting playlists that you might not find elsewhere. You can browse through the posts and comments of other users and see what they like and dislike. You can also ask for suggestions or feedback on your own playlists. You can also participate in challenges, contests, polls, and discussions related to YouTube playlists on reddit.</p>
12
- <h3>What is youtube-dl and why it is the best tool for downloading YouTube playlists</h3>
13
- <p>Youtube-dl is a free and open-source command-line program that allows you to download videos from YouTube and hundreds of other sites. Youtube-dl is written in Python and works on Windows, Mac OS X, Linux, and other platforms. You can download youtube-dl from [4](https://youtube-dl.org/).</p>
14
- <p>Youtube-dl is the best tool for downloading YouTube playlists because it offers many features and options that make it easy and convenient to download any playlist you want. Some of the features and options of youtube-dl are:</p>
15
- <ul>
16
- <li>You can download a single video, a playlist, or a channel with a single command.</li>
17
- <li>You can choose the best video and audio quality and format for your downloads.</li>
18
- <li>You can customize the output file name and location for your downloads.</li>
19
- <li>You can download videos with subtitles, metadata, thumbnails, and more.</li>
20
- <li>You can resume interrupted downloads and skip already downloaded files.</li>
21
- <li>You can download videos from other sites besides YouTube with youtube-dl.</li>
22
- <li>You can update youtube-dl to the latest version with a simple command.</li>
23
- <li>You can use youtube-dl with a GUI wrapper or a web interface if you prefer a graphical user interface.</li>
24
- </ul>
25
- <p>Youtube-dl is also fast, reliable, secure, and easy to use. You just need to copy and paste the URL of the video or playlist you want to download and run the appropriate command in your terminal or command prompt. Youtube-dl will do the rest for you.</p>
26
- <p>reddit youtube playlist downloader free<br />
27
- reddit best way to download youtube playlist<br />
28
- reddit how to download entire youtube playlist<br />
29
- reddit youtube-dl download playlist<br />
30
- reddit download youtube playlist mp3<br />
31
- reddit download youtube playlist mp4<br />
32
- reddit download youtube playlist 4k<br />
33
- reddit download youtube playlist offline<br />
34
- reddit download youtube playlist with subtitles<br />
35
- reddit download youtube playlist in order<br />
36
- reddit download youtube playlist highest quality<br />
37
- reddit download youtube playlist linux<br />
38
- reddit download youtube playlist windows<br />
39
- reddit download youtube playlist mac<br />
40
- reddit download youtube playlist android<br />
41
- reddit download youtube playlist ios<br />
42
- reddit download youtube playlist ffmpeg<br />
43
- reddit download youtube playlist python<br />
44
- reddit download youtube playlist script<br />
45
- reddit download youtube playlist gui<br />
46
- reddit download youtube playlist batch file<br />
47
- reddit download youtube playlist command line<br />
48
- reddit download youtube playlist powershell<br />
49
- reddit download youtube playlist terminal<br />
50
- reddit download youtube playlist chrome extension<br />
51
- reddit download youtube playlist firefox addon<br />
52
- reddit download youtube playlist online tool<br />
53
- reddit download youtube playlist website<br />
54
- reddit download youtube playlist software<br />
55
- reddit download youtube playlist app<br />
56
- reddit download youtube playlist music only<br />
57
- reddit download youtube playlist video only<br />
58
- reddit download youtube playlist audio only<br />
59
- reddit download youtube playlist metadata<br />
60
- reddit download youtube playlist thumbnails<br />
61
- reddit download youtube playlist annotations<br />
62
- reddit download youtube playlist comments<br />
63
- reddit download youtube playlist description<br />
64
- reddit download youtube playlist channel name<br />
65
- reddit download youtube playlist upload date<br />
66
- reddit download youtube playlist views count<br />
67
- reddit download youtube playlist likes count<br />
68
- reddit download youtube playlist dislikes count<br />
69
- reddit download youtube playlist duration time<br />
70
- reddit download youtube playlist file size<br />
71
- reddit download youtube playlist file name<br />
72
- reddit download youtube playlist file format<br />
73
- reddit download youtube playlist file location<br />
74
- reddit download youtube playlist file transfer</p>
75
- <h3>How to install youtube-dl and ffmpeg on your computer</h3>
76
- <p>To use youtube-dl to download YouTube playlists from reddit, you need to install youtube-dl and ffmpeg on your computer. Ffmpeg is a software that youtube-dl uses to convert video and audio files to different formats. You can download ffmpeg from [3](https://ffmpeg.org/download.html).</p>
77
- <p>The installation process of youtube-dl and ffmpeg varies depending on your operating system. Here are the general steps for installing youtube-dl and ffmpeg on Windows, Mac OS X, and Linux:</p>
78
- <h4>Windows</h4>
79
- <ol>
80
- <li>Download the latest youtube-dl.exe file from [2](https://youtube-dl.org/downloads/latest/youtube-dl.exe) and save it in a folder of your choice.</li>
81
- <li>Download the latest ffmpeg.zip file from [1](https://www.gyan.dev/ffmpeg/builds/) (choose the static build) and extract it in the same folder as youtube-dl.exe.</li>
82
- <li>Add the folder where you saved youtube-dl.exe and ffmpeg.exe to your system's PATH environment variable. You can follow this guide on [0](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/) how to do that.</li>
83
- <li>Open a terminal or command prompt window and type youtube-dl -h to check if youtube-dl is working properly.</li>
84
- </ol>
85
- <h4>Mac OS X</h4>
86
- <ol>
87
- <li>Install Homebrew if you don't have it already. Homebrew is a package manager that makes it easy to install software on Mac OS X. You can follow this guide on [11](https://brew.sh/) how to install Homebrew.</li>
88
- <li>Open a terminal window and type brew install youtube-dl ffmpeg to install youtube-dl and ffmpeg with Homebrew.</li>
89
- <li>Type youtube-dl -h to check if youtube-dl is working properly.</li>
90
- </ <h4>Linux</h4>
91
- <ol>
92
- <li>Open a terminal window and type sudo apt-get update to update your system's package list.</li>
93
- <li>Type sudo apt-get install youtube-dl ffmpeg to install youtube-dl and ffmpeg with your system's package manager.</li>
94
- <li>Type youtube-dl -h to check if youtube-dl is working properly.</li>
95
- </ol>
96
- <h2>How to Download YouTube Playlists with youtube-dl</h2>
97
- <p>Now that you have installed youtube-dl and ffmpeg on your computer, you are ready to download YouTube playlists with youtube-dl. Here are the basic steps for downloading YouTube playlists with youtube-dl:</p>
98
- <h3>How to use youtube-dl commands to download a single video, a playlist, or a channel</h3>
99
- <p>The basic syntax for downloading a single video, a playlist, or a channel with youtube-dl is:</p>
100
- <pre><code>youtube-dl [OPTIONS] URL </code></pre>
101
- <p>Where URL is the URL of the video, playlist, or channel you want to download, and OPTIONS are the optional parameters you can use to customize your download. For example, you can use the following command to download the first 10 videos of a playlist:</p>
102
- <pre><code>youtube-dl --playlist-end 10 https://www.youtube.com/playlist?list=PL4o29bINVT4EG_y-k5jGoOu3-Am8Nvi10 </code></pre>
103
- <p>You can find the URL of the video, playlist, or channel you want to download by copying it from your browser's address bar or by right-clicking on the video or playlist and selecting Copy link address. You can also use the URL of a reddit post or comment that contains a link to a YouTube video or playlist.</p>
104
- <h3>How to choose the best video and audio quality and format for your downloads</h3>
105
- <p>By default, youtube-dl will download the best available quality and format for your videos. However, you can also specify the quality and format you want by using the -f or --format option. The syntax for using the -f option is:</p>
106
- <pre><code>youtube-dl -f FORMAT [OPTIONS] URL </code></pre>
107
- <p>Where FORMAT is a code that represents the video and audio quality and format you want. You can find the list of available formats for a video by using the -F or --list-formats option. For example, you can use the following command to see the available formats for a video:</p>
108
- <pre><code>youtube-dl -F https://www.youtube.com/watch?v=dQw4w9WgXcQ </code></pre>
109
- <p>This will output something like this:</p>
110
- <pre><code>[youtube] dQw4w9WgXcQ: Downloading webpage [info] Available formats for dQw4w9WgXcQ: format code extension resolution note 249 webm audio only tiny 57k , opus @ 50k (48000Hz), 1.95MiB 250 webm audio only tiny 76k , opus @ 70k (48000Hz), 2.59MiB 140 m4a audio only tiny 130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 5.28MiB 251 webm audio only tiny 149k , opus @160k (48000Hz), 5.07MiB 394 mp4 256x144 144p 83k , av01.0.05M.08, 25fps, video only, 2.77MiB 278 webm 256x144 144p 95k , webm container, vp9, 25fps, video only, 3.19MiB 160 mp4 256x144 144p 99k , avc1.4d400c, 25fps, video only, 2.11MiB 395 mp4 426x240 240p 184k , av01.0.05M.08, 25fps, video only, 5.02MiB 242 webm 426x240 240p 220k , vp9, 25fps, video only, 5.88MiB 133 mp4 426x240 240p 242k , avc1.4d4015, 25fps, video only, 4.11MiB 396 mp4 640x360 360p 338k , av01.0.05M.08, 25fps, video only, 9.12MiB 243 webm 640x360 360p 404k , vp9, 25fps, video only, 10.67MiB 134 mp4 640x360 360p 465k , avc1.4d401e, 25fps, video only, 7.88MiB 397 mp4 854x480 480p 617k , av01.0.05M.08, 25fps, video only, 16.57MiB 244 webm 854x480 480p 752k , vp9, 25fps, video only, 19.72MiB 135 mp4 854x480 480p 1016k , avc1.4d401f, 25fps, video only, 17.13MiB 398 mp4 1280x720 720p60 1138k , av01.0.08M.08, 60fps, video only, 30.57MiB 247 webm 1280x720 720p60 1165k , vp9, 60fps, video only, 30.79MiB 136 mp4 1280x720 720p60 2326k , avc1.4d4020, fps=60, video only, 39.27MiB 399 mp4 1920x1080 (best) </code></pre>
111
- <p>The format code consists of the extension (such as mp4 or webm), the resolution (such as 640x360 or 1280x720), and the note (such as audio only or video only). You can choose the format code that suits your needs and preferences.</p>
112
- <p>For example, if you want to download the video in the highest quality and resolution available, you can use the following command:</p>
113
- <pre><code>youtube-dl -f best https://www.youtube.com/watch?v=dQw4w9WgXcQ </code></pre>
114
- <p>If you want to download the video in a specific resolution and format, such as mp4 and 720p60, you can use the following command:</p>
115
- <pre><code>youtube-dl -f mp4-720p60 https://www.youtube.com/watch?v=dQw4w9WgXcQ </code></pre>
116
- <p>If you want to download the video and audio separately and then merge them into a single file, you can use the following command:</p>
117
- <pre><code>youtube-dl -f bestvideo+bestaudio https://www.youtube.com/watch?v=dQw4w9WgXcQ </code></pre>
118
- <p>This will download the best video and audio formats available and then combine them with ffmpeg.</p>
119
- <h3>How to customize the output file name and location for your downloads</h3>
120
- <p>By default, youtube-dl will save your downloads in the current working directory with the original file name of the video or playlist. However, you can also customize the output file name and location for your downloads by using the -o or --output option. The syntax for using the -o option is:</p>
121
- <pre><code>youtube-dl -o TEMPLATE [OPTIONS] URL </code></pre>
122
- <p>Where TEMPLATE is a string that defines how you want to name and organize your downloads. You can use various variables and placeholders in your template to include information such as title, id, uploader, date, resolution, format, etc. You can find the list of available variables and placeholders on [12](https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template).</p>
123
- <p>For example, if you want to save your downloads in a folder named YouTube with the format of title-id.extension, you can use the following command:</p>
124
- <pre><code>youtube-dl -o YouTube/%(title)s-%(id)s.%(ext)s [OPTIONS] URL </code></pre>
125
- <p>This will create a folder named YouTube in your current working directory and save your downloads with names like Rick Astley - Never Gonna Give You Up-dQw4w9WgXcQ.mp4.</p>
126
- <h3>How to download videos with subtitles, metadata, and thumbnails</h3>
127
- <p>Youtube-dl can also download videos with subtitles, metadata, and thumbnails if they are available on YouTube. Subtitles are text files that contain the dialogue or narration of the video. Metadata are information files that contain details such as title, description, tags, rating, etc. Thumbnails are image files that show a preview of the video.</p>
128
- <p>To download videos with subtitles, you can use the --write-sub or --write-auto-sub options. The --write-sub option will download the subtitles that are manually created by the uploader or the community. The --write-auto-sub option will download the subtitles that are automatically generated by YouTube. You can also use the --sub-lang option to specify the language of the subtitles you want to download. For example, you can use the following command to download videos with English subtitles:</p>
129
- <pre><code>youtube-dl --write-sub --sub-lang en [OPTIONS] URL </code></pre>
130
- <p>To download videos with metadata, you can use the --write-info-json or --write-description options. The --write-info-json option will download a JSON file that contains all the metadata of the video. The --write-description option will download a text file that contains the description of the video. You can also use the --add-metadata option to embed the metadata into the video file itself. For example, you can use the following command to download videos with metadata:</p>
131
- <pre><code>youtube-dl --write-info-json --write-description --add-metadata [OPTIONS] URL </code></pre>
132
- <p>To download videos with thumbnails, you can use the --write-thumbnail option. This will download a JPEG or PNG file that shows a preview of the video. You can also use the --embed-thumbnail option to embed the thumbnail into the video file itself. For example, you can use the following command to download videos with thumbnails:</p>
133
- <pre><code>youtube-dl --write-thumbnail --embed-thumbnail [OPTIONS] URL </code></pre>
134
- <h2>How to Find YouTube Playlists on Reddit</h2>
135
- <p>Now that you know how to download YouTube playlists with youtube-dl, you might wonder how to find YouTube playlists on reddit. There are many ways to find YouTube playlists on reddit, but here are some of the most common and effective ones:</p>
136
- <h3>How to use reddit search and filters to find relevant posts and subreddits</h3>
137
- <p>One of the easiest ways to find YouTube playlists on reddit is to use reddit search and filters. Reddit search allows you to search for keywords or phrases across all subreddits or within a specific subreddit. You can also use filters to narrow down your search results by relevance, date, popularity, etc.</p>
138
- <p>For example, if you want to find YouTube playlists for relaxing music, you can type relaxing music playlist in the reddit search bar and hit enter. This will show you all the posts that contain these words in any subreddit. You can then use the filters on the top or side of the page to sort or filter your results by relevance, new, hot, top, etc.</p>
139
- <p>If you want to find YouTube playlists for relaxing music in a specific subreddit, such as r/Music, you can type relaxing music playlist subreddit:Music in the reddit search bar and hit enter. This will show you all the posts that contain these words in r/Music only.</p>
140
- <p>You can also use other filters and operators in your reddit search queries to refine your results further. For example, you can use quotation marks to search for an exact phrase, such as "relaxing music playlist". You can use a minus sign to exclude a word or phrase from your search results, such as relaxing music playlist -spotify. You can use OR to search for multiple words or phrases at once, such as relaxing music playlist OR ambient music playlist. You can find more information on how to use reddit search and filters on [13](https://www.reddit.com/wiki/search).</p>
141
- <h3>How to use reddit comments and upvotes to find the best playlists</h3>
142
- <p>Another way to find YouTube playlists on reddit is to use reddit comments and upvotes. Reddit comments are where users share their opinions, feedback, suggestions, questions, and answers on various posts. Reddit upvotes are where users express their approval or appreciation of a post or comment by clicking on an arrow icon.</p>
143
- <p>You can use reddit comments and upvotes to find the best playlists by reading what other users have to say about them and seeing how popular they are. For example, if you find a post that links to a YouTube playlist for relaxing music, you can read the comments section and see what other users think about it. You can also see how many upvotes or downvotes it has received and how it ranks among other posts.</p>
144
- <p>You can also use reddit comments and upvotes to ask for recommendations or feedback on your own playlists or share your own playlists with others. For example, if you have created a YouTube playlist for relaxing music and want some suggestions on how to improve it or what other songs to add, you can post it on a relevant subreddit and ask for feedback from other users. You can also browse through other users' playlists and comment on them or upvote them if you like them.</p>
145
- <h3>How to use reddit bots and tools to enhance your reddit experience</h3>
146
- <p>A third way to find YouTube playlists on reddit is to use reddit bots and tools. Reddit bots are automated programs that perform specific tasks or functions on reddit, such as replying to comments, posting links, providing information, etc. Reddit tools are websites or applications that provide additional features or services for reddit users, such as searching, filtering, analyzing, etc.</p>
147
- <p>You can use reddit bots and tools to enhance your reddit experience by making it easier, faster, or more fun to find YouTube playlists on reddit. For example, you can use the following bots and tools:</p>
148
- <ul>
149
- <li>[14](https://reddit.musicplayer.io/) is a website that allows you to play YouTube playlists from reddit posts or comments in a simple and elegant interface. You can also create your own playlists from reddit links and share them with others.</li>
150
- <li>[15](https://www.reddit.com/user/Reddit-Playlister) is a bot that creates Spotify playlists from YouTube links posted on reddit. You can summon the bot by commenting !playlist on a post or comment that contains YouTube links. The bot will reply with a link to a Spotify playlist that contains the same songs as the YouTube links.</li>
151
- <li>[16](https://www.reddit.com/user/playlistbot) is a bot that creates YouTube playlists from reddit posts or comments that contain multiple YouTube links. You can summon the bot by commenting !playlist on a post or comment that contains YouTube links. The bot will reply with a link to a YouTube playlist that contains all the YouTube links.</li>
152
- <li>[17](https://www.reddit.com/r/RedditPlaylists/) is a subreddit where users share and request YouTube playlists from reddit. You can browse through the posts and comments and find playlists for various topics and genres. You can also post your own playlists or requests for playlists.</li>
153
- </ul>
154
- <h2>Conclusion</h2>
155
- <p>In this article, we have shown you how to download YouTube playlists from reddit with youtube-dl. We have also shown you how to install youtube-dl and ffmpeg on your computer, how to use youtube-dl commands to download YouTube playlists, and how to find YouTube playlists on reddit. By following these steps, you will be able to download any YouTube playlist from reddit with ease.</p>
156
- <p>Downloading YouTube playlists from reddit can be a great way to enjoy and discover new and interesting content on YouTube. You can find playlists for any topic, genre, mood, or occasion on reddit. You can also share your own playlists or ask for recommendations or feedback from other users. You can also use youtube-dl to download videos from other sites besides YouTube with youtube-dl.</p>
157
- <p>If you are looking for a simple and convenient way to download YouTube playlists from reddit without using commands, you might want to check out [18](https://www.youtubedownloader.com/). This is a website that allows you to download videos and playlists from YouTube and other sites with just a few clicks. You can also convert videos to different formats, edit videos, burn DVDs, and more.</p>
158
- <p>We hope you found this article helpful and informative. If you have any questions or comments, please feel free to leave them below. Thank you for reading!</p>
159
- <h2>FAQs</h2>
160
- <ul>
161
- <li><b>Q: Is youtube-dl legal and safe to use?</b></li>
162
- <li>A: youtube-dl is legal and safe to use as long as you respect the terms of service of YouTube and the content creators. You should only download videos for personal use and not distribute them without permission.</li>
163
- <li><b>Q: How can I update youtube-dl to the latest version?</b></li>
164
- <li>A: You can update youtube-dl by running the command youtube-dl -U in your terminal or command prompt. You can also download the latest version from [19](https://github.com/ytdl-org/youtube-dl/releases/latest).</li>
165
- <li><b>Q: How can I download videos from other sites besides YouTube with youtube-dl?</b></li>
166
- <li>A: youtube-dl supports hundreds of sites besides YouTube. You can find the list of supported sites by running the command youtube-dl --list-extractors in your terminal or command prompt. You can also check the documentation on [20](https://github.com/ytdl-org/youtube-dl/blob/master/README.md#readme).</li>
167
- <li><b>Q: How can I download videos faster with youtube-dl?</b></li>
168
- <li>A: You can download videos faster with youtube-dl by using the --external-downloader option and specifying a faster downloader such as aria2c or axel. For example, you can run the command youtube-dl --external-downloader aria2c [8](https://www.youtube.com/watch?v=dQw4w9WgXcQ) to download a video with aria2c.</li>
169
- <li><b>Q: How can I download videos with a GUI instead of using commands with youtube-dl?</b></li>
170
- <li>A: You can download videos with a GUI instead of using commands with youtube-dl by using one of the many GUI wrappers available for youtube-dl. Some examples are [21](https://github.com/MrS0m30n3/youtube-dl-gui), [22](https://github.com/oleksis/youtube-dl-gui), and [23](https://github.com/jely2002/youtube-dl-gui).</li>
171
- </ul></p> 197e85843d<br />
172
- <br />
173
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIConsultant/MusicGen/audiocraft/data/music_dataset.py DELETED
@@ -1,270 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- # All rights reserved.
3
- #
4
- # This source code is licensed under the license found in the
5
- # LICENSE file in the root directory of this source tree.
6
- """Dataset of music tracks with rich metadata.
7
- """
8
- from dataclasses import dataclass, field, fields, replace
9
- import gzip
10
- import json
11
- import logging
12
- from pathlib import Path
13
- import random
14
- import typing as tp
15
-
16
- import torch
17
-
18
- from .info_audio_dataset import (
19
- InfoAudioDataset,
20
- AudioInfo,
21
- get_keyword_list,
22
- get_keyword,
23
- get_string
24
- )
25
- from ..modules.conditioners import (
26
- ConditioningAttributes,
27
- JointEmbedCondition,
28
- WavCondition,
29
- )
30
- from ..utils.utils import warn_once
31
-
32
-
33
- logger = logging.getLogger(__name__)
34
-
35
-
36
- @dataclass
37
- class MusicInfo(AudioInfo):
38
- """Segment info augmented with music metadata.
39
- """
40
- # music-specific metadata
41
- title: tp.Optional[str] = None
42
- artist: tp.Optional[str] = None # anonymized artist id, used to ensure no overlap between splits
43
- key: tp.Optional[str] = None
44
- bpm: tp.Optional[float] = None
45
- genre: tp.Optional[str] = None
46
- moods: tp.Optional[list] = None
47
- keywords: tp.Optional[list] = None
48
- description: tp.Optional[str] = None
49
- name: tp.Optional[str] = None
50
- instrument: tp.Optional[str] = None
51
- # original wav accompanying the metadata
52
- self_wav: tp.Optional[WavCondition] = None
53
- # dict mapping attributes names to tuple of wav, text and metadata
54
- joint_embed: tp.Dict[str, JointEmbedCondition] = field(default_factory=dict)
55
-
56
- @property
57
- def has_music_meta(self) -> bool:
58
- return self.name is not None
59
-
60
- def to_condition_attributes(self) -> ConditioningAttributes:
61
- out = ConditioningAttributes()
62
- for _field in fields(self):
63
- key, value = _field.name, getattr(self, _field.name)
64
- if key == 'self_wav':
65
- out.wav[key] = value
66
- elif key == 'joint_embed':
67
- for embed_attribute, embed_cond in value.items():
68
- out.joint_embed[embed_attribute] = embed_cond
69
- else:
70
- if isinstance(value, list):
71
- value = ' '.join(value)
72
- out.text[key] = value
73
- return out
74
-
75
- @staticmethod
76
- def attribute_getter(attribute):
77
- if attribute == 'bpm':
78
- preprocess_func = get_bpm
79
- elif attribute == 'key':
80
- preprocess_func = get_musical_key
81
- elif attribute in ['moods', 'keywords']:
82
- preprocess_func = get_keyword_list
83
- elif attribute in ['genre', 'name', 'instrument']:
84
- preprocess_func = get_keyword
85
- elif attribute in ['title', 'artist', 'description']:
86
- preprocess_func = get_string
87
- else:
88
- preprocess_func = None
89
- return preprocess_func
90
-
91
- @classmethod
92
- def from_dict(cls, dictionary: dict, fields_required: bool = False):
93
- _dictionary: tp.Dict[str, tp.Any] = {}
94
-
95
- # allow a subset of attributes to not be loaded from the dictionary
96
- # these attributes may be populated later
97
- post_init_attributes = ['self_wav', 'joint_embed']
98
- optional_fields = ['keywords']
99
-
100
- for _field in fields(cls):
101
- if _field.name in post_init_attributes:
102
- continue
103
- elif _field.name not in dictionary:
104
- if fields_required and _field.name not in optional_fields:
105
- raise KeyError(f"Unexpected missing key: {_field.name}")
106
- else:
107
- preprocess_func: tp.Optional[tp.Callable] = cls.attribute_getter(_field.name)
108
- value = dictionary[_field.name]
109
- if preprocess_func:
110
- value = preprocess_func(value)
111
- _dictionary[_field.name] = value
112
- return cls(**_dictionary)
113
-
114
-
115
- def augment_music_info_description(music_info: MusicInfo, merge_text_p: float = 0.,
116
- drop_desc_p: float = 0., drop_other_p: float = 0.) -> MusicInfo:
117
- """Augment MusicInfo description with additional metadata fields and potential dropout.
118
- Additional textual attributes are added given probability 'merge_text_conditions_p' and
119
- the original textual description is dropped from the augmented description given probability drop_desc_p.
120
-
121
- Args:
122
- music_info (MusicInfo): The music metadata to augment.
123
- merge_text_p (float): Probability of merging additional metadata to the description.
124
- If provided value is 0, then no merging is performed.
125
- drop_desc_p (float): Probability of dropping the original description on text merge.
126
- if provided value is 0, then no drop out is performed.
127
- drop_other_p (float): Probability of dropping the other fields used for text augmentation.
128
- Returns:
129
- MusicInfo: The MusicInfo with augmented textual description.
130
- """
131
- def is_valid_field(field_name: str, field_value: tp.Any) -> bool:
132
- valid_field_name = field_name in ['key', 'bpm', 'genre', 'moods', 'instrument', 'keywords']
133
- valid_field_value = field_value is not None and isinstance(field_value, (int, float, str, list))
134
- keep_field = random.uniform(0, 1) < drop_other_p
135
- return valid_field_name and valid_field_value and keep_field
136
-
137
- def process_value(v: tp.Any) -> str:
138
- if isinstance(v, (int, float, str)):
139
- return str(v)
140
- if isinstance(v, list):
141
- return ", ".join(v)
142
- else:
143
- raise ValueError(f"Unknown type for text value! ({type(v), v})")
144
-
145
- description = music_info.description
146
-
147
- metadata_text = ""
148
- if random.uniform(0, 1) < merge_text_p:
149
- meta_pairs = [f'{_field.name}: {process_value(getattr(music_info, _field.name))}'
150
- for _field in fields(music_info) if is_valid_field(_field.name, getattr(music_info, _field.name))]
151
- random.shuffle(meta_pairs)
152
- metadata_text = ". ".join(meta_pairs)
153
- description = description if not random.uniform(0, 1) < drop_desc_p else None
154
- logger.debug(f"Applying text augmentation on MMI info. description: {description}, metadata: {metadata_text}")
155
-
156
- if description is None:
157
- description = metadata_text if len(metadata_text) > 1 else None
158
- else:
159
- description = ". ".join([description.rstrip('.'), metadata_text])
160
- description = description.strip() if description else None
161
-
162
- music_info = replace(music_info)
163
- music_info.description = description
164
- return music_info
165
-
166
-
167
- class Paraphraser:
168
- def __init__(self, paraphrase_source: tp.Union[str, Path], paraphrase_p: float = 0.):
169
- self.paraphrase_p = paraphrase_p
170
- open_fn = gzip.open if str(paraphrase_source).lower().endswith('.gz') else open
171
- with open_fn(paraphrase_source, 'rb') as f: # type: ignore
172
- self.paraphrase_source = json.loads(f.read())
173
- logger.info(f"loaded paraphrasing source from: {paraphrase_source}")
174
-
175
- def sample_paraphrase(self, audio_path: str, description: str):
176
- if random.random() >= self.paraphrase_p:
177
- return description
178
- info_path = Path(audio_path).with_suffix('.json')
179
- if info_path not in self.paraphrase_source:
180
- warn_once(logger, f"{info_path} not in paraphrase source!")
181
- return description
182
- new_desc = random.choice(self.paraphrase_source[info_path])
183
- logger.debug(f"{description} -> {new_desc}")
184
- return new_desc
185
-
186
-
187
- class MusicDataset(InfoAudioDataset):
188
- """Music dataset is an AudioDataset with music-related metadata.
189
-
190
- Args:
191
- info_fields_required (bool): Whether to enforce having required fields.
192
- merge_text_p (float): Probability of merging additional metadata to the description.
193
- drop_desc_p (float): Probability of dropping the original description on text merge.
194
- drop_other_p (float): Probability of dropping the other fields used for text augmentation.
195
- joint_embed_attributes (list[str]): A list of attributes for which joint embedding metadata is returned.
196
- paraphrase_source (str, optional): Path to the .json or .json.gz file containing the
197
- paraphrases for the description. The json should be a dict with keys are the
198
- original info path (e.g. track_path.json) and each value is a list of possible
199
- paraphrased.
200
- paraphrase_p (float): probability of taking a paraphrase.
201
-
202
- See `audiocraft.data.info_audio_dataset.InfoAudioDataset` for full initialization arguments.
203
- """
204
- def __init__(self, *args, info_fields_required: bool = True,
205
- merge_text_p: float = 0., drop_desc_p: float = 0., drop_other_p: float = 0.,
206
- joint_embed_attributes: tp.List[str] = [],
207
- paraphrase_source: tp.Optional[str] = None, paraphrase_p: float = 0,
208
- **kwargs):
209
- kwargs['return_info'] = True # We require the info for each song of the dataset.
210
- super().__init__(*args, **kwargs)
211
- self.info_fields_required = info_fields_required
212
- self.merge_text_p = merge_text_p
213
- self.drop_desc_p = drop_desc_p
214
- self.drop_other_p = drop_other_p
215
- self.joint_embed_attributes = joint_embed_attributes
216
- self.paraphraser = None
217
- if paraphrase_source is not None:
218
- self.paraphraser = Paraphraser(paraphrase_source, paraphrase_p)
219
-
220
- def __getitem__(self, index):
221
- wav, info = super().__getitem__(index)
222
- info_data = info.to_dict()
223
- music_info_path = Path(info.meta.path).with_suffix('.json')
224
-
225
- if Path(music_info_path).exists():
226
- with open(music_info_path, 'r') as json_file:
227
- music_data = json.load(json_file)
228
- music_data.update(info_data)
229
- music_info = MusicInfo.from_dict(music_data, fields_required=self.info_fields_required)
230
- if self.paraphraser is not None:
231
- music_info.description = self.paraphraser.sample(music_info.meta.path, music_info.description)
232
- if self.merge_text_p:
233
- music_info = augment_music_info_description(
234
- music_info, self.merge_text_p, self.drop_desc_p, self.drop_other_p)
235
- else:
236
- music_info = MusicInfo.from_dict(info_data, fields_required=False)
237
-
238
- music_info.self_wav = WavCondition(
239
- wav=wav[None], length=torch.tensor([info.n_frames]),
240
- sample_rate=[info.sample_rate], path=[info.meta.path], seek_time=[info.seek_time])
241
-
242
- for att in self.joint_embed_attributes:
243
- att_value = getattr(music_info, att)
244
- joint_embed_cond = JointEmbedCondition(
245
- wav[None], [att_value], torch.tensor([info.n_frames]),
246
- sample_rate=[info.sample_rate], path=[info.meta.path], seek_time=[info.seek_time])
247
- music_info.joint_embed[att] = joint_embed_cond
248
-
249
- return wav, music_info
250
-
251
-
252
- def get_musical_key(value: tp.Optional[str]) -> tp.Optional[str]:
253
- """Preprocess key keywords, discarding them if there are multiple key defined."""
254
- if value is None or (not isinstance(value, str)) or len(value) == 0 or value == 'None':
255
- return None
256
- elif ',' in value:
257
- # For now, we discard when multiple keys are defined separated with comas
258
- return None
259
- else:
260
- return value.strip().lower()
261
-
262
-
263
- def get_bpm(value: tp.Optional[str]) -> tp.Optional[float]:
264
- """Preprocess to a float."""
265
- if value is None:
266
- return None
267
- try:
268
- return float(value)
269
- except ValueError:
270
- return None
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ANLPRL/NER_On_Oral_Medicine/app.py DELETED
@@ -1,96 +0,0 @@
1
- from transformers import AutoTokenizer, TFAutoModel
2
- import tensorflow as tf
3
- #from keras.preprocessing.sequence import pad_sequences
4
- from tensorflow.keras.preprocessing.sequence import pad_sequences
5
- import pickle
6
- import numpy as np
7
- from keras.models import load_model
8
- import streamlit as st
9
- import io
10
- import PyPDF2
11
- import re
12
- from PIL import Image
13
-
14
- image = Image.open('header-image.png')
15
- st.image(image)
16
-
17
-
18
- def preprocess(text):
19
- # Define a regular expression pattern for URLs, non-alphabetic characters, and user names
20
- pattern = re.compile(r'https?://\S+|[^0-9A-Za-z\' t]|@\w+')
21
- # Use the regular expression to find all URLs, non-alphabetic characters, and user names in the text
22
- matches = pattern.findall(text)
23
- #Replace the URLs, non-alphabetic characters, and user names with an empty string
24
- for match in matches:
25
- text = text.replace(match, ' ')
26
- return text
27
-
28
-
29
-
30
- def predict(new_data):
31
- #Load the trained model
32
- # Create a LabelEncoder object
33
- with open("labelencoder1.pkl", 'rb') as f:
34
- le = pickle.load(f)
35
- model= tf.keras.models.load_model("biobert-rnn1.h5")
36
- tokenizer = AutoTokenizer.from_pretrained("dmis-lab/biobert-base-cased-v1.1")
37
- biobert_model = TFAutoModel.from_pretrained("dmis-lab/biobert-base-cased-v1.1", from_pt=True)
38
- X_tokens = [tokenizer.encode(text, add_special_tokens=True) for text in new_data.split()]
39
- X_padded = pad_sequences(X_tokens, maxlen=22, dtype='long', truncating='post', padding='post')
40
- X_tensor = tf.convert_to_tensor(X_padded)
41
- X_embeddings = biobert_model(X_tensor)[0]
42
- pred=model.predict(X_embeddings)
43
- predicted_labels = list(le.inverse_transform(np.argmax(pred, axis=1)))
44
- text=new_data.split()
45
- prev_label=" "
46
- data=[]
47
- labels=[]
48
- for i,(word,label) in enumerate(zip(text,predicted_labels)):
49
- if label!="Other":
50
- label=label.split('-')[1]
51
- if prev_label==label:
52
- data[-1]=data[-1]+" "+word
53
- else:
54
- data.append(word)
55
- labels.append(label)
56
- prev_label=label
57
- return(data,labels)
58
-
59
- def highlight(sentence):
60
- highlighted_text = ""
61
- entity_colors = {"Symptom":"#87cefa","Medical Condition":"#ffb6c1"}
62
- words, labels = predict(sentence)
63
- for words, label in zip(words, labels):
64
- if label!="Other" and words!="a":
65
- if label in ["Medical Condition","Symptom"]:
66
- word_color = entity_colors.get(label, "yellow")
67
- label_color = entity_colors.get(label + '-label', "<b>black</b>")
68
- highlighted_text += f'<mark style="background-color: {word_color}; color: {label_color}; padding: 0 0.25rem; border-radius: 0.25rem; border: 2px solid {word_color}; border-bottom-width: 1px">{words}<sup style="background-color: white; color: black; border: 1px solid black; border-radius: 2px; padding: 0 0.15rem; font-size: 70%; margin-left: 0.15rem; font-weight: bold;">{label}</sup></mark> '
69
- else:
70
- highlighted_text += f'{words} '
71
- else:
72
- highlighted_text += f'{words} '
73
- st.markdown(highlighted_text, unsafe_allow_html=True)
74
-
75
- st.subheader('Named Entity Recognizer for Oral Medicine and Radiology')
76
- sentence = st.text_area('Enter some text:')
77
-
78
- st.write("OR")
79
-
80
- selected_options = st.selectbox(
81
- 'Choose a text from dropdown: ',
82
- (" ",
83
- 'Anemia and gingival bleeding are connected in that anemia can be a contributing cause to the occurrence of gingival bleeding . Anemia is a condition characterized by a shortage in the number or quality of red blood cells, which can lead to a reduced ability of the blood to carry oxygen throughout the body.',
84
- 'Hemophilia is a genetic illness that mainly affects the blood ability to clot properly. Individuals with significant hemophilia are at an elevated possibility of experiencing unforeseen bleeding episodes, which can occur in various parts of the body, including the mouth. Gingival bleeding can be a sign of hemophilia and can present as gum bleeding or mouth sores.',
85
- "Von Willebrand disease VWD is a genetic condition that impairs the blood's ability to clot properly. One of the symptoms of VWD is spontaneous gingival bleeding , which can occur without any apparent cause or trauma")) # set default to None
86
-
87
-
88
- # Define the colors for each label
89
-
90
- if st.button('Analyze'):
91
- if sentence:
92
- highlight(sentence)
93
- elif selected_options:
94
- highlight(selected_options)
95
- else:
96
- st.write('Please enter a sentence or select an option from the dropdown or upload a file.')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_2_ProfileRecogition/mmpretrain/work_dirs/resnext101_4xb32_2048e_3c_noF/resnext101_4xb32_2048e_3c_noF.py DELETED
@@ -1,131 +0,0 @@
1
- optim_wrapper = dict(
2
- type='OptimWrapper',
3
- optimizer=dict(
4
- type='Adam',
5
- lr=0.0001,
6
- betas=(0.9, 0.999),
7
- eps=1e-08,
8
- weight_decay=0,
9
- amsgrad=False),
10
- accumulative_counts=8)
11
- param_scheduler = [
12
- dict(
13
- type='LinearLR',
14
- start_factor=1e-05,
15
- by_epoch=True,
16
- end=10,
17
- convert_to_iter_based=True),
18
- dict(
19
- type='MultiStepLR',
20
- by_epoch=True,
21
- milestones=[30, 210, 390, 570, 750, 930, 1110, 1290, 1470, 1650, 1830],
22
- gamma=0.9)
23
- ]
24
- train_cfg = dict(by_epoch=True, max_epochs=2048, val_interval=16)
25
- val_cfg = dict()
26
- test_cfg = dict()
27
- default_scope = 'mmpretrain'
28
- default_hooks = dict(
29
- timer=dict(type='IterTimerHook'),
30
- logger=dict(type='LoggerHook', interval=10),
31
- param_scheduler=dict(type='ParamSchedulerHook'),
32
- checkpoint=dict(type='CheckpointHook', interval=16, save_best='auto'),
33
- sampler_seed=dict(type='DistSamplerSeedHook'),
34
- visualization=dict(type='VisualizationHook', enable=False))
35
- env_cfg = dict(
36
- cudnn_benchmark=False,
37
- mp_cfg=dict(mp_start_method='fork', opencv_num_threads=0),
38
- dist_cfg=dict(backend='nccl'))
39
- vis_backends = [dict(type='LocalVisBackend')]
40
- visualizer = dict(
41
- type='UniversalVisualizer',
42
- vis_backends=[dict(type='LocalVisBackend'),
43
- dict(type='WandbVisBackend')])
44
- log_level = 'INFO'
45
- load_from = None
46
- resume = False
47
- randomness = dict(seed=None, deterministic=False)
48
- dataset_type = 'CustomDataset'
49
- train_pipeline = [
50
- dict(type='LoadImageFromFile'),
51
- dict(type='RandomResizedCrop', scale=224),
52
- dict(type='RandomFlip', prob=0.5, direction='horizontal'),
53
- dict(type='PackInputs')
54
- ]
55
- test_pipeline = [
56
- dict(type='LoadImageFromFile'),
57
- dict(type='ResizeEdge', scale=256, edge='short'),
58
- dict(type='CenterCrop', crop_size=224),
59
- dict(type='PackInputs')
60
- ]
61
- train_dataloader = dict(
62
- pin_memory=True,
63
- persistent_workers=True,
64
- collate_fn=dict(type='default_collate'),
65
- batch_size=32,
66
- num_workers=5,
67
- dataset=dict(
68
- type='CustomDataset',
69
- data_root='../2_preprocess_data_3000',
70
- with_label=True,
71
- ann_file='',
72
- data_prefix='train',
73
- pipeline=[
74
- dict(type='LoadImageFromFile'),
75
- dict(type='RandomResizedCrop', scale=224),
76
- dict(type='RandomFlip', prob=0.5, direction='horizontal'),
77
- dict(type='PackInputs')
78
- ]),
79
- sampler=dict(type='DefaultSampler', shuffle=True))
80
- val_dataloader = dict(
81
- pin_memory=True,
82
- persistent_workers=True,
83
- collate_fn=dict(type='default_collate'),
84
- batch_size=32,
85
- num_workers=5,
86
- dataset=dict(
87
- type='CustomDataset',
88
- data_root='../2_preprocess_data_3000',
89
- with_label=True,
90
- ann_file='',
91
- data_prefix='val',
92
- pipeline=[
93
- dict(type='LoadImageFromFile'),
94
- dict(type='ResizeEdge', scale=256, edge='short'),
95
- dict(type='CenterCrop', crop_size=224),
96
- dict(type='PackInputs')
97
- ]),
98
- sampler=dict(type='DefaultSampler', shuffle=False))
99
- val_evaluator = dict(type='Accuracy', topk=(1, 3))
100
- test_dataloader = dict(
101
- pin_memory=True,
102
- persistent_workers=True,
103
- collate_fn=dict(type='default_collate'),
104
- batch_size=32,
105
- num_workers=5,
106
- dataset=dict(
107
- type='CustomDataset',
108
- data_root='../2_preprocess_data_3000',
109
- with_label=True,
110
- ann_file='',
111
- data_prefix='val',
112
- pipeline=[
113
- dict(type='LoadImageFromFile'),
114
- dict(type='ResizeEdge', scale=256, edge='short'),
115
- dict(type='CenterCrop', crop_size=224),
116
- dict(type='PackInputs')
117
- ]),
118
- sampler=dict(type='DefaultSampler', shuffle=False))
119
- test_evaluator = dict(type='Accuracy', topk=(1, 3))
120
- model = dict(
121
- type='ImageClassifier',
122
- backbone=dict(type='ResNeXt', depth=101, in_channels=3),
123
- neck=dict(type='GlobalAveragePooling'),
124
- head=dict(
125
- type='LinearClsHead',
126
- num_classes=7,
127
- in_channels=2048,
128
- loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
129
- topk=(1, 3)))
130
- launcher = 'pytorch'
131
- work_dir = './work_dirs/resnext101_4xb32_2048e_3c_noF'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Aaaaaaaabdualh/poetry2023/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Poetry2023
3
- emoji: 👁
4
- colorFrom: green
5
- colorTo: gray
6
- sdk: gradio
7
- sdk_version: 3.16.0
8
- app_file: app.py
9
- pinned: false
10
- duplicated_from: akhooli/poetry2023
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AbandonedMuse/UnlimitedMusicGen/CHANGELOG.md DELETED
@@ -1,33 +0,0 @@
1
- ## [0.0.2a2] - 2023-07-20
2
-
3
- Music Generation set to a max of 720 seconds (12 minutes) to avoid memory issues.
4
-
5
- Video editing options (thanks @Surn and @oncorporation).
6
-
7
- Music Conditioning segment options
8
-
9
-
10
- ## [0.0.2a] - TBD
11
-
12
- Improved demo, fixed top p (thanks @jnordberg).
13
-
14
- Compressor tanh on output to avoid clipping with some style (especially piano).
15
- Now repeating the conditioning periodically if it is too short.
16
-
17
- More options when launching Gradio app locally (thanks @ashleykleynhans).
18
-
19
- Testing out PyTorch 2.0 memory efficient attention.
20
-
21
- Added extended generation (infinite length) by slowly moving the windows.
22
- Note that other implementations exist: https://github.com/camenduru/MusicGen-colab.
23
-
24
- ## [0.0.1] - 2023-06-09
25
-
26
- Initial release, with model evaluation only.
27
-
28
-
29
- # Changelog
30
-
31
- All notable changes to this project will be documented in this file.
32
-
33
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/holygrail/methods/LayoutMode3.js DELETED
@@ -1,68 +0,0 @@
1
- /*
2
- Elements:
3
- ```
4
- HHH
5
- LCR
6
- LFR
7
- ```
8
- */
9
-
10
- import {
11
- GetAddHeaderConfig,
12
- GetAddLeftSideConfig, GetAddContentConfig, GetAddRightSideConfig,
13
- GetAddFooterConfig,
14
- GetAddContainerConfig
15
- } from './GetAddChildConfig.js';
16
- import CreatExpandContainer from './CreatExpandContainer.js';
17
-
18
- var LayoutMode0 = function (config) {
19
- var scene = this.scene;
20
-
21
- // Add Header
22
- var header = config.header;
23
- if (header) {
24
- this.add(header, GetAddHeaderConfig(config));
25
- }
26
-
27
- /*
28
- L C R
29
- L F R
30
- */
31
- var bodySizer0 = CreatExpandContainer(scene, 0);
32
- this.add(bodySizer0, GetAddContainerConfig(config));
33
-
34
- // Add Left-side
35
- var leftSide = config.leftSide;
36
- if (leftSide) {
37
- bodySizer0.add(leftSide, GetAddLeftSideConfig(config));
38
- }
39
-
40
- /*
41
- C
42
-
43
- F
44
- */
45
- var bodySizer1 = CreatExpandContainer(scene, 1);
46
- bodySizer0.add(bodySizer1, GetAddContainerConfig(config));
47
-
48
- // Add content
49
- var content = config.content;
50
- if (content) {
51
- bodySizer1.add(content, GetAddContentConfig(config));
52
- }
53
-
54
- // Add Footer
55
- var footer = config.footer;
56
- if (footer) {
57
- bodySizer1.add(footer, GetAddFooterConfig(config));
58
- }
59
-
60
- // Add Right-side
61
- var rightSide = config.rightSide;
62
- if (rightSide) {
63
- bodySizer0.add(rightSide, GetAddRightSideConfig(config));
64
- }
65
-
66
- }
67
-
68
- export default LayoutMode0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AiMimicry/sovits-models/hubert/hubert_model_onnx.py DELETED
@@ -1,217 +0,0 @@
1
- import copy
2
- import random
3
- from typing import Optional, Tuple
4
-
5
- import torch
6
- import torch.nn as nn
7
- import torch.nn.functional as t_func
8
- from torch.nn.modules.utils import consume_prefix_in_state_dict_if_present
9
-
10
-
11
- class Hubert(nn.Module):
12
- def __init__(self, num_label_embeddings: int = 100, mask: bool = True):
13
- super().__init__()
14
- self._mask = mask
15
- self.feature_extractor = FeatureExtractor()
16
- self.feature_projection = FeatureProjection()
17
- self.positional_embedding = PositionalConvEmbedding()
18
- self.norm = nn.LayerNorm(768)
19
- self.dropout = nn.Dropout(0.1)
20
- self.encoder = TransformerEncoder(
21
- nn.TransformerEncoderLayer(
22
- 768, 12, 3072, activation="gelu", batch_first=True
23
- ),
24
- 12,
25
- )
26
- self.proj = nn.Linear(768, 256)
27
-
28
- self.masked_spec_embed = nn.Parameter(torch.FloatTensor(768).uniform_())
29
- self.label_embedding = nn.Embedding(num_label_embeddings, 256)
30
-
31
- def mask(self, x: torch.Tensor) -> Tuple[torch.Tensor, torch.Tensor]:
32
- mask = None
33
- if self.training and self._mask:
34
- mask = _compute_mask((x.size(0), x.size(1)), 0.8, 10, x.device, 2)
35
- x[mask] = self.masked_spec_embed.to(x.dtype)
36
- return x, mask
37
-
38
- def encode(
39
- self, x: torch.Tensor, layer: Optional[int] = None
40
- ) -> Tuple[torch.Tensor, torch.Tensor]:
41
- x = self.feature_extractor(x)
42
- x = self.feature_projection(x.transpose(1, 2))
43
- x, mask = self.mask(x)
44
- x = x + self.positional_embedding(x)
45
- x = self.dropout(self.norm(x))
46
- x = self.encoder(x, output_layer=layer)
47
- return x, mask
48
-
49
- def logits(self, x: torch.Tensor) -> torch.Tensor:
50
- logits = torch.cosine_similarity(
51
- x.unsqueeze(2),
52
- self.label_embedding.weight.unsqueeze(0).unsqueeze(0),
53
- dim=-1,
54
- )
55
- return logits / 0.1
56
-
57
-
58
- class HubertSoft(Hubert):
59
- def __init__(self):
60
- super().__init__()
61
-
62
- def units(self, wav: torch.Tensor) -> torch.Tensor:
63
- wav = t_func.pad(wav, ((400 - 320) // 2, (400 - 320) // 2))
64
- x, _ = self.encode(wav)
65
- return self.proj(x)
66
-
67
- def forward(self, x):
68
- return self.units(x)
69
-
70
- class FeatureExtractor(nn.Module):
71
- def __init__(self):
72
- super().__init__()
73
- self.conv0 = nn.Conv1d(1, 512, 10, 5, bias=False)
74
- self.norm0 = nn.GroupNorm(512, 512)
75
- self.conv1 = nn.Conv1d(512, 512, 3, 2, bias=False)
76
- self.conv2 = nn.Conv1d(512, 512, 3, 2, bias=False)
77
- self.conv3 = nn.Conv1d(512, 512, 3, 2, bias=False)
78
- self.conv4 = nn.Conv1d(512, 512, 3, 2, bias=False)
79
- self.conv5 = nn.Conv1d(512, 512, 2, 2, bias=False)
80
- self.conv6 = nn.Conv1d(512, 512, 2, 2, bias=False)
81
-
82
- def forward(self, x: torch.Tensor) -> torch.Tensor:
83
- x = t_func.gelu(self.norm0(self.conv0(x)))
84
- x = t_func.gelu(self.conv1(x))
85
- x = t_func.gelu(self.conv2(x))
86
- x = t_func.gelu(self.conv3(x))
87
- x = t_func.gelu(self.conv4(x))
88
- x = t_func.gelu(self.conv5(x))
89
- x = t_func.gelu(self.conv6(x))
90
- return x
91
-
92
-
93
- class FeatureProjection(nn.Module):
94
- def __init__(self):
95
- super().__init__()
96
- self.norm = nn.LayerNorm(512)
97
- self.projection = nn.Linear(512, 768)
98
- self.dropout = nn.Dropout(0.1)
99
-
100
- def forward(self, x: torch.Tensor) -> torch.Tensor:
101
- x = self.norm(x)
102
- x = self.projection(x)
103
- x = self.dropout(x)
104
- return x
105
-
106
-
107
- class PositionalConvEmbedding(nn.Module):
108
- def __init__(self):
109
- super().__init__()
110
- self.conv = nn.Conv1d(
111
- 768,
112
- 768,
113
- kernel_size=128,
114
- padding=128 // 2,
115
- groups=16,
116
- )
117
- self.conv = nn.utils.weight_norm(self.conv, name="weight", dim=2)
118
-
119
- def forward(self, x: torch.Tensor) -> torch.Tensor:
120
- x = self.conv(x.transpose(1, 2))
121
- x = t_func.gelu(x[:, :, :-1])
122
- return x.transpose(1, 2)
123
-
124
-
125
- class TransformerEncoder(nn.Module):
126
- def __init__(
127
- self, encoder_layer: nn.TransformerEncoderLayer, num_layers: int
128
- ) -> None:
129
- super(TransformerEncoder, self).__init__()
130
- self.layers = nn.ModuleList(
131
- [copy.deepcopy(encoder_layer) for _ in range(num_layers)]
132
- )
133
- self.num_layers = num_layers
134
-
135
- def forward(
136
- self,
137
- src: torch.Tensor,
138
- mask: torch.Tensor = None,
139
- src_key_padding_mask: torch.Tensor = None,
140
- output_layer: Optional[int] = None,
141
- ) -> torch.Tensor:
142
- output = src
143
- for layer in self.layers[:output_layer]:
144
- output = layer(
145
- output, src_mask=mask, src_key_padding_mask=src_key_padding_mask
146
- )
147
- return output
148
-
149
-
150
- def _compute_mask(
151
- shape: Tuple[int, int],
152
- mask_prob: float,
153
- mask_length: int,
154
- device: torch.device,
155
- min_masks: int = 0,
156
- ) -> torch.Tensor:
157
- batch_size, sequence_length = shape
158
-
159
- if mask_length < 1:
160
- raise ValueError("`mask_length` has to be bigger than 0.")
161
-
162
- if mask_length > sequence_length:
163
- raise ValueError(
164
- f"`mask_length` has to be smaller than `sequence_length`, but got `mask_length`: {mask_length} and `sequence_length`: {sequence_length}`"
165
- )
166
-
167
- # compute number of masked spans in batch
168
- num_masked_spans = int(mask_prob * sequence_length / mask_length + random.random())
169
- num_masked_spans = max(num_masked_spans, min_masks)
170
-
171
- # make sure num masked indices <= sequence_length
172
- if num_masked_spans * mask_length > sequence_length:
173
- num_masked_spans = sequence_length // mask_length
174
-
175
- # SpecAugment mask to fill
176
- mask = torch.zeros((batch_size, sequence_length), device=device, dtype=torch.bool)
177
-
178
- # uniform distribution to sample from, make sure that offset samples are < sequence_length
179
- uniform_dist = torch.ones(
180
- (batch_size, sequence_length - (mask_length - 1)), device=device
181
- )
182
-
183
- # get random indices to mask
184
- mask_indices = torch.multinomial(uniform_dist, num_masked_spans)
185
-
186
- # expand masked indices to masked spans
187
- mask_indices = (
188
- mask_indices.unsqueeze(dim=-1)
189
- .expand((batch_size, num_masked_spans, mask_length))
190
- .reshape(batch_size, num_masked_spans * mask_length)
191
- )
192
- offsets = (
193
- torch.arange(mask_length, device=device)[None, None, :]
194
- .expand((batch_size, num_masked_spans, mask_length))
195
- .reshape(batch_size, num_masked_spans * mask_length)
196
- )
197
- mask_idxs = mask_indices + offsets
198
-
199
- # scatter indices to mask
200
- mask = mask.scatter(1, mask_idxs, True)
201
-
202
- return mask
203
-
204
-
205
- def hubert_soft(
206
- path: str,
207
- ) -> HubertSoft:
208
- r"""HuBERT-Soft from `"A Comparison of Discrete and Soft Speech Units for Improved Voice Conversion"`.
209
- Args:
210
- path (str): path of a pretrained model
211
- """
212
- hubert = HubertSoft()
213
- checkpoint = torch.load(path)
214
- consume_prefix_in_state_dict_if_present(checkpoint, "module.")
215
- hubert.load_state_dict(checkpoint)
216
- hubert.eval()
217
- return hubert
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Akmyradov/TurkmenTTSweSTT/uroman/bin/uroman-quick.pl DELETED
@@ -1,58 +0,0 @@
1
- #!/usr/bin/perl -w
2
-
3
- # uroman Nov. 12, 2015 - July 25, 2016
4
- # version v0.7
5
- # Author: Ulf Hermjakob
6
-
7
- # Usage: uroman-quick.pl {-l [tur|uig|ukr|yid]} < STDIN
8
- # currently only for Arabic script languages, incl. Uyghur
9
-
10
- $|=1;
11
-
12
- use FindBin;
13
- use Cwd "abs_path";
14
- use File::Basename qw(dirname);
15
- use File::Spec;
16
-
17
- my $bin_dir = abs_path(dirname($0));
18
- my $root_dir = File::Spec->catfile($bin_dir, File::Spec->updir());
19
- my $data_dir = File::Spec->catfile($root_dir, "data");
20
- my $lib_dir = File::Spec->catfile($root_dir, "lib");
21
-
22
- use lib "$FindBin::Bin/../lib";
23
- use NLP::Romanizer;
24
- use NLP::UTF8;
25
- $romanizer = NLP::Romanizer;
26
- %ht = ();
27
- $lang_code = "";
28
-
29
- while (@ARGV) {
30
- $arg = shift @ARGV;
31
- if ($arg =~ /^-+(l|lc|lang-code)$/) {
32
- $lang_code = lc (shift @ARGV || "")
33
- } else {
34
- print STDERR "Ignoring unrecognized arg $arg\n";
35
- }
36
- }
37
-
38
- $romanization_table_arabic_block_filename = File::Spec->catfile($data_dir, "romanization-table-arabic-block.txt");
39
- $romanization_table_filename = File::Spec->catfile($data_dir, "romanization-table.txt");
40
-
41
- $romanizer->load_romanization_table(*ht, $romanization_table_arabic_block_filename);
42
- $romanizer->load_romanization_table(*ht, $romanization_table_filename);
43
-
44
- $line_number = 0;
45
- while (<>) {
46
- $line_number++;
47
- my $line = $_;
48
- print $romanizer->quick_romanize($line, $lang_code, *ht) . "\n";
49
- if ($line_number =~ /0000$/) {
50
- print STDERR $line_number;
51
- } elsif ($line_number =~ /000$/) {
52
- print STDERR ".";
53
- }
54
- }
55
- print STDERR "\n";
56
-
57
- exit 0;
58
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Akshay-More-007/starcoder/apikey.py DELETED
@@ -1 +0,0 @@
1
- apikey_hungingface = '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'
 
 
spaces/AlexWang/lama/models/ade20k/segm_lib/nn/parallel/__init__.py DELETED
@@ -1 +0,0 @@
1
- from .data_parallel import UserScatteredDataParallel, user_scattered_collate, async_copy_to
 
 
spaces/Alichuan/VITS-Umamusume-voice-synthesizer/ONNXVITS_models.py DELETED
@@ -1,509 +0,0 @@
1
- import copy
2
- import math
3
- import torch
4
- from torch import nn
5
- from torch.nn import functional as F
6
-
7
- import commons
8
- import ONNXVITS_modules as modules
9
- import attentions
10
- import monotonic_align
11
-
12
- from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
13
- from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm
14
- from commons import init_weights, get_padding
15
-
16
-
17
- class StochasticDurationPredictor(nn.Module):
18
- def __init__(self, in_channels, filter_channels, kernel_size, p_dropout, n_flows=4, gin_channels=0):
19
- super().__init__()
20
- filter_channels = in_channels # it needs to be removed from future version.
21
- self.in_channels = in_channels
22
- self.filter_channels = filter_channels
23
- self.kernel_size = kernel_size
24
- self.p_dropout = p_dropout
25
- self.n_flows = n_flows
26
- self.gin_channels = gin_channels
27
-
28
- self.log_flow = modules.Log()
29
- self.flows = nn.ModuleList()
30
- self.flows.append(modules.ElementwiseAffine(2))
31
- for i in range(n_flows):
32
- self.flows.append(modules.ConvFlow(2, filter_channels, kernel_size, n_layers=3))
33
- self.flows.append(modules.Flip())
34
-
35
- self.post_pre = nn.Conv1d(1, filter_channels, 1)
36
- self.post_proj = nn.Conv1d(filter_channels, filter_channels, 1)
37
- self.post_convs = modules.DDSConv(filter_channels, kernel_size, n_layers=3, p_dropout=p_dropout)
38
- self.post_flows = nn.ModuleList()
39
- self.post_flows.append(modules.ElementwiseAffine(2))
40
- for i in range(4):
41
- self.post_flows.append(modules.ConvFlow(2, filter_channels, kernel_size, n_layers=3))
42
- self.post_flows.append(modules.Flip())
43
-
44
- self.pre = nn.Conv1d(in_channels, filter_channels, 1)
45
- self.proj = nn.Conv1d(filter_channels, filter_channels, 1)
46
- self.convs = modules.DDSConv(filter_channels, kernel_size, n_layers=3, p_dropout=p_dropout)
47
- if gin_channels != 0:
48
- self.cond = nn.Conv1d(gin_channels, filter_channels, 1)
49
-
50
- self.w = None
51
- self.reverse = None
52
- self.noise_scale = None
53
- def forward(self, x, x_mask, g=None):
54
- w = self.w
55
- reverse = self.reverse
56
- noise_scale = self.noise_scale
57
-
58
- x = torch.detach(x)
59
- x = self.pre(x)
60
- if g is not None:
61
- g = torch.detach(g)
62
- x = x + self.cond(g)
63
- x = self.convs(x, x_mask)
64
- x = self.proj(x) * x_mask
65
-
66
- if not reverse:
67
- flows = self.flows
68
- assert w is not None
69
-
70
- logdet_tot_q = 0
71
- h_w = self.post_pre(w)
72
- h_w = self.post_convs(h_w, x_mask)
73
- h_w = self.post_proj(h_w) * x_mask
74
- e_q = torch.randn(w.size(0), 2, w.size(2)).to(device=x.device, dtype=x.dtype) * x_mask
75
- z_q = e_q
76
- for flow in self.post_flows:
77
- z_q, logdet_q = flow(z_q, x_mask, g=(x + h_w))
78
- logdet_tot_q += logdet_q
79
- z_u, z1 = torch.split(z_q, [1, 1], 1)
80
- u = torch.sigmoid(z_u) * x_mask
81
- z0 = (w - u) * x_mask
82
- logdet_tot_q += torch.sum((F.logsigmoid(z_u) + F.logsigmoid(-z_u)) * x_mask, [1,2])
83
- logq = torch.sum(-0.5 * (math.log(2*math.pi) + (e_q**2)) * x_mask, [1,2]) - logdet_tot_q
84
-
85
- logdet_tot = 0
86
- z0, logdet = self.log_flow(z0, x_mask)
87
- logdet_tot += logdet
88
- z = torch.cat([z0, z1], 1)
89
- for flow in flows:
90
- z, logdet = flow(z, x_mask, g=x, reverse=reverse)
91
- logdet_tot = logdet_tot + logdet
92
- nll = torch.sum(0.5 * (math.log(2*math.pi) + (z**2)) * x_mask, [1,2]) - logdet_tot
93
- return nll + logq # [b]
94
- else:
95
- flows = list(reversed(self.flows))
96
- flows = flows[:-2] + [flows[-1]] # remove a useless vflow
97
- z = torch.randn(x.size(0), 2, x.size(2)).to(device=x.device, dtype=x.dtype) * noise_scale
98
- for flow in flows:
99
- z = flow(z, x_mask, g=x, reverse=reverse)
100
- z0, z1 = torch.split(z, [1, 1], 1)
101
- logw = z0
102
- return logw
103
-
104
-
105
- class TextEncoder(nn.Module):
106
- def __init__(self,
107
- n_vocab,
108
- out_channels,
109
- hidden_channels,
110
- filter_channels,
111
- n_heads,
112
- n_layers,
113
- kernel_size,
114
- p_dropout):
115
- super().__init__()
116
- self.n_vocab = n_vocab
117
- self.out_channels = out_channels
118
- self.hidden_channels = hidden_channels
119
- self.filter_channels = filter_channels
120
- self.n_heads = n_heads
121
- self.n_layers = n_layers
122
- self.kernel_size = kernel_size
123
- self.p_dropout = p_dropout
124
-
125
- self.emb = nn.Embedding(n_vocab, hidden_channels)
126
- nn.init.normal_(self.emb.weight, 0.0, hidden_channels**-0.5)
127
-
128
- self.encoder = attentions.Encoder(
129
- hidden_channels,
130
- filter_channels,
131
- n_heads,
132
- n_layers,
133
- kernel_size,
134
- p_dropout)
135
- self.proj= nn.Conv1d(hidden_channels, out_channels * 2, 1)
136
-
137
- def forward(self, x, x_lengths):
138
- x = self.emb(x) * math.sqrt(self.hidden_channels) # [b, t, h]
139
- x = torch.transpose(x, 1, -1) # [b, h, t]
140
- x_mask = torch.unsqueeze(commons.sequence_mask(x_lengths, x.size(2)), 1).to(x.dtype)
141
-
142
- x = self.encoder(x * x_mask, x_mask)
143
- stats = self.proj(x) * x_mask
144
-
145
- m, logs = torch.split(stats, self.out_channels, dim=1)
146
- return x, m, logs, x_mask
147
-
148
-
149
- class ResidualCouplingBlock(nn.Module):
150
- def __init__(self,
151
- channels,
152
- hidden_channels,
153
- kernel_size,
154
- dilation_rate,
155
- n_layers,
156
- n_flows=4,
157
- gin_channels=0):
158
- super().__init__()
159
- self.channels = channels
160
- self.hidden_channels = hidden_channels
161
- self.kernel_size = kernel_size
162
- self.dilation_rate = dilation_rate
163
- self.n_layers = n_layers
164
- self.n_flows = n_flows
165
- self.gin_channels = gin_channels
166
-
167
- self.flows = nn.ModuleList()
168
- for i in range(n_flows):
169
- self.flows.append(modules.ResidualCouplingLayer(channels, hidden_channels, kernel_size, dilation_rate, n_layers, gin_channels=gin_channels, mean_only=True))
170
- self.flows.append(modules.Flip())
171
-
172
- self.reverse = None
173
- def forward(self, x, x_mask, g=None):
174
- reverse = self.reverse
175
- if not reverse:
176
- for flow in self.flows:
177
- x, _ = flow(x, x_mask, g=g, reverse=reverse)
178
- else:
179
- for flow in reversed(self.flows):
180
- x = flow(x, x_mask, g=g, reverse=reverse)
181
- return x
182
-
183
-
184
- class PosteriorEncoder(nn.Module):
185
- def __init__(self,
186
- in_channels,
187
- out_channels,
188
- hidden_channels,
189
- kernel_size,
190
- dilation_rate,
191
- n_layers,
192
- gin_channels=0):
193
- super().__init__()
194
- self.in_channels = in_channels
195
- self.out_channels = out_channels
196
- self.hidden_channels = hidden_channels
197
- self.kernel_size = kernel_size
198
- self.dilation_rate = dilation_rate
199
- self.n_layers = n_layers
200
- self.gin_channels = gin_channels
201
-
202
- self.pre = nn.Conv1d(in_channels, hidden_channels, 1)
203
- self.enc = modules.WN(hidden_channels, kernel_size, dilation_rate, n_layers, gin_channels=gin_channels)
204
- self.proj = nn.Conv1d(hidden_channels, out_channels * 2, 1)
205
-
206
- def forward(self, x, x_lengths, g=None):
207
- x_mask = torch.unsqueeze(commons.sequence_mask(x_lengths, x.size(2)), 1).to(x.dtype)
208
- x = self.pre(x) * x_mask # x_in : [b, c, t] -> [b, h, t]
209
- x = self.enc(x, x_mask, g=g) # x_in : [b, h, t], g : [b, h, 1], x = x_in + g
210
- stats = self.proj(x) * x_mask
211
- m, logs = torch.split(stats, self.out_channels, dim=1)
212
- z = (m + torch.randn_like(m) * torch.exp(logs)) * x_mask
213
- return z, m, logs, x_mask # z, m, logs : [b, h, t]
214
-
215
-
216
- class Generator(torch.nn.Module):
217
- def __init__(self, initial_channel, resblock, resblock_kernel_sizes, resblock_dilation_sizes, upsample_rates, upsample_initial_channel, upsample_kernel_sizes, gin_channels=0):
218
- super(Generator, self).__init__()
219
- self.num_kernels = len(resblock_kernel_sizes)
220
- self.num_upsamples = len(upsample_rates)
221
- self.conv_pre = Conv1d(initial_channel, upsample_initial_channel, 7, 1, padding=3)
222
- resblock = modules.ResBlock1 if resblock == '1' else modules.ResBlock2
223
-
224
- self.ups = nn.ModuleList()
225
- for i, (u, k) in enumerate(zip(upsample_rates, upsample_kernel_sizes)):
226
- self.ups.append(weight_norm(
227
- ConvTranspose1d(upsample_initial_channel//(2**i), upsample_initial_channel//(2**(i+1)),
228
- k, u, padding=(k-u)//2)))
229
-
230
- self.resblocks = nn.ModuleList()
231
- for i in range(len(self.ups)):
232
- ch = upsample_initial_channel//(2**(i+1))
233
- for j, (k, d) in enumerate(zip(resblock_kernel_sizes, resblock_dilation_sizes)):
234
- self.resblocks.append(resblock(ch, k, d))
235
-
236
- self.conv_post = Conv1d(ch, 1, 7, 1, padding=3, bias=False)
237
- self.ups.apply(init_weights)
238
-
239
- if gin_channels != 0:
240
- self.cond = nn.Conv1d(gin_channels, upsample_initial_channel, 1)
241
-
242
- def forward(self, x, g=None):
243
- x = self.conv_pre(x)
244
- if g is not None:
245
- x = x + self.cond(g)
246
-
247
- for i in range(self.num_upsamples):
248
- x = F.leaky_relu(x, modules.LRELU_SLOPE)
249
- x = self.ups[i](x)
250
- xs = None
251
- for j in range(self.num_kernels):
252
- if xs is None:
253
- xs = self.resblocks[i*self.num_kernels+j](x)
254
- else:
255
- xs += self.resblocks[i*self.num_kernels+j](x)
256
- x = xs / self.num_kernels
257
- x = F.leaky_relu(x)
258
- x = self.conv_post(x)
259
- x = torch.tanh(x)
260
-
261
- return x
262
-
263
- def remove_weight_norm(self):
264
- print('Removing weight norm...')
265
- for l in self.ups:
266
- remove_weight_norm(l)
267
- for l in self.resblocks:
268
- l.remove_weight_norm()
269
-
270
-
271
- class DiscriminatorP(torch.nn.Module):
272
- def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=False):
273
- super(DiscriminatorP, self).__init__()
274
- self.period = period
275
- self.use_spectral_norm = use_spectral_norm
276
- norm_f = weight_norm if use_spectral_norm == False else spectral_norm
277
- self.convs = nn.ModuleList([
278
- norm_f(Conv2d(1, 32, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))),
279
- norm_f(Conv2d(32, 128, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))),
280
- norm_f(Conv2d(128, 512, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))),
281
- norm_f(Conv2d(512, 1024, (kernel_size, 1), (stride, 1), padding=(get_padding(kernel_size, 1), 0))),
282
- norm_f(Conv2d(1024, 1024, (kernel_size, 1), 1, padding=(get_padding(kernel_size, 1), 0))),
283
- ])
284
- self.conv_post = norm_f(Conv2d(1024, 1, (3, 1), 1, padding=(1, 0)))
285
-
286
- def forward(self, x):
287
- fmap = []
288
-
289
- # 1d to 2d
290
- b, c, t = x.shape
291
- if t % self.period != 0: # pad first
292
- n_pad = self.period - (t % self.period)
293
- x = F.pad(x, (0, n_pad), "reflect")
294
- t = t + n_pad
295
- x = x.view(b, c, t // self.period, self.period)
296
-
297
- for l in self.convs:
298
- x = l(x)
299
- x = F.leaky_relu(x, modules.LRELU_SLOPE)
300
- fmap.append(x)
301
- x = self.conv_post(x)
302
- fmap.append(x)
303
- x = torch.flatten(x, 1, -1)
304
-
305
- return x, fmap
306
-
307
-
308
- class DiscriminatorS(torch.nn.Module):
309
- def __init__(self, use_spectral_norm=False):
310
- super(DiscriminatorS, self).__init__()
311
- norm_f = weight_norm if use_spectral_norm == False else spectral_norm
312
- self.convs = nn.ModuleList([
313
- norm_f(Conv1d(1, 16, 15, 1, padding=7)),
314
- norm_f(Conv1d(16, 64, 41, 4, groups=4, padding=20)),
315
- norm_f(Conv1d(64, 256, 41, 4, groups=16, padding=20)),
316
- norm_f(Conv1d(256, 1024, 41, 4, groups=64, padding=20)),
317
- norm_f(Conv1d(1024, 1024, 41, 4, groups=256, padding=20)),
318
- norm_f(Conv1d(1024, 1024, 5, 1, padding=2)),
319
- ])
320
- self.conv_post = norm_f(Conv1d(1024, 1, 3, 1, padding=1))
321
-
322
- def forward(self, x):
323
- fmap = []
324
-
325
- for l in self.convs:
326
- x = l(x)
327
- x = F.leaky_relu(x, modules.LRELU_SLOPE)
328
- fmap.append(x)
329
- x = self.conv_post(x)
330
- fmap.append(x)
331
- x = torch.flatten(x, 1, -1)
332
-
333
- return x, fmap
334
-
335
-
336
- class MultiPeriodDiscriminator(torch.nn.Module):
337
- def __init__(self, use_spectral_norm=False):
338
- super(MultiPeriodDiscriminator, self).__init__()
339
- periods = [2,3,5,7,11]
340
-
341
- discs = [DiscriminatorS(use_spectral_norm=use_spectral_norm)]
342
- discs = discs + [DiscriminatorP(i, use_spectral_norm=use_spectral_norm) for i in periods]
343
- self.discriminators = nn.ModuleList(discs)
344
-
345
- def forward(self, y, y_hat):
346
- y_d_rs = []
347
- y_d_gs = []
348
- fmap_rs = []
349
- fmap_gs = []
350
- for i, d in enumerate(self.discriminators):
351
- y_d_r, fmap_r = d(y)
352
- y_d_g, fmap_g = d(y_hat)
353
- y_d_rs.append(y_d_r)
354
- y_d_gs.append(y_d_g)
355
- fmap_rs.append(fmap_r)
356
- fmap_gs.append(fmap_g)
357
-
358
- return y_d_rs, y_d_gs, fmap_rs, fmap_gs
359
-
360
-
361
-
362
- class SynthesizerTrn(nn.Module):
363
- """
364
- Synthesizer for Training
365
- """
366
-
367
- def __init__(self,
368
- n_vocab,
369
- spec_channels,
370
- segment_size,
371
- inter_channels,
372
- hidden_channels,
373
- filter_channels,
374
- n_heads,
375
- n_layers,
376
- kernel_size,
377
- p_dropout,
378
- resblock,
379
- resblock_kernel_sizes,
380
- resblock_dilation_sizes,
381
- upsample_rates,
382
- upsample_initial_channel,
383
- upsample_kernel_sizes,
384
- n_speakers=0,
385
- gin_channels=0,
386
- use_sdp=True,
387
- **kwargs):
388
-
389
- super().__init__()
390
- self.n_vocab = n_vocab
391
- self.spec_channels = spec_channels
392
- self.inter_channels = inter_channels
393
- self.hidden_channels = hidden_channels
394
- self.filter_channels = filter_channels
395
- self.n_heads = n_heads
396
- self.n_layers = n_layers
397
- self.kernel_size = kernel_size
398
- self.p_dropout = p_dropout
399
- self.resblock = resblock
400
- self.resblock_kernel_sizes = resblock_kernel_sizes
401
- self.resblock_dilation_sizes = resblock_dilation_sizes
402
- self.upsample_rates = upsample_rates
403
- self.upsample_initial_channel = upsample_initial_channel
404
- self.upsample_kernel_sizes = upsample_kernel_sizes
405
- self.segment_size = segment_size
406
- self.n_speakers = n_speakers
407
- self.gin_channels = gin_channels
408
-
409
- self.use_sdp = use_sdp
410
-
411
- self.enc_p = TextEncoder(n_vocab,
412
- inter_channels,
413
- hidden_channels,
414
- filter_channels,
415
- n_heads,
416
- n_layers,
417
- kernel_size,
418
- p_dropout)
419
- self.dec = Generator(inter_channels, resblock, resblock_kernel_sizes, resblock_dilation_sizes, upsample_rates, upsample_initial_channel, upsample_kernel_sizes, gin_channels=gin_channels)
420
- self.enc_q = PosteriorEncoder(spec_channels, inter_channels, hidden_channels, 5, 1, 16, gin_channels=gin_channels)
421
- self.flow = ResidualCouplingBlock(inter_channels, hidden_channels, 5, 1, 4, gin_channels=gin_channels)
422
-
423
- self.dp = StochasticDurationPredictor(hidden_channels, 192, 3, 0.5, 4, gin_channels=gin_channels)
424
-
425
- if n_speakers > 0:
426
- self.emb_g = nn.Embedding(n_speakers, gin_channels)
427
-
428
- def forward(self, x, x_lengths, sid=None, noise_scale=.667, length_scale=1, noise_scale_w=.8, max_len=None):
429
- torch.onnx.export(
430
- self.enc_p,
431
- (x, x_lengths),
432
- "ONNX_net/enc_p.onnx",
433
- input_names=["x", "x_lengths"],
434
- output_names=["xout", "m_p", "logs_p", "x_mask"],
435
- dynamic_axes={
436
- "x" : [1],
437
- "xout" : [2],
438
- "m_p" : [2],
439
- "logs_p" : [2],
440
- "x_mask" : [2]
441
- },
442
- verbose=True,
443
- )
444
- x, m_p, logs_p, x_mask = self.enc_p(x, x_lengths)
445
-
446
- if self.n_speakers > 0:
447
- g = self.emb_g(sid).unsqueeze(-1) # [b, h, 1]
448
- else:
449
- g = None
450
-
451
- self.dp.reverse = True
452
- self.dp.noise_scale = noise_scale_w
453
- torch.onnx.export(
454
- self.dp,
455
- (x, x_mask, g),
456
- "ONNX_net/dp.onnx",
457
- input_names=["x", "x_mask", "g"],
458
- output_names=["logw"],
459
- dynamic_axes={
460
- "x" : [2],
461
- "x_mask" : [2],
462
- "logw" : [2]
463
- },
464
- verbose=True,
465
- )
466
- logw = self.dp(x, x_mask, g=g)
467
- w = torch.exp(logw) * x_mask * length_scale
468
- w_ceil = torch.ceil(w)
469
- y_lengths = torch.clamp_min(torch.sum(w_ceil, [1, 2]), 1).long()
470
- y_mask = torch.unsqueeze(commons.sequence_mask(y_lengths, None), 1).to(x_mask.dtype)
471
- attn_mask = torch.unsqueeze(x_mask, 2) * torch.unsqueeze(y_mask, -1)
472
- attn = commons.generate_path(w_ceil, attn_mask)
473
-
474
- m_p = torch.matmul(attn.squeeze(1), m_p.transpose(1, 2)).transpose(1, 2) # [b, t', t], [b, t, d] -> [b, d, t']
475
- logs_p = torch.matmul(attn.squeeze(1), logs_p.transpose(1, 2)).transpose(1, 2) # [b, t', t], [b, t, d] -> [b, d, t']
476
-
477
- z_p = m_p + torch.randn_like(m_p) * torch.exp(logs_p) * noise_scale
478
-
479
- self.flow.reverse = True
480
- torch.onnx.export(
481
- self.flow,
482
- (z_p, y_mask, g),
483
- "ONNX_net/flow.onnx",
484
- input_names=["z_p", "y_mask", "g"],
485
- output_names=["z"],
486
- dynamic_axes={
487
- "z_p" : [2],
488
- "y_mask" : [2],
489
- "z" : [2]
490
- },
491
- verbose=True,
492
- )
493
- z = self.flow(z_p, y_mask, g=g)
494
- z_in = (z * y_mask)[:,:,:max_len]
495
-
496
- torch.onnx.export(
497
- self.dec,
498
- (z_in, g),
499
- "ONNX_net/dec.onnx",
500
- input_names=["z_in", "g"],
501
- output_names=["o"],
502
- dynamic_axes={
503
- "z_in" : [2],
504
- "o" : [2]
505
- },
506
- verbose=True,
507
- )
508
- o = self.dec(z_in, g=g)
509
- return o
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Alichuan/VITS-Umamusume-voice-synthesizer/attentions.py DELETED
@@ -1,300 +0,0 @@
1
- import math
2
- import torch
3
- from torch import nn
4
- from torch.nn import functional as F
5
-
6
- import commons
7
- from modules import LayerNorm
8
-
9
-
10
- class Encoder(nn.Module):
11
- def __init__(self, hidden_channels, filter_channels, n_heads, n_layers, kernel_size=1, p_dropout=0., window_size=4, **kwargs):
12
- super().__init__()
13
- self.hidden_channels = hidden_channels
14
- self.filter_channels = filter_channels
15
- self.n_heads = n_heads
16
- self.n_layers = n_layers
17
- self.kernel_size = kernel_size
18
- self.p_dropout = p_dropout
19
- self.window_size = window_size
20
-
21
- self.drop = nn.Dropout(p_dropout)
22
- self.attn_layers = nn.ModuleList()
23
- self.norm_layers_1 = nn.ModuleList()
24
- self.ffn_layers = nn.ModuleList()
25
- self.norm_layers_2 = nn.ModuleList()
26
- for i in range(self.n_layers):
27
- self.attn_layers.append(MultiHeadAttention(hidden_channels, hidden_channels, n_heads, p_dropout=p_dropout, window_size=window_size))
28
- self.norm_layers_1.append(LayerNorm(hidden_channels))
29
- self.ffn_layers.append(FFN(hidden_channels, hidden_channels, filter_channels, kernel_size, p_dropout=p_dropout))
30
- self.norm_layers_2.append(LayerNorm(hidden_channels))
31
-
32
- def forward(self, x, x_mask):
33
- attn_mask = x_mask.unsqueeze(2) * x_mask.unsqueeze(-1)
34
- x = x * x_mask
35
- for i in range(self.n_layers):
36
- y = self.attn_layers[i](x, x, attn_mask)
37
- y = self.drop(y)
38
- x = self.norm_layers_1[i](x + y)
39
-
40
- y = self.ffn_layers[i](x, x_mask)
41
- y = self.drop(y)
42
- x = self.norm_layers_2[i](x + y)
43
- x = x * x_mask
44
- return x
45
-
46
-
47
- class Decoder(nn.Module):
48
- def __init__(self, hidden_channels, filter_channels, n_heads, n_layers, kernel_size=1, p_dropout=0., proximal_bias=False, proximal_init=True, **kwargs):
49
- super().__init__()
50
- self.hidden_channels = hidden_channels
51
- self.filter_channels = filter_channels
52
- self.n_heads = n_heads
53
- self.n_layers = n_layers
54
- self.kernel_size = kernel_size
55
- self.p_dropout = p_dropout
56
- self.proximal_bias = proximal_bias
57
- self.proximal_init = proximal_init
58
-
59
- self.drop = nn.Dropout(p_dropout)
60
- self.self_attn_layers = nn.ModuleList()
61
- self.norm_layers_0 = nn.ModuleList()
62
- self.encdec_attn_layers = nn.ModuleList()
63
- self.norm_layers_1 = nn.ModuleList()
64
- self.ffn_layers = nn.ModuleList()
65
- self.norm_layers_2 = nn.ModuleList()
66
- for i in range(self.n_layers):
67
- self.self_attn_layers.append(MultiHeadAttention(hidden_channels, hidden_channels, n_heads, p_dropout=p_dropout, proximal_bias=proximal_bias, proximal_init=proximal_init))
68
- self.norm_layers_0.append(LayerNorm(hidden_channels))
69
- self.encdec_attn_layers.append(MultiHeadAttention(hidden_channels, hidden_channels, n_heads, p_dropout=p_dropout))
70
- self.norm_layers_1.append(LayerNorm(hidden_channels))
71
- self.ffn_layers.append(FFN(hidden_channels, hidden_channels, filter_channels, kernel_size, p_dropout=p_dropout, causal=True))
72
- self.norm_layers_2.append(LayerNorm(hidden_channels))
73
-
74
- def forward(self, x, x_mask, h, h_mask):
75
- """
76
- x: decoder input
77
- h: encoder output
78
- """
79
- self_attn_mask = commons.subsequent_mask(x_mask.size(2)).to(device=x.device, dtype=x.dtype)
80
- encdec_attn_mask = h_mask.unsqueeze(2) * x_mask.unsqueeze(-1)
81
- x = x * x_mask
82
- for i in range(self.n_layers):
83
- y = self.self_attn_layers[i](x, x, self_attn_mask)
84
- y = self.drop(y)
85
- x = self.norm_layers_0[i](x + y)
86
-
87
- y = self.encdec_attn_layers[i](x, h, encdec_attn_mask)
88
- y = self.drop(y)
89
- x = self.norm_layers_1[i](x + y)
90
-
91
- y = self.ffn_layers[i](x, x_mask)
92
- y = self.drop(y)
93
- x = self.norm_layers_2[i](x + y)
94
- x = x * x_mask
95
- return x
96
-
97
-
98
- class MultiHeadAttention(nn.Module):
99
- def __init__(self, channels, out_channels, n_heads, p_dropout=0., window_size=None, heads_share=True, block_length=None, proximal_bias=False, proximal_init=False):
100
- super().__init__()
101
- assert channels % n_heads == 0
102
-
103
- self.channels = channels
104
- self.out_channels = out_channels
105
- self.n_heads = n_heads
106
- self.p_dropout = p_dropout
107
- self.window_size = window_size
108
- self.heads_share = heads_share
109
- self.block_length = block_length
110
- self.proximal_bias = proximal_bias
111
- self.proximal_init = proximal_init
112
- self.attn = None
113
-
114
- self.k_channels = channels // n_heads
115
- self.conv_q = nn.Conv1d(channels, channels, 1)
116
- self.conv_k = nn.Conv1d(channels, channels, 1)
117
- self.conv_v = nn.Conv1d(channels, channels, 1)
118
- self.conv_o = nn.Conv1d(channels, out_channels, 1)
119
- self.drop = nn.Dropout(p_dropout)
120
-
121
- if window_size is not None:
122
- n_heads_rel = 1 if heads_share else n_heads
123
- rel_stddev = self.k_channels**-0.5
124
- self.emb_rel_k = nn.Parameter(torch.randn(n_heads_rel, window_size * 2 + 1, self.k_channels) * rel_stddev)
125
- self.emb_rel_v = nn.Parameter(torch.randn(n_heads_rel, window_size * 2 + 1, self.k_channels) * rel_stddev)
126
-
127
- nn.init.xavier_uniform_(self.conv_q.weight)
128
- nn.init.xavier_uniform_(self.conv_k.weight)
129
- nn.init.xavier_uniform_(self.conv_v.weight)
130
- if proximal_init:
131
- with torch.no_grad():
132
- self.conv_k.weight.copy_(self.conv_q.weight)
133
- self.conv_k.bias.copy_(self.conv_q.bias)
134
-
135
- def forward(self, x, c, attn_mask=None):
136
- q = self.conv_q(x)
137
- k = self.conv_k(c)
138
- v = self.conv_v(c)
139
-
140
- x, self.attn = self.attention(q, k, v, mask=attn_mask)
141
-
142
- x = self.conv_o(x)
143
- return x
144
-
145
- def attention(self, query, key, value, mask=None):
146
- # reshape [b, d, t] -> [b, n_h, t, d_k]
147
- b, d, t_s, t_t = (*key.size(), query.size(2))
148
- query = query.view(b, self.n_heads, self.k_channels, t_t).transpose(2, 3)
149
- key = key.view(b, self.n_heads, self.k_channels, t_s).transpose(2, 3)
150
- value = value.view(b, self.n_heads, self.k_channels, t_s).transpose(2, 3)
151
-
152
- scores = torch.matmul(query / math.sqrt(self.k_channels), key.transpose(-2, -1))
153
- if self.window_size is not None:
154
- assert t_s == t_t, "Relative attention is only available for self-attention."
155
- key_relative_embeddings = self._get_relative_embeddings(self.emb_rel_k, t_s)
156
- rel_logits = self._matmul_with_relative_keys(query /math.sqrt(self.k_channels), key_relative_embeddings)
157
- scores_local = self._relative_position_to_absolute_position(rel_logits)
158
- scores = scores + scores_local
159
- if self.proximal_bias:
160
- assert t_s == t_t, "Proximal bias is only available for self-attention."
161
- scores = scores + self._attention_bias_proximal(t_s).to(device=scores.device, dtype=scores.dtype)
162
- if mask is not None:
163
- scores = scores.masked_fill(mask == 0, -1e4)
164
- if self.block_length is not None:
165
- assert t_s == t_t, "Local attention is only available for self-attention."
166
- block_mask = torch.ones_like(scores).triu(-self.block_length).tril(self.block_length)
167
- scores = scores.masked_fill(block_mask == 0, -1e4)
168
- p_attn = F.softmax(scores, dim=-1) # [b, n_h, t_t, t_s]
169
- p_attn = self.drop(p_attn)
170
- output = torch.matmul(p_attn, value)
171
- if self.window_size is not None:
172
- relative_weights = self._absolute_position_to_relative_position(p_attn)
173
- value_relative_embeddings = self._get_relative_embeddings(self.emb_rel_v, t_s)
174
- output = output + self._matmul_with_relative_values(relative_weights, value_relative_embeddings)
175
- output = output.transpose(2, 3).contiguous().view(b, d, t_t) # [b, n_h, t_t, d_k] -> [b, d, t_t]
176
- return output, p_attn
177
-
178
- def _matmul_with_relative_values(self, x, y):
179
- """
180
- x: [b, h, l, m]
181
- y: [h or 1, m, d]
182
- ret: [b, h, l, d]
183
- """
184
- ret = torch.matmul(x, y.unsqueeze(0))
185
- return ret
186
-
187
- def _matmul_with_relative_keys(self, x, y):
188
- """
189
- x: [b, h, l, d]
190
- y: [h or 1, m, d]
191
- ret: [b, h, l, m]
192
- """
193
- ret = torch.matmul(x, y.unsqueeze(0).transpose(-2, -1))
194
- return ret
195
-
196
- def _get_relative_embeddings(self, relative_embeddings, length):
197
- max_relative_position = 2 * self.window_size + 1
198
- # Pad first before slice to avoid using cond ops.
199
- pad_length = max(length - (self.window_size + 1), 0)
200
- slice_start_position = max((self.window_size + 1) - length, 0)
201
- slice_end_position = slice_start_position + 2 * length - 1
202
- if pad_length > 0:
203
- padded_relative_embeddings = F.pad(
204
- relative_embeddings,
205
- commons.convert_pad_shape([[0, 0], [pad_length, pad_length], [0, 0]]))
206
- else:
207
- padded_relative_embeddings = relative_embeddings
208
- used_relative_embeddings = padded_relative_embeddings[:,slice_start_position:slice_end_position]
209
- return used_relative_embeddings
210
-
211
- def _relative_position_to_absolute_position(self, x):
212
- """
213
- x: [b, h, l, 2*l-1]
214
- ret: [b, h, l, l]
215
- """
216
- batch, heads, length, _ = x.size()
217
- # Concat columns of pad to shift from relative to absolute indexing.
218
- x = F.pad(x, commons.convert_pad_shape([[0,0],[0,0],[0,0],[0,1]]))
219
-
220
- # Concat extra elements so to add up to shape (len+1, 2*len-1).
221
- x_flat = x.view([batch, heads, length * 2 * length])
222
- x_flat = F.pad(x_flat, commons.convert_pad_shape([[0,0],[0,0],[0,length-1]]))
223
-
224
- # Reshape and slice out the padded elements.
225
- x_final = x_flat.view([batch, heads, length+1, 2*length-1])[:, :, :length, length-1:]
226
- return x_final
227
-
228
- def _absolute_position_to_relative_position(self, x):
229
- """
230
- x: [b, h, l, l]
231
- ret: [b, h, l, 2*l-1]
232
- """
233
- batch, heads, length, _ = x.size()
234
- # padd along column
235
- x = F.pad(x, commons.convert_pad_shape([[0, 0], [0, 0], [0, 0], [0, length-1]]))
236
- x_flat = x.view([batch, heads, length**2 + length*(length -1)])
237
- # add 0's in the beginning that will skew the elements after reshape
238
- x_flat = F.pad(x_flat, commons.convert_pad_shape([[0, 0], [0, 0], [length, 0]]))
239
- x_final = x_flat.view([batch, heads, length, 2*length])[:,:,:,1:]
240
- return x_final
241
-
242
- def _attention_bias_proximal(self, length):
243
- """Bias for self-attention to encourage attention to close positions.
244
- Args:
245
- length: an integer scalar.
246
- Returns:
247
- a Tensor with shape [1, 1, length, length]
248
- """
249
- r = torch.arange(length, dtype=torch.float32)
250
- diff = torch.unsqueeze(r, 0) - torch.unsqueeze(r, 1)
251
- return torch.unsqueeze(torch.unsqueeze(-torch.log1p(torch.abs(diff)), 0), 0)
252
-
253
-
254
- class FFN(nn.Module):
255
- def __init__(self, in_channels, out_channels, filter_channels, kernel_size, p_dropout=0., activation=None, causal=False):
256
- super().__init__()
257
- self.in_channels = in_channels
258
- self.out_channels = out_channels
259
- self.filter_channels = filter_channels
260
- self.kernel_size = kernel_size
261
- self.p_dropout = p_dropout
262
- self.activation = activation
263
- self.causal = causal
264
-
265
- if causal:
266
- self.padding = self._causal_padding
267
- else:
268
- self.padding = self._same_padding
269
-
270
- self.conv_1 = nn.Conv1d(in_channels, filter_channels, kernel_size)
271
- self.conv_2 = nn.Conv1d(filter_channels, out_channels, kernel_size)
272
- self.drop = nn.Dropout(p_dropout)
273
-
274
- def forward(self, x, x_mask):
275
- x = self.conv_1(self.padding(x * x_mask))
276
- if self.activation == "gelu":
277
- x = x * torch.sigmoid(1.702 * x)
278
- else:
279
- x = torch.relu(x)
280
- x = self.drop(x)
281
- x = self.conv_2(self.padding(x * x_mask))
282
- return x * x_mask
283
-
284
- def _causal_padding(self, x):
285
- if self.kernel_size == 1:
286
- return x
287
- pad_l = self.kernel_size - 1
288
- pad_r = 0
289
- padding = [[0, 0], [0, 0], [pad_l, pad_r]]
290
- x = F.pad(x, commons.convert_pad_shape(padding))
291
- return x
292
-
293
- def _same_padding(self, x):
294
- if self.kernel_size == 1:
295
- return x
296
- pad_l = (self.kernel_size - 1) // 2
297
- pad_r = self.kernel_size // 2
298
- padding = [[0, 0], [0, 0], [pad_l, pad_r]]
299
- x = F.pad(x, commons.convert_pad_shape(padding))
300
- return x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Alinadi98/movie_recommendation_system/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Movie Recommendation System
3
- emoji: 🐢
4
- colorFrom: yellow
5
- colorTo: yellow
6
- sdk: streamlit
7
- sdk_version: 1.17.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ameaou/academic-chatgpt3.1/docs/self_analysis.md DELETED
@@ -1,256 +0,0 @@
1
- # chatgpt-academic项目自译解报告
2
- (Author补充:以下分析均由本项目调用ChatGPT一键生成,如果有不准确的地方,全怪GPT😄)
3
-
4
- ## 对程序的整体功能和构架做出概括。然后用一张markdown表格整理每个文件的功能。
5
-
6
- 整体概括:
7
-
8
- 该程序是一个基于自然语言处理和机器学习的科学论文辅助工具,主要功能包括聊天机器人、批量总结PDF文档、批量翻译PDF文档、生成函数注释、解析项目源代码等。程序基于 Gradio 构建 Web 服务,并集成了代理和自动更新功能,提高了用户的使用体验。
9
-
10
- 文件功能表格:
11
-
12
- | 文件名 | 文件功能 |
13
- | --- | --- |
14
- | check_proxy.py | 用于检查代理的正确性和可用性 |
15
- | colorful.py | 包含不同预设置颜色的常量,并用于多种UI元素 |
16
- | config.py | 用于全局配置的类 |
17
- | config_private.py | 与config.py文件一起使用的另一个配置文件,用于更改私密信息 |
18
- | core_functional.py | 包含一些TextFunctional类和基础功能函数 |
19
- | crazy_functional.py | 包含大量高级功能函数和实验性的功能函数 |
20
- | main.py | 程序的主入口,包含GUI主窗口和主要的UI管理功能 |
21
- | theme.py | 包含一些预设置主题的颜色 |
22
- | toolbox.py | 提供了一些有用的工具函数 |
23
- | crazy_functions\crazy_utils.py | 包含一些用于实现高级功能的辅助函数 |
24
- | crazy_functions\Latex全文润色.py | 实现了对LaTeX文件中全文的润色和格式化功能 |
25
- | crazy_functions\Latex全文翻译.py | 实现了对LaTeX文件中的内容进行翻译的功能 |
26
- | crazy_functions\_\_init\_\_.py | 用于导入crazy_functional.py中的功能函数 |
27
- | crazy_functions\下载arxiv论文翻译摘要.py | 从Arxiv上下载论文并提取重要信息 |
28
- | crazy_functions\代码重写为全英文_多线程.py | 针对中文Python文件,将其翻译为全英文 |
29
- | crazy_functions\总结word文档.py | 提取Word文件的重要内容来生成摘要 |
30
- | crazy_functions\批量Markdown翻译.py | 批量翻译Markdown文件 |
31
- | crazy_functions\批量总结PDF文档.py | 批量从PDF文件中提取摘要 |
32
- | crazy_functions\批量总结PDF文档pdfminer.py | 批量从PDF文件中提取摘要 |
33
- | crazy_functions\批量翻译PDF文档_多线程.py | 批量翻译PDF文件 |
34
- | crazy_functions\理解PDF文档内容.py | 批量分析PDF文件并提取摘要 |
35
- | crazy_functions\生成函数注释.py | 自动生成Python文件中函数的注释 |
36
- | crazy_functions\解析项目源代码.py | 解析并分析给定项目的源代码 |
37
- | crazy_functions\询问多个大语言模型.py | 向多个大语言模型询问输入文本并进行处理 |
38
- | crazy_functions\读文献写摘要.py | 根据用户输入读取文献内容并生成摘要 |
39
- | crazy_functions\谷歌检索小助手.py | 利用谷歌学术检索用户提供的论文信息并提取相关信息 |
40
- | crazy_functions\高级功能函数模板.py | 实现高级功能的模板函数 |
41
- | request_llm\bridge_all.py | 处理与LLM的交互 |
42
- | request_llm\bridge_chatglm.py | 使用ChatGLM模型进行聊天 |
43
- | request_llm\bridge_chatgpt.py | 实现对话生成的各项功能 |
44
- | request_llm\bridge_tgui.py | 在Websockets中与用户进行交互并生成文本输出 |
45
-
46
-
47
-
48
- ## [0/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\check_proxy.py
49
-
50
- 该文件主要包括四个函数:check_proxy、backup_and_download、patch_and_restart 和 auto_update。其中,check_proxy 函数用于检查代理是否可用;backup_and_download 用于进行一键更新备份和下载;patch_and_restart 是一键更新协议的重要函数,用于覆盖和重启;auto_update 函数用于查询版本和用户意见,并自动进行一键更新。该文件主要使用了 requests、json、shutil、zipfile、distutils、subprocess 等 Python 标准库和 toolbox 和 colorful 两个第三方库。
51
-
52
- ## [1/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\colorful.py
53
-
54
- 该程序文件实现了一些打印文本的函数,使其具有不同的颜色输出。当系统为Linux时直接跳过,否则使用colorama库来实现颜色输出。程序提供了深色和亮色两种颜色输出方式,同时也提供了对打印函数的别名。对于不是终端输出的情况,对所有的打印函数进行重复定义,以便在重定向时能够避免打印错误日志。
55
-
56
- ## [2/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\config.py
57
-
58
- 该程序文件是一个配置文件,其主要功能是提供使用API密钥等信息,以及对程序的体验进行优化,例如定义对话框高度、布局等。还包含一些其他的设置,例如设置并行使用的线程数、重试次数限制等等。
59
-
60
- ## [3/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\config_private.py
61
-
62
- 这是一个名为config_private.py的Python文件,它用于配置API_KEY和代理信息。API_KEY是一个私密密钥,用于访���某些受保护的API。USE_PROXY变量设置为True以应用代理,proxies变量配置了代理网络的地址和协议。在使用该文件时,需要填写正确的API_KEY和代理信息。
63
-
64
- ## [4/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\core_functional.py
65
-
66
- 该文件是一个Python模块,名为"core_functional.py"。模块中定义了一个字典,包含了各种核心功能的配置信息,如英语学术润色、中文学术润色、查找语法错误等。每个功能都包含一些前言和后语,在前言中描述了该功能的任务和要求,在后语中提供一些附加信息。此外,有些功能还定义了一些特定的处理函数和按钮颜色。
67
-
68
- ## [5/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functional.py
69
-
70
- 这是一个Python程序文件,文件名是crazy_functional.py。它导入了一个名为HotReload的工具箱,并定义了一个名为get_crazy_functions()的函数。这个函数包括三个部分的插件组,分别是已经编写完成的第一组插件、已经测试但距离完美状态还差一点点的第二组插件和尚未充分测试的第三组插件。每个插件都有一个名称、一个按钮颜色、一个函数和一个是否加入下拉菜单中的标志位。这些插件提供了多种功能,包括生成函数注释、解析项目源代码、批量翻译PDF文档、谷歌检索、PDF文档内容理解和Latex文档的全文润色、翻译等功能。其中第三组插件可能还存在一定的bug。
71
-
72
- ## [6/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\main.py
73
-
74
- 该Python脚本代码实现了一个用于交互式对话的Chatbot机器人。它使用了Gradio框架来构建一个Web界面,并在此基础之上嵌入了一个文本输入框和与Chatbot进行交互的其他控件,包括提交、重置、停止和清除按钮、选择框和滑块等。此外,它还包括了一些类和函数和一些用于编程分析的工具和方法。整个程序文件的结构清晰,注释丰富,并提供了很多技术细节,使得开发者可以很容易地在其基础上进行二次开发、修改、扩展和集成。
75
-
76
- ## [7/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\theme.py
77
-
78
- 该程序文件名为theme.py,主要功能为调节Gradio的全局样式。在该文件中,调节了Gradio的主题颜色、字体、阴影、边框、渐变等等样式。同时,该文件还添加了一些高级CSS样式,比如调整表格单元格的背景和边框,设定聊天气泡的圆角、最大宽度和阴影等等。如果CODE_HIGHLIGHT为True,则还进行了代码高亮显示。
79
-
80
- ## [8/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\toolbox.py
81
-
82
- 这是一个名为`toolbox.py`的源代码文件。该文件包含了一系列工具函数和装饰器,用于聊天Bot的开发和调试。其中有一些功能包括将输入参数进行重组、捕捉函数中的异常并记录到历史记录中、生成Markdown格式的聊天记录报告等。该文件中还包含了一些与转换Markdown文本相关的函数。
83
-
84
- ## [9/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\crazy_utils.py
85
-
86
- 这是一个Python程序文件 `crazy_utils.py`,它包含了两个函数:
87
-
88
- - `input_clipping(inputs, history, max_token_limit)`:这个函数接收三个参数,inputs 是一个字符串,history 是一个列表,max_token_limit 是一个整数。它使用 `tiktoken` 、`numpy` 和 `toolbox` 模块,处理输入文本和历史记录,将其裁剪到指定的最大标记数,避免输入过长导致的性能问题。如果 inputs 长度不超过 max_token_limit 的一半,则只裁剪历史;否则,同时裁剪输入和历史。
89
- - `request_gpt_model_in_new_thread_with_ui_alive(inputs, inputs_show_user, llm_kwargs, chatbot, history, sys_prompt, refresh_interval=0.2, handle_token_exceed=True, retry_times_at_unknown_error=2)`:这个函数接收八个参数,其中后三个是列表类型,其他为标量或句柄等。它提供对话窗口和刷新控制,执行 `predict_no_ui_long_connection` 方法,将输入数据发送至 GPT 模型并获取结果,如果子任务出错,返回相应的错误信息,否则返回结果。
90
-
91
- ## [10/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\Latex全文润色.py
92
-
93
- 这是一个名为"crazy_functions\Latex全文润色.py"的程序文件,其中包含了两个函数"Latex英文润色"和"Latex中文润色",以及其他辅助函数。这些函数能够对 Latex 项目进行润色处理,其中 "多文件润色" 函数是一个主要函数,它调用了其他辅助函数用于读取和处理 Latex 项目中的文件。函数使用了多线程和机器学习模型进行自然语言处理,对文件进行简化和排版来满足学术标准。注释已删除并可以在函数内部查找。
94
-
95
- ## [11/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\Latex全文翻译.py
96
-
97
- 这个程序文件包括一个用于对整个Latex项目进行翻译的函数 `Latex英译中` 和一个用于将中文翻译为英文的函数 `Latex中译英`。这两个函数都会尝试导入依赖库 tiktoken, 若无法导入则会提示用户安装。`Latex英译中` 函数会对 Latex 项目中的文件进行分离并去除注释,然后运行多线程翻译。`Latex中译英` 也做同样的事情,只不过是将中文翻译为英文。这个程序文件还包括其他一些帮助函数。
98
-
99
- ## [12/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\__init__.py
100
-
101
- 这是一个 Python 包,包名为 `crazy_functions`,在 `__init__.py` 文件中定义了一些函数,包含以下函数:
102
-
103
- - `crazy_addition(a, b)`:对两个数进行加法运算,并将结果返回。
104
- - `crazy_multiplication(a, b)`:对两个数进行乘法运算,并将结果返回。
105
- - `crazy_subtraction(a, b)`:对两个数进行减法运算,并将结果返回。
106
- - `crazy_division(a, b)`:对两个数进行除法运算,并将结果返回。
107
- - `crazy_factorial(n)`:计算 `n` 的阶乘并返回结果。
108
-
109
- 这些函数可能会有一些奇怪或者不符合常规的实现方式(由函数名可以看出来),所以这个包的名称为 `crazy_functions`,可能是暗示这些函数会有一些“疯狂”的实现方式。
110
-
111
- ## [13/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\下载arxiv论文翻译摘要.py
112
-
113
- 该程序实现了一个名为“下载arxiv论文并翻译摘要”的函数插件,作者是“binary-husky”。该函数的功能是,在输入一篇arxiv论文的链接后,提取摘要、下载PDF文档、翻译摘要为中文,并将翻译结果保存到文件中。程序使用了一些Python库,如requests、pdfminer和beautifulsoup4等。程序入口是名为“下载arxiv论文并翻译摘要”的函数,其中使用了自定义的辅助函数download_arxiv_和get_name。程序中还使用了其他非函数的辅助函数和变量,如update_ui、CatchException、report_exception和get_conf等。
114
-
115
- ## [14/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\代码重写为全英文_多线程.py
116
-
117
- 该文件是一个多线程Python脚本,包含多个函数和利用第三方库进行的API请求。主要功能是将给定文件夹内的Python代码文件中所有中文转化为英文,然后输出转化后的英文代码。重要的功能和步骤包括:
118
-
119
- 1. 清空历史,以免输入溢出
120
- 2. 尝试导入依赖,如果缺少依赖,则给出安装建议
121
- 3. 集合文件
122
- 4. 显示随意内容以防卡顿的感觉
123
- 5. Token限制下的截断与处理
124
- 6. 多线程操作请求转换中文变为英文的代码
125
- 7. 所有线程同时开始执行任务函数
126
- 8. 循环轮询各个线程是否执行完毕
127
- 9. 把结果写入文件
128
- 10. 备份一个文件
129
-
130
- ## [15/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\总结word文档.py
131
-
132
- 这是一个名为"总结word文档.py"的程序文件,使用python编写。该文件导入了"toolbox"和"crazy_utils"模块,实现了解析docx格式和doc格式的文件的功能。该文件包含了一个名为"解析docx"的函数,通过对文件内容应用自然语言处理技术,生成文章片段的中英文概述。具体实现过程中,该函数使用了"docx"模块和"win32com.client"模块来实现对docx和doc格式文件的解析,同时使用了"request_gpt_model_in_new_thread_with_ui_alive"函数来向GPT模型发起请求。最后,该文件还实现了一个名为"总结word文档"的函数来批量总结Word文档。
133
-
134
- ## [16/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\批量Markdown翻译.py
135
-
136
- 这个程序文件实现了一个批量Markdown翻译功能,可以将一个源代码项目中的Markdown文本翻译成指定语言(目前支持中<-英和英<-中)。程序主要分为三个函数,`PaperFileGroup`类用于处理长文本的拆分,`多文件翻译`是主要函数调用了`request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency`函数进行多线程翻译并输出结果,`Markdown英译中`和`Markdown中译外`分别是英译中和中译英的入口函数,用于解析项目路径和调用翻译函数。程序依赖于tiktoken等库实现。
137
-
138
- ## [17/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\批量总结PDF文档.py
139
-
140
- 这是一个名为“批量总结PDF文档”的Python脚本,包含了多个函数。其中有一个函数名为“clean_text”,可以对PDF提取出的原始文本进行清洗和格式化处理,将连字转换为其基本形式,并根据heuristic规则判断换行符是否是段落分隔,并相应地进行替换。另一个函数名为“解析PDF”,可以接收一个PDF文件清单,并对清单中的每一个PDF进行解析,提取��文本并调用“clean_text”函数进行清洗和格式化处理,然后向用户发送一个包含文章简介信息的问题并等待用户回答。最后,该脚本也包含一个名为“批量总结PDF文档”的主函数,其中调用了“解析PDF”函数来完成对PDF文件的批量处理。
141
-
142
- ## [18/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\批量总结PDF文档pdfminer.py
143
-
144
- 这个文件是一个Python模块,文件名为pdfminer.py,它定义了一个函数批量总结PDF文档。该函数接受一些参数,然后尝试导入pdfminer和beautifulsoup4库。该函数将读取pdf文件或tex文件中的内容,对其进行分析,并使用GPT模型进行自然语言摘要。文件中还有一个辅助函数readPdf,用于读取pdf文件中的内容。
145
-
146
- ## [19/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\批量翻译PDF文档_多线程.py
147
-
148
- 这是一个Python脚本,文件名是crazy_functions\批量翻译PDF文档_多线程.py。该脚本提供了一个名为“批量翻译PDF文档”的函数,可以批量翻译PDF文件并生成报告文件。该函数使用了多个模块和函数(如toolbox、crazy_utils、update_ui等),使用了Python的异常处理和多线程功能,还使用了一些文本处理函数和第三方库(如fitz和tiktoken)。在函数执行过程中,它会进行一些参数检查、读取和清理PDF文本、递归地切割PDF文件、获取文章meta信息、多线程翻译、整理报告格式等操作,并更新UI界面和生成报告文件。
149
-
150
- ## [20/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\理解PDF文档内容.py
151
-
152
- 这是一个解析PDF文件内容的Python程序,程序文件名为"理解PDF文档内容.py",程序主要由5个步骤组成:第0步是切割PDF文件;第1步是从摘要中提取高价值信息,放到history中;第2步是迭代地历遍整个文章,提取精炼信息;第3步是整理history;第4步是设置一个token上限,防止回答时Token溢出。程序主要用到了Python中的各种模块和函数库,如:toolbox, tiktoken, pymupdf等。
153
-
154
- ## [21/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\生成函数注释.py
155
-
156
- 这是一个名为"生成函数注释"的函数,带有一个装饰器"@CatchException",可以捕获异常。该函数接受文件路径、参数和聊天机器人等参数,用于对多个Python或C++文件进行函数注释,使用了"toolbox"和"crazy_utils"模块中的函数。该函数会逐个读取指定文件中的内容,并使用聊天机器人进行交互,向用户请求注释信息,然后将生成的注释与原文件内容一起输出到一个markdown表格中。最后,该函数返回一个字符串,指示任务是否已完成。另外还包含一个名为"批量生成函数注释"的函数,它与"生成函数注释"函数一起用于批量处理多个文件。
157
-
158
- ## [22/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\解析项目源代码.py
159
-
160
- 这个程序文件实现了对一个源代码项目进行分析的功能。其中,函数`解析项目本身`、`解析一个Python项目`、`解析一个C项目的头文件`、`解析一个C项目`、`解析一个Java项目`和`解析一个Rect项目`分别用于解析不同类型的项目。函数`解析源代码新`实现了对每一个源代码文件的分析,并将分析结果汇总,同时还实现了分组和迭代处理,提高了效率。最后,函数`write_results_to_file`将所有分析结果写入文件。中间,还用到了`request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency`和`request_gpt_model_in_new_thread_with_ui_alive`来完成请求和响应,并用`update_ui`实时更新界面。
161
-
162
- ## [23/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\询问多个大语言模型.py
163
-
164
- 这是一个Python程序,文件名为"crazy_functions\询问多个大语言模型.py"。该程序实现了一个同时向多个大语言模型询问的功能,接收用户输入文本以及模型参数,向ChatGPT和ChatGLM模型发出请求,并将对话记录显示在聊天框中,同时刷新界面。
165
-
166
- ## [24/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\读文章写摘要.py
167
-
168
- 该程序文件是一个Python模块,文件名为"读文章写摘要.py",主要包含两个函数:"解析Paper"和"读文章写摘要"。其中,"解析Paper"函数接受文件路径、参数等参数,逐个打印文件内容并使用GPT模型生成对该文件的摘要;"读文章写摘要"函数则接受一段文本内容和参数,将该文本内容及其所有.tex文件逐个传递给"解析Paper"函数进行处理,并使用GPT模型生成文章的中英文摘要。文件还导入了一些工具函数,如异常处理、信息上报和文件写入等。
169
-
170
- ## [25/31] 请对下面��程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\谷歌检索小助手.py
171
-
172
- 该文件代码包含了一个名为`get_meta_information`的函数和一个名为`谷歌检索小助手`的装饰器函数,用于从谷歌学术中抓取文章元信息,并从用户提供的搜索页面中分析所有文章的相关信息。该文件使用了许多第三方库,如requests、arxiv、BeautifulSoup等。其中`get_meta_information`函数中还定义了一个名为`string_similar`的辅助函数,用于比较字符串相似度。
173
-
174
- ## [26/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\crazy_functions\高级功能函数模板.py
175
-
176
- 该程序文件是一个 Python 模块,包含一个名为“高阶功能模板函数”的函数。该函数接受多个参数,其中包括输入文本、GPT 模型参数、插件模型参数、聊天显示框、聊天历史等。 该函数的主要功能是根据输入文本,使用 GPT 模型生成一些问题,并等待用户回答这些问题(使用 Markdown 格式),然后将用户回答加入到聊天历史中,并更新聊天显示框。该函数还包含了一些异常处理和多线程的相关操作。该程序文件还引用了另一个 Python 模块中的两个函数,分别为“CatchException”和“update_ui”,并且还引用了一个名为“request_gpt_model_in_new_thread_with_ui_alive”的自定义函数。
177
-
178
- ## [27/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\request_llm\bridge_all.py
179
-
180
- 这个文件是用来处理与LLM的交互的。包含两个函数,一个是 predict_no_ui_long_connection 用来处理长文本的输出,可以多线程调用;另一个是 predict 用来处理基础的对话功能。这个文件会导入其他文件中定义的方法进行调用,具体调用哪个方法取决于传入的参数。函数中还有一些装饰器和管理多线程的逻辑。
181
-
182
- ## [28/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\request_llm\bridge_chatglm.py
183
-
184
- 这个程序文件实现了一个使用ChatGLM模型进行聊天的功能。具体实现过程是:首先进行初始化,然后使用GetGLMHandle类进行ChatGLM模型的加载和运行。predict_no_ui_long_connection函数用于多线程聊天,而predict函数用于单线程聊天,它们的不同之处在于前者不会更新UI界面,后者会。这个文件还导入了其他模块和库,例如transformers、time、importlib等,并使用了多进程Pipe。
185
-
186
- ## [29/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\request_llm\bridge_chatgpt.py
187
-
188
- 这个程序文件是用于对话生成的,主要包含三个函数:predict、predict_no_ui、predict_no_ui_long_connection。其中,predict是用于普通对话的函数,具备完备的交互功能,但不具备多线程能力;predict_no_ui是高级实验性功能模块调用的函数,参数简单,可以多线程并行,方便实现复杂的功能逻辑;predict_no_ui_long_connection解决了predict_no_ui在处理长文档时容易断开连接的问题,同样支持多线程。程序中还包含一些常量和工具函数,用于整合信息,选择LLM模型,生成http请求,发送请求,接收响应等。它需要配置一个config文件,包含代理网址、API等敏感信息。
189
-
190
- ## [30/31] 请对下面的程序文件做一个概述: H:\chatgpt_academic_resolve\request_llm\bridge_tgui.py
191
-
192
- 该程序文件实现了一个基于Websockets的文本生成服务和对话功能。其中,有三个函数:`run()`、`predict()`和`predict_no_ui_long_connection()`。`run()`函数用于连接到Websocket服务并生成文本结果;`predict()`函数用于将用户输入作为文本生成的输入,同时在UI上显示对话历史记录,并在不断更新UI的过程中不断更新生成的文本输出;`predict_no_ui_long_connection()`函数与`predict()`函数类似,但没有UI,并在一段时间内返回单个生成的文本。整个程序还引入了多个Python模块来完成相关功能,例如`asyncio`、`websockets`、`json`等等。
193
-
194
- ## 根据以上分析,对程序的整体功能和构架重新做出概括。然后用一张markdown表格整理每个文件的功能(包括check_proxy.py, colorful.py, config.py, config_private.py, core_functional.py, crazy_functional.py, main.py, theme.py, toolbox.py, crazy_functions\crazy_utils.py, crazy_functions\Latex全文润色.py, crazy_functions\Latex全文翻译.py, crazy_functions\__init__.py, crazy_functions\下载arxiv论文翻译摘要.py, crazy_functions\代码重写为全英文_多线程.py, crazy_functions\总结word文档.py)。
195
-
196
- 程序功能概括:该程序是一个聊天机器人,可以通过 Web 界面与用户进行交互。它包含了丰富的功能,如文本润色、翻译、代码重写、在线查找等,并且支持多线程处理。用户可以通过 Gradio 框架提供的 Web 界面进行交互,程序还提供了一些调试工具,如toolbox 模块,方便程序开发和调试。
197
-
198
- ���表概述了每个文件的功能:
199
-
200
- | 文件名 | 功能 |
201
- | ----------------------------------------------------------- | ------------------------------------------------------------ |
202
- | check_proxy.py | 检查代理是否可用 |
203
- | colorful.py | 用于打印文本的字体颜色输出模块 |
204
- | config.py | 用于程序中的各种设置,如并行线程数量和重试次数的限制等 |
205
- | config_private.py | 配置API_KEY和代理信息的文件 |
206
- | core_functional.py | 包含具体的文本处理功能的模块 |
207
- | crazy_functional.py | 包括各种插件函数的模块,提供了多种文本处理功能 |
208
- | main.py | 包含 Chatbot 机器人主程序的模块 |
209
- | theme.py | 用于调节全局样式的模块 |
210
- | toolbox.py | 包含工具函数和装饰器,用于聊天Bot的开发和调试 |
211
- | crazy_functions\crazy_utils.py | 包含一些辅助函数,如文本裁剪和消息捕捉等 |
212
- | crazy_functions\Latex全文润色.py | 对 Latex 项目进行润色处理的功能模块 |
213
- | crazy_functions\Latex全文翻译.py | 对 Latex 项目进行翻译的功能模块 |
214
- | crazy_functions\__init__.py | 定义一些奇特的数学函数等 |
215
- | crazy_functions\下载arxiv论文翻译摘要.py | 下载 Arxiv 论文并翻译摘要的功能模块 |
216
- | crazy_functions\代码重写为全英文_多线程.py | 将Python程序中所有中文转化为英文的功能模块 |
217
- | crazy_functions\总结word文档.py | 解析 docx 和 doc 格式的文件,生成文章片段的中英文概述的功能模块 |
218
-
219
- ## 根据以上分析,对程序的整体功能和构架重新做出概括。然后用一张markdown表格整理每个文件的功能(包括check_proxy.py, colorful.py, config.py, config_private.py, core_functional.py, crazy_functional.py, main.py, theme.py, toolbox.py, crazy_functions\crazy_utils.py, crazy_functions\Latex全文润色.py, crazy_functions\Latex全文翻译.py, crazy_functions\__init__.py, crazy_functions\下载arxiv论文翻译摘要.py, crazy_functions\代码重写为全英文_多线程.py, crazy_functions\总结word文档.py, crazy_functions\批量Markdown翻译.py, crazy_functions\批量总结PDF文档.py, crazy_functions\批量总结PDF文档pdfminer.py, crazy_functions\批量翻译PDF文档_多线程.py, crazy_functions\理解PDF文档内容.py, crazy_functions\生成函数注释.py, crazy_functions\解析项目源代码.py, crazy_functions\询问多个大语言模型.py, crazy_functions\读文章写摘要.py, crazy_functions\谷歌检索小助手.py, crazy_functions\高级功能函数模板.py, request_llm\bridge_all.py, request_llm\bridge_chatglm.py, request_llm\bridge_chatgpt.py, request_llm\bridge_tgui.py)。
220
-
221
- 根据以上分析,整个程序是一个集成了多个有用工具和功能的文本处理和生成工具,提供了多种在不同场景下使用的功能,包括但不限于对话生成、文本摘要、PDF文件批量处理、代码翻译和实用工具等。主要的Python模块包括"toolbox.py"、"config.py"、"core_functional.py"和"crazy_functional.py"等,并且还使用了许多第三方库和模块实现相关功能。以下是每个程序文件的功能:
222
-
223
- | 文件名 | 文件功能 |
224
- | --- | --- |
225
- | check_proxy.py | 用于检查代理的正确性和可用性 |
226
- | colorful.py | 包含不同预设置颜色的常量,并用于多种UI元素 |
227
- | config.py | 用于全局配置的类 |
228
- | config_private.py | 与config.py文件一起使用的另一个配置文件,用于更改私密信息 |
229
- | core_functional.py | 包含一些TextFunctional类和基础功能函数 |
230
- | crazy_functional.py | 包含大量高级功能函数和实验性的功能函数 |
231
- | main.py | 程序的主入口,包含GUI主窗口和主要的UI管理功能 |
232
- | theme.py | 包含一些预设置主题的颜色 |
233
- | toolbox.py | 提供了一些有用的工具函数 |
234
- | crazy_functions\crazy_utils.py | 包含一些用于实现高级功能的辅助函数 |
235
- | crazy_functions\Latex全文润色.py | 实现了对LaTeX文件中全文的润色和格式化功能 |
236
- | crazy_functions\Latex全文翻译.py | 实现了对LaTeX文件中的内容进行翻译的功能 |
237
- | crazy_functions\_\_init\_\_.py | 用于导入crazy_functional.py中的功能函数 |
238
- | crazy_functions\下载arxiv论文翻译摘要.py | 从Arxiv上下载论文并提取重要信息 |
239
- | crazy_functions\代码重写为全英文_多线程.py | 针对中文Python文件,将其翻译为全英文 |
240
- | crazy_functions\总结word文档.py | 提取Word文件的重要内容来生成摘要 |
241
- | crazy_functions\批量Markdown翻译.py | 批量翻译Markdown文件 |
242
- | crazy_functions\批量总结PDF文档.py | 批量从PDF文件中提取摘要 |
243
- | crazy_functions\批量总结PDF文档pdfminer.py | 批量从PDF文件中提取摘要 |
244
- | crazy_functions\批量翻译PDF文档_多线程.py | 批量翻译PDF文件 |
245
- | crazy_functions\理解PDF文档内容.py | 批量分析PDF文件并提取摘要 |
246
- | crazy_functions\生成函数注释.py | 自动生成Python文件中函数的注释 |
247
- | crazy_functions\解析项目源代码.py | 解析并分析给定项目的源代码 |
248
- | crazy_functions\询问多个大语言模型.py | 向多个大语言模型询问输入文本并进行处理 |
249
- | crazy_functions\读文献写摘要.py | 根据用户输入读取文献内容并生成摘要 |
250
- | crazy_functions\谷歌检索小助手.py | 利用谷歌学术检索用户提供的论文信息并提取相关信息 |
251
- | crazy_functions\高级功能函数模板.py | 实现高级功能的模板函数 |
252
- | request_llm\bridge_all.py | 处理与LLM的交互 |
253
- | request_llm\bridge_chatglm.py | 使用ChatGLM模型进行聊天 |
254
- | request_llm\bridge_chatgpt.py | 实现对话生成的各项功能 |
255
- | request_llm\bridge_tgui.py | 在Websockets中与用户进行交互并生成文本输出 |
256
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py DELETED
@@ -1,348 +0,0 @@
1
- # Copyright 2023 The HuggingFace Team. All rights reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- from typing import Callable, List, Optional, Union
16
-
17
- import torch
18
-
19
- from ...models import UNet2DConditionModel, VQModel
20
- from ...schedulers import DDPMScheduler
21
- from ...utils import (
22
- is_accelerate_available,
23
- is_accelerate_version,
24
- logging,
25
- randn_tensor,
26
- replace_example_docstring,
27
- )
28
- from ..pipeline_utils import DiffusionPipeline, ImagePipelineOutput
29
-
30
-
31
- logger = logging.get_logger(__name__) # pylint: disable=invalid-name
32
-
33
- EXAMPLE_DOC_STRING = """
34
- Examples:
35
- ```py
36
- >>> import torch
37
- >>> import numpy as np
38
-
39
- >>> from diffusers import KandinskyV22PriorPipeline, KandinskyV22ControlnetPipeline
40
- >>> from transformers import pipeline
41
- >>> from diffusers.utils import load_image
42
-
43
-
44
- >>> def make_hint(image, depth_estimator):
45
- ... image = depth_estimator(image)["depth"]
46
- ... image = np.array(image)
47
- ... image = image[:, :, None]
48
- ... image = np.concatenate([image, image, image], axis=2)
49
- ... detected_map = torch.from_numpy(image).float() / 255.0
50
- ... hint = detected_map.permute(2, 0, 1)
51
- ... return hint
52
-
53
-
54
- >>> depth_estimator = pipeline("depth-estimation")
55
-
56
- >>> pipe_prior = KandinskyV22PriorPipeline.from_pretrained(
57
- ... "kandinsky-community/kandinsky-2-2-prior", torch_dtype=torch.float16
58
- ... )
59
- >>> pipe_prior = pipe_prior.to("cuda")
60
-
61
- >>> pipe = KandinskyV22ControlnetPipeline.from_pretrained(
62
- ... "kandinsky-community/kandinsky-2-2-controlnet-depth", torch_dtype=torch.float16
63
- ... )
64
- >>> pipe = pipe.to("cuda")
65
-
66
-
67
- >>> img = load_image(
68
- ... "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
69
- ... "/kandinsky/cat.png"
70
- ... ).resize((768, 768))
71
-
72
- >>> hint = make_hint(img, depth_estimator).unsqueeze(0).half().to("cuda")
73
-
74
- >>> prompt = "A robot, 4k photo"
75
- >>> negative_prior_prompt = "lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck, username, watermark, signature"
76
-
77
- >>> generator = torch.Generator(device="cuda").manual_seed(43)
78
-
79
- >>> image_emb, zero_image_emb = pipe_prior(
80
- ... prompt=prompt, negative_prompt=negative_prior_prompt, generator=generator
81
- ... ).to_tuple()
82
-
83
- >>> images = pipe(
84
- ... image_embeds=image_emb,
85
- ... negative_image_embeds=zero_image_emb,
86
- ... hint=hint,
87
- ... num_inference_steps=50,
88
- ... generator=generator,
89
- ... height=768,
90
- ... width=768,
91
- ... ).images
92
-
93
- >>> images[0].save("robot_cat.png")
94
- ```
95
- """
96
-
97
-
98
- # Copied from diffusers.pipelines.kandinsky2_2.pipeline_kandinsky2_2.downscale_height_and_width
99
- def downscale_height_and_width(height, width, scale_factor=8):
100
- new_height = height // scale_factor**2
101
- if height % scale_factor**2 != 0:
102
- new_height += 1
103
- new_width = width // scale_factor**2
104
- if width % scale_factor**2 != 0:
105
- new_width += 1
106
- return new_height * scale_factor, new_width * scale_factor
107
-
108
-
109
- class KandinskyV22ControlnetPipeline(DiffusionPipeline):
110
- """
111
- Pipeline for text-to-image generation using Kandinsky
112
-
113
- This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods the
114
- library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)
115
-
116
- Args:
117
- scheduler ([`DDIMScheduler`]):
118
- A scheduler to be used in combination with `unet` to generate image latents.
119
- unet ([`UNet2DConditionModel`]):
120
- Conditional U-Net architecture to denoise the image embedding.
121
- movq ([`VQModel`]):
122
- MoVQ Decoder to generate the image from the latents.
123
- """
124
-
125
- def __init__(
126
- self,
127
- unet: UNet2DConditionModel,
128
- scheduler: DDPMScheduler,
129
- movq: VQModel,
130
- ):
131
- super().__init__()
132
-
133
- self.register_modules(
134
- unet=unet,
135
- scheduler=scheduler,
136
- movq=movq,
137
- )
138
- self.movq_scale_factor = 2 ** (len(self.movq.config.block_out_channels) - 1)
139
-
140
- # Copied from diffusers.pipelines.unclip.pipeline_unclip.UnCLIPPipeline.prepare_latents
141
- def prepare_latents(self, shape, dtype, device, generator, latents, scheduler):
142
- if latents is None:
143
- latents = randn_tensor(shape, generator=generator, device=device, dtype=dtype)
144
- else:
145
- if latents.shape != shape:
146
- raise ValueError(f"Unexpected latents shape, got {latents.shape}, expected {shape}")
147
- latents = latents.to(device)
148
-
149
- latents = latents * scheduler.init_noise_sigma
150
- return latents
151
-
152
- # Copied from diffusers.pipelines.kandinsky2_2.pipeline_kandinsky2_2.KandinskyV22Pipeline.enable_model_cpu_offload
153
- def enable_model_cpu_offload(self, gpu_id=0):
154
- r"""
155
- Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared
156
- to `enable_sequential_cpu_offload`, this method moves one whole model at a time to the GPU when its `forward`
157
- method is called, and the model remains in GPU until the next model runs. Memory savings are lower than with
158
- `enable_sequential_cpu_offload`, but performance is much better due to the iterative execution of the `unet`.
159
- """
160
- if is_accelerate_available() and is_accelerate_version(">=", "0.17.0.dev0"):
161
- from accelerate import cpu_offload_with_hook
162
- else:
163
- raise ImportError("`enable_model_cpu_offload` requires `accelerate v0.17.0` or higher.")
164
-
165
- device = torch.device(f"cuda:{gpu_id}")
166
-
167
- if self.device.type != "cpu":
168
- self.to("cpu", silence_dtype_warnings=True)
169
- torch.cuda.empty_cache() # otherwise we don't see the memory savings (but they probably exist)
170
-
171
- hook = None
172
- for cpu_offloaded_model in [self.unet, self.movq]:
173
- _, hook = cpu_offload_with_hook(cpu_offloaded_model, device, prev_module_hook=hook)
174
-
175
- # We'll offload the last model manually.
176
- self.final_offload_hook = hook
177
-
178
- @torch.no_grad()
179
- @replace_example_docstring(EXAMPLE_DOC_STRING)
180
- def __call__(
181
- self,
182
- image_embeds: Union[torch.FloatTensor, List[torch.FloatTensor]],
183
- negative_image_embeds: Union[torch.FloatTensor, List[torch.FloatTensor]],
184
- hint: torch.FloatTensor,
185
- height: int = 512,
186
- width: int = 512,
187
- num_inference_steps: int = 100,
188
- guidance_scale: float = 4.0,
189
- num_images_per_prompt: int = 1,
190
- generator: Optional[Union[torch.Generator, List[torch.Generator]]] = None,
191
- latents: Optional[torch.FloatTensor] = None,
192
- output_type: Optional[str] = "pil",
193
- callback: Optional[Callable[[int, int, torch.FloatTensor], None]] = None,
194
- callback_steps: int = 1,
195
- return_dict: bool = True,
196
- ):
197
- """
198
- Function invoked when calling the pipeline for generation.
199
-
200
- Args:
201
- prompt (`str` or `List[str]`):
202
- The prompt or prompts to guide the image generation.
203
- hint (`torch.FloatTensor`):
204
- The controlnet condition.
205
- image_embeds (`torch.FloatTensor` or `List[torch.FloatTensor]`):
206
- The clip image embeddings for text prompt, that will be used to condition the image generation.
207
- negative_image_embeds (`torch.FloatTensor` or `List[torch.FloatTensor]`):
208
- The clip image embeddings for negative text prompt, will be used to condition the image generation.
209
- negative_prompt (`str` or `List[str]`, *optional*):
210
- The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
211
- if `guidance_scale` is less than `1`).
212
- height (`int`, *optional*, defaults to 512):
213
- The height in pixels of the generated image.
214
- width (`int`, *optional*, defaults to 512):
215
- The width in pixels of the generated image.
216
- num_inference_steps (`int`, *optional*, defaults to 100):
217
- The number of denoising steps. More denoising steps usually lead to a higher quality image at the
218
- expense of slower inference.
219
- guidance_scale (`float`, *optional*, defaults to 4.0):
220
- Guidance scale as defined in [Classifier-Free Diffusion Guidance](https://arxiv.org/abs/2207.12598).
221
- `guidance_scale` is defined as `w` of equation 2. of [Imagen
222
- Paper](https://arxiv.org/pdf/2205.11487.pdf). Guidance scale is enabled by setting `guidance_scale >
223
- 1`. Higher guidance scale encourages to generate images that are closely linked to the text `prompt`,
224
- usually at the expense of lower image quality.
225
- num_images_per_prompt (`int`, *optional*, defaults to 1):
226
- The number of images to generate per prompt.
227
- generator (`torch.Generator` or `List[torch.Generator]`, *optional*):
228
- One or a list of [torch generator(s)](https://pytorch.org/docs/stable/generated/torch.Generator.html)
229
- to make generation deterministic.
230
- latents (`torch.FloatTensor`, *optional*):
231
- Pre-generated noisy latents, sampled from a Gaussian distribution, to be used as inputs for image
232
- generation. Can be used to tweak the same generation with different prompts. If not provided, a latents
233
- tensor will ge generated by sampling using the supplied random `generator`.
234
- output_type (`str`, *optional*, defaults to `"pil"`):
235
- The output format of the generate image. Choose between: `"pil"` (`PIL.Image.Image`), `"np"`
236
- (`np.array`) or `"pt"` (`torch.Tensor`).
237
- callback (`Callable`, *optional*):
238
- A function that calls every `callback_steps` steps during inference. The function is called with the
239
- following arguments: `callback(step: int, timestep: int, latents: torch.FloatTensor)`.
240
- callback_steps (`int`, *optional*, defaults to 1):
241
- The frequency at which the `callback` function is called. If not specified, the callback is called at
242
- every step.
243
- return_dict (`bool`, *optional*, defaults to `True`):
244
- Whether or not to return a [`~pipelines.ImagePipelineOutput`] instead of a plain tuple.
245
-
246
- Examples:
247
-
248
- Returns:
249
- [`~pipelines.ImagePipelineOutput`] or `tuple`
250
- """
251
- device = self._execution_device
252
-
253
- do_classifier_free_guidance = guidance_scale > 1.0
254
-
255
- if isinstance(image_embeds, list):
256
- image_embeds = torch.cat(image_embeds, dim=0)
257
- if isinstance(negative_image_embeds, list):
258
- negative_image_embeds = torch.cat(negative_image_embeds, dim=0)
259
- if isinstance(hint, list):
260
- hint = torch.cat(hint, dim=0)
261
-
262
- batch_size = image_embeds.shape[0] * num_images_per_prompt
263
-
264
- if do_classifier_free_guidance:
265
- image_embeds = image_embeds.repeat_interleave(num_images_per_prompt, dim=0)
266
- negative_image_embeds = negative_image_embeds.repeat_interleave(num_images_per_prompt, dim=0)
267
- hint = hint.repeat_interleave(num_images_per_prompt, dim=0)
268
-
269
- image_embeds = torch.cat([negative_image_embeds, image_embeds], dim=0).to(
270
- dtype=self.unet.dtype, device=device
271
- )
272
- hint = torch.cat([hint, hint], dim=0).to(dtype=self.unet.dtype, device=device)
273
-
274
- self.scheduler.set_timesteps(num_inference_steps, device=device)
275
- timesteps_tensor = self.scheduler.timesteps
276
-
277
- num_channels_latents = self.movq.config.latent_channels
278
-
279
- height, width = downscale_height_and_width(height, width, self.movq_scale_factor)
280
-
281
- # create initial latent
282
- latents = self.prepare_latents(
283
- (batch_size, num_channels_latents, height, width),
284
- image_embeds.dtype,
285
- device,
286
- generator,
287
- latents,
288
- self.scheduler,
289
- )
290
-
291
- for i, t in enumerate(self.progress_bar(timesteps_tensor)):
292
- # expand the latents if we are doing classifier free guidance
293
- latent_model_input = torch.cat([latents] * 2) if do_classifier_free_guidance else latents
294
-
295
- added_cond_kwargs = {"image_embeds": image_embeds, "hint": hint}
296
- noise_pred = self.unet(
297
- sample=latent_model_input,
298
- timestep=t,
299
- encoder_hidden_states=None,
300
- added_cond_kwargs=added_cond_kwargs,
301
- return_dict=False,
302
- )[0]
303
-
304
- if do_classifier_free_guidance:
305
- noise_pred, variance_pred = noise_pred.split(latents.shape[1], dim=1)
306
- noise_pred_uncond, noise_pred_text = noise_pred.chunk(2)
307
- _, variance_pred_text = variance_pred.chunk(2)
308
- noise_pred = noise_pred_uncond + guidance_scale * (noise_pred_text - noise_pred_uncond)
309
- noise_pred = torch.cat([noise_pred, variance_pred_text], dim=1)
310
-
311
- if not (
312
- hasattr(self.scheduler.config, "variance_type")
313
- and self.scheduler.config.variance_type in ["learned", "learned_range"]
314
- ):
315
- noise_pred, _ = noise_pred.split(latents.shape[1], dim=1)
316
-
317
- # compute the previous noisy sample x_t -> x_t-1
318
- latents = self.scheduler.step(
319
- noise_pred,
320
- t,
321
- latents,
322
- generator=generator,
323
- )[0]
324
-
325
- if callback is not None and i % callback_steps == 0:
326
- callback(i, t, latents)
327
- # post-processing
328
- image = self.movq.decode(latents, force_not_quantize=True)["sample"]
329
-
330
- # Offload last model to CPU
331
- if hasattr(self, "final_offload_hook") and self.final_offload_hook is not None:
332
- self.final_offload_hook.offload()
333
-
334
- if output_type not in ["pt", "np", "pil"]:
335
- raise ValueError(f"Only the output types `pt`, `pil` and `np` are supported not output_type={output_type}")
336
-
337
- if output_type in ["np", "pil"]:
338
- image = image * 0.5 + 0.5
339
- image = image.clamp(0, 1)
340
- image = image.cpu().permute(0, 2, 3, 1).float().numpy()
341
-
342
- if output_type == "pil":
343
- image = self.numpy_to_pil(image)
344
-
345
- if not return_dict:
346
- return (image,)
347
-
348
- return ImagePipelineOutput(images=image)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/schedulers/scheduling_utils.py DELETED
@@ -1,177 +0,0 @@
1
- # Copyright 2023 The HuggingFace Team. All rights reserved.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- import importlib
15
- import os
16
- from dataclasses import dataclass
17
- from enum import Enum
18
- from typing import Any, Dict, Optional, Union
19
-
20
- import torch
21
-
22
- from ..utils import BaseOutput
23
-
24
-
25
- SCHEDULER_CONFIG_NAME = "scheduler_config.json"
26
-
27
-
28
- # NOTE: We make this type an enum because it simplifies usage in docs and prevents
29
- # circular imports when used for `_compatibles` within the schedulers module.
30
- # When it's used as a type in pipelines, it really is a Union because the actual
31
- # scheduler instance is passed in.
32
- class KarrasDiffusionSchedulers(Enum):
33
- DDIMScheduler = 1
34
- DDPMScheduler = 2
35
- PNDMScheduler = 3
36
- LMSDiscreteScheduler = 4
37
- EulerDiscreteScheduler = 5
38
- HeunDiscreteScheduler = 6
39
- EulerAncestralDiscreteScheduler = 7
40
- DPMSolverMultistepScheduler = 8
41
- DPMSolverSinglestepScheduler = 9
42
- KDPM2DiscreteScheduler = 10
43
- KDPM2AncestralDiscreteScheduler = 11
44
- DEISMultistepScheduler = 12
45
- UniPCMultistepScheduler = 13
46
- DPMSolverSDEScheduler = 14
47
-
48
-
49
- @dataclass
50
- class SchedulerOutput(BaseOutput):
51
- """
52
- Base class for the scheduler's step function output.
53
-
54
- Args:
55
- prev_sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)` for images):
56
- Computed sample (x_{t-1}) of previous timestep. `prev_sample` should be used as next model input in the
57
- denoising loop.
58
- """
59
-
60
- prev_sample: torch.FloatTensor
61
-
62
-
63
- class SchedulerMixin:
64
- """
65
- Mixin containing common functions for the schedulers.
66
-
67
- Class attributes:
68
- - **_compatibles** (`List[str]`) -- A list of classes that are compatible with the parent class, so that
69
- `from_config` can be used from a class different than the one used to save the config (should be overridden
70
- by parent class).
71
- """
72
-
73
- config_name = SCHEDULER_CONFIG_NAME
74
- _compatibles = []
75
- has_compatibles = True
76
-
77
- @classmethod
78
- def from_pretrained(
79
- cls,
80
- pretrained_model_name_or_path: Dict[str, Any] = None,
81
- subfolder: Optional[str] = None,
82
- return_unused_kwargs=False,
83
- **kwargs,
84
- ):
85
- r"""
86
- Instantiate a Scheduler class from a pre-defined JSON configuration file inside a directory or Hub repo.
87
-
88
- Parameters:
89
- pretrained_model_name_or_path (`str` or `os.PathLike`, *optional*):
90
- Can be either:
91
-
92
- - A string, the *model id* of a model repo on huggingface.co. Valid model ids should have an
93
- organization name, like `google/ddpm-celebahq-256`.
94
- - A path to a *directory* containing the schedluer configurations saved using
95
- [`~SchedulerMixin.save_pretrained`], e.g., `./my_model_directory/`.
96
- subfolder (`str`, *optional*):
97
- In case the relevant files are located inside a subfolder of the model repo (either remote in
98
- huggingface.co or downloaded locally), you can specify the folder name here.
99
- return_unused_kwargs (`bool`, *optional*, defaults to `False`):
100
- Whether kwargs that are not consumed by the Python class should be returned or not.
101
- cache_dir (`Union[str, os.PathLike]`, *optional*):
102
- Path to a directory in which a downloaded pretrained model configuration should be cached if the
103
- standard cache should not be used.
104
- force_download (`bool`, *optional*, defaults to `False`):
105
- Whether or not to force the (re-)download of the model weights and configuration files, overriding the
106
- cached versions if they exist.
107
- resume_download (`bool`, *optional*, defaults to `False`):
108
- Whether or not to delete incompletely received files. Will attempt to resume the download if such a
109
- file exists.
110
- proxies (`Dict[str, str]`, *optional*):
111
- A dictionary of proxy servers to use by protocol or endpoint, e.g., `{'http': 'foo.bar:3128',
112
- 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request.
113
- output_loading_info(`bool`, *optional*, defaults to `False`):
114
- Whether or not to also return a dictionary containing missing keys, unexpected keys and error messages.
115
- local_files_only(`bool`, *optional*, defaults to `False`):
116
- Whether or not to only look at local files (i.e., do not try to download the model).
117
- use_auth_token (`str` or *bool*, *optional*):
118
- The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated
119
- when running `transformers-cli login` (stored in `~/.huggingface`).
120
- revision (`str`, *optional*, defaults to `"main"`):
121
- The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a
122
- git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any
123
- identifier allowed by git.
124
-
125
- <Tip>
126
-
127
- It is required to be logged in (`huggingface-cli login`) when you want to use private or [gated
128
- models](https://huggingface.co/docs/hub/models-gated#gated-models).
129
-
130
- </Tip>
131
-
132
- <Tip>
133
-
134
- Activate the special ["offline-mode"](https://huggingface.co/transformers/installation.html#offline-mode) to
135
- use this method in a firewalled environment.
136
-
137
- </Tip>
138
-
139
- """
140
- config, kwargs, commit_hash = cls.load_config(
141
- pretrained_model_name_or_path=pretrained_model_name_or_path,
142
- subfolder=subfolder,
143
- return_unused_kwargs=True,
144
- return_commit_hash=True,
145
- **kwargs,
146
- )
147
- return cls.from_config(config, return_unused_kwargs=return_unused_kwargs, **kwargs)
148
-
149
- def save_pretrained(self, save_directory: Union[str, os.PathLike], push_to_hub: bool = False, **kwargs):
150
- """
151
- Save a scheduler configuration object to the directory `save_directory`, so that it can be re-loaded using the
152
- [`~SchedulerMixin.from_pretrained`] class method.
153
-
154
- Args:
155
- save_directory (`str` or `os.PathLike`):
156
- Directory where the configuration JSON file will be saved (will be created if it does not exist).
157
- """
158
- self.save_config(save_directory=save_directory, push_to_hub=push_to_hub, **kwargs)
159
-
160
- @property
161
- def compatibles(self):
162
- """
163
- Returns all schedulers that are compatible with this scheduler
164
-
165
- Returns:
166
- `List[SchedulerMixin]`: List of compatible schedulers
167
- """
168
- return self._get_compatibles()
169
-
170
- @classmethod
171
- def _get_compatibles(cls):
172
- compatible_classes_str = list(set([cls.__name__] + cls._compatibles))
173
- diffusers_library = importlib.import_module(__name__.split(".")[0])
174
- compatible_classes = [
175
- getattr(diffusers_library, c) for c in compatible_classes_str if hasattr(diffusers_library, c)
176
- ]
177
- return compatible_classes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/_base_/datasets/coco_instance.py DELETED
@@ -1,48 +0,0 @@
1
- dataset_type = 'CocoDataset'
2
- data_root = 'data/coco/'
3
- img_norm_cfg = dict(
4
- mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
5
- train_pipeline = [
6
- dict(type='LoadImageFromFile'),
7
- dict(type='LoadAnnotations', with_bbox=True, with_mask=True),
8
- dict(type='Resize', img_scale=(1333, 800), keep_ratio=True),
9
- dict(type='RandomFlip', flip_ratio=0.5),
10
- dict(type='Normalize', **img_norm_cfg),
11
- dict(type='Pad', size_divisor=32),
12
- dict(type='DefaultFormatBundle'),
13
- dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks']),
14
- ]
15
- test_pipeline = [
16
- dict(type='LoadImageFromFile'),
17
- dict(
18
- type='MultiScaleFlipAug',
19
- img_scale=(1333, 800),
20
- flip=False,
21
- transforms=[
22
- dict(type='Resize', keep_ratio=True),
23
- dict(type='RandomFlip'),
24
- dict(type='Normalize', **img_norm_cfg),
25
- dict(type='Pad', size_divisor=32),
26
- dict(type='ImageToTensor', keys=['img']),
27
- dict(type='Collect', keys=['img']),
28
- ])
29
- ]
30
- data = dict(
31
- samples_per_gpu=2,
32
- workers_per_gpu=2,
33
- train=dict(
34
- type=dataset_type,
35
- ann_file=data_root + 'annotations/instances_train2017.json',
36
- img_prefix=data_root + 'train2017/',
37
- pipeline=train_pipeline),
38
- val=dict(
39
- type=dataset_type,
40
- ann_file=data_root + 'annotations/instances_val2017.json',
41
- img_prefix=data_root + 'val2017/',
42
- pipeline=test_pipeline),
43
- test=dict(
44
- type=dataset_type,
45
- ann_file=data_root + 'annotations/instances_val2017.json',
46
- img_prefix=data_root + 'val2017/',
47
- pipeline=test_pipeline))
48
- evaluation = dict(metric=['bbox', 'segm'])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes.py DELETED
@@ -1,39 +0,0 @@
1
- _base_ = [
2
- '../_base_/models/faster_rcnn_r50_fpn.py',
3
- '../_base_/datasets/cityscapes_detection.py',
4
- '../_base_/default_runtime.py'
5
- ]
6
- model = dict(
7
- pretrained=None,
8
- roi_head=dict(
9
- bbox_head=dict(
10
- type='Shared2FCBBoxHead',
11
- in_channels=256,
12
- fc_out_channels=1024,
13
- roi_feat_size=7,
14
- num_classes=8,
15
- bbox_coder=dict(
16
- type='DeltaXYWHBBoxCoder',
17
- target_means=[0., 0., 0., 0.],
18
- target_stds=[0.1, 0.1, 0.2, 0.2]),
19
- reg_class_agnostic=False,
20
- loss_cls=dict(
21
- type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
22
- loss_bbox=dict(type='SmoothL1Loss', beta=1.0, loss_weight=1.0))))
23
- # optimizer
24
- # lr is set for a batch size of 8
25
- optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0001)
26
- optimizer_config = dict(grad_clip=None)
27
- # learning policy
28
- lr_config = dict(
29
- policy='step',
30
- warmup='linear',
31
- warmup_iters=500,
32
- warmup_ratio=0.001,
33
- # [7] yields higher performance than [6]
34
- step=[7])
35
- runner = dict(
36
- type='EpochBasedRunner', max_epochs=8) # actual epoch = 8 * 8 = 64
37
- log_config = dict(interval=100)
38
- # For better, more stable performance initialize from COCO
39
- load_from = 'https://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth' # noqa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/configs/fsaf/fsaf_x101_64x4d_fpn_1x_coco.py DELETED
@@ -1,13 +0,0 @@
1
- _base_ = './fsaf_r50_fpn_1x_coco.py'
2
- model = dict(
3
- pretrained='open-mmlab://resnext101_64x4d',
4
- backbone=dict(
5
- type='ResNeXt',
6
- depth=101,
7
- groups=64,
8
- base_width=4,
9
- num_stages=4,
10
- out_indices=(0, 1, 2, 3),
11
- frozen_stages=1,
12
- norm_cfg=dict(type='BN', requires_grad=True),
13
- style='pytorch'))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmcv_custom/__init__.py DELETED
@@ -1,5 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from .checkpoint import load_checkpoint
4
-
5
- __all__ = ['load_checkpoint']
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py DELETED
@@ -1,5 +0,0 @@
1
- _base_ = [
2
- '../_base_/models/deeplabv3plus_r50-d8.py',
3
- '../_base_/datasets/cityscapes.py', '../_base_/default_runtime.py',
4
- '../_base_/schedules/schedule_40k.py'
5
- ]
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_segmentation/configs/fcn/fcn_d6_r50-d16_512x1024_40k_cityscapes.py DELETED
@@ -1,8 +0,0 @@
1
- _base_ = [
2
- '../_base_/models/fcn_r50-d8.py', '../_base_/datasets/cityscapes.py',
3
- '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py'
4
- ]
5
- model = dict(
6
- backbone=dict(dilations=(1, 1, 1, 2), strides=(1, 2, 2, 1)),
7
- decode_head=dict(dilation=6),
8
- auxiliary_head=dict(dilation=6))
 
 
 
 
 
 
 
 
 
spaces/AnishKumbhar/ChatBot/text-generation-webui-main/modules/extensions.py DELETED
@@ -1,224 +0,0 @@
1
- import traceback
2
- from functools import partial
3
- from inspect import signature
4
-
5
- import gradio as gr
6
-
7
- import extensions
8
- import modules.shared as shared
9
- from modules.logging_colors import logger
10
-
11
- state = {}
12
- available_extensions = []
13
- setup_called = set()
14
-
15
-
16
- def apply_settings(extension, name):
17
- if not hasattr(extension, 'params'):
18
- return
19
-
20
- for param in extension.params:
21
- _id = f"{name}-{param}"
22
- if _id not in shared.settings:
23
- continue
24
-
25
- extension.params[param] = shared.settings[_id]
26
-
27
-
28
- def load_extensions():
29
- global state, setup_called
30
- state = {}
31
- for i, name in enumerate(shared.args.extensions):
32
- if name in available_extensions:
33
- if name != 'api':
34
- logger.info(f'Loading the extension "{name}"...')
35
- try:
36
- exec(f"import extensions.{name}.script")
37
- extension = getattr(extensions, name).script
38
- apply_settings(extension, name)
39
- if extension not in setup_called and hasattr(extension, "setup"):
40
- setup_called.add(extension)
41
- extension.setup()
42
-
43
- state[name] = [True, i]
44
- except:
45
- logger.error(f'Failed to load the extension "{name}".')
46
- traceback.print_exc()
47
-
48
-
49
- # This iterator returns the extensions in the order specified in the command-line
50
- def iterator():
51
- for name in sorted(state, key=lambda x: state[x][1]):
52
- if state[name][0]:
53
- yield getattr(extensions, name).script, name
54
-
55
-
56
- # Extension functions that map string -> string
57
- def _apply_string_extensions(function_name, text, state, is_chat=False):
58
- for extension, _ in iterator():
59
- if hasattr(extension, function_name):
60
- func = getattr(extension, function_name)
61
-
62
- # Handle old extensions without the 'state' arg or
63
- # the 'is_chat' kwarg
64
- count = 0
65
- has_chat = False
66
- for k in signature(func).parameters:
67
- if k == 'is_chat':
68
- has_chat = True
69
- else:
70
- count += 1
71
-
72
- if count == 2:
73
- args = [text, state]
74
- else:
75
- args = [text]
76
-
77
- if has_chat:
78
- kwargs = {'is_chat': is_chat}
79
- else:
80
- kwargs = {}
81
-
82
- text = func(*args, **kwargs)
83
-
84
- return text
85
-
86
-
87
- # Extension functions that map string -> string
88
- def _apply_chat_input_extensions(text, visible_text, state):
89
- for extension, _ in iterator():
90
- if hasattr(extension, 'chat_input_modifier'):
91
- text, visible_text = extension.chat_input_modifier(text, visible_text, state)
92
-
93
- return text, visible_text
94
-
95
-
96
- # custom_generate_chat_prompt handling - currently only the first one will work
97
- def _apply_custom_generate_chat_prompt(text, state, **kwargs):
98
- for extension, _ in iterator():
99
- if hasattr(extension, 'custom_generate_chat_prompt'):
100
- return extension.custom_generate_chat_prompt(text, state, **kwargs)
101
-
102
- return None
103
-
104
-
105
- # Extension that modifies the input parameters before they are used
106
- def _apply_state_modifier_extensions(state):
107
- for extension, _ in iterator():
108
- if hasattr(extension, "state_modifier"):
109
- state = getattr(extension, "state_modifier")(state)
110
-
111
- return state
112
-
113
-
114
- # Extension that modifies the chat history before it is used
115
- def _apply_history_modifier_extensions(history):
116
- for extension, _ in iterator():
117
- if hasattr(extension, "history_modifier"):
118
- history = getattr(extension, "history_modifier")(history)
119
-
120
- return history
121
-
122
-
123
- # Extension functions that override the default tokenizer output - The order of execution is not defined
124
- def _apply_tokenizer_extensions(function_name, state, prompt, input_ids, input_embeds):
125
- for extension, _ in iterator():
126
- if hasattr(extension, function_name):
127
- prompt, input_ids, input_embeds = getattr(extension, function_name)(state, prompt, input_ids, input_embeds)
128
-
129
- return prompt, input_ids, input_embeds
130
-
131
-
132
- # Allow extensions to add their own logits processors to the stack being run.
133
- # Each extension would call `processor_list.append({their LogitsProcessor}())`.
134
- def _apply_logits_processor_extensions(function_name, processor_list, input_ids):
135
- for extension, _ in iterator():
136
- if hasattr(extension, function_name):
137
- result = getattr(extension, function_name)(processor_list, input_ids)
138
- if type(result) is list:
139
- processor_list = result
140
-
141
- return processor_list
142
-
143
-
144
- # Get prompt length in tokens after applying extension functions which override the default tokenizer output
145
- # currently only the first one will work
146
- def _apply_custom_tokenized_length(prompt):
147
- for extension, _ in iterator():
148
- if hasattr(extension, 'custom_tokenized_length'):
149
- return getattr(extension, 'custom_tokenized_length')(prompt)
150
-
151
- return None
152
-
153
-
154
- # Custom generate reply handling - currently only the first one will work
155
- def _apply_custom_generate_reply():
156
- for extension, _ in iterator():
157
- if hasattr(extension, 'custom_generate_reply'):
158
- return getattr(extension, 'custom_generate_reply')
159
-
160
- return None
161
-
162
-
163
- def _apply_custom_css():
164
- all_css = ''
165
- for extension, _ in iterator():
166
- if hasattr(extension, 'custom_css'):
167
- all_css += getattr(extension, 'custom_css')()
168
-
169
- return all_css
170
-
171
-
172
- def _apply_custom_js():
173
- all_js = ''
174
- for extension, _ in iterator():
175
- if hasattr(extension, 'custom_js'):
176
- all_js += getattr(extension, 'custom_js')()
177
-
178
- return all_js
179
-
180
-
181
- def create_extensions_block():
182
- to_display = []
183
- for extension, name in iterator():
184
- if hasattr(extension, "ui") and not (hasattr(extension, 'params') and extension.params.get('is_tab', False)):
185
- to_display.append((extension, name))
186
-
187
- # Creating the extension ui elements
188
- if len(to_display) > 0:
189
- with gr.Column(elem_id="extensions"):
190
- for row in to_display:
191
- extension, _ = row
192
- extension.ui()
193
-
194
-
195
- def create_extensions_tabs():
196
- for extension, name in iterator():
197
- if hasattr(extension, "ui") and (hasattr(extension, 'params') and extension.params.get('is_tab', False)):
198
- display_name = getattr(extension, 'params', {}).get('display_name', name)
199
- with gr.Tab(display_name, elem_classes="extension-tab"):
200
- extension.ui()
201
-
202
-
203
- EXTENSION_MAP = {
204
- "input": partial(_apply_string_extensions, "input_modifier"),
205
- "output": partial(_apply_string_extensions, "output_modifier"),
206
- "chat_input": _apply_chat_input_extensions,
207
- "state": _apply_state_modifier_extensions,
208
- "history": _apply_history_modifier_extensions,
209
- "bot_prefix": partial(_apply_string_extensions, "bot_prefix_modifier"),
210
- "tokenizer": partial(_apply_tokenizer_extensions, "tokenizer_modifier"),
211
- 'logits_processor': partial(_apply_logits_processor_extensions, 'logits_processor_modifier'),
212
- "custom_generate_chat_prompt": _apply_custom_generate_chat_prompt,
213
- "custom_generate_reply": _apply_custom_generate_reply,
214
- "tokenized_length": _apply_custom_tokenized_length,
215
- "css": _apply_custom_css,
216
- "js": _apply_custom_js
217
- }
218
-
219
-
220
- def apply_extensions(typ, *args, **kwargs):
221
- if typ not in EXTENSION_MAP:
222
- raise ValueError(f"Invalid extension type {typ}")
223
-
224
- return EXTENSION_MAP[typ](*args, **kwargs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AriaMei/TTSdemo/monotonic_align/__init__.py DELETED
@@ -1,19 +0,0 @@
1
- import numpy as np
2
- import torch
3
- from .monotonic_align.core import maximum_path_c
4
-
5
-
6
- def maximum_path(neg_cent, mask):
7
- """ Cython optimized version.
8
- neg_cent: [b, t_t, t_s]
9
- mask: [b, t_t, t_s]
10
- """
11
- device = neg_cent.device
12
- dtype = neg_cent.dtype
13
- neg_cent = neg_cent.data.cpu().numpy().astype(np.float32)
14
- path = np.zeros(neg_cent.shape, dtype=np.int32)
15
-
16
- t_t_max = mask.sum(1)[:, 0].data.cpu().numpy().astype(np.int32)
17
- t_s_max = mask.sum(2)[:, 0].data.cpu().numpy().astype(np.int32)
18
- maximum_path_c(path, neg_cent, t_t_max, t_s_max)
19
- return torch.from_numpy(path).to(device=device, dtype=dtype)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ariharasudhan/YoloV5/utils/downloads.py DELETED
@@ -1,108 +0,0 @@
1
- # YOLOv5 🚀 by Ultralytics, GPL-3.0 license
2
- """
3
- Download utils
4
- """
5
-
6
- import logging
7
- import os
8
- import subprocess
9
- import urllib
10
- from pathlib import Path
11
-
12
- import requests
13
- import torch
14
-
15
-
16
- def is_url(url, check=True):
17
- # Check if string is URL and check if URL exists
18
- try:
19
- url = str(url)
20
- result = urllib.parse.urlparse(url)
21
- assert all([result.scheme, result.netloc]) # check if is url
22
- return (urllib.request.urlopen(url).getcode() == 200) if check else True # check if exists online
23
- except (AssertionError, urllib.request.HTTPError):
24
- return False
25
-
26
-
27
- def gsutil_getsize(url=''):
28
- # gs://bucket/file size https://cloud.google.com/storage/docs/gsutil/commands/du
29
- s = subprocess.check_output(f'gsutil du {url}', shell=True).decode('utf-8')
30
- return eval(s.split(' ')[0]) if len(s) else 0 # bytes
31
-
32
-
33
- def url_getsize(url='https://ultralytics.com/images/bus.jpg'):
34
- # Return downloadable file size in bytes
35
- response = requests.head(url, allow_redirects=True)
36
- return int(response.headers.get('content-length', -1))
37
-
38
-
39
- def safe_download(file, url, url2=None, min_bytes=1E0, error_msg=''):
40
- # Attempts to download file from url or url2, checks and removes incomplete downloads < min_bytes
41
- from utils.general import LOGGER
42
-
43
- file = Path(file)
44
- assert_msg = f"Downloaded file '{file}' does not exist or size is < min_bytes={min_bytes}"
45
- try: # url1
46
- LOGGER.info(f'Downloading {url} to {file}...')
47
- torch.hub.download_url_to_file(url, str(file), progress=LOGGER.level <= logging.INFO)
48
- assert file.exists() and file.stat().st_size > min_bytes, assert_msg # check
49
- except Exception as e: # url2
50
- if file.exists():
51
- file.unlink() # remove partial downloads
52
- LOGGER.info(f'ERROR: {e}\nRe-attempting {url2 or url} to {file}...')
53
- os.system(f"curl -# -L '{url2 or url}' -o '{file}' --retry 3 -C -") # curl download, retry and resume on fail
54
- finally:
55
- if not file.exists() or file.stat().st_size < min_bytes: # check
56
- if file.exists():
57
- file.unlink() # remove partial downloads
58
- LOGGER.info(f"ERROR: {assert_msg}\n{error_msg}")
59
- LOGGER.info('')
60
-
61
-
62
- def attempt_download(file, repo='ultralytics/yolov5', release='v6.2'):
63
- # Attempt file download from GitHub release assets if not found locally. release = 'latest', 'v6.2', etc.
64
- from utils.general import LOGGER
65
-
66
- def github_assets(repository, version='latest'):
67
- # Return GitHub repo tag (i.e. 'v6.2') and assets (i.e. ['yolov5s.pt', 'yolov5m.pt', ...])
68
- if version != 'latest':
69
- version = f'tags/{version}' # i.e. tags/v6.2
70
- response = requests.get(f'https://api.github.com/repos/{repository}/releases/{version}').json() # github api
71
- return response['tag_name'], [x['name'] for x in response['assets']] # tag, assets
72
-
73
- file = Path(str(file).strip().replace("'", ''))
74
- if not file.exists():
75
- # URL specified
76
- name = Path(urllib.parse.unquote(str(file))).name # decode '%2F' to '/' etc.
77
- if str(file).startswith(('http:/', 'https:/')): # download
78
- url = str(file).replace(':/', '://') # Pathlib turns :// -> :/
79
- file = name.split('?')[0] # parse authentication https://url.com/file.txt?auth...
80
- if Path(file).is_file():
81
- LOGGER.info(f'Found {url} locally at {file}') # file already exists
82
- else:
83
- safe_download(file=file, url=url, min_bytes=1E5)
84
- return file
85
-
86
- # GitHub assets
87
- assets = [f'yolov5{size}{suffix}.pt' for size in 'nsmlx' for suffix in ('', '6', '-cls', '-seg')] # default
88
- try:
89
- tag, assets = github_assets(repo, release)
90
- except Exception:
91
- try:
92
- tag, assets = github_assets(repo) # latest release
93
- except Exception:
94
- try:
95
- tag = subprocess.check_output('git tag', shell=True, stderr=subprocess.STDOUT).decode().split()[-1]
96
- except Exception:
97
- tag = release
98
-
99
- file.parent.mkdir(parents=True, exist_ok=True) # make parent dir (if required)
100
- if name in assets:
101
- url3 = 'https://drive.google.com/drive/folders/1EFQTEUeXWSFww0luse2jB9M1QNZQGwNl' # backup gdrive mirror
102
- safe_download(
103
- file,
104
- url=f'https://github.com/{repo}/releases/download/{tag}/{name}',
105
- min_bytes=1E5,
106
- error_msg=f'{file} missing, try downloading from https://github.com/{repo}/releases/{tag} or {url3}')
107
-
108
- return str(file)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/lexers/python.py DELETED
@@ -1,1204 +0,0 @@
1
- """
2
- pygments.lexers.python
3
- ~~~~~~~~~~~~~~~~~~~~~~
4
-
5
- Lexers for Python and related languages.
6
-
7
- :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
8
- :license: BSD, see LICENSE for details.
9
- """
10
-
11
- import re
12
- import keyword
13
-
14
- from pip._vendor.pygments.lexer import Lexer, RegexLexer, include, bygroups, using, \
15
- default, words, combined, do_insertions, this, line_re
16
- from pip._vendor.pygments.util import get_bool_opt, shebang_matches
17
- from pip._vendor.pygments.token import Text, Comment, Operator, Keyword, Name, String, \
18
- Number, Punctuation, Generic, Other, Error, Whitespace
19
- from pip._vendor.pygments import unistring as uni
20
-
21
- __all__ = ['PythonLexer', 'PythonConsoleLexer', 'PythonTracebackLexer',
22
- 'Python2Lexer', 'Python2TracebackLexer',
23
- 'CythonLexer', 'DgLexer', 'NumPyLexer']
24
-
25
-
26
- class PythonLexer(RegexLexer):
27
- """
28
- For Python source code (version 3.x).
29
-
30
- .. versionadded:: 0.10
31
-
32
- .. versionchanged:: 2.5
33
- This is now the default ``PythonLexer``. It is still available as the
34
- alias ``Python3Lexer``.
35
- """
36
-
37
- name = 'Python'
38
- url = 'http://www.python.org'
39
- aliases = ['python', 'py', 'sage', 'python3', 'py3']
40
- filenames = [
41
- '*.py',
42
- '*.pyw',
43
- # Type stubs
44
- '*.pyi',
45
- # Jython
46
- '*.jy',
47
- # Sage
48
- '*.sage',
49
- # SCons
50
- '*.sc',
51
- 'SConstruct',
52
- 'SConscript',
53
- # Skylark/Starlark (used by Bazel, Buck, and Pants)
54
- '*.bzl',
55
- 'BUCK',
56
- 'BUILD',
57
- 'BUILD.bazel',
58
- 'WORKSPACE',
59
- # Twisted Application infrastructure
60
- '*.tac',
61
- ]
62
- mimetypes = ['text/x-python', 'application/x-python',
63
- 'text/x-python3', 'application/x-python3']
64
-
65
- uni_name = "[%s][%s]*" % (uni.xid_start, uni.xid_continue)
66
-
67
- def innerstring_rules(ttype):
68
- return [
69
- # the old style '%s' % (...) string formatting (still valid in Py3)
70
- (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?'
71
- '[hlL]?[E-GXc-giorsaux%]', String.Interpol),
72
- # the new style '{}'.format(...) string formatting
73
- (r'\{'
74
- r'((\w+)((\.\w+)|(\[[^\]]+\]))*)?' # field name
75
- r'(\![sra])?' # conversion
76
- r'(\:(.?[<>=\^])?[-+ ]?#?0?(\d+)?,?(\.\d+)?[E-GXb-gnosx%]?)?'
77
- r'\}', String.Interpol),
78
-
79
- # backslashes, quotes and formatting signs must be parsed one at a time
80
- (r'[^\\\'"%{\n]+', ttype),
81
- (r'[\'"\\]', ttype),
82
- # unhandled string formatting sign
83
- (r'%|(\{{1,2})', ttype)
84
- # newlines are an error (use "nl" state)
85
- ]
86
-
87
- def fstring_rules(ttype):
88
- return [
89
- # Assuming that a '}' is the closing brace after format specifier.
90
- # Sadly, this means that we won't detect syntax error. But it's
91
- # more important to parse correct syntax correctly, than to
92
- # highlight invalid syntax.
93
- (r'\}', String.Interpol),
94
- (r'\{', String.Interpol, 'expr-inside-fstring'),
95
- # backslashes, quotes and formatting signs must be parsed one at a time
96
- (r'[^\\\'"{}\n]+', ttype),
97
- (r'[\'"\\]', ttype),
98
- # newlines are an error (use "nl" state)
99
- ]
100
-
101
- tokens = {
102
- 'root': [
103
- (r'\n', Whitespace),
104
- (r'^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")',
105
- bygroups(Whitespace, String.Affix, String.Doc)),
106
- (r"^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')",
107
- bygroups(Whitespace, String.Affix, String.Doc)),
108
- (r'\A#!.+$', Comment.Hashbang),
109
- (r'#.*$', Comment.Single),
110
- (r'\\\n', Text),
111
- (r'\\', Text),
112
- include('keywords'),
113
- include('soft-keywords'),
114
- (r'(def)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'funcname'),
115
- (r'(class)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'classname'),
116
- (r'(from)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
117
- 'fromimport'),
118
- (r'(import)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
119
- 'import'),
120
- include('expr'),
121
- ],
122
- 'expr': [
123
- # raw f-strings
124
- ('(?i)(rf|fr)(""")',
125
- bygroups(String.Affix, String.Double),
126
- combined('rfstringescape', 'tdqf')),
127
- ("(?i)(rf|fr)(''')",
128
- bygroups(String.Affix, String.Single),
129
- combined('rfstringescape', 'tsqf')),
130
- ('(?i)(rf|fr)(")',
131
- bygroups(String.Affix, String.Double),
132
- combined('rfstringescape', 'dqf')),
133
- ("(?i)(rf|fr)(')",
134
- bygroups(String.Affix, String.Single),
135
- combined('rfstringescape', 'sqf')),
136
- # non-raw f-strings
137
- ('([fF])(""")', bygroups(String.Affix, String.Double),
138
- combined('fstringescape', 'tdqf')),
139
- ("([fF])(''')", bygroups(String.Affix, String.Single),
140
- combined('fstringescape', 'tsqf')),
141
- ('([fF])(")', bygroups(String.Affix, String.Double),
142
- combined('fstringescape', 'dqf')),
143
- ("([fF])(')", bygroups(String.Affix, String.Single),
144
- combined('fstringescape', 'sqf')),
145
- # raw bytes and strings
146
- ('(?i)(rb|br|r)(""")',
147
- bygroups(String.Affix, String.Double), 'tdqs'),
148
- ("(?i)(rb|br|r)(''')",
149
- bygroups(String.Affix, String.Single), 'tsqs'),
150
- ('(?i)(rb|br|r)(")',
151
- bygroups(String.Affix, String.Double), 'dqs'),
152
- ("(?i)(rb|br|r)(')",
153
- bygroups(String.Affix, String.Single), 'sqs'),
154
- # non-raw strings
155
- ('([uU]?)(""")', bygroups(String.Affix, String.Double),
156
- combined('stringescape', 'tdqs')),
157
- ("([uU]?)(''')", bygroups(String.Affix, String.Single),
158
- combined('stringescape', 'tsqs')),
159
- ('([uU]?)(")', bygroups(String.Affix, String.Double),
160
- combined('stringescape', 'dqs')),
161
- ("([uU]?)(')", bygroups(String.Affix, String.Single),
162
- combined('stringescape', 'sqs')),
163
- # non-raw bytes
164
- ('([bB])(""")', bygroups(String.Affix, String.Double),
165
- combined('bytesescape', 'tdqs')),
166
- ("([bB])(''')", bygroups(String.Affix, String.Single),
167
- combined('bytesescape', 'tsqs')),
168
- ('([bB])(")', bygroups(String.Affix, String.Double),
169
- combined('bytesescape', 'dqs')),
170
- ("([bB])(')", bygroups(String.Affix, String.Single),
171
- combined('bytesescape', 'sqs')),
172
-
173
- (r'[^\S\n]+', Text),
174
- include('numbers'),
175
- (r'!=|==|<<|>>|:=|[-~+/*%=<>&^|.]', Operator),
176
- (r'[]{}:(),;[]', Punctuation),
177
- (r'(in|is|and|or|not)\b', Operator.Word),
178
- include('expr-keywords'),
179
- include('builtins'),
180
- include('magicfuncs'),
181
- include('magicvars'),
182
- include('name'),
183
- ],
184
- 'expr-inside-fstring': [
185
- (r'[{([]', Punctuation, 'expr-inside-fstring-inner'),
186
- # without format specifier
187
- (r'(=\s*)?' # debug (https://bugs.python.org/issue36817)
188
- r'(\![sraf])?' # conversion
189
- r'\}', String.Interpol, '#pop'),
190
- # with format specifier
191
- # we'll catch the remaining '}' in the outer scope
192
- (r'(=\s*)?' # debug (https://bugs.python.org/issue36817)
193
- r'(\![sraf])?' # conversion
194
- r':', String.Interpol, '#pop'),
195
- (r'\s+', Whitespace), # allow new lines
196
- include('expr'),
197
- ],
198
- 'expr-inside-fstring-inner': [
199
- (r'[{([]', Punctuation, 'expr-inside-fstring-inner'),
200
- (r'[])}]', Punctuation, '#pop'),
201
- (r'\s+', Whitespace), # allow new lines
202
- include('expr'),
203
- ],
204
- 'expr-keywords': [
205
- # Based on https://docs.python.org/3/reference/expressions.html
206
- (words((
207
- 'async for', 'await', 'else', 'for', 'if', 'lambda',
208
- 'yield', 'yield from'), suffix=r'\b'),
209
- Keyword),
210
- (words(('True', 'False', 'None'), suffix=r'\b'), Keyword.Constant),
211
- ],
212
- 'keywords': [
213
- (words((
214
- 'assert', 'async', 'await', 'break', 'continue', 'del', 'elif',
215
- 'else', 'except', 'finally', 'for', 'global', 'if', 'lambda',
216
- 'pass', 'raise', 'nonlocal', 'return', 'try', 'while', 'yield',
217
- 'yield from', 'as', 'with'), suffix=r'\b'),
218
- Keyword),
219
- (words(('True', 'False', 'None'), suffix=r'\b'), Keyword.Constant),
220
- ],
221
- 'soft-keywords': [
222
- # `match`, `case` and `_` soft keywords
223
- (r'(^[ \t]*)' # at beginning of line + possible indentation
224
- r'(match|case)\b' # a possible keyword
225
- r'(?![ \t]*(?:' # not followed by...
226
- r'[:,;=^&|@~)\]}]|(?:' + # characters and keywords that mean this isn't
227
- r'|'.join(keyword.kwlist) + r')\b))', # pattern matching
228
- bygroups(Text, Keyword), 'soft-keywords-inner'),
229
- ],
230
- 'soft-keywords-inner': [
231
- # optional `_` keyword
232
- (r'(\s+)([^\n_]*)(_\b)', bygroups(Whitespace, using(this), Keyword)),
233
- default('#pop')
234
- ],
235
- 'builtins': [
236
- (words((
237
- '__import__', 'abs', 'all', 'any', 'bin', 'bool', 'bytearray',
238
- 'breakpoint', 'bytes', 'chr', 'classmethod', 'compile', 'complex',
239
- 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'filter',
240
- 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr',
241
- 'hash', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass',
242
- 'iter', 'len', 'list', 'locals', 'map', 'max', 'memoryview',
243
- 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print',
244
- 'property', 'range', 'repr', 'reversed', 'round', 'set', 'setattr',
245
- 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple',
246
- 'type', 'vars', 'zip'), prefix=r'(?<!\.)', suffix=r'\b'),
247
- Name.Builtin),
248
- (r'(?<!\.)(self|Ellipsis|NotImplemented|cls)\b', Name.Builtin.Pseudo),
249
- (words((
250
- 'ArithmeticError', 'AssertionError', 'AttributeError',
251
- 'BaseException', 'BufferError', 'BytesWarning', 'DeprecationWarning',
252
- 'EOFError', 'EnvironmentError', 'Exception', 'FloatingPointError',
253
- 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError',
254
- 'ImportWarning', 'IndentationError', 'IndexError', 'KeyError',
255
- 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError',
256
- 'NotImplementedError', 'OSError', 'OverflowError',
257
- 'PendingDeprecationWarning', 'ReferenceError', 'ResourceWarning',
258
- 'RuntimeError', 'RuntimeWarning', 'StopIteration',
259
- 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit',
260
- 'TabError', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError',
261
- 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError',
262
- 'UnicodeWarning', 'UserWarning', 'ValueError', 'VMSError',
263
- 'Warning', 'WindowsError', 'ZeroDivisionError',
264
- # new builtin exceptions from PEP 3151
265
- 'BlockingIOError', 'ChildProcessError', 'ConnectionError',
266
- 'BrokenPipeError', 'ConnectionAbortedError', 'ConnectionRefusedError',
267
- 'ConnectionResetError', 'FileExistsError', 'FileNotFoundError',
268
- 'InterruptedError', 'IsADirectoryError', 'NotADirectoryError',
269
- 'PermissionError', 'ProcessLookupError', 'TimeoutError',
270
- # others new in Python 3
271
- 'StopAsyncIteration', 'ModuleNotFoundError', 'RecursionError',
272
- 'EncodingWarning'),
273
- prefix=r'(?<!\.)', suffix=r'\b'),
274
- Name.Exception),
275
- ],
276
- 'magicfuncs': [
277
- (words((
278
- '__abs__', '__add__', '__aenter__', '__aexit__', '__aiter__',
279
- '__and__', '__anext__', '__await__', '__bool__', '__bytes__',
280
- '__call__', '__complex__', '__contains__', '__del__', '__delattr__',
281
- '__delete__', '__delitem__', '__dir__', '__divmod__', '__enter__',
282
- '__eq__', '__exit__', '__float__', '__floordiv__', '__format__',
283
- '__ge__', '__get__', '__getattr__', '__getattribute__',
284
- '__getitem__', '__gt__', '__hash__', '__iadd__', '__iand__',
285
- '__ifloordiv__', '__ilshift__', '__imatmul__', '__imod__',
286
- '__imul__', '__index__', '__init__', '__instancecheck__',
287
- '__int__', '__invert__', '__ior__', '__ipow__', '__irshift__',
288
- '__isub__', '__iter__', '__itruediv__', '__ixor__', '__le__',
289
- '__len__', '__length_hint__', '__lshift__', '__lt__', '__matmul__',
290
- '__missing__', '__mod__', '__mul__', '__ne__', '__neg__',
291
- '__new__', '__next__', '__or__', '__pos__', '__pow__',
292
- '__prepare__', '__radd__', '__rand__', '__rdivmod__', '__repr__',
293
- '__reversed__', '__rfloordiv__', '__rlshift__', '__rmatmul__',
294
- '__rmod__', '__rmul__', '__ror__', '__round__', '__rpow__',
295
- '__rrshift__', '__rshift__', '__rsub__', '__rtruediv__',
296
- '__rxor__', '__set__', '__setattr__', '__setitem__', '__str__',
297
- '__sub__', '__subclasscheck__', '__truediv__',
298
- '__xor__'), suffix=r'\b'),
299
- Name.Function.Magic),
300
- ],
301
- 'magicvars': [
302
- (words((
303
- '__annotations__', '__bases__', '__class__', '__closure__',
304
- '__code__', '__defaults__', '__dict__', '__doc__', '__file__',
305
- '__func__', '__globals__', '__kwdefaults__', '__module__',
306
- '__mro__', '__name__', '__objclass__', '__qualname__',
307
- '__self__', '__slots__', '__weakref__'), suffix=r'\b'),
308
- Name.Variable.Magic),
309
- ],
310
- 'numbers': [
311
- (r'(\d(?:_?\d)*\.(?:\d(?:_?\d)*)?|(?:\d(?:_?\d)*)?\.\d(?:_?\d)*)'
312
- r'([eE][+-]?\d(?:_?\d)*)?', Number.Float),
313
- (r'\d(?:_?\d)*[eE][+-]?\d(?:_?\d)*j?', Number.Float),
314
- (r'0[oO](?:_?[0-7])+', Number.Oct),
315
- (r'0[bB](?:_?[01])+', Number.Bin),
316
- (r'0[xX](?:_?[a-fA-F0-9])+', Number.Hex),
317
- (r'\d(?:_?\d)*', Number.Integer),
318
- ],
319
- 'name': [
320
- (r'@' + uni_name, Name.Decorator),
321
- (r'@', Operator), # new matrix multiplication operator
322
- (uni_name, Name),
323
- ],
324
- 'funcname': [
325
- include('magicfuncs'),
326
- (uni_name, Name.Function, '#pop'),
327
- default('#pop'),
328
- ],
329
- 'classname': [
330
- (uni_name, Name.Class, '#pop'),
331
- ],
332
- 'import': [
333
- (r'(\s+)(as)(\s+)', bygroups(Text, Keyword, Text)),
334
- (r'\.', Name.Namespace),
335
- (uni_name, Name.Namespace),
336
- (r'(\s*)(,)(\s*)', bygroups(Text, Operator, Text)),
337
- default('#pop') # all else: go back
338
- ],
339
- 'fromimport': [
340
- (r'(\s+)(import)\b', bygroups(Text, Keyword.Namespace), '#pop'),
341
- (r'\.', Name.Namespace),
342
- # if None occurs here, it's "raise x from None", since None can
343
- # never be a module name
344
- (r'None\b', Name.Builtin.Pseudo, '#pop'),
345
- (uni_name, Name.Namespace),
346
- default('#pop'),
347
- ],
348
- 'rfstringescape': [
349
- (r'\{\{', String.Escape),
350
- (r'\}\}', String.Escape),
351
- ],
352
- 'fstringescape': [
353
- include('rfstringescape'),
354
- include('stringescape'),
355
- ],
356
- 'bytesescape': [
357
- (r'\\([\\abfnrtv"\']|\n|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
358
- ],
359
- 'stringescape': [
360
- (r'\\(N\{.*?\}|u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8})', String.Escape),
361
- include('bytesescape')
362
- ],
363
- 'fstrings-single': fstring_rules(String.Single),
364
- 'fstrings-double': fstring_rules(String.Double),
365
- 'strings-single': innerstring_rules(String.Single),
366
- 'strings-double': innerstring_rules(String.Double),
367
- 'dqf': [
368
- (r'"', String.Double, '#pop'),
369
- (r'\\\\|\\"|\\\n', String.Escape), # included here for raw strings
370
- include('fstrings-double')
371
- ],
372
- 'sqf': [
373
- (r"'", String.Single, '#pop'),
374
- (r"\\\\|\\'|\\\n", String.Escape), # included here for raw strings
375
- include('fstrings-single')
376
- ],
377
- 'dqs': [
378
- (r'"', String.Double, '#pop'),
379
- (r'\\\\|\\"|\\\n', String.Escape), # included here for raw strings
380
- include('strings-double')
381
- ],
382
- 'sqs': [
383
- (r"'", String.Single, '#pop'),
384
- (r"\\\\|\\'|\\\n", String.Escape), # included here for raw strings
385
- include('strings-single')
386
- ],
387
- 'tdqf': [
388
- (r'"""', String.Double, '#pop'),
389
- include('fstrings-double'),
390
- (r'\n', String.Double)
391
- ],
392
- 'tsqf': [
393
- (r"'''", String.Single, '#pop'),
394
- include('fstrings-single'),
395
- (r'\n', String.Single)
396
- ],
397
- 'tdqs': [
398
- (r'"""', String.Double, '#pop'),
399
- include('strings-double'),
400
- (r'\n', String.Double)
401
- ],
402
- 'tsqs': [
403
- (r"'''", String.Single, '#pop'),
404
- include('strings-single'),
405
- (r'\n', String.Single)
406
- ],
407
- }
408
-
409
- def analyse_text(text):
410
- return shebang_matches(text, r'pythonw?(3(\.\d)?)?') or \
411
- 'import ' in text[:1000]
412
-
413
-
414
- Python3Lexer = PythonLexer
415
-
416
-
417
- class Python2Lexer(RegexLexer):
418
- """
419
- For Python 2.x source code.
420
-
421
- .. versionchanged:: 2.5
422
- This class has been renamed from ``PythonLexer``. ``PythonLexer`` now
423
- refers to the Python 3 variant. File name patterns like ``*.py`` have
424
- been moved to Python 3 as well.
425
- """
426
-
427
- name = 'Python 2.x'
428
- url = 'http://www.python.org'
429
- aliases = ['python2', 'py2']
430
- filenames = [] # now taken over by PythonLexer (3.x)
431
- mimetypes = ['text/x-python2', 'application/x-python2']
432
-
433
- def innerstring_rules(ttype):
434
- return [
435
- # the old style '%s' % (...) string formatting
436
- (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?'
437
- '[hlL]?[E-GXc-giorsux%]', String.Interpol),
438
- # backslashes, quotes and formatting signs must be parsed one at a time
439
- (r'[^\\\'"%\n]+', ttype),
440
- (r'[\'"\\]', ttype),
441
- # unhandled string formatting sign
442
- (r'%', ttype),
443
- # newlines are an error (use "nl" state)
444
- ]
445
-
446
- tokens = {
447
- 'root': [
448
- (r'\n', Whitespace),
449
- (r'^(\s*)([rRuUbB]{,2})("""(?:.|\n)*?""")',
450
- bygroups(Whitespace, String.Affix, String.Doc)),
451
- (r"^(\s*)([rRuUbB]{,2})('''(?:.|\n)*?''')",
452
- bygroups(Whitespace, String.Affix, String.Doc)),
453
- (r'[^\S\n]+', Text),
454
- (r'\A#!.+$', Comment.Hashbang),
455
- (r'#.*$', Comment.Single),
456
- (r'[]{}:(),;[]', Punctuation),
457
- (r'\\\n', Text),
458
- (r'\\', Text),
459
- (r'(in|is|and|or|not)\b', Operator.Word),
460
- (r'!=|==|<<|>>|[-~+/*%=<>&^|.]', Operator),
461
- include('keywords'),
462
- (r'(def)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'funcname'),
463
- (r'(class)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'classname'),
464
- (r'(from)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
465
- 'fromimport'),
466
- (r'(import)((?:\s|\\\s)+)', bygroups(Keyword.Namespace, Text),
467
- 'import'),
468
- include('builtins'),
469
- include('magicfuncs'),
470
- include('magicvars'),
471
- include('backtick'),
472
- ('([rR]|[uUbB][rR]|[rR][uUbB])(""")',
473
- bygroups(String.Affix, String.Double), 'tdqs'),
474
- ("([rR]|[uUbB][rR]|[rR][uUbB])(''')",
475
- bygroups(String.Affix, String.Single), 'tsqs'),
476
- ('([rR]|[uUbB][rR]|[rR][uUbB])(")',
477
- bygroups(String.Affix, String.Double), 'dqs'),
478
- ("([rR]|[uUbB][rR]|[rR][uUbB])(')",
479
- bygroups(String.Affix, String.Single), 'sqs'),
480
- ('([uUbB]?)(""")', bygroups(String.Affix, String.Double),
481
- combined('stringescape', 'tdqs')),
482
- ("([uUbB]?)(''')", bygroups(String.Affix, String.Single),
483
- combined('stringescape', 'tsqs')),
484
- ('([uUbB]?)(")', bygroups(String.Affix, String.Double),
485
- combined('stringescape', 'dqs')),
486
- ("([uUbB]?)(')", bygroups(String.Affix, String.Single),
487
- combined('stringescape', 'sqs')),
488
- include('name'),
489
- include('numbers'),
490
- ],
491
- 'keywords': [
492
- (words((
493
- 'assert', 'break', 'continue', 'del', 'elif', 'else', 'except',
494
- 'exec', 'finally', 'for', 'global', 'if', 'lambda', 'pass',
495
- 'print', 'raise', 'return', 'try', 'while', 'yield',
496
- 'yield from', 'as', 'with'), suffix=r'\b'),
497
- Keyword),
498
- ],
499
- 'builtins': [
500
- (words((
501
- '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin',
502
- 'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod',
503
- 'cmp', 'coerce', 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod',
504
- 'enumerate', 'eval', 'execfile', 'exit', 'file', 'filter', 'float',
505
- 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'hex', 'id',
506
- 'input', 'int', 'intern', 'isinstance', 'issubclass', 'iter', 'len',
507
- 'list', 'locals', 'long', 'map', 'max', 'min', 'next', 'object',
508
- 'oct', 'open', 'ord', 'pow', 'property', 'range', 'raw_input', 'reduce',
509
- 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice',
510
- 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type',
511
- 'unichr', 'unicode', 'vars', 'xrange', 'zip'),
512
- prefix=r'(?<!\.)', suffix=r'\b'),
513
- Name.Builtin),
514
- (r'(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|cls'
515
- r')\b', Name.Builtin.Pseudo),
516
- (words((
517
- 'ArithmeticError', 'AssertionError', 'AttributeError',
518
- 'BaseException', 'DeprecationWarning', 'EOFError', 'EnvironmentError',
519
- 'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit',
520
- 'IOError', 'ImportError', 'ImportWarning', 'IndentationError',
521
- 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError',
522
- 'MemoryError', 'NameError',
523
- 'NotImplementedError', 'OSError', 'OverflowError', 'OverflowWarning',
524
- 'PendingDeprecationWarning', 'ReferenceError',
525
- 'RuntimeError', 'RuntimeWarning', 'StandardError', 'StopIteration',
526
- 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit',
527
- 'TabError', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError',
528
- 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError',
529
- 'UnicodeWarning', 'UserWarning', 'ValueError', 'VMSError', 'Warning',
530
- 'WindowsError', 'ZeroDivisionError'), prefix=r'(?<!\.)', suffix=r'\b'),
531
- Name.Exception),
532
- ],
533
- 'magicfuncs': [
534
- (words((
535
- '__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__',
536
- '__complex__', '__contains__', '__del__', '__delattr__', '__delete__',
537
- '__delitem__', '__delslice__', '__div__', '__divmod__', '__enter__',
538
- '__eq__', '__exit__', '__float__', '__floordiv__', '__ge__', '__get__',
539
- '__getattr__', '__getattribute__', '__getitem__', '__getslice__', '__gt__',
540
- '__hash__', '__hex__', '__iadd__', '__iand__', '__idiv__', '__ifloordiv__',
541
- '__ilshift__', '__imod__', '__imul__', '__index__', '__init__',
542
- '__instancecheck__', '__int__', '__invert__', '__iop__', '__ior__',
543
- '__ipow__', '__irshift__', '__isub__', '__iter__', '__itruediv__',
544
- '__ixor__', '__le__', '__len__', '__long__', '__lshift__', '__lt__',
545
- '__missing__', '__mod__', '__mul__', '__ne__', '__neg__', '__new__',
546
- '__nonzero__', '__oct__', '__op__', '__or__', '__pos__', '__pow__',
547
- '__radd__', '__rand__', '__rcmp__', '__rdiv__', '__rdivmod__', '__repr__',
548
- '__reversed__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__',
549
- '__rop__', '__ror__', '__rpow__', '__rrshift__', '__rshift__', '__rsub__',
550
- '__rtruediv__', '__rxor__', '__set__', '__setattr__', '__setitem__',
551
- '__setslice__', '__str__', '__sub__', '__subclasscheck__', '__truediv__',
552
- '__unicode__', '__xor__'), suffix=r'\b'),
553
- Name.Function.Magic),
554
- ],
555
- 'magicvars': [
556
- (words((
557
- '__bases__', '__class__', '__closure__', '__code__', '__defaults__',
558
- '__dict__', '__doc__', '__file__', '__func__', '__globals__',
559
- '__metaclass__', '__module__', '__mro__', '__name__', '__self__',
560
- '__slots__', '__weakref__'),
561
- suffix=r'\b'),
562
- Name.Variable.Magic),
563
- ],
564
- 'numbers': [
565
- (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?', Number.Float),
566
- (r'\d+[eE][+-]?[0-9]+j?', Number.Float),
567
- (r'0[0-7]+j?', Number.Oct),
568
- (r'0[bB][01]+', Number.Bin),
569
- (r'0[xX][a-fA-F0-9]+', Number.Hex),
570
- (r'\d+L', Number.Integer.Long),
571
- (r'\d+j?', Number.Integer)
572
- ],
573
- 'backtick': [
574
- ('`.*?`', String.Backtick),
575
- ],
576
- 'name': [
577
- (r'@[\w.]+', Name.Decorator),
578
- (r'[a-zA-Z_]\w*', Name),
579
- ],
580
- 'funcname': [
581
- include('magicfuncs'),
582
- (r'[a-zA-Z_]\w*', Name.Function, '#pop'),
583
- default('#pop'),
584
- ],
585
- 'classname': [
586
- (r'[a-zA-Z_]\w*', Name.Class, '#pop')
587
- ],
588
- 'import': [
589
- (r'(?:[ \t]|\\\n)+', Text),
590
- (r'as\b', Keyword.Namespace),
591
- (r',', Operator),
592
- (r'[a-zA-Z_][\w.]*', Name.Namespace),
593
- default('#pop') # all else: go back
594
- ],
595
- 'fromimport': [
596
- (r'(?:[ \t]|\\\n)+', Text),
597
- (r'import\b', Keyword.Namespace, '#pop'),
598
- # if None occurs here, it's "raise x from None", since None can
599
- # never be a module name
600
- (r'None\b', Name.Builtin.Pseudo, '#pop'),
601
- # sadly, in "raise x from y" y will be highlighted as namespace too
602
- (r'[a-zA-Z_.][\w.]*', Name.Namespace),
603
- # anything else here also means "raise x from y" and is therefore
604
- # not an error
605
- default('#pop'),
606
- ],
607
- 'stringescape': [
608
- (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|'
609
- r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
610
- ],
611
- 'strings-single': innerstring_rules(String.Single),
612
- 'strings-double': innerstring_rules(String.Double),
613
- 'dqs': [
614
- (r'"', String.Double, '#pop'),
615
- (r'\\\\|\\"|\\\n', String.Escape), # included here for raw strings
616
- include('strings-double')
617
- ],
618
- 'sqs': [
619
- (r"'", String.Single, '#pop'),
620
- (r"\\\\|\\'|\\\n", String.Escape), # included here for raw strings
621
- include('strings-single')
622
- ],
623
- 'tdqs': [
624
- (r'"""', String.Double, '#pop'),
625
- include('strings-double'),
626
- (r'\n', String.Double)
627
- ],
628
- 'tsqs': [
629
- (r"'''", String.Single, '#pop'),
630
- include('strings-single'),
631
- (r'\n', String.Single)
632
- ],
633
- }
634
-
635
- def analyse_text(text):
636
- return shebang_matches(text, r'pythonw?2(\.\d)?')
637
-
638
-
639
- class PythonConsoleLexer(Lexer):
640
- """
641
- For Python console output or doctests, such as:
642
-
643
- .. sourcecode:: pycon
644
-
645
- >>> a = 'foo'
646
- >>> print a
647
- foo
648
- >>> 1 / 0
649
- Traceback (most recent call last):
650
- File "<stdin>", line 1, in <module>
651
- ZeroDivisionError: integer division or modulo by zero
652
-
653
- Additional options:
654
-
655
- `python3`
656
- Use Python 3 lexer for code. Default is ``True``.
657
-
658
- .. versionadded:: 1.0
659
- .. versionchanged:: 2.5
660
- Now defaults to ``True``.
661
- """
662
- name = 'Python console session'
663
- aliases = ['pycon']
664
- mimetypes = ['text/x-python-doctest']
665
-
666
- def __init__(self, **options):
667
- self.python3 = get_bool_opt(options, 'python3', True)
668
- Lexer.__init__(self, **options)
669
-
670
- def get_tokens_unprocessed(self, text):
671
- if self.python3:
672
- pylexer = PythonLexer(**self.options)
673
- tblexer = PythonTracebackLexer(**self.options)
674
- else:
675
- pylexer = Python2Lexer(**self.options)
676
- tblexer = Python2TracebackLexer(**self.options)
677
-
678
- curcode = ''
679
- insertions = []
680
- curtb = ''
681
- tbindex = 0
682
- tb = 0
683
- for match in line_re.finditer(text):
684
- line = match.group()
685
- if line.startswith('>>> ') or line.startswith('... '):
686
- tb = 0
687
- insertions.append((len(curcode),
688
- [(0, Generic.Prompt, line[:4])]))
689
- curcode += line[4:]
690
- elif line.rstrip() == '...' and not tb:
691
- # only a new >>> prompt can end an exception block
692
- # otherwise an ellipsis in place of the traceback frames
693
- # will be mishandled
694
- insertions.append((len(curcode),
695
- [(0, Generic.Prompt, '...')]))
696
- curcode += line[3:]
697
- else:
698
- if curcode:
699
- yield from do_insertions(
700
- insertions, pylexer.get_tokens_unprocessed(curcode))
701
- curcode = ''
702
- insertions = []
703
- if (line.startswith('Traceback (most recent call last):') or
704
- re.match(' File "[^"]+", line \\d+\\n$', line)):
705
- tb = 1
706
- curtb = line
707
- tbindex = match.start()
708
- elif line == 'KeyboardInterrupt\n':
709
- yield match.start(), Name.Class, line
710
- elif tb:
711
- curtb += line
712
- if not (line.startswith(' ') or line.strip() == '...'):
713
- tb = 0
714
- for i, t, v in tblexer.get_tokens_unprocessed(curtb):
715
- yield tbindex+i, t, v
716
- curtb = ''
717
- else:
718
- yield match.start(), Generic.Output, line
719
- if curcode:
720
- yield from do_insertions(insertions,
721
- pylexer.get_tokens_unprocessed(curcode))
722
- if curtb:
723
- for i, t, v in tblexer.get_tokens_unprocessed(curtb):
724
- yield tbindex+i, t, v
725
-
726
-
727
- class PythonTracebackLexer(RegexLexer):
728
- """
729
- For Python 3.x tracebacks, with support for chained exceptions.
730
-
731
- .. versionadded:: 1.0
732
-
733
- .. versionchanged:: 2.5
734
- This is now the default ``PythonTracebackLexer``. It is still available
735
- as the alias ``Python3TracebackLexer``.
736
- """
737
-
738
- name = 'Python Traceback'
739
- aliases = ['pytb', 'py3tb']
740
- filenames = ['*.pytb', '*.py3tb']
741
- mimetypes = ['text/x-python-traceback', 'text/x-python3-traceback']
742
-
743
- tokens = {
744
- 'root': [
745
- (r'\n', Whitespace),
746
- (r'^Traceback \(most recent call last\):\n', Generic.Traceback, 'intb'),
747
- (r'^During handling of the above exception, another '
748
- r'exception occurred:\n\n', Generic.Traceback),
749
- (r'^The above exception was the direct cause of the '
750
- r'following exception:\n\n', Generic.Traceback),
751
- (r'^(?= File "[^"]+", line \d+)', Generic.Traceback, 'intb'),
752
- (r'^.*\n', Other),
753
- ],
754
- 'intb': [
755
- (r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)',
756
- bygroups(Text, Name.Builtin, Text, Number, Text, Name, Whitespace)),
757
- (r'^( File )("[^"]+")(, line )(\d+)(\n)',
758
- bygroups(Text, Name.Builtin, Text, Number, Whitespace)),
759
- (r'^( )(.+)(\n)',
760
- bygroups(Whitespace, using(PythonLexer), Whitespace), 'markers'),
761
- (r'^([ \t]*)(\.\.\.)(\n)',
762
- bygroups(Whitespace, Comment, Whitespace)), # for doctests...
763
- (r'^([^:]+)(: )(.+)(\n)',
764
- bygroups(Generic.Error, Text, Name, Whitespace), '#pop'),
765
- (r'^([a-zA-Z_][\w.]*)(:?\n)',
766
- bygroups(Generic.Error, Whitespace), '#pop')
767
- ],
768
- 'markers': [
769
- # Either `PEP 657 <https://www.python.org/dev/peps/pep-0657/>`
770
- # error locations in Python 3.11+, or single-caret markers
771
- # for syntax errors before that.
772
- (r'^( {4,})([~^]+)(\n)',
773
- bygroups(Whitespace, Punctuation.Marker, Whitespace),
774
- '#pop'),
775
- default('#pop'),
776
- ],
777
- }
778
-
779
-
780
- Python3TracebackLexer = PythonTracebackLexer
781
-
782
-
783
- class Python2TracebackLexer(RegexLexer):
784
- """
785
- For Python tracebacks.
786
-
787
- .. versionadded:: 0.7
788
-
789
- .. versionchanged:: 2.5
790
- This class has been renamed from ``PythonTracebackLexer``.
791
- ``PythonTracebackLexer`` now refers to the Python 3 variant.
792
- """
793
-
794
- name = 'Python 2.x Traceback'
795
- aliases = ['py2tb']
796
- filenames = ['*.py2tb']
797
- mimetypes = ['text/x-python2-traceback']
798
-
799
- tokens = {
800
- 'root': [
801
- # Cover both (most recent call last) and (innermost last)
802
- # The optional ^C allows us to catch keyboard interrupt signals.
803
- (r'^(\^C)?(Traceback.*\n)',
804
- bygroups(Text, Generic.Traceback), 'intb'),
805
- # SyntaxError starts with this.
806
- (r'^(?= File "[^"]+", line \d+)', Generic.Traceback, 'intb'),
807
- (r'^.*\n', Other),
808
- ],
809
- 'intb': [
810
- (r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)',
811
- bygroups(Text, Name.Builtin, Text, Number, Text, Name, Whitespace)),
812
- (r'^( File )("[^"]+")(, line )(\d+)(\n)',
813
- bygroups(Text, Name.Builtin, Text, Number, Whitespace)),
814
- (r'^( )(.+)(\n)',
815
- bygroups(Text, using(Python2Lexer), Whitespace), 'marker'),
816
- (r'^([ \t]*)(\.\.\.)(\n)',
817
- bygroups(Text, Comment, Whitespace)), # for doctests...
818
- (r'^([^:]+)(: )(.+)(\n)',
819
- bygroups(Generic.Error, Text, Name, Whitespace), '#pop'),
820
- (r'^([a-zA-Z_]\w*)(:?\n)',
821
- bygroups(Generic.Error, Whitespace), '#pop')
822
- ],
823
- 'marker': [
824
- # For syntax errors.
825
- (r'( {4,})(\^)', bygroups(Text, Punctuation.Marker), '#pop'),
826
- default('#pop'),
827
- ],
828
- }
829
-
830
-
831
- class CythonLexer(RegexLexer):
832
- """
833
- For Pyrex and Cython source code.
834
-
835
- .. versionadded:: 1.1
836
- """
837
-
838
- name = 'Cython'
839
- url = 'http://cython.org'
840
- aliases = ['cython', 'pyx', 'pyrex']
841
- filenames = ['*.pyx', '*.pxd', '*.pxi']
842
- mimetypes = ['text/x-cython', 'application/x-cython']
843
-
844
- tokens = {
845
- 'root': [
846
- (r'\n', Whitespace),
847
- (r'^(\s*)("""(?:.|\n)*?""")', bygroups(Whitespace, String.Doc)),
848
- (r"^(\s*)('''(?:.|\n)*?''')", bygroups(Whitespace, String.Doc)),
849
- (r'[^\S\n]+', Text),
850
- (r'#.*$', Comment),
851
- (r'[]{}:(),;[]', Punctuation),
852
- (r'\\\n', Whitespace),
853
- (r'\\', Text),
854
- (r'(in|is|and|or|not)\b', Operator.Word),
855
- (r'(<)([a-zA-Z0-9.?]+)(>)',
856
- bygroups(Punctuation, Keyword.Type, Punctuation)),
857
- (r'!=|==|<<|>>|[-~+/*%=<>&^|.?]', Operator),
858
- (r'(from)(\d+)(<=)(\s+)(<)(\d+)(:)',
859
- bygroups(Keyword, Number.Integer, Operator, Name, Operator,
860
- Name, Punctuation)),
861
- include('keywords'),
862
- (r'(def|property)(\s+)', bygroups(Keyword, Text), 'funcname'),
863
- (r'(cp?def)(\s+)', bygroups(Keyword, Text), 'cdef'),
864
- # (should actually start a block with only cdefs)
865
- (r'(cdef)(:)', bygroups(Keyword, Punctuation)),
866
- (r'(class|struct)(\s+)', bygroups(Keyword, Text), 'classname'),
867
- (r'(from)(\s+)', bygroups(Keyword, Text), 'fromimport'),
868
- (r'(c?import)(\s+)', bygroups(Keyword, Text), 'import'),
869
- include('builtins'),
870
- include('backtick'),
871
- ('(?:[rR]|[uU][rR]|[rR][uU])"""', String, 'tdqs'),
872
- ("(?:[rR]|[uU][rR]|[rR][uU])'''", String, 'tsqs'),
873
- ('(?:[rR]|[uU][rR]|[rR][uU])"', String, 'dqs'),
874
- ("(?:[rR]|[uU][rR]|[rR][uU])'", String, 'sqs'),
875
- ('[uU]?"""', String, combined('stringescape', 'tdqs')),
876
- ("[uU]?'''", String, combined('stringescape', 'tsqs')),
877
- ('[uU]?"', String, combined('stringescape', 'dqs')),
878
- ("[uU]?'", String, combined('stringescape', 'sqs')),
879
- include('name'),
880
- include('numbers'),
881
- ],
882
- 'keywords': [
883
- (words((
884
- 'assert', 'async', 'await', 'break', 'by', 'continue', 'ctypedef', 'del', 'elif',
885
- 'else', 'except', 'except?', 'exec', 'finally', 'for', 'fused', 'gil',
886
- 'global', 'if', 'include', 'lambda', 'nogil', 'pass', 'print',
887
- 'raise', 'return', 'try', 'while', 'yield', 'as', 'with'), suffix=r'\b'),
888
- Keyword),
889
- (r'(DEF|IF|ELIF|ELSE)\b', Comment.Preproc),
890
- ],
891
- 'builtins': [
892
- (words((
893
- '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin', 'bint',
894
- 'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr',
895
- 'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'delattr',
896
- 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', 'exit',
897
- 'file', 'filter', 'float', 'frozenset', 'getattr', 'globals',
898
- 'hasattr', 'hash', 'hex', 'id', 'input', 'int', 'intern', 'isinstance',
899
- 'issubclass', 'iter', 'len', 'list', 'locals', 'long', 'map', 'max',
900
- 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'Py_ssize_t',
901
- 'range', 'raw_input', 'reduce', 'reload', 'repr', 'reversed',
902
- 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod',
903
- 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', 'unsigned',
904
- 'vars', 'xrange', 'zip'), prefix=r'(?<!\.)', suffix=r'\b'),
905
- Name.Builtin),
906
- (r'(?<!\.)(self|None|Ellipsis|NotImplemented|False|True|NULL'
907
- r')\b', Name.Builtin.Pseudo),
908
- (words((
909
- 'ArithmeticError', 'AssertionError', 'AttributeError',
910
- 'BaseException', 'DeprecationWarning', 'EOFError', 'EnvironmentError',
911
- 'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit',
912
- 'IOError', 'ImportError', 'ImportWarning', 'IndentationError',
913
- 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError',
914
- 'MemoryError', 'NameError', 'NotImplemented', 'NotImplementedError',
915
- 'OSError', 'OverflowError', 'OverflowWarning',
916
- 'PendingDeprecationWarning', 'ReferenceError', 'RuntimeError',
917
- 'RuntimeWarning', 'StandardError', 'StopIteration', 'SyntaxError',
918
- 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError',
919
- 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError',
920
- 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError',
921
- 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning',
922
- 'ZeroDivisionError'), prefix=r'(?<!\.)', suffix=r'\b'),
923
- Name.Exception),
924
- ],
925
- 'numbers': [
926
- (r'(\d+\.?\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
927
- (r'0\d+', Number.Oct),
928
- (r'0[xX][a-fA-F0-9]+', Number.Hex),
929
- (r'\d+L', Number.Integer.Long),
930
- (r'\d+', Number.Integer)
931
- ],
932
- 'backtick': [
933
- ('`.*?`', String.Backtick),
934
- ],
935
- 'name': [
936
- (r'@\w+', Name.Decorator),
937
- (r'[a-zA-Z_]\w*', Name),
938
- ],
939
- 'funcname': [
940
- (r'[a-zA-Z_]\w*', Name.Function, '#pop')
941
- ],
942
- 'cdef': [
943
- (r'(public|readonly|extern|api|inline)\b', Keyword.Reserved),
944
- (r'(struct|enum|union|class)\b', Keyword),
945
- (r'([a-zA-Z_]\w*)(\s*)(?=[(:#=]|$)',
946
- bygroups(Name.Function, Text), '#pop'),
947
- (r'([a-zA-Z_]\w*)(\s*)(,)',
948
- bygroups(Name.Function, Text, Punctuation)),
949
- (r'from\b', Keyword, '#pop'),
950
- (r'as\b', Keyword),
951
- (r':', Punctuation, '#pop'),
952
- (r'(?=["\'])', Text, '#pop'),
953
- (r'[a-zA-Z_]\w*', Keyword.Type),
954
- (r'.', Text),
955
- ],
956
- 'classname': [
957
- (r'[a-zA-Z_]\w*', Name.Class, '#pop')
958
- ],
959
- 'import': [
960
- (r'(\s+)(as)(\s+)', bygroups(Text, Keyword, Text)),
961
- (r'[a-zA-Z_][\w.]*', Name.Namespace),
962
- (r'(\s*)(,)(\s*)', bygroups(Text, Operator, Text)),
963
- default('#pop') # all else: go back
964
- ],
965
- 'fromimport': [
966
- (r'(\s+)(c?import)\b', bygroups(Text, Keyword), '#pop'),
967
- (r'[a-zA-Z_.][\w.]*', Name.Namespace),
968
- # ``cdef foo from "header"``, or ``for foo from 0 < i < 10``
969
- default('#pop'),
970
- ],
971
- 'stringescape': [
972
- (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|'
973
- r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
974
- ],
975
- 'strings': [
976
- (r'%(\([a-zA-Z0-9]+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?'
977
- '[hlL]?[E-GXc-giorsux%]', String.Interpol),
978
- (r'[^\\\'"%\n]+', String),
979
- # quotes, percents and backslashes must be parsed one at a time
980
- (r'[\'"\\]', String),
981
- # unhandled string formatting sign
982
- (r'%', String)
983
- # newlines are an error (use "nl" state)
984
- ],
985
- 'nl': [
986
- (r'\n', String)
987
- ],
988
- 'dqs': [
989
- (r'"', String, '#pop'),
990
- (r'\\\\|\\"|\\\n', String.Escape), # included here again for raw strings
991
- include('strings')
992
- ],
993
- 'sqs': [
994
- (r"'", String, '#pop'),
995
- (r"\\\\|\\'|\\\n", String.Escape), # included here again for raw strings
996
- include('strings')
997
- ],
998
- 'tdqs': [
999
- (r'"""', String, '#pop'),
1000
- include('strings'),
1001
- include('nl')
1002
- ],
1003
- 'tsqs': [
1004
- (r"'''", String, '#pop'),
1005
- include('strings'),
1006
- include('nl')
1007
- ],
1008
- }
1009
-
1010
-
1011
- class DgLexer(RegexLexer):
1012
- """
1013
- Lexer for dg,
1014
- a functional and object-oriented programming language
1015
- running on the CPython 3 VM.
1016
-
1017
- .. versionadded:: 1.6
1018
- """
1019
- name = 'dg'
1020
- aliases = ['dg']
1021
- filenames = ['*.dg']
1022
- mimetypes = ['text/x-dg']
1023
-
1024
- tokens = {
1025
- 'root': [
1026
- (r'\s+', Text),
1027
- (r'#.*?$', Comment.Single),
1028
-
1029
- (r'(?i)0b[01]+', Number.Bin),
1030
- (r'(?i)0o[0-7]+', Number.Oct),
1031
- (r'(?i)0x[0-9a-f]+', Number.Hex),
1032
- (r'(?i)[+-]?[0-9]+\.[0-9]+(e[+-]?[0-9]+)?j?', Number.Float),
1033
- (r'(?i)[+-]?[0-9]+e[+-]?\d+j?', Number.Float),
1034
- (r'(?i)[+-]?[0-9]+j?', Number.Integer),
1035
-
1036
- (r"(?i)(br|r?b?)'''", String, combined('stringescape', 'tsqs', 'string')),
1037
- (r'(?i)(br|r?b?)"""', String, combined('stringescape', 'tdqs', 'string')),
1038
- (r"(?i)(br|r?b?)'", String, combined('stringescape', 'sqs', 'string')),
1039
- (r'(?i)(br|r?b?)"', String, combined('stringescape', 'dqs', 'string')),
1040
-
1041
- (r"`\w+'*`", Operator),
1042
- (r'\b(and|in|is|or|where)\b', Operator.Word),
1043
- (r'[!$%&*+\-./:<-@\\^|~;,]+', Operator),
1044
-
1045
- (words((
1046
- 'bool', 'bytearray', 'bytes', 'classmethod', 'complex', 'dict', 'dict\'',
1047
- 'float', 'frozenset', 'int', 'list', 'list\'', 'memoryview', 'object',
1048
- 'property', 'range', 'set', 'set\'', 'slice', 'staticmethod', 'str',
1049
- 'super', 'tuple', 'tuple\'', 'type'),
1050
- prefix=r'(?<!\.)', suffix=r'(?![\'\w])'),
1051
- Name.Builtin),
1052
- (words((
1053
- '__import__', 'abs', 'all', 'any', 'bin', 'bind', 'chr', 'cmp', 'compile',
1054
- 'complex', 'delattr', 'dir', 'divmod', 'drop', 'dropwhile', 'enumerate',
1055
- 'eval', 'exhaust', 'filter', 'flip', 'foldl1?', 'format', 'fst',
1056
- 'getattr', 'globals', 'hasattr', 'hash', 'head', 'hex', 'id', 'init',
1057
- 'input', 'isinstance', 'issubclass', 'iter', 'iterate', 'last', 'len',
1058
- 'locals', 'map', 'max', 'min', 'next', 'oct', 'open', 'ord', 'pow',
1059
- 'print', 'repr', 'reversed', 'round', 'setattr', 'scanl1?', 'snd',
1060
- 'sorted', 'sum', 'tail', 'take', 'takewhile', 'vars', 'zip'),
1061
- prefix=r'(?<!\.)', suffix=r'(?![\'\w])'),
1062
- Name.Builtin),
1063
- (r"(?<!\.)(self|Ellipsis|NotImplemented|None|True|False)(?!['\w])",
1064
- Name.Builtin.Pseudo),
1065
-
1066
- (r"(?<!\.)[A-Z]\w*(Error|Exception|Warning)'*(?!['\w])",
1067
- Name.Exception),
1068
- (r"(?<!\.)(Exception|GeneratorExit|KeyboardInterrupt|StopIteration|"
1069
- r"SystemExit)(?!['\w])", Name.Exception),
1070
-
1071
- (r"(?<![\w.])(except|finally|for|if|import|not|otherwise|raise|"
1072
- r"subclass|while|with|yield)(?!['\w])", Keyword.Reserved),
1073
-
1074
- (r"[A-Z_]+'*(?!['\w])", Name),
1075
- (r"[A-Z]\w+'*(?!['\w])", Keyword.Type),
1076
- (r"\w+'*", Name),
1077
-
1078
- (r'[()]', Punctuation),
1079
- (r'.', Error),
1080
- ],
1081
- 'stringescape': [
1082
- (r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|'
1083
- r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
1084
- ],
1085
- 'string': [
1086
- (r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?'
1087
- '[hlL]?[E-GXc-giorsux%]', String.Interpol),
1088
- (r'[^\\\'"%\n]+', String),
1089
- # quotes, percents and backslashes must be parsed one at a time
1090
- (r'[\'"\\]', String),
1091
- # unhandled string formatting sign
1092
- (r'%', String),
1093
- (r'\n', String)
1094
- ],
1095
- 'dqs': [
1096
- (r'"', String, '#pop')
1097
- ],
1098
- 'sqs': [
1099
- (r"'", String, '#pop')
1100
- ],
1101
- 'tdqs': [
1102
- (r'"""', String, '#pop')
1103
- ],
1104
- 'tsqs': [
1105
- (r"'''", String, '#pop')
1106
- ],
1107
- }
1108
-
1109
-
1110
- class NumPyLexer(PythonLexer):
1111
- """
1112
- A Python lexer recognizing Numerical Python builtins.
1113
-
1114
- .. versionadded:: 0.10
1115
- """
1116
-
1117
- name = 'NumPy'
1118
- url = 'https://numpy.org/'
1119
- aliases = ['numpy']
1120
-
1121
- # override the mimetypes to not inherit them from python
1122
- mimetypes = []
1123
- filenames = []
1124
-
1125
- EXTRA_KEYWORDS = {
1126
- 'abs', 'absolute', 'accumulate', 'add', 'alen', 'all', 'allclose',
1127
- 'alltrue', 'alterdot', 'amax', 'amin', 'angle', 'any', 'append',
1128
- 'apply_along_axis', 'apply_over_axes', 'arange', 'arccos', 'arccosh',
1129
- 'arcsin', 'arcsinh', 'arctan', 'arctan2', 'arctanh', 'argmax', 'argmin',
1130
- 'argsort', 'argwhere', 'around', 'array', 'array2string', 'array_equal',
1131
- 'array_equiv', 'array_repr', 'array_split', 'array_str', 'arrayrange',
1132
- 'asanyarray', 'asarray', 'asarray_chkfinite', 'ascontiguousarray',
1133
- 'asfarray', 'asfortranarray', 'asmatrix', 'asscalar', 'astype',
1134
- 'atleast_1d', 'atleast_2d', 'atleast_3d', 'average', 'bartlett',
1135
- 'base_repr', 'beta', 'binary_repr', 'bincount', 'binomial',
1136
- 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'blackman',
1137
- 'bmat', 'broadcast', 'byte_bounds', 'bytes', 'byteswap', 'c_',
1138
- 'can_cast', 'ceil', 'choose', 'clip', 'column_stack', 'common_type',
1139
- 'compare_chararrays', 'compress', 'concatenate', 'conj', 'conjugate',
1140
- 'convolve', 'copy', 'corrcoef', 'correlate', 'cos', 'cosh', 'cov',
1141
- 'cross', 'cumprod', 'cumproduct', 'cumsum', 'delete', 'deprecate',
1142
- 'diag', 'diagflat', 'diagonal', 'diff', 'digitize', 'disp', 'divide',
1143
- 'dot', 'dsplit', 'dstack', 'dtype', 'dump', 'dumps', 'ediff1d', 'empty',
1144
- 'empty_like', 'equal', 'exp', 'expand_dims', 'expm1', 'extract', 'eye',
1145
- 'fabs', 'fastCopyAndTranspose', 'fft', 'fftfreq', 'fftshift', 'fill',
1146
- 'finfo', 'fix', 'flat', 'flatnonzero', 'flatten', 'fliplr', 'flipud',
1147
- 'floor', 'floor_divide', 'fmod', 'frexp', 'fromarrays', 'frombuffer',
1148
- 'fromfile', 'fromfunction', 'fromiter', 'frompyfunc', 'fromstring',
1149
- 'generic', 'get_array_wrap', 'get_include', 'get_numarray_include',
1150
- 'get_numpy_include', 'get_printoptions', 'getbuffer', 'getbufsize',
1151
- 'geterr', 'geterrcall', 'geterrobj', 'getfield', 'gradient', 'greater',
1152
- 'greater_equal', 'gumbel', 'hamming', 'hanning', 'histogram',
1153
- 'histogram2d', 'histogramdd', 'hsplit', 'hstack', 'hypot', 'i0',
1154
- 'identity', 'ifft', 'imag', 'index_exp', 'indices', 'inf', 'info',
1155
- 'inner', 'insert', 'int_asbuffer', 'interp', 'intersect1d',
1156
- 'intersect1d_nu', 'inv', 'invert', 'iscomplex', 'iscomplexobj',
1157
- 'isfinite', 'isfortran', 'isinf', 'isnan', 'isneginf', 'isposinf',
1158
- 'isreal', 'isrealobj', 'isscalar', 'issctype', 'issubclass_',
1159
- 'issubdtype', 'issubsctype', 'item', 'itemset', 'iterable', 'ix_',
1160
- 'kaiser', 'kron', 'ldexp', 'left_shift', 'less', 'less_equal', 'lexsort',
1161
- 'linspace', 'load', 'loads', 'loadtxt', 'log', 'log10', 'log1p', 'log2',
1162
- 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'logspace',
1163
- 'lstsq', 'mat', 'matrix', 'max', 'maximum', 'maximum_sctype',
1164
- 'may_share_memory', 'mean', 'median', 'meshgrid', 'mgrid', 'min',
1165
- 'minimum', 'mintypecode', 'mod', 'modf', 'msort', 'multiply', 'nan',
1166
- 'nan_to_num', 'nanargmax', 'nanargmin', 'nanmax', 'nanmin', 'nansum',
1167
- 'ndenumerate', 'ndim', 'ndindex', 'negative', 'newaxis', 'newbuffer',
1168
- 'newbyteorder', 'nonzero', 'not_equal', 'obj2sctype', 'ogrid', 'ones',
1169
- 'ones_like', 'outer', 'permutation', 'piecewise', 'pinv', 'pkgload',
1170
- 'place', 'poisson', 'poly', 'poly1d', 'polyadd', 'polyder', 'polydiv',
1171
- 'polyfit', 'polyint', 'polymul', 'polysub', 'polyval', 'power', 'prod',
1172
- 'product', 'ptp', 'put', 'putmask', 'r_', 'randint', 'random_integers',
1173
- 'random_sample', 'ranf', 'rank', 'ravel', 'real', 'real_if_close',
1174
- 'recarray', 'reciprocal', 'reduce', 'remainder', 'repeat', 'require',
1175
- 'reshape', 'resize', 'restoredot', 'right_shift', 'rint', 'roll',
1176
- 'rollaxis', 'roots', 'rot90', 'round', 'round_', 'row_stack', 's_',
1177
- 'sample', 'savetxt', 'sctype2char', 'searchsorted', 'seed', 'select',
1178
- 'set_numeric_ops', 'set_printoptions', 'set_string_function',
1179
- 'setbufsize', 'setdiff1d', 'seterr', 'seterrcall', 'seterrobj',
1180
- 'setfield', 'setflags', 'setmember1d', 'setxor1d', 'shape',
1181
- 'show_config', 'shuffle', 'sign', 'signbit', 'sin', 'sinc', 'sinh',
1182
- 'size', 'slice', 'solve', 'sometrue', 'sort', 'sort_complex', 'source',
1183
- 'split', 'sqrt', 'square', 'squeeze', 'standard_normal', 'std',
1184
- 'subtract', 'sum', 'svd', 'swapaxes', 'take', 'tan', 'tanh', 'tensordot',
1185
- 'test', 'tile', 'tofile', 'tolist', 'tostring', 'trace', 'transpose',
1186
- 'trapz', 'tri', 'tril', 'trim_zeros', 'triu', 'true_divide', 'typeDict',
1187
- 'typename', 'uniform', 'union1d', 'unique', 'unique1d', 'unravel_index',
1188
- 'unwrap', 'vander', 'var', 'vdot', 'vectorize', 'view', 'vonmises',
1189
- 'vsplit', 'vstack', 'weibull', 'where', 'who', 'zeros', 'zeros_like'
1190
- }
1191
-
1192
- def get_tokens_unprocessed(self, text):
1193
- for index, token, value in \
1194
- PythonLexer.get_tokens_unprocessed(self, text):
1195
- if token is Name and value in self.EXTRA_KEYWORDS:
1196
- yield index, Keyword.Pseudo, value
1197
- else:
1198
- yield index, token, value
1199
-
1200
- def analyse_text(text):
1201
- ltext = text[:1000]
1202
- return (shebang_matches(text, r'pythonw?(3(\.\d)?)?') or
1203
- 'import ' in ltext) \
1204
- and ('import numpy' in ltext or 'from numpy import' in ltext)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AtomdffAI/wechatgpt4atom/common/log.py DELETED
@@ -1,16 +0,0 @@
1
- import logging
2
- import sys
3
-
4
-
5
- def _get_logger():
6
- log = logging.getLogger('log')
7
- log.setLevel(logging.INFO)
8
- console_handle = logging.StreamHandler(sys.stdout)
9
- console_handle.setFormatter(logging.Formatter('[%(levelname)s][%(asctime)s][%(filename)s:%(lineno)d] - %(message)s',
10
- datefmt='%Y-%m-%d %H:%M:%S'))
11
- log.addHandler(console_handle)
12
- return log
13
-
14
-
15
- # 日志句柄
16
- logger = _get_logger()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docker/Dockerfile DELETED
@@ -1,47 +0,0 @@
1
- FROM nvidia/cuda:11.1.1-cudnn8-devel-ubuntu18.04
2
- # use an older system (18.04) to avoid opencv incompatibility (issue#3524)
3
-
4
- ENV DEBIAN_FRONTEND noninteractive
5
- RUN apt-get update && apt-get install -y \
6
- python3-opencv ca-certificates python3-dev git wget sudo ninja-build
7
- RUN ln -sv /usr/bin/python3 /usr/bin/python
8
-
9
- # create a non-root user
10
- ARG USER_ID=1000
11
- RUN useradd -m --no-log-init --system --uid ${USER_ID} appuser -g sudo
12
- RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
13
- USER appuser
14
- WORKDIR /home/appuser
15
-
16
- ENV PATH="/home/appuser/.local/bin:${PATH}"
17
- RUN wget https://bootstrap.pypa.io/get-pip.py && \
18
- python3 get-pip.py --user && \
19
- rm get-pip.py
20
-
21
- # install dependencies
22
- # See https://pytorch.org/ for other options if you use a different version of CUDA
23
- RUN pip install --user tensorboard cmake # cmake from apt-get is too old
24
- RUN pip install --user torch==1.10 torchvision==0.11.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html
25
-
26
- RUN pip install --user 'git+https://github.com/facebookresearch/fvcore'
27
- # install detectron2
28
- RUN git clone https://github.com/facebookresearch/detectron2 detectron2_repo
29
- # set FORCE_CUDA because during `docker build` cuda is not accessible
30
- ENV FORCE_CUDA="1"
31
- # This will by default build detectron2 for all common cuda architectures and take a lot more time,
32
- # because inside `docker build`, there is no way to tell which architecture will be used.
33
- ARG TORCH_CUDA_ARCH_LIST="Kepler;Kepler+Tesla;Maxwell;Maxwell+Tegra;Pascal;Volta;Turing"
34
- ENV TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST}"
35
-
36
- RUN pip install --user -e detectron2_repo
37
-
38
- # Set a fixed model cache directory.
39
- ENV FVCORE_CACHE="/tmp"
40
- WORKDIR /home/appuser/detectron2_repo
41
-
42
- # run detectron2 under user "appuser":
43
- # wget http://images.cocodataset.org/val2017/000000439715.jpg -O input.jpg
44
- # python3 demo/demo.py \
45
- #--config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \
46
- #--input input.jpg --output outputs/ \
47
- #--opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docs/tutorials/augmentation.md DELETED
@@ -1,186 +0,0 @@
1
-
2
- # Data Augmentation
3
-
4
- Augmentation is an important part of training.
5
- Detectron2's data augmentation system aims at addressing the following goals:
6
-
7
- 1. Allow augmenting multiple data types together
8
- (e.g., images together with their bounding boxes and masks)
9
- 2. Allow applying a sequence of statically-declared augmentation
10
- 3. Allow adding custom new data types to augment (rotated bounding boxes, video clips, etc.)
11
- 4. Process and manipulate the __operations__ that are applied by augmentations
12
-
13
- The first two features cover most of the common use cases, and is also
14
- available in other libraries such as [albumentations](https://medium.com/pytorch/multi-target-in-albumentations-16a777e9006e).
15
- Supporting other features adds some overhead to detectron2's augmentation API,
16
- which we'll explain in this tutorial.
17
-
18
- This tutorial focuses on how to use augmentations when writing new data loaders,
19
- and how to write new augmentations.
20
- If you use the default data loader in detectron2, it already supports taking a user-provided list of custom augmentations,
21
- as explained in the [Dataloader tutorial](data_loading).
22
-
23
- ## Basic Usage
24
-
25
- The basic usage of feature (1) and (2) is like the following:
26
- ```python
27
- from detectron2.data import transforms as T
28
- # Define a sequence of augmentations:
29
- augs = T.AugmentationList([
30
- T.RandomBrightness(0.9, 1.1),
31
- T.RandomFlip(prob=0.5),
32
- T.RandomCrop("absolute", (640, 640))
33
- ]) # type: T.Augmentation
34
-
35
- # Define the augmentation input ("image" required, others optional):
36
- input = T.AugInput(image, boxes=boxes, sem_seg=sem_seg)
37
- # Apply the augmentation:
38
- transform = augs(input) # type: T.Transform
39
- image_transformed = input.image # new image
40
- sem_seg_transformed = input.sem_seg # new semantic segmentation
41
-
42
- # For any extra data that needs to be augmented together, use transform, e.g.:
43
- image2_transformed = transform.apply_image(image2)
44
- polygons_transformed = transform.apply_polygons(polygons)
45
- ```
46
-
47
- Three basic concepts are involved here. They are:
48
- * [T.Augmentation](../modules/data_transforms.html#detectron2.data.transforms.Augmentation) defines the __"policy"__ to modify inputs.
49
- * its `__call__(AugInput) -> Transform` method augments the inputs in-place, and returns the operation that is applied
50
- * [T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform)
51
- implements the actual __operations__ to transform data
52
- * it has methods such as `apply_image`, `apply_coords` that define how to transform each data type
53
- * [T.AugInput](../modules/data_transforms.html#detectron2.data.transforms.AugInput)
54
- stores inputs needed by `T.Augmentation` and how they should be transformed.
55
- This concept is needed for some advanced usage.
56
- Using this class directly should be sufficient for all common use cases,
57
- since extra data not in `T.AugInput` can be augmented using the returned
58
- `transform`, as shown in the above example.
59
-
60
- ## Write New Augmentations
61
-
62
- Most 2D augmentations only need to know about the input image. Such augmentation can be implemented easily like this:
63
-
64
- ```python
65
- class MyColorAugmentation(T.Augmentation):
66
- def get_transform(self, image):
67
- r = np.random.rand(2)
68
- return T.ColorTransform(lambda x: x * r[0] + r[1] * 10)
69
-
70
- class MyCustomResize(T.Augmentation):
71
- def get_transform(self, image):
72
- old_h, old_w = image.shape[:2]
73
- new_h, new_w = int(old_h * np.random.rand()), int(old_w * 1.5)
74
- return T.ResizeTransform(old_h, old_w, new_h, new_w)
75
-
76
- augs = MyCustomResize()
77
- transform = augs(input)
78
- ```
79
-
80
- In addition to image, any attributes of the given `AugInput` can be used as long
81
- as they are part of the function signature, e.g.:
82
-
83
- ```python
84
- class MyCustomCrop(T.Augmentation):
85
- def get_transform(self, image, sem_seg):
86
- # decide where to crop using both image and sem_seg
87
- return T.CropTransform(...)
88
-
89
- augs = MyCustomCrop()
90
- assert hasattr(input, "image") and hasattr(input, "sem_seg")
91
- transform = augs(input)
92
- ```
93
-
94
- New transform operation can also be added by subclassing
95
- [T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform).
96
-
97
- ## Advanced Usage
98
-
99
- We give a few examples of advanced usages that
100
- are enabled by our system.
101
- These options can be interesting to new research,
102
- although changing them is often not needed
103
- for standard use cases.
104
-
105
- ### Custom transform strategy
106
-
107
- Instead of only returning the augmented data, detectron2's `Augmentation` returns the __operations__ as `T.Transform`.
108
- This allows users to apply custom transform strategy on their data.
109
- We use keypoints data as an example.
110
-
111
- Keypoints are (x, y) coordinates, but they are not so trivial to augment due to the semantic meaning they carry.
112
- Such meaning is only known to the users, therefore users may want to augment them manually
113
- by looking at the returned `transform`.
114
- For example, when an image is horizontally flipped, we'd like to swap the keypoint annotations for "left eye" and "right eye".
115
- This can be done like this (included by default in detectron2's default data loader):
116
- ```python
117
- # augs, input are defined as in previous examples
118
- transform = augs(input) # type: T.Transform
119
- keypoints_xy = transform.apply_coords(keypoints_xy) # transform the coordinates
120
-
121
- # get a list of all transforms that were applied
122
- transforms = T.TransformList([transform]).transforms
123
- # check if it is flipped for odd number of times
124
- do_hflip = sum(isinstance(t, T.HFlipTransform) for t in transforms) % 2 == 1
125
- if do_hflip:
126
- keypoints_xy = keypoints_xy[flip_indices_mapping]
127
- ```
128
-
129
- As another example, keypoints annotations often have a "visibility" field.
130
- A sequence of augmentations might augment a visible keypoint out of the image boundary (e.g. with cropping),
131
- but then bring it back within the boundary afterwards (e.g. with image padding).
132
- If users decide to label such keypoints "invisible",
133
- then the visibility check has to happen after every transform step.
134
- This can be achieved by:
135
-
136
- ```python
137
- transform = augs(input) # type: T.TransformList
138
- assert isinstance(transform, T.TransformList)
139
- for t in transform.transforms:
140
- keypoints_xy = t.apply_coords(keypoints_xy)
141
- visibility &= (keypoints_xy >= [0, 0] & keypoints_xy <= [W, H]).all(axis=1)
142
-
143
- # btw, detectron2's `transform_keypoint_annotations` function chooses to label such keypoints "visible":
144
- # keypoints_xy = transform.apply_coords(keypoints_xy)
145
- # visibility &= (keypoints_xy >= [0, 0] & keypoints_xy <= [W, H]).all(axis=1)
146
- ```
147
-
148
-
149
- ### Geometrically invert the transform
150
- If images are pre-processed by augmentations before inference, the predicted results
151
- such as segmentation masks are localized on the augmented image.
152
- We'd like to invert the applied augmentation with the [inverse()](../modules/data_transforms.html#detectron2.data.transforms.Transform.inverse)
153
- API, to obtain results on the original image:
154
- ```python
155
- transform = augs(input)
156
- pred_mask = make_prediction(input.image)
157
- inv_transform = transform.inverse()
158
- pred_mask_orig = inv_transform.apply_segmentation(pred_mask)
159
- ```
160
-
161
- ### Add new data types
162
-
163
- [T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform)
164
- supports a few common data types to transform, including images, coordinates, masks, boxes, polygons.
165
- It allows registering new data types, e.g.:
166
- ```python
167
- @T.HFlipTransform.register_type("rotated_boxes")
168
- def func(flip_transform: T.HFlipTransform, rotated_boxes: Any):
169
- # do the work
170
- return flipped_rotated_boxes
171
-
172
- t = HFlipTransform(width=800)
173
- transformed_rotated_boxes = t.apply_rotated_boxes(rotated_boxes) # func will be called
174
- ```
175
-
176
- ### Extend T.AugInput
177
-
178
- An augmentation can only access attributes available in the given input.
179
- [T.AugInput](../modules/data_transforms.html#detectron2.data.transforms.StandardAugInput) defines "image", "boxes", "sem_seg",
180
- which are sufficient for common augmentation strategies to decide how to augment.
181
- If not, a custom implementation is needed.
182
-
183
- By re-implement the "transform()" method in AugInput, it is also possible to
184
- augment different fields in ways that are dependent on each other.
185
- Such use case is uncommon (e.g. post-process bounding box based on augmented masks), but allowed by the system.
186
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Descargar 6 Minutos En Ingls.md DELETED
@@ -1,67 +0,0 @@
1
-
2
- <h1>Cómo descargar podcasts en inglés de 6 minutos</h1>
3
- <p>Los podcasts son programas de audio que puedes escuchar online o offline. Abarcan una amplia gama de temas, desde noticias y entretenimiento hasta educación y cultura. Una de las series de podcast más populares para estudiantes de inglés es <strong>6 minute english</strong> de BBC Learning English. Cada episodio presenta una discusión tópica e introduce nuevo vocabulario de una manera clara y atractiva. Puedes escuchar podcasts en inglés de 6 minutos en el sitio web de la BBC, pero también puedes descargarlos en tu dispositivo y escucharlos en cualquier momento y en cualquier lugar. En este artículo, te mostraré cómo descargar podcasts en inglés de 6 minutos usando diferentes dispositivos y aplicaciones. También explicaré algunos de los beneficios de escuchar podcasts para tu cerebro y tu desarrollo personal. </p>
4
- <h2>Cómo descargar podcasts en iOS</h2>
5
- <p>Si tienes un iPhone o un iPad, puedes usar la aplicación Apple Podcasts </strong> integrada para descargar podcasts. Estos son los pasos:</p>
6
- <h2>descargar 6 minutos en inglés</h2><br /><p><b><b>DOWNLOAD</b> &#10027; <a href="https://bltlly.com/2v6MgO">https://bltlly.com/2v6MgO</a></b></p><br /><br />
7
- <ol>
8
- <li> Abra la aplicación Apple Podcasts y toque en el icono de búsqueda en la esquina inferior derecha. </li>
9
- <li>Escribe "6 minutos en inglés" en el cuadro de búsqueda y toca el nombre del podcast cuando aparezca. </li>
10
- <li>Toque en el botón Suscribirse en la esquina superior derecha. Esto agregará el podcast a su Biblioteca.</li>
11
- <li>Toque en la pestaña Episodios disponibles para ver todos los episodios que puede descargar. </li>
12
- <li>Toque en el icono de descarga junto a cada episodio que desea descargar. Parece una nube con una flecha hacia abajo. </li>
13
- <li>Espere a que termine la descarga. Puede ver el progreso pulsando en el icono Descargas en la esquina inferior derecha. </li>
14
- <li>Para escuchar los episodios descargados, vaya a su biblioteca y toque en Episodios descargados.</li>
15
- </ol>
16
-
17
- <h2>Cómo descargar podcasts en Android</h2>
18
- <p>Si tienes un teléfono o tableta Android, puedes usar la aplicación <strong>Google Podcasts</strong> para descargar podcasts. Estos son los pasos:</p>
19
- <ol>
20
- <li> Abra la aplicación Google Podcasts y toque en el icono de búsqueda en la esquina superior derecha. </li>
21
- <li>Escribe "6 minutos en inglés" en el cuadro de búsqueda y toca el nombre del podcast cuando aparezca. </li>
22
- <li>Toque en el botón Suscribirse en la esquina superior derecha. Esto agregará el podcast a su Biblioteca.</li>
23
- <li>Toque en la pestaña Episodios disponibles para ver todos los episodios que puede descargar. </li>
24
- <li>Toque en el icono de descarga junto a cada episodio que desea descargar. Parece un círculo con una flecha hacia abajo dentro. </li>
25
- <li>Espere a que termine la descarga. Puede ver el progreso pulsando en el icono Descargas en la esquina inferior derecha. </li>
26
- <li>Para escuchar los episodios descargados, vaya a su biblioteca y toque en Descargas.</li>
27
- </ol>
28
- <p>También puedes usar otras aplicaciones de podcast en Android, como <strong>Stitcher</strong>, <strong>DoggCatcher</strong>, o <strong>Castbox</strong>. Tienen características y funciones similares a los podcasts de Google, pero pueden tener diferentes interfaces y diseños. Puedes descargar estas aplicaciones desde Google Play Store y seguir sus instrucciones para buscar, suscribirte y descargar podcasts. </p>
29
- <h2>Cómo descargar podcasts en PC o Mac</h2>
30
- <p>Si tienes un ordenador, puedes usar tu navegador web para descargar podcasts. Estos son los pasos:</p>
31
- <ol>
32
- <li>Abra su navegador web y vaya al sitio web <strong>BBC Learning English</strong>. </li>
33
- <li>Haga clic en la pestaña <strong>Podcasts</strong> en la parte superior de la página. </li>
34
- <li>Desplácese hacia abajo y encuentre la sección <strong>6 minute english</strong>. </li>
35
- <li>Haga clic en el botón <strong>Descargar</strong> junto a cada episodio que desea descargar. Parece una flecha hacia abajo con una línea debajo. </li>
36
-
37
- <li>Para escuchar tus episodios descargados, ábrelos con tu reproductor multimedia preferido, como <strong>VLC</strong>, <strong>Windows Media Player</strong>, o <strong>iTunes</strong>. </li>
38
- </ol>
39
- <p>También puede usar software de podcast dedicado en su computadora, como <strong>Audacity</strong>, <strong>GPodder</strong>, o <strong>iTunes</strong>. Tienen características y funciones similares a las aplicaciones de podcast, pero pueden tener más opciones y configuraciones. Puede descargar este software desde sus sitios web oficiales y seguir sus instrucciones para buscar, suscribirse y descargar podcasts. </p>
40
- <h2>Beneficios de escuchar podcasts</h2>
41
- <p>Escuchar podcasts no solo es divertido y conveniente, sino también beneficioso para tu cerebro y tu desarrollo personal. Estos son algunos de los beneficios de escuchar podcasts:</p>
42
- <ul>
43
- <li><strong>Estimular diferentes partes del cerebro</strong>: Los podcasts son una forma de aprendizaje auditivo que activa diferentes regiones del cerebro que el aprendizaje visual. Según un estudio de UC Berkeley, escuchar podcasts puede mejorar tu memoria, atención y habilidades de comprensión. Los podcasts también pueden estimular tu imaginación y creatividad haciendo que visualices lo que escuchas. </li>
44
- <li><strong>Aprender cosas nuevas y expandir horizontes</strong>: Los podcasts son una gran manera de aprender cosas nuevas y descubrir nuevas perspectivas sobre varios temas. Puede elegir podcasts que coincidan con sus intereses y pasiones, o podcasts que desafían sus puntos de vista y opiniones. Los podcasts también pueden exponerte a diferentes culturas, idiomas y acentos que quizás no encuentres en tu vida diaria. </li>
45
-
46
- </ul>
47
- <h2>Conclusión</h2>
48
- <p>En conclusión, descargar podcasts en inglés de 6 minutos es una forma sencilla y conveniente de disfrutar de esta popular serie de podcast de BBC Learning English. Puedes descargar podcasts usando diferentes dispositivos y aplicaciones, dependiendo de tus preferencias y disponibilidad. También puedes beneficiarte de escuchar podcasts estimulando tu cerebro, aprendiendo cosas nuevas y mejorándote. Espero que este artículo te haya ayudado a entender cómo descargar podcasts en inglés de 6 minutos y por qué deberías escucharlos. Si quieres saber más sobre los podcasts y cómo pueden ayudarte a mejorar tus habilidades en inglés, te recomiendo que consultes estos recursos:</p>
49
- <ul>
50
- <li><a href="">Cómo los podcasts pueden ayudarte a aprender inglés</a></li>
51
- <li><a href="">La guía definitiva para aprender inglés con podcasts</a></li>
52
- <li><a href="">10 mejores podcasts para estudiantes de inglés en 2023</a></li>
53
- </ul>
54
- <h2>Preguntas frecuentes</h2>
55
- <h3>¿Qué es un podcast? </h3>
56
- <p>Un podcast es un programa de audio que puedes escuchar online o offline. Generalmente consiste en episodios que son lanzados regularmente por el mismo creador o anfitrión. Los podcasts cubren una amplia gama de temas, desde noticias y entretenimiento hasta educación y cultura. </p>
57
- <h3>¿Cómo encuentro los podcasts que me gustan? </h3>
58
- <p>Puedes encontrar podcasts que te gustan navegando por diferentes categorías, géneros o temas en aplicaciones de podcast o sitios web. También puede buscar palabras clave o temas que le interesen. También puede obtener recomendaciones de amigos, familiares o comunidades en línea. </p>
59
- <p></p>
60
- <h3>¿Cómo puedo escuchar podcasts offline? </h3>
61
- <p>Puedes escuchar podcasts sin conexión descargándolos en tu dispositivo y escuchándolos mediante una aplicación de podcast o un reproductor multimedia. Puedes descargar podcasts usando diferentes dispositivos y aplicaciones, como se explica en este artículo. También puede ajustar la configuración de su aplicación de podcast para descargar automáticamente nuevos episodios de sus podcasts suscritos. </p>
62
- <h3>¿Cómo puedo eliminar podcasts que no quiero conservar? </h3>
63
-
64
- <h3>¿Cómo puedo compartir podcasts que me gustan con otros? </h3>
65
- <p>Puedes compartir podcasts que te gusten con los demás tocando el icono Compartir junto a cada episodio que quieras compartir. Parece una caja con una flecha apuntando hacia arriba o un menú de tres puntos. A continuación, puede elegir cómo desea compartir el podcast, como por correo electrónico, texto, redes sociales u otras aplicaciones. También puedes copiar el enlace del podcast y pegarlo donde quieras. </p> 64aa2da5cf<br />
66
- <br />
67
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Descargar Doctrina.ai Apk.md DELETED
@@ -1,72 +0,0 @@
1
-
2
- <h1>Descargar Doctrina AI APK: Una manera inteligente de aprender en línea</h1>
3
- <p>¿Estás buscando una manera de mejorar tu rendimiento académico y hacer que el aprendizaje sea más divertido y fácil? Si es así, es posible que desee consultar Doctrina AI, una plataforma de aprendizaje en línea que utiliza la inteligencia artificial para ayudarle con sus estudios. Ya sea que necesite ayuda para escribir ensayos, tomar exámenes, tomar notas o discutir libros, Doctrina AI lo tiene cubierto. En este artículo, te diremos qué es Doctrina AI, qué características ofrece, cómo descargar e instalar la aplicación, qué dicen los usuarios al respecto y cómo se compara con otras aplicaciones similares. Al final de este artículo, tendrás una idea clara de si Doctrina AI es la aplicación adecuada para ti. </p>
4
- <h2>descargar doctrina.ai apk</h2><br /><p><b><b>Download File</b> &#10038; <a href="https://bltlly.com/2v6L1v">https://bltlly.com/2v6L1v</a></b></p><br /><br />
5
- <h2>Introducción</h2>
6
- <p>Doctrina AI es una plataforma de aprendizaje en línea que utiliza el modelo de lenguaje GPT-3 de OpenAI para ayudar a los estudiantes y estudiantes a estudiar mejor en línea. Actualmente ofrece tres características principales: un generador de ensayos, un generador de exámenes y una herramienta de notas de clase. Además, también tiene un generador de discusión de libros y una herramienta de corrección de gramática. Todas estas características están impulsadas por la tecnología avanzada de IA que se adapta a su estilo de aprendizaje y nivel de conocimiento. Doctrina AI es útil para estudiantes y estudiantes que quieren ahorrar tiempo y esfuerzo en sus tareas de escritura, prepararse para exámenes y exámenes, mejorar sus habilidades de toma de notas y participar en discusiones estimulantes de libros. También es útil para los profesores que quieren crear exámenes y ensayos para sus estudiantes. </p>
7
- <p>Para utilizar Doctrina AI, es necesario descargar e instalar la aplicación en su dispositivo Android. La aplicación es de uso gratuito y no requiere registro ni inicio de sesión. Puede acceder a todas sus funciones desde su interfaz fácil de usar. Para descargar la aplicación, puede visitar su sitio web oficial o buscar "Doctrina AI" en Google Play Store. Para instalar la aplicación, debe permitir fuentes desconocidas en la configuración del dispositivo y seguir las instrucciones en la pantalla. </p>
8
-
9
- <p>Doctrina AI tiene varias características que pueden ayudarle con sus tareas de aprendizaje. Aquí están algunas de ellas:</p>
10
- <h3>Generador de ensayos</h3>
11
- <p>El generador de ensayos es una herramienta que puede crear un ensayo de estudiante sobre cualquier tema en minutos. Solo necesitas introducir el tema o la pregunta sobre la que quieres escribir, elegir el tipo de ensayo (argumentativo, persuasivo, descriptivo, etc.), seleccionar el número de párrafos y hacer clic en "Generar". La herramienta luego producirá un ensayo con una introducción clara, cuerpo y conclusión. El ensayo será bien estructurado, coherente y adaptado a sus necesidades. También puede editar el ensayo como desee o generar otro si no está satisfecho. El generador de ensayos puede ayudarle a ahorrar tiempo y esfuerzo en sus tareas de escritura, así como mejorar sus habilidades de escritura. </p>
12
- <p></p>
13
- <h3>Generador de examen</h3>
14
- <p>El Generador de Exámenes es una herramienta que puede crear exámenes y cuestionarios personalizados para usted en función de sus preferencias. Puede elegir el tema, tema, nivel de dificultad, número de preguntas, tipo de preguntas (opción múltiple, verdadero/falso, respuesta corta, etc.) y límite de tiempo. La herramienta generará un examen o prueba con preguntas y respuestas que coincidan con sus criterios. Puede tomar el examen o el examen en línea o descargarlo como un archivo PDF. La herramienta también calificará sus respuestas y proporcionará comentarios sobre su desempeño. El Generador de Exámenes puede ayudarle a prepararse para las pruebas y exámenes, así como evaluar su conocimiento y comprensión de varios temas. </p>
15
- <h3>Notas de clase</h3>
16
-
17
- <h3>Generador de discusión de libros</h3>
18
- <p>El generador de discusión del libro es una herramienta que puede ayudarle con el análisis del libro y la discusión. Puede introducir el título y el autor del libro que desea discutir, y la herramienta generará una lista de preguntas y temas que puede utilizar para iniciar una conversación. Las preguntas y temas abarcarán diversos aspectos del libro, como la trama, los personajes, los temas, los símbolos, el estilo, etc. También puede pedir a la herramienta que genere un resumen o una reseña del libro, o que lo compare con otros libros del mismo género o del mismo autor. El Generador de Discusión de Libros puede ayudarlo a profundizar su comprensión y apreciación del libro, así como a iniciar discusiones interesantes con otros lectores. </p>
19
- <h3>Fijador de gramática</h3>
20
- <p>El Grammar Fixer es una herramienta que puede detectar y corregir errores de lenguaje en su escritura. Puede pegar su texto en la herramienta, y lo escaneará en busca de errores de ortografía, gramática, puntuación, elección de palabras, etc. Luego sugerirá correcciones y explicaciones para cada error, y puede elegir si aceptarlos o rechazarlos. La herramienta también le proporcionará una puntuación y un informe sobre su calidad de escritura y legibilidad. El Grammar Fixer puede ayudarte a pulir tu escritura y evitar errores de lenguaje comunes. </p>
21
- <h2>Opiniones de Doctrina AI</h2>
22
- <p>Doctrina AI ha recibido comentarios positivos de sus usuarios, que han elogiado sus características y funcionalidad. Estos son algunos de los comentarios que los usuarios han dejado en Google Play Store:</p>
23
- <tabla>
24
- <tr>
25
- <th>Usuario</th>
26
- <th>Valoración</th>
27
- <th>Revisión</th>
28
- </tr>
29
- <tr>
30
- <td>Alexandra Smith</td>
31
- <td>5 estrellas</td>
32
- <td>Esta aplicación es increíble! Me ayudó a escribir un ensayo sobre un tema que no tenía ni idea. Fue muy fácil de usar y el ensayo estaba bien escrito y original. ¡Obtuve una A+ en mi tarea gracias a esta aplicación! </td>
33
- </tr>
34
- <tr>
35
- <td>Kevin Jones</td>
36
- <td>4 estrellas</td>
37
-
38
- </tr>
39
- <tr>
40
- <td>Lisa Brown</td>
41
- <td>5 estrellas</td>
42
- <td>Esta aplicación es un salvavidas para mí. Tengo problemas para tomar notas en clase porque me distraigo fácilmente. Esta aplicación me ayuda a mejorar mis notas al resumirlas y destacar los puntos importantes. También explica cualquier concepto que no entiendo. Hace que estudiar sea mucho más fácil. </td>
43
- </tr>
44
- <tr>
45
- <td>David Lee</td>
46
- <td>4 estrellas</td>
47
- <td>Me gusta usar esta aplicación para discutir libros con mis amigos. Genera preguntas y temas interesantes de los que podemos hablar. También nos da un resumen y una reseña del libro, que es útil si aún no lo hemos leído o necesitamos un repaso. Lo único que no me gusta es que a veces las preguntas son demasiado vagas o demasiado específicas. </td>
48
- </tr>
49
- <tr>
50
- <td>María García</td>
51
- <td>5 estrellas</td>
52
- <td>Esta aplicación es ideal para mejorar mis habilidades de escritura. Corrige todos mis errores gramaticales y de ortografía, y me da sugerencias sobre cómo mejorar mis oraciones. También me dice lo buena que es mi escritura y en qué necesito trabajar. Ahora me siento más seguro escribiendo. </td>
53
- </tr>
54
- </tabla>
55
- <p>Como puedes ver, la mayoría de los usuarios están satisfechos con Doctrina AI y sus características. Sin embargo, algunos usuarios también señalan algunos inconvenientes de la aplicación, como:</p>
56
- - Número limitado de temas y temas disponibles - Preguntas vagas o demasiado específicas generadas - Errores ocasionales o inexactitudes en el contenido generado - Carga lenta o rotura de la aplicación <p>Estas son algunas de las áreas que Doctrina AI podría mejorar en el futuro. </p>
57
- <h2>Conclusión</h2>
58
-
59
- <h2>Preguntas frecuentes</h2>
60
- <p>Aquí están algunas de las preguntas y respuestas más frecuentes sobre Doctrina AI:</p>
61
- <h4>Q: ¿Es seguro usar Doctrina AI? </h4>
62
- <p>A: Sí, Doctrina AI es seguro de usar. No recopila ni almacena ninguna información personal de sus usuarios. Tampoco comparte ni vende ninguno de los contenidos que genera a terceros. Puede utilizar la aplicación con confianza y privacidad. </p>
63
- <h4>Q: ¿Es Doctrina libre de plagio IA? </h4>
64
- <p>A: Sí, Doctrina AI es libre de plagio. Genera contenido original que no se copia de ninguna otra fuente. Sin embargo, siempre debes comprobar la exactitud y calidad del contenido antes de enviarlo a tus profesores. También debe citar cualquier fuente que utilice en su investigación. </p>
65
- <h4>Q: ¿Está Doctrina AI disponible para dispositivos iOS? </h4>
66
- <p>A: No, Doctrina AI no está disponible para dispositivos iOS en este momento. Solo es compatible con dispositivos Android. Sin embargo, los desarrolladores están trabajando en la creación de una versión iOS de la aplicación en el futuro. </p>
67
- <h4>Q: ¿Cómo puedo contactar a Doctrina AI para apoyo o retroalimentación? </h4>
68
- <p>A: Puede ponerse en contacto con Doctrina AI para obtener apoyo o comentarios enviando un correo electrónico a [email protected]. También puede visitar su sitio web o seguirlos en Twitter o Facebook para actualizaciones y noticias. </p>
69
- <h4>Q: ¿Cómo puedo apoyar Doctrina AI? </h4>
70
- <p>A: Puedes apoyar a Doctrina AI clasificando y revisando la aplicación en Google Play Store, compartiéndola con tus amigos y familiares, y proporcionando comentarios y sugerencias a los desarrolladores. También puedes donar a través de PayPal o Patreon si quieres ayudarles a mejorar la aplicación y crear más funciones. </p> 64aa2da5cf<br />
71
- <br />
72
- <br />