parquet-converter commited on
Commit
c2d28a8
·
1 Parent(s): a9b4011

Update parquet files (step 128 of 249)

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/109peko/anime-remove-background/app.py +0 -52
  2. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Astute Graphics Plugins Keygen Torrent Create Stunning Artwork in Illustrator with These Plug-ins.md +0 -165
  3. spaces/1gistliPinn/ChatGPT4/Examples/Business Management Book By Cb Gupta Pdf [Extra Quality] Download.md +0 -9
  4. spaces/1gistliPinn/ChatGPT4/Examples/Csifatalconspiracyserialnumber.md +0 -6
  5. spaces/1gistliPinn/ChatGPT4/Examples/Delphids150eusbdriverdownload.md +0 -6
  6. spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/AI Home Camera APK A Review of the Top Features and Functions.md +0 -145
  7. spaces/1phancelerku/anime-remove-background/Android Oyun Clubta Durak Online 3D Para Hilesi Nasl Yaplr? te Admlar.md +0 -98
  8. spaces/1phancelerku/anime-remove-background/Como baixar e instalar bhop pro no seu computador com BlueStacks.md +0 -121
  9. spaces/1phancelerku/anime-remove-background/Conflict of Nations WW3 Mod APK Lead Your Country to Victory.md +0 -96
  10. spaces/1phancelerku/anime-remove-background/Download Lagu Give Me Your Forever by Zack Tabudlo - I want you to know I love you the most.md +0 -104
  11. spaces/1phancelerku/anime-remove-background/Download Tank Hero The Ultimate Arcade Shooter Game MOD APK.md +0 -91
  12. spaces/AHzizi/WaifuVoiceGen/app.py +0 -264
  13. spaces/AIConsultant/MusicGen/audiocraft/modules/conv.py +0 -243
  14. spaces/AIConsultant/MusicGen/audiocraft/utils/best_state.py +0 -81
  15. spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/nn/schedulers.py +0 -105
  16. spaces/AbelKidane/headdetector/README.md +0 -13
  17. spaces/Adapter/T2I-Adapter/ldm/modules/extra_condition/midas/api.py +0 -175
  18. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/basesizer/PushIntoBounds.js +0 -15
  19. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/overlapsizer/GetChildrenWidth.js +0 -19
  20. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/sizer/ExpandMethods.js +0 -11
  21. spaces/Al-Chan/Vits_League_of_Legends_Yuumi_TTS/text/symbols.py +0 -76
  22. spaces/AlbertoFH98/CastenaApp/utils.py +0 -291
  23. spaces/AlexWang/lama/fetch_data/places_challenge_train_download.sh +0 -14
  24. spaces/Amon1/ChatGPTForAcadamic/crazy_functions/代码重写为全英文_多线程.py +0 -75
  25. spaces/Andy1621/uniformer_image_detection/mmdet/models/backbones/__init__.py +0 -20
  26. spaces/Andy1621/uniformer_image_detection/mmdet/models/roi_heads/trident_roi_head.py +0 -119
  27. spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r101-d8_512x512_40k_voc12aug.py +0 -2
  28. spaces/AnishKumbhar/ChatBot/text-generation-webui-main/cmd_windows.bat +0 -34
  29. spaces/Anustup/NS_AI_LABS/cli.py +0 -109
  30. spaces/Apex-X/ROOPOK/roop/processors/__init__.py +0 -0
  31. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/commands/index.py +0 -139
  32. spaces/Atualli/yoloxTeste/configs/yolox_tiny.py +0 -20
  33. spaces/Axolotlily/SketchThing/README.md +0 -13
  34. spaces/BasalGanglia/stabilityai-stable-diffusion-2/README.md +0 -12
  35. spaces/Benson/text-generation/Examples/Audio Download Messenger.md +0 -50
  36. spaces/Benson/text-generation/Examples/Dead By Daylight Mvil Descargar Mediafre.md +0 -152
  37. spaces/Big-Web/MMSD/env/Lib/site-packages/dateutil/relativedelta.py +0 -599
  38. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/vcs/__init__.py +0 -15
  39. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/platformdirs/__main__.py +0 -47
  40. spaces/BilalSardar/Text-To-image-AllModels/README.md +0 -13
  41. spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/grid-feats-vqa/grid_feats/dataset_mapper.py +0 -164
  42. spaces/CVPR/Dual-Key_Backdoor_Attacks/openvqa/openvqa/datasets/dataset_loader.py +0 -29
  43. spaces/CVPR/LIVE/pybind11/tests/test_stl.cpp +0 -324
  44. spaces/CVPR/LIVE/pydiffvg_tensorflow/image.py +0 -22
  45. spaces/CVPR/regionclip-demo/detectron2/modeling/backbone/build.py +0 -48
  46. spaces/ChallengeHub/Chinese-LangChain/corpus/zh_wikipedia/README.md +0 -114
  47. spaces/ChengZ/DeepDanbooru_string0/app.py +0 -185
  48. spaces/Clebersla/RVC_V2_Huggingface_Version/i18n/locale_diff.py +0 -45
  49. spaces/Cong723/gpt-academic-public/crazy_functions/理解PDF文档内容.py +0 -112
  50. spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/fontTools/misc/cliTools.py +0 -52
spaces/109peko/anime-remove-background/app.py DELETED
@@ -1,52 +0,0 @@
1
- import gradio as gr
2
- import huggingface_hub
3
- import onnxruntime as rt
4
- import numpy as np
5
- import cv2
6
-
7
-
8
- def get_mask(img, s=1024):
9
- img = (img / 255).astype(np.float32)
10
- h, w = h0, w0 = img.shape[:-1]
11
- h, w = (s, int(s * w / h)) if h > w else (int(s * h / w), s)
12
- ph, pw = s - h, s - w
13
- img_input = np.zeros([s, s, 3], dtype=np.float32)
14
- img_input[ph // 2:ph // 2 + h, pw // 2:pw // 2 + w] = cv2.resize(img, (w, h))
15
- img_input = np.transpose(img_input, (2, 0, 1))
16
- img_input = img_input[np.newaxis, :]
17
- mask = rmbg_model.run(None, {'img': img_input})[0][0]
18
- mask = np.transpose(mask, (1, 2, 0))
19
- mask = mask[ph // 2:ph // 2 + h, pw // 2:pw // 2 + w]
20
- mask = cv2.resize(mask, (w0, h0))[:, :, np.newaxis]
21
- return mask
22
-
23
-
24
- def rmbg_fn(img):
25
- mask = get_mask(img)
26
- img = (mask * img + 255 * (1 - mask)).astype(np.uint8)
27
- mask = (mask * 255).astype(np.uint8)
28
- img = np.concatenate([img, mask], axis=2, dtype=np.uint8)
29
- mask = mask.repeat(3, axis=2)
30
- return mask, img
31
-
32
-
33
- if __name__ == "__main__":
34
- providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
35
- model_path = huggingface_hub.hf_hub_download("skytnt/anime-seg", "isnetis.onnx")
36
- rmbg_model = rt.InferenceSession(model_path, providers=providers)
37
- app = gr.Blocks()
38
- with app:
39
- gr.Markdown("# Anime Remove Background\n\n"
40
- "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=skytnt.animeseg)\n\n"
41
- "demo for [https://github.com/SkyTNT/anime-segmentation/](https://github.com/SkyTNT/anime-segmentation/)")
42
- with gr.Row():
43
- with gr.Column():
44
- input_img = gr.Image(label="input image")
45
- examples_data = [[f"examples/{x:02d}.jpg"] for x in range(1, 4)]
46
- examples = gr.Dataset(components=[input_img], samples=examples_data)
47
- run_btn = gr.Button(variant="primary")
48
- output_mask = gr.Image(label="mask")
49
- output_img = gr.Image(label="result", image_mode="RGBA")
50
- examples.click(lambda x: x[0], [examples], [input_img])
51
- run_btn.click(rmbg_fn, [input_img], [output_mask, output_img])
52
- app.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Astute Graphics Plugins Keygen Torrent Create Stunning Artwork in Illustrator with These Plug-ins.md DELETED
@@ -1,165 +0,0 @@
1
-
2
- <h1>Astute Graphics Plugins Keygen Torrent: How to Download and Install the Best Plugins for Adobe Illustrator</h1>
3
- <p>If you are a graphic designer, illustrator, or vector artist, you probably use Adobe Illustrator as your main tool for creating stunning artworks. But did you know that you can enhance your workflow and creativity with Astute Graphics Plugins? These are a set of plugins that add new features and functions to Adobe Illustrator, making it easier, faster, and more fun to work with vectors. In this article, we will show you what Astute Graphics Plugins are, what they can do for you, and how to download and install them using a keygen torrent.</p>
4
- <h2>Astute Graphics Plugins Keygen Torrent</h2><br /><p><b><b>DOWNLOAD</b> ->>> <a href="https://byltly.com/2uKwTb">https://byltly.com/2uKwTb</a></b></p><br /><br />
5
- <h2>What are Astute Graphics Plugins?</h2>
6
- <p>Astute Graphics Plugins are a collection of plugins that extend the capabilities of Adobe Illustrator. They are developed by Astute Graphics, a company that specializes in creating software solutions for vector design. Astute Graphics Plugins are designed to help you work smarter and faster with vectors, by adding new tools, effects, panels, and shortcuts to Adobe Illustrator. They also improve the performance and stability of Adobe Illustrator, by reducing memory usage and crashes.</p>
7
- <h3>The benefits of using Astute Graphics Plugins</h3>
8
- <p>By using Astute Graphics Plugins, you can enjoy many benefits such as:</p>
9
- <ul>
10
- <li>Save time and effort by automating tedious tasks and simplifying complex operations.</li>
11
- <li>Enhance your creativity by exploring new possibilities and styles with vectors.</li>
12
- <li>Increase your productivity by working more efficiently and accurately with vectors.</li>
13
- <li>Improve your quality by achieving more professional and consistent results with vectors.</li>
14
- </ul>
15
- <h3>The features of Astute Graphics Plugins</h3>
16
- <p>Astute Graphics Plugins offer a wide range of features that cover different aspects of vector design. Some of the most popular features include:</p>
17
- <ul>
18
- <li><b>VectorScribe</b>: This plugin allows you to edit and manipulate vectors with ease. You can use it to draw shapes, curves, paths, corners, points, segments, tangents, handles, measurements, guides, grids, alignment, snapping, symmetry, scaling, rotation, transformation, distortion, warping, blending, smoothing, simplifying, cleaning up, converting, expanding, joining, splitting, cutting, erasing, trimming, extending, offsetting, outlining, stroking, filling, coloring, shading, gradients, transparency...</li>
19
- <li><b>InkScribe</b>: This plugin allows you to draw vectors with precision and control. You can use it to create smooth curves, straight lines, perfect circles, ellipses, arcs, spirals, stars, polygons, and more. You can also adjust the width, pressure, profile, and variable width of your strokes.</li>
20
- <li><b>Phantasm</b>: This plugin allows you to apply color adjustments and effects to vectors. You can use it to change the hue, saturation, brightness, contrast, levels, curves, exposure, color balance, colorize, invert, grayscale, duotone, halftone, posterize, solarize, threshold, and more. You can also apply filters such as blur, sharpen, noise, glow, shadow, emboss, bevel...</li>
21
- <li><b>MirrorMe</b>: This plugin allows you to create symmetrical designs with vectors. You can use it to reflect rotate scale and copy your artwork along one or more axes. You can also create radial symmetry patterns with ease.</li>
22
- <li><b>Texturino</b>: This plugin allows you to add textures and opacity brushes to vectors. You can use it to create realistic effects such as wood grain metallic fabric paper leather watercolor and more. You can also customize your own textures and brushes from images or photos.</li>
23
- <li><b>ColliderScribe</b>: This plugin allows you to arrange and align objects with precision. You can use it to snap objects together distribute them evenly rotate them around a point place them along a path or create complex shapes from simple ones.</li>
24
- <li><b>Stylism</b>: This plugin allows you to apply and edit live effects on vectors. You can use it to add drop shadows inner glows outer glows feather gaussian blur offset path transform and more. You can also adjust the parameters of the effects directly on the artboard.</li>
25
- <li><b>DynamicSketch</b>: This plugin allows you to draw naturally with your mouse or tablet. You can use it to sketch freehand trace images or create smooth curves with variable width. You can also edit your sketches with smart gestures and intuitive tools.</li>
26
- <li><b>Autosaviour</b>: This plugin allows you to save your work automatically and securely. You can use it to backup your files create versions set reminders and recover lost data.</li>
27
- <li><b>Rasterino</b>: This plugin allows you to work with raster images in Adobe Illustrator. You can use it to crop trim resize rotate embed unembed and edit raster images without leaving Illustrator.</li>
28
- <li><b>DirectPrefs</b>: This plugin allows you to access and customize your Illustrator preferences easily. You can use it to change your keyboard shortcuts units guides grids snap options and more.</li>
29
- <li><b>InkQuest</b>: This plugin allows you to prepare your artwork for printing or exporting. You can use it to check your colors inks overprints traps bleeds marks and more.</li>
30
- <li><b>SubScribe</b>: This plugin allows you to draw geometric shapes and curves with accuracy. You can use it to create circles arcs lines tangents perpendiculars spirals and more.</li>
31
- <li><b>WidthScribe</b>: This plugin allows you to vary the width of your strokes along their length. You can use it to create tapered ends calligraphic effects or artistic variations.</li>
32
- </ul>
33
- <h2>What is a keygen torrent?</h2>
34
- <p>A keygen torrent is a type of file that contains a software program (keygen) that generates serial numbers or activation codes for another software program (in this case Astute Graphics Plugins). A keygen torrent also contains a torrent file that helps you download the keygen from other users who have already downloaded it.</p>
35
- <h3>The advantages and disadvantages of using a keygen torrent</h3>
36
- <p>Using a keygen torrent has some advantages and disadvantages that you should be aware of before downloading one:</p>
37
- <table>
38
- <tr>
39
- <th>Advantages</th>
40
- <th>Disadvantages</th>
41
- </tr>
42
- <tr>
43
- <td>You can get access to premium software for free or at a low cost.</td>
44
- <td>You may violate the intellectual property rights of the software developers or publishers.</td>
45
- </tr>
46
- <tr>
47
- <td>You can test the software before buying it or find an alternative if you cannot afford it.</td>
48
- <td>You may expose your computer or device to viruses malware spyware ransomware or other malicious programs that may harm your data or system.</td>
49
- </tr>
50
- <tr>
51
- <td>You can bypass the online activation or registration process that may require personal information or payment details.</td>
52
- <td>You may not receive updates bug fixes technical support or customer service from the software developers or publishers.</td>
53
- </tr>
54
- <tr>
55
- <td>You can share the software with other users who may benefit from it or appreciate it.</td>
56
- <td>You may face legal consequences such as fines lawsuits or criminal charges if you are caught using or distributing pirated software.</td>
57
- </tr>
58
- </table>
59
- <h3>The risks and precautions of using a keygen torrent</h3>
60
- <p>Using a keygen torrent involves some risks that you should be careful about when downloading one:</p>
61
- <p>Astute Graphics Plugins Crack Download<br />
62
- How to Install Astute Graphics Plugins for Free<br />
63
- Astute Graphics Plugins Serial Number Generator<br />
64
- Astute Graphics Plugins Full Version Torrent<br />
65
- Astute Graphics Plugins Activation Code Online<br />
66
- Astute Graphics Plugins License Key Free<br />
67
- Astute Graphics Plugins Patch File Download<br />
68
- Astute Graphics Plugins Registration Code Torrent<br />
69
- Astute Graphics Plugins Product Key Crack<br />
70
- Astute Graphics Plugins Keygen Mac Torrent<br />
71
- Astute Graphics Plugins Crack Windows Download<br />
72
- Astute Graphics Plugins Free Trial Torrent<br />
73
- Astute Graphics Plugins Premium Version Crack<br />
74
- Astute Graphics Plugins Discount Code Torrent<br />
75
- Astute Graphics Plugins Coupon Code Crack<br />
76
- Astute Graphics Plugins Review and Download<br />
77
- Astute Graphics Plugins Features and Benefits<br />
78
- Astute Graphics Plugins Tutorial and Tips<br />
79
- Astute Graphics Plugins Alternatives and Comparisons<br />
80
- Astute Graphics Plugins Support and Help<br />
81
- Astute Graphics Plugins Update and Upgrade<br />
82
- Astute Graphics Plugins Compatibility and Requirements<br />
83
- Astute Graphics Plugins System and Performance<br />
84
- Astute Graphics Plugins Security and Privacy<br />
85
- Astute Graphics Plugins Quality and Reliability<br />
86
- Astute Graphics Plugins Customer and User Feedback<br />
87
- Astute Graphics Plugins Testimonials and Ratings<br />
88
- Astute Graphics Plugins Awards and Recognition<br />
89
- Astute Graphics Plugins Pricing and Plans<br />
90
- Astute Graphics Plugins Refund and Guarantee<br />
91
- Astute Graphics Plugins Trial and Demo<br />
92
- Astute Graphics Plugins Download Link and Instructions<br />
93
- Astute Graphics Plugins Installation Guide and Troubleshooting<br />
94
- Astute Graphics Plugins Activation Process and Steps<br />
95
- Astute Graphics Plugins License Agreement and Terms of Service<br />
96
- Astute Graphics Plugins FAQ and Answers<br />
97
- Astute Graphics Plugins Blog and News<br />
98
- Astute Graphics Plugins Forum and Community<br />
99
- Astute Graphics Plugins Videos and Webinars<br />
100
- Astute Graphics Plugins eBooks and Guides<br />
101
- Astute Graphics Plugins Courses and Training<br />
102
- Astute Graphics Plugins Webinars and Events<br />
103
- Astute Graphics Plugins Podcasts and Interviews<br />
104
- Astute Graphics Plugins Case Studies and Success Stories<br />
105
- Astute Graphics Plugins Infographics and Statistics<br />
106
- Astute Graphics Plugins Templates and Resources<br />
107
- Astute Graphics Plugins Tools and Software<br />
108
- Astute Graphics Plugins Apps and Extensions<br />
109
- Astute Graphics Plugins Games and Fun</p>
110
- <ul>
111
- <li>The keygen may not work properly or at all for the software that you want to activate. It may generate invalid serial numbers or expired codes that may not activate the software. It may also generate codes that have been used by other users and may be blacklisted by the software developers or publishers.</li>
112
- <li>The keygen may contain malware that can infect your computer or device. Some keygens are disguised as malware or bundled with malware that can steal your personal information, damage your files, encrypt your data, display unwanted ads, or hijack your browser.</li>
113
- <li>The keygen may be detected by your antivirus or firewall software and blocked or deleted. Some antivirus or firewall software may flag keygens as potentially unwanted programs (PUPs) or malicious software (malware) and prevent them from running or accessing the internet.</li>
114
- <li>The keygen may be illegal to use or distribute in your country or region. Some countries or regions have strict laws and regulations that prohibit the use or distribution of pirated software or tools that enable piracy. You may face legal consequences if you are caught using or sharing keygens.</li>
115
- </ul>
116
- <p>To reduce the risks of using a keygen torrent, you should take some precautions such as:</p>
117
- <ul>
118
- <li>Download the keygen torrent from a reputable source that has positive feedback and comments from other users. Avoid sources that have negative feedback, comments, or warnings from other users.</li>
119
- <li>Scan the keygen torrent with a reliable antivirus or anti-malware software before opening it. Delete the keygen torrent if it contains any malware or suspicious files.</li>
120
- <li>Disable your antivirus or firewall software temporarily while using the keygen. This can prevent the keygen from being blocked or deleted by your antivirus or firewall software. Remember to enable your antivirus or firewall software after using the keygen.</li>
121
- <li>Use a virtual machine or a sandbox to run the keygen. This can isolate the keygen from your main system and prevent it from affecting your files or settings. You can also delete the virtual machine or the sandbox after using the keygen.</li>
122
- <li>Use a VPN or a proxy to hide your IP address and location while using the keygen. This can protect your privacy and anonymity and prevent you from being tracked or traced by your ISP, government, or software developers.</li>
123
- </ul>
124
- <h2>How to download and install Astute Graphics Plugins Keygen Torrent</h2>
125
- <p>Now that you know what Astute Graphics Plugins and keygen torrents are, you may wonder how to download and install them on your computer. Here are the steps to follow:</p>
126
- <h3>The steps to download and install Astute Graphics Plugins Keygen Torrent</h3>
127
- <ol>
128
- <li>Download a torrent client such as uTorrent, BitTorrent, qBittorrent, etc. Install and run the torrent client on your computer.</li>
129
- <li>Download the Astute Graphics Plugins Keygen Torrent file from a reputable source. You can use a search engine such as Google, Bing, Yahoo, etc. to find one. Make sure to check the feedback and comments of other users before downloading.</li>
130
- <li>Open the Astute Graphics Plugins Keygen Torrent file with your torrent client. Choose a location to save the downloaded files and start the download process.</li>
131
- <li>Wait for the download to finish. You should see a folder containing the Astute Graphics Plugins setup file and the keygen file.</li>
132
- <li>Run the Astute Graphics Plugins setup file and follow the instructions to install the plugins on your computer. Do not open the plugins yet.</li>
133
- <li>Run the keygen file and select the plugins that you want to activate from a drop-down menu. Click on \"Generate\" to create a serial number or an activation code for each plugin.</li>
134
- <li>Open Adobe Illustrator and go to \"Help\" > \"Astute Graphics\" > \"License Manager\". Enter the serial number or the activation code for each plugin that you generated with the keygen. Click on \"Activate\" to activate the plugins.</li>
135
- <li>Enjoy using Astute Graphics Plugins with Adobe Illustrator.</li>
136
- </ol>
137
- <h3>The tips and tricks to use Astute Graphics Plugins Keygen Torrent</h3>
138
- <p>To make the most out of Astute Graphics Plugins Keygen Torrent, you should also follow some tips and tricks such as:</p>
139
- <ul>
140
- <li>Update Adobe Illustrator to the latest version before installing Astute Graphics Plugins. This can ensure compatibility and stability between Adobe Illustrator and Astute Graphics Plugins.</li>
141
- <li>Check for updates for Astute Graphics Plugins regularly. This can help you get new features, bug fixes, and improvements for Astute Graphics Plugins.</li>
142
- <li>Learn how to use Astute Graphics Plugins effectively. You can watch tutorials, read manuals, join forums, or take courses on how to use Astute Graphics Plugins with Adobe Illustrator.</li>
143
- <li>Create backups of your files before using Astute Graphics Plugins. This can help you recover your files in case something goes wrong while using Astute Graphics Plugins.</li>
144
- </ul>
145
- <h2>Conclusion</h2>
146
- <p>Astute Graphics Plugins are amazing tools that can enhance your workflow and creativity with Adobe Illustrator. However, they are not free and require a license to use them fully. If you want to try them out without paying for them, you can use a keygen torrent to generate serial numbers or activation codes for them. However, you should be aware of the drawbacks and risks of using a keygen torrent. You should also take some precautions to protect yourself and your computer from malware, legal issues, or other problems. However, if you like Astute Graphics Plugins and want to support the developers, you should consider buying a license from their official website. This way, you can enjoy the full features and benefits of Astute Graphics Plugins without any worries.</p>
147
- <h2>Conclusion</h2>
148
- <p>In this article, we have shown you what Astute Graphics Plugins are, what they can do for you, and how to download and install them using a keygen torrent. We have also discussed the advantages and disadvantages of using a keygen torrent, as well as the risks and precautions of using one. We hope that this article has been helpful and informative for you. However, we do not encourage or endorse piracy or illegal use of software. If you want to use Astute Graphics Plugins legally and ethically, you should buy a license from their official website. This way, you can support the developers and enjoy the best plugins for Adobe Illustrator.</p>
149
- <h3>FAQs</h3>
150
- <p>Here are some frequently asked questions about Astute Graphics Plugins Keygen Torrent:</p>
151
- <ol>
152
- <li><b>What are the system requirements for Astute Graphics Plugins?</b></li>
153
- <p>Astute Graphics Plugins require Adobe Illustrator CS6 or higher (including CC versions) and Windows 7 or higher or Mac OS X 10.10 or higher.</p>
154
- <li><b>How much does Astute Graphics Plugins cost?</b></li>
155
- <p>Astute Graphics Plugins offer different pricing plans depending on your needs. You can buy individual plugins for $39-$119 each, or buy bundles of plugins for $119-$399 each. You can also subscribe to Astute Graphics Plugins Elite Bundle for $119 per year, which gives you access to all plugins and updates.</p>
156
- <li><b>How can I get support for Astute Graphics Plugins?</b></li>
157
- <p>Astute Graphics Plugins offer various support options for their customers. You can contact their support team via email, phone, chat, or social media. You can also visit their website for tutorials, manuals, videos, blogs, forums, webinars, and FAQs.</p>
158
- <li><b>Are Astute Graphics Plugins compatible with other plugins or software?</b></li>
159
- <p>Astute Graphics Plugins are generally compatible with other plugins or software that work with Adobe Illustrator. However, some plugins or software may cause conflicts or issues with Astute Graphics Plugins. If you encounter any problems, you should contact the support team of both parties for assistance.</p>
160
- <li><b>Can I use Astute Graphics Plugins on multiple computers?</b></li>
161
- <p>Astute Graphics Plugins allow you to activate your license on up to two computers at a time. However, you cannot use them simultaneously on both computers. If you want to use them on more than two computers, you need to buy more licenses or deactivate your license on one computer before activating it on another.</p>
162
- </ol>
163
- </p> 0a6ba089eb<br />
164
- <br />
165
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Business Management Book By Cb Gupta Pdf [Extra Quality] Download.md DELETED
@@ -1,9 +0,0 @@
1
-
2
- <p>The inclusion of the more complex topics such as multiculturalism, competencies, leadership, etc., should be an added feature. All in all, the content is solid, the principles are sound, and the use of the resources and case studies are very helpful. This book provides an excellent reference and learning tool for students and professionals in the HRM field, and is a must-have for any HRM course.</p>
3
- <h2>Business Management Book By Cb Gupta Pdf Download</h2><br /><p><b><b>Download File</b> &#10022; <a href="https://imgfil.com/2uxZTo">https://imgfil.com/2uxZTo</a></b></p><br /><br />
4
- <p><p>The book includes all of the major HR functional areas and topics included in most HRM textbooks. To their credit, the author choose to include several additional sections (such as communication, management & leadership styles, and multiculturalism) that are not found in traditional HRM texts. There have been several key legislative changes which have impacted the field of HRM since the text's last update. Discussions surrounding the Affordable Care Act and recent changes to the FLSA should be added to subsequent releases. I was not able to locate an index or glossary per se, however, a list of references is provided at the end of each major topic.</p>
5
- <p>Professor Khanka has written so far 06 reference and 10 text books and published over five dozen research papers. His areas of academic interest include Entrepreneurship, Organizational Behaviour, Human Resource Management, Ethics and Values. Professor Khanka has also served as Visiting Professor in the Bishkek International School of Management and Business, Bishkek, Kyrghyzstan and National University of Mangolia, Ulaanbataar, Mangolia.</p>
6
- <p> <p>This book is an important resource that serves as a benchmark for HRM. Its author has published a number of successful books and authored numerous articles in national and international journals, including "Human Resources Management", "Public Personnel Management", "International Journal of Human Resource Management" and "Journal of Human Resource Management". The book will be an excellent reference for those seeking to gain a grounding in HRM. The design, structure, materials and academic quality of this book make it a recommended one.</p>
7
- <p></p> 899543212b<br />
8
- <br />
9
- <br />
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Csifatalconspiracyserialnumber.md DELETED
@@ -1,6 +0,0 @@
1
- <h2>csifatalconspiracyserialnumber</h2><br /><p><b><b>DOWNLOAD</b> &#10004;&#10004;&#10004; <a href="https://imgfil.com/2uy0w3">https://imgfil.com/2uy0w3</a></b></p><br /><br />
2
-
3
- A unique story structure that unveils the truth piece by piece brings a new level of suspense and intrigue to the top-selling franchise. Download CSI: Crime ... 1fdad05405<br />
4
- <br />
5
- <br />
6
- <p></p>
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Delphids150eusbdriverdownload.md DELETED
@@ -1,6 +0,0 @@
1
- <h2>delphids150eusbdriverdownload</h2><br /><p><b><b>Download</b> &#10026;&#10026;&#10026; <a href="https://imgfil.com/2uxYFI">https://imgfil.com/2uxYFI</a></b></p><br /><br />
2
-
3
- Downloaded from dev2.lanoticia1.com on. November 26, 2020 by guest. - Yola Delphi Ds150e Usb Driver Download - Yola. Delphi Diagnostic ... 4d29de3e1b<br />
4
- <br />
5
- <br />
6
- <p></p>
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/AI Home Camera APK A Review of the Top Features and Functions.md DELETED
@@ -1,145 +0,0 @@
1
-
2
- <br>
3
- <br>
4
- <br>
5
- <br>
6
- <br>
7
- <br>
8
- <br>
9
- <br>
10
- <br>
11
- <br>
12
- <br>
13
- <br>
14
- <br>
15
- <br>
16
- <br>
17
- <br>
18
- <br>
19
- <br>
20
- <br>
21
- <code>
22
- <table>
23
- <tr>
24
- <td>
25
- <h1>AI Home Camera APK: What You Need to Know</h1>
26
- <h2>Introduction</h2>
27
- <p>If you are looking for a smart and easy way to monitor your home security, you might want to check out AI home camera apk. This is an app that turns your smartphone or tablet into a powerful and intelligent home CCTV system. With AI home camera apk, you can access your camera remotely, adjust the settings and features, view and manage your recordings, and enjoy many other benefits.</p>
28
- <h2>ai home camera apk</h2><br /><p><b><b>Download</b> &#9733;&#9733;&#9733;&#9733;&#9733; <a href="https://urlin.us/2uSWEp">https://urlin.us/2uSWEp</a></b></p><br /><br />
29
- <p>But what exactly is AI home camera apk? Why do you need it? And how can you download and install it on your device? In this article, we will answer these questions and more. We will also show you how to use AI home camera apk, what are its features and benefits, what are its pros and cons, and some frequently asked questions about it. So, let's get started!</p>
30
- <h2>How to Download and Install AI Home Camera APK</h2>
31
- <p>AI home camera apk is an app that is available for Android devices. You can find it on Google Play Store or other third-party sources. Here are the steps to download and install AI home camera apk on your device:</p>
32
- <ol>
33
- <li>Go to Google Play Store or any other trusted source that offers AI home camera apk.</li>
34
- <li>Tap on the download button and wait for the app to be downloaded on your device.</li>
35
- <li>Once the download is complete, tap on the install button and follow the instructions to install the app on your device.</li>
36
- <li>Grant the necessary permissions to the app, such as access to your camera, microphone, storage, location, etc.</li>
37
- <li>Launch the app and create an account or log in with your existing account.</li>
38
- </ol>
39
- <p>Congratulations! You have successfully downloaded and installed AI home camera apk on your device. Now, you can start using it to monitor your home security.</p>
40
- <h2>How to Use AI Home Camera APK</h2>
41
- <p>AI home camera apk is very easy to use. Here are the steps to use AI home camera apk:</p>
42
- <ol>
43
- <li>Connect your device to a power source and place it in a suitable location where you want to monitor your home. Make sure that the camera lens is not obstructed by anything and that it has a clear view of the area.</li>
44
- <li>Open the app and tap on the camera icon to access your camera remotely. You can also add multiple devices and switch between them easily.</li>
45
- <li>Tap on the settings icon to adjust the settings and features of your camera. You can change the resolution, quality, frame rate, motion detection, night vision, audio, etc. You can also enable or disable notifications, alerts, cloud storage, etc.</li>
46
- <li>Tap on the recordings icon to view and manage your recordings. You can play, pause, rewind, fast forward, delete, or share your recordings. You can also filter them by date, time, duration, or event.</li>
47
- </ol>
48
- <p>That's it! You have learned how to use AI home camera apk to monitor your home security. Now, let's see what are the features and benefits of AI home camera apk.</p>
49
- <h2>Features and Benefits of AI Home Camera APK</h2>
50
- <p>AI home camera apk is not just a simple home CCTV app. It is a smart and intelligent app that uses artificial intelligence to enhance your security. Here are some of the features and benefits of AI home camera apk:</p>
51
- <ul>
52
- <li><strong>AI Detection:</strong> AI home camera apk can detect human faces, motions, sounds, and events in real time. It can also recognize familiar and unfamiliar faces and alert you accordingly. It can also distinguish between pets, animals, vehicles, and other objects and ignore them if you want.</li>
53
- <li><strong>AI Recording:</strong> AI home camera apk can record only when something important happens. It can save your storage space and bandwidth by recording only when it detects an event or a motion. It can also record in high definition and low light conditions.</li>
54
- <li><strong>AI Storage:</strong> AI home camera apk can store your recordings securely in the cloud or locally on your device. You can choose how long you want to keep your recordings and how much space you want to allocate for them. You can also access your recordings anytime and anywhere from any device.</li>
55
- <li><strong>AI Sharing:</strong> AI home camera apk can share your recordings with anyone you want. You can invite your family members, friends, or neighbors to view your camera or recordings. You can also share your recordings on social media or other platforms with a simple tap.</li>
56
- </ul>
57
- <p>These are some of the features and benefits of AI home camera apk that make it stand out from other apps. But as with any app, there are also some pros and cons of AI home camera apk that you should know before using it.</p>
58
- <h2>Pros and Cons of AI Home Camera APK</h2>
59
- <p>AI home camera apk is a great app for home security, but it is not perfect. Here are some of the pros and cons of AI home camera apk that you should consider:</p>
60
- <table border="1">
61
- <tr><th>Pros</th><th>Cons</th></tr>
62
- <tr><td>- It is free and easy to use</td><td>- It requires a stable internet connection</td></tr>
63
- <tr><td>- It uses artificial intelligence to enhance security</td><td>- It may have some false alarms or miss some events</td></tr>
64
- <tr><td>- It offers multiple settings and features</td><td>- It may drain your battery or overheat your device</td></tr>
65
- <tr><td>- It supports cloud and local storage</td><td>- It may have some privacy or security issues</td></tr>
66
- <tr><td>- It allows sharing and collaboration</td><td>- It may have some compatibility or performance issues</td></tr>
67
- </table>
68
- <p>These are some of the pros and cons of AI home camera apk that you should weigh before using it. However, most of these cons can be overcome or avoided by following some tips and tricks, such as: - Use a reliable and fast internet connection to ensure smooth streaming and uploading of your camera and recordings. - Adjust the sensitivity and frequency of your motion detection and alerts to avoid false alarms or miss some events. - Plug your device to a power source or use a power bank to avoid battery drain or overheating of your device. - Enable encryption and password protection for your app and recordings to prevent unauthorized access or hacking of your data. - Update your app and device regularly to fix any bugs or glitches that may affect the compatibility or performance of your app. By following these tips and tricks, you can enjoy the best of AI home camera apk without worrying about the cons. <h2>Conclusion</h2>
69
- <p>AI home camera apk is an app that turns your smartphone or tablet into a smart and intelligent home CCTV system. It allows you to access your camera remotely, adjust the settings and features, view and manage your recordings, and share them with anyone you want. It also uses artificial intelligence to detect human faces, motions, sounds, and events in real time. It can also record only when something important happens, store your recordings securely in the cloud or locally on your device, and recognize familiar and unfamiliar faces.</p>
70
- <p>ai home camera app download for android<br />
71
- ai home camera apk mod free download<br />
72
- ai home camera apk latest version 2023<br />
73
- ai home camera app for pc windows 10<br />
74
- ai home camera apk pro unlocked<br />
75
- ai home camera app review and rating<br />
76
- ai home camera apk download for firestick<br />
77
- ai home camera app not working fix<br />
78
- ai home camera apk premium features<br />
79
- ai home camera app for ios iphone ipad<br />
80
- ai home camera apk cracked full version<br />
81
- ai home camera app setup and installation guide<br />
82
- ai home camera apk no ads no watermark<br />
83
- ai home camera app for mac os x<br />
84
- ai home camera apk hack cheat codes<br />
85
- ai home camera app best alternatives and competitors<br />
86
- ai home camera apk update and changelog<br />
87
- ai home camera app troubleshooting and support<br />
88
- ai home camera apk offline mode and cloud storage<br />
89
- ai home camera app for smart tv and roku<br />
90
- ai home camera apk unlimited access and subscription<br />
91
- ai home camera app features and benefits<br />
92
- ai home camera apk security and privacy policy<br />
93
- ai home camera app for linux and chrome os<br />
94
- ai home camera apk tips and tricks<br />
95
- ai home camera app comparison and contrast with other apps<br />
96
- ai home camera apk refund and cancellation policy<br />
97
- ai home camera app customer service and feedback<br />
98
- ai home camera apk requirements and compatibility<br />
99
- ai home camera app for amazon echo and google home<br />
100
- ai home camera apk discount and coupon codes<br />
101
- ai home camera app testimonials and success stories<br />
102
- ai home camera apk advantages and disadvantages<br />
103
- ai home camera app faq and help center<br />
104
- ai home camera apk how to use and tutorial videos<br />
105
- ai home camera app awards and recognition<br />
106
- ai home camera apk developer and contact information<br />
107
- ai home camera app license and terms of service<br />
108
- ai home camera app quality and performance<br />
109
- ai home camera app for samsung galaxy and huawei phones</p>
110
- <p>AI home camera apk is a great app for home security, but it also has some pros and cons that you should consider before using it. However, most of these cons can be overcome or avoided by following some tips and tricks that we have shared with you in this article.</p>
111
- <p>If you are looking for a smart and easy way to monitor your home security, you should definitely give AI home camera apk a try. You can download it from Google Play Store or other trusted sources and install it on your device in a few minutes. You can also find more information or reviews about AI home camera apk on the internet or contact the developer or support team if you have any questions or issues.</p>
112
- <p>Thank you for reading this article. We hope you found it helpful and informative. If you have any feedback or suggestions, please let us know in the comments section below. We would love to hear from you!</p>
113
- <h2>FAQs</h2>
114
- <p>Here are some frequently asked questions about AI home camera apk:</p>
115
- <h3>Q1: Is AI home camera apk free or paid?</h3>
116
- <p>A1: AI home camera apk is free to download and use. However, it may offer some in-app purchases or subscriptions for premium features or services, such as cloud storage, advanced settings, etc.</p>
117
- <h3>Q2: Is AI home camera apk compatible with all devices?</h3>
118
- <p>A2: AI home camera apk is compatible with most Android devices that have a camera and an internet connection. However, some devices may not support some features or functions of the app due to hardware or software limitations.</p>
119
- <h3>Q3: Is AI home camera apk safe and secure?</h3>
120
- <p>A3: AI home camera apk is safe and secure to use. It uses encryption and password protection to protect your data from unauthorized access or hacking. It also respects your privacy and does not collect or share any personal information without your consent.</p>
121
- <h3>Q4: How can I contact the developer or support team of AI home camera apk?</h3>
122
- <p>A4: You can contact the developer or support team of AI home camera apk by sending an email to [email protected] or by visiting their website at https://aihomecamera.com/.</p>
123
- <h3>Q5: Where can I find more information or reviews about AI home camera apk?</h3>
124
- <p>A5: You can find more information or reviews about AI home camera apk on Google Play Store, where you can also rate and review the app yourself. You can also search for AI home camera apk on the internet or social media platforms, where you can find articles, blogs, videos, forums, etc. that talk about the app.</p>
125
- <br>
126
- <br>
127
- <br>
128
- <br>
129
- <br>
130
- <br>
131
- <br>
132
- <br>
133
- <br>
134
- <br>
135
- <br>
136
- <br>
137
- <br>
138
- <br>
139
- <br>
140
- <br>
141
- <br>
142
- <br>
143
- </code></p> 197e85843d<br />
144
- <br />
145
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Android Oyun Clubta Durak Online 3D Para Hilesi Nasl Yaplr? te Admlar.md DELETED
@@ -1,98 +0,0 @@
1
-
2
- <h1>Durak Online Para Hilesi Android Oyun Club: How to Play Durak Online and Win Money</h1>
3
- <p>If you are looking for a card game that is fun, challenging, and rewarding, then you should try <strong>Durak Online</strong>. Durak Online is a modern version of the famous card game that originated in Russia and is also popular in Turkey. In this article, we will tell you everything you need to know about Durak Online, how to play it, how to win money in it, and how to use <strong>Durak Online para hilesi android oyun club</strong>, a cheat tool that can generate unlimited coins and items for you.</p>
4
- <h2>What is Durak Online?</h2>
5
- <h3>Durak Online is a popular card game in Russia and Turkey</h3>
6
- <p>Durak means "fool" in Russian, and the name of the game refers to the last player who is left with cards in their hand at the end of the game. Durak is a card game that involves skill, strategy, and luck. It can be played by 2 to 6 players, using a deck of 24, 36, or 52 cards. The game is also known as "Attack-Defence" or "Beat off" in English.</p>
7
- <h2>durak online para hilesi android oyun club</h2><br /><p><b><b>Download Zip</b> &#127775; <a href="https://jinyurl.com/2uNPbU">https://jinyurl.com/2uNPbU</a></b></p><br /><br />
8
- <h3>Durak Online has different modes and settings</h3>
9
- <p>Durak Online is a multiplayer game that allows you to play online with real people from all over the world. You can choose from different modes and settings of the game, such as flip-flop, transferable, or classic. You can also customize the deck size, the number of players, the time limit, and the difficulty level. You can play with friends or random opponents, chat with them, send them gifts, and compete in the ratings and leagues.</p>
10
- <h3>Durak Online is available on Google Play for Android devices</h3>
11
- <p>Durak Online is a free app that you can download from Google Play for your Android device. The app has great 3D graphics, realistic sounds, smooth animations, and no intrusive ads. The app also has a user-friendly interface with landscape mode. You can link your account to your Google account and sync your progress across devices. You can also play offline against bots if you don't have an internet connection.</p>
12
- <h2>How to play Durak Online?</h2>
13
- <h3>The objective of Durak Online is to get rid of all your cards</h3>
14
- <p>The objective of Durak Online is to get rid of all your cards before your opponents do. The game starts with one player being the dealer, who shuffles the deck and deals six cards to each player. The dealer then reveals the bottom card of the remaining deck, which determines the trump suit for the game. The trump suit is the strongest suit in the game, and can beat any other suit. The player to the left of the dealer is the first attacker, and the player to their left is the first defender.</p>
15
- <h3>The rules of Durak Online are simple and easy to learn</h3>
16
- <p>The rules of Durak Online are similar to the rules of the original card game. The game consists of a series of attacks and defences, where each player tries to get rid of their cards by playing them on the table. The attacker plays one or more cards of the same rank, and the defender has to beat them with higher cards of the same suit or with trumps. If the defender succeeds, they can pass the attack to the next player, who becomes the new defender. If the defender fails, they have to take all the cards on the table and add them to their hand. The game ends when one player has no cards left in their hand or in the deck.</p>
17
- <h3>The tips and tricks of Durak Online are to use your trumps wisely and to throw-in more cards</h3>
18
- <p>The tips and tricks of Durak Online are to use your trumps wisely and to throw-in more cards. Trumps are very valuable in Durak Online, as they can beat any other suit. You should save your trumps for when you really need them, and avoid wasting them on low cards. You should also try to get rid of your non-trump cards as soon as possible, as they can become useless later in the game. Another tip is to throw-in more cards when you are not the attacker or the defender. Throwing-in means playing a card of the same rank as any card on the table, which adds more pressure on the defender and helps you get rid of your cards faster. However, you should be careful not to throw-in too many cards, as you might run out of options later.</p>
19
- <h2>How to win money in Durak Online?</h2>
20
- <h3>Durak Online has a championship mode where you can compete with other players for prizes</h3>
21
- <p>Durak Online has a championship mode where you can compete with other players for prizes. The championship mode is a tournament where you have to play a series of games against different opponents and accumulate points based on your performance. The more games you win, the more points you get. The top players at the end of the tournament will receive prizes such as coins, items, or even real money. You can enter the championship mode by paying an entry fee with coins or watching an ad.</p>
22
- <h3>Durak Online has a gift system where you can send and receive coins and items</h3>
23
- <p>Durak Online has a gift system where you can send and receive coins and items. Coins are the currency of Durak Online, which you can use to enter games, buy items, or exchange for real money. Items are special cards that have different effects on the game, such as changing the trump suit, skipping a turn, or revealing an opponent's card. You can send and receive coins and items with your friends or random players in Durak Online, as a way of showing your appreciation or friendship. You can also earn coins and items by completing daily tasks, watching ads, or inviting friends.</p>
24
- <p>durak online 3d para hilesi android oyun club<br />
25
- durak online kart oyunu para hilesi android oyun club<br />
26
- durak online apk para hilesi android oyun club<br />
27
- durak online mod para hilesi android oyun club<br />
28
- durak online indir para hilesi android oyun club<br />
29
- durak online hileli apk android oyun club<br />
30
- durak online hileli mod android oyun club<br />
31
- durak online hileli indir android oyun club<br />
32
- durak online hileli kart oyunu android oyun club<br />
33
- durak online hileli 3d android oyun club<br />
34
- durak online 3d hileli apk android oyun club<br />
35
- durak online 3d hileli mod android oyun club<br />
36
- durak online 3d hileli indir android oyun club<br />
37
- durak online 3d hileli kart oyunu android oyun club<br />
38
- durak online kart oyunu hileli apk android oyun club<br />
39
- durak online kart oyunu hileli mod android oyun club<br />
40
- durak online kart oyunu hileli indir android oyun club<br />
41
- durak online kart oyunu hileli 3d android oyun club<br />
42
- durak online apk hileli indir android oyun club<br />
43
- durak online apk hileli mod android oyun club<br />
44
- durak online apk hileli kart oyunu android oyun club<br />
45
- durak online apk hileli 3d android oyun club<br />
46
- durak online mod hileli indir android oyun club<br />
47
- durak online mod hileli apk android oyun club<br />
48
- durak online mod hileli kart oyunu android oyun club<br />
49
- durak online mod hileli 3d android oyun club<br />
50
- durak online indir hileli apk android oyun club<br />
51
- durak online indir hileli mod android oyun club<br />
52
- durak online indir hileli kart oyunu android oyun club<br />
53
- durak online indir hileli 3d android oyun club<br />
54
- durak kart para kazanma hilesi android oyun club<br />
55
- durak kart para çekme hilesi android oyun club<br />
56
- durak kart para yatırma hilesi android oyun club<br />
57
- durak kart para veren siteler android oyun club<br />
58
- durak kart para veren uygulamalar android oyun club<br />
59
- durak kart para veren oyuncular android oyun club<br />
60
- durak kart para veren yorumlar android oyun club<br />
61
- durak kart para veren incelemeler android oyun club<br />
62
- durak kart para veren güvenilir mi android oyun club<br />
63
- durak kart para veren nasıl yapılır android oyun club<br />
64
- durak kart para kazanma yolları android oyun club<br />
65
- durak kart para kazanma taktikleri android oyun club<br />
66
- durak kart para kazanma ipuçları android oyun club<br />
67
- durak kart para kazanma yöntemleri android oyun club<br />
68
- durak kart para kazanma siteleri android oyun club<br />
69
- durak kart para kazanma uygulamaları android oyun club</p>
70
- <h3>Durak Online has a leaderboard where you can rank up and earn rewards</h3>
71
- <p>Durak Online has a leaderboard where you can rank up and earn rewards. The leaderboard is a list of players who have achieved the highest scores in Durak Online. You can see your own rank and score, as well as other players' ranks and scores. You can also see your statistics, such as your win rate, your average score, your best score, and your total games played. By playing more games and winning more points, you can improve your rank and score in Durak Online. You can also earn rewards such as coins, items, or badges based on your rank.</p>
72
- <h2>How to use Durak Online para hilesi android oyun club?</h2>
73
- <h3>Durak Online para hilesi android oyun club is a cheat tool that can generate unlimited coins and items for Durak Online</h3>
74
- <p>Durak Online para hilesi android oyun club is a cheat tool that can generate unlimited coins and items for Durak Online. Durak Online para hilesi android oyun club is a website that offers a hack for Durak Online that can give you access to unlimited resources in the game. By using this hack, you can get as many coins and items as you want without spending any real money. Durak Online para hilesi android oyun club is a great way to enhance your gaming experience and enjoy Durak Online more.</p>
75
- <h3>Durak Online para hilesi android oyun club is easy to use and does not require root or jailbreak</h3>
76
- <p>Durak Online para hilesi android oyun club is easy to use and does not require root or jailbreak. Durak Online para hilesi android oyun club is a web-based tool that works on any browser and device. You do not need to download or install anything on your device, or to modify your system settings. All you need to do is to visit the website, enter your username or email, select the amount of coins and items you want, and click on the generate button. The hack will then process your request and transfer the resources to your account in a few minutes.</p>
77
- <h3>Durak Online para hilesi android oyun club is safe and undetectable by the game developers</h3>
78
- <p>Durak Online para hilesi android oyun club is safe and undetectable by the game developers. Durak Online para hilesi android oyun club uses advanced encryption and proxy servers to protect your account and data from any harm or detection. Durak Online para hilesi android oyun club also has a built-in anti-ban system that prevents your account from being banned or suspended by the game developers. Durak Online para hilesi android oyun club is tested and updated regularly to ensure its functionality and compatibility with the latest version of Durak Online.</p>
79
- <h2>Conclusion</h2>
80
- <h3>Durak Online is a fun and addictive card game that you can play online with real people</h3>
81
- <p>Durak Online is a fun and addictive card game that you can play online with real people. Durak Online is a modern version of the famous card game that originated in Russia and is also popular in Turkey. Durak Online has different modes and settings that you can choose from, such as flip-flop, transferable, or classic. Durak Online has great 3D graphics, realistic sounds, smooth animations, and no intrusive ads. Durak Online is a free app that you can download from Google Play for your Android device.</p>
82
- <h3>Durak Online can help you improve your skills, strategy, and luck in card games</h3>
83
- <p>Durak Online can help you improve your skills, strategy, and luck in card games. Durak Online is a card game that involves skill, strategy, and luck. The objective of Durak Online is to get rid of all your cards before your opponents do. The rules of Durak Online are simple and easy to learn, but the game is challenging and exciting. The tips and tricks of Durak Online are to use your trumps wisely, to throw-in more cards, and to be aware of your opponents' cards. By playing more games and winning more points, you can improve your rank and score in Durak Online.</p>
84
- <h3>Durak Online para hilesi android oyun club can help you get more coins and items to enhance your gaming experience</h3>
85
- <p>Durak Online para hilesi android oyun club can help you get more coins and items to enhance your gaming experience. Durak Online para hilesi android oyun club is a cheat tool that can generate unlimited coins and items for Durak Online. By using this hack, you can get as many coins and items as you want without spending any real money. You can use these coins and items to enter games, buy items, or exchange for real money. You can also use these coins and items to send and receive gifts with other players, or to compete in the championship mode for prizes.</p>
86
- <h2>FAQs</h2>
87
- <h4>Q: What is the best way to learn how to play Durak Online?</h4>
88
- <p>A: The best way to learn how to play Durak Online is to watch the tutorial videos in the app, or to play against bots in the offline mode. You can also read the rules of the game in the app, or ask other players for advice in the chat.</p>
89
- <h4>Q: How can I get more coins and items in Durak Online without using Durak Online para hilesi android oyun club?</h4>
90
- <p>A: You can get more coins and items in Durak Online without using Durak Online para hilesi android oyun club by completing daily tasks, watching ads, inviting friends, or winning games.</p>
91
- <h4>Q: Is Durak Online para hilesi android oyun club legal?</h4>
92
- <p>A: Durak Online para hilesi android oyun club is not legal, as it violates the terms of service of Durak Online. Using this hack may result in your account being banned or suspended by the game developers. We do not recommend using this hack, as it may ruin the fun and fairness of the game.</p>
93
- <h4>Q: How can I contact the support team of Durak Online if I have any issues or questions?</h4>
94
- <p>A: You can contact the support team of Durak Online by sending an email to [email protected], or by filling out the feedback form in the app. You can also visit the official website of Durak Online at www.durakonline.com, or follow their social media accounts on Facebook, Twitter, and Instagram.</p>
95
- <h4>Q: Can I play Durak Online on other devices besides Android?</h4>
96
- <p>A: Yes, you can play Durak Online on other devices besides Android. Durak Online is also available on iOS, Windows, and Mac devices. You can download the app from the App Store, the Microsoft Store, or the official website of Durak Online. You can also play Durak Online on your browser by visiting www.durakonline.com.</p> 401be4b1e0<br />
97
- <br />
98
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Como baixar e instalar bhop pro no seu computador com BlueStacks.md DELETED
@@ -1,121 +0,0 @@
1
-
2
- <h1>How to Download and Play Bhop Pro on Your PC or Mobile Device</h1>
3
- <p>If you are a fan of Counter-Strike or other first-person shooter games, you might have heard of or tried the bunny hop technique. This is a skill that allows you to move faster and more unpredictably by jumping and strafing in the air. It can give you an edge over your opponents in competitive matches, or simply make you feel like a pro.</p>
4
- <h2>download do bhop pro</h2><br /><p><b><b>DOWNLOAD</b> &#10084;&#10084;&#10084; <a href="https://jinyurl.com/2uNMF0">https://jinyurl.com/2uNMF0</a></b></p><br /><br />
5
- <p>But what if you want to practice your bunny hop skills without having to join a server or play online? What if you want to enjoy a fun and challenging game mode that tests your reflexes and coordination? Well, you are in luck, because there is a game that lets you do just that. It is called Bhop Pro, and it is available for both PC and mobile devices.</p>
6
- <p>In this article, we will show you how to download and play Bhop Pro on your PC or mobile device. We will also give you some tips and tricks on how to improve your skills and have more fun in this game. Let's get started!</p>
7
- <h2>What is Bhop Pro?</h2>
8
- <h3>A brief introduction to the game and its features</h3>
9
- <p>Bhop Pro is a simulation game developed by begma, a Turkish indie game studio. It is based on the popular bhopping genre, which originated from Counter-Strike and other FPS games. In this game, you have to jump on blocks and platforms, while using air strafing to gain speed and momentum. You can also perform tricks like surfing, sliding, wall jumping, and more.</p>
10
- <p>Bhop Pro has many features that make it a realistic and enjoyable bunny hop game for Android devices. Some of these features are:</p>
11
- <p>download do bhop pro para pc<br />
12
- download do bhop pro apk<br />
13
- download do bhop pro mod<br />
14
- download do bhop pro android<br />
15
- download do bhop pro online<br />
16
- download do bhop pro gratis<br />
17
- download do bhop pro simulator<br />
18
- download do bhop pro windows 10<br />
19
- download do bhop pro bluestacks<br />
20
- download do bhop pro mac<br />
21
- download do bhop pro latest version<br />
22
- download do bhop pro nox<br />
23
- download do bhop pro app<br />
24
- download do bhop pro game<br />
25
- download do bhop pro hack<br />
26
- download do bhop pro ios<br />
27
- download do bhop pro play store<br />
28
- download do bhop pro baixar<br />
29
- download do bhop pro uptodown<br />
30
- download do bhop pro pc windows 7<br />
31
- download do bhop pro pc windows 8<br />
32
- download do bhop pro pc windows xp<br />
33
- download do bhop pro emulator<br />
34
- download do bhop pro for laptop<br />
35
- download do bhop pro for desktop<br />
36
- download do bhop pro free fire<br />
37
- download do bhop pro google play<br />
38
- download do bhop pro apk pure<br />
39
- download do bhop pro apk mod<br />
40
- download do bhop pro apk latest version<br />
41
- download do bhop pro apk mirror<br />
42
- download do bhop pro apk offline<br />
43
- download do bhop pro apk android 1<br />
44
- download do bhop pro apk android 2.3.6<br />
45
- download do bhop pro apk android 4.4.2<br />
46
- download do bhop pro mod menu<br />
47
- download do bhop pro mod apk unlimited money<br />
48
- download do bhop pro mod apk latest version<br />
49
- download do bhop pro mod apk revdl<br />
50
- download do bhop pro mod apk happymod<br />
51
- download do bhop pro android 1.com<br />
52
- download do bhop pro android oyun club<br />
53
- download do bhop pro online multiplayer<br />
54
- download do bhop pro online free no downloads <br />
55
- download do bhop pro online unblocked <br />
56
- download do bhapro gratis para pc <br />
57
- downloaddo bhapro gratis para android </p>
58
- <ul>
59
- <li>Multiple game modes, including parkour, surf, speedrun, deathrun, random, and infinite.</li>
60
- <li>Various maps with different themes, difficulties, layouts, and obstacles.</li>
61
- <li>Online multiplayer mode (alpha) where you can compete with other players around the world.</li>
62
- <li>Rank system where you can earn new titles and badges by completing quests and challenges.</li>
63
- <li>Case opener where you can get new skins and items for your character, knife, gloves, spinner, etc.</li>
64
- <li>Portal system where you can create your own custom maps and share them with other players.</li>
65
- <li>In-game online chat where you can communicate with other players.</li>
66
- <li>Screenshot sharing where you can capture your best moments and share them with your friends.</li>
67
- </ul>
68
- <h3>The benefits of playing Bhop Pro on PC or mobile device</h3>
69
- <p>Bhop Pro is a game that can be played on both PC and mobile devices. Depending on your preference and convenience, you can enjoy different benefits of playing Bhop Pro on each platform. Some of these benefits are:</p>
70
- <table>
71
- <tr>
72
- <th>Platform</th>
73
- <th>Benefits</th>
74
- </tr>
75
- <tr>
76
- <td>PC</td>
77
- <td>
78
- <ul>
79
- <li>Better graphics and performance.</li>
80
- <li>Larger screen and higher resolution.</li>
81
- <li>Easier and more precise controls with keyboard and mouse.</li>
82
- <li>Access to Steam community and features.</li>
83
- </ul>
84
- </td>
85
- </tr>
86
- <tr>
87
- <td>Mobile device</td>
88
- <td>
89
- <ul>
90
- <li>Portable and convenient.</li>
91
- <li>Touchscreen and gyro controls for more immersion.</li>
92
- <li>Compatible with most Android devices.</li>
93
- <li>Free to download and play.</li>
94
- </ul>
95
- </td>
96
- </tr>
97
- </table>
98
- <h2>How to Download and Install Bhop Pro on PC</h2>
99
- <h3>The steps to download and install BlueStacks emulator on PC</h3>
100
- <p>If you want to play Bhop Pro on your PC, you will need an Android emulator that can run the game smoothly and efficiently. One of the best emulators for this purpose is BlueStacks, which is a free and powerful software that allows you to play thousands of Android games and apps on your PC. Here are the steps to download and install BlueStacks on your PC:</p>
101
- <ol>
102
- <li>Go to the official website of BlueStacks at [bluestacks.com] and click on the "Download BlueStacks" button.</li>
103
- <li>Wait for the download to finish and then run the installer file.</li>
104
- <li>Follow the instructions on the screen to complete the installation process.</li>
105
- <li>Launch BlueStacks and sign in with your Google account or create a new one.</li>
106
- <li>You are now ready to use BlueStacks and download Bhop Pro from Google Play Store or Steam.</li>
107
- </ol>
108
- <h3>The steps to download and install Bhop Pro from Google Play Store or Steam on PC</h3>
109
- <p>Once you have BlueStacks installed on your PC, you can easily download and install Bhop Pro from Google Play Store or Steam. Here are the steps to do so:</p>
110
- <h4>From Google Play Store:</h4>
111
- <ol>
112
- <li>Open BlueStacks and click on the Google Play Store icon on the home screen.</li>
113
- <li>In the search bar, type "Bhop Pro" and hit enter.</li>
114
- <li>Select the game from the list of results and click on the "Install" button.</li>
115
- <li>Wait for the installation to finish and then click on the "Open" button.</li>
116
- <li>You can now play Bhop Pro on your PC using BlueStacks.</li>
117
- </ol>
118
- <h4>From Steam:</h4>
119
- <ol></p> 197e85843d<br />
120
- <br />
121
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Conflict of Nations WW3 Mod APK Lead Your Country to Victory.md DELETED
@@ -1,96 +0,0 @@
1
-
2
- <h1>Conflict of Nations World War 3 Mod Apk: What You Need to Know</h1>
3
- <p>If you are a fan of modern military-themed strategy games, you might have heard of Conflict of Nations World War 3, a real-time strategy game that lets you take control of the armed forces of your nation and compete with other players for global dominance. But did you know that there is a mod apk version of this game that can give you unlimited gold, resources, or other benefits? In this article, we will tell you what you need to know about Conflict of Nations World War 3 mod apk, how to download and install it, how to play it, and some tips and tricks to help you win the war.</p>
4
- <h2>conflict of nations world war 3 mod apk</h2><br /><p><b><b>DOWNLOAD</b> &#9734;&#9734;&#9734; <a href="https://jinyurl.com/2uNN4I">https://jinyurl.com/2uNN4I</a></b></p><br /><br />
5
- <h2>What is Conflict of Nations World War 3?</h2>
6
- <h3>A real-time strategy game set in modern global conflicts</h3>
7
- <p>Conflict of Nations World War 3 is a game developed by Dorado Games and Bytro Labs that simulates modern global conflicts in a realistic and immersive way. You can choose from almost every nation in the world and lead its military expansion, technological research, and economic development. You can also join or create coalitions with other players and wage total war on the battlefields of World War 3.</p>
8
- <h3>A game that requires strategic planning, diplomacy, and resource management</h3>
9
- <p>Conflict of Nations World War 3 is not a game for the faint-hearted. It requires strategic planning, diplomacy, and resource management to succeed. You have to balance your military power with your economic efficiency, your technological superiority with your moral stability, and your offensive capabilities with your defensive measures. You also have to deal with other players who may be your allies or enemies, depending on the situation. You have to communicate, negotiate, trade, spy, sabotage, or attack them as you see fit.</p>
10
- <h3>A game that offers different military doctrines, nations, and scenarios</h3>
11
- <p>Conflict of Nations World War 3 offers a variety of options for customization and replayability. You can choose from three different military doctrines: Western, Eastern, or European. Each doctrine has its own advantages and disadvantages, as well as its own technology tree and iconic units. You can also choose from different nations, each with its own unique traits, map location, and map size. You can also join different scenarios, ranging from the cold war to modern global conflicts to terrorist insurgencies.</p>
12
- <h2>What is a mod apk?</h2>
13
- <h3>A modified version of an Android application</h3>
14
- <p>A mod apk is a modified version of an Android application that has been altered by someone other than the original developer. A mod apk can offer features or functions that are not available in the official version of the application. For example, a mod apk for Conflict of Nations World War 3 can give you unlimited gold, resources, or other advantages that can help you dominate the game.</p>
15
- <h3>A mod apk that can offer unlimited gold, resources, or other advantages</h3>
16
- <p>One of the main reasons why some players look for a mod apk for Conflict of Nations World War 3 is to get unlimited gold, resources, or other advantages. Gold is the premium currency of the game that can be used to speed up research, construction, or recruitment. Resources are the basic materials that are needed to build and maintain your army and economy. Other advantages can include unlocking all units and technologies, increasing your morale and stability, or disabling ads and pop-ups.</p>
17
- <p>conflict of nations ww3 mod apk download<br />
18
- conflict of nations world war 3 hack apk<br />
19
- conflict of nations ww3 game mod apk unlimited gold<br />
20
- conflict of nations world war 3 android mod apk<br />
21
- conflict of nations ww3 mod apk latest version<br />
22
- conflict of nations world war 3 strategy game mod apk<br />
23
- conflict of nations ww3 mod apk free download<br />
24
- conflict of nations world war 3 cheats apk<br />
25
- conflict of nations ww3 mod apk offline<br />
26
- conflict of nations world war 3 modded apk<br />
27
- conflict of nations ww3 mod apk 2023<br />
28
- conflict of nations world war 3 apk mod menu<br />
29
- conflict of nations ww3 mod apk no root<br />
30
- conflict of nations world war 3 unlimited money apk<br />
31
- conflict of nations ww3 mod apk for pc<br />
32
- conflict of nations world war 3 premium mod apk<br />
33
- conflict of nations ww3 mod apk online<br />
34
- conflict of nations world war 3 full mod apk<br />
35
- conflict of nations ww3 mod apk revdl<br />
36
- conflict of nations world war 3 cracked apk<br />
37
- conflict of nations ww3 mod apk rexdl<br />
38
- conflict of nations world war 3 hack tool apk<br />
39
- conflict of nations ww3 mod apk obb<br />
40
- conflict of nations world war 3 generator apk<br />
41
- conflict of nations ww3 mod apk update<br />
42
- conflict of nations world war 3 pro mod apk<br />
43
- conflict of nations ww3 mod apk unlimited resources<br />
44
- conflict of nations world war 3 vip mod apk<br />
45
- conflict of nations ww3 mod apk android 1<br />
46
- conflict of nations world war 3 mega mod apk<br />
47
- conflict of nations ww3 mod apk android oyun club<br />
48
- conflict of nations world war 3 god mode apk<br />
49
- conflict of nations ww3 mod apk happymod<br />
50
- conflict of nations world war 3 unlocked apk<br />
51
- conflict of nations ww3 mod apk pure<br />
52
- conflict of nations world war 3 patcher apk<br />
53
- conflict of nations ww3 mod apk platinmods<br />
54
- conflict of nations world war 3 cheat engine apk<br />
55
- conflict of nations ww3 mod apk an1<br />
56
- conflict of nations world war 3 hack version apk</p>
57
- <h3>A mod apk that can also pose risks such as malware, bans, or legal issues</h3>
58
- <p>However, a mod apk for Conflict of Nations World War 3 can also pose risks such as malware, bans, or legal issues. Malware is a malicious software that can harm your device or steal your personal information. Bans are the penalties that the game developers or moderators can impose on players who violate the game rules or terms of service. Legal issues are the potential lawsuits or fines that the game developers or owners can file against players who infringe their intellectual property rights or damage their reputation.</p>
59
- <h2>How to download and install Conflict of Nations World War 3 mod apk?</h2>
60
- <h3>Find a reliable source for the mod apk file</h3>
61
- <p>The first step to download and install Conflict of Nations World War 3 mod apk is to find a reliable source for the mod apk file. You can search online for websites or forums that offer mod apk files for various games. However, you have to be careful and cautious when choosing a source, as some of them may contain viruses, malware, or fake files. You can check the reviews, ratings, comments, or feedback from other users to verify the credibility and safety of the source.</p>
62
- <h3>Enable unknown sources on your device settings</h3>
63
- <p>The second step to download and install Conflict of Nations World War 3 mod apk is to enable unknown sources on your device settings. This is because most Android devices do not allow the installation of applications from sources other than the official Google Play Store. To enable unknown sources, you have to go to your device settings, then security, then unknown sources, and then toggle it on. You may also have to grant some permissions or accept some warnings before proceeding.</p>
64
- <h3>Download and install the mod apk file</h3>
65
- <p>The third step to download and install Conflict of Nations World War 3 mod apk is to download and install the mod apk file. You can do this by clicking on the download link or button from the source website or forum. You may have to wait for a few seconds or minutes for the download to complete. After that, you can open the downloaded file and follow the instructions to install it on your device. You may have to overwrite or uninstall the original version of the game before installing the mod apk version.</p>
66
- <h2>How to play Conflict of Nations World War 3 mod apk?</h2>
67
- <h3>Choose your nation and doctrine</h3>
68
- <p>The first step to play Conflict of Nations World War 3 mod apk is to choose your nation and doctrine. You can select from almost every nation in the world and lead its military expansion, technological research, and economic development. You can also choose from three different military doctrines: Western, Eastern, or European. Each doctrine has its own advantages and disadvantages, as well as its own technology tree and iconic units.</p>
69
- <h3>Build your army and economy</h3>
70
- <p>The second step to play Conflict of Nations World War 3 mod apk is to build your army and economy. You have to balance your military power with your economic efficiency, your technological superiority with your moral stability, and your offensive capabilities with your defensive measures. You have to produce and manage resources such as oil, food, metal, rare earths, components, money, manpower, and electricity. You also have to research and upgrade your units and technologies such as infantry, tanks, aircraft, ships, submarines, missiles, drones, satellites, nuclear weapons, and more.</p>
71
- <h3>Form alliances and wage war</h3>
72
- <p>The third step to play Conflict of Nations World War 3 mod apk is to form alliances and wage war. You can join or create coalitions with other players and cooperate or compete with them for global dominance. You can also communicate, negotiate, trade, spy, sabotage, or attack other players as you see fit. You have to use diplomacy and communication wisely, as your actions and words can have consequences. You also have to be prepared for the challenges and threats that may arise from the dynamic and unpredictable world of World War 3.</p>
73
- <h2>Tips and tricks for Conflict of Nations World War 3 mod apk</h2>
74
- <h3>Know your nation's strengths and weaknesses</h3>
75
- <p>One of the tips and tricks for Conflict of Nations World War 3 mod apk is to know your nation's strengths and weaknesses. Each nation has its own unique traits, map location, and map size that can affect its performance and strategy. For example, some nations have access to more resources, some have better geographical advantages, some have stronger military units, and some have faster research speed. You have to use your nation's strengths to your advantage and compensate for its weaknesses.</p>
76
- <h3>Research and upgrade your units and technologies</h3>
77
- <p>Another tip and trick for Conflict of Nations World War 3 mod apk is to research and upgrade your units and technologies. You have to invest in your technological development to gain an edge over your enemies. You have to research new units and technologies that can improve your military capabilities, such as stealth, precision, mobility, range, firepower, defense, or intelligence. You also have to upgrade your existing units and technologies to enhance their performance and efficiency.</p>
78
- <h3>Use diplomacy and communication wisely</h3>
79
- <p>A final tip and trick for Conflict of Nations World War 3 mod apk is to use diplomacy and communication wisely. You have to interact with other players in a smart and respectful way. You have to communicate your intentions, needs, and expectations clearly and honestly. You have to negotiate fair and beneficial deals with your allies or enemies. You have to spy on your rivals or enemies to gather information or disrupt their plans. You also have to avoid unnecessary conflicts or provocations that can damage your reputation or relationships.</p>
80
- <h2>Conclusion</h2>
81
- <p>Conflict of Nations World War 3 mod apk is a modified version of an Android application that can offer unlimited gold, resources, or other advantages for the game Conflict of Nations World War 3, a real-time strategy game that simulates modern global conflicts in a realistic and immersive way. However, it can also pose risks such as malware, bans, or legal issues. To download and install it, you have to find a reliable source for the mod apk file, enable unknown sources on your device settings, and download and install the mod apk file. To play it, you have to choose your nation and doctrine, build your army and economy, and form alliances and wage war. To win the war, you have to know your nation's strengths and weaknesses, research and upgrade your units and technologies, and use diplomacy and communication wisely.</p>
82
- <h2>FAQs</h2>
83
- <ul>
84
- <li><b>What is the difference between Conflict of Nations World War 3 mod apk and the official version?</b></li>
85
- <p>The main difference between Conflict of Nations World War 3 mod apk and the official version is that the mod apk version can offer unlimited gold, resources, or other advantages that are not available in the official version.</p>
86
- <li><b>Is Conflict of Nations World War 3 mod apk safe to use?</b></li>
87
- <p>Conflict of Nations World War 3 mod apk is not completely safe to use. It can pose risks such as malware, bans, or legal issues. Therefore, you should use it at your own risk and discretion.</p>
88
- <li><b>How can I get more gold in Conflict of Nations World War 3 mod apk?</b></li>
89
- <p>You can get more gold in Conflict of Nations World War 3 mod apk by using the unlimited gold feature that the mod apk version offers. Alternatively, you can also get more gold by completing missions, achievements, or participating in events in the game.</p>
90
- <li><b>Can I play Conflict of Nations World War 3 mod apk offline?</b></li>
91
- <p>No, you cannot play Conflict of Nations World War 3 mod apk offline. The game requires an internet connection to run and sync with the servers and other players.</p>
92
- <li><b>Can I play Conflict of Nations World War 3 mod apk with my friends?</b></li>
93
- <p>Yes, you can play Conflict of Nations World War 3 mod apk with your friends. You can join or create coalitions with your friends and cooperate or compete with them for global dominance. You can also chat, trade, or fight with them in the game.</p>
94
- </ul></p> 401be4b1e0<br />
95
- <br />
96
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Lagu Give Me Your Forever by Zack Tabudlo - I want you to know I love you the most.md DELETED
@@ -1,104 +0,0 @@
1
- <br />
2
- <h1>How to Download Lagu Zack Tabudlo I Want You to Know</h1>
3
- <p>If you are a fan of Filipino pop music, you might have heard of the song <strong>I Want You to Know</strong> by Zack Tabudlo. This song, also known as <strong>Give Me Your Forever</strong>, is a romantic ballad that expresses the singer's love and devotion for his partner. The song has been streamed millions of times on various platforms and has received positive reviews from critics and fans alike.</p>
4
- <p>Zack Tabudlo is a young and talented singer-songwriter from Manila, Philippines. He started his music career at the age of 11, when he joined a reality TV show called <em>Star Circle Quest</em>. Since then, he has released several songs, such as <em>Binibini</em>, <em>Hindi Ko Kaya</em>, <em>Lost</em>, and <em>Heart Can't Lose</em>. He is also known for his covers of popular songs, such as <em>Driver's License</em> by Olivia Rodrigo, <em>Blinding Lights</em> by The Weeknd, and <em>Dynamite</em> by BTS.</p>
5
- <h2>download lagu zack tabudlo i want you to know</h2><br /><p><b><b>Download Zip</b> ===> <a href="https://jinyurl.com/2uNQgz">https://jinyurl.com/2uNQgz</a></b></p><br /><br />
6
- <p>If you want to download lagu Zack Tabudlo I Want You to Know, you might be wondering how to do it legally and safely. In this article, we will show you the steps to download the song from reliable online platforms that offer high-quality audio files. We will also tell you the benefits of downloading the song and answer some frequently asked questions.</p>
7
- <h2>Steps to Download Lagu Zack Tabudlo I Want You to Know</h2>
8
- <p>To download lagu Zack Tabudlo I Want You to Know, you need to follow these simple steps:</p>
9
- <h3>Step 1: Find a reliable online platform that offers the song</h3>
10
- <p>The first step is to find an online platform that has the song available for download. There are many platforms that offer this service, but not all of them are trustworthy or legal. Some platforms may contain viruses or malware that can harm your device or steal your personal information. Some platforms may also violate the copyright laws and infringe on the artist's rights.</p>
11
- <p>download lagu zack tabudlo i want you to know i love you the most<br />
12
- download lagu zack tabudlo i want you to know give me your forever<br />
13
- download lagu zack tabudlo i want you to know lyrics<br />
14
- download lagu zack tabudlo i want you to know mp3<br />
15
- download lagu zack tabudlo i want you to know video<br />
16
- download lagu zack tabudlo i want you to know acoustic<br />
17
- download lagu zack tabudlo i want you to know cover<br />
18
- download lagu zack tabudlo i want you to know karaoke<br />
19
- download lagu zack tabudlo i want you to know remix<br />
20
- download lagu zack tabudlo i want you to know piano<br />
21
- download lagu zack tabudlo i want you to know guitar<br />
22
- download lagu zack tabudlo i want you to know instrumental<br />
23
- download lagu zack tabudlo i want you to know live<br />
24
- download lagu zack tabudlo i want you to know free<br />
25
- download lagu zack tabudlo i want you to know 320kbps<br />
26
- download lagu zack tabudlo i want you to know stafaband<br />
27
- download lagu zack tabudlo i want you to know planetlagu<br />
28
- download lagu zack tabudlo i want you to know metrolagu<br />
29
- download lagu zack tabudlo i want you to know wapka<br />
30
- download lagu zack tabudlo i want you to know uyeshare<br />
31
- download lagu zack tabudlo i want you to know ilkpop<br />
32
- download lagu zack tabudlo i want you to know matikiri<br />
33
- download lagu zack tabudlo i want you to know lebahmusik<br />
34
- download lagu zack tabudlo i want you to know gudanglagu<br />
35
- download lagu zack tabudlo i want you to know langitmusik<br />
36
- download lagu zack tabudlo i want you to know mp3juice<br />
37
- download lagu zack tabudlo i want you to know mp3skull<br />
38
- download lagu zack tabudlo i want you to know mp3direct<br />
39
- download lagu zack tabudlo i want you to know mp3clan<br />
40
- download lagu zack tabudlo i want you to know mp3goo<br />
41
- download lagu zack tabudlo i want you to know mp3paw<br />
42
- download lagu zack tabudlo i want you to know mp3quack<br />
43
- download lagu zack tabudlo i want you to know tubidy<br />
44
- download lagu zack tabudlo i want you to know y2mate<br />
45
- download lagu zack tabudlo i want you to know youtube<br />
46
- download lagu zack tabudlo i want you to know spotify<br />
47
- download lagu zack tabudlo i want you to know apple music<br />
48
- download lagu zack tabudlo i want you to know soundcloud<br />
49
- download lagu zack tabudlo i want you to know deezer<br />
50
- download lagu zack tabudlo i want you to know amazon music<br />
51
- download lagu zack tabudlo i want you to know shazam<br />
52
- download lagu zack tabudlo i want you to know genius<br />
53
- download lagu zack tabudlo i want you to know azlyrics<br />
54
- download lagu zack tabudlo i want you to know musixmatch<br />
55
- download lagu zack tabudlo i want you to know liriklagu.id <br />
56
- download lagu zack tabudlo i want you to know chordtela <br />
57
- download lagu zack tabudlo i want you to know chordify <br />
58
- download lagu zack tabudlo i want you to know ultimate guitar <br />
59
- download lagu zack tabudlo i want you to know tabs</p>
60
- <p>To avoid these risks, you should look for platforms that are reputable and licensed. These platforms usually have a large collection of songs from different genres and artists. They also have clear terms and conditions, privacy policies, and customer support. Some examples of reliable platforms are:</p>
61
- <table>
62
- <tr><th>Platform</th><th>Features</th></tr>
63
- <tr><td>[Spotify](^8^)</td><td>- A popular streaming service that offers millions of songs, podcasts, playlists, and more<br>- - A free version with ads and limited features, or a premium version with no ads and more features<br>- - Allows offline listening for premium users<br>- - Compatible with various devices, such as smartphones, tablets, computers, smart TVs, and speakers</td></tr>
64
- <tr><td>[Apple Music]</td><td>- A streaming service that offers over 75 million songs, radio stations, playlists, and more<br>- - Requires a subscription fee after a free trial period<br>- - Allows offline listening for subscribers<br>- - Compatible with Apple devices, such as iPhones, iPads, Macs, Apple TVs, and HomePods</td></tr>
65
- <tr><td>[YouTube Music]</td><td>- A streaming service that offers songs, music videos, live performances, remixes, and more<br>- - A free version with ads and limited features, or a premium version with no ads and more features<br>- - Allows offline listening for premium users<br>- - Compatible with various devices, such as smartphones, tablets, computers, smart TVs, and speakers</td></tr>
66
- <tr><td>[Amazon Music]</td><td>- A streaming service that offers over 70 million songs, podcasts, playlists, and more<br>- - A free version with ads and limited features for Amazon Prime members, or a paid version with no ads and more features for non-members<br>- - Allows offline listening for paid users<br>- - Compatible with various devices, such as smartphones, tablets, computers, smart TVs, and speakers</td></tr>
67
- </table>
68
- <p>You can choose any platform that suits your preferences and budget. However, you should always check the availability of the song before downloading it. Some platforms may not have the song in their library or may have regional restrictions.</p>
69
- <h3>Step 2: Choose the format and quality of the song</h3>
70
- <p>The next step is to choose the format and quality of the song that you want to download. The format refers to the type of file that the song is stored in. The quality refers to the level of sound clarity and detail that the song has. Different formats and qualities have different pros and cons.</p>
71
- <p>The most common formats for music files are MP3, AAC, WAV, FLAC, and ALAC. MP3 and AAC are compressed formats that reduce the file size by removing some data from the original audio. This makes them easier to download and store, but also lowers the sound quality. WAV, FLAC, and ALAC are uncompressed or lossless formats that preserve the original audio data without any loss. This makes them have higher sound quality, but also larger file size.</p>
72
- <p>The most common qualities for music files are measured in bit rate or sample rate. Bit rate is the amount of data that is transferred per second in a compressed format. Sample rate is the number of times that the sound wave is measured per second in an uncompressed format. Higher bit rates or sample rates mean higher sound quality, but also larger file size.</p>
73
- <p>You can choose any format and quality that suits your preferences and device capacity. However, you should always check the compatibility of the format and quality with your device before downloading it. Some devices may not support certain formats or qualities.</p>
74
- <h3>Step 3: Click on the download button and wait for the process to finish</h3>
75
- <p>The final step is to click on the download button and wait for the process to finish. The download button may vary depending on the platform that you are using. It may be labeled as "Download", "Save", "Add", or something else. It may also have an icon of a downward arrow or a cloud.</p>
76
- <p>Once you click on the download button, you will see a progress bar or a notification that shows how much time is left until the download is complete. You should not close or exit the platform while the download is in progress. You should also make sure that you have a stable internet connection and enough battery power on your device.</p>
77
- <p>After the download is finished, you will find the song in your device's music library or folder. You can then play it offline and on any device that supports it. You can also transfer it to other devices using a USB cable or a wireless connection.</p>
78
- <h2>Benefits of Downloading Lagu Zack Tabudlo I Want You to Know</h2>
79
- <p>By downloading lagu Zack Tabudlo I Want You to Know, you can enjoy several benefits:</p>
80
- <h3>Enjoy the song offline and on any device</h3>
81
- <p>One of the main benefits of downloading lagu Zack Tabudlo I Want You to Know is that you can enjoy the song offline and on any device. This means that you don't need an internet connection or a subscription fee to listen to the song whenever and wherever you want. You can also play it on a free trial period or a discount for certain users. You should check the pricing and payment options of the platform that you choose before downloading the song.</p>
82
- <h3>How long does it take to download lagu Zack Tabudlo I Want You to Know?</h3>
83
- <p>The time that it takes to download lagu Zack Tabudlo I Want You to Know depends on the format and quality of the song, the speed of your internet connection, and the capacity of your device. Generally, the higher the format and quality of the song, the longer it takes to download. The faster your internet connection, the shorter it takes to download. The more space you have on your device, the easier it is to download. You can estimate the time that it takes to download the song by looking at the file size and the download speed of the platform that you use.</p>
84
- <h3>What are some other songs by Zack Tabudlo that I can download?</h3>
85
- <p>Some other songs by Zack Tabudlo that you can download are:</p>
86
- <ul>
87
- <li><em>Binibini</em>: A catchy and upbeat song that praises the beauty and charm of a woman</li>
88
- <li><em>Hindi Ko Kaya</em>: A heartfelt and emotional song that expresses the pain and regret of losing a loved one</li>
89
- <li><em>Lost</em>: A mellow and soothing song that reflects on the feeling of being lost and lonely</li>
90
- <li><em>Heart Can't Lose</em>: A powerful and inspiring song that encourages overcoming challenges and following your dreams</li>
91
- </ul>
92
- <p>You can find these songs and more on the platforms that we mentioned earlier or on Zack Tabudlo's official website, YouTube channel, or social media accounts.</p>
93
- <h3>Where can I find more information about Zack Tabudlo and his music?</h3>
94
- <p>You can find more information about Zack Tabudlo and his music on his official website, YouTube channel, or social media accounts. Here are some links that you can visit:</p>
95
- <ul>
96
- <li>[Zack Tabudlo's official website]</li>
97
- <li>[Zack Tabudlo's YouTube channel]</li>
98
- <li>[Zack Tabudlo's Facebook page]</li>
99
- <li>[Zack Tabudlo's Instagram account]</li>
100
- <li>[Zack Tabudlo's Twitter account]</li>
101
- </ul>
102
- <p>You can also search for articles, interviews, reviews, or fan pages about Zack Tabudlo and his music on the web.</p> 197e85843d<br />
103
- <br />
104
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/Download Tank Hero The Ultimate Arcade Shooter Game MOD APK.md DELETED
@@ -1,91 +0,0 @@
1
- <br />
2
- <h1>Download Game Tank Hero Mod Apk: A Guide for Tank Lovers</h1>
3
- <p>If you are a fan of tank games, you might have heard of Tank Hero, a popular arcade shooter game that lets you control a powerful tank and blast your enemies in various levels. But did you know that you can download the mod apk version of Tank Hero and enjoy unlimited money, god mode, one hit kill, and other features? In this article, we will show you how to download and install Tank Hero mod apk, as well as some tips and tricks to master the game.</p>
4
- <h2>What is Tank Hero and why you should play it</h2>
5
- <p>Tank Hero is a 2D side-scrolling tank game developed by UP STUDIO. The game has over 120 levels, 3 unique environments, 5 weapons, and 5 types of AI tanks to fight against. You can also play online with other players in multiplayer mode. The game is simple to control: just drag to move and release to fire. You can also choose from different firing options, such as single shot, double shot, triple shot, etc. The game is fun and addictive, as you have to use your strategy and skills to defeat the enemies and clear the levels.</p>
6
- <h2>download game tank hero mod apk</h2><br /><p><b><b>Download</b> &mdash;&mdash;&mdash; <a href="https://jinyurl.com/2uNSeV">https://jinyurl.com/2uNSeV</a></b></p><br /><br />
7
- <h2>Features of Tank Hero</h2>
8
- <p>Some of the features that make Tank Hero stand out are:</p>
9
- <ul>
10
- <li><b>Awesome graphics and sound effects:</b> The game has colorful and cartoonish graphics that suit the arcade style. The sound effects are also realistic and immersive, making you feel like you are in a real tank battle.</li>
11
- <li><b>Various tanks and weapons:</b> You can collect and upgrade different tanks and weapons in the game. Each tank has its own characteristics, such as speed, armor, fire rate, etc. Each weapon also has its own effects, such as fireball, laser, missile, etc. You can mix and match different tanks and weapons to suit your play style.</li>
12
- <li><b>Unique talents:</b> You can also unlock and use over 100 talents in the game. Talents are special abilities that can boost your firepower, defense, speed, or other aspects. You can choose from random talents or customize your own talent combination.</li>
13
- </ul>
14
- <h2>How to download and install Tank Hero mod apk</h2>
15
- <p>If you want to enjoy more features and benefits in Tank Hero, you can download the mod apk version of the game. The mod apk version will give you unlimited money, god mode, one hit kill, and other features that will make the game easier and more fun. Here are the steps to download and install Tank Hero mod apk:</p>
16
- <ol>
17
- <li>Go to [this link](^1^) or [this link](^2^) or [this link](^3^) to download the Tank Hero mod apk file.</li>
18
- <li>After downloading the file, go to your device settings and enable the installation of unknown sources.</li>
19
- <li>Locate the downloaded file in your file manager and tap on it to install it.</li>
20
- <li>Wait for the installation to finish and then launch the game.</li>
21
- <li>Enjoy playing Tank Hero with unlimited money, god mode, one hit kill, and other features.</li>
22
- </ol>
23
- <h2>Tips and tricks to master Tank Hero</h2>
24
- <p>If you want to become a tank hero yourself, here are some tips and tricks that will help you improve your skills and performance in the game:</p>
25
- <h3>Choose the right tank and weapon for each level</h3>
26
- <p>As mentioned earlier, each tank and weapon has its own advantages and disadvantages. You should choose the ones that suit the level's difficulty, terrain, enemies, and objectives. For example, if the level has many obstacles or narrow spaces, you might want to use a fast tank with a laser weapon that can penetrate through walls. If the level has many enemies or bosses, you might want to use a tank with a tank with high armor and a fireball weapon that can deal splash damage. You can also switch tanks and weapons during the level if you find a better option.</p>
27
- <h3>Upgrade your tank and skills regularly</h3>
28
- <p>As you progress in the game, you will earn money and experience that you can use to upgrade your tank and skills. Upgrading your tank will increase its stats, such as speed, armor, fire rate, etc. Upgrading your skills will unlock new talents or improve the existing ones. You should always upgrade your tank and skills whenever you can, as they will make a big difference in your performance and survival.</p>
29
- <h3>Use the terrain and obstacles to your advantage</h3>
30
- <p>The game has various terrains and obstacles that can affect the gameplay. For example, some terrains can slow you down or speed you up, some obstacles can block your shots or reflect them, some items can heal you or give you extra ammo, etc. You should always be aware of your surroundings and use them to your advantage. For example, you can hide behind walls or rocks to avoid enemy fire, you can bounce your shots off walls or mirrors to hit enemies from different angles, you can use speed boosts or ramps to escape or chase enemies, etc.</p>
31
- <h2>Conclusion</h2>
32
- <p>Tank Hero is a fun and addictive tank game that will keep you entertained for hours. You can download the mod apk version of Tank Hero and enjoy unlimited money, god mode, one hit kill, and other features that will make the game easier and more fun. You can also follow our tips and tricks to master the game and become a tank hero yourself. So what are you waiting for? Download Tank Hero mod apk now and start blasting your enemies!</p>
33
- <p>download tank heroes mod apk unlimited money<br />
34
- download game tank hero mod apk android 1<br />
35
- download game tank hero mod apk latest version<br />
36
- download game tank hero mod apk offline<br />
37
- download game tank hero mod apk revdl<br />
38
- download game tank hero mod apk rexdl<br />
39
- download game tank hero mod apk no ads<br />
40
- download game tank hero mod apk free shopping<br />
41
- download game tank hero mod apk happymod<br />
42
- download game tank hero mod apk for pc<br />
43
- download game tank hero mod apk 1.8.0<br />
44
- download game tank hero mod apk 1.7.9<br />
45
- download game tank hero mod apk 1.7.8<br />
46
- download game tank hero mod apk 1.7.7<br />
47
- download game tank hero mod apk 1.7.6<br />
48
- download game tank hero mod apk 1.7.5<br />
49
- download game tank hero mod apk 1.7.4<br />
50
- download game tank hero mod apk 1.7.3<br />
51
- download game tank hero mod apk 1.7.2<br />
52
- download game tank hero mod apk 1.7.1<br />
53
- download game tank hero mod apk 1.7.0<br />
54
- download game tank hero mod apk 1.6.9<br />
55
- download game tank hero mod apk 1.6.8<br />
56
- download game tank hero mod apk 1.6.7<br />
57
- download game tank hero mod apk 1.6.6<br />
58
- download game tank hero mod apk 1.6.5<br />
59
- download game tank hero mod apk 1.6.4<br />
60
- download game tank hero mod apk 1.6.3<br />
61
- download game tank hero mod apk 1.6.2<br />
62
- download game tank hero mod apk 1.6.1<br />
63
- download game tank hero mod apk 1.6.0<br />
64
- download game tank hero mod apk 1.5.9<br />
65
- download game tank hero mod apk 1.5.8<br />
66
- download game tank hero mod apk 1.5.7<br />
67
- download game tank hero mod apk 1.5.6<br />
68
- download game tank hero mod apk 1.5.5<br />
69
- download game tank hero mod apk 1.5.4<br />
70
- download game tank hero mod apk 1.5.3<br />
71
- download game tank hero mod apk 1.5.2<br />
72
- download game tank hero mod apk 1.5.1<br />
73
- download game tank hero mod apk 1.5.0<br />
74
- download game tank heroes arcade shooter mod apk <br />
75
- download game super tanks heroes - real-time battle arena shooter - pvp games - multiplayer online - action games - arcade games - io games - team games - war games - tanks games - shooting games - gun games - battle games - fun games - free games - offline games - no wifi games - casual games - easy games - simple games - addictive games - cool games - best games - top games - new games - hot games - popular games - trending games - amazing games - awesome games - fantastic games - incredible games - great games - wonderful games - beautiful games - cute games - lovely games - sweet games - nice games - good games - happy games - relaxing games</p>
76
- <h3>FAQs</h3>
77
- <p>Here are some frequently asked questions about Tank Hero mod apk:</p>
78
- <ul>
79
- <li><b>Q: Is Tank Hero mod apk safe to download and install?</b></li>
80
- <li>A: Yes, Tank Hero mod apk is safe to download and install. It does not contain any viruses or malware that can harm your device. However, you should always download it from a trusted source and enable the installation of unknown sources in your device settings.</li>
81
- <li><b>Q: Do I need to root my device to use Tank Hero mod apk?</b></li>
82
- <li>A: No, you do not need to root your device to use Tank Hero mod apk. It works on both rooted and non-rooted devices.</li>
83
- <li><b>Q: Will Tank Hero mod apk affect my progress in the original game?</b></li>
84
- <li>A: No, Tank Hero mod apk will not affect your progress in the original game. It will create a separate game data that is independent from the original game. You can play both versions of the game without any interference.</li>
85
- <li><b>Q: Can I play online with other players in Tank Hero mod apk?</b></li>
86
- <li>A: Yes, you can play online with other players in Tank Hero mod apk. However, you might encounter some issues or errors when playing online, as the mod apk version might not be compatible with the latest version of the original game. You can try to update the mod apk version or switch to the original game if you want to play online smoothly.</li>
87
- <li><b>Q: How can I contact the developer of Tank Hero mod apk?</b></li>
88
- <li>A: You can contact the developer of Tank Hero mod apk by visiting their website [here] or by sending them an email at [this address].</li>
89
- </ul></p> 401be4b1e0<br />
90
- <br />
91
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AHzizi/WaifuVoiceGen/app.py DELETED
@@ -1,264 +0,0 @@
1
- # coding=utf-8
2
- import os
3
- import re
4
- import argparse
5
- import utils
6
- import commons
7
- import json
8
- import torch
9
- import gradio as gr
10
- from models import SynthesizerTrn
11
- from text import text_to_sequence, _clean_text
12
- from torch import no_grad, LongTensor
13
- import gradio.processing_utils as gr_processing_utils
14
- import logging
15
- logging.getLogger('numba').setLevel(logging.WARNING)
16
- limitation = os.getenv("SYSTEM") == "spaces" # limit text and audio length in huggingface spaces
17
-
18
- hps_ms = utils.get_hparams_from_file(r'config/config.json')
19
-
20
- audio_postprocess_ori = gr.Audio.postprocess
21
-
22
- def audio_postprocess(self, y):
23
- data = audio_postprocess_ori(self, y)
24
- if data is None:
25
- return None
26
- return gr_processing_utils.encode_url_or_file_to_base64(data["name"])
27
-
28
-
29
- gr.Audio.postprocess = audio_postprocess
30
-
31
- def get_text(text, hps, is_symbol):
32
- text_norm, clean_text = text_to_sequence(text, hps.symbols, [] if is_symbol else hps.data.text_cleaners)
33
- if hps.data.add_blank:
34
- text_norm = commons.intersperse(text_norm, 0)
35
- text_norm = LongTensor(text_norm)
36
- return text_norm, clean_text
37
-
38
- def create_tts_fn(net_g_ms, speaker_id):
39
- def tts_fn(text, language, noise_scale, noise_scale_w, length_scale, is_symbol):
40
- text = text.replace('\n', ' ').replace('\r', '').replace(" ", "")
41
- if limitation:
42
- text_len = len(re.sub("\[([A-Z]{2})\]", "", text))
43
- max_len = 100
44
- if is_symbol:
45
- max_len *= 3
46
- if text_len > max_len:
47
- return "Error: Text is too long", None
48
- if not is_symbol:
49
- if language == 0:
50
- text = f"[ZH]{text}[ZH]"
51
- elif language == 1:
52
- text = f"[JA]{text}[JA]"
53
- else:
54
- text = f"{text}"
55
- stn_tst, clean_text = get_text(text, hps_ms, is_symbol)
56
- with no_grad():
57
- x_tst = stn_tst.unsqueeze(0).to(device)
58
- x_tst_lengths = LongTensor([stn_tst.size(0)]).to(device)
59
- sid = LongTensor([speaker_id]).to(device)
60
- audio = net_g_ms.infer(x_tst, x_tst_lengths, sid=sid, noise_scale=noise_scale, noise_scale_w=noise_scale_w,
61
- length_scale=length_scale)[0][0, 0].data.cpu().float().numpy()
62
-
63
- return "Success", (22050, audio)
64
- return tts_fn
65
-
66
- def create_to_symbol_fn(hps):
67
- def to_symbol_fn(is_symbol_input, input_text, temp_lang):
68
- if temp_lang == 0:
69
- clean_text = f'[ZH]{input_text}[ZH]'
70
- elif temp_lang == 1:
71
- clean_text = f'[JA]{input_text}[JA]'
72
- else:
73
- clean_text = input_text
74
- return _clean_text(clean_text, hps.data.text_cleaners) if is_symbol_input else ''
75
-
76
- return to_symbol_fn
77
- def change_lang(language):
78
- if language == 0:
79
- return 0.6, 0.668, 1.2
80
- elif language == 1:
81
- return 0.6, 0.668, 1
82
- else:
83
- return 0.6, 0.668, 1
84
-
85
- download_audio_js = """
86
- () =>{{
87
- let root = document.querySelector("body > gradio-app");
88
- if (root.shadowRoot != null)
89
- root = root.shadowRoot;
90
- let audio = root.querySelector("#tts-audio-{audio_id}").querySelector("audio");
91
- let text = root.querySelector("#input-text-{audio_id}").querySelector("textarea");
92
- if (audio == undefined)
93
- return;
94
- text = text.value;
95
- if (text == undefined)
96
- text = Math.floor(Math.random()*100000000);
97
- audio = audio.src;
98
- let oA = document.createElement("a");
99
- oA.download = text.substr(0, 20)+'.wav';
100
- oA.href = audio;
101
- document.body.appendChild(oA);
102
- oA.click();
103
- oA.remove();
104
- }}
105
- """
106
-
107
- if __name__ == '__main__':
108
- parser = argparse.ArgumentParser()
109
- parser.add_argument('--device', type=str, default='cpu')
110
- parser.add_argument('--api', action="store_true", default=False)
111
- parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
112
- args = parser.parse_args()
113
- device = torch.device(args.device)
114
-
115
- models = []
116
- with open("pretrained_models/info.json", "r", encoding="utf-8") as f:
117
- models_info = json.load(f)
118
- for i, info in models_info.items():
119
- if not info['enable']:
120
- continue
121
- sid = info['sid']
122
- name_en = info['name_en']
123
- name_zh = info['name_zh']
124
- title = info['title']
125
- cover = f"pretrained_models/{i}/{info['cover']}"
126
- example = info['example']
127
- language = info['language']
128
- net_g_ms = SynthesizerTrn(
129
- len(hps_ms.symbols),
130
- hps_ms.data.filter_length // 2 + 1,
131
- hps_ms.train.segment_size // hps_ms.data.hop_length,
132
- n_speakers=hps_ms.data.n_speakers if info['type'] == "multi" else 0,
133
- **hps_ms.model)
134
- utils.load_checkpoint(f'pretrained_models/{i}/{i}.pth', net_g_ms, None)
135
- _ = net_g_ms.eval().to(device)
136
- models.append((sid, name_en, name_zh, title, cover, example, language, net_g_ms, create_tts_fn(net_g_ms, sid), create_to_symbol_fn(hps_ms)))
137
- with gr.Blocks() as app:
138
- gr.Markdown(
139
- "# <center> vits-models\n"
140
- "## <center> Please do not generate content that could infringe upon the rights or cause harm to individuals or organizations.\n"
141
- "## <center> ·请不要生成会对个人以及组织造成侵害的内容\n"
142
- "![visitor badge](https://visitor-badge.glitch.me/badge?page_id=sayashi.vits-models)\n\n"
143
- "[Open In Colab]"
144
- "(https://colab.research.google.com/drive/10QOk9NPgoKZUXkIhhuVaZ7SYra1MPMKH?usp=share_link)"
145
- " without queue and length limitation.(无需等待队列,并且没有长度限制)\n\n"
146
- "[Finetune your own model](https://github.com/SayaSS/vits-finetuning)"
147
- )
148
-
149
- with gr.Tabs():
150
- with gr.TabItem("EN"):
151
- for (sid, name_en, name_zh, title, cover, example, language, net_g_ms, tts_fn, to_symbol_fn) in models:
152
- with gr.TabItem(name_en):
153
- with gr.Row():
154
- gr.Markdown(
155
- '<div align="center">'
156
- f'<a><strong>{title}</strong></a>'
157
- f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else ""
158
- '</div>'
159
- )
160
- with gr.Row():
161
- with gr.Column():
162
- input_text = gr.Textbox(label="Text (100 words limitation)" if limitation else "Text", lines=5, value=example, elem_id=f"input-text-en-{name_en.replace(' ','')}")
163
- lang = gr.Dropdown(label="Language", choices=["Chinese", "Japanese", "Mix(wrap the Chinese text with [ZH][ZH], wrap the Japanese text with [JA][JA])"],
164
- type="index", value=language)
165
- with gr.Accordion(label="Advanced Options", open=False):
166
- symbol_input = gr.Checkbox(value=False, label="Symbol input")
167
- symbol_list = gr.Dataset(label="Symbol list", components=[input_text],
168
- samples=[[x] for x in hps_ms.symbols])
169
- symbol_list_json = gr.Json(value=hps_ms.symbols, visible=False)
170
- btn = gr.Button(value="Generate", variant="primary")
171
- with gr.Row():
172
- ns = gr.Slider(label="noise_scale", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
173
- nsw = gr.Slider(label="noise_scale_w", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
174
- ls = gr.Slider(label="length_scale", minimum=0.1, maximum=2.0, step=0.1, value=1.2 if language=="Chinese" else 1, interactive=True)
175
- with gr.Column():
176
- o1 = gr.Textbox(label="Output Message")
177
- o2 = gr.Audio(label="Output Audio", elem_id=f"tts-audio-en-{name_en.replace(' ','')}")
178
- download = gr.Button("Download Audio")
179
- btn.click(tts_fn, inputs=[input_text, lang, ns, nsw, ls, symbol_input], outputs=[o1, o2], api_name=f"tts-{name_en}")
180
- download.click(None, [], [], _js=download_audio_js.format(audio_id=f"en-{name_en.replace(' ', '')}"))
181
- lang.change(change_lang, inputs=[lang], outputs=[ns, nsw, ls])
182
- symbol_input.change(
183
- to_symbol_fn,
184
- [symbol_input, input_text, lang],
185
- [input_text]
186
- )
187
- symbol_list.click(None, [symbol_list, symbol_list_json], [input_text],
188
- _js=f"""
189
- (i,symbols) => {{
190
- let root = document.querySelector("body > gradio-app");
191
- if (root.shadowRoot != null)
192
- root = root.shadowRoot;
193
- let text_input = root.querySelector("#input-text-en-{name_en.replace(' ', '')}").querySelector("textarea");
194
- let startPos = text_input.selectionStart;
195
- let endPos = text_input.selectionEnd;
196
- let oldTxt = text_input.value;
197
- let result = oldTxt.substring(0, startPos) + symbols[i] + oldTxt.substring(endPos);
198
- text_input.value = result;
199
- let x = window.scrollX, y = window.scrollY;
200
- text_input.focus();
201
- text_input.selectionStart = startPos + symbols[i].length;
202
- text_input.selectionEnd = startPos + symbols[i].length;
203
- text_input.blur();
204
- window.scrollTo(x, y);
205
- return text_input.value;
206
- }}""")
207
- with gr.TabItem("中文"):
208
- for (sid, name_en, name_zh, title, cover, example, language, net_g_ms, tts_fn, to_symbol_fn) in models:
209
- with gr.TabItem(name_zh):
210
- with gr.Row():
211
- gr.Markdown(
212
- '<div align="center">'
213
- f'<a><strong>{title}</strong></a>'
214
- f'<img style="width:auto;height:300px;" src="file/{cover}">' if cover else ""
215
- '</div>'
216
- )
217
- with gr.Row():
218
- with gr.Column():
219
- input_text = gr.Textbox(label="文本 (100字上限)" if limitation else "文本", lines=5, value=example, elem_id=f"input-text-zh-{name_zh}")
220
- lang = gr.Dropdown(label="语言", choices=["中文", "日语", "中日混合(中文用[ZH][ZH]包裹起来,日文用[JA][JA]包裹起来)"],
221
- type="index", value="中文"if language == "Chinese" else "日语")
222
- with gr.Accordion(label="高级选项", open=False):
223
- symbol_input = gr.Checkbox(value=False, label="符号输入")
224
- symbol_list = gr.Dataset(label="符号列表", components=[input_text],
225
- samples=[[x] for x in hps_ms.symbols])
226
- symbol_list_json = gr.Json(value=hps_ms.symbols, visible=False)
227
- btn = gr.Button(value="生成", variant="primary")
228
- with gr.Row():
229
- ns = gr.Slider(label="控制感情变化程度", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
230
- nsw = gr.Slider(label="控制音素发音长度", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
231
- ls = gr.Slider(label="控制整体语速", minimum=0.1, maximum=2.0, step=0.1, value=1.2 if language=="Chinese" else 1, interactive=True)
232
- with gr.Column():
233
- o1 = gr.Textbox(label="输出信息")
234
- o2 = gr.Audio(label="输出音频", elem_id=f"tts-audio-zh-{name_zh}")
235
- download = gr.Button("下载音频")
236
- btn.click(tts_fn, inputs=[input_text, lang, ns, nsw, ls, symbol_input], outputs=[o1, o2])
237
- download.click(None, [], [], _js=download_audio_js.format(audio_id=f"zh-{name_zh}"))
238
- lang.change(change_lang, inputs=[lang], outputs=[ns, nsw, ls])
239
- symbol_input.change(
240
- to_symbol_fn,
241
- [symbol_input, input_text, lang],
242
- [input_text]
243
- )
244
- symbol_list.click(None, [symbol_list, symbol_list_json], [input_text],
245
- _js=f"""
246
- (i,symbols) => {{
247
- let root = document.querySelector("body > gradio-app");
248
- if (root.shadowRoot != null)
249
- root = root.shadowRoot;
250
- let text_input = root.querySelector("#input-text-zh-{name_zh}").querySelector("textarea");
251
- let startPos = text_input.selectionStart;
252
- let endPos = text_input.selectionEnd;
253
- let oldTxt = text_input.value;
254
- let result = oldTxt.substring(0, startPos) + symbols[i] + oldTxt.substring(endPos);
255
- text_input.value = result;
256
- let x = window.scrollX, y = window.scrollY;
257
- text_input.focus();
258
- text_input.selectionStart = startPos + symbols[i].length;
259
- text_input.selectionEnd = startPos + symbols[i].length;
260
- text_input.blur();
261
- window.scrollTo(x, y);
262
- return text_input.value;
263
- }}""")
264
- app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIConsultant/MusicGen/audiocraft/modules/conv.py DELETED
@@ -1,243 +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
-
7
- import math
8
- import typing as tp
9
- import warnings
10
-
11
- import torch
12
- from torch import nn
13
- from torch.nn import functional as F
14
- from torch.nn.utils import spectral_norm, weight_norm
15
-
16
-
17
- CONV_NORMALIZATIONS = frozenset(['none', 'weight_norm', 'spectral_norm',
18
- 'time_group_norm'])
19
-
20
-
21
- def apply_parametrization_norm(module: nn.Module, norm: str = 'none'):
22
- assert norm in CONV_NORMALIZATIONS
23
- if norm == 'weight_norm':
24
- return weight_norm(module)
25
- elif norm == 'spectral_norm':
26
- return spectral_norm(module)
27
- else:
28
- # We already check was in CONV_NORMALIZATION, so any other choice
29
- # doesn't need reparametrization.
30
- return module
31
-
32
-
33
- def get_norm_module(module: nn.Module, causal: bool = False, norm: str = 'none', **norm_kwargs):
34
- """Return the proper normalization module. If causal is True, this will ensure the returned
35
- module is causal, or return an error if the normalization doesn't support causal evaluation.
36
- """
37
- assert norm in CONV_NORMALIZATIONS
38
- if norm == 'time_group_norm':
39
- if causal:
40
- raise ValueError("GroupNorm doesn't support causal evaluation.")
41
- assert isinstance(module, nn.modules.conv._ConvNd)
42
- return nn.GroupNorm(1, module.out_channels, **norm_kwargs)
43
- else:
44
- return nn.Identity()
45
-
46
-
47
- def get_extra_padding_for_conv1d(x: torch.Tensor, kernel_size: int, stride: int,
48
- padding_total: int = 0) -> int:
49
- """See `pad_for_conv1d`."""
50
- length = x.shape[-1]
51
- n_frames = (length - kernel_size + padding_total) / stride + 1
52
- ideal_length = (math.ceil(n_frames) - 1) * stride + (kernel_size - padding_total)
53
- return ideal_length - length
54
-
55
-
56
- def pad_for_conv1d(x: torch.Tensor, kernel_size: int, stride: int, padding_total: int = 0):
57
- """Pad for a convolution to make sure that the last window is full.
58
- Extra padding is added at the end. This is required to ensure that we can rebuild
59
- an output of the same length, as otherwise, even with padding, some time steps
60
- might get removed.
61
- For instance, with total padding = 4, kernel size = 4, stride = 2:
62
- 0 0 1 2 3 4 5 0 0 # (0s are padding)
63
- 1 2 3 # (output frames of a convolution, last 0 is never used)
64
- 0 0 1 2 3 4 5 0 # (output of tr. conv., but pos. 5 is going to get removed as padding)
65
- 1 2 3 4 # once you removed padding, we are missing one time step !
66
- """
67
- extra_padding = get_extra_padding_for_conv1d(x, kernel_size, stride, padding_total)
68
- return F.pad(x, (0, extra_padding))
69
-
70
-
71
- def pad1d(x: torch.Tensor, paddings: tp.Tuple[int, int], mode: str = 'constant', value: float = 0.):
72
- """Tiny wrapper around F.pad, just to allow for reflect padding on small input.
73
- If this is the case, we insert extra 0 padding to the right before the reflection happen.
74
- """
75
- length = x.shape[-1]
76
- padding_left, padding_right = paddings
77
- assert padding_left >= 0 and padding_right >= 0, (padding_left, padding_right)
78
- if mode == 'reflect':
79
- max_pad = max(padding_left, padding_right)
80
- extra_pad = 0
81
- if length <= max_pad:
82
- extra_pad = max_pad - length + 1
83
- x = F.pad(x, (0, extra_pad))
84
- padded = F.pad(x, paddings, mode, value)
85
- end = padded.shape[-1] - extra_pad
86
- return padded[..., :end]
87
- else:
88
- return F.pad(x, paddings, mode, value)
89
-
90
-
91
- def unpad1d(x: torch.Tensor, paddings: tp.Tuple[int, int]):
92
- """Remove padding from x, handling properly zero padding. Only for 1d!"""
93
- padding_left, padding_right = paddings
94
- assert padding_left >= 0 and padding_right >= 0, (padding_left, padding_right)
95
- assert (padding_left + padding_right) <= x.shape[-1]
96
- end = x.shape[-1] - padding_right
97
- return x[..., padding_left: end]
98
-
99
-
100
- class NormConv1d(nn.Module):
101
- """Wrapper around Conv1d and normalization applied to this conv
102
- to provide a uniform interface across normalization approaches.
103
- """
104
- def __init__(self, *args, causal: bool = False, norm: str = 'none',
105
- norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs):
106
- super().__init__()
107
- self.conv = apply_parametrization_norm(nn.Conv1d(*args, **kwargs), norm)
108
- self.norm = get_norm_module(self.conv, causal, norm, **norm_kwargs)
109
- self.norm_type = norm
110
-
111
- def forward(self, x):
112
- x = self.conv(x)
113
- x = self.norm(x)
114
- return x
115
-
116
-
117
- class NormConv2d(nn.Module):
118
- """Wrapper around Conv2d and normalization applied to this conv
119
- to provide a uniform interface across normalization approaches.
120
- """
121
- def __init__(self, *args, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs):
122
- super().__init__()
123
- self.conv = apply_parametrization_norm(nn.Conv2d(*args, **kwargs), norm)
124
- self.norm = get_norm_module(self.conv, causal=False, norm=norm, **norm_kwargs)
125
- self.norm_type = norm
126
-
127
- def forward(self, x):
128
- x = self.conv(x)
129
- x = self.norm(x)
130
- return x
131
-
132
-
133
- class NormConvTranspose1d(nn.Module):
134
- """Wrapper around ConvTranspose1d and normalization applied to this conv
135
- to provide a uniform interface across normalization approaches.
136
- """
137
- def __init__(self, *args, causal: bool = False, norm: str = 'none',
138
- norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs):
139
- super().__init__()
140
- self.convtr = apply_parametrization_norm(nn.ConvTranspose1d(*args, **kwargs), norm)
141
- self.norm = get_norm_module(self.convtr, causal, norm, **norm_kwargs)
142
- self.norm_type = norm
143
-
144
- def forward(self, x):
145
- x = self.convtr(x)
146
- x = self.norm(x)
147
- return x
148
-
149
-
150
- class NormConvTranspose2d(nn.Module):
151
- """Wrapper around ConvTranspose2d and normalization applied to this conv
152
- to provide a uniform interface across normalization approaches.
153
- """
154
- def __init__(self, *args, norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {}, **kwargs):
155
- super().__init__()
156
- self.convtr = apply_parametrization_norm(nn.ConvTranspose2d(*args, **kwargs), norm)
157
- self.norm = get_norm_module(self.convtr, causal=False, norm=norm, **norm_kwargs)
158
-
159
- def forward(self, x):
160
- x = self.convtr(x)
161
- x = self.norm(x)
162
- return x
163
-
164
-
165
- class StreamableConv1d(nn.Module):
166
- """Conv1d with some builtin handling of asymmetric or causal padding
167
- and normalization.
168
- """
169
- def __init__(self, in_channels: int, out_channels: int,
170
- kernel_size: int, stride: int = 1, dilation: int = 1,
171
- groups: int = 1, bias: bool = True, causal: bool = False,
172
- norm: str = 'none', norm_kwargs: tp.Dict[str, tp.Any] = {},
173
- pad_mode: str = 'reflect'):
174
- super().__init__()
175
- # warn user on unusual setup between dilation and stride
176
- if stride > 1 and dilation > 1:
177
- warnings.warn("StreamableConv1d has been initialized with stride > 1 and dilation > 1"
178
- f" (kernel_size={kernel_size} stride={stride}, dilation={dilation}).")
179
- self.conv = NormConv1d(in_channels, out_channels, kernel_size, stride,
180
- dilation=dilation, groups=groups, bias=bias, causal=causal,
181
- norm=norm, norm_kwargs=norm_kwargs)
182
- self.causal = causal
183
- self.pad_mode = pad_mode
184
-
185
- def forward(self, x):
186
- B, C, T = x.shape
187
- kernel_size = self.conv.conv.kernel_size[0]
188
- stride = self.conv.conv.stride[0]
189
- dilation = self.conv.conv.dilation[0]
190
- kernel_size = (kernel_size - 1) * dilation + 1 # effective kernel size with dilations
191
- padding_total = kernel_size - stride
192
- extra_padding = get_extra_padding_for_conv1d(x, kernel_size, stride, padding_total)
193
- if self.causal:
194
- # Left padding for causal
195
- x = pad1d(x, (padding_total, extra_padding), mode=self.pad_mode)
196
- else:
197
- # Asymmetric padding required for odd strides
198
- padding_right = padding_total // 2
199
- padding_left = padding_total - padding_right
200
- x = pad1d(x, (padding_left, padding_right + extra_padding), mode=self.pad_mode)
201
- return self.conv(x)
202
-
203
-
204
- class StreamableConvTranspose1d(nn.Module):
205
- """ConvTranspose1d with some builtin handling of asymmetric or causal padding
206
- and normalization.
207
- """
208
- def __init__(self, in_channels: int, out_channels: int,
209
- kernel_size: int, stride: int = 1, causal: bool = False,
210
- norm: str = 'none', trim_right_ratio: float = 1.,
211
- norm_kwargs: tp.Dict[str, tp.Any] = {}):
212
- super().__init__()
213
- self.convtr = NormConvTranspose1d(in_channels, out_channels, kernel_size, stride,
214
- causal=causal, norm=norm, norm_kwargs=norm_kwargs)
215
- self.causal = causal
216
- self.trim_right_ratio = trim_right_ratio
217
- assert self.causal or self.trim_right_ratio == 1., \
218
- "`trim_right_ratio` != 1.0 only makes sense for causal convolutions"
219
- assert self.trim_right_ratio >= 0. and self.trim_right_ratio <= 1.
220
-
221
- def forward(self, x):
222
- kernel_size = self.convtr.convtr.kernel_size[0]
223
- stride = self.convtr.convtr.stride[0]
224
- padding_total = kernel_size - stride
225
-
226
- y = self.convtr(x)
227
-
228
- # We will only trim fixed padding. Extra padding from `pad_for_conv1d` would be
229
- # removed at the very end, when keeping only the right length for the output,
230
- # as removing it here would require also passing the length at the matching layer
231
- # in the encoder.
232
- if self.causal:
233
- # Trim the padding on the right according to the specified ratio
234
- # if trim_right_ratio = 1.0, trim everything from right
235
- padding_right = math.ceil(padding_total * self.trim_right_ratio)
236
- padding_left = padding_total - padding_right
237
- y = unpad1d(y, (padding_left, padding_right))
238
- else:
239
- # Asymmetric padding required for odd strides
240
- padding_right = padding_total // 2
241
- padding_left = padding_total - padding_right
242
- y = unpad1d(y, (padding_left, padding_right))
243
- return y
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIConsultant/MusicGen/audiocraft/utils/best_state.py DELETED
@@ -1,81 +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
-
7
- from collections import defaultdict
8
- import logging
9
- import typing as tp
10
-
11
- import flashy
12
- import torch
13
-
14
- from ..optim import ModuleDictEMA
15
- from .utils import copy_state
16
-
17
-
18
- logger = logging.getLogger(__name__)
19
-
20
-
21
- class BestStateDictManager(flashy.state.StateDictSource):
22
- """BestStateDictManager maintains a copy of best state_dict() for registered sources.
23
-
24
- BestStateDictManager has two main attributes:
25
- states (dict): State dict of the registered StateDictSource.
26
- param_ids (dict): Dict of parameter ids for registered states from ModuleDictEMA and other sources.
27
-
28
- When registering new sources, the BestStateDictManager will ensure two conflicting sources between
29
- ModuleDictEMA and original modules are not both registered as it would otherwise create ambiguity about
30
- what to consider for best state.
31
-
32
- Args:
33
- device (torch.device or str): Device on which we keep the copy.
34
- dtype (torch.dtype): Data type for the state parameters.
35
- """
36
- def __init__(self, device: tp.Union[torch.device, str] = 'cpu',
37
- dtype: tp.Optional[torch.dtype] = None):
38
- self.device = device
39
- self.states: dict = {}
40
- self.param_ids: dict = defaultdict(dict)
41
- self.dtype = dtype
42
-
43
- def _get_parameter_ids(self, state_dict):
44
- return {id(p): name for name, p in state_dict.items() if isinstance(p, torch.Tensor)}
45
-
46
- def _validate_no_parameter_ids_overlap(self, name: str, param_ids: dict):
47
- for registered_name, registered_param_ids in self.param_ids.items():
48
- if registered_name != name:
49
- overlap = set.intersection(registered_param_ids.keys(), param_ids.keys())
50
- assert len(overlap) == 0, f"Found {len(overlap)} / {len(param_ids.keys())} overlapping parameters"
51
- f" in {name} and already registered {registered_name}: {' '.join(overlap)}"
52
-
53
- def update(self, name: str, source: flashy.state.StateDictSource):
54
- if name not in self.states:
55
- raise ValueError(f"{name} missing from registered states.")
56
- self.states[name] = copy_state(source.state_dict(), device=self.device, dtype=self.dtype)
57
-
58
- def register(self, name: str, source: flashy.state.StateDictSource):
59
- if name in self.states:
60
- raise ValueError(f"{name} already present in states.")
61
- # Registering parameter ids for EMA and non-EMA states allows us to check that
62
- # there is no overlap that would create ambiguity about how to handle the best state
63
- param_ids = self._get_parameter_ids(source.state_dict())
64
- if isinstance(source, ModuleDictEMA):
65
- logger.debug(f"Registering to best state: ModuleDictEMA '{name}' with {len(param_ids)} params")
66
- self._validate_no_parameter_ids_overlap(name, param_ids)
67
- self.param_ids[name] = param_ids
68
- else:
69
- logger.debug(f"Registering to best state: StateDictSource '{name}' with {len(param_ids)} params")
70
- self._validate_no_parameter_ids_overlap('base', param_ids)
71
- self.param_ids['base'].update(param_ids)
72
- # Register state
73
- self.states[name] = copy_state(source.state_dict(), device=self.device, dtype=self.dtype)
74
-
75
- def state_dict(self) -> flashy.state.StateDict:
76
- return self.states
77
-
78
- def load_state_dict(self, state: flashy.state.StateDict):
79
- for name, sub_state in state.items():
80
- for k, v in sub_state.items():
81
- self.states[name][k].copy_(v)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/nn/schedulers.py DELETED
@@ -1,105 +0,0 @@
1
- import numpy as np
2
-
3
-
4
- class NoneSchedule(object):
5
- def __init__(self, optimizer, lr):
6
- self.optimizer = optimizer
7
- self.constant_lr = lr
8
- self.step(0)
9
-
10
- def step(self, num_updates):
11
- self.lr = self.constant_lr
12
- for param_group in self.optimizer.param_groups:
13
- param_group['lr'] = self.lr
14
- return self.lr
15
-
16
- def get_lr(self):
17
- return self.optimizer.param_groups[0]['lr']
18
-
19
- def get_last_lr(self):
20
- return self.get_lr()
21
-
22
-
23
- class RSQRTSchedule(NoneSchedule):
24
- def __init__(self, optimizer, lr, warmup_updates, hidden_size):
25
- self.optimizer = optimizer
26
- self.constant_lr = lr
27
- self.warmup_updates = warmup_updates
28
- self.hidden_size = hidden_size
29
- self.lr = lr
30
- for param_group in optimizer.param_groups:
31
- param_group['lr'] = self.lr
32
- self.step(0)
33
-
34
- def step(self, num_updates):
35
- constant_lr = self.constant_lr
36
- warmup = min(num_updates / self.warmup_updates, 1.0)
37
- rsqrt_decay = max(self.warmup_updates, num_updates) ** -0.5
38
- rsqrt_hidden = self.hidden_size ** -0.5
39
- self.lr = max(constant_lr * warmup * rsqrt_decay * rsqrt_hidden, 1e-6)
40
- for param_group in self.optimizer.param_groups:
41
- param_group['lr'] = self.lr
42
- return self.lr
43
-
44
-
45
- class WarmupSchedule(NoneSchedule):
46
- def __init__(self, optimizer, lr, warmup_updates):
47
- self.optimizer = optimizer
48
- self.constant_lr = self.lr = lr
49
- self.warmup_updates = warmup_updates
50
- for param_group in optimizer.param_groups:
51
- param_group['lr'] = self.lr
52
- self.step(0)
53
-
54
- def step(self, num_updates):
55
- constant_lr = self.constant_lr
56
- warmup = min(num_updates / self.warmup_updates, 1.0)
57
- self.lr = max(constant_lr * warmup, 1e-7)
58
- for param_group in self.optimizer.param_groups:
59
- param_group['lr'] = self.lr
60
- return self.lr
61
-
62
-
63
- class CosineSchedule(NoneSchedule):
64
- def __init__(self, optimizer, lr, warmup_updates, total_updates):
65
- self.optimizer = optimizer
66
- self.constant_lr = lr
67
- self.warmup_updates = warmup_updates
68
- self.total_updates = total_updates
69
- self.lr = lr
70
- self.assign_learning_rate(self.optimizer, self.lr)
71
- self.step(0)
72
-
73
- def assign_learning_rate(self, optimizer, new_lr):
74
- for param_group in optimizer.param_groups:
75
- param_group["lr"] = new_lr
76
-
77
- def _warmup_lr(self, base_lr, warmup_length, step):
78
- return base_lr * (step + 1) / warmup_length
79
-
80
- def step(self, num_updates):
81
- if num_updates < self.warmup_updates:
82
- lr = self._warmup_lr(self.lr, self.warmup_updates, num_updates)
83
- else:
84
- e = num_updates - self.warmup_updates
85
- es = self.total_updates - self.warmup_updates
86
- lr = 0.5 * (1 + np.cos(np.pi * e / es)) * self.lr
87
- self.assign_learning_rate(self.optimizer, lr)
88
- return lr
89
-
90
-
91
- if __name__ == '__main__':
92
- import numpy as np
93
- import matplotlib.pyplot as plt
94
- import torch
95
-
96
- def plot_scheduler(scheduler, label=None):
97
- y = np.array([scheduler.step(x) for x in range(0,160000, 10)])
98
- x = np.arange(0,160000, 10)
99
- plt.plot(x, y, label=label)
100
-
101
- dummy_model = torch.nn.Linear(10,10)
102
- dummy_optimizer = torch.optim.Adam(dummy_model.parameters())
103
- rsqrt = CosineSchedule(dummy_optimizer, lr=0.0005, warmup_updates=10000, total_updates=160000)
104
- plot_scheduler(rsqrt, "8000")
105
- plt.savefig("0.png")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AbelKidane/headdetector/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Headdetector
3
- emoji: 🏆
4
- colorFrom: blue
5
- colorTo: green
6
- sdk: streamlit
7
- sdk_version: 1.25.0
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Adapter/T2I-Adapter/ldm/modules/extra_condition/midas/api.py DELETED
@@ -1,175 +0,0 @@
1
- # based on https://github.com/isl-org/MiDaS
2
- import os
3
-
4
- import cv2
5
- import torch
6
- import torch.nn as nn
7
- from torchvision.transforms import Compose
8
-
9
- from ldm.modules.extra_condition.midas.midas.dpt_depth import DPTDepthModel
10
- from ldm.modules.extra_condition.midas.midas.midas_net import MidasNet
11
- from ldm.modules.extra_condition.midas.midas.midas_net_custom import MidasNet_small
12
- from ldm.modules.extra_condition.midas.midas.transforms import Resize, NormalizeImage, PrepareForNet
13
-
14
-
15
- ISL_PATHS = {
16
- "dpt_large": "models/dpt_large-midas-2f21e586.pt",
17
- "dpt_hybrid": "models/dpt_hybrid-midas-501f0c75.pt",
18
- "midas_v21": "",
19
- "midas_v21_small": "",
20
- }
21
-
22
- remote_model_path = "https://github.com/intel-isl/DPT/releases/download/1_0/dpt_hybrid-midas-501f0c75.pt"
23
-
24
- def disabled_train(self, mode=True):
25
- """Overwrite model.train with this function to make sure train/eval mode
26
- does not change anymore."""
27
- return self
28
-
29
-
30
- def load_midas_transform(model_type):
31
- # https://github.com/isl-org/MiDaS/blob/master/run.py
32
- # load transform only
33
- if model_type == "dpt_large": # DPT-Large
34
- net_w, net_h = 384, 384
35
- resize_mode = "minimal"
36
- normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
37
-
38
- elif model_type == "dpt_hybrid": # DPT-Hybrid
39
- net_w, net_h = 384, 384
40
- resize_mode = "minimal"
41
- normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
42
-
43
- elif model_type == "midas_v21":
44
- net_w, net_h = 384, 384
45
- resize_mode = "upper_bound"
46
- normalization = NormalizeImage(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
47
-
48
- elif model_type == "midas_v21_small":
49
- net_w, net_h = 256, 256
50
- resize_mode = "upper_bound"
51
- normalization = NormalizeImage(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
52
-
53
- else:
54
- assert False, f"model_type '{model_type}' not implemented, use: --model_type large"
55
-
56
- transform = Compose(
57
- [
58
- Resize(
59
- net_w,
60
- net_h,
61
- resize_target=None,
62
- keep_aspect_ratio=True,
63
- ensure_multiple_of=32,
64
- resize_method=resize_mode,
65
- image_interpolation_method=cv2.INTER_CUBIC,
66
- ),
67
- normalization,
68
- PrepareForNet(),
69
- ]
70
- )
71
-
72
- return transform
73
-
74
-
75
- def load_model(model_type):
76
- # https://github.com/isl-org/MiDaS/blob/master/run.py
77
- # load network
78
- model_path = ISL_PATHS[model_type]
79
- if model_type == "dpt_large": # DPT-Large
80
- model = DPTDepthModel(
81
- path=model_path,
82
- backbone="vitl16_384",
83
- non_negative=True,
84
- )
85
- net_w, net_h = 384, 384
86
- resize_mode = "minimal"
87
- normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
88
-
89
- elif model_type == "dpt_hybrid": # DPT-Hybrid
90
- if not os.path.exists(model_path):
91
- from basicsr.utils.download_util import load_file_from_url
92
- load_file_from_url(remote_model_path, model_dir='models')
93
-
94
- model = DPTDepthModel(
95
- path=model_path,
96
- backbone="vitb_rn50_384",
97
- non_negative=True,
98
- )
99
- net_w, net_h = 384, 384
100
- resize_mode = "minimal"
101
- normalization = NormalizeImage(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
102
-
103
- elif model_type == "midas_v21":
104
- model = MidasNet(model_path, non_negative=True)
105
- net_w, net_h = 384, 384
106
- resize_mode = "upper_bound"
107
- normalization = NormalizeImage(
108
- mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
109
- )
110
-
111
- elif model_type == "midas_v21_small":
112
- model = MidasNet_small(model_path, features=64, backbone="efficientnet_lite3", exportable=True,
113
- non_negative=True, blocks={'expand': True})
114
- net_w, net_h = 256, 256
115
- resize_mode = "upper_bound"
116
- normalization = NormalizeImage(
117
- mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]
118
- )
119
-
120
- else:
121
- print(f"model_type '{model_type}' not implemented, use: --model_type large")
122
- assert False
123
-
124
- transform = Compose(
125
- [
126
- Resize(
127
- net_w,
128
- net_h,
129
- resize_target=None,
130
- keep_aspect_ratio=True,
131
- ensure_multiple_of=32,
132
- resize_method=resize_mode,
133
- image_interpolation_method=cv2.INTER_CUBIC,
134
- ),
135
- normalization,
136
- PrepareForNet(),
137
- ]
138
- )
139
-
140
- return model.eval(), transform
141
-
142
-
143
- class MiDaSInference(nn.Module):
144
- MODEL_TYPES_TORCH_HUB = [
145
- "DPT_Large",
146
- "DPT_Hybrid",
147
- "MiDaS_small"
148
- ]
149
- MODEL_TYPES_ISL = [
150
- "dpt_large",
151
- "dpt_hybrid",
152
- "midas_v21",
153
- "midas_v21_small",
154
- ]
155
-
156
- def __init__(self, model_type):
157
- super().__init__()
158
- assert (model_type in self.MODEL_TYPES_ISL)
159
- model, _ = load_model(model_type)
160
- self.model = model
161
- self.model.train = disabled_train
162
-
163
- def forward(self, x):
164
- # x in 0..1 as produced by calling self.transform on a 0..1 float64 numpy array
165
- # NOTE: we expect that the correct transform has been called during dataloading.
166
- with torch.no_grad():
167
- prediction = self.model(x)
168
- prediction = torch.nn.functional.interpolate(
169
- prediction.unsqueeze(1),
170
- size=x.shape[2:],
171
- mode="bicubic",
172
- align_corners=False,
173
- )
174
- assert prediction.shape == (x.shape[0], 1, x.shape[2], x.shape[3])
175
- return prediction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/basesizer/PushIntoBounds.js DELETED
@@ -1,15 +0,0 @@
1
- import GetViewport from '../../../plugins/utils/system/GetViewport.js';
2
-
3
- var PushIntoBounds = function (bounds) {
4
- if (bounds === undefined) {
5
- bounds = GetViewport(this.scene);
6
- }
7
-
8
- this.left = Math.max(this.left, bounds.left);
9
- this.right = Math.min(this.right, bounds.right);
10
- this.top = Math.max(this.top, bounds.top);
11
- this.bottom = Math.min(this.bottom, bounds.bottom);
12
- return this;
13
- }
14
-
15
- export default PushIntoBounds;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/overlapsizer/GetChildrenWidth.js DELETED
@@ -1,19 +0,0 @@
1
- var GetChildrenWidth = function () {
2
- if (this.rexSizer.hidden) {
3
- return 0;
4
- }
5
-
6
- var result = 0;
7
- var children = this.sizerChildren;
8
- var child, padding, childWidth;
9
- for (var key in children) {
10
- child = children[key];
11
-
12
- padding = child.rexSizer.padding;
13
- childWidth = this.getChildWidth(child) + padding.left + padding.right;
14
- result = Math.max(childWidth, result);
15
- }
16
- return result + this.space.left + this.space.right;
17
- }
18
-
19
- export default GetChildrenWidth;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/sizer/ExpandMethods.js DELETED
@@ -1,11 +0,0 @@
1
- export default {
2
- getChildExpand(gameObject) {
3
- return this.getSizerConfig(gameObject).expand;
4
- },
5
-
6
- setChildExpand(gameObject, expand) {
7
- this.getSizerConfig(gameObject).expand = expand;
8
- return this;
9
- },
10
-
11
- }
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Al-Chan/Vits_League_of_Legends_Yuumi_TTS/text/symbols.py DELETED
@@ -1,76 +0,0 @@
1
- '''
2
- Defines the set of symbols used in text input to the model.
3
- '''
4
-
5
- # japanese_cleaners
6
- # _pad = '_'
7
- # _punctuation = ',.!?-'
8
- # _letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧ↓↑ '
9
-
10
-
11
- '''# japanese_cleaners2
12
- _pad = '_'
13
- _punctuation = ',.!?-~…'
14
- _letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧʦ↓↑ '
15
- '''
16
-
17
-
18
- '''# korean_cleaners
19
- _pad = '_'
20
- _punctuation = ',.!?…~'
21
- _letters = 'ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎㄲㄸㅃㅆㅉㅏㅓㅗㅜㅡㅣㅐㅔ '
22
- '''
23
-
24
- '''# chinese_cleaners
25
- _pad = '_'
26
- _punctuation = ',。!?—…'
27
- _letters = 'ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩˉˊˇˋ˙ '
28
- '''
29
-
30
- # # zh_ja_mixture_cleaners
31
- # _pad = '_'
32
- # _punctuation = ',.!?-~…'
33
- # _letters = 'AEINOQUabdefghijklmnoprstuvwyzʃʧʦɯɹəɥ⁼ʰ`→↓↑ '
34
-
35
-
36
- '''# sanskrit_cleaners
37
- _pad = '_'
38
- _punctuation = '।'
39
- _letters = 'ँंःअआइईउऊऋएऐओऔकखगघङचछजझञटठडढणतथदधनपफबभमयरलळवशषसहऽािीुूृॄेैोौ्ॠॢ '
40
- '''
41
-
42
- '''# cjks_cleaners
43
- _pad = '_'
44
- _punctuation = ',.!?-~…'
45
- _letters = 'NQabdefghijklmnopstuvwxyzʃʧʥʦɯɹəɥçɸɾβŋɦː⁼ʰ`^#*=→↓↑ '
46
- '''
47
-
48
- '''# thai_cleaners
49
- _pad = '_'
50
- _punctuation = '.!? '
51
- _letters = 'กขฃคฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลวศษสหฬอฮฯะัาำิีึืุูเแโใไๅๆ็่้๊๋์'
52
- '''
53
-
54
- # # cjke_cleaners2
55
- _pad = '_'
56
- _punctuation = ',.!?-~…'
57
- _letters = 'NQabdefghijklmnopstuvwxyzɑæʃʑçɯɪɔɛɹðəɫɥɸʊɾʒθβŋɦ⁼ʰ`^#*=ˈˌ→↓↑ '
58
-
59
-
60
- '''# shanghainese_cleaners
61
- _pad = '_'
62
- _punctuation = ',.!?…'
63
- _letters = 'abdfghiklmnopstuvyzøŋȵɑɔɕəɤɦɪɿʑʔʰ̩̃ᴀᴇ15678 '
64
- '''
65
-
66
- '''# chinese_dialect_cleaners
67
- _pad = '_'
68
- _punctuation = ',.!?~…─'
69
- _letters = '#Nabdefghijklmnoprstuvwxyzæçøŋœȵɐɑɒɓɔɕɗɘəɚɛɜɣɤɦɪɭɯɵɷɸɻɾɿʂʅʊʋʌʏʑʔʦʮʰʷˀː˥˦˧˨˩̥̩̃̚ᴀᴇ↑↓∅ⱼ '
70
- '''
71
-
72
- # Export all symbols:
73
- symbols = [_pad] + list(_punctuation) + list(_letters)
74
-
75
- # Special symbol ids
76
- SPACE_ID = symbols.index(" ")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AlbertoFH98/CastenaApp/utils.py DELETED
@@ -1,291 +0,0 @@
1
- # -- Utils .py file
2
- # -- Libraries
3
- from typing import Any, Dict, List, Mapping, Optional
4
- from pydantic import Extra, Field, root_validator
5
- from langchain.llms.base import LLM
6
- from langchain.utils import get_from_dict_or_env
7
- from langchain.vectorstores import Chroma
8
- from langchain.text_splitter import RecursiveCharacterTextSplitter
9
- from langchain.chains import RetrievalQA
10
- from langchain.document_loaders import TextLoader
11
- from langchain.embeddings import HuggingFaceEmbeddings
12
- from googletrans import Translator
13
- import streamlit as st
14
- import together
15
- import textwrap
16
- import spacy
17
- import os
18
- import re
19
-
20
- os.environ["TOGETHER_API_KEY"] = "6101599d6e33e3bda336b8d007ca22e35a64c72cfd52c2d8197f663389fc50c5"
21
-
22
- # -- LLM class
23
- class TogetherLLM(LLM):
24
- """Together large language models."""
25
-
26
- model: str = "togethercomputer/llama-2-70b-chat"
27
- """model endpoint to use"""
28
-
29
- together_api_key: str = os.environ["TOGETHER_API_KEY"]
30
- """Together API key"""
31
-
32
- temperature: float = 0.7
33
- """What sampling temperature to use."""
34
-
35
- max_tokens: int = 512
36
- """The maximum number of tokens to generate in the completion."""
37
-
38
- class Config:
39
- extra = Extra.forbid
40
-
41
- @root_validator()
42
- def validate_environment(cls, values: Dict) -> Dict:
43
- """Validate that the API key is set."""
44
- api_key = get_from_dict_or_env(
45
- values, "together_api_key", "TOGETHER_API_KEY"
46
- )
47
- values["together_api_key"] = api_key
48
- return values
49
-
50
- @property
51
- def _llm_type(self) -> str:
52
- """Return type of LLM."""
53
- return "together"
54
-
55
- def clean_duplicates(self, transcription: str) -> str:
56
- lines = transcription.strip().split('\n')
57
-
58
- new_transcription = []
59
-
60
- for linea in lines:
61
- if linea.replace('CONTEXT:/n/n ', '').replace('/n', '') not in new_transcription and linea != '':
62
- new_transcription.append(linea.replace('CONTEXT:/n/n ', '').replace('/n', ''))
63
- # Create new transcription without duplicates
64
- new_transcription = '\n\n'.join(new_transcription).replace("""<</SYS>>
65
- """, """<</SYS>>
66
- CONTEXT: """)
67
- return new_transcription
68
-
69
- def _call(
70
- self,
71
- prompt: str,
72
- **kwargs: Any,
73
- ) -> str:
74
- """Call to Together endpoint."""
75
- together.api_key = self.together_api_key
76
- output = together.Complete.create(prompt,
77
- model=self.model,
78
- max_tokens=self.max_tokens,
79
- temperature=self.temperature,
80
- )
81
- text = output['output']['choices'][0]['text']
82
- cleaned_text = self.clean_duplicates(text)
83
- return cleaned_text
84
-
85
-
86
- # -- Python function to setup basic features: translator, SpaCy pipeline and LLM model
87
- @st.cache_resource
88
- def setup_app(transcription_path, emb_model, model, _logger):
89
- # -- Setup enviroment and features
90
- translator = Translator(service_urls=['translate.googleapis.com'])
91
- nlp = spacy.load('es_core_news_lg')
92
-
93
- _logger.info('Setup environment and features...')
94
-
95
- # -- Setup LLM
96
- together.api_key = os.environ["TOGETHER_API_KEY"]
97
- # List available models and descriptons
98
- models = together.Models.list()
99
- # Set llama2 7b LLM
100
- together.Models.start(model)
101
- _logger.info('Setup environment and features - FINISHED!')
102
-
103
- # -- Read translated transcription
104
- _logger.info('Loading transcription...')
105
- loader = TextLoader(transcription_path)
106
- documents = loader.load()
107
- # Splitting the text into chunks
108
- text_splitter = RecursiveCharacterTextSplitter(chunk_size=1500, chunk_overlap=100)
109
- texts = text_splitter.split_documents(documents)
110
- _logger.info('Loading transcription - FINISHED!')
111
-
112
- # -- Load embedding
113
- _logger.info('Loading embedding...')
114
- encode_kwargs = {'normalize_embeddings': True} # set True to compute cosine similarity
115
- model_norm = HuggingFaceEmbeddings(
116
- model_name=emb_model,
117
- model_kwargs={'device': 'cpu'},
118
- encode_kwargs=encode_kwargs
119
- )
120
- _logger.info('Loading embedding - FINISHED!')
121
-
122
- # -- Create document database
123
- _logger.info('Creating document database...')
124
- # Embed and store the texts
125
- # Supplying a persist_directory will store the embeddings on disk
126
- persist_directory = 'db'
127
- ## Here is the nmew embeddings being used
128
- embedding = model_norm
129
-
130
- vectordb = Chroma.from_documents(documents=texts,
131
- embedding=embedding,
132
- persist_directory=persist_directory)
133
-
134
- # -- Make a retreiver
135
- retriever = vectordb.as_retriever(search_type="similarity_score_threshold",
136
- search_kwargs={"k": 5, "score_threshold": 0.5})
137
- _logger.info('Creating document database - FINISHED!')
138
- _logger.info('Setup finished!')
139
- return translator, nlp, retriever
140
-
141
- # -- Function to get prompt template
142
- def get_prompt(instruction, system_prompt, b_sys, e_sys, b_inst, e_inst, _logger):
143
- new_system_prompt = b_sys + system_prompt + e_sys
144
- prompt_template = b_inst + new_system_prompt + instruction + e_inst
145
- _logger.info('Prompt template created: {}'.format(instruction))
146
- return prompt_template
147
-
148
- # -- Function to create the chain to answer questions
149
- @st.cache_resource
150
- def create_llm_chain(model, _retriever, _chain_type_kwargs, _logger):
151
- _logger.info('Creating LLM chain...')
152
- llm = TogetherLLM(
153
- model= model,
154
- temperature = 0.0,
155
- max_tokens = 1024
156
- )
157
- qa_chain = RetrievalQA.from_chain_type(llm=llm,
158
- chain_type="stuff",
159
- retriever=_retriever,
160
- chain_type_kwargs=_chain_type_kwargs,
161
- return_source_documents=True)
162
- _logger.info('Creating LLM chain - FINISHED!')
163
- return qa_chain
164
-
165
- # -------------------------------------------
166
- # -- Auxiliar functions
167
- def translate_text(text, nlp, target_lang='en'):
168
- # Traducir el texto sin los nombres propios
169
- translator = Translator()
170
- # Tokenizar el texto y encontrar nombres propios
171
- doc = nlp(text)
172
- named_entities = [ent.text for ent in doc if ent.pos_ == 'PROPN' and ent.dep_ in ['NNP', 'NN']]
173
- named_entities_list = []
174
- # Reemplazar los nombres propios con marcadores temporales
175
- for entity in named_entities:
176
- text = text.replace(entity, f'__{entity}__')
177
- named_entities_list.append(entity)
178
-
179
- translated_text = translator.translate(text, dest=target_lang).text
180
- final_translated_text = []
181
-
182
- i = 0
183
- for text in translated_text.split(' '):
184
- if '__' in text and len(named_entities_list):
185
- final_translated_text.append(named_entities_list[i])
186
- i+=1
187
- else:
188
- final_translated_text.append(text)
189
- return ' '.join(final_translated_text)
190
-
191
- def wrap_text_preserve_newlines(text, width=110):
192
- # Split the input text into lines based on newline characters
193
- lines = text.split('\n')
194
-
195
- # Wrap each line individually
196
- wrapped_lines = [textwrap.fill(line, width=width) for line in lines]
197
-
198
- # Join the wrapped lines back together using newline characters
199
- wrapped_text = '\n'.join(wrapped_lines)
200
-
201
- return wrapped_text
202
-
203
- def process_llm_response(llm_response, nlp):
204
- response = llm_response['result']
205
- return wrap_text_preserve_newlines(translate_text(response, nlp, target_lang='es'))
206
-
207
-
208
- def time_to_seconds(time_str):
209
- parts = time_str.split(':')
210
- hours, minutes, seconds = map(float, parts)
211
- return int((hours * 3600) + (minutes * 60) + seconds)
212
-
213
- def add_hyperlink_and_convert_to_seconds(text):
214
- time_pattern = r'(\d{2}:\d{2}:\d{2}(.\d{6})?)'
215
-
216
- def replace_with_hyperlink(match):
217
- time_str = match.group(1)
218
- seconds = time_to_seconds(time_str)
219
- link = f'<button type="button" class="button" onclick="seek({seconds})">{time_str}</button>'
220
- return link
221
-
222
- modified_text = re.sub(time_pattern, replace_with_hyperlink, text)
223
- return modified_text
224
-
225
- # -- Streamlit HTML template
226
- def typewrite(text, youtube_video_url):
227
- js = """var player, seconds = 0;
228
- function onYouTubeIframeAPIReady() {
229
- console.log("player");
230
- player = new YT.Player('player', {
231
- events: {
232
- 'onReady': onPlayerReady
233
- }
234
- });
235
- }
236
-
237
- function onPlayerReady(event) {
238
- event.target.playVideo();
239
- }
240
-
241
-
242
- function seek(sec){
243
- if(player){
244
- player.seekTo(sec, true);
245
- }
246
- }
247
- """
248
-
249
- css = """
250
- .button {
251
- background-color: transparent;
252
- font-family: "Tahoma sans-serif;", monospace;
253
- color: red;
254
- font-weight: bold;
255
- border: none;
256
- text-align: center;
257
- text-decoration: none;
258
- display: inline-block;
259
- font-size: 16px;
260
- cursor: pointer;
261
- }
262
- body {
263
- color: white;
264
- font-family: "Tahoma sans-serif;", monospace;
265
- font-weight: 450;
266
- }
267
- """
268
-
269
- html = f"""
270
- <!DOCTYPE html>
271
- <html>
272
- <head>
273
- <title>Modificar iframe</title>
274
- </head>
275
- <style>
276
- {css}
277
- </style>
278
- <body>
279
- <script src="https://www.youtube.com/player_api"></script>
280
- <p>{text}</p>
281
- <br/>
282
- <p align="center">
283
- <iframe id="player" type="text/html" src="{youtube_video_url}" scrolling="yes" frameborder="0" width="600" height="450"></iframe>
284
- </p>
285
- <script>
286
- {js}
287
- </script>
288
- </body>
289
- </html>
290
- """
291
- return html
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AlexWang/lama/fetch_data/places_challenge_train_download.sh DELETED
@@ -1,14 +0,0 @@
1
- mkdir places_challenge_dataset
2
-
3
-
4
- declare -a TARPARTS
5
- for i in {a..z}
6
- do
7
- TARPARTS[${#TARPARTS[@]}]="http://data.csail.mit.edu/places/places365/train_large_split/${i}.tar"
8
- done
9
- ls
10
- printf "%s\n" "${TARPARTS[@]}" > places_challenge_dataset/places365_train.txt
11
-
12
- cd places_challenge_dataset/
13
- xargs -a places365_train.txt -n 1 -P 8 wget [...]
14
- ls *.tar | xargs -i tar xvf {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Amon1/ChatGPTForAcadamic/crazy_functions/代码重写为全英文_多线程.py DELETED
@@ -1,75 +0,0 @@
1
- import threading
2
- from predict import predict_no_ui_long_connection
3
- from toolbox import CatchException, write_results_to_file
4
-
5
-
6
-
7
- @CatchException
8
- def 全项目切换英文(txt, top_p, temperature, chatbot, history, sys_prompt, WEB_PORT):
9
- history = [] # 清空历史,以免输入溢出
10
- # 集合文件
11
- import time, glob, os
12
- os.makedirs('gpt_log/generated_english_version', exist_ok=True)
13
- os.makedirs('gpt_log/generated_english_version/crazy_functions', exist_ok=True)
14
- file_manifest = [f for f in glob.glob('./*.py') if ('test_project' not in f) and ('gpt_log' not in f)] + \
15
- [f for f in glob.glob('./crazy_functions/*.py') if ('test_project' not in f) and ('gpt_log' not in f)]
16
- i_say_show_user_buffer = []
17
-
18
- # 随便显示点什么防止卡顿的感觉
19
- for index, fp in enumerate(file_manifest):
20
- # if 'test_project' in fp: continue
21
- with open(fp, 'r', encoding='utf-8') as f:
22
- file_content = f.read()
23
- i_say_show_user =f'[{index}/{len(file_manifest)}] 接下来请将以下代码中包含的所有中文转化为英文,只输出代码: {os.path.abspath(fp)}'
24
- i_say_show_user_buffer.append(i_say_show_user)
25
- chatbot.append((i_say_show_user, "[Local Message] 等待多线程操作,中间过程不予显示."))
26
- yield chatbot, history, '正常'
27
-
28
- # 任务函数
29
- mutable_return = [None for _ in file_manifest]
30
- def thread_worker(fp,index):
31
- with open(fp, 'r', encoding='utf-8') as f:
32
- file_content = f.read()
33
- i_say = f'接下来请将以下代码中包含的所有中文转化为英文,只输出代码,文件名是{fp},文件代码是 ```{file_content}```'
34
- # ** gpt request **
35
- gpt_say = predict_no_ui_long_connection(inputs=i_say, top_p=top_p, temperature=temperature, history=history, sys_prompt=sys_prompt)
36
- mutable_return[index] = gpt_say
37
-
38
- # 所有线程同时开始执行任务函数
39
- handles = [threading.Thread(target=thread_worker, args=(fp,index)) for index, fp in enumerate(file_manifest)]
40
- for h in handles:
41
- h.daemon = True
42
- h.start()
43
- chatbot.append(('开始了吗?', f'多线程操作已经开始'))
44
- yield chatbot, history, '正常'
45
-
46
- # 循环轮询各个线程是否执行完毕
47
- cnt = 0
48
- while True:
49
- time.sleep(1)
50
- th_alive = [h.is_alive() for h in handles]
51
- if not any(th_alive): break
52
- stat = ['执行中' if alive else '已完成' for alive in th_alive]
53
- stat_str = '|'.join(stat)
54
- cnt += 1
55
- chatbot[-1] = (chatbot[-1][0], f'多线程操作已经开始,完成情况: {stat_str}' + ''.join(['.']*(cnt%4)))
56
- yield chatbot, history, '正常'
57
-
58
- # 把结果写入文件
59
- for index, h in enumerate(handles):
60
- h.join() # 这里其实不需要join了,肯定已经都结束了
61
- fp = file_manifest[index]
62
- gpt_say = mutable_return[index]
63
- i_say_show_user = i_say_show_user_buffer[index]
64
-
65
- where_to_relocate = f'gpt_log/generated_english_version/{fp}'
66
- with open(where_to_relocate, 'w+', encoding='utf-8') as f: f.write(gpt_say.lstrip('```').rstrip('```'))
67
- chatbot.append((i_say_show_user, f'[Local Message] 已完成{os.path.abspath(fp)}的转化,\n\n存入{os.path.abspath(where_to_relocate)}'))
68
- history.append(i_say_show_user); history.append(gpt_say)
69
- yield chatbot, history, '正常'
70
- time.sleep(1)
71
-
72
- # 备份一个文件
73
- res = write_results_to_file(history)
74
- chatbot.append(("生成一份任务执行报告", res))
75
- yield chatbot, history, '正常'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmdet/models/backbones/__init__.py DELETED
@@ -1,20 +0,0 @@
1
- from .darknet import Darknet
2
- from .detectors_resnet import DetectoRS_ResNet
3
- from .detectors_resnext import DetectoRS_ResNeXt
4
- from .hourglass import HourglassNet
5
- from .hrnet import HRNet
6
- from .regnet import RegNet
7
- from .res2net import Res2Net
8
- from .resnest import ResNeSt
9
- from .resnet import ResNet, ResNetV1d
10
- from .resnext import ResNeXt
11
- from .ssd_vgg import SSDVGG
12
- from .trident_resnet import TridentResNet
13
- from .swin_transformer import SwinTransformer
14
- from .uniformer import UniFormer
15
-
16
- __all__ = [
17
- 'RegNet', 'ResNet', 'ResNetV1d', 'ResNeXt', 'SSDVGG', 'HRNet', 'Res2Net',
18
- 'HourglassNet', 'DetectoRS_ResNet', 'DetectoRS_ResNeXt', 'Darknet',
19
- 'ResNeSt', 'TridentResNet', 'SwinTransformer', 'UniFormer'
20
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmdet/models/roi_heads/trident_roi_head.py DELETED
@@ -1,119 +0,0 @@
1
- import torch
2
- from mmcv.ops import batched_nms
3
-
4
- from mmdet.core import (bbox2result, bbox2roi, bbox_mapping, merge_aug_bboxes,
5
- multiclass_nms)
6
- from mmdet.models.roi_heads.standard_roi_head import StandardRoIHead
7
- from ..builder import HEADS
8
-
9
-
10
- @HEADS.register_module()
11
- class TridentRoIHead(StandardRoIHead):
12
- """Trident roi head.
13
-
14
- Args:
15
- num_branch (int): Number of branches in TridentNet.
16
- test_branch_idx (int): In inference, all 3 branches will be used
17
- if `test_branch_idx==-1`, otherwise only branch with index
18
- `test_branch_idx` will be used.
19
- """
20
-
21
- def __init__(self, num_branch, test_branch_idx, **kwargs):
22
- self.num_branch = num_branch
23
- self.test_branch_idx = test_branch_idx
24
- super(TridentRoIHead, self).__init__(**kwargs)
25
-
26
- def merge_trident_bboxes(self, trident_det_bboxes, trident_det_labels):
27
- """Merge bbox predictions of each branch."""
28
- if trident_det_bboxes.numel() == 0:
29
- det_bboxes = trident_det_bboxes.new_zeros((0, 5))
30
- det_labels = trident_det_bboxes.new_zeros((0, ), dtype=torch.long)
31
- else:
32
- nms_bboxes = trident_det_bboxes[:, :4]
33
- nms_scores = trident_det_bboxes[:, 4].contiguous()
34
- nms_inds = trident_det_labels
35
- nms_cfg = self.test_cfg['nms']
36
- det_bboxes, keep = batched_nms(nms_bboxes, nms_scores, nms_inds,
37
- nms_cfg)
38
- det_labels = trident_det_labels[keep]
39
- if self.test_cfg['max_per_img'] > 0:
40
- det_labels = det_labels[:self.test_cfg['max_per_img']]
41
- det_bboxes = det_bboxes[:self.test_cfg['max_per_img']]
42
-
43
- return det_bboxes, det_labels
44
-
45
- def simple_test(self,
46
- x,
47
- proposal_list,
48
- img_metas,
49
- proposals=None,
50
- rescale=False):
51
- """Test without augmentation as follows:
52
-
53
- 1. Compute prediction bbox and label per branch.
54
- 2. Merge predictions of each branch according to scores of
55
- bboxes, i.e., bboxes with higher score are kept to give
56
- top-k prediction.
57
- """
58
- assert self.with_bbox, 'Bbox head must be implemented.'
59
- det_bboxes_list, det_labels_list = self.simple_test_bboxes(
60
- x, img_metas, proposal_list, self.test_cfg, rescale=rescale)
61
- num_branch = self.num_branch if self.test_branch_idx == -1 else 1
62
- for _ in range(len(det_bboxes_list)):
63
- if det_bboxes_list[_].shape[0] == 0:
64
- det_bboxes_list[_] = det_bboxes_list[_].new_empty((0, 5))
65
- det_bboxes, det_labels = [], []
66
- for i in range(len(img_metas) // num_branch):
67
- det_result = self.merge_trident_bboxes(
68
- torch.cat(det_bboxes_list[i * num_branch:(i + 1) *
69
- num_branch]),
70
- torch.cat(det_labels_list[i * num_branch:(i + 1) *
71
- num_branch]))
72
- det_bboxes.append(det_result[0])
73
- det_labels.append(det_result[1])
74
-
75
- bbox_results = [
76
- bbox2result(det_bboxes[i], det_labels[i],
77
- self.bbox_head.num_classes)
78
- for i in range(len(det_bboxes))
79
- ]
80
- return bbox_results
81
-
82
- def aug_test_bboxes(self, feats, img_metas, proposal_list, rcnn_test_cfg):
83
- """Test det bboxes with test time augmentation."""
84
- aug_bboxes = []
85
- aug_scores = []
86
- for x, img_meta in zip(feats, img_metas):
87
- # only one image in the batch
88
- img_shape = img_meta[0]['img_shape']
89
- scale_factor = img_meta[0]['scale_factor']
90
- flip = img_meta[0]['flip']
91
- flip_direction = img_meta[0]['flip_direction']
92
-
93
- trident_bboxes, trident_scores = [], []
94
- for branch_idx in range(len(proposal_list)):
95
- proposals = bbox_mapping(proposal_list[0][:, :4], img_shape,
96
- scale_factor, flip, flip_direction)
97
- rois = bbox2roi([proposals])
98
- bbox_results = self._bbox_forward(x, rois)
99
- bboxes, scores = self.bbox_head.get_bboxes(
100
- rois,
101
- bbox_results['cls_score'],
102
- bbox_results['bbox_pred'],
103
- img_shape,
104
- scale_factor,
105
- rescale=False,
106
- cfg=None)
107
- trident_bboxes.append(bboxes)
108
- trident_scores.append(scores)
109
-
110
- aug_bboxes.append(torch.cat(trident_bboxes, 0))
111
- aug_scores.append(torch.cat(trident_scores, 0))
112
- # after merging, bboxes will be rescaled to the original image size
113
- merged_bboxes, merged_scores = merge_aug_bboxes(
114
- aug_bboxes, aug_scores, img_metas, rcnn_test_cfg)
115
- det_bboxes, det_labels = multiclass_nms(merged_bboxes, merged_scores,
116
- rcnn_test_cfg.score_thr,
117
- rcnn_test_cfg.nms,
118
- rcnn_test_cfg.max_per_img)
119
- return det_bboxes, det_labels
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r101-d8_512x512_40k_voc12aug.py DELETED
@@ -1,2 +0,0 @@
1
- _base_ = './deeplabv3plus_r50-d8_512x512_40k_voc12aug.py'
2
- model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
 
 
 
spaces/AnishKumbhar/ChatBot/text-generation-webui-main/cmd_windows.bat DELETED
@@ -1,34 +0,0 @@
1
- @echo off
2
-
3
- cd /D "%~dp0"
4
-
5
- set PATH=%PATH%;%SystemRoot%\system32
6
-
7
- echo "%CD%"| findstr /C:" " >nul && echo This script relies on Miniconda which can not be silently installed under a path with spaces. && goto end
8
-
9
- @rem fix failed install when installing to a separate drive
10
- set TMP=%cd%\installer_files
11
- set TEMP=%cd%\installer_files
12
-
13
- @rem deactivate existing conda envs as needed to avoid conflicts
14
- (call conda deactivate && call conda deactivate && call conda deactivate) 2>nul
15
-
16
- @rem config
17
- set CONDA_ROOT_PREFIX=%cd%\installer_files\conda
18
- set INSTALL_ENV_DIR=%cd%\installer_files\env
19
-
20
- @rem environment isolation
21
- set PYTHONNOUSERSITE=1
22
- set PYTHONPATH=
23
- set PYTHONHOME=
24
- set "CUDA_PATH=%INSTALL_ENV_DIR%"
25
- set "CUDA_HOME=%CUDA_PATH%"
26
-
27
- @rem activate installer env
28
- call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniconda hook not found. && goto end )
29
-
30
- @rem enter commands
31
- cmd /k "%*"
32
-
33
- :end
34
- pause
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Anustup/NS_AI_LABS/cli.py DELETED
@@ -1,109 +0,0 @@
1
- import argparse
2
- import os
3
- from urllib.parse import urlparse
4
- import warnings
5
- import numpy as np
6
-
7
- import whisper
8
-
9
- import torch
10
- from app import LANGUAGES, WhisperTranscriber
11
- from src.download import download_url
12
-
13
- from src.utils import optional_float, optional_int, str2bool
14
-
15
-
16
- def cli():
17
- parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
18
- parser.add_argument("audio", nargs="+", type=str, help="audio file(s) to transcribe")
19
- parser.add_argument("--model", default="small", choices=["tiny", "base", "small", "medium", "large"], help="name of the Whisper model to use")
20
- parser.add_argument("--model_dir", type=str, default=None, help="the path to save model files; uses ~/.cache/whisper by default")
21
- parser.add_argument("--device", default="cuda" if torch.cuda.is_available() else "cpu", help="device to use for PyTorch inference")
22
- parser.add_argument("--output_dir", "-o", type=str, default=".", help="directory to save the outputs")
23
- parser.add_argument("--verbose", type=str2bool, default=True, help="whether to print out the progress and debug messages")
24
-
25
- parser.add_argument("--task", type=str, default="transcribe", choices=["transcribe", "translate"], help="whether to perform X->X speech recognition ('transcribe') or X->English translation ('translate')")
26
- parser.add_argument("--language", type=str, default=None, choices=sorted(LANGUAGES), help="language spoken in the audio, specify None to perform language detection")
27
-
28
- parser.add_argument("--vad", type=str, default="none", choices=["none", "silero-vad", "silero-vad-skip-gaps", "silero-vad-expand-into-gaps", "periodic-vad"], help="The voice activity detection algorithm to use")
29
- parser.add_argument("--vad_merge_window", type=optional_float, default=5, help="The window size (in seconds) to merge voice segments")
30
- parser.add_argument("--vad_max_merge_size", type=optional_float, default=30, help="The maximum size (in seconds) of a voice segment")
31
- parser.add_argument("--vad_padding", type=optional_float, default=1, help="The padding (in seconds) to add to each voice segment")
32
- parser.add_argument("--vad_prompt_window", type=optional_float, default=3, help="The window size of the prompt to pass to Whisper")
33
-
34
- parser.add_argument("--temperature", type=float, default=0, help="temperature to use for sampling")
35
- parser.add_argument("--best_of", type=optional_int, default=5, help="number of candidates when sampling with non-zero temperature")
36
- parser.add_argument("--beam_size", type=optional_int, default=5, help="number of beams in beam search, only applicable when temperature is zero")
37
- parser.add_argument("--patience", type=float, default=None, help="optional patience value to use in beam decoding, as in https://arxiv.org/abs/2204.05424, the default (1.0) is equivalent to conventional beam search")
38
- parser.add_argument("--length_penalty", type=float, default=None, help="optional token length penalty coefficient (alpha) as in https://arxiv.org/abs/1609.08144, uses simple lengt normalization by default")
39
-
40
- parser.add_argument("--suppress_tokens", type=str, default="-1", help="comma-separated list of token ids to suppress during sampling; '-1' will suppress most special characters except common punctuations")
41
- parser.add_argument("--initial_prompt", type=str, default=None, help="optional text to provide as a prompt for the first window.")
42
- parser.add_argument("--condition_on_previous_text", type=str2bool, default=True, help="if True, provide the previous output of the model as a prompt for the next window; disabling may make the text inconsistent across windows, but the model becomes less prone to getting stuck in a failure loop")
43
- parser.add_argument("--fp16", type=str2bool, default=True, help="whether to perform inference in fp16; True by default")
44
-
45
- parser.add_argument("--temperature_increment_on_fallback", type=optional_float, default=0.2, help="temperature to increase when falling back when the decoding fails to meet either of the thresholds below")
46
- parser.add_argument("--compression_ratio_threshold", type=optional_float, default=2.4, help="if the gzip compression ratio is higher than this value, treat the decoding as failed")
47
- parser.add_argument("--logprob_threshold", type=optional_float, default=-1.0, help="if the average log probability is lower than this value, treat the decoding as failed")
48
- parser.add_argument("--no_speech_threshold", type=optional_float, default=0.6, help="if the probability of the <|nospeech|> token is higher than this value AND the decoding has failed due to `logprob_threshold`, consider the segment as silence")
49
-
50
- args = parser.parse_args().__dict__
51
- model_name: str = args.pop("model")
52
- model_dir: str = args.pop("model_dir")
53
- output_dir: str = args.pop("output_dir")
54
- device: str = args.pop("device")
55
- os.makedirs(output_dir, exist_ok=True)
56
-
57
- if model_name.endswith(".en") and args["language"] not in {"en", "English"}:
58
- warnings.warn(f"{model_name} is an English-only model but receipted '{args['language']}'; using English instead.")
59
- args["language"] = "en"
60
-
61
- temperature = args.pop("temperature")
62
- temperature_increment_on_fallback = args.pop("temperature_increment_on_fallback")
63
- if temperature_increment_on_fallback is not None:
64
- temperature = tuple(np.arange(temperature, 1.0 + 1e-6, temperature_increment_on_fallback))
65
- else:
66
- temperature = [temperature]
67
-
68
- vad = args.pop("vad")
69
- vad_merge_window = args.pop("vad_merge_window")
70
- vad_max_merge_size = args.pop("vad_max_merge_size")
71
- vad_padding = args.pop("vad_padding")
72
- vad_prompt_window = args.pop("vad_prompt_window")
73
-
74
- model = whisper.load_model(model_name, device=device, download_root=model_dir)
75
- transcriber = WhisperTranscriber(deleteUploadedFiles=False)
76
-
77
- for audio_path in args.pop("audio"):
78
- sources = []
79
-
80
- # Detect URL and download the audio
81
- if (uri_validator(audio_path)):
82
- # Download from YouTube/URL directly
83
- for source_path in download_url(audio_path, maxDuration=-1, destinationDirectory=output_dir, playlistItems=None):
84
- source_name = os.path.basename(source_path)
85
- sources.append({ "path": source_path, "name": source_name })
86
- else:
87
- sources.append({ "path": audio_path, "name": os.path.basename(audio_path) })
88
-
89
- for source in sources:
90
- source_path = source["path"]
91
- source_name = source["name"]
92
-
93
- result = transcriber.transcribe_file(model, source_path, temperature=temperature,
94
- vad=vad, vadMergeWindow=vad_merge_window, vadMaxMergeSize=vad_max_merge_size,
95
- vadPadding=vad_padding, vadPromptWindow=vad_prompt_window, **args)
96
-
97
- transcriber.write_result(result, source_name, output_dir)
98
-
99
- transcriber.clear_cache()
100
-
101
- def uri_validator(x):
102
- try:
103
- result = urlparse(x)
104
- return all([result.scheme, result.netloc])
105
- except:
106
- return False
107
-
108
- if __name__ == '__main__':
109
- cli()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Apex-X/ROOPOK/roop/processors/__init__.py DELETED
File without changes
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/commands/index.py DELETED
@@ -1,139 +0,0 @@
1
- import logging
2
- from optparse import Values
3
- from typing import Any, Iterable, List, Optional, Union
4
-
5
- from pip._vendor.packaging.version import LegacyVersion, Version
6
-
7
- from pip._internal.cli import cmdoptions
8
- from pip._internal.cli.req_command import IndexGroupCommand
9
- from pip._internal.cli.status_codes import ERROR, SUCCESS
10
- from pip._internal.commands.search import print_dist_installation_info
11
- from pip._internal.exceptions import CommandError, DistributionNotFound, PipError
12
- from pip._internal.index.collector import LinkCollector
13
- from pip._internal.index.package_finder import PackageFinder
14
- from pip._internal.models.selection_prefs import SelectionPreferences
15
- from pip._internal.models.target_python import TargetPython
16
- from pip._internal.network.session import PipSession
17
- from pip._internal.utils.misc import write_output
18
-
19
- logger = logging.getLogger(__name__)
20
-
21
-
22
- class IndexCommand(IndexGroupCommand):
23
- """
24
- Inspect information available from package indexes.
25
- """
26
-
27
- ignore_require_venv = True
28
- usage = """
29
- %prog versions <package>
30
- """
31
-
32
- def add_options(self) -> None:
33
- cmdoptions.add_target_python_options(self.cmd_opts)
34
-
35
- self.cmd_opts.add_option(cmdoptions.ignore_requires_python())
36
- self.cmd_opts.add_option(cmdoptions.pre())
37
- self.cmd_opts.add_option(cmdoptions.no_binary())
38
- self.cmd_opts.add_option(cmdoptions.only_binary())
39
-
40
- index_opts = cmdoptions.make_option_group(
41
- cmdoptions.index_group,
42
- self.parser,
43
- )
44
-
45
- self.parser.insert_option_group(0, index_opts)
46
- self.parser.insert_option_group(0, self.cmd_opts)
47
-
48
- def run(self, options: Values, args: List[str]) -> int:
49
- handlers = {
50
- "versions": self.get_available_package_versions,
51
- }
52
-
53
- logger.warning(
54
- "pip index is currently an experimental command. "
55
- "It may be removed/changed in a future release "
56
- "without prior warning."
57
- )
58
-
59
- # Determine action
60
- if not args or args[0] not in handlers:
61
- logger.error(
62
- "Need an action (%s) to perform.",
63
- ", ".join(sorted(handlers)),
64
- )
65
- return ERROR
66
-
67
- action = args[0]
68
-
69
- # Error handling happens here, not in the action-handlers.
70
- try:
71
- handlers[action](options, args[1:])
72
- except PipError as e:
73
- logger.error(e.args[0])
74
- return ERROR
75
-
76
- return SUCCESS
77
-
78
- def _build_package_finder(
79
- self,
80
- options: Values,
81
- session: PipSession,
82
- target_python: Optional[TargetPython] = None,
83
- ignore_requires_python: Optional[bool] = None,
84
- ) -> PackageFinder:
85
- """
86
- Create a package finder appropriate to the index command.
87
- """
88
- link_collector = LinkCollector.create(session, options=options)
89
-
90
- # Pass allow_yanked=False to ignore yanked versions.
91
- selection_prefs = SelectionPreferences(
92
- allow_yanked=False,
93
- allow_all_prereleases=options.pre,
94
- ignore_requires_python=ignore_requires_python,
95
- )
96
-
97
- return PackageFinder.create(
98
- link_collector=link_collector,
99
- selection_prefs=selection_prefs,
100
- target_python=target_python,
101
- )
102
-
103
- def get_available_package_versions(self, options: Values, args: List[Any]) -> None:
104
- if len(args) != 1:
105
- raise CommandError("You need to specify exactly one argument")
106
-
107
- target_python = cmdoptions.make_target_python(options)
108
- query = args[0]
109
-
110
- with self._build_session(options) as session:
111
- finder = self._build_package_finder(
112
- options=options,
113
- session=session,
114
- target_python=target_python,
115
- ignore_requires_python=options.ignore_requires_python,
116
- )
117
-
118
- versions: Iterable[Union[LegacyVersion, Version]] = (
119
- candidate.version for candidate in finder.find_all_candidates(query)
120
- )
121
-
122
- if not options.pre:
123
- # Remove prereleases
124
- versions = (
125
- version for version in versions if not version.is_prerelease
126
- )
127
- versions = set(versions)
128
-
129
- if not versions:
130
- raise DistributionNotFound(
131
- "No matching distribution found for {}".format(query)
132
- )
133
-
134
- formatted_versions = [str(ver) for ver in sorted(versions, reverse=True)]
135
- latest = formatted_versions[0]
136
-
137
- write_output("{} ({})".format(query, latest))
138
- write_output("Available versions: {}".format(", ".join(formatted_versions)))
139
- print_dist_installation_info(query, latest)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Atualli/yoloxTeste/configs/yolox_tiny.py DELETED
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding:utf-8 -*-
3
- # Copyright (c) Megvii, Inc. and its affiliates.
4
-
5
- import os
6
-
7
- from yolox.exp import Exp as MyExp
8
-
9
-
10
- class Exp(MyExp):
11
- def __init__(self):
12
- super(Exp, self).__init__()
13
- self.depth = 0.33
14
- self.width = 0.375
15
- self.input_size = (416, 416)
16
- self.mosaic_scale = (0.5, 1.5)
17
- self.random_size = (10, 20)
18
- self.test_size = (416, 416)
19
- self.exp_name = os.path.split(os.path.realpath(__file__))[1].split(".")[0]
20
- self.enable_mixup = False
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Axolotlily/SketchThing/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: SketchThing
3
- emoji: 💻
4
- colorFrom: purple
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.0.14
8
- app_file: app.py
9
- pinned: false
10
- license: other
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/BasalGanglia/stabilityai-stable-diffusion-2/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Stabilityai Stable Diffusion 2
3
- emoji: 👀
4
- colorFrom: red
5
- colorTo: yellow
6
- sdk: gradio
7
- sdk_version: 3.12.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/Benson/text-generation/Examples/Audio Download Messenger.md DELETED
@@ -1,50 +0,0 @@
1
- <br />
2
- <h1>Cómo descargar audio de Messenger</h1>
3
- <p>¿Alguna vez ha recibido un archivo de audio o un mensaje de voz en Messenger que quería guardar o compartir con otra persona? Si es así, es posible que haya notado que no hay una manera fácil de descargar audio de Messenger en su teléfono o computadora. A diferencia de los vídeos y las fotos, no puedes simplemente tocar o hacer clic derecho en un archivo de audio y elegir guardar. Entonces, ¿cómo puedes descargar audio de Messenger? </p>
4
- <p>En este artículo, le mostraremos cómo descargar audio de Messenger usando un truco simple que funciona tanto en dispositivos móviles como en PC. Usted aprenderá lo que es la descarga de audio messenger, por qué es posible que desee descargar audio de Messenger, y cómo hacerlo paso a paso. Siguiendo esta guía, podrás guardar cualquier archivo de audio o mensaje de voz que recibas o envíes en Messenger.</p>
5
- <h2>audio download messenger</h2><br /><p><b><b>Download Zip</b> &rarr;&rarr;&rarr; <a href="https://bltlly.com/2v6IDY">https://bltlly.com/2v6IDY</a></b></p><br /><br />
6
- <h2>¿Qué es Audio Download Messenger? </h2>
7
- <p>Audio download messenger es un término que se refiere a un método o una herramienta que le permite descargar archivos de audio o mensajes de voz de Messenger. Messenger es una aplicación de mensajería popular que te permite enviar y recibir mensajes de texto, fotos, videos, pegatinas, emojis, GIF y más. También puede enviar y recibir mensajes de voz o grabar su propia voz usando el icono del micrófono. </p>
8
- <p>Sin embargo, a diferencia de otros tipos de medios, no puede descargar fácilmente archivos de audio o mensajes de voz de Messenger. Esto se debe a que Messenger no tiene una función integrada que le permita guardar o exportar archivos de audio. Solo puedes reproducirlos dentro de la aplicación o reenviarlos a otra conversación. </p>
9
- <p>Afortunadamente, hay una manera de descargar audio de Messenger utilizando un truco simple que implica el uso de la versión móvil de Facebook en su navegador web. Este truco funciona tanto en dispositivos móviles como en PC, siempre y cuando tengas una conexión a Internet y un navegador web. </p>
10
- <h2>¿Por qué descargar audio de Messenger? </h2>
11
-
12
- <p>Si desea descargar audio de Messenger en su dispositivo móvil, como su teléfono inteligente o tableta, deberá usar la versión móvil de Facebook en su navegador web. Esto se debe a que la aplicación Messenger no tiene una opción de descarga para archivos de audio o mensajes de voz. Estos son los pasos que debe seguir:</p>
13
- <h3>Paso 1: Cambie a datos móviles y abra su navegador móvil</h3>
14
- <p>El primer paso es cambiar a datos móviles y abrir su navegador móvil. Esto se debe a que la versión móvil de Facebook no funciona bien en las redes Wi-Fi. Puedes usar cualquier navegador que prefieras, como Chrome, Safari, Firefox u Opera.</p>
15
- <h3>Paso 2: Inicie sesión en m.facebook.com y vaya a sus mensajes</h3>
16
- <p>El siguiente paso es iniciar sesión en m.facebook.com e ir a sus mensajes. Esta es la versión móvil de Facebook que tiene un diseño y una interfaz diferentes de la versión regular. Tendrá que introducir su dirección de correo electrónico o número de teléfono y contraseña para iniciar sesión. Una vez que haya iniciado sesión, verá un icono de menú en la esquina superior derecha de la pantalla. Toque en él y seleccione Mensajes de la lista. </p>
17
- <h3>Paso 3: Abra el mensaje con el archivo de audio y haga clic en el enlace</h3>
18
- <p>El tercer paso es abrir el mensaje con el archivo de audio y hacer clic en el enlace. Verá una lista de todas sus conversaciones en Messenger. Toque en el que contiene el archivo de audio o mensaje de voz que desea descargar. Verá un enlace que dice "Ver mensaje de voz" o "Ver archivo de audio" debajo del archivo de audio. Toque en él y se abrirá una nueva pestaña en su navegador. </p>
19
- <h3>Paso 4: Haga clic en la opción de descarga y espere a que termine</h3>
20
-
21
- <h3>Paso 5: Localizar el archivo de audio en el gestor de descargas de su navegador</h3>
22
- <p>El paso final es localizar el archivo de audio en el gestor de descargas de su navegador. Una vez finalizada la descarga, verá una notificación que dice "Descargar completa". Pulsa en él y te llevará al gestor de descargas de tu navegador, donde podrás ver todos los archivos que hayas descargado. Verá el archivo de audio con su nombre y tamaño. Pulse sobre él y se abrirá en su reproductor de medios predeterminado. </p>
23
- <p></p> <h2>Cómo descargar audio de Messenger en PC</h2>
24
- <p>Si desea descargar audio de Messenger en su PC, como su computadora portátil o de escritorio, también tendrá que utilizar la versión móvil de Facebook en su navegador web. Esto se debe a que la versión regular de Facebook no tiene una opción de descarga para archivos de audio o mensajes de voz. Estos son los pasos que debes seguir:</p>
25
- <h3>Paso 1: Abra su navegador web y vaya a m.facebook.com</h3>
26
- <p>El primer paso es abrir su navegador web e ir a m.facebook.com. Puede usar cualquier navegador que prefiera, como Chrome, Firefox, Edge o Safari. Verás la versión móvil de Facebook que tiene un diseño y una interfaz diferentes a la versión normal. </p>
27
- <h3>Paso 2: Haga clic en el icono del mensajero y seleccione el mensaje con el archivo de audio</h3>
28
- <p>El siguiente paso es hacer clic en el icono de messenger y seleccionar el mensaje con el archivo de audio. Verá un icono de mensajero en la esquina superior derecha de la pantalla. Haga clic en él y lo llevará a sus mensajes en Messenger. Verá una lista de todas sus conversaciones en Messenger. Haga clic en la que contiene el archivo de audio o mensaje de voz que desea descargar. </p>
29
- <h3>Paso 3: Haga clic en los tres puntos junto al archivo de audio y seleccione descargar</h3>
30
-
31
- <h3>Paso 4: Seleccione la carpeta donde desea guardar el archivo de audio y haga clic en guardar</h3>
32
- <p>El paso final es seleccionar la carpeta donde desea guardar el archivo de audio y hacer clic en guardar. Verá una ventana emergente que le pregunta dónde desea guardar el archivo de audio. Puede elegir la carpeta que prefiera, como Descargas, Documentos, Música o Escritorio. También puede cambiar el nombre del archivo de audio si lo desea. Una vez que haya seleccionado la carpeta y el nombre, haga clic en Guardar y guardará el archivo de audio en su PC.</p>
33
- <h2>Conclusión</h2>
34
- <p>Descargar audio de Messenger no es tan difícil como podría parecer. Solo necesitas usar un truco simple que implique usar la versión móvil de Facebook en tu navegador web. Este truco funciona tanto en dispositivos móviles como en PC, siempre y cuando tengas una conexión a Internet y un navegador web. </p>
35
- <p>Siguiendo esta guía, podrás descargar cualquier archivo de audio o mensaje de voz que recibas o envíes en Messenger. Podrá ahorrar datos y espacio de almacenamiento, conservar recuerdos y momentos, y compartir archivos e información con otros. </p>
36
- <p>Así que, ¿qué estás esperando? Pruébalo tú mismo y ver lo fácil que es descargar audio de Messenger! </p>
37
- <h2>Preguntas frecuentes</h2>
38
- <p>Estas son algunas de las preguntas más comunes que la gente tiene sobre la descarga de audio de Messenger:</p>
39
- <h4>Q: ¿Puedo descargar audio de Messenger usando la aplicación Messenger? </h4>
40
- <p>A: No, no puede descargar audio de Messenger usando la aplicación Messenger. La aplicación Messenger no tiene una opción de descarga para archivos de audio o mensajes de voz. Solo puedes reproducirlos dentro de la aplicación o reenviarlos a otra conversación. </p>
41
- <h4>Q: ¿Puedo descargar audio de Messenger usando la versión regular de Facebook? </h4>
42
-
43
- <h4>Q: ¿Puedo descargar archivos de video o fotos de Messenger usando este truco? </h4>
44
- <p>A: Sí, puede descargar archivos de video o fotos de Messenger usando este truco. Los mismos pasos se aplican para los archivos de vídeo o fotos que para los archivos de audio o mensajes de voz. Sin embargo, también puede descargar archivos de video o fotos de Messenger utilizando la aplicación Messenger o la versión normal de Facebook tocando o haciendo clic derecho sobre ellos y eligiendo guardar. </p>
45
- <h4>Q: ¿Puedo descargar varios archivos de audio de Messenger a la vez usando este truco? </h4>
46
- <p>A: No, no puede descargar varios archivos de audio de Messenger a la vez usando este truco. Solo puedes descargar un archivo de audio a la vez usando este truco. Si desea descargar varios archivos de audio de Messenger a la vez, deberá usar una herramienta o software de terceros que pueda hacerlo. </p>
47
- <h4>Q: ¿Es legal descargar audio de Messenger? </h4>
48
- <p>A: La descarga de audio desde Messenger es legal siempre y cuando tenga el permiso del remitente o el propietario del archivo de audio. No debe descargar audio de Messenger que tenga derechos de autor, sea ilegal o infrinja los derechos de terceros. También debe respetar la privacidad y confidencialidad del remitente o del propietario del archivo de audio y no compartirlo sin su consentimiento. </p> 64aa2da5cf<br />
49
- <br />
50
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Dead By Daylight Mvil Descargar Mediafre.md DELETED
@@ -1,152 +0,0 @@
1
-
2
- <h1>Download Ascenso de los reinos: Cruzada perdida y conquista del mundo</h1>
3
- <p>¿Te gustan los juegos de estrategia que desafían tu mente y habilidades? ¿Quieres experimentar la emoción de dirigir una civilización de un pequeño clan a un poderoso imperio? ¿Quieres explorar un vasto y misterioso mundo lleno de secretos y tesoros? Si respondiste sí a cualquiera de estas preguntas, entonces deberías descargar Rise of Kingdoms: Lost Crusade, uno de los juegos de estrategia más populares e inmersivos del mercado. En este artículo, te contaremos todo lo que necesitas saber sobre este juego, cómo descargarlo en tu dispositivo y cómo jugarlo eficazmente. </p>
4
- <h2>¿Qué es el Surgimiento de los Reinos: Cruzada Perdida? </h2>
5
- <p>Rise of Kingdoms: Lost Crusade es un juego de estrategia desarrollado por LilithGames que te permite elegir y liderar una de las 13 civilizaciones históricas en la historia del mundo. Puedes transformar tu pequeña tribu en una superpotencia global imparable con pragmatismo económico y poderío militar. Sus decisiones, estrategias, asociaciones económicas y alianzas militares decidirán el destino de su nación naciente. </p>
6
- <h2>dead by daylight móvil descargar mediafıre</h2><br /><p><b><b>Download</b> &#10040;&#10040;&#10040; <a href="https://bltlly.com/2v6KlQ">https://bltlly.com/2v6KlQ</a></b></p><br /><br />
7
- <p>Pero Rise of Kingdoms: Lost Crusade no es solo un juego de estrategia. También es un juego de batalla en tiempo real, un juego de mapa del mundo sin fisuras, y un juego de sistema de alianza. Estas son algunas de las características que hacen de este juego tan único y atractivo:</p>
8
- <h3>Un juego de estrategia que te permite elegir y liderar una de las 13 civilizaciones históricas</h3>
9
- <p>No hay dos civilizaciones iguales en Rise of Kingdoms: Lost Crusade. Cada cultura cuenta con una arquitectura única, unidades exclusivas y potenciadores y habilidades especiales que las diferencian. Como líder, debes aprender a aprovechar mejor tus ventajas para derrotar a tus rivales y solidificar tu posición como potencia mundial. </p>
10
-
11
- <h3>Un juego de batalla en tiempo real que te permite unirte o dejar cualquier pelea en el mapa</h3>
12
- <p>Las batallas ocurren en tiempo real en el mapa en Rise of Kingdoms: Lost Crusade. Cualquiera puede unirse o abandonar una batalla en cualquier momento, lo que permite una verdadera jugabilidad RTS. ¿Puedes ver a un aliado siendo atacado justo en tu patio trasero? Envía tropas para ayudar a tu amigo, o lanza un contraataque sorpresa en la ciudad del atacante. También puede enviar tropas para recoger recursos de los bosques o minas cercanas, o recoger algunos clanes bárbaros en el camino. </p>
13
- <p>También puede dividir sus fuerzas entre varios comandantes para que pueda participar en múltiples acciones simultáneamente. Cada comandante tiene sus propias habilidades y habilidades que pueden cambiar la marea de la batalla a su favor. También puedes subir de nivel a tus comandantes completando misiones, participando en eventos o usando objetos especiales. </p>
14
- <h3>Un juego de mapas del mundo sin fisuras que te permite explorar e investigar una tierra misteriosa</h3>
15
- <p>Tu mundo está cubierto de densa niebla en Rise of Kingdoms: Lost Crusade. Necesitas enviar exploradores para explorar esta tierra misteriosa y descubrir el tesoro escondido dentro. Puede investigar templos perdidos, fortalezas bárbaras, cuevas misteriosas y pueblos tribales, recopilar recursos valiosos y runas antiguas, y aprender más sobre la historia y los secretos de este mundo. También puedes encontrar artefactos raros y poderosos que pueden darte una ventaja en tus conquistas. </p>
16
- Pero ten cuidado, no estás solo en esta tierra. Otros jugadores tratarán de reclamar los mismos recursos y tesoros que tú, y es posible que encuentres una feroz resistencia o alianzas inesperadas. También puedes encontrar enemigos poderosos como el Guardián Oscuro y la Crisis de Ceroli que pondrán a prueba tus habilidades y estrategias hasta el límite. </p>
17
- <h3>Un juego de sistema de alianza que te permite cooperar y comunicarte con otros jugadores</h3>
18
-
19
- <p>Estar en una alianza también le da acceso a más beneficios y características, como la tienda de la alianza, la tecnología de la alianza, el territorio de la alianza, y las banderas de la alianza. También puedes participar en eventos y misiones de alianzas que pueden recompensarte con objetos y recursos valiosos. También puedes hacer la guerra contra otras alianzas o formar relaciones diplomáticas con ellas. </p>
20
- <p></p>
21
- <h2>Cómo descargar Rise of Kingdoms: Lost Crusade en tu dispositivo? </h2>
22
- <p>Rise of Kingdoms: Lost Crusade está disponible de forma gratuita en varias plataformas y dispositivos. Puede descargarlo de las siguientes fuentes:</p>
23
- <h3>Descargar de Google Play Store para dispositivos Android</h3>
24
- <p>Si tienes un dispositivo Android, puedes descargar Rise of Kingdoms: Lost Crusade de Google Play Store. Solo tienes que seguir estos pasos:</p>
25
- <ol>
26
- <li>Abra la aplicaci��n Google Play Store en su dispositivo. </li>
27
- <li>Búsqueda de Ascenso de Reinos: Cruzada Perdida en la barra de búsqueda. </li>
28
- <li>Seleccione el juego de la lista de resultados y toque en Instalar.</li>
29
- <li>Espera a que el juego se descargue e instale en tu dispositivo. </li>
30
- <li>Iniciar el juego y disfrutar! </li>
31
- </ol>
32
- <h3>Descargar de BlueStacks para dispositivos PC o Mac</h3>
33
- <p>Si quieres jugar Rise of Kingdoms: Lost Crusade en tu PC o Mac, puedes usar BlueStacks, un popular emulador de Android que te permite ejecutar aplicaciones Android en tu ordenador. He aquí cómo hacerlo:</p>
34
- <ol>
35
- <li>Descargue e instale BlueStacks en su PC o Mac desde <a href="">https://www.bluestacks.com/</a>. </li>
36
- <li>Inicie BlueStacks e inicie sesión con su cuenta de Google. </li>
37
- <li>Búsqueda de Ascenso de Reinos: Cruzada Perdida en la barra de búsqueda. </li>
38
- <li>Seleccione el juego de la lista de resultados y haga clic en Instalar.</li>
39
- <li>Espere a que el juego se descargue e instale en su computadora. </li>
40
- <li>Iniciar el juego y disfrutar! </li>
41
- </ol>
42
- <h3>Descargar de Pocket Gamer para juegos basados en navegador</h3>
43
-
44
- <ol>
45
- <li>Ir a <a href=">https://www.pocketgamer.com/</a> en su navegador. </li>
46
- <li>Búsqueda de Ascenso de Reinos: Cruzada Perdida en la barra de búsqueda. </li>
47
- <li>Seleccione el juego de la lista de resultados y haga clic en Jugar ahora.</li>
48
- <li>Espere a que el juego se cargue en su navegador. </li>
49
- <li>Iniciar el juego y disfrutar! </li>
50
- </ol>
51
- <h2>¿Cómo se juega Rise of Kingdoms: Lost Crusade efectivamente? </h2>
52
- <p>Rise of Kingdoms: Lost Crusade es un juego complejo y desafiante que requiere mucha estrategia y planificación. Si quieres tener éxito en este juego, debes seguir algunos consejos y trucos que pueden ayudarte a mejorar tu juego. Estos son algunos de ellos:</p>
53
- <h3>Elige la mejor civilización para tu estilo de juego y objetivos</h3>
54
- <p>Como hemos mencionado antes, cada civilización tiene sus propias fortalezas y debilidades, por lo que debe elegir sabiamente cuál le conviene más. También puedes cambiar tu civilización más adelante en el juego, pero te costará algunas gemas, así que es mejor tomar una buena decisión desde el principio. Aquí están algunos factores a considerar al elegir una civilización:</p>
55
- <ul>
56
- <li>El comandante que comienza: Cada civilización tiene un comandante que comienza único que dirigirá sus tropas en la batalla. Debe elegir un comandante que coincida con su estrategia preferida, ya sea ofensiva, defensa, apoyo o movilidad. </li>
57
- <li>La unidad especial: Cada civilización tiene una unidad especial que es exclusiva de esa cultura y tiene estadísticas y habilidades superiores. Usted debe elegir una unidad que complementa su comandante y su composición del ejército. </li>
58
- <li>El potenciador de la civilización: Cada civilización tiene un potenciador pasivo que afecta algún aspecto de tu juego, como la producción de recursos, la velocidad de las tropas, el tiempo de construcción, etc. Debes elegir un potenciador que se alinee con tus objetivos y prioridades. </li>
59
- </ul>
60
- <p>Aquí hay una tabla que resume las características principales de cada civilización:</p>
61
- <tabla>
62
- <tr>
63
- <th>Civilización</th>
64
- <th>Comienzo Comandante</th>
65
- <th>Unidad especial</th>
66
- <th>Potenciador de la civilización</th>
67
-
68
- <tr>
69
- <td>Roma</td>
70
- <td>Scipio Africanus</td>
71
- <td>Legionario</td>
72
- <td>+5% defensa de infantería, +5% velocidad de marcha de tropas, +10% velocidad de recolección de alimentos</td>
73
- </tr>
74
- <tr>
75
- <td>Alemania</td>
76
- <td>Hermann</td>
77
- <td>Caballero teutónico</td>
78
- <td>+5% ataque de caballería, +5% velocidad de entrenamiento de tropas, +10% velocidad de recuperación de puntos de acción</td>
79
- </tr>
80
- <tr>
81
- <td>Reino Unido</td>
82
- <td>Boudica</td>
83
- <td>Longbowman</td>
84
- <td>+5% ataque de arquero, +20% capacidad de guarnición aliada, +10% velocidad de recolección de madera</td>
85
- </tr>
86
- <tr>
87
- <td>Francia</td>
88
- <td>Juana de Arco</td>
89
- <td>Lanzamiento de Axeman</td>
90
- <td>+3% de salud para todas las unidades, +10% de velocidad de curación hospitalaria, +10% de velocidad de recolección de piedra</td>
91
- </tr>
92
- <tr>
93
- <td>España</td>
94
- <td>Pelagius</td>
95
- <td>Conquistador</td>
96
- <td>+5% de defensa de caballería, +10% de experiencia de unidades neutras, +10% de velocidad de recolección de oro</td>
97
- </tr>
98
- <tr>
99
- <td>China</td>
100
- <td>Sun Tzu</td>
101
- <td>Chu-Ko-Nu Crossbowman</td>
102
- <td>+3% velocidad de construcción, +3% velocidad de investigación, +5% velocidad de recuperación del punto de acción</td>
103
- </tr>
104
- <tr>
105
- <td>Japón</td>
106
- <td>Kusunoki Masashige</td>
107
- <td>Samurai</td>
108
- <td>+3% ataque de tropas, +5% velocidad de marcha de exploración, +30% producción de recursos en el mapa</td>
109
- </tr>
110
- <tr>
111
- <td>Corea</td>
112
- <td>Eulji Mundeok</td>
113
- <td>Hwarang Archer</td>
114
- <td>+5% defensa arquera, +15% capacidad hospitalaria, +3% velocidad de investigación</td></tr <tr ><td>Arabia ></td><td>Baibars ></td><td>Mamluk ></td><td>+5% salud de caballería, +10% daño a bárbaros y otras unidades neutras, +5% de daño de ataque de rally ></td></tr <tr ><td>Ottoman ></td><td>Osyman I ></td><td>Janissary ></td><td>+5% de daño de habilidad activa, +5% de bonificación de velocidad de marcha cuando la capacidad del ejército es superior al 50% ></td></tr <tr ><td>Byzantium ></td><td>Belaarius ></td><td>Cataphract ></td><td>+5% de defensa de caballería, +15% de bonificación de salud al atacar otras ciudades de gobernadores, -15% de consumo de piedra ></td></tr <tr ><td>Rusia ></td><td>Minnamoto no Yoshitsune ></td><td><td>Cossack Cavalry ></td><td>+5% de salud de la infantería, -20% de costo de entrenamiento de tropas, -15% de costo de sanación ></tr>
115
- <tr>
116
-
117
- </tabla>
118
- <h3>Construye y mejora tu ciudad y tropas para ganar más poder y recursos</h3>
119
- <p>Tu ciudad es el corazón de tu civilización en Rise of Kingdoms: Lost Crusade. Necesitas construir y actualizar varias estructuras que te proporcionarán diferentes beneficios y funciones, como producir recursos, entrenar tropas, investigar tecnologías, defender tu ciudad y más. También puedes decorar tu ciudad con varios temas y adornos para que se vea más atractiva y única. </p>
120
- <p>Tus tropas son la columna vertebral de tu ejército en Rise of Kingdoms: Lost Crusade. Necesitas entrenar y mejorar diferentes tipos de unidades que se adapten a tu estrategia y objetivos, como infantería, caballería, arqueros y unidades de asedio. También puedes desbloquear unidades especiales que son exclusivas de tu civilización o comandantes. También puedes curar a tus tropas heridas en el hospital o revivirlas en el santuario. </p>
121
- <h3>Investiga y desbloquea nuevas tecnologías y habilidades para mejorar tu rendimiento</h3>
122
- <p>La investigación es esencial en Rise of Kingdoms: Lost Crusade. Necesitas invertir tus recursos y tiempo en desbloquear nuevas tecnologías y habilidades que mejoren tu jugabilidad y te den ventaja sobre tus enemigos. Puede investigar varios temas en cuatro categorías: militar, economía, defensa y matemáticas. Cada categoría tiene sus propios beneficios y requisitos, por lo que necesitas priorizar lo que más necesitas. </p>
123
- <p>También puede desbloquear nuevas habilidades para sus comandantes mediante el uso de puntos de talento. Cada comandante tiene tres árboles de talentos que se centran en diferentes aspectos de sus habilidades, como liderazgo, conquista o apoyo. Puedes personalizar las habilidades de tus comandantes según tus preferencias y necesidades. </p>
124
- <h3>Explora y ataca a tus enemigos y bárbaros para ganar más recompensas y experiencia</h3>
125
-
126
- <p>Atacar es emocionante en Rise of Kingdoms: Lost Crusade. Puedes lanzar ataques contra las ciudades o puntos de recursos de tus enemigos para saquear sus recursos, dañar sus edificios, capturar a sus comandantes o incluso quemar sus ciudades. También puedes atacar bárbaros y otras unidades neutrales en el mapa para ganar más recompensas y experiencia. También puedes participar en varios eventos y desafíos que pondrán a prueba tus habilidades y estrategias. </p>
127
- <h3>Únete o crea una alianza para obtener más soporte y beneficios</h3>
128
- <p>Unirse o crear una alianza es crucial en Rise of Kingdoms: Lost Crusade. Puedes unirte a una alianza existente que coincida con tus objetivos y valores, o crear tu propia alianza con tus amigos u otros jugadores. Estar en una alianza te dará más apoyo y beneficios, como:</p>
129
- <ul>
130
- <li>Ayudándose unos a otros con la construcción, la investigación, la curación, etc.</li>
131
- <li>Compartir consejos y estrategias entre sí. </li>
132
- <li>Chatear entre sí usando la función de chat en el juego o mensajes de voz. </li>
133
- <li>Acceder a más características y beneficios, como la tienda de la alianza, la tecnología de la alianza, el territorio de la alianza, y las banderas de la alianza.</li>
134
- <li>Participar en eventos y misiones de alianzas que pueden recompensarte con objetos y recursos valiosos. </li>
135
- <li>Hacer la guerra contra otras alianzas o establecer relaciones diplomáticas con ellas. </li>
136
- </ul>
137
- <h2>Conclusión</h2>
138
-
139
- <h2>Preguntas frecuentes</h2>
140
- <p>Aquí hay algunas preguntas frecuentes sobre el Surgimiento de los Reinos: Cruzada Perdida:</p>
141
- <h4>Q: ¿Cómo puedo cambiar mi civilización? </h4>
142
- <p>A: Usted puede cambiar su civilización usando un artículo especial llamado cambio de la civilización. Puedes obtener este artículo completando ciertas misiones o eventos, o comprándolo en la tienda VIP o en la estación de mensajería. Solo puedes cambiar tu civilización una vez gratis; después de eso, te costará algunas gemas. </p>
143
- <h4>Q: ¿Cómo puedo obtener más gemas? </h4>
144
- <p>A: Puedes obtener más gemas completando varias tareas y actividades en el juego, como: - Completando misiones y eventos que te recompensan con gemas. - Participar en el evento Gem Mine que le permite extraer gemas desde un punto de recurso especial. - Ganar el evento Wheel of Fortune que te permite girar una rueda para tener la oportunidad de ganar gemas y otros premios. - Comprar gemas en la tienda VIP o en la estación de mensajería con dinero real u otros recursos. - Reclamar gemas de las Recompensas Diarias, las Recompensas VIP o los Regalos de la Alianza.</p>
145
- <h4>Q: ¿Cómo consigo más comandantes? </h4>
146
- <p>A: Puede obtener más comandantes mediante el uso de diferentes artículos y métodos, tales como: - Abrir cofres que contienen esculturas o estrellas comandante. Puede obtener cofres de varias fuentes, como misiones, eventos, tienda VIP, estación de mensajería, etc. - Usando esculturas de comandante para convocar o actualizar a los comandantes. Puedes conseguir esculturas de comandante de cofres, eventos, Alliance Shop, Expedition Shop, etc. - Usando estrellas para mejorar el nivel de estrellas de tu comandante. Puedes obtener estrellas de cofres, eventos, tienda VIP, estación de mensajería, etc. - Usando esculturas universales o estrellas para convocar o actualizar a cualquier comandante de tu elección. Puedes conseguir esculturas universales o estrellas de cofres, eventos, tienda VIP, Courier Station, etc.</p>
147
- <h4>Q: ¿Cómo me uno o creo una alianza? </h4>
148
-
149
- <h4>Q: ¿Cómo me pongo en contacto con el servicio de atención al cliente? </h4>
150
- <p>A: Puede ponerse en contacto con el servicio de atención al cliente siguiendo estos pasos: - Toque en el botón Configuración en la esquina superior derecha de la pantalla. - Toque en el botón de servicio al cliente en la esquina inferior izquierda de la pantalla. - Toque en el botón Contáctenos en la esquina superior derecha de la pantalla. - Complete su información y su problema y toque en Enviar.</p> 64aa2da5cf<br />
151
- <br />
152
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/dateutil/relativedelta.py DELETED
@@ -1,599 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import datetime
3
- import calendar
4
-
5
- import operator
6
- from math import copysign
7
-
8
- from six import integer_types
9
- from warnings import warn
10
-
11
- from ._common import weekday
12
-
13
- MO, TU, WE, TH, FR, SA, SU = weekdays = tuple(weekday(x) for x in range(7))
14
-
15
- __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "FR", "SA", "SU"]
16
-
17
-
18
- class relativedelta(object):
19
- """
20
- The relativedelta type is designed to be applied to an existing datetime and
21
- can replace specific components of that datetime, or represents an interval
22
- of time.
23
-
24
- It is based on the specification of the excellent work done by M.-A. Lemburg
25
- in his
26
- `mx.DateTime <https://www.egenix.com/products/python/mxBase/mxDateTime/>`_ extension.
27
- However, notice that this type does *NOT* implement the same algorithm as
28
- his work. Do *NOT* expect it to behave like mx.DateTime's counterpart.
29
-
30
- There are two different ways to build a relativedelta instance. The
31
- first one is passing it two date/datetime classes::
32
-
33
- relativedelta(datetime1, datetime2)
34
-
35
- The second one is passing it any number of the following keyword arguments::
36
-
37
- relativedelta(arg1=x,arg2=y,arg3=z...)
38
-
39
- year, month, day, hour, minute, second, microsecond:
40
- Absolute information (argument is singular); adding or subtracting a
41
- relativedelta with absolute information does not perform an arithmetic
42
- operation, but rather REPLACES the corresponding value in the
43
- original datetime with the value(s) in relativedelta.
44
-
45
- years, months, weeks, days, hours, minutes, seconds, microseconds:
46
- Relative information, may be negative (argument is plural); adding
47
- or subtracting a relativedelta with relative information performs
48
- the corresponding arithmetic operation on the original datetime value
49
- with the information in the relativedelta.
50
-
51
- weekday:
52
- One of the weekday instances (MO, TU, etc) available in the
53
- relativedelta module. These instances may receive a parameter N,
54
- specifying the Nth weekday, which could be positive or negative
55
- (like MO(+1) or MO(-2)). Not specifying it is the same as specifying
56
- +1. You can also use an integer, where 0=MO. This argument is always
57
- relative e.g. if the calculated date is already Monday, using MO(1)
58
- or MO(-1) won't change the day. To effectively make it absolute, use
59
- it in combination with the day argument (e.g. day=1, MO(1) for first
60
- Monday of the month).
61
-
62
- leapdays:
63
- Will add given days to the date found, if year is a leap
64
- year, and the date found is post 28 of february.
65
-
66
- yearday, nlyearday:
67
- Set the yearday or the non-leap year day (jump leap days).
68
- These are converted to day/month/leapdays information.
69
-
70
- There are relative and absolute forms of the keyword
71
- arguments. The plural is relative, and the singular is
72
- absolute. For each argument in the order below, the absolute form
73
- is applied first (by setting each attribute to that value) and
74
- then the relative form (by adding the value to the attribute).
75
-
76
- The order of attributes considered when this relativedelta is
77
- added to a datetime is:
78
-
79
- 1. Year
80
- 2. Month
81
- 3. Day
82
- 4. Hours
83
- 5. Minutes
84
- 6. Seconds
85
- 7. Microseconds
86
-
87
- Finally, weekday is applied, using the rule described above.
88
-
89
- For example
90
-
91
- >>> from datetime import datetime
92
- >>> from dateutil.relativedelta import relativedelta, MO
93
- >>> dt = datetime(2018, 4, 9, 13, 37, 0)
94
- >>> delta = relativedelta(hours=25, day=1, weekday=MO(1))
95
- >>> dt + delta
96
- datetime.datetime(2018, 4, 2, 14, 37)
97
-
98
- First, the day is set to 1 (the first of the month), then 25 hours
99
- are added, to get to the 2nd day and 14th hour, finally the
100
- weekday is applied, but since the 2nd is already a Monday there is
101
- no effect.
102
-
103
- """
104
-
105
- def __init__(self, dt1=None, dt2=None,
106
- years=0, months=0, days=0, leapdays=0, weeks=0,
107
- hours=0, minutes=0, seconds=0, microseconds=0,
108
- year=None, month=None, day=None, weekday=None,
109
- yearday=None, nlyearday=None,
110
- hour=None, minute=None, second=None, microsecond=None):
111
-
112
- if dt1 and dt2:
113
- # datetime is a subclass of date. So both must be date
114
- if not (isinstance(dt1, datetime.date) and
115
- isinstance(dt2, datetime.date)):
116
- raise TypeError("relativedelta only diffs datetime/date")
117
-
118
- # We allow two dates, or two datetimes, so we coerce them to be
119
- # of the same type
120
- if (isinstance(dt1, datetime.datetime) !=
121
- isinstance(dt2, datetime.datetime)):
122
- if not isinstance(dt1, datetime.datetime):
123
- dt1 = datetime.datetime.fromordinal(dt1.toordinal())
124
- elif not isinstance(dt2, datetime.datetime):
125
- dt2 = datetime.datetime.fromordinal(dt2.toordinal())
126
-
127
- self.years = 0
128
- self.months = 0
129
- self.days = 0
130
- self.leapdays = 0
131
- self.hours = 0
132
- self.minutes = 0
133
- self.seconds = 0
134
- self.microseconds = 0
135
- self.year = None
136
- self.month = None
137
- self.day = None
138
- self.weekday = None
139
- self.hour = None
140
- self.minute = None
141
- self.second = None
142
- self.microsecond = None
143
- self._has_time = 0
144
-
145
- # Get year / month delta between the two
146
- months = (dt1.year - dt2.year) * 12 + (dt1.month - dt2.month)
147
- self._set_months(months)
148
-
149
- # Remove the year/month delta so the timedelta is just well-defined
150
- # time units (seconds, days and microseconds)
151
- dtm = self.__radd__(dt2)
152
-
153
- # If we've overshot our target, make an adjustment
154
- if dt1 < dt2:
155
- compare = operator.gt
156
- increment = 1
157
- else:
158
- compare = operator.lt
159
- increment = -1
160
-
161
- while compare(dt1, dtm):
162
- months += increment
163
- self._set_months(months)
164
- dtm = self.__radd__(dt2)
165
-
166
- # Get the timedelta between the "months-adjusted" date and dt1
167
- delta = dt1 - dtm
168
- self.seconds = delta.seconds + delta.days * 86400
169
- self.microseconds = delta.microseconds
170
- else:
171
- # Check for non-integer values in integer-only quantities
172
- if any(x is not None and x != int(x) for x in (years, months)):
173
- raise ValueError("Non-integer years and months are "
174
- "ambiguous and not currently supported.")
175
-
176
- # Relative information
177
- self.years = int(years)
178
- self.months = int(months)
179
- self.days = days + weeks * 7
180
- self.leapdays = leapdays
181
- self.hours = hours
182
- self.minutes = minutes
183
- self.seconds = seconds
184
- self.microseconds = microseconds
185
-
186
- # Absolute information
187
- self.year = year
188
- self.month = month
189
- self.day = day
190
- self.hour = hour
191
- self.minute = minute
192
- self.second = second
193
- self.microsecond = microsecond
194
-
195
- if any(x is not None and int(x) != x
196
- for x in (year, month, day, hour,
197
- minute, second, microsecond)):
198
- # For now we'll deprecate floats - later it'll be an error.
199
- warn("Non-integer value passed as absolute information. " +
200
- "This is not a well-defined condition and will raise " +
201
- "errors in future versions.", DeprecationWarning)
202
-
203
- if isinstance(weekday, integer_types):
204
- self.weekday = weekdays[weekday]
205
- else:
206
- self.weekday = weekday
207
-
208
- yday = 0
209
- if nlyearday:
210
- yday = nlyearday
211
- elif yearday:
212
- yday = yearday
213
- if yearday > 59:
214
- self.leapdays = -1
215
- if yday:
216
- ydayidx = [31, 59, 90, 120, 151, 181, 212,
217
- 243, 273, 304, 334, 366]
218
- for idx, ydays in enumerate(ydayidx):
219
- if yday <= ydays:
220
- self.month = idx+1
221
- if idx == 0:
222
- self.day = yday
223
- else:
224
- self.day = yday-ydayidx[idx-1]
225
- break
226
- else:
227
- raise ValueError("invalid year day (%d)" % yday)
228
-
229
- self._fix()
230
-
231
- def _fix(self):
232
- if abs(self.microseconds) > 999999:
233
- s = _sign(self.microseconds)
234
- div, mod = divmod(self.microseconds * s, 1000000)
235
- self.microseconds = mod * s
236
- self.seconds += div * s
237
- if abs(self.seconds) > 59:
238
- s = _sign(self.seconds)
239
- div, mod = divmod(self.seconds * s, 60)
240
- self.seconds = mod * s
241
- self.minutes += div * s
242
- if abs(self.minutes) > 59:
243
- s = _sign(self.minutes)
244
- div, mod = divmod(self.minutes * s, 60)
245
- self.minutes = mod * s
246
- self.hours += div * s
247
- if abs(self.hours) > 23:
248
- s = _sign(self.hours)
249
- div, mod = divmod(self.hours * s, 24)
250
- self.hours = mod * s
251
- self.days += div * s
252
- if abs(self.months) > 11:
253
- s = _sign(self.months)
254
- div, mod = divmod(self.months * s, 12)
255
- self.months = mod * s
256
- self.years += div * s
257
- if (self.hours or self.minutes or self.seconds or self.microseconds
258
- or self.hour is not None or self.minute is not None or
259
- self.second is not None or self.microsecond is not None):
260
- self._has_time = 1
261
- else:
262
- self._has_time = 0
263
-
264
- @property
265
- def weeks(self):
266
- return int(self.days / 7.0)
267
-
268
- @weeks.setter
269
- def weeks(self, value):
270
- self.days = self.days - (self.weeks * 7) + value * 7
271
-
272
- def _set_months(self, months):
273
- self.months = months
274
- if abs(self.months) > 11:
275
- s = _sign(self.months)
276
- div, mod = divmod(self.months * s, 12)
277
- self.months = mod * s
278
- self.years = div * s
279
- else:
280
- self.years = 0
281
-
282
- def normalized(self):
283
- """
284
- Return a version of this object represented entirely using integer
285
- values for the relative attributes.
286
-
287
- >>> relativedelta(days=1.5, hours=2).normalized()
288
- relativedelta(days=+1, hours=+14)
289
-
290
- :return:
291
- Returns a :class:`dateutil.relativedelta.relativedelta` object.
292
- """
293
- # Cascade remainders down (rounding each to roughly nearest microsecond)
294
- days = int(self.days)
295
-
296
- hours_f = round(self.hours + 24 * (self.days - days), 11)
297
- hours = int(hours_f)
298
-
299
- minutes_f = round(self.minutes + 60 * (hours_f - hours), 10)
300
- minutes = int(minutes_f)
301
-
302
- seconds_f = round(self.seconds + 60 * (minutes_f - minutes), 8)
303
- seconds = int(seconds_f)
304
-
305
- microseconds = round(self.microseconds + 1e6 * (seconds_f - seconds))
306
-
307
- # Constructor carries overflow back up with call to _fix()
308
- return self.__class__(years=self.years, months=self.months,
309
- days=days, hours=hours, minutes=minutes,
310
- seconds=seconds, microseconds=microseconds,
311
- leapdays=self.leapdays, year=self.year,
312
- month=self.month, day=self.day,
313
- weekday=self.weekday, hour=self.hour,
314
- minute=self.minute, second=self.second,
315
- microsecond=self.microsecond)
316
-
317
- def __add__(self, other):
318
- if isinstance(other, relativedelta):
319
- return self.__class__(years=other.years + self.years,
320
- months=other.months + self.months,
321
- days=other.days + self.days,
322
- hours=other.hours + self.hours,
323
- minutes=other.minutes + self.minutes,
324
- seconds=other.seconds + self.seconds,
325
- microseconds=(other.microseconds +
326
- self.microseconds),
327
- leapdays=other.leapdays or self.leapdays,
328
- year=(other.year if other.year is not None
329
- else self.year),
330
- month=(other.month if other.month is not None
331
- else self.month),
332
- day=(other.day if other.day is not None
333
- else self.day),
334
- weekday=(other.weekday if other.weekday is not None
335
- else self.weekday),
336
- hour=(other.hour if other.hour is not None
337
- else self.hour),
338
- minute=(other.minute if other.minute is not None
339
- else self.minute),
340
- second=(other.second if other.second is not None
341
- else self.second),
342
- microsecond=(other.microsecond if other.microsecond
343
- is not None else
344
- self.microsecond))
345
- if isinstance(other, datetime.timedelta):
346
- return self.__class__(years=self.years,
347
- months=self.months,
348
- days=self.days + other.days,
349
- hours=self.hours,
350
- minutes=self.minutes,
351
- seconds=self.seconds + other.seconds,
352
- microseconds=self.microseconds + other.microseconds,
353
- leapdays=self.leapdays,
354
- year=self.year,
355
- month=self.month,
356
- day=self.day,
357
- weekday=self.weekday,
358
- hour=self.hour,
359
- minute=self.minute,
360
- second=self.second,
361
- microsecond=self.microsecond)
362
- if not isinstance(other, datetime.date):
363
- return NotImplemented
364
- elif self._has_time and not isinstance(other, datetime.datetime):
365
- other = datetime.datetime.fromordinal(other.toordinal())
366
- year = (self.year or other.year)+self.years
367
- month = self.month or other.month
368
- if self.months:
369
- assert 1 <= abs(self.months) <= 12
370
- month += self.months
371
- if month > 12:
372
- year += 1
373
- month -= 12
374
- elif month < 1:
375
- year -= 1
376
- month += 12
377
- day = min(calendar.monthrange(year, month)[1],
378
- self.day or other.day)
379
- repl = {"year": year, "month": month, "day": day}
380
- for attr in ["hour", "minute", "second", "microsecond"]:
381
- value = getattr(self, attr)
382
- if value is not None:
383
- repl[attr] = value
384
- days = self.days
385
- if self.leapdays and month > 2 and calendar.isleap(year):
386
- days += self.leapdays
387
- ret = (other.replace(**repl)
388
- + datetime.timedelta(days=days,
389
- hours=self.hours,
390
- minutes=self.minutes,
391
- seconds=self.seconds,
392
- microseconds=self.microseconds))
393
- if self.weekday:
394
- weekday, nth = self.weekday.weekday, self.weekday.n or 1
395
- jumpdays = (abs(nth) - 1) * 7
396
- if nth > 0:
397
- jumpdays += (7 - ret.weekday() + weekday) % 7
398
- else:
399
- jumpdays += (ret.weekday() - weekday) % 7
400
- jumpdays *= -1
401
- ret += datetime.timedelta(days=jumpdays)
402
- return ret
403
-
404
- def __radd__(self, other):
405
- return self.__add__(other)
406
-
407
- def __rsub__(self, other):
408
- return self.__neg__().__radd__(other)
409
-
410
- def __sub__(self, other):
411
- if not isinstance(other, relativedelta):
412
- return NotImplemented # In case the other object defines __rsub__
413
- return self.__class__(years=self.years - other.years,
414
- months=self.months - other.months,
415
- days=self.days - other.days,
416
- hours=self.hours - other.hours,
417
- minutes=self.minutes - other.minutes,
418
- seconds=self.seconds - other.seconds,
419
- microseconds=self.microseconds - other.microseconds,
420
- leapdays=self.leapdays or other.leapdays,
421
- year=(self.year if self.year is not None
422
- else other.year),
423
- month=(self.month if self.month is not None else
424
- other.month),
425
- day=(self.day if self.day is not None else
426
- other.day),
427
- weekday=(self.weekday if self.weekday is not None else
428
- other.weekday),
429
- hour=(self.hour if self.hour is not None else
430
- other.hour),
431
- minute=(self.minute if self.minute is not None else
432
- other.minute),
433
- second=(self.second if self.second is not None else
434
- other.second),
435
- microsecond=(self.microsecond if self.microsecond
436
- is not None else
437
- other.microsecond))
438
-
439
- def __abs__(self):
440
- return self.__class__(years=abs(self.years),
441
- months=abs(self.months),
442
- days=abs(self.days),
443
- hours=abs(self.hours),
444
- minutes=abs(self.minutes),
445
- seconds=abs(self.seconds),
446
- microseconds=abs(self.microseconds),
447
- leapdays=self.leapdays,
448
- year=self.year,
449
- month=self.month,
450
- day=self.day,
451
- weekday=self.weekday,
452
- hour=self.hour,
453
- minute=self.minute,
454
- second=self.second,
455
- microsecond=self.microsecond)
456
-
457
- def __neg__(self):
458
- return self.__class__(years=-self.years,
459
- months=-self.months,
460
- days=-self.days,
461
- hours=-self.hours,
462
- minutes=-self.minutes,
463
- seconds=-self.seconds,
464
- microseconds=-self.microseconds,
465
- leapdays=self.leapdays,
466
- year=self.year,
467
- month=self.month,
468
- day=self.day,
469
- weekday=self.weekday,
470
- hour=self.hour,
471
- minute=self.minute,
472
- second=self.second,
473
- microsecond=self.microsecond)
474
-
475
- def __bool__(self):
476
- return not (not self.years and
477
- not self.months and
478
- not self.days and
479
- not self.hours and
480
- not self.minutes and
481
- not self.seconds and
482
- not self.microseconds and
483
- not self.leapdays and
484
- self.year is None and
485
- self.month is None and
486
- self.day is None and
487
- self.weekday is None and
488
- self.hour is None and
489
- self.minute is None and
490
- self.second is None and
491
- self.microsecond is None)
492
- # Compatibility with Python 2.x
493
- __nonzero__ = __bool__
494
-
495
- def __mul__(self, other):
496
- try:
497
- f = float(other)
498
- except TypeError:
499
- return NotImplemented
500
-
501
- return self.__class__(years=int(self.years * f),
502
- months=int(self.months * f),
503
- days=int(self.days * f),
504
- hours=int(self.hours * f),
505
- minutes=int(self.minutes * f),
506
- seconds=int(self.seconds * f),
507
- microseconds=int(self.microseconds * f),
508
- leapdays=self.leapdays,
509
- year=self.year,
510
- month=self.month,
511
- day=self.day,
512
- weekday=self.weekday,
513
- hour=self.hour,
514
- minute=self.minute,
515
- second=self.second,
516
- microsecond=self.microsecond)
517
-
518
- __rmul__ = __mul__
519
-
520
- def __eq__(self, other):
521
- if not isinstance(other, relativedelta):
522
- return NotImplemented
523
- if self.weekday or other.weekday:
524
- if not self.weekday or not other.weekday:
525
- return False
526
- if self.weekday.weekday != other.weekday.weekday:
527
- return False
528
- n1, n2 = self.weekday.n, other.weekday.n
529
- if n1 != n2 and not ((not n1 or n1 == 1) and (not n2 or n2 == 1)):
530
- return False
531
- return (self.years == other.years and
532
- self.months == other.months and
533
- self.days == other.days and
534
- self.hours == other.hours and
535
- self.minutes == other.minutes and
536
- self.seconds == other.seconds and
537
- self.microseconds == other.microseconds and
538
- self.leapdays == other.leapdays and
539
- self.year == other.year and
540
- self.month == other.month and
541
- self.day == other.day and
542
- self.hour == other.hour and
543
- self.minute == other.minute and
544
- self.second == other.second and
545
- self.microsecond == other.microsecond)
546
-
547
- def __hash__(self):
548
- return hash((
549
- self.weekday,
550
- self.years,
551
- self.months,
552
- self.days,
553
- self.hours,
554
- self.minutes,
555
- self.seconds,
556
- self.microseconds,
557
- self.leapdays,
558
- self.year,
559
- self.month,
560
- self.day,
561
- self.hour,
562
- self.minute,
563
- self.second,
564
- self.microsecond,
565
- ))
566
-
567
- def __ne__(self, other):
568
- return not self.__eq__(other)
569
-
570
- def __div__(self, other):
571
- try:
572
- reciprocal = 1 / float(other)
573
- except TypeError:
574
- return NotImplemented
575
-
576
- return self.__mul__(reciprocal)
577
-
578
- __truediv__ = __div__
579
-
580
- def __repr__(self):
581
- l = []
582
- for attr in ["years", "months", "days", "leapdays",
583
- "hours", "minutes", "seconds", "microseconds"]:
584
- value = getattr(self, attr)
585
- if value:
586
- l.append("{attr}={value:+g}".format(attr=attr, value=value))
587
- for attr in ["year", "month", "day", "weekday",
588
- "hour", "minute", "second", "microsecond"]:
589
- value = getattr(self, attr)
590
- if value is not None:
591
- l.append("{attr}={value}".format(attr=attr, value=repr(value)))
592
- return "{classname}({attrs})".format(classname=self.__class__.__name__,
593
- attrs=", ".join(l))
594
-
595
-
596
- def _sign(x):
597
- return int(copysign(1, x))
598
-
599
- # vim:ts=4:sw=4:et
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/vcs/__init__.py DELETED
@@ -1,15 +0,0 @@
1
- # Expose a limited set of classes and functions so callers outside of
2
- # the vcs package don't need to import deeper than `pip._internal.vcs`.
3
- # (The test directory may still need to import from a vcs sub-package.)
4
- # Import all vcs modules to register each VCS in the VcsSupport object.
5
- import pip._internal.vcs.bazaar
6
- import pip._internal.vcs.git
7
- import pip._internal.vcs.mercurial
8
- import pip._internal.vcs.subversion # noqa: F401
9
- from pip._internal.vcs.versioncontrol import ( # noqa: F401
10
- RemoteNotFoundError,
11
- RemoteNotValidError,
12
- is_url,
13
- make_vcs_requirement_url,
14
- vcs,
15
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/platformdirs/__main__.py DELETED
@@ -1,47 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from pip._vendor.platformdirs import PlatformDirs, __version__
4
-
5
- PROPS = (
6
- "user_data_dir",
7
- "user_config_dir",
8
- "user_cache_dir",
9
- "user_state_dir",
10
- "user_log_dir",
11
- "user_documents_dir",
12
- "user_runtime_dir",
13
- "site_data_dir",
14
- "site_config_dir",
15
- "site_cache_dir",
16
- )
17
-
18
-
19
- def main() -> None:
20
- app_name = "MyApp"
21
- app_author = "MyCompany"
22
-
23
- print(f"-- platformdirs {__version__} --")
24
-
25
- print("-- app dirs (with optional 'version')")
26
- dirs = PlatformDirs(app_name, app_author, version="1.0")
27
- for prop in PROPS:
28
- print(f"{prop}: {getattr(dirs, prop)}")
29
-
30
- print("\n-- app dirs (without optional 'version')")
31
- dirs = PlatformDirs(app_name, app_author)
32
- for prop in PROPS:
33
- print(f"{prop}: {getattr(dirs, prop)}")
34
-
35
- print("\n-- app dirs (without optional 'appauthor')")
36
- dirs = PlatformDirs(app_name)
37
- for prop in PROPS:
38
- print(f"{prop}: {getattr(dirs, prop)}")
39
-
40
- print("\n-- app dirs (with disabled 'appauthor')")
41
- dirs = PlatformDirs(app_name, appauthor=False)
42
- for prop in PROPS:
43
- print(f"{prop}: {getattr(dirs, prop)}")
44
-
45
-
46
- if __name__ == "__main__":
47
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/BilalSardar/Text-To-image-AllModels/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Text To Image AllModels
3
- emoji: 🐠
4
- colorFrom: blue
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.15.0
8
- app_file: app.py
9
- pinned: false
10
- license: openrail
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/grid-feats-vqa/grid_feats/dataset_mapper.py DELETED
@@ -1,164 +0,0 @@
1
- # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
2
- import copy
3
- import logging
4
- import numpy as np
5
- import torch
6
- from fvcore.common.file_io import PathManager
7
- from PIL import Image
8
-
9
- from detectron2.data import detection_utils as utils
10
- from detectron2.data import transforms as T
11
- from detectron2.data import DatasetMapper
12
- from detectron2.structures import (
13
- BitMasks,
14
- Boxes,
15
- BoxMode,
16
- Instances,
17
- Keypoints,
18
- PolygonMasks,
19
- polygons_to_bitmask,
20
- )
21
-
22
-
23
- def annotations_to_instances_with_attributes(annos,
24
- image_size,
25
- mask_format="polygon",
26
- load_attributes=False,
27
- max_attr_per_ins=16):
28
- """
29
- Extend the function annotations_to_instances() to support attributes
30
- """
31
- boxes = [BoxMode.convert(obj["bbox"], obj["bbox_mode"], BoxMode.XYXY_ABS) for obj in annos]
32
- target = Instances(image_size)
33
- boxes = target.gt_boxes = Boxes(boxes)
34
- boxes.clip(image_size)
35
-
36
- classes = [obj["category_id"] for obj in annos]
37
- classes = torch.tensor(classes, dtype=torch.int64)
38
- target.gt_classes = classes
39
-
40
- if len(annos) and "segmentation" in annos[0]:
41
- segms = [obj["segmentation"] for obj in annos]
42
- if mask_format == "polygon":
43
- masks = PolygonMasks(segms)
44
- else:
45
- assert mask_format == "bitmask", mask_format
46
- masks = []
47
- for segm in segms:
48
- if isinstance(segm, list):
49
- # polygon
50
- masks.append(polygons_to_bitmask(segm, *image_size))
51
- elif isinstance(segm, dict):
52
- # COCO RLE
53
- masks.append(mask_util.decode(segm))
54
- elif isinstance(segm, np.ndarray):
55
- assert segm.ndim == 2, "Expect segmentation of 2 dimensions, got {}.".format(
56
- segm.ndim
57
- )
58
- # mask array
59
- masks.append(segm)
60
- else:
61
- raise ValueError(
62
- "Cannot convert segmentation of type '{}' to BitMasks!"
63
- "Supported types are: polygons as list[list[float] or ndarray],"
64
- " COCO-style RLE as a dict, or a full-image segmentation mask "
65
- "as a 2D ndarray.".format(type(segm))
66
- )
67
- masks = BitMasks(
68
- torch.stack([torch.from_numpy(np.ascontiguousarray(x)) for x in masks])
69
- )
70
- target.gt_masks = masks
71
-
72
- if len(annos) and "keypoints" in annos[0]:
73
- kpts = [obj.get("keypoints", []) for obj in annos]
74
- target.gt_keypoints = Keypoints(kpts)
75
-
76
- if len(annos) and load_attributes:
77
- attributes = -torch.ones((len(annos), max_attr_per_ins), dtype=torch.int64)
78
- for idx, anno in enumerate(annos):
79
- if "attribute_ids" in anno:
80
- for jdx, attr_id in enumerate(anno["attribute_ids"]):
81
- attributes[idx, jdx] = attr_id
82
- target.gt_attributes = attributes
83
-
84
- return target
85
-
86
-
87
- class AttributeDatasetMapper(DatasetMapper):
88
- """
89
- Extend DatasetMapper to support attributes.
90
- """
91
- def __init__(self, cfg, is_train=True):
92
- super().__init__(cfg, is_train)
93
-
94
- # fmt: off
95
- self.attribute_on = cfg.MODEL.ATTRIBUTE_ON
96
- self.max_attr_per_ins = cfg.INPUT.MAX_ATTR_PER_INS
97
- # fmt: on
98
-
99
- def __call__(self, dataset_dict):
100
- dataset_dict = copy.deepcopy(dataset_dict)
101
- image = utils.read_image(dataset_dict["file_name"], format=self.img_format)
102
- utils.check_image_size(dataset_dict, image)
103
-
104
- if "annotations" not in dataset_dict:
105
- image, transforms = T.apply_transform_gens(
106
- ([self.crop_gen] if self.crop_gen else []) + self.tfm_gens, image
107
- )
108
- else:
109
- if self.crop_gen:
110
- crop_tfm = utils.gen_crop_transform_with_instance(
111
- self.crop_gen.get_crop_size(image.shape[:2]),
112
- image.shape[:2],
113
- np.random.choice(dataset_dict["annotations"]),
114
- )
115
- image = crop_tfm.apply_image(image)
116
- image, transforms = T.apply_transform_gens(self.tfm_gens, image)
117
- if self.crop_gen:
118
- transforms = crop_tfm + transforms
119
-
120
- image_shape = image.shape[:2]
121
- dataset_dict["image"] = torch.as_tensor(np.ascontiguousarray(image.transpose(2, 0, 1)))
122
-
123
- if self.load_proposals:
124
- utils.transform_proposals(
125
- dataset_dict, image_shape, transforms, self.min_box_side_len, self.proposal_topk
126
- )
127
-
128
- if not self.is_train:
129
- dataset_dict.pop("annotations", None)
130
- dataset_dict.pop("sem_seg_file_name", None)
131
- return dataset_dict
132
-
133
- if "annotations" in dataset_dict:
134
- for anno in dataset_dict["annotations"]:
135
- if not self.mask_on:
136
- anno.pop("segmentation", None)
137
- if not self.keypoint_on:
138
- anno.pop("keypoints", None)
139
- if not self.attribute_on:
140
- anno.pop("attribute_ids")
141
-
142
- annos = [
143
- utils.transform_instance_annotations(
144
- obj, transforms, image_shape, keypoint_hflip_indices=self.keypoint_hflip_indices
145
- )
146
- for obj in dataset_dict.pop("annotations")
147
- if obj.get("iscrowd", 0) == 0
148
- ]
149
- instances = annotations_to_instances_with_attributes(
150
- annos, image_shape, mask_format=self.mask_format,
151
- load_attributes=self.attribute_on, max_attr_per_ins=self.max_attr_per_ins
152
- )
153
- if self.crop_gen and instances.has("gt_masks"):
154
- instances.gt_boxes = instances.gt_masks.get_bounding_boxes()
155
- dataset_dict["instances"] = utils.filter_empty_instances(instances)
156
-
157
- if "sem_seg_file_name" in dataset_dict:
158
- with PathManager.open(dataset_dict.pop("sem_seg_file_name"), "rb") as f:
159
- sem_seg_gt = Image.open(f)
160
- sem_seg_gt = np.asarray(sem_seg_gt, dtype="uint8")
161
- sem_seg_gt = transforms.apply_segmentation(sem_seg_gt)
162
- sem_seg_gt = torch.as_tensor(sem_seg_gt.astype("long"))
163
- dataset_dict["sem_seg"] = sem_seg_gt
164
- return dataset_dict
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/Dual-Key_Backdoor_Attacks/openvqa/openvqa/datasets/dataset_loader.py DELETED
@@ -1,29 +0,0 @@
1
- # --------------------------------------------------------
2
- # OpenVQA
3
- # Written by Yuhao Cui https://github.com/cuiyuhao1996
4
- # --------------------------------------------------------
5
-
6
- from importlib import import_module
7
-
8
- class DatasetLoader:
9
- def __init__(self, __C):
10
- self.__C = __C
11
-
12
- self.dataset = __C.DATASET
13
- dataset_moudle_path = 'openvqa.datasets.' + self.dataset +'.' + self.dataset + '_loader'
14
- self.dataset_moudle = import_module(dataset_moudle_path)
15
-
16
- def DataSet(self):
17
- return self.dataset_moudle.DataSet(self.__C)
18
-
19
-
20
- class EvalLoader:
21
- def __init__(self, __C):
22
- self.__C = __C
23
-
24
- self.dataset = __C.DATASET
25
- eval_moudle_path = 'openvqa.datasets.' + self.dataset + '.' + 'eval' + '.' + 'result_eval'
26
- self.eval_moudle = import_module(eval_moudle_path)
27
-
28
- def eval(self, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7):
29
- return self.eval_moudle.eval(self.__C, __arg1, __arg2, __arg3, __arg4, __arg5, __arg6, __arg7)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/pybind11/tests/test_stl.cpp DELETED
@@ -1,324 +0,0 @@
1
- /*
2
- tests/test_stl.cpp -- STL type casters
3
-
4
- Copyright (c) 2017 Wenzel Jakob <[email protected]>
5
-
6
- All rights reserved. Use of this source code is governed by a
7
- BSD-style license that can be found in the LICENSE file.
8
- */
9
-
10
- #include "pybind11_tests.h"
11
- #include "constructor_stats.h"
12
- #include <pybind11/stl.h>
13
-
14
- #include <vector>
15
- #include <string>
16
-
17
- // Test with `std::variant` in C++17 mode, or with `boost::variant` in C++11/14
18
- #if PYBIND11_HAS_VARIANT
19
- using std::variant;
20
- #elif defined(PYBIND11_TEST_BOOST) && (!defined(_MSC_VER) || _MSC_VER >= 1910)
21
- # include <boost/variant.hpp>
22
- # define PYBIND11_HAS_VARIANT 1
23
- using boost::variant;
24
-
25
- namespace pybind11 { namespace detail {
26
- template <typename... Ts>
27
- struct type_caster<boost::variant<Ts...>> : variant_caster<boost::variant<Ts...>> {};
28
-
29
- template <>
30
- struct visit_helper<boost::variant> {
31
- template <typename... Args>
32
- static auto call(Args &&...args) -> decltype(boost::apply_visitor(args...)) {
33
- return boost::apply_visitor(args...);
34
- }
35
- };
36
- }} // namespace pybind11::detail
37
- #endif
38
-
39
- PYBIND11_MAKE_OPAQUE(std::vector<std::string, std::allocator<std::string>>);
40
-
41
- /// Issue #528: templated constructor
42
- struct TplCtorClass {
43
- template <typename T> TplCtorClass(const T &) { }
44
- bool operator==(const TplCtorClass &) const { return true; }
45
- };
46
-
47
- namespace std {
48
- template <>
49
- struct hash<TplCtorClass> { size_t operator()(const TplCtorClass &) const { return 0; } };
50
- }
51
-
52
-
53
- template <template <typename> class OptionalImpl, typename T>
54
- struct OptionalHolder
55
- {
56
- OptionalHolder() = default;
57
- bool member_initialized() const {
58
- return member && member->initialized;
59
- }
60
- OptionalImpl<T> member = T{};
61
- };
62
-
63
-
64
- TEST_SUBMODULE(stl, m) {
65
- // test_vector
66
- m.def("cast_vector", []() { return std::vector<int>{1}; });
67
- m.def("load_vector", [](const std::vector<int> &v) { return v.at(0) == 1 && v.at(1) == 2; });
68
- // `std::vector<bool>` is special because it returns proxy objects instead of references
69
- m.def("cast_bool_vector", []() { return std::vector<bool>{true, false}; });
70
- m.def("load_bool_vector", [](const std::vector<bool> &v) {
71
- return v.at(0) == true && v.at(1) == false;
72
- });
73
- // Unnumbered regression (caused by #936): pointers to stl containers aren't castable
74
- static std::vector<RValueCaster> lvv{2};
75
- m.def("cast_ptr_vector", []() { return &lvv; });
76
-
77
- // test_deque
78
- m.def("cast_deque", []() { return std::deque<int>{1}; });
79
- m.def("load_deque", [](const std::deque<int> &v) { return v.at(0) == 1 && v.at(1) == 2; });
80
-
81
- // test_array
82
- m.def("cast_array", []() { return std::array<int, 2> {{1 , 2}}; });
83
- m.def("load_array", [](const std::array<int, 2> &a) { return a[0] == 1 && a[1] == 2; });
84
-
85
- // test_valarray
86
- m.def("cast_valarray", []() { return std::valarray<int>{1, 4, 9}; });
87
- m.def("load_valarray", [](const std::valarray<int>& v) {
88
- return v.size() == 3 && v[0] == 1 && v[1] == 4 && v[2] == 9;
89
- });
90
-
91
- // test_map
92
- m.def("cast_map", []() { return std::map<std::string, std::string>{{"key", "value"}}; });
93
- m.def("load_map", [](const std::map<std::string, std::string> &map) {
94
- return map.at("key") == "value" && map.at("key2") == "value2";
95
- });
96
-
97
- // test_set
98
- m.def("cast_set", []() { return std::set<std::string>{"key1", "key2"}; });
99
- m.def("load_set", [](const std::set<std::string> &set) {
100
- return set.count("key1") && set.count("key2") && set.count("key3");
101
- });
102
-
103
- // test_recursive_casting
104
- m.def("cast_rv_vector", []() { return std::vector<RValueCaster>{2}; });
105
- m.def("cast_rv_array", []() { return std::array<RValueCaster, 3>(); });
106
- // NB: map and set keys are `const`, so while we technically do move them (as `const Type &&`),
107
- // casters don't typically do anything with that, which means they fall to the `const Type &`
108
- // caster.
109
- m.def("cast_rv_map", []() { return std::unordered_map<std::string, RValueCaster>{{"a", RValueCaster{}}}; });
110
- m.def("cast_rv_nested", []() {
111
- std::vector<std::array<std::list<std::unordered_map<std::string, RValueCaster>>, 2>> v;
112
- v.emplace_back(); // add an array
113
- v.back()[0].emplace_back(); // add a map to the array
114
- v.back()[0].back().emplace("b", RValueCaster{});
115
- v.back()[0].back().emplace("c", RValueCaster{});
116
- v.back()[1].emplace_back(); // add a map to the array
117
- v.back()[1].back().emplace("a", RValueCaster{});
118
- return v;
119
- });
120
- static std::array<RValueCaster, 2> lva;
121
- static std::unordered_map<std::string, RValueCaster> lvm{{"a", RValueCaster{}}, {"b", RValueCaster{}}};
122
- static std::unordered_map<std::string, std::vector<std::list<std::array<RValueCaster, 2>>>> lvn;
123
- lvn["a"].emplace_back(); // add a list
124
- lvn["a"].back().emplace_back(); // add an array
125
- lvn["a"].emplace_back(); // another list
126
- lvn["a"].back().emplace_back(); // add an array
127
- lvn["b"].emplace_back(); // add a list
128
- lvn["b"].back().emplace_back(); // add an array
129
- lvn["b"].back().emplace_back(); // add another array
130
- m.def("cast_lv_vector", []() -> const decltype(lvv) & { return lvv; });
131
- m.def("cast_lv_array", []() -> const decltype(lva) & { return lva; });
132
- m.def("cast_lv_map", []() -> const decltype(lvm) & { return lvm; });
133
- m.def("cast_lv_nested", []() -> const decltype(lvn) & { return lvn; });
134
- // #853:
135
- m.def("cast_unique_ptr_vector", []() {
136
- std::vector<std::unique_ptr<UserType>> v;
137
- v.emplace_back(new UserType{7});
138
- v.emplace_back(new UserType{42});
139
- return v;
140
- });
141
-
142
- // test_move_out_container
143
- struct MoveOutContainer {
144
- struct Value { int value; };
145
- std::list<Value> move_list() const { return {{0}, {1}, {2}}; }
146
- };
147
- py::class_<MoveOutContainer::Value>(m, "MoveOutContainerValue")
148
- .def_readonly("value", &MoveOutContainer::Value::value);
149
- py::class_<MoveOutContainer>(m, "MoveOutContainer")
150
- .def(py::init<>())
151
- .def_property_readonly("move_list", &MoveOutContainer::move_list);
152
-
153
- // Class that can be move- and copy-constructed, but not assigned
154
- struct NoAssign {
155
- int value;
156
-
157
- explicit NoAssign(int value = 0) : value(value) { }
158
- NoAssign(const NoAssign &) = default;
159
- NoAssign(NoAssign &&) = default;
160
-
161
- NoAssign &operator=(const NoAssign &) = delete;
162
- NoAssign &operator=(NoAssign &&) = delete;
163
- };
164
- py::class_<NoAssign>(m, "NoAssign", "Class with no C++ assignment operators")
165
- .def(py::init<>())
166
- .def(py::init<int>());
167
-
168
-
169
- struct MoveOutDetector
170
- {
171
- MoveOutDetector() = default;
172
- MoveOutDetector(const MoveOutDetector&) = default;
173
- MoveOutDetector(MoveOutDetector&& other) noexcept
174
- : initialized(other.initialized) {
175
- // steal underlying resource
176
- other.initialized = false;
177
- }
178
- bool initialized = true;
179
- };
180
- py::class_<MoveOutDetector>(m, "MoveOutDetector", "Class with move tracking")
181
- .def(py::init<>())
182
- .def_readonly("initialized", &MoveOutDetector::initialized);
183
-
184
-
185
- #ifdef PYBIND11_HAS_OPTIONAL
186
- // test_optional
187
- m.attr("has_optional") = true;
188
-
189
- using opt_int = std::optional<int>;
190
- using opt_no_assign = std::optional<NoAssign>;
191
- m.def("double_or_zero", [](const opt_int& x) -> int {
192
- return x.value_or(0) * 2;
193
- });
194
- m.def("half_or_none", [](int x) -> opt_int {
195
- return x ? opt_int(x / 2) : opt_int();
196
- });
197
- m.def("test_nullopt", [](opt_int x) {
198
- return x.value_or(42);
199
- }, py::arg_v("x", std::nullopt, "None"));
200
- m.def("test_no_assign", [](const opt_no_assign &x) {
201
- return x ? x->value : 42;
202
- }, py::arg_v("x", std::nullopt, "None"));
203
-
204
- m.def("nodefer_none_optional", [](std::optional<int>) { return true; });
205
- m.def("nodefer_none_optional", [](py::none) { return false; });
206
-
207
- using opt_holder = OptionalHolder<std::optional, MoveOutDetector>;
208
- py::class_<opt_holder>(m, "OptionalHolder", "Class with optional member")
209
- .def(py::init<>())
210
- .def_readonly("member", &opt_holder::member)
211
- .def("member_initialized", &opt_holder::member_initialized);
212
- #endif
213
-
214
- #ifdef PYBIND11_HAS_EXP_OPTIONAL
215
- // test_exp_optional
216
- m.attr("has_exp_optional") = true;
217
-
218
- using exp_opt_int = std::experimental::optional<int>;
219
- using exp_opt_no_assign = std::experimental::optional<NoAssign>;
220
- m.def("double_or_zero_exp", [](const exp_opt_int& x) -> int {
221
- return x.value_or(0) * 2;
222
- });
223
- m.def("half_or_none_exp", [](int x) -> exp_opt_int {
224
- return x ? exp_opt_int(x / 2) : exp_opt_int();
225
- });
226
- m.def("test_nullopt_exp", [](exp_opt_int x) {
227
- return x.value_or(42);
228
- }, py::arg_v("x", std::experimental::nullopt, "None"));
229
- m.def("test_no_assign_exp", [](const exp_opt_no_assign &x) {
230
- return x ? x->value : 42;
231
- }, py::arg_v("x", std::experimental::nullopt, "None"));
232
-
233
- using opt_exp_holder = OptionalHolder<std::experimental::optional, MoveOutDetector>;
234
- py::class_<opt_exp_holder>(m, "OptionalExpHolder", "Class with optional member")
235
- .def(py::init<>())
236
- .def_readonly("member", &opt_exp_holder::member)
237
- .def("member_initialized", &opt_exp_holder::member_initialized);
238
- #endif
239
-
240
- #ifdef PYBIND11_HAS_VARIANT
241
- static_assert(std::is_same<py::detail::variant_caster_visitor::result_type, py::handle>::value,
242
- "visitor::result_type is required by boost::variant in C++11 mode");
243
-
244
- struct visitor {
245
- using result_type = const char *;
246
-
247
- result_type operator()(int) { return "int"; }
248
- result_type operator()(std::string) { return "std::string"; }
249
- result_type operator()(double) { return "double"; }
250
- result_type operator()(std::nullptr_t) { return "std::nullptr_t"; }
251
- };
252
-
253
- // test_variant
254
- m.def("load_variant", [](variant<int, std::string, double, std::nullptr_t> v) {
255
- return py::detail::visit_helper<variant>::call(visitor(), v);
256
- });
257
- m.def("load_variant_2pass", [](variant<double, int> v) {
258
- return py::detail::visit_helper<variant>::call(visitor(), v);
259
- });
260
- m.def("cast_variant", []() {
261
- using V = variant<int, std::string>;
262
- return py::make_tuple(V(5), V("Hello"));
263
- });
264
- #endif
265
-
266
- // #528: templated constructor
267
- // (no python tests: the test here is that this compiles)
268
- m.def("tpl_ctor_vector", [](std::vector<TplCtorClass> &) {});
269
- m.def("tpl_ctor_map", [](std::unordered_map<TplCtorClass, TplCtorClass> &) {});
270
- m.def("tpl_ctor_set", [](std::unordered_set<TplCtorClass> &) {});
271
- #if defined(PYBIND11_HAS_OPTIONAL)
272
- m.def("tpl_constr_optional", [](std::optional<TplCtorClass> &) {});
273
- #elif defined(PYBIND11_HAS_EXP_OPTIONAL)
274
- m.def("tpl_constr_optional", [](std::experimental::optional<TplCtorClass> &) {});
275
- #endif
276
-
277
- // test_vec_of_reference_wrapper
278
- // #171: Can't return STL structures containing reference wrapper
279
- m.def("return_vec_of_reference_wrapper", [](std::reference_wrapper<UserType> p4) {
280
- static UserType p1{1}, p2{2}, p3{3};
281
- return std::vector<std::reference_wrapper<UserType>> {
282
- std::ref(p1), std::ref(p2), std::ref(p3), p4
283
- };
284
- });
285
-
286
- // test_stl_pass_by_pointer
287
- m.def("stl_pass_by_pointer", [](std::vector<int>* v) { return *v; }, "v"_a=nullptr);
288
-
289
- // #1258: pybind11/stl.h converts string to vector<string>
290
- m.def("func_with_string_or_vector_string_arg_overload", [](std::vector<std::string>) { return 1; });
291
- m.def("func_with_string_or_vector_string_arg_overload", [](std::list<std::string>) { return 2; });
292
- m.def("func_with_string_or_vector_string_arg_overload", [](std::string) { return 3; });
293
-
294
- class Placeholder {
295
- public:
296
- Placeholder() { print_created(this); }
297
- Placeholder(const Placeholder &) = delete;
298
- ~Placeholder() { print_destroyed(this); }
299
- };
300
- py::class_<Placeholder>(m, "Placeholder");
301
-
302
- /// test_stl_vector_ownership
303
- m.def("test_stl_ownership",
304
- []() {
305
- std::vector<Placeholder *> result;
306
- result.push_back(new Placeholder());
307
- return result;
308
- },
309
- py::return_value_policy::take_ownership);
310
-
311
- m.def("array_cast_sequence", [](std::array<int, 3> x) { return x; });
312
-
313
- /// test_issue_1561
314
- struct Issue1561Inner { std::string data; };
315
- struct Issue1561Outer { std::vector<Issue1561Inner> list; };
316
-
317
- py::class_<Issue1561Inner>(m, "Issue1561Inner")
318
- .def(py::init<std::string>())
319
- .def_readwrite("data", &Issue1561Inner::data);
320
-
321
- py::class_<Issue1561Outer>(m, "Issue1561Outer")
322
- .def(py::init<>())
323
- .def_readwrite("list", &Issue1561Outer::list);
324
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/pydiffvg_tensorflow/image.py DELETED
@@ -1,22 +0,0 @@
1
- import numpy as np
2
- import skimage
3
- import skimage.io
4
- import os
5
-
6
- def imwrite(img, filename, gamma = 2.2, normalize = False):
7
- directory = os.path.dirname(filename)
8
- if directory != '' and not os.path.exists(directory):
9
- os.makedirs(directory)
10
-
11
- if not isinstance(img, np.ndarray):
12
- img = img.numpy()
13
- if normalize:
14
- img_rng = np.max(img) - np.min(img)
15
- if img_rng > 0:
16
- img = (img - np.min(img)) / img_rng
17
- img = np.clip(img, 0.0, 1.0)
18
- if img.ndim==2:
19
- #repeat along the third dimension
20
- img=np.expand_dims(img,2)
21
- img[:, :, :3] = np.power(img[:, :, :3], 1.0/gamma)
22
- skimage.io.imsave(filename, (img * 255).astype(np.uint8))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/regionclip-demo/detectron2/modeling/backbone/build.py DELETED
@@ -1,48 +0,0 @@
1
- # Copyright (c) Facebook, Inc. and its affiliates.
2
- from detectron2.layers import ShapeSpec
3
- from detectron2.utils.registry import Registry
4
-
5
- from .backbone import Backbone
6
-
7
- BACKBONE_REGISTRY = Registry("BACKBONE")
8
- BACKBONE_REGISTRY.__doc__ = """
9
- Registry for backbones, which extract feature maps from images
10
-
11
- The registered object must be a callable that accepts two arguments:
12
-
13
- 1. A :class:`detectron2.config.CfgNode`
14
- 2. A :class:`detectron2.layers.ShapeSpec`, which contains the input shape specification.
15
-
16
- Registered object must return instance of :class:`Backbone`.
17
- """
18
-
19
-
20
- def build_backbone(cfg, input_shape=None):
21
- """
22
- Build a backbone from `cfg.MODEL.BACKBONE.NAME`.
23
-
24
- Returns:
25
- an instance of :class:`Backbone`
26
- """
27
- if input_shape is None:
28
- input_shape = ShapeSpec(channels=len(cfg.MODEL.PIXEL_MEAN))
29
-
30
- backbone_name = cfg.MODEL.BACKBONE.NAME
31
- backbone = BACKBONE_REGISTRY.get(backbone_name)(cfg, input_shape)
32
- assert isinstance(backbone, Backbone)
33
- return backbone
34
-
35
- def build_text_backbone(cfg, input_shape=None):
36
- """
37
- Build a backbone from `cfg.MODEL.BACKBONE.NAME`.
38
-
39
- Returns:
40
- an instance of :class:`Backbone`
41
- """
42
- if input_shape is None:
43
- input_shape = ShapeSpec(channels=len(cfg.MODEL.PIXEL_MEAN))
44
-
45
- backbone_name = cfg.MODEL.BACKBONE.NAME
46
- backbone = BACKBONE_REGISTRY.get(backbone_name)(cfg, input_shape)
47
- assert isinstance(backbone, Backbone)
48
- return backbone
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ChallengeHub/Chinese-LangChain/corpus/zh_wikipedia/README.md DELETED
@@ -1,114 +0,0 @@
1
- ## 知识库构建
2
-
3
-
4
- ### 1 Wikipedia构建
5
-
6
- 参考教程:https://blog.51cto.com/u_15127535/2697309
7
-
8
-
9
- 一、维基百科
10
-
11
- 维基百科(Wikipedia),是一个基于维基技术的多语言百科全书协作计划,也是一部用不同语言写成的网络百科全书。维基百科是由吉米·威尔士与拉里·桑格两人合作创建的,于2001年1月13日在互联网上推出网站服务,并在2001年1月15日正式展开网络百科全书的项目。
12
-
13
-
14
-
15
- 二、维基百科处理
16
-
17
- 1 环境配置(1)编程语言采用 python3(2)Gensim第三方库,Gensim是一个Python的工具包,其中有包含了中文维基百科数据处理的类,使用方便。
18
- Gensim : https://github.com/RaRe-Technologies/gensim
19
-
20
- 使用 pip install gensim 安装gensim。
21
-
22
- (3)OpenCC第三方库,是中文字符转换,包括中文简体繁体相互转换等。
23
-
24
- OpenCC:https://github.com/BYVoid/OpenCC,OpenCC源码采用c++实现,如果会用c++的可以使用根据介绍,make编译源码。
25
-
26
- OpenCC也有python版本实现,可以通过pip安装(pip install opencc-python),速度要比c++版慢,但是使用方便,安装简单,推荐使用pip安装。
27
-
28
-
29
-
30
- 2 数据下载
31
-
32
- 中文维基百科数据按月进行更新备份,一般情况下,下载当前最新的数据,下载地址(https://dumps.wikimedia.org/zhwiki/latest/),我们下载的数据是:zhwiki-latest-pages-articles.xml.bz2。
33
-
34
- 中文维基百科数据一般包含如下几个部分:
35
-
36
-
37
-
38
- 训练词向量采用的数据是正文数据,下面我们将对正文数据进行处理。
39
-
40
-
41
-
42
- 3 数据抽取
43
-
44
- 下载下来的数据是压缩文件(bz2,gz),不需要解压,这里已经写好了一份利用gensim处理维基百科数据的脚本
45
-
46
- wikidata_processhttps://github.com/bamtercelboo/corpus_process_script/tree/master/wikidata_process
47
-
48
- 使用:
49
-
50
- python wiki_process.py zhwiki-latest-pages-articles.xml.bz2 zhwiki-latest.txt
51
-
52
- 这部分需要一些的时间,处理过后的得到一份中文维基百科正文数据(zhwiki-latest.txt)。
53
-
54
- 输出文件类似于:
55
-
56
- 歐幾里得 西元前三世紀的古希臘數學家 現在被認為是幾何之父 此畫為拉斐爾的作品 雅典學院 数学 是利用符号语言研究數量 结构 变化以及空间等概念的一門学科
57
-
58
-
59
-
60
- 4 中文繁体转简体
61
-
62
- 经过上述脚本得到的文件包含了大量的中文繁体字,我们需要将其转换成中文简体字。
63
-
64
- 我们利用OpenCC进行繁体转简体的操作,这里已经写好了一份python版本的脚本来进行处理
65
-
66
- chinese_t2s
67
-
68
- https://github.com/bamtercelboo/corpus_process_script/tree/master/chinese_t2s
69
-
70
- 使用:
71
-
72
- python chinese_t2s.py –input input_file –output output_file
73
-
74
- like:
75
-
76
- python chinese_t2s.py –input zhwiki-latest.txt –output zhwiki-latest-simplified.txt
77
-
78
- 输出文件类似于
79
-
80
- 欧几里得 西元前三世纪的古希腊数学家 现在被认为是几何之父 此画为拉斐尔的作品 雅典学院 数学 是利用符号语言研究数量 结构 变化以及空间等概念的一门学科
81
-
82
-       5.清洗语料
83
-
84
- 上述处理已经得到了我们想要的数据,但是在其他的一些任务中,还需要对这份数据进行简单的处理,像词向量任务,在这得到的数据里,还包含很多的英文,日文,德语,中文标点,乱码等一些字符,我们要把这些字符清洗掉,只留下中文字符,仅仅留下中文字符只是一种处理方案,不同的任务需要不同的处理,这里已经写好了一份脚本
85
-
86
- clean
87
-
88
- https://github.com/bamtercelboo/corpus_process_script/tree/master/clean
89
-
90
- 使用:
91
-
92
- python clean_corpus.py –input input_file –output output_file
93
-
94
- like:
95
-
96
- python clean_corpus.py –input zhwiki-latest-simplified.txt –output zhwiki-latest-simplified_cleaned.txt
97
-
98
- 效果:
99
-
100
- input:
101
-
102
- 哲学 哲学(英语:philosophy)是对普遍的和基本的问题的研究,这些问题通常和存在、知识、价值、理性、心灵、语言等有关。
103
-
104
- output:
105
-
106
- 哲学哲学英语是对普遍的和基本的问题的研究这些问题通常和存在知识价值理性心灵语言等有关
107
-
108
-
109
-
110
- 三、数据处理脚本
111
-
112
- 近在github上新开了一个Repositorycorpus-process-scripthttps://github.com/bamtercelboo/corpus_process_script在这个repo,将存放中英文数据处理脚本,语言不限,会有详细的README,希望对大家能有一些帮助。
113
- References
114
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ChengZ/DeepDanbooru_string0/app.py DELETED
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env python
2
-
3
- from __future__ import annotations
4
-
5
- import argparse
6
- import functools
7
- import os
8
- import html
9
- import pathlib
10
- import tarfile
11
-
12
- import deepdanbooru as dd
13
- import gradio as gr
14
- import huggingface_hub
15
- import numpy as np
16
- import PIL.Image
17
- import tensorflow as tf
18
- import piexif
19
- import piexif.helper
20
-
21
- TITLE = 'DeepDanbooru String'
22
-
23
- TOKEN = os.environ['TOKEN']
24
- MODEL_REPO = 'CikeyQI/DeepDanbooru_string'
25
- MODEL_FILENAME = 'model-resnet_custom_v3.h5'
26
- LABEL_FILENAME = 'tags.txt'
27
-
28
-
29
- def parse_args() -> argparse.Namespace:
30
- parser = argparse.ArgumentParser()
31
- parser.add_argument('--score-slider-step', type=float, default=0.05)
32
- parser.add_argument('--score-threshold', type=float, default=0.5)
33
- parser.add_argument('--theme', type=str, default='dark-grass')
34
- parser.add_argument('--live', action='store_true')
35
- parser.add_argument('--share', action='store_true')
36
- parser.add_argument('--port', type=int)
37
- parser.add_argument('--disable-queue',
38
- dest='enable_queue',
39
- action='store_false')
40
- parser.add_argument('--allow-flagging', type=str, default='never')
41
- return parser.parse_args()
42
-
43
-
44
- def load_sample_image_paths() -> list[pathlib.Path]:
45
- image_dir = pathlib.Path('images')
46
- if not image_dir.exists():
47
- dataset_repo = 'hysts/sample-images-TADNE'
48
- path = huggingface_hub.hf_hub_download(dataset_repo,
49
- 'images.tar.gz',
50
- repo_type='dataset',
51
- use_auth_token=TOKEN)
52
- with tarfile.open(path) as f:
53
- f.extractall()
54
- return sorted(image_dir.glob('*'))
55
-
56
-
57
- def load_model() -> tf.keras.Model:
58
- path = huggingface_hub.hf_hub_download(MODEL_REPO,
59
- MODEL_FILENAME,
60
- use_auth_token=TOKEN)
61
- model = tf.keras.models.load_model(path)
62
- return model
63
-
64
-
65
- def load_labels() -> list[str]:
66
- path = huggingface_hub.hf_hub_download(MODEL_REPO,
67
- LABEL_FILENAME,
68
- use_auth_token=TOKEN)
69
- with open(path) as f:
70
- labels = [line.strip() for line in f.readlines()]
71
- return labels
72
-
73
- def plaintext_to_html(text):
74
- text = "<p>" + "<br>\n".join([f"{html.escape(x)}" for x in text.split('\n')]) + "</p>"
75
- return text
76
-
77
- def predict(image: PIL.Image.Image, score_threshold: float,
78
- model: tf.keras.Model, labels: list[str]) -> dict[str, float]:
79
- rawimage = image
80
- _, height, width, _ = model.input_shape
81
- image = np.asarray(image)
82
- image = tf.image.resize(image,
83
- size=(height, width),
84
- method=tf.image.ResizeMethod.AREA,
85
- preserve_aspect_ratio=True)
86
- image = image.numpy()
87
- image = dd.image.transform_and_pad_image(image, width, height)
88
- image = image / 255.
89
- probs = model.predict(image[None, ...])[0]
90
- probs = probs.astype(float)
91
- res = dict()
92
- for prob, label in zip(probs.tolist(), labels):
93
- if prob < score_threshold:
94
- continue
95
- res[label] = prob
96
- b = dict(sorted(res.items(),key=lambda item:item[1], reverse=True))
97
- a = ', '.join(list(b.keys())).replace('_',' ').replace('(','\(').replace(')','\)')
98
- c = ', '.join(list(b.keys()))
99
-
100
- items = rawimage.info
101
- geninfo = ''
102
-
103
- if "exif" in rawimage.info:
104
- exif = piexif.load(rawimage.info["exif"])
105
- exif_comment = (exif or {}).get("Exif", {}).get(piexif.ExifIFD.UserComment, b'')
106
- try:
107
- exif_comment = piexif.helper.UserComment.load(exif_comment)
108
- except ValueError:
109
- exif_comment = exif_comment.decode('utf8', errors="ignore")
110
-
111
- items['exif comment'] = exif_comment
112
- geninfo = exif_comment
113
-
114
- for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
115
- 'loop', 'background', 'timestamp', 'duration']:
116
- items.pop(field, None)
117
-
118
- geninfo = items.get('parameters', geninfo)
119
-
120
- info = f"""
121
- <p><h4>PNG Info</h4></p>
122
- """
123
- for key, text in items.items():
124
- info += f"""
125
- <div>
126
- <p><b>{plaintext_to_html(str(key))}</b></p>
127
- <p>{plaintext_to_html(str(text))}</p>
128
- </div>
129
- """.strip()+"\n"
130
-
131
- if len(info) == 0:
132
- message = "Nothing found in the image."
133
- info = f"<div><p>{message}<p></div>"
134
-
135
- return (a,c,res,info)
136
-
137
-
138
- def main():
139
- args = parse_args()
140
- model = load_model()
141
- labels = load_labels()
142
-
143
- func = functools.partial(predict, model=model, labels=labels)
144
- func = functools.update_wrapper(func, predict)
145
-
146
- gr.Interface(
147
- func,
148
- [
149
- gr.inputs.Image(type='pil', label='Input'),
150
- gr.inputs.Slider(0,
151
- 1,
152
- step=args.score_slider_step,
153
- default=args.score_threshold,
154
- label='Score Threshold'),
155
- ],
156
- [
157
- gr.outputs.Textbox(label='Output (string)'),
158
- gr.outputs.Textbox(label='Output (raw string)'),
159
- gr.outputs.Label(label='Output (label)'),
160
- gr.outputs.HTML()
161
- ],
162
- examples=[
163
- ['miku.jpg',0.5],
164
- ['miku2.jpg',0.5]
165
- ],
166
- title=TITLE,
167
- description='''
168
- Demo for [KichangKim/DeepDanbooru](https://github.com/KichangKim/DeepDanbooru) with "ready to copy" prompt and a prompt analyzer.
169
-
170
- Modified from [hysts/DeepDanbooru](https://huggingface.co/spaces/hysts/DeepDanbooru)
171
-
172
- PNG Info code forked from [AUTOMATIC1111/stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
173
- ''',
174
- theme=args.theme,
175
- allow_flagging=args.allow_flagging,
176
- live=args.live,
177
- ).launch(
178
- enable_queue=args.enable_queue,
179
- server_port=args.port,
180
- share=args.share,
181
- )
182
-
183
-
184
- if __name__ == '__main__':
185
- main()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Clebersla/RVC_V2_Huggingface_Version/i18n/locale_diff.py DELETED
@@ -1,45 +0,0 @@
1
- import json
2
- import os
3
- from collections import OrderedDict
4
-
5
- # Define the standard file name
6
- standard_file = "zh_CN.json"
7
-
8
- # Find all JSON files in the directory
9
- dir_path = "./"
10
- languages = [
11
- f for f in os.listdir(dir_path) if f.endswith(".json") and f != standard_file
12
- ]
13
-
14
- # Load the standard file
15
- with open(standard_file, "r", encoding="utf-8") as f:
16
- standard_data = json.load(f, object_pairs_hook=OrderedDict)
17
-
18
- # Loop through each language file
19
- for lang_file in languages:
20
- # Load the language file
21
- with open(lang_file, "r", encoding="utf-8") as f:
22
- lang_data = json.load(f, object_pairs_hook=OrderedDict)
23
-
24
- # Find the difference between the language file and the standard file
25
- diff = set(standard_data.keys()) - set(lang_data.keys())
26
-
27
- miss = set(lang_data.keys()) - set(standard_data.keys())
28
-
29
- # Add any missing keys to the language file
30
- for key in diff:
31
- lang_data[key] = key
32
-
33
- # Del any extra keys to the language file
34
- for key in miss:
35
- del lang_data[key]
36
-
37
- # Sort the keys of the language file to match the order of the standard file
38
- lang_data = OrderedDict(
39
- sorted(lang_data.items(), key=lambda x: list(standard_data.keys()).index(x[0]))
40
- )
41
-
42
- # Save the updated language file
43
- with open(lang_file, "w", encoding="utf-8") as f:
44
- json.dump(lang_data, f, ensure_ascii=False, indent=4)
45
- f.write("\n")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Cong723/gpt-academic-public/crazy_functions/理解PDF文档内容.py DELETED
@@ -1,112 +0,0 @@
1
- from toolbox import update_ui
2
- from toolbox import CatchException, report_execption
3
- from .crazy_utils import read_and_clean_pdf_text
4
- from .crazy_utils import request_gpt_model_in_new_thread_with_ui_alive
5
- fast_debug = False
6
-
7
-
8
- def 解析PDF(file_name, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt):
9
- import tiktoken
10
- print('begin analysis on:', file_name)
11
-
12
- ############################## <第 0 步,切割PDF> ##################################
13
- # 递归地切割PDF文件,每一块(尽量是完整的一个section,比如introduction,experiment等,必要时再进行切割)
14
- # 的长度必须小于 2500 个 Token
15
- file_content, page_one = read_and_clean_pdf_text(file_name) # (尝试)按照章节切割PDF
16
-
17
- TOKEN_LIMIT_PER_FRAGMENT = 2500
18
-
19
- from .crazy_utils import breakdown_txt_to_satisfy_token_limit_for_pdf
20
- from request_llm.bridge_all import model_info
21
- enc = model_info["gpt-3.5-turbo"]['tokenizer']
22
- def get_token_num(txt): return len(enc.encode(txt, disallowed_special=()))
23
- paper_fragments = breakdown_txt_to_satisfy_token_limit_for_pdf(
24
- txt=file_content, get_token_fn=get_token_num, limit=TOKEN_LIMIT_PER_FRAGMENT)
25
- page_one_fragments = breakdown_txt_to_satisfy_token_limit_for_pdf(
26
- txt=str(page_one), get_token_fn=get_token_num, limit=TOKEN_LIMIT_PER_FRAGMENT//4)
27
- # 为了更好的效果,我们剥离Introduction之后的部分(如果有)
28
- paper_meta = page_one_fragments[0].split('introduction')[0].split('Introduction')[0].split('INTRODUCTION')[0]
29
-
30
- ############################## <第 1 步,从摘要中提取高价值信息,放到history中> ##################################
31
- final_results = []
32
- final_results.append(paper_meta)
33
-
34
- ############################## <第 2 步,迭代地历遍整个文章,提取精炼信息> ##################################
35
- i_say_show_user = f'首先你在英文语境下通读整篇论文。'; gpt_say = "[Local Message] 收到。" # 用户提示
36
- chatbot.append([i_say_show_user, gpt_say]); yield from update_ui(chatbot=chatbot, history=[]) # 更新UI
37
-
38
- iteration_results = []
39
- last_iteration_result = paper_meta # 初始值是摘要
40
- MAX_WORD_TOTAL = 4096
41
- n_fragment = len(paper_fragments)
42
- if n_fragment >= 20: print('文章极长,不能达到预期效果')
43
- for i in range(n_fragment):
44
- NUM_OF_WORD = MAX_WORD_TOTAL // n_fragment
45
- i_say = f"Read this section, recapitulate the content of this section with less than {NUM_OF_WORD} words: {paper_fragments[i]}"
46
- i_say_show_user = f"[{i+1}/{n_fragment}] Read this section, recapitulate the content of this section with less than {NUM_OF_WORD} words: {paper_fragments[i][:200]}"
47
- gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive(i_say, i_say_show_user, # i_say=真正给chatgpt的提问, i_say_show_user=给用户看的提问
48
- llm_kwargs, chatbot,
49
- history=["The main idea of the previous section is?", last_iteration_result], # 迭代上一次的结果
50
- sys_prompt="Extract the main idea of this section." # 提示
51
- )
52
- iteration_results.append(gpt_say)
53
- last_iteration_result = gpt_say
54
-
55
- ############################## <第 3 步,整理history> ##################################
56
- final_results.extend(iteration_results)
57
- final_results.append(f'接下来,你是一名专业的学术教授,利用以上信息,使用中文回答我的问题。')
58
- # 接下来两句话只显示在界面上,不起实际作用
59
- i_say_show_user = f'接下来,你是一名专业的学术教授,利用以上信息,使用中文回答我的问题。'; gpt_say = "[Local Message] 收到。"
60
- chatbot.append([i_say_show_user, gpt_say])
61
-
62
- ############################## <第 4 步,设置一个token上限,防止回答时Token溢出> ##################################
63
- from .crazy_utils import input_clipping
64
- _, final_results = input_clipping("", final_results, max_token_limit=3200)
65
- yield from update_ui(chatbot=chatbot, history=final_results) # 注意这里的历史记录被替代了
66
-
67
-
68
- @CatchException
69
- def 理解PDF文档内容标准文件输入(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
70
- import glob, os
71
-
72
- # 基本信息:功能、贡献者
73
- chatbot.append([
74
- "函数插件功能?",
75
- "理解PDF论文内容,并且将结合上下文内容,进行学术解答。函数插件贡献者: Hanzoe, binary-husky"])
76
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
77
-
78
- # 尝试导入依赖,如果缺少依赖,则给出安装建议
79
- try:
80
- import fitz
81
- except:
82
- report_execption(chatbot, history,
83
- a = f"解析项目: {txt}",
84
- b = f"导入软件依赖失败。使用该模块需要额外依赖,安装方法```pip install --upgrade pymupdf```。")
85
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
86
- return
87
-
88
- # 清空历史,以免输入溢出
89
- history = []
90
-
91
- # 检测输入参数,如没有给定输入参数,直接退出
92
- if os.path.exists(txt):
93
- project_folder = txt
94
- else:
95
- if txt == "":
96
- txt = '空空如也的输入栏'
97
- report_execption(chatbot, history,
98
- a=f"解析项目: {txt}", b=f"找不到本地项目或无权访问: {txt}")
99
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
100
- return
101
-
102
- # 搜索需要处理的文件清单
103
- file_manifest = [f for f in glob.glob(f'{project_folder}/**/*.pdf', recursive=True)]
104
- # 如果没找到任何文件
105
- if len(file_manifest) == 0:
106
- report_execption(chatbot, history,
107
- a=f"解析项目: {txt}", b=f"找不到任何.tex或.pdf文件: {txt}")
108
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
109
- return
110
- txt = file_manifest[0]
111
- # 开始正式执行任务
112
- yield from 解析PDF(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/DQChoi/gpt-demo/venv/lib/python3.11/site-packages/fontTools/misc/cliTools.py DELETED
@@ -1,52 +0,0 @@
1
- """Collection of utilities for command-line interfaces and console scripts."""
2
- import os
3
- import re
4
-
5
-
6
- numberAddedRE = re.compile(r"#\d+$")
7
-
8
-
9
- def makeOutputFileName(
10
- input, outputDir=None, extension=None, overWrite=False, suffix=""
11
- ):
12
- """Generates a suitable file name for writing output.
13
-
14
- Often tools will want to take a file, do some kind of transformation to it,
15
- and write it out again. This function determines an appropriate name for the
16
- output file, through one or more of the following steps:
17
-
18
- - changing the output directory
19
- - appending suffix before file extension
20
- - replacing the file extension
21
- - suffixing the filename with a number (``#1``, ``#2``, etc.) to avoid
22
- overwriting an existing file.
23
-
24
- Args:
25
- input: Name of input file.
26
- outputDir: Optionally, a new directory to write the file into.
27
- suffix: Optionally, a string suffix is appended to file name before
28
- the extension.
29
- extension: Optionally, a replacement for the current file extension.
30
- overWrite: Overwriting an existing file is permitted if true; if false
31
- and the proposed filename exists, a new name will be generated by
32
- adding an appropriate number suffix.
33
-
34
- Returns:
35
- str: Suitable output filename
36
- """
37
- dirName, fileName = os.path.split(input)
38
- fileName, ext = os.path.splitext(fileName)
39
- if outputDir:
40
- dirName = outputDir
41
- fileName = numberAddedRE.split(fileName)[0]
42
- if extension is None:
43
- extension = os.path.splitext(input)[1]
44
- output = os.path.join(dirName, fileName + suffix + extension)
45
- n = 1
46
- if not overWrite:
47
- while os.path.exists(output):
48
- output = os.path.join(
49
- dirName, fileName + suffix + "#" + repr(n) + extension
50
- )
51
- n += 1
52
- return output