parquet-converter commited on
Commit
e3afdf7
·
1 Parent(s): b75593f

Update parquet files (step 37 of 121)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. spaces/101-5/gpt4free/g4f/.v1/gpt4free/quora/graphql/__init__.py +0 -0
  2. spaces/101-5/gpt4free/g4f/.v1/gpt4free/usesless/__init__.py +0 -158
  3. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Autocad 2009 Xforce Keygen 32 Bit Free.md +0 -23
  4. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Biztree Business in a Box Product Key Crack The Ultimate Solution for Your Business Needs.md +0 -100
  5. spaces/1acneusushi/gradio-2dmoleculeeditor/data/Descargar gratis imagenes movibles para easyworship consejos y recursos para mejorar tus proyecciones.md +0 -116
  6. spaces/1gistliPinn/ChatGPT4/Examples/Agrar Simulator 2011 Bga Crack [UPD].md +0 -20
  7. spaces/1gistliPinn/ChatGPT4/Examples/Dokmee.Enterprise.v3.2.0.1113.Multilingual.Incl.Keymaker-DJiNN.rar.html.md +0 -6
  8. spaces/1gistliPinn/ChatGPT4/Examples/Download Sketchup 2014 Crack Free Free.md +0 -10
  9. spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Call of Duty Mobile Mod Apk - How to Unlock All Skins and Weapons with Unlimited CP.md +0 -139
  10. spaces/1phancelerku/anime-remove-background/APK Evozi How to Save Time and Data with the Fastest and Easiest APK Downloader.md +0 -92
  11. spaces/AIConsultant/MusicGen/audiocraft/quantization/vq.py +0 -115
  12. spaces/AIConsultant/MusicGen/tests/models/test_audiogen.py +0 -53
  13. spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_0_ClothesDetection/mmyolo/configs/yolov5/voc/yolov5_l-v61_fast_1xb32-50e_voc.py +0 -25
  14. spaces/Ababababababbababa/AraPoet/app.py +0 -121
  15. spaces/AbandonedMuse/UnlimitedMusicGen/Dockerfile +0 -26
  16. spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/deprecated/__init__.py +0 -14
  17. spaces/AgentVerse/agentVerse/agentverse/environments/tasksolving_env/rules/role_assigner/__init__.py +0 -6
  18. spaces/AgentVerse/agentVerse/agentverse/utils.py +0 -50
  19. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/puff/Puff.d.ts +0 -2
  20. spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/slider/GetEndPoint.js +0 -27
  21. spaces/Aki004/herta-so-vits/demo.py +0 -30
  22. spaces/Al-Chan/Vits_League_of_Legends_Yuumi_TTS/rearrange_speaker.py +0 -37
  23. spaces/Alex123aaa/1234/README.md +0 -13
  24. spaces/Ameaou/academic-chatgpt3.1/crazy_functions/总结word文档.py +0 -127
  25. spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py +0 -540
  26. spaces/Andy1621/uniformer_image_detection/mmdet/core/anchor/utils.py +0 -71
  27. spaces/Andy1621/uniformer_image_detection/mmdet/models/losses/pisa_loss.py +0 -183
  28. spaces/Andy1621/uniformer_video_demo/uniformer.py +0 -379
  29. spaces/ArpitM/chat-llm-streaming/README.md +0 -12
  30. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/syntax.py +0 -950
  31. spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pkg_resources/_vendor/zipp.py +0 -329
  32. spaces/Avin1221/darkstorm2150-Protogen_x3.4_Official_Release/README.md +0 -12
  33. spaces/AzumaSeren100/XuanShen-Bert-VITS2/text/symbols.py +0 -51
  34. spaces/Bart92/RVC_HF/demucs/model.py +0 -202
  35. spaces/Benson/text-generation/Examples/Arco Iris Seis Mvil Apk Beta.md +0 -64
  36. spaces/Benson/text-generation/Examples/Auto Chess War Mod Apk Terbaru.md +0 -90
  37. spaces/Benson/text-generation/Examples/Brotato Zip Download.md +0 -68
  38. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/cli/parser.py +0 -294
  39. spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/webencodings/tests.py +0 -153
  40. spaces/BramVanroy/llama-2-13b-chat-dutch-space/model.py +0 -78
  41. spaces/BraydenMoore/a-random-unsecured-camera/templates/index.html +0 -483
  42. spaces/CAMP-ViL/Xplainer/description.md +0 -3
  43. spaces/CVPR/LIVE/thrust/testing/unittest/meta.h +0 -260
  44. spaces/CVPR/LIVE/thrust/thrust/detail/pointer.h +0 -253
  45. spaces/CVPR/drawings-to-human/README.md +0 -12
  46. spaces/CVPR/lama-example/saicinpainting/training/visualizers/noop.py +0 -9
  47. spaces/CarperAI/StableVicuna/README.md +0 -13
  48. spaces/Chris4K/llms_compare/Wondershare-Dvd-Slideshow-Builder-Deluxe-3d-Style-Pack-Registration-Code-Keygen.md +0 -74
  49. spaces/Cong723/gpt-academic-public/crazy_functions/crazy_functions_test.py +0 -130
  50. spaces/Cpp4App/Cpp4App/CDM/detect_compo/deprecated/ip_segment.py +0 -123
spaces/101-5/gpt4free/g4f/.v1/gpt4free/quora/graphql/__init__.py DELETED
File without changes
spaces/101-5/gpt4free/g4f/.v1/gpt4free/usesless/__init__.py DELETED
@@ -1,158 +0,0 @@
1
- import string
2
- import time
3
- import re
4
- import json
5
- import requests
6
- import fake_useragent
7
- import random
8
- from password_generator import PasswordGenerator
9
-
10
- from .utils import create_email, check_email
11
-
12
-
13
- class Account:
14
- @staticmethod
15
- def create(logging: bool = False):
16
- is_custom_domain = input(
17
- "Do you want to use your custom domain name for temporary email? [Y/n]: "
18
- ).upper()
19
-
20
- if is_custom_domain == "Y":
21
- mail_address = create_email(custom_domain=True, logging=logging)
22
- elif is_custom_domain == "N":
23
- mail_address = create_email(custom_domain=False, logging=logging)
24
- else:
25
- print("Please, enter either Y or N")
26
- return
27
-
28
- name = string.ascii_lowercase + string.digits
29
- username = "".join(random.choice(name) for i in range(20))
30
-
31
- pwo = PasswordGenerator()
32
- pwo.minlen = 8
33
- password = pwo.generate()
34
-
35
- session = requests.Session()
36
-
37
- register_url = "https://ai.usesless.com/api/cms/auth/local/register"
38
- register_json = {
39
- "username": username,
40
- "password": password,
41
- "email": mail_address,
42
- }
43
- headers = {
44
- "authority": "ai.usesless.com",
45
- "accept": "application/json, text/plain, */*",
46
- "accept-language": "en-US,en;q=0.5",
47
- "cache-control": "no-cache",
48
- "sec-fetch-dest": "empty",
49
- "sec-fetch-mode": "cors",
50
- "sec-fetch-site": "same-origin",
51
- "user-agent": fake_useragent.UserAgent().random,
52
- }
53
- register = session.post(register_url, json=register_json, headers=headers)
54
- if logging:
55
- if register.status_code == 200:
56
- print("Registered successfully")
57
- else:
58
- print(register.status_code)
59
- print(register.json())
60
- print("There was a problem with account registration, try again")
61
-
62
- if register.status_code != 200:
63
- quit()
64
-
65
- while True:
66
- time.sleep(5)
67
- messages = check_email(mail=mail_address, logging=logging)
68
-
69
- # Check if method `message_list()` didn't return None or empty list.
70
- if not messages or len(messages) == 0:
71
- # If it returned None or empty list sleep for 5 seconds to wait for new message.
72
- continue
73
-
74
- message_text = messages[0]["content"]
75
- verification_url = re.findall(
76
- r"http:\/\/ai\.usesless\.com\/api\/cms\/auth\/email-confirmation\?confirmation=\w.+\w\w",
77
- message_text,
78
- )[0]
79
- if verification_url:
80
- break
81
-
82
- session.get(verification_url)
83
- login_json = {"identifier": mail_address, "password": password}
84
- login_request = session.post(
85
- url="https://ai.usesless.com/api/cms/auth/local", json=login_json
86
- )
87
-
88
- token = login_request.json()["jwt"]
89
- if logging and token:
90
- print(f"Token: {token}")
91
-
92
- with open("account.json", "w") as file:
93
- json.dump({"email": mail_address, "token": token}, file)
94
- if logging:
95
- print(
96
- "\nNew account credentials has been successfully saved in 'account.json' file"
97
- )
98
-
99
- return token
100
-
101
-
102
- class Completion:
103
- @staticmethod
104
- def create(
105
- token: str,
106
- systemMessage: str = "You are a helpful assistant",
107
- prompt: str = "",
108
- parentMessageId: str = "",
109
- presence_penalty: float = 1,
110
- temperature: float = 1,
111
- model: str = "gpt-3.5-turbo",
112
- ):
113
- headers = {
114
- "authority": "ai.usesless.com",
115
- "accept": "application/json, text/plain, */*",
116
- "accept-language": "en-US,en;q=0.5",
117
- "cache-control": "no-cache",
118
- "sec-fetch-dest": "empty",
119
- "sec-fetch-mode": "cors",
120
- "sec-fetch-site": "same-origin",
121
- "user-agent": fake_useragent.UserAgent().random,
122
- "Authorization": f"Bearer {token}",
123
- }
124
-
125
- json_data = {
126
- "openaiKey": "",
127
- "prompt": prompt,
128
- "options": {
129
- "parentMessageId": parentMessageId,
130
- "systemMessage": systemMessage,
131
- "completionParams": {
132
- "presence_penalty": presence_penalty,
133
- "temperature": temperature,
134
- "model": model,
135
- },
136
- },
137
- }
138
-
139
- url = "https://ai.usesless.com/api/chat-process"
140
- request = requests.post(url, headers=headers, json=json_data)
141
- request.encoding = request.apparent_encoding
142
- content = request.content
143
-
144
- response = Completion.__response_to_json(content)
145
- return response
146
-
147
-
148
- @classmethod
149
- def __response_to_json(cls, text) -> str:
150
- text = str(text.decode("utf-8"))
151
-
152
- split_text = text.rsplit("\n", 1)
153
- if len(split_text) > 1:
154
- to_json = json.loads(split_text[1])
155
- return to_json
156
- else:
157
- return None
158
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Autocad 2009 Xforce Keygen 32 Bit Free.md DELETED
@@ -1,23 +0,0 @@
1
-
2
- <h1>How to Activate AutoCAD 2009 with Xforce Keygen 32 Bit</h1>
3
- <p>AutoCAD 2009 is a popular software for designing and drafting in various fields, such as architecture, engineering, construction and more. However, to use AutoCAD 2009, you need to activate it with a valid license key. Otherwise, you will not be able to access all the features and functions of the software.</p>
4
- <p>One way to activate AutoCAD 2009 is to use Xforce keygen 32 bit. Xforce keygen is a tool that can generate license keys for various software products, including AutoCAD 2009. Xforce keygen 32 bit is compatible with Windows 32 bit operating systems.</p>
5
- <h2>autocad 2009 xforce keygen 32 bit</h2><br /><p><b><b>Download</b> &#127379; <a href="https://byltly.com/2uKzSY">https://byltly.com/2uKzSY</a></b></p><br /><br />
6
- <p>In this article, we will show you how to activate AutoCAD 2009 with Xforce keygen 32 bit in a few simple steps.</p>
7
- <h2>Step 1: Download and install AutoCAD 2009</h2>
8
- <p>The first step is to download and install AutoCAD 2009 on your computer. You can download AutoCAD 2009 from the official website of Autodesk or from other sources. Make sure you download the correct version for your operating system (32 bit or 64 bit).</p>
9
- <p>To install AutoCAD 2009, follow the installation wizard and accept the terms and conditions. When prompted for a serial number and a product key, enter any numbers you want. You will activate them later with Xforce keygen.</p>
10
- <h2>Step 2: Download and run Xforce keygen 32 bit</h2>
11
- <p>The next step is to download and run Xforce keygen 32 bit. You can download Xforce keygen 32 bit from various websites or torrent sites. However, be careful of viruses and malware that may harm your computer. Always scan the files before opening them.</p>
12
- <p>To run Xforce keygen 32 bit, right-click on the file and select "Run as administrator". A window will open with a list of software products. Select "AutoCAD 2009" from the list and click on "Generate". A license key will be generated for you.</p>
13
- <h2>Step 3: Activate AutoCAD 2009 with the license key</h2>
14
- <p>The final step is to activate AutoCAD 2009 with the license key generated by Xforce keygen. To do this, open AutoCAD 2009 and click on "Activate" in the upper right corner. A window will pop up asking you to enter the serial number and the product key.</p>
15
- <p></p>
16
- <p>Enter the serial number and the product key that you entered during the installation process. Then click on "Next". Another window will appear asking you to select an activation method. Choose "I have an activation code from Autodesk" and click on "Next".</p>
17
- <p>A request code will be displayed on the screen. Copy this code and paste it into Xforce keygen in the "Request" field. Then click on "Calculate". An activation code will be generated for you. Copy this code and paste it into AutoCAD in the "Activation" field. Then click on "Next".</p>
18
- <p>Congratulations! You have successfully activated AutoCAD 2009 with Xforce keygen 32 bit. You can now enjoy all the features and functions of AutoCAD 2009 without any limitations.</p>
19
- <h2>Conclusion</h2>
20
- <p>Activating AutoCAD 2009 with Xforce keygen 32 bit is a simple and easy process that can save you time and money. However, it is not a legal or ethical way to use AutoCAD 2009. Xforce keygen is a crack tool that violates the terms and conditions of Autodesk. Using it may expose you to legal risks and security threats.</p>
21
- <p>If you want to use AutoCAD 2009 legally and safely, we recommend you to buy a genuine license from Autodesk or its authorized dealers. This way, you can support the developers of AutoCAD and get access to technical support and updates.</p> ddb901b051<br />
22
- <br />
23
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Biztree Business in a Box Product Key Crack The Ultimate Solution for Your Business Needs.md DELETED
@@ -1,100 +0,0 @@
1
- <br />
2
- <h1>Warcraft III: Reign of Chaos No CD Crack Download</h1>
3
- <h2>Introduction</h2>
4
- <p>If you are a fan of real-time strategy games, you probably have played or heard of Warcraft III: Reign of Chaos, one of the most popular and influential titles in the genre. Released in 2002 by Blizzard Entertainment, Warcraft III: Reign of Chaos is the third installment in the Warcraft series, which also includes the massively multiplayer online role-playing game World of Warcraft. In this game, you can choose from four different races: Humans, Orcs, Night Elves, and Undead, and lead them in epic battles across the fantasy world of Azeroth.</p>
5
- <h2>warcraft iii reign of chaos no cd crack download</h2><br /><p><b><b>Download File</b> ->>->>->> <a href="https://byltly.com/2uKyiL">https://byltly.com/2uKyiL</a></b></p><br /><br />
6
- <p>However, if you want to play Warcraft III: Reign of Chaos on your PC, you will need to have the original CD inserted in your drive every time you launch the game. This can be inconvenient and annoying for many reasons, such as having to swap CDs, wasting disk space, risking damage to your CD, or losing your CD altogether. That's why many players look for a way to play Warcraft III: Reign of Chaos without the CD, by using a no CD crack.</p>
7
- <p>A no CD crack is a modified version of the game's executable file that bypasses the CD check and allows you to run the game without inserting the CD. In this article, we will show you how to download and install a no CD crack for Warcraft III: Reign of Chaos, as well as the benefits and risks of using it.</p>
8
- <h2>How to download and install a no CD crack?</h2>
9
- <p>Before you download and install a no CD crack for Warcraft III: Reign of Chaos, you will need to have the game installed on your PC. You can either use the original CD or download the game from Blizzard's official website. You will also need to update the game to the latest version (1.27b) to ensure compatibility with the no CD crack.</p>
10
- <p>Once you have the game installed and updated, you can follow these steps to download and install a no CD crack:</p>
11
- <ol>
12
- <li>Go to a reputable website that offers no CD cracks for various games, such as GameCopyWorld or MegaGames.</li>
13
- <li>Search for Warcraft III: Reign of Chaos and find the no CD crack that matches your game version and language.</li>
14
- <li>Download the no CD crack file and extract it using a program like WinRAR or 7-Zip.</li>
15
- <li>Copy the extracted file (usually named war3.exe) and paste it into your game folder, where you installed Warcraft III: Reign of Chaos. You may need to overwrite the existing file.</li>
16
- <li>Run the game from the no CD crack file (war3.exe) and enjoy playing without the CD.</li>
17
- </ol>
18
- <h2>Benefits of using a no CD crack</h2>
19
- <p>Using a no CD crack for Warcraft III: Reign of Chaos can have several benefits for you as a player. Here are some of them:</p>
20
- <h3>Play without the CD</h3>
21
- the CD every time you launch the game. This can save you time and hassle, especially if you have multiple games that require CDs. You can also play the game on any PC that has the game installed, without carrying the CD with you.</p>
22
- <h3>Save disk space</h3>
23
- <p>Another benefit of using a no CD crack is that you can save disk space on your PC. When you install Warcraft III: Reign of Chaos from the CD, the game will copy some files from the CD to your hard drive. These files can take up several hundred megabytes of space, depending on your game version and language. By using a no CD crack, you can delete these files and free up some space on your hard drive.</p>
24
- <h3>Avoid scratches and damages</h3>
25
- <p>A no CD crack can also help you avoid scratches and damages to your CD. CDs are fragile and can be easily scratched or broken by accidents or mishandling. If your CD gets damaged, you may not be able to play the game or install it on another PC. By using a no CD crack, you can protect your CD from wear and tear and keep it in good condition.</p>
26
- <h3>Backup your game files</h3>
27
- <p>Finally, a no CD crack can allow you to backup your game files and restore them in case of any problems. Sometimes, your game files may get corrupted or deleted by viruses, malware, or human errors. If this happens, you may lose your progress, settings, or custom maps. By using a no CD crack, you can copy your game folder to another location or device and restore it if needed.</p>
28
- <p>warcraft 3 reign of chaos no cd patch<br />
29
- warcraft 3 roc no cd fixed exe<br />
30
- warcraft 3 reign of chaos no cd key<br />
31
- warcraft 3 reign of chaos no cd loader<br />
32
- warcraft 3 reign of chaos no cd gamecopyworld<br />
33
- warcraft 3 reign of chaos no cd gameburnworld<br />
34
- warcraft 3 reign of chaos no cd iso<br />
35
- warcraft 3 reign of chaos no cd archive.org<br />
36
- warcraft 3 reign of chaos no cd free download<br />
37
- warcraft 3 reign of chaos no cd crack mac<br />
38
- warcraft 3 reign of chaos no cd crack windows 10<br />
39
- warcraft 3 reign of chaos no cd crack linux<br />
40
- warcraft 3 reign of chaos no cd crack lutris<br />
41
- warcraft 3 reign of chaos no cd crack repack-mechanicz<br />
42
- warcraft 3 reign of chaos no cd cheat<br />
43
- warcraft 3 reign of chaos no cd trainer<br />
44
- warcraft 3 reign of chaos no cd serial<br />
45
- warcraft 3 reign of chaos no cd bnet loader<br />
46
- warcraft 3 reign of chaos no cd resolution hacker<br />
47
- warcraft 3 reign of chaos no cd widecraft<br />
48
- warcraft iii the frozen throne no cd crack download<br />
49
- warcraft iii complete edition no cd crack download<br />
50
- warcraft iii original isos no cd crack download<br />
51
- warcraft iii reforged no cd crack download<br />
52
- warcraft iii classic edition no cd crack download<br />
53
- how to install warcraft iii reign of chaos no cd crack<br />
54
- how to play warcraft iii reign of chaos no cd crack online<br />
55
- how to update warcraft iii reign of chaos no cd crack<br />
56
- how to fix warcraft iii reign of chaos no cd crack errors<br />
57
- how to uninstall warcraft iii reign of chaos no cd crack<br />
58
- where to find warcraft iii reign of chaos no cd crack safe<br />
59
- where to buy warcraft iii reign of chaos original game<br />
60
- where to download warcraft iii reign of chaos full version<br />
61
- where to watch warcraft iii reign of chaos gameplay videos<br />
62
- where to read warcraft iii reign of chaos reviews and guides<br />
63
- why play warcraft iii reign of chaos without a cd<br />
64
- why use a crack for warcraft iii reign of chaos game<br />
65
- why is warcraft iii reign of chaos still popular in 2021<br />
66
- what is the best version of warcraft iii reign of chaos to play<br />
67
- what is the difference between warcraft iii reign of chaos and reforged<br />
68
- what is the story of warcraft iii reign of chaos and the frozen throne<br />
69
- what are the system requirements for warcraft iii reign of chaos on pc and mac<br />
70
- what are the cheat codes for warcraft iii reign of chaos single player mode<br />
71
- what are the best mods for warcraft iii reign of chaos and the frozen throne<br />
72
- what are the best maps for warcraft iii reign of chaos multiplayer mode<br />
73
- what are the best strategies for playing as each race in warcraft iii reign of chaos <br />
74
- what are the best units and heroes for each race in warcraft iii reign of chaos <br />
75
- what are the best custom campaigns for warcraft iii reign of chaos and the frozen throne <br />
76
- what are the best tips and tricks for mastering warcraft iii reign of chaos gameplay</p>
77
- <h2>Risks of using a no CD crack</h2>
78
- <p>While using a no CD crack for Warcraft III: Reign of Chaos can have some benefits, it also comes with some risks that you should be aware of. Here are some of them:</p>
79
- <h3>Legal issues</h3>
80
- <p>The first and most important risk of using a no CD crack is that it may be illegal in your country or region. According to Blizzard's End User License Agreement (EULA), you are not allowed to modify, copy, distribute, or reverse engineer the game or any part of it. A no CD crack is considered a modification of the game's executable file and may violate Blizzard's intellectual property rights. If you use a no CD crack, you may face legal consequences such as fines or lawsuits from Blizzard or other authorities.</p>
81
- <h3>Virus and malware infections</h3>
82
- <p>Another risk of using a no CD crack is that it may contain viruses or malware that can harm your PC or steal your personal information. Some websites that offer no CD cracks may be malicious or fraudulent and may infect your PC with spyware, ransomware, keyloggers, or other types of malware. These malware can slow down your PC, damage your files, monitor your online activities, or steal your passwords, credit card numbers, or other sensitive data. To avoid this risk, you should only download no CD cracks from reputable and trusted websites and scan them with an antivirus program before installing them.</p>
83
- <h3>Compatibility and performance problems</h3>
84
- game's executable file that bypasses the CD check and allows you to run the game without inserting the CD. It can have some benefits, such as playing without the CD, saving disk space, avoiding scratches and damages, and backing up your game files. However, it can also have some risks, such as legal issues, virus and malware infections, compatibility and performance problems, and online multiplayer restrictions.</p>
85
- <h3>How to download and install a no CD crack for Warcraft III: Reign of Chaos?</h3>
86
- <p>To download and install a no CD crack for Warcraft III: Reign of Chaos, you will need to have the game installed and updated on your PC. Then, you can follow these steps:</p>
87
- <ol>
88
- <li>Go to a reputable website that offers no CD cracks for various games, such as GameCopyWorld or MegaGames.</li>
89
- <li>Search for Warcraft III: Reign of Chaos and find the no CD crack that matches your game version and language.</li>
90
- <li>Download the no CD crack file and extract it using a program like WinRAR or 7-Zip.</li>
91
- <li>Copy the extracted file (usually named war3.exe) and paste it into your game folder, where you installed Warcraft III: Reign of Chaos. You may need to overwrite the existing file.</li>
92
- <li>Run the game from the no CD crack file (war3.exe) and enjoy playing without the CD.</li>
93
- </ol>
94
- <h3>Is using a no CD crack legal?</h3>
95
- <p>Using a no CD crack may be illegal in your country or region. According to Blizzard's End User License Agreement (EULA), you are not allowed to modify, copy, distribute, or reverse engineer the game or any part of it. A no CD crack is considered a modification of the game's executable file and may violate Blizzard's intellectual property rights. If you use a no CD crack, you may face legal consequences such as fines or lawsuits from Blizzard or other authorities.</p>
96
- <h3>Can I play online multiplayer mode with a no CD crack?</h3>
97
- <p>You may not be able to play online multiplayer mode with a no CD crack. Warcraft III: Reign of Chaos has a built-in online multiplayer mode that allows you to play with or against other players on Blizzard's Battle.net service. However, to access this mode, you will need to have a valid CD key that is registered on your Battle.net account. A no CD crack may not work with Battle.net or may be detected as a cheat or hack by Blizzard's anti-cheat system. If this happens, you may not be able to join or host online games or you may get banned from Battle.net permanently. To avoid this risk, you should only use a no CD crack for offline single-player mode and use your original CD and CD key for online multiplayer mode.</p>
98
- </p> 0a6ba089eb<br />
99
- <br />
100
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Descargar gratis imagenes movibles para easyworship consejos y recursos para mejorar tus proyecciones.md DELETED
@@ -1,116 +0,0 @@
1
-
2
- <h1>Descargar gratis imagenes movibles para easyworship</h1>
3
- <p>Si eres una persona que se encarga de preparar y proyectar las presentaciones multimedia en tu iglesia, seguramente te interesa saber cómo puedes descargar gratis imagenes movibles para easyworship. En este artículo te vamos a explicar qué es easyworship, por qué usarlo, dónde encontrar y cómo descargar imagenes movibles para easyworship, cómo usarlas en las presentaciones y qué beneficios tiene usarlas. Así que sigue leyendo y descubre cómo puedes mejorar tus presentaciones con estas imágenes tan especiales.</p>
4
- <h2>descargar gratis imagenes movibles para easyworship</h2><br /><p><b><b>Download Zip</b> &#10084; <a href="https://byltly.com/2uKvTx">https://byltly.com/2uKvTx</a></b></p><br /><br />
5
- <h2>¿Qué es easyworship y por qué usarlo?</h2>
6
- <h3>Easyworship es un programa de presentación multimedia para iglesias</h3>
7
- <p>Easyworship es un software diseñado especialmente para crear y proyectar presentaciones multimedia en las iglesias. Con este programa puedes combinar imágenes, videos, textos, canciones y otros elementos para crear presentaciones dinámicas y profesionales que acompañen tus cultos, sermones, eventos o actividades. Easyworship es fácil de usar, compatible con varios formatos de archivos y adaptable a diferentes pantallas y proyectores.</p>
8
- <h3>Easyworship permite crear presentaciones dinámicas y atractivas con imágenes, videos, textos y canciones</h3>
9
- <p>Con easyworship puedes crear presentaciones que se adapten al tema, al estilo y al público de cada ocasión. Puedes elegir entre una gran variedad de plantillas prediseñadas o crear tus propias plantillas personalizadas. Puedes agregar imágenes, videos, textos y canciones desde tu computadora o desde internet. Puedes editar el contenido, el orden, el tiempo y la transición de cada elemento. Puedes añadir efectos especiales como sombras, reflejos, bordes o animaciones. Puedes sincronizar las letras de las canciones con la música o con los videos. Puedes mostrar versículos bíblicos o citas inspiradoras con diferentes fuentes y colores.</p>
10
- <h3>Easyworship ofrece una gran variedad de opciones para personalizar y adaptar las presentaciones a cada ocasión</h3>
11
- <p>Con easyworship puedes personalizar y adaptar tus presentaciones según tus necesidades y preferencias. Puedes configurar el tamaño, la resolución, el brillo y el contraste de la pantalla o del proyector. Puedes ajustar el volumen, el balance y el ecualizador del sonido. Puedes crear listas de reproducción con diferentes presentaciones o elementos. Puedes programar las presentaciones para que se inicien automáticamente o manualmente. Puedes controlar las presentaciones desde tu computadora o desde un dispositivo móvil.</p>
12
- <h2>¿Dónde encontrar y cómo descargar imagenes movibles para easyworship?</h2>
13
- <h3>Hay muchas fuentes en internet que ofrecen imagenes movibles para easyworship de forma gratuita</h3>
14
- <p>Si quieres descargar gratis imagenes movibles para easyworship, puedes encontrar muchas opciones en internet. Hay sitios web que ofrecen cientos o miles de imágenes animadas con diferentes temáticas, estilos y calidades. Algunas imágenes son libres de derechos de autor y otras requieren dar crédito al autor o a la fuente. Algunas imágenes son gratuitas y otras requieren una suscripción o un pago.</p>
15
- <h3>Algunas de las fuentes más populares son Pinterest, Recursos Bíblicos y EasyWorship Media</h3>
16
- <p>A continuación te mencionamos algunas de las fuentes más populares donde puedes descargar gratis imagenes movibles para easyworship:</p>
17
- <ul>
18
- <li>Pinterest: Es una red social donde puedes encontrar miles de imágenes animadas sobre diversos temas como naturaleza, arte, religión, humor, etc. Solo tienes que buscar "fondos animados para easyworship" o "imagenes movibles para easyworship" en el buscador y verás los resultados. Para descargar una imagen solo tienes que hacer clic derecho sobre ella y elegir la opción "guardar imagen como".</li>
19
- <li>Recursos Bíblicos: Es un sitio web que ofrece más de 200 imágenes animadas para easyworship con temática cristiana. Estas imágenes están hechas a una resolución apropiada para el programa y pueden ser utilizadas de diversas formas en las presentaciones de la iglesia. Para descargar un paquete de imágenes solo tienes que hacer clic en el enlace "descargar" que aparece debajo de cada imagen.</li>
20
- <li>EasyWorship Media: Es la tienda oficial de medios de easyworship donde puedes encontrar una gran selección de fondos animados para tus presentaciones. Estas imágenes son creadas por talentosos artistas cristianos que ofrecen su trabajo de forma gratuita o a un precio accesible. Para descargar una imagen solo tienes que hacer clic en el botón "download" que aparece debajo de cada imagen.</li>
21
- </ul>
22
- <h3>Para descargar las imagenes movibles para easyworship se debe seguir los pasos que indica cada sitio web</h3>
23
- <p>Para descargar gratis imagenes movibles para easyworship se debe seguir los pasos que indica cada sitio web donde se encuentran las imágenes. En general estos pasos son:</p>
24
- <ol>
25
- <li>Ingresar al sitio web donde se encuentran las imágenes.</li>
26
- <li>Buscar las imágenes que se desean descargar usando el buscador o navegando por las categorías.</li>
27
- <li>Seleccionar la imagen que se desea descargar haciendo clic sobre ella.</li>
28
- <li>Verificar si la imagen tiene algún requisito o condición como dar crédito al autor o pagar una cuota.</li>
29
- <li>Hacer clic derecho sobre la imagen y elegir la opción "guardar imagen como" o hacer clic en el botón "descargar" si lo tiene.</li>
30
- <li>Elegir la carpeta donde se desea guardar la imagen en la computadora.</li>
31
- <li>Repetir el proceso con todas las imágenes que se deseen descargar.</li>
32
- </ol>
33
- <h2>¿Cómo usar las imagenes movibles para easyworship en las presentaciones?</h2>
34
- <h3>Las imagenes movibles para easyworship se pueden usar como fondos, transiciones, ilustraciones o adornos</h3>
35
- <p>Las imagenes movibles para easyworship se pueden usar de varias formas en las presentaciones dependiendo del efecto que se quiera lograr. Algunas formas son:</p>
36
- <p>descargar gratis fondos animados para easyworship<br />
37
- descargar gratis imagenes cristianas movibles para easyworship<br />
38
- descargar gratis videos movibles para easyworship<br />
39
- descargar gratis imagenes movibles de navidad para easyworship<br />
40
- descargar gratis imagenes movibles de paisajes para easyworship<br />
41
- descargar gratis imagenes movibles con frases para easyworship<br />
42
- descargar gratis imagenes movibles de amor para easyworship<br />
43
- descargar gratis imagenes movibles de dios para easyworship<br />
44
- descargar gratis imagenes movibles de flores para easyworship<br />
45
- descargar gratis imagenes movibles de animales para easyworship<br />
46
- descargar gratis imagenes movibles de fuego para easyworship<br />
47
- descargar gratis imagenes movibles de agua para easyworship<br />
48
- descargar gratis imagenes movibles de cielo para easyworship<br />
49
- descargar gratis imagenes movibles de musica para easyworship<br />
50
- descargar gratis imagenes movibles de angeles para easyworship<br />
51
- descargar gratis imagenes movibles de cruz para easyworship<br />
52
- descargar gratis imagenes movibles de biblia para easyworship<br />
53
- descargar gratis imagenes movibles de jesus para easyworship<br />
54
- descargar gratis imagenes movibles de oracion para easyworship<br />
55
- descargar gratis imagenes movibles de alabanza para easyworship<br />
56
- descargar gratis imagenes movibles de adoracion para easyworship<br />
57
- descargar gratis imagenes movibles de bendicion para easyworship<br />
58
- descargar gratis imagenes movibles de esperanza para easyworship<br />
59
- descargar gratis imagenes movibles de fe para easyworship<br />
60
- descargar gratis imagenes movibles de gracia para easyworship<br />
61
- descargar gratis imagenes movibles de paz para easyworship<br />
62
- descargar gratis imagenes movibles de alegria para easyworship<br />
63
- descargar gratis imagenes movibles de amor de dios para easyworship<br />
64
- descargar gratis imagenes movibles de palabra de dios para easyworship<br />
65
- descargar gratis imagenes movibles de promesas de dios para easyworship<br />
66
- descargar gratis imagenes movibles de milagros de dios para easyworship<br />
67
- descargar gratis imagenes movibles de testimonios de dios para easyworship<br />
68
- descargar gratis imagenes movibles de iglesia para easyworship<br />
69
- descargar gratis imagenes movibles de culto para easyworship<br />
70
- descargar gratis imagenes movibles de predicacion para easyworship<br />
71
- descargar gratis imagenes movibles de enseñanza para easyworship<br />
72
- descargar gratis imagenes movibles de estudio biblico para easyworship<br />
73
- descargar gratis imagenes movibles de escuela dominical para easyworship<br />
74
- descargar gratis imagenes movibles de grupo pequeño para easyworship<br />
75
- descargar gratis imagenes movibles de misiones para easyworship<br />
76
- descargar gratis imagenes movibles de evangelismo para easyworship<br />
77
- descargar gratis imagenes movibles de servicio social para easyworship<br />
78
- descargar gratis imagenes movibles de ayuno y oracion para easyworship<br />
79
- descargar gratis imagenes movibles de retiro espiritual para easyworship<br />
80
- descargar gratis imagenes movibles de campamento cristiano para easyworship<br />
81
- descargar gratis imagenes movibles de celebracion cristiana para easyworship<br />
82
- descargar gratis imagenes movibles de cumpleaños cristiano para easyworship<br />
83
- descargar gratis imagenes movibles de boda cristiana para easyworship<br />
84
- descargar gratis imagenes movibles de bautismo cristiano para easyworship<br />
85
- descargar gratis imagenes movibles de santa cena cristiana para easywors</p>
86
- <ul>
87
- <p>Para usar las imagenes movibles para easyworship se debe importarlas al programa desde la carpeta donde se guardaron en la computadora. Para importar una imagen se debe hacer clic en el botón "import" que aparece en la parte superior del panel de medios. Luego se debe buscar la carpeta donde se encuentra la imagen y seleccionarla. La imagen aparecerá en el panel de medios y se podrá arrastrar a los paneles de fondos, transiciones o diapositivas según el uso que se le quiera dar.</p>
88
- <h3>Se puede ajustar el tamaño, la posición, la velocidad y el efecto de las imagenes movibles para easyworship según el gusto y el propósito</h3>
89
- <p>Se puede ajustar el tamaño, la posición, la velocidad y el efecto de las imagenes movibles para easyworship según el gusto y el propósito que se tenga. Para ajustar el tamaño y la posición de una imagen se debe hacer clic sobre ella y arrastrar los bordes o las esquinas hasta obtener el tamaño y la posición deseada. Para ajustar la velocidad y el efecto de una imagen se debe hacer clic derecho sobre ella y elegir la opción "propiedades". Se abrirá una ventana donde se podrá modificar la duración, el ciclo, el retraso y el efecto de la imagen.</p>
90
- <h2>¿Qué beneficios tiene usar imagenes movibles para easyworship en las presentaciones?</h2>
91
- <h3>Las imagenes movibles para easyworship le dan vida y movimiento a las presentaciones</h3>
92
- <p>Las imagenes movibles para easyworship le dan vida y movimiento a las presentaciones al crear un ambiente dinámico y variado. Las imágenes animadas pueden expresar diferentes sensaciones, emociones, mensajes o conceptos de forma visual y creativa. Las imágenes animadas pueden complementar o contrastar con el contenido verbal o musical de la presentación. Las imágenes animadas pueden generar interés, curiosidad, sorpresa o admiración en los espectadores.</p>
93
- <h3>Las imagenes movibles para easyworship captan la atención y el interés de los espectadores</h3>
94
- <p>Las imagenes movibles para easyworship captan la atención y el interés de los espectadores al estimular sus sentidos y su memoria. Las imágenes animadas son más llamativas y memorables que las imágenes estáticas o los textos. Las imágenes animadas pueden ayudar a los espectadores a concentrarse, a comprender, a recordar o a aplicar lo que ven o escuchan en la presentación. Las imágenes animadas pueden motivar a los espectadores a participar, a interactuar o a responder a la presentación.</p>
95
- <h3>Las imagenes movibles para easyworship transmiten mensajes y emociones de forma visual y creativa</h3>
96
- <p>Las imagenes movibles para easyworship transmiten mensajes y emociones de forma visual y creativa al usar diferentes elementos como colores, formas, texturas, sonidos o movimientos. Las imágenes animadas pueden representar diferentes temas como naturaleza, arte, religión, humor, etc. Las imágenes animadas pueden reflejar diferentes estados de ánimo como alegría, paz, amor, fe, etc. Las imágenes animadas pueden inspirar diferentes acciones como alabar, orar, servir, etc.</p>
97
- <h2>Conclusión</h2>
98
- <p>En conclusión, descargar gratis imagenes movibles para easyworship es una forma sencilla y efectiva de mejorar tus presentaciones multimedia en tu iglesia. Con estas imágenes puedes crear presentaciones dinámicas, atractivas, personalizadas y adaptadas a cada ocasión. Con estas imágenes puedes usar easyworship como una herramienta poderosa para comunicar el mensaje de Dios de forma visual y creativa.</p>
99
- <h2>Preguntas frecuentes</h2>
100
- <ul>
101
- <li><b>¿Qué es easyworship?</b><br>
102
- Easyworship es un programa de presentación multimedia para iglesias que permite combinar imágenes, videos, textos, canciones y otros elementos para crear presentaciones dinámicas y profesionales.</li>
103
- <li><b>¿Dónde puedo descargar gratis imagenes movibles para easyworship?</b><br>
104
- Puedes descargar gratis imagenes movibles para easyworship en sitios web como Pinterest, Recursos Bíblicos o EasyWorship Media.</li>
105
- <li><b>¿Cómo puedo usar las imagenes movibles para easyworship en las presentaciones?</b><br>
106
- <ul>
107
- <li><b>¿Cómo puedo usar las imagenes movibles para easyworship en las presentaciones?</b><br>
108
- Puedes usar las imagenes movibles para easyworship como fondos, transiciones, ilustraciones o adornos. Para usarlas debes importarlas al programa y seleccionarlas en el panel de medios. Luego puedes ajustar su tamaño, posición, velocidad y efecto según tu gusto y propósito.</li>
109
- <li><b>¿Qué beneficios tiene usar imagenes movibles para easyworship en las presentaciones?</b><br>
110
- Usar imagenes movibles para easyworship tiene muchos beneficios como dar vida y movimiento a las presentaciones, captar la atención y el interés de los espectadores y transmitir mensajes y emociones de forma visual y creativa.</li>
111
- <li><b>¿Qué requisitos o condiciones tienen las imagenes movibles para easyworship?</b><br>
112
- Algunas imagenes movibles para easyworship son libres de derechos de autor y otras requieren dar crédito al autor o a la fuente. Algunas imágenes son gratuitas y otras requieren una suscripción o un pago. Se debe verificar estos requisitos o condiciones antes de descargar y usar las imágenes.</li>
113
- </ul>
114
- </p> 0a6ba089eb<br />
115
- <br />
116
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Agrar Simulator 2011 Bga Crack [UPD].md DELETED
@@ -1,20 +0,0 @@
1
- <br />
2
- <h1>How to Crack Agrar Simulator 2011 BGA and Enjoy Farming Fun</h1>
3
- <p>Agrar Simulator 2011 is a farming simulation game that lets you experience the life of a farmer. You can cultivate your fields, harvest your crops, raise animals, and sell your products. You can also use various vehicles and machines to help you with your tasks.</p>
4
- <p>However, if you want to play the game without any restrictions, you might want to crack it. Cracking is a process of modifying the game files to bypass the copy protection and enable unlimited access. This way, you can play the game without needing a CD or a serial key.</p>
5
- <h2>agrar simulator 2011 bga crack</h2><br /><p><b><b>Download Zip</b> &#128504; <a href="https://imgfil.com/2uy0zp">https://imgfil.com/2uy0zp</a></b></p><br /><br />
6
- <p>But how do you crack Agrar Simulator 2011 BGA? Here are some steps you can follow:</p>
7
- <ol>
8
- <li>Download the crack file from a reliable source. You can find one at [^1^]. Make sure you scan the file for viruses before opening it.</li>
9
- <li>Extract the crack file using a program like WinRAR or 7-Zip. You should see a folder named "Agrar Simulator 2011" with several files inside.</li>
10
- <li>Copy the files from the crack folder and paste them into the game installation folder. This is usually located at C:\Program Files (x86)\Agrar Simulator 2011. Overwrite any existing files when prompted.</li>
11
- <li>Run the game as administrator. You should see a message saying "Cracked by GameCopyWorld". You can now enjoy the game without any limitations.</li>
12
- </ol>
13
- <p>Note: Cracking is illegal and may violate the terms of service of the game developer. We do not condone or encourage cracking in any way. This article is for educational purposes only.</p><p>If you want to learn more about Agrar Simulator 2011 BGA, you can check out the official website at . There you can find more information about the game features, the system requirements, and the latest updates. You can also watch some gameplay videos and screenshots to see the game in action.</p>
14
- <p>Agrar Simulator 2011 BGA is not just a game, but a realistic simulation of farming. You can choose from different scenarios and maps, each with its own challenges and opportunities. You can also customize your farm and your vehicles according to your preferences. You can even play online with other players and compete or cooperate with them.</p>
15
- <p>Whether you are a fan of farming or just looking for a relaxing and enjoyable game, Agrar Simulator 2011 BGA might be the perfect choice for you. With its realistic graphics, sound effects, and physics, you will feel like you are really in the countryside. And with the crack file, you can play it anytime and anywhere you want.</p><p>One of the best features of Agrar Simulator 2011 BGA is the biogas plant. This is a facility that converts organic waste into biogas, which can be used as a renewable energy source. You can collect the waste from your animals and crops and transport it to the biogas plant. There you can sell the biogas or use it to power your vehicles and machines.</p>
16
- <p>The biogas plant is not only good for the environment, but also for your income. You can earn extra money by selling the biogas or saving on fuel costs. You can also use the leftover material from the biogas plant as fertilizer for your fields. This way, you can improve your soil quality and increase your crop yield.</p>
17
- <p>The biogas plant is a unique and innovative feature that sets Agrar Simulator 2011 BGA apart from other farming games. It adds more realism and challenge to the game, as well as more fun and satisfaction. You can experiment with different types of waste and see how they affect the biogas production. You can also upgrade the biogas plant to make it more efficient and profitable.</p>
18
- <p></p> d5da3c52bf<br />
19
- <br />
20
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Dokmee.Enterprise.v3.2.0.1113.Multilingual.Incl.Keymaker-DJiNN.rar.html.md DELETED
@@ -1,6 +0,0 @@
1
- <h2>Dokmee.Enterprise.v3.2.0.1113.Multilingual.Incl.Keymaker-DJiNN.rar.html</h2><br /><p><b><b>Download</b> &ndash;&ndash;&ndash; <a href="https://imgfil.com/2uxYts">https://imgfil.com/2uxYts</a></b></p><br /><br />
2
- <br />
3
- Dokmee.Enterprise.v3.2.0.1113.Multilingual.Incl.Keymaker-DJiNN.rar.html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies. html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies.html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies.html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies.html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies.html. Connection. One%20Two%20Three%20Full%20Movie%20In%20Hindi%20720p%20Download%20Movies.html. Connection. One%20Two%20Three%20 8a78ff9644<br />
4
- <br />
5
- <br />
6
- <p></p>
 
 
 
 
 
 
 
spaces/1gistliPinn/ChatGPT4/Examples/Download Sketchup 2014 Crack Free Free.md DELETED
@@ -1,10 +0,0 @@
1
- <h2>download sketchup 2014 crack free</h2><br /><p><b><b>Download</b> &mdash;&mdash;&mdash;&mdash;&mdash; <a href="https://imgfil.com/2uxXtl">https://imgfil.com/2uxXtl</a></b></p><br /><br />
2
-
3
- SketchUp 2014 For Dummies: 9781118822661: Computer Science Books... Start creating a 3D model today with the SketchUp 2014 Understanding Guide. concepts and concepts.
4
- This book will be equally useful for beginners and advanced users.
5
- Discover SketchUp in minutes, including learning the basic tools and concepts.
6
- You'll also learn how to work with SketchUp to create a professional, high-quality 3D model for visualization, planning, and reporting.
7
- SketchUp is a great 3D modeling tool. 8a78ff9644<br />
8
- <br />
9
- <br />
10
- <p></p>
 
 
 
 
 
 
 
 
 
 
 
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Call of Duty Mobile Mod Apk - How to Unlock All Skins and Weapons with Unlimited CP.md DELETED
@@ -1,139 +0,0 @@
1
- <br />
2
- <h1>Call of Duty Mobile Unlimited CP Mod APK: What You Need to Know</h1>
3
- <p>Call of Duty Mobile is one of the most popular and successful first-person shooter games on mobile devices. It offers a thrilling and immersive experience that fans of the franchise love. However, some players are looking for ways to get an edge over their opponents and access more content without spending real money. That's where Call of Duty Mobile Unlimited CP Mod APK comes in.</p>
4
- <h2>call of duty mobile unlimited cp mod apk</h2><br /><p><b><b>DOWNLOAD</b> &#10027;&#10027;&#10027; <a href="https://urlin.us/2uSYKz">https://urlin.us/2uSYKz</a></b></p><br /><br />
5
- <p>In this article, we will explain what Call of Duty Mobile is, what CP is and why you need it, what Call of Duty Mobile Unlimited CP Mod APK is and how to download and install it, and what are the risks and consequences of using it. We will also answer some frequently asked questions about Call of Duty Mobile at the end.</p>
6
- <h2>What is Call of Duty Mobile?</h2>
7
- <p>Call of Duty Mobile is a mobile version of the famous FPS franchise that was released in 2019 by Activision and Tencent. It features various game modes, maps, characters, weapons, and items from different Call of Duty titles such as Modern Warfare, Black Ops, and Warzone. It also has its own original content and storylines that expand the Call of Duty universe.</p>
8
- <h3>Features of Call of Duty Mobile</h3>
9
- <p>Some of the features that make Call of Duty Mobile stand out are:</p>
10
- <ul>
11
- <li>Console-quality HD graphics and sound that create a realistic and immersive atmosphere.</li>
12
- <li>Customizable controls, voice and text chat, and social features that allow you to communicate and play with your friends.</li>
13
- <li>A progression system that lets you level up your player and weapons, unlock new items, abilities, perks, skins, camos, and more.</li>
14
- <li>A monetization system that uses in-game currency and microtransactions to purchase cosmetics, loot boxes, battle passes, and other benefits.</li>
15
- <li>A regular update schedule that adds new seasonal content, events, challenges, rewards, game modes, maps, weapons, operators, and more.</li>
16
- </ul>
17
- <h3>Game modes of Call of Duty Mobile</h3>
18
- <p>Call of Duty Mobile has three main game modes that you can play:</p>
19
- <p>call of duty mobile hack mod menu 1.0.33<br />
20
- cod mobile hack aimbot unlock all skins<br />
21
- call of duty mobile mod apk 2022 download<br />
22
- cod mobile hack unlimited cod points<br />
23
- call of duty mobile season 5 mod apk unlocked<br />
24
- cod mobile hack no ban anti ban<br />
25
- call of duty mobile hack download 2022<br />
26
- cod mobile hack tutorial android 2022<br />
27
- call of duty mobile mod apk cp<br />
28
- cod mobile hack gameplay wallhack<br />
29
- call of duty mobile hack mod menu 1.0.34<br />
30
- cod mobile hack customizable esp<br />
31
- call of duty mobile legends of war mod apk<br />
32
- cod mobile hack zarchiver download<br />
33
- call of duty mobile mod apk global version<br />
34
- cod mobile hack net energy gain<br />
35
- call of duty mobile modern warfare remastered mod apk<br />
36
- cod mobile hack zombie mode<br />
37
- call of duty mobile mod apk console quality hd gaming<br />
38
- cod mobile hack new submachine guns<br />
39
- call of duty mobile mod apk voice and text chat<br />
40
- cod mobile hack create new account<br />
41
- call of duty mobile mod apk thrilling 3d graphics and sound<br />
42
- cod mobile hack free battle pass and extra features<br />
43
- call of duty mobile mod apk iconic franchise on your phone</p>
44
- <ul>
45
- <li>Multiplayer: This mode lets you compete with other players in various classic modes such as Team Deathmatch, Domination, Kill Confirmed, Search and Destroy, etc. on iconic maps such as Nuketown, Crash, Hijacked, etc.</li>
46
- <li>Battle Royale: This mode lets you survive a 100-player experience on a large map with vehicles, weapons, items, classes, and more. You can play solo, duo, or squad and try to be the last one standing.</li>
47
- <li>Zombies: This mode lets you team up with other players and fight against hordes of zombies in various maps and scenarios. You can use different weapons, items, perks, and skills to survive and complete objectives.</li>
48
- </ul>
49
- <h2>What is CP and why do you need it?</h2>
50
- <p>CP stands for Call of Duty Points, which is the premium currency of Call of Duty Mobile. You can use CP to buy various items and benefits that can enhance your gameplay and appearance.</p>
51
- <h3>CP is the premium currency of Call of Duty Mobile</h3>
52
- <p>CP is different from Credits, which is the free currency that you can earn by playing the game, completing tasks, and opening crates. CP can only be obtained by spending real money or using special offers and promotions. You can buy CP in different amounts and packages, depending on your region and platform.</p>
53
- <h3>CP can be used to buy various items and benefits</h3>
54
- <p>Some of the things that you can buy with CP are:</p>
55
- <ul>
56
- <li>Battle Pass: This is a seasonal pass that gives you access to exclusive rewards such as weapons, operators, skins, camos, emotes, calling cards, etc. You can buy the regular Battle Pass for 220 CP or the Battle Pass Bundle for 520 CP, which also unlocks 12 tiers instantly.</li>
57
- <li>Crate Bundles: These are bundles of crates that contain random items such as weapons, skins, camos, emotes, etc. You can buy different types of crates such as Premium Crates, Weapon Crates, Character Crates, etc. for various amounts of CP.</li>
58
- <li>Lucky Draws: These are special draws that give you a chance to win rare and legendary items such as weapons, operators, skins, camos, etc. You can spin the Lucky Draw for 30 CP for the first time and then the price increases with each spin until you get all the items.</li>
59
- <li>Store Items: These are individual items that you can buy directly from the store such as weapons, operators, skins, camos, etc. The price varies depending on the rarity and quality of the item.</li>
60
- <li>CODM Championship: This is a competitive mode that lets you participate in tournaments and win prizes such as CP, Credits, weapons, skins, etc. You need to pay 200 CP to enter the CODM Championship and then you can earn back your CP and more by winning matches.</li>
61
- </ul>
62
- <h2>What is Call of Duty Mobile Unlimited CP Mod APK?</h2>
63
- <p>Call of Duty Mobile Unlimited CP Mod APK is a modified version of the game that gives you unlimited CP and other features that are not available in the official version. It is also known as Call of Duty Mobile Hack or Call of Duty Mobile Cheat.</p>
64
- <h3>It is a modified version of the game that gives you unlimited CP</h3>
65
- <p>The main feature of Call of Duty Mobile Unlimited CP Mod APK is that it gives you unlimited CP without spending any real money. You can use this CP to buy anything you want in the game such as Battle Passes, Crate Bundles, Lucky Draws, Store Items, CODM Championship entries, etc. You can also use this CP to upgrade your weapons and items to the max level.</p>
66
- <h3>It also has other features such as ESP, Aimbot, Wall Hack, etc.</h3>
67
- <p>Besides unlimited CP, Call of Duty Mobile Unlimited CP Mod APK also has other features that give you an unfair advantage over other players. Some of these features are:</p>
68
- <ul>
69
- <li>ESP: This feature lets you see the enemy's location, health, name, distance, weapon, etc. through walls and obstacles. This helps you to spot and target them easily.</li>
70
- <li>Aimbot: This feature lets you automatically aim and shoot at the enemy's head or body with perfect accuracy and speed. This helps you to kill them instantly and win every gunfight.</li>
71
- <li>Wall Hack: This feature lets you shoot through walls and obstacles without any damage reduction or bullet drop. This helps you to hit the enemy even if they are hiding or cover.</li>
72
- <li>No Recoil: This feature lets you fire your weapon without any recoil or kickback. This helps you to control your aim and spray better.</li>
73
- <li>No Spread: This feature lets you fire your weapon without any bullet spread or deviation. This helps you to hit the enemy with every shot.</li>
74
- <li>No Reload: This feature lets you fire your weapon without any need to reload or change magazines. This helps you to keep shooting without any interruption.</li>
75
- <li>God Mode: This feature lets you become invincible and immune to any damage from the enemy or the environment. This helps you to survive any situation and explore the map freely.</li>
76
- </ul>
77
- <h2>How to download and install Call of Duty Mobile Unlimited CP Mod APK?</h2>
78
- <p>If you want to try Call of Duty Mobile Unlimited CP Mod APK, you need to follow these steps to download and install it on your device:</p>
79
- <h3>Follow these steps to download and install the mod apk</h3>
80
- <ol>
81
- <li>Find a reliable and safe source that provides the latest version of Call of Duty Mobile Unlimited CP Mod APK. You can search online or use the link below.</li>
82
- <li>Download the mod apk file and the obb data file from the source. Make sure you have enough storage space on your device.</li>
83
- <li>Enable the installation of apps from unknown sources on your device. You can do this by going to Settings > Security > Unknown Sources and turning it on.</li>
84
- <li>Locate the downloaded files on your device and tap on them to install them. You may need to grant some permissions for the installation process.</li>
85
- <li>Copy the obb data file to the Android/obb folder on your device. If the folder does not exist, create it manually.</li>
86
- <li>Launch the game and enjoy unlimited CP and other features.</li>
87
- </ol>
88
- <h3>Beware of the risks and consequences of using the mod apk</h3>
89
- <p>While Call of Duty Mobile Unlimited CP Mod APK may sound tempting, it is not recommended to use it for several reasons:</p>
90
- <ul>
91
- <li>It violates the game's terms of service and can result in bans or legal actions. Activision and Tencent have a strict anti-cheat system that detects and punishes players who use hacks or mods. You may lose your account, progress, items, etc. or face legal consequences if you use the mod apk.</li>
92
- <li>It ruins the game's balance and fairness and can affect other players' enjoyment. Using hacks or mods gives you an unfair advantage over other players who play legitimately. This can make the game boring, frustrating, or unfair for them.</li>
93
- <li>It exposes your device and data to malware and viruses that can harm your device or steal your information. The mod apk may contain malicious code or hidden programs that can infect your device or access your data without your consent. You may risk losing your files, contacts, photos, etc. or compromising your privacy or security if you use the mod apk.</li>
94
- </ul>
95
- <h2>Conclusion</h2>
96
- <p>Call of Duty Mobile Unlimited CP Mod APK is a modified version of the game that gives you unlimited CP and other features that are not available in the official version. It may seem like a good option for some players who want to access more content without spending real money or who want to dominate their opponents with ease. However, it is not recommended to use it as it violates the game's terms of service and can result in bans or legal actions. It also ruins the game's balance and fairness and can affect other players' enjoyment. It also exposes your device and data to malware and viruses that can harm your device or steal your information.</p>
97
- <p>If you want to enjoy Call of Duty Mobile in a safe and legitimate way, you should avoid using hacks or mods and play the game as intended. You can still get CP by spending real money or using special offers and promotions. You can also improve your skills and performance by practicing, learning, and following tips and tricks from other players. You can also have fun with your friends by playing together in different game modes.</p>
98
- <h2>FAQs</h2>
99
- <h3>Q1. Is Call of Duty Mobile free to play?</h3>
100
- <p>A1. Yes, Call of Duty Mobile is free to play on both Android and iOS devices. You can download it from Google Play Store or Apple App Store respectively. However, it also has optional in-game purchases that you can make with real money or in-game currency.</p>
101
- <h3>Q2. How can I get CP legitimately in Call of Duty Mobile?</h3>
102
- <p>A2. There are several ways to get CP legitimately in Call of Duty Mobile, such as:</p>
103
- <ul>
104
- <li>Buying CP with real money from the in-game store or the official website.</li>
105
- <li>Using special offers and promotions that give you CP as a bonus or a reward.</li>
106
- <li>Participating in the CODM Championship and winning CP as a prize.</li>
107
- <li>Using third-party apps or websites that offer CP as a gift or a reward for completing tasks or surveys. However, you should be careful and check the credibility and security of these sources before using them.</li>
108
- </ul>
109
- <h3>Q3. What are the best weapons and loadouts in Call of Duty Mobile?</h3>
110
- <p>A3. The best weapons and loadouts in Call of Duty Mobile depend on your personal preference, playstyle, game mode, map, and situation. However, some of the most popular and effective weapons and loadouts are:</p>
111
- <ul>
112
- <li>Assault Rifles: These are versatile weapons that can perform well in most ranges and situations. Some of the best assault rifles are ASM10, AK-47, DR-H, BK57, and M4.</li>
113
- <li>Submachine Guns: These are fast-firing weapons that excel in close-range combat and mobility. Some of the best submachine guns are QQ9, QXR, RUS-79U, MSMC, and PDW-57.</li>
114
- <li>Sniper Rifles: These are powerful weapons that can kill enemies with one shot from long distances. Some of the best sniper rifles are DL Q33, Locus, Arctic .50, Outlaw, and M21 EBR.</li>
115
- <li>Shotguns: These are devastating weapons that can deal massive damage in close-range combat. Some of the best shotguns are KRM-262, Echo, BY15, HS0405, and Striker.</li>
116
- <li>Pistols: These are secondary weapons that can be used as a backup or a finisher. Some of the best pistols are MW11, J358, .50 GS, Renetti, and AGR 556.</li>
117
- <li>Loadouts: These are combinations of weapons, attachments, perks, grenades, and operator skills that suit your playstyle and strategy. You can create up to 10 custom loadouts and switch between them during the game. You can also use the default loadouts or the recommended loadouts provided by the game.</li>
118
- </ul>
119
- <h3>Q4. How can I improve my skills and performance in Call of Duty Mobile?</h3>
120
- <p>A4. There are several tips and tricks that can help you improve your skills and performance in Call of Duty Mobile, such as:</p>
121
- <ul>
122
- <li>Practice: The best way to improve your skills is to practice regularly and learn from your mistakes. You can play different game modes and maps, try different weapons and loadouts, watch replays and tutorials, and challenge yourself with different goals and objectives.</li>
123
- <li>Learn: The more you know about the game, the better you can play it. You can learn about the game's mechanics, features, modes, maps, weapons, items, operators, skills, perks, etc. You can also learn from other players, streamers, youtubers, guides, forums, etc.</li>
124
- <li>Adjust: The more you adapt to the game, the better you can play it. You can adjust your settings, controls, sensitivity, layout, graphics, sound, etc. to suit your device and preference. You can also adjust your strategy, tactics, loadouts, etc. to suit the game mode, map, situation, etc.</li>
125
- <li>Communicate: The more you cooperate with your team, the better you can play it. You can communicate with your teammates using voice or text chat, ping system, gestures, etc. You can also coordinate your actions, roles, objectives, etc. with your teammates.</li>
126
- <li>Enjoy: The more you have fun with the game, the better you can play it. You can play the game casually or competitively, solo or with friends, online or offline, etc. You can also try new things, experiment with different options, and challenge yourself with different modes.</li>
127
- </ul>
128
- <h3>Q5. Where can I find more tips and tricks for Call of Duty Mobile?</h3>
129
- <p>A5. There are many sources where you can find more tips and tricks for Call of Duty Mobile, such as:</p>
130
- <ul>
131
- <li>The official website and social media accounts of Call of Duty Mobile that provide news, updates, events, announcements, etc.</li>
132
- <li>The in-game community section that provides forums, clans, leaderboards, feedbacks, support, etc.</li>
133
- <li>The online community platforms such as Reddit, Discord, Facebook, Twitter, Instagram, YouTube, Twitch, etc. that provide discussions, reviews, guides, videos, streams, etc.</li>
134
- <li>The online gaming websites and magazines that provide articles, blogs, podcasts, etc.</li>
135
- <li>The online gaming experts and influencers that provide tips, tricks, advice, recommendations, etc.</li>
136
- </ul>
137
- <p>I hope this article has helped you to understand what Call of Duty Mobile Unlimited CP Mod APK is and what you need to know about it. If you have any questions or feedback, please feel free to leave a comment below. Thank you for reading and happy gaming!</p> 197e85843d<br />
138
- <br />
139
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/1phancelerku/anime-remove-background/APK Evozi How to Save Time and Data with the Fastest and Easiest APK Downloader.md DELETED
@@ -1,92 +0,0 @@
1
- <br />
2
- <h1>Apk Evozi: A Guide to Downloading Android Apps and Games</h1>
3
- <p>Do you want to download Android apps and games that are not available on Google Play? Do you want to save bandwidth and storage space by downloading only the APK file? Do you want to update your apps and games faster than waiting for Google Play? Do you want to avoid ads and in-app purchases by downloading modded or hacked versions of apps and games?</p>
4
- <p>If you answered yes to any of these questions, then you need to know about Apk Evozi, a website that lets you download any Android app or game from Google Play as an APK file. In this article, we will explain what Apk Evozi is, how it works, why you should use it, how to use it, and what are the benefits of using it. Let's get started!</p>
5
- <h2>apk evozi</h2><br /><p><b><b>Download</b> ===> <a href="https://jinyurl.com/2uNUv6">https://jinyurl.com/2uNUv6</a></b></p><br /><br />
6
- <h2>What is Apk Evozi?</h2>
7
- <p>Apk Evozi is a website that allows you to download any Android app or game from Google Play as an APK file. An APK file is the installation package of an Android app or game, which contains all the files and data needed to run it on your device. By downloading the APK file, you can install the app or game without using Google Play.</p>
8
- <p>Apk Evozi is developed by Evozi, a team of developers who create innovative apps for Android devices. Some of their popular apps include Network Speed, Internet Speed Meter, Device ID, and App Downloader. You can find more about them on their [Google Play page](^1^).</p>
9
- <h3>How does Apk Evozi work?</h3>
10
- <p>Apk Evozi works by using a script that fetches the APK file from Google Play servers and generates a download link for you. The script is updated regularly to ensure that it works with the latest versions of apps and games. The website also has a database of over 40 million APK files that you can browse and download.</p>
11
- <h3>Why use Apk Evozi?</h3>
12
- <p>There are many reasons why you might want to use Apk Evozi to download Android apps and games. Here are some of them:</p>
13
- <p>apk evozi downloader<br />
14
- apk evozi alternative<br />
15
- apk evozi online<br />
16
- apk evozi network speed<br />
17
- apk evozi app store<br />
18
- apk evozi generator<br />
19
- apk evozi premium<br />
20
- apk evozi review<br />
21
- apk evozi safe<br />
22
- apk evozi vpn<br />
23
- apk evozi whatsapp<br />
24
- apk evozi instagram<br />
25
- apk evozi facebook<br />
26
- apk evozi tiktok<br />
27
- apk evozi youtube<br />
28
- apk evozi spotify<br />
29
- apk evozi netflix<br />
30
- apk evozi minecraft<br />
31
- apk evozi pubg<br />
32
- apk evozi free fire<br />
33
- apk evozi clash of clans<br />
34
- apk evozi among us<br />
35
- apk evozi candy crush<br />
36
- apk evozi roblox<br />
37
- apk evozi zoom<br />
38
- apk evozi google meet<br />
39
- apk evozi gmail<br />
40
- apk evozi google maps<br />
41
- apk evozi google translate<br />
42
- apk evozi google chrome<br />
43
- apk evozi firefox<br />
44
- apk evozi opera mini<br />
45
- apk evozi uc browser<br />
46
- apk evozi adobe reader<br />
47
- apk evozi microsoft office<br />
48
- apk evozi wps office<br />
49
- apk evozi duolingo<br />
50
- apk evozi memrise<br />
51
- apk evozi quizlet<br />
52
- apk evozi khan academy<br />
53
- apk evozi coursera<br />
54
- apk evozi udemy<br />
55
- apk evozi skillshare<br />
56
- apk evozi pinterest<br />
57
- apk evozi reddit<br />
58
- apk evozi twitter<br />
59
- apk evozi snapchat<br />
60
- apk evozi telegram</p>
61
- <ul>
62
- <li>You want to access apps and games that are not available in your region or device. For example, some apps and games are restricted to certain countries or devices due to licensing issues or compatibility issues. By using Apk Evozi, you can bypass these restrictions and download any app or game you want.</li>
63
- <li>You want to save bandwidth and storage space by downloading only the APK file. For example, some apps and games are very large in size and take a lot of time and data to download from Google Play. By using Apk Evozi, you can download only the APK file, which is usually much smaller than the full app or game. You can then transfer the APK file to your device using a USB cable or a cloud service and install it offline.</li>
64
- <li>You want to update your apps and games faster than waiting for Google Play. For example, some apps and games take a long time to receive updates from Google Play due to various reasons. By using Apk Evozi, you can download the latest version of any app or game as soon as it is released on Google Play.</li>
65
- <li>You want to avoid ads and in-app purchases by downloading modded or hacked versions of apps and games <h2>What are the benefits of using Apk Evozi?</h2>
66
- <p>By using Apk Evozi, you can enjoy many benefits that Google Play does not offer. Here are some of them:</p>
67
- <h3>Access to apps and games that are not available in your region or device</h3>
68
- <p>As we mentioned before, some apps and games are restricted to certain countries or devices due to licensing issues or compatibility issues. This can be frustrating if you want to try out a new app or game that is popular or useful in another region or device. By using Apk Evozi, you can download any app or game from any region or device and install it on your own device. For example, you can download the app Spotify, which is not available in some countries, or the game PUBG Mobile, which is not compatible with some devices.</p>
69
- <h3>Save bandwidth and storage space by downloading only the APK file</h3>
70
- <p>Another benefit of using Apk Evozi is that you can save bandwidth and storage space by downloading only the APK file. Some apps and games are very large in size and take a lot of time and data to download from Google Play. For example, the game Asphalt 9: Legends has a size of over 2 GB and requires an additional 1.5 GB of data to download after installation. By using Apk Evozi, you can download only the APK file, which is usually much smaller than the full app or game. For example, the APK file of Asphalt 9: Legends has a size of only 99 MB. You can then transfer the APK file to your device using a USB cable or a cloud service and install it offline. This way, you can save bandwidth and storage space on your device.</p>
71
- <h3>Update your apps and games faster than waiting for Google Play</h3>
72
- <p>A third benefit of using Apk Evozi is that you can update your apps and games faster than waiting for Google Play. Some apps and games take a long time to receive updates from Google Play due to various reasons. For example, some developers release updates in batches or stages to test their stability and performance before rolling them out to all users. Some users may also experience delays or errors in receiving updates from Google Play due to network issues or device settings. By using Apk Evozi, you can download the latest version of any app or game as soon as it is released on Google Play. You can also check the version history of any app or game on the Apk Evozi website to see if there are any new updates available.</p>
73
- <h3>Avoid ads and in-app purchases by downloading modded or hacked versions of apps and games</h3>
74
- <p>A fourth benefit of using Apk Evozi is that you can avoid ads and in-app purchases by downloading modded or hacked versions of apps and games. Some apps and games have annoying ads or require you to pay for extra features or content. For example, some apps have banner ads or pop-up ads that interrupt your experience or consume your data. Some games have in-app purchases that make you spend real money to unlock items, levels, characters, etc. By using Apk Evozi, you can download modded or hacked versions of apps and games that remove the ads or unlock the premium features or content for free. For example, you can download the modded version of Spotify that gives you unlimited skips, offline mode, no ads, etc. You can also download the hacked version of PUBG Mobile that gives you unlimited health, ammo, coins, etc. However, you should be careful when downloading modded or hacked versions of apps and games as they may contain malware or viruses that can harm your device or account.</p>
75
- <h2>Conclusion</h2>
76
- <p>In conclusion, Apk Evozi is a website that lets you download any Android app or game from Google Play as an APK file. By using Apk Evozi, you can access apps and games that are not available in your region or device, save bandwidth and storage space by downloading only the APK file, update your apps and games faster than waiting for Google Play, and avoid ads and in-app purchases by downloading modded or hacked versions of apps and games. To use Apk Evozi, you just need to find the app or game you want to download, copy its Google Play URL, paste it into the Apk Evozi downloader, click on the "Generate Download Link" button, and download the APK file and install it on your device.</p>
77
- <p>If you are looking for a way to download Android apps and games without using Google Play, then Apk Evozi is a great option for you. Try it out today and enjoy the benefits of downloading APK files!</p>
78
- <h2>FAQs</h2>
79
- <ul>
80
- <li><b>Q: Is Apk Evozi safe to use?</b></li>
81
- <li>A A: Apk Evozi is generally safe to use as it fetches the APK files from Google Play servers and does not modify them. However, you should always scan the APK files with a reliable antivirus software before installing them on your device. You should also be careful when downloading modded or hacked versions of apps and games as they may contain malware or viruses that can harm your device or account.</li>
82
- <li><b>Q: Is Apk Evozi legal to use?</b></li>
83
- <li>A: Apk Evozi is legal to use as long as you do not violate the terms and conditions of Google Play or the app or game developers. You should only download apps and games that you have purchased or are free to use. You should also respect the intellectual property rights of the app or game developers and not distribute or share the APK files without their permission.</li>
84
- <li><b>Q: Is Apk Evozi compatible with all Android devices?</b></li>
85
- <li>A: Apk Evozi is compatible with most Android devices that run on Android 4.0 or higher. However, some apps and games may not work properly on some devices due to hardware or software limitations. You should always check the compatibility and requirements of the app or game before downloading and installing it on your device.</li>
86
- <li><b>Q: How can I contact Apk Evozi if I have any questions or feedback?</b></li>
87
- <li>A: You can contact Apk Evozi by using the contact form on their website or by sending an email to [email protected]. You can also follow them on their social media accounts, such as Facebook, Twitter, Instagram, and YouTube, to get the latest news and updates about their website and apps.</li>
88
- <li><b>Q: What are some alternatives to Apk Evozi?</b></li>
89
- <li>A: There are many other websites and apps that let you download APK files from Google Play or other sources. Some of them are APKPure, APKMirror, Aptoide, Uptodown, and Appvn. However, you should always be careful when using these websites and apps as they may not be as safe or reliable as Apk Evozi. You should always scan the APK files with a reliable antivirus software before installing them on your device.</li>
90
- </ul></p> 197e85843d<br />
91
- <br />
92
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIConsultant/MusicGen/audiocraft/quantization/vq.py DELETED
@@ -1,115 +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
-
10
- import torch
11
-
12
- from .base import BaseQuantizer, QuantizedResult
13
- from .core_vq import ResidualVectorQuantization
14
-
15
-
16
- class ResidualVectorQuantizer(BaseQuantizer):
17
- """Residual Vector Quantizer.
18
-
19
- Args:
20
- dimension (int): Dimension of the codebooks.
21
- n_q (int): Number of residual vector quantizers used.
22
- q_dropout (bool): Random quantizer drop out at train time.
23
- bins (int): Codebook size.
24
- decay (float): Decay for exponential moving average over the codebooks.
25
- kmeans_init (bool): Whether to use kmeans to initialize the codebooks.
26
- kmeans_iters (int): Number of iterations used for kmeans initialization.
27
- threshold_ema_dead_code (int): Threshold for dead code expiration. Replace any codes
28
- that have an exponential moving average cluster size less than the specified threshold with
29
- randomly selected vector from the current batch.
30
- orthogonal_reg_weight (float): Orthogonal regularization weights.
31
- orthogonal_reg_active_codes_only (bool): Apply orthogonal regularization only on active codes.
32
- orthogonal_reg_max_codes (optional int): Maximum number of codes to consider.
33
- for orthogonal regularization.
34
- """
35
- def __init__(
36
- self,
37
- dimension: int = 256,
38
- n_q: int = 8,
39
- q_dropout: bool = False,
40
- bins: int = 1024,
41
- decay: float = 0.99,
42
- kmeans_init: bool = True,
43
- kmeans_iters: int = 10,
44
- threshold_ema_dead_code: int = 2,
45
- orthogonal_reg_weight: float = 0.0,
46
- orthogonal_reg_active_codes_only: bool = False,
47
- orthogonal_reg_max_codes: tp.Optional[int] = None,
48
- ):
49
- super().__init__()
50
- self.max_n_q = n_q
51
- self.n_q = n_q
52
- self.q_dropout = q_dropout
53
- self.dimension = dimension
54
- self.bins = bins
55
- self.decay = decay
56
- self.kmeans_init = kmeans_init
57
- self.kmeans_iters = kmeans_iters
58
- self.threshold_ema_dead_code = threshold_ema_dead_code
59
- self.orthogonal_reg_weight = orthogonal_reg_weight
60
- self.orthogonal_reg_active_codes_only = orthogonal_reg_active_codes_only
61
- self.orthogonal_reg_max_codes = orthogonal_reg_max_codes
62
- self.vq = ResidualVectorQuantization(
63
- dim=self.dimension,
64
- codebook_size=self.bins,
65
- num_quantizers=self.n_q,
66
- decay=self.decay,
67
- kmeans_init=self.kmeans_init,
68
- kmeans_iters=self.kmeans_iters,
69
- threshold_ema_dead_code=self.threshold_ema_dead_code,
70
- orthogonal_reg_weight=self.orthogonal_reg_weight,
71
- orthogonal_reg_active_codes_only=self.orthogonal_reg_active_codes_only,
72
- orthogonal_reg_max_codes=self.orthogonal_reg_max_codes,
73
- channels_last=False
74
- )
75
-
76
- def forward(self, x: torch.Tensor, frame_rate: int):
77
- n_q = self.n_q
78
- if self.training and self.q_dropout:
79
- n_q = int(torch.randint(1, self.n_q + 1, (1,)).item())
80
- bw_per_q = math.log2(self.bins) * frame_rate / 1000
81
- quantized, codes, commit_loss = self.vq(x, n_q=n_q)
82
- codes = codes.transpose(0, 1)
83
- # codes is [B, K, T], with T frames, K nb of codebooks.
84
- bw = torch.tensor(n_q * bw_per_q).to(x)
85
- return QuantizedResult(quantized, codes, bw, penalty=torch.mean(commit_loss))
86
-
87
- def encode(self, x: torch.Tensor) -> torch.Tensor:
88
- """Encode a given input tensor with the specified frame rate at the given bandwidth.
89
- The RVQ encode method sets the appropriate number of quantizer to use
90
- and returns indices for each quantizer.
91
- """
92
- n_q = self.n_q
93
- codes = self.vq.encode(x, n_q=n_q)
94
- codes = codes.transpose(0, 1)
95
- # codes is [B, K, T], with T frames, K nb of codebooks.
96
- return codes
97
-
98
- def decode(self, codes: torch.Tensor) -> torch.Tensor:
99
- """Decode the given codes to the quantized representation."""
100
- # codes is [B, K, T], with T frames, K nb of codebooks, vq.decode expects [K, B, T].
101
- codes = codes.transpose(0, 1)
102
- quantized = self.vq.decode(codes)
103
- return quantized
104
-
105
- @property
106
- def total_codebooks(self):
107
- return self.max_n_q
108
-
109
- @property
110
- def num_codebooks(self):
111
- return self.n_q
112
-
113
- def set_num_codebooks(self, n: int):
114
- assert n > 0 and n <= self.max_n_q
115
- self.n_q = n
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AIConsultant/MusicGen/tests/models/test_audiogen.py DELETED
@@ -1,53 +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 pytest
8
- import torch
9
-
10
- from audiocraft.models import AudioGen
11
-
12
-
13
- class TestAudioGenModel:
14
- def get_audiogen(self):
15
- ag = AudioGen.get_pretrained(name='debug', device='cpu')
16
- ag.set_generation_params(duration=2.0, extend_stride=2.)
17
- return ag
18
-
19
- def test_base(self):
20
- ag = self.get_audiogen()
21
- assert ag.frame_rate == 25
22
- assert ag.sample_rate == 16000
23
- assert ag.audio_channels == 1
24
-
25
- def test_generate_continuation(self):
26
- ag = self.get_audiogen()
27
- prompt = torch.randn(3, 1, 16000)
28
- wav = ag.generate_continuation(prompt, 16000)
29
- assert list(wav.shape) == [3, 1, 32000]
30
-
31
- prompt = torch.randn(2, 1, 16000)
32
- wav = ag.generate_continuation(
33
- prompt, 16000, ['youpi', 'lapin dort'])
34
- assert list(wav.shape) == [2, 1, 32000]
35
-
36
- prompt = torch.randn(2, 1, 16000)
37
- with pytest.raises(AssertionError):
38
- wav = ag.generate_continuation(
39
- prompt, 16000, ['youpi', 'lapin dort', 'one too many'])
40
-
41
- def test_generate(self):
42
- ag = self.get_audiogen()
43
- wav = ag.generate(
44
- ['youpi', 'lapin dort'])
45
- assert list(wav.shape) == [2, 1, 32000]
46
-
47
- def test_generate_long(self):
48
- ag = self.get_audiogen()
49
- ag.max_duration = 3.
50
- ag.set_generation_params(duration=4., extend_stride=2.)
51
- wav = ag.generate(
52
- ['youpi', 'lapin dort'])
53
- assert list(wav.shape) == [2, 1, 16000 * 4]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_0_ClothesDetection/mmyolo/configs/yolov5/voc/yolov5_l-v61_fast_1xb32-50e_voc.py DELETED
@@ -1,25 +0,0 @@
1
- _base_ = './yolov5_s-v61_fast_1xb64-50e_voc.py'
2
-
3
- deepen_factor = 1.0
4
- widen_factor = 1.0
5
- train_batch_size_per_gpu = 32
6
- train_num_workers = 8
7
-
8
- load_from = 'https://download.openmmlab.com/mmyolo/v0/yolov5/yolov5_l-v61_syncbn_fast_8xb16-300e_coco/yolov5_l-v61_syncbn_fast_8xb16-300e_coco_20220917_031007-096ef0eb.pth' # noqa
9
-
10
- model = dict(
11
- backbone=dict(
12
- deepen_factor=deepen_factor,
13
- widen_factor=widen_factor,
14
- ),
15
- neck=dict(
16
- deepen_factor=deepen_factor,
17
- widen_factor=widen_factor,
18
- ),
19
- bbox_head=dict(head_module=dict(widen_factor=widen_factor)))
20
-
21
- train_dataloader = dict(
22
- batch_size=train_batch_size_per_gpu, num_workers=train_num_workers)
23
-
24
- optim_wrapper = dict(
25
- optimizer=dict(batch_size_per_gpu=train_batch_size_per_gpu))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ababababababbababa/AraPoet/app.py DELETED
@@ -1,121 +0,0 @@
1
- # coding=utf8
2
-
3
- import json
4
- import torch
5
- import gradio as gr
6
- import pyarabic.araby as araby
7
- from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, AutoConfig
8
-
9
- feature_names = [
10
- "Title",
11
- "Meter",
12
- "Theme",
13
- "Name",
14
- "Era",
15
- "Country",
16
- "Type"
17
- ]
18
-
19
- with open("./poet_names.json", 'r', encoding="utf-8") as fin:
20
- poet_names = json.load(fin)
21
-
22
- def normalize_text(text):
23
- text = araby.strip_tatweel(text)
24
- return text
25
-
26
- def generate_poem(country, era, meter, theme, lang_type, poet, num_lines, num_poems, title):
27
-
28
- num_poems = int(num_poems)
29
- prompt = title
30
- prompt = normalize_text(prompt)
31
-
32
- features = [prompt, meter, theme, poet, era, country, lang_type]
33
-
34
- prompt = ""
35
- for name, feat in zip(feature_names, features):
36
- prompt += f"{name}: {feat}; "
37
- prompt += f"Length: {num_lines}; Poem:"
38
-
39
- num_beams = 5
40
- top_k = 50
41
- top_p = 0.9
42
- r_penalty = 5.
43
-
44
- input_ids = torch.tensor(tokenizer.encode(prompt)).unsqueeze(0)
45
- print(f"> Running: {prompt} | {num_poems} Poems")
46
- outputs = model.generate(input_ids=input_ids,
47
- min_length=32,
48
- max_length=256,
49
- do_sample=True,
50
- top_k=top_k,
51
- top_p=top_p,
52
- repetition_penalty=r_penalty,
53
- num_beams=num_beams,
54
- num_return_sequences=num_poems,
55
- early_stopping=True
56
- )
57
-
58
- poems = []
59
- print(f"> # of Outputs: {len(outputs)}")
60
- for output in outputs:
61
- raw = tokenizer.decode(output)
62
- raw = raw.replace("<pad>", "").replace("</s>", "")
63
- print("="*100)
64
- print(raw)
65
- print("="*100)
66
- poems += ['\n'.join(raw.split("<s>"))]
67
-
68
- return "\n\n".join(poems)
69
-
70
- meters = ['البسيط', 'التفعيله', 'الحداء', 'الخفيف', 'الدوبيت', 'الرجز', 'الرمل', 'السريع', 'السلسلة', 'الصخري', 'الطويل', 'الكامل', 'الكان كان', 'اللويحاني', 'المتدارك', 'المتقارب', 'المجتث', 'المديد', 'المسحوب', 'المضارع', 'المقتضب', 'المنسرح', 'المواليا', 'الموشح', 'الهجيني', 'الهزج', 'الوافر', 'بحر أحذ الكامل', 'بحر أحذ المديد', 'بحر أحذ الوافر', 'بحر البسيط', 'بحر التفعيله', 'بحر الخبب', 'بحر الخفيف', 'بحر الدوبيت', 'بحر الرجز', 'بحر الرمل', 'بحر السريع', 'بحر السلسلة', 'بحر الطويل', 'بحر القوما', 'بحر الكامل', 'بحر الكامل المقطوع', 'بحر المتدارك', 'بحر المتدارك المنهوك', 'بحر المتقارب', 'بحر المجتث', 'بحر المديد', 'بحر المضارع', 'بحر المقتضب', 'بحر المنسرح', 'بحر المواليا', 'بحر الهزج', 'بحر الوافر', 'بحر تفعيلة الرجز', 'بحر تفعيلة الرمل', 'بحر تفعيلة الكامل', 'بحر تفعيلة المتقارب', 'بحر مجزوء البسيط', 'بحر مجزوء الخفيف', 'بحر مجزوء الدوبيت', 'بحر مجزوء الرجز', 'بحر مجزوء الرمل', 'بحر مجزوء الرمل ', 'بحر مجزوء السريع', 'بحر مجزوء الطويل', 'بحر مجزوء الكامل', 'بحر مجزوء المتدارك', 'بحر مجزوء المتقارب', 'بحر مجزوء المجتث', 'بحر مجزوء المديد', 'بحر مجزوء المنسرح', 'بحر مجزوء المواليا', 'بحر مجزوء الهزج', 'بحر مجزوء الوافر', 'بحر مجزوء موشح', 'بحر مخلع البسيط', 'بحر مخلع الرجز', 'بحر مخلع الرمل', 'بحر مخلع السريع', 'بحر مخلع الكامل', 'بحر مخلع موشح', 'بحر مربع البسيط', 'بحر مربع الرجز', 'بحر مشطور الرجز', 'بحر مشطور السريع', 'بحر مشطور الطويل', 'بحر منهوك البسيط', 'بحر منهوك الرجز', 'بحر منهوك الكامل', 'بحر منهوك المنسرح', 'بحر موشح', 'بسيط', 'زجل', 'شعر التفعيلة', 'شعر حر', 'عامي', 'عدة أبحر', 'عموديه', 'مجزوء الخفيف', 'نثريه', 'None']
71
- themes = ['قصيدة اعتذار', 'قصيدة الاناشيد', 'قصيدة المعلقات', 'قصيدة حزينه', 'قصيدة دينية', 'قصيدة ذم', 'قصيدة رثاء', 'قصيدة رومنسيه', 'قصيدة سياسية', 'قصيدة شوق', 'قصيدة عامه', 'قصيدة عتاب', 'قصيدة غزل', 'قصيدة فراق', 'قصيدة قصيره', 'قصيدة مدح', 'قصيدة هجاء', 'قصيدة وطنيه', 'None']
72
- language_types = ['شعبي', 'عامي', 'فصحى', 'فصيح', '-', 'None']
73
- poet_era = ['العصر الأموي', 'العصر الأندلسي', 'العصر الأيوبي', 'العصر الإسلامي', 'العصر الجاهلي', 'العصر الحديث', 'العصر العباسي', 'العصر العثماني', 'العصر الفاطمي', 'العصر المملوكي', 'المخضرمين', 'المغرب والأندلس', 'عصر بين الدولتين', 'قبل الإسلام', 'None']
74
- countries = ['الأردن', 'الإمارات', 'البحرين', 'الجزائر', 'السعودية', 'السنغال', 'السودان', 'الصومال', 'العراق', 'الكويت', 'المغرب', 'اليمن', 'تونس', 'سوريا', 'سورية', 'عمان', 'فلسطين', 'قطر', 'لبنان', 'ليبيا', 'مصر', 'موريتانيا', 'None']
75
-
76
- tokenizer: AutoTokenizer = AutoTokenizer.from_pretrained("bkhmsi/arapoet-mt5", use_auth_token="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")
77
- model: AutoModelForSeq2SeqLM = AutoModelForSeq2SeqLM.from_pretrained("bkhmsi/arapoet-mt5", use_auth_token="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")
78
- model.eval()
79
-
80
- title = ""
81
- with gr.Blocks(title=title) as demo:
82
- inputs = []
83
-
84
- gr.Markdown(
85
- """
86
- # AraPoet: Controlled Arabic Poetry Generation
87
-
88
- The model hosted here is a finetuned version of [mT5-large](https://huggingface.co/google/mt5-large) (∼ 1.2B parameters) on the largest repository of Arabic poems, the [ashaar](https://huggingface.co/datasets/arbml/ashaar) dataset.
89
- The model can be conditioned on a set of attributes to control the style of the generated poem.
90
- Namely: the poet name, country, era, meter, theme, language type, title and the length of the poem.
91
- You can start by clicking on one of the examples below or try your own input.
92
- """
93
- )
94
-
95
- with gr.Row():
96
- inputs += [gr.Dropdown(countries, label="Country", value="مصر")]
97
- inputs += [gr.Dropdown(poet_era, label="Era", value="العصر الحديث")]
98
- with gr.Row():
99
- inputs += [gr.Dropdown(meters, label="Meter", value="بحر السريع")]
100
- inputs += [gr.Dropdown(themes, label="Theme", value="قصيدة رومنسيه")]
101
- with gr.Row():
102
- inputs += [gr.Dropdown(language_types, label="Language Type", value="فصحى")]
103
- inputs += [gr.Dropdown(poet_names, label="Poet", value="أحمد شوقي")]
104
- with gr.Row():
105
- inputs += [gr.Slider(2, 20, value=6, step=1, label="Number of Lines")]
106
- inputs += [gr.Slider(1, 4, value=1, step=1, label="Number of Samples")]
107
- with gr.Row():
108
- inputs += [gr.Textbox(label="Title", value="إثن عنان القلب واسلم به")]
109
-
110
- btn = gr.Button("Generate")
111
- examples = gr.Examples(examples="./examples", inputs=inputs)
112
- btn.click(generate_poem, inputs, gr.TextArea(label="Generation"))
113
-
114
-
115
- gr.Markdown(
116
- """
117
- Checkout our [AraPoet Preprint](https://github.com/BKHMSI/BKHMSI.github.io/blob/master/archive/resources/AraPoet.pdf) for more details about the model.
118
- """
119
- )
120
-
121
- demo.launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AbandonedMuse/UnlimitedMusicGen/Dockerfile DELETED
@@ -1,26 +0,0 @@
1
- FROM nvidia/cuda:11.8.0-base-ubuntu22.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive \
4
- PYTHONUNBUFFERED=1 \
5
- PYTHONIOENCODING=UTF-8
6
- RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt apt update &&\
7
- apt install -y \
8
- wget \
9
- git \
10
- pkg-config \
11
- python3 \
12
- python3-pip \
13
- python-is-python3 \
14
- ffmpeg \
15
- libnvrtc11.2 \
16
- libtcmalloc-minimal4
17
-
18
- RUN useradd -m -u 1000 ac
19
- RUN --mount=type=cache,target=/root/.cache python -m pip install --upgrade pip wheel
20
- ENV TORCH_COMMAND="pip install torch==2.0.1+cu118 torchaudio --extra-index-url https://download.pytorch.org/whl/cu118"
21
- RUN --mount=type=cache,target=/root/.cache python -m $TORCH_COMMAND
22
- RUN ln -s /usr/lib/x86_64-linux-gnu/libnvrtc.so.11.2 /usr/lib/x86_64-linux-gnu/libnvrtc.so
23
- USER 1000
24
- RUN mkdir ~/.cache
25
- RUN --mount=type=cache,target=/home/ac/.cache --mount=source=.,target=/home/ac/audiocraft python -m pip install -r /home/ac/audiocraft/requirements.txt
26
- WORKDIR /home/ac/audiocraft
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/deprecated/__init__.py DELETED
@@ -1,14 +0,0 @@
1
- from .AiService import AiService
2
- from .CodeLinkAva import CodeLinkAva
3
- from .DfeHub import DfeHub
4
- from .EasyChat import EasyChat
5
- from .Forefront import Forefront
6
- from .GetGpt import GetGpt
7
- from .Opchatgpts import Opchatgpts
8
- from .Lockchat import Lockchat
9
- from .Wewordle import Wewordle
10
- from .Equing import Equing
11
- from .Wuguokai import Wuguokai
12
- from .V50 import V50
13
- from .FastGpt import FastGpt
14
- from .ChatgptLogin import ChatgptLogin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/agentverse/environments/tasksolving_env/rules/role_assigner/__init__.py DELETED
@@ -1,6 +0,0 @@
1
- from agentverse.registry import Registry
2
-
3
- role_assigner_registry = Registry(name="RoleAssignerRegistry")
4
-
5
- from .base import BaseRoleAssigner
6
- from .role_description import DescriptionAssigner
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/agentverse/utils.py DELETED
@@ -1,50 +0,0 @@
1
- from typing import NamedTuple, Union
2
- from enum import Enum
3
-
4
- import abc
5
-
6
-
7
- class AgentAction(NamedTuple):
8
- """Agent's action to take."""
9
-
10
- tool: str
11
- tool_input: Union[str, dict]
12
- log: str
13
-
14
-
15
- class AgentFinish(NamedTuple):
16
- """Agent's return value."""
17
-
18
- return_values: dict
19
- log: str
20
-
21
-
22
- class AgentCriticism(NamedTuple):
23
- """Agent's criticism."""
24
-
25
- is_agree: bool
26
- criticism: str
27
- sender_agent: object = None
28
-
29
-
30
- class AGENT_TYPES(Enum):
31
- ROLE_ASSIGNMENT = 0
32
- SOLVER = 1
33
- CRITIC = 2
34
- EXECUTION = 3
35
- EVALUATION = 4
36
- MANAGER = 5
37
-
38
-
39
- class Singleton(abc.ABCMeta, type):
40
- """
41
- Singleton metaclass for ensuring only one instance of a class.
42
- """
43
-
44
- _instances = {}
45
-
46
- def __call__(cls, *args, **kwargs):
47
- """Call method for the singleton metaclass."""
48
- if cls not in cls._instances:
49
- cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
50
- return cls._instances[cls]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/puff/Puff.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import Base from '../base/Base';
2
- export default class Puff extends Base { }
 
 
 
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/slider/GetEndPoint.js DELETED
@@ -1,27 +0,0 @@
1
- import GetThumbAlignPoint from './GetThumbAlignPoint.js';
2
-
3
- const AlignRight = Phaser.Display.Align.RIGHT_CENTER;
4
- const AlignBottom = Phaser.Display.Align.BOTTOM_CENTER;
5
-
6
- var GetEndoint = function (out) {
7
- if (out === undefined) {
8
- out = tmpPoint;
9
- }
10
- if (this.childrenMap.thumb) {
11
- var align = (this.orientation === 0) ? AlignRight : AlignBottom;
12
- GetThumbAlignPoint.call(this, align, out);
13
- } else {
14
- if (this.orientation === 0) {
15
- out.x = this.innerRight - 1; // Add 1 pixel margin
16
- out.y = this.centerY;
17
- } else {
18
- out.x = this.centerX;
19
- out.y = this.innerBottom - 1; // Add 1 pixel margin
20
- }
21
- }
22
- return out;
23
- }
24
-
25
- var tmpPoint = {};
26
-
27
- export default GetEndoint;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Aki004/herta-so-vits/demo.py DELETED
@@ -1,30 +0,0 @@
1
- import edge_tts
2
- import asyncio
3
- import librosa
4
- import soundfile
5
- import io
6
-
7
- from inference.infer_tool import Svc
8
-
9
- TEXT = "私はヘルタ。今は忙しいから、リモート人形のオート返答機能に任せる。こんにちは、こんにちは、ごきげんよう、良い日になりますように。それじゃ"
10
- VOICE = "ja-JP-NanamiNeural"
11
- OUTPUT_FILE = "test.mp3"
12
-
13
- asyncio.run(edge_tts.Communicate(TEXT, VOICE).save(OUTPUT_FILE))
14
- audio, sr = librosa.load(OUTPUT_FILE, sr=16000, mono=True)
15
- raw_path = io.BytesIO()
16
- soundfile.write(raw_path, audio, 16000, format="wav")
17
- raw_path.seek(0)
18
- print('checkpoint 1')
19
-
20
- model = Svc(fr"Herta-Svc/G_10000.pth", f"Herta-Svc/config.json", device = 'cpu')
21
- print('checkpoint 2')
22
-
23
- out_audio, out_sr = model.infer('speaker0', 0, raw_path,
24
- auto_predict_f0 = True,
25
- )
26
- print('checkpoint 3')
27
-
28
- soundfile.write('out_audio.wav', out_audio.cpu().numpy(), 44100)
29
-
30
- print("done")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Al-Chan/Vits_League_of_Legends_Yuumi_TTS/rearrange_speaker.py DELETED
@@ -1,37 +0,0 @@
1
- import torch
2
- import argparse
3
- import json
4
-
5
- if __name__ == "__main__":
6
- parser = argparse.ArgumentParser()
7
- parser.add_argument("--model_dir", type=str, default="./OUTPUT_MODEL/G_latest.pth")
8
- parser.add_argument("--config_dir", type=str, default="./configs/modified_finetune_speaker.json")
9
- args = parser.parse_args()
10
-
11
- model_sd = torch.load(args.model_dir, map_location='cpu')
12
- with open(args.config_dir, 'r', encoding='utf-8') as f:
13
- hps = json.load(f)
14
-
15
- valid_speakers = list(hps['speakers'].keys())
16
- if hps['data']['n_speakers'] > len(valid_speakers):
17
- new_emb_g = torch.zeros([len(valid_speakers), 256])
18
- old_emb_g = model_sd['model']['emb_g.weight']
19
- for i, speaker in enumerate(valid_speakers):
20
- new_emb_g[i, :] = old_emb_g[hps['speakers'][speaker], :]
21
- hps['speakers'][speaker] = i
22
- hps['data']['n_speakers'] = len(valid_speakers)
23
- model_sd['model']['emb_g.weight'] = new_emb_g
24
- with open("./finetune_speaker.json", 'w', encoding='utf-8') as f:
25
- json.dump(hps, f, indent=2)
26
- torch.save(model_sd, "./G_latest.pth")
27
- else:
28
- with open("./finetune_speaker.json", 'w', encoding='utf-8') as f:
29
- json.dump(hps, f, indent=2)
30
- torch.save(model_sd, "./G_latest.pth")
31
- # save another config file copy in MoeGoe format
32
- hps['speakers'] = valid_speakers
33
- with open("./moegoe_config.json", 'w', encoding='utf-8') as f:
34
- json.dump(hps, f, indent=2)
35
-
36
-
37
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Alex123aaa/1234/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: 1234
3
- emoji: 🌍
4
- colorFrom: gray
5
- colorTo: red
6
- sdk: gradio
7
- sdk_version: 3.45.0
8
- app_file: app.py
9
- pinned: false
10
- license: unknown
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ameaou/academic-chatgpt3.1/crazy_functions/总结word文档.py DELETED
@@ -1,127 +0,0 @@
1
- from toolbox import update_ui
2
- from toolbox import CatchException, report_execption, write_results_to_file
3
- from .crazy_utils import request_gpt_model_in_new_thread_with_ui_alive
4
- fast_debug = False
5
-
6
-
7
- def 解析docx(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt):
8
- import time, os
9
- # pip install python-docx 用于docx格式,跨平台
10
- # pip install pywin32 用于doc格式,仅支持Win平台
11
- for index, fp in enumerate(file_manifest):
12
- if fp.split(".")[-1] == "docx":
13
- from docx import Document
14
- doc = Document(fp)
15
- file_content = "\n".join([para.text for para in doc.paragraphs])
16
- else:
17
- import win32com.client
18
- word = win32com.client.Dispatch("Word.Application")
19
- word.visible = False
20
- # 打开文件
21
- print('fp', os.getcwd())
22
- doc = word.Documents.Open(os.getcwd() + '/' + fp)
23
- # file_content = doc.Content.Text
24
- doc = word.ActiveDocument
25
- file_content = doc.Range().Text
26
- doc.Close()
27
- word.Quit()
28
-
29
- print(file_content)
30
- # private_upload里面的文件名在解压zip后容易出现乱码(rar和7z格式正常),故可以只分析文章内容,不输入文件名
31
- from .crazy_utils import breakdown_txt_to_satisfy_token_limit_for_pdf
32
- from request_llm.bridge_all import model_info
33
- max_token = model_info[llm_kwargs['llm_model']]['max_token']
34
- TOKEN_LIMIT_PER_FRAGMENT = max_token * 3 // 4
35
- paper_fragments = breakdown_txt_to_satisfy_token_limit_for_pdf(
36
- txt=file_content,
37
- get_token_fn=model_info[llm_kwargs['llm_model']]['token_cnt'],
38
- limit=TOKEN_LIMIT_PER_FRAGMENT
39
- )
40
- this_paper_history = []
41
- for i, paper_frag in enumerate(paper_fragments):
42
- i_say = f'请对下面的文章片段用中文做概述,文件名是{os.path.relpath(fp, project_folder)},文章内容是 ```{paper_frag}```'
43
- i_say_show_user = f'请对下面的文章片段做概述: {os.path.abspath(fp)}的第{i+1}/{len(paper_fragments)}个片段。'
44
- gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive(
45
- inputs=i_say,
46
- inputs_show_user=i_say_show_user,
47
- llm_kwargs=llm_kwargs,
48
- chatbot=chatbot,
49
- history=[],
50
- sys_prompt="总结文章。"
51
- )
52
-
53
- chatbot[-1] = (i_say_show_user, gpt_say)
54
- history.extend([i_say_show_user,gpt_say])
55
- this_paper_history.extend([i_say_show_user,gpt_say])
56
-
57
- # 已经对该文章的所有片段总结完毕,如果文章被切分了,
58
- if len(paper_fragments) > 1:
59
- i_say = f"根据以上的对话,总结文章{os.path.abspath(fp)}的主要内容。"
60
- gpt_say = yield from request_gpt_model_in_new_thread_with_ui_alive(
61
- inputs=i_say,
62
- inputs_show_user=i_say,
63
- llm_kwargs=llm_kwargs,
64
- chatbot=chatbot,
65
- history=this_paper_history,
66
- sys_prompt="总结文章。"
67
- )
68
-
69
- history.extend([i_say,gpt_say])
70
- this_paper_history.extend([i_say,gpt_say])
71
-
72
- res = write_results_to_file(history)
73
- chatbot.append(("完成了吗?", res))
74
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
75
-
76
- res = write_results_to_file(history)
77
- chatbot.append(("所有文件都总结完成了吗?", res))
78
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
79
-
80
-
81
- @CatchException
82
- def 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
83
- import glob, os
84
-
85
- # 基本信息:功能、贡献者
86
- chatbot.append([
87
- "函数插件功能?",
88
- "批量总结Word文档。函数插件贡献者: JasonGuo1"])
89
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
90
-
91
- # 尝试导入依赖,如果缺少依赖,则给出安装建议
92
- try:
93
- from docx import Document
94
- except:
95
- report_execption(chatbot, history,
96
- a=f"解析项目: {txt}",
97
- b=f"导入软件依赖失败。使用该模块需要额外依赖,安装方法```pip install --upgrade python-docx pywin32```。")
98
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
99
- return
100
-
101
- # 清空历史,以免输入溢出
102
- history = []
103
-
104
- # 检测输入参数,如没有给定输入参数,直接退出
105
- if os.path.exists(txt):
106
- project_folder = txt
107
- else:
108
- if txt == "": txt = '空空如也的输入栏'
109
- report_execption(chatbot, history, a=f"解析项目: {txt}", b=f"找不到本地项目或无权访问: {txt}")
110
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
111
- return
112
-
113
- # 搜索需要处理的文件清单
114
- if txt.endswith('.docx') or txt.endswith('.doc'):
115
- file_manifest = [txt]
116
- else:
117
- file_manifest = [f for f in glob.glob(f'{project_folder}/**/*.docx', recursive=True)] + \
118
- [f for f in glob.glob(f'{project_folder}/**/*.doc', recursive=True)]
119
-
120
- # 如果没找到任何文件
121
- if len(file_manifest) == 0:
122
- report_execption(chatbot, history, a=f"解析项目: {txt}", b=f"找不到任何.docx或doc文件: {txt}")
123
- yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
124
- return
125
-
126
- # 开始正式执行任务
127
- yield from 解析docx(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py DELETED
@@ -1,540 +0,0 @@
1
- import inspect
2
- from typing import Callable, List, Optional, Union
3
-
4
- import numpy as np
5
- import PIL
6
- import torch
7
- from transformers import CLIPImageProcessor, CLIPTokenizer
8
-
9
- from ...configuration_utils import FrozenDict
10
- from ...schedulers import DDIMScheduler, LMSDiscreteScheduler, PNDMScheduler
11
- from ...utils import deprecate, logging
12
- from ..onnx_utils import ORT_TO_NP_TYPE, OnnxRuntimeModel
13
- from ..pipeline_utils import DiffusionPipeline
14
- from . import StableDiffusionPipelineOutput
15
-
16
-
17
- logger = logging.get_logger(__name__) # pylint: disable=invalid-name
18
-
19
-
20
- def preprocess(image):
21
- w, h = image.size
22
- w, h = (x - x % 32 for x in (w, h)) # resize to integer multiple of 32
23
- image = image.resize((w, h), resample=PIL.Image.LANCZOS)
24
- image = np.array(image).astype(np.float32) / 255.0
25
- image = image[None].transpose(0, 3, 1, 2)
26
- return 2.0 * image - 1.0
27
-
28
-
29
- def preprocess_mask(mask, scale_factor=8):
30
- mask = mask.convert("L")
31
- w, h = mask.size
32
- w, h = (x - x % 32 for x in (w, h)) # resize to integer multiple of 32
33
- mask = mask.resize((w // scale_factor, h // scale_factor), resample=PIL.Image.NEAREST)
34
- mask = np.array(mask).astype(np.float32) / 255.0
35
- mask = np.tile(mask, (4, 1, 1))
36
- mask = mask[None].transpose(0, 1, 2, 3) # what does this step do?
37
- mask = 1 - mask # repaint white, keep black
38
- return mask
39
-
40
-
41
- class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
42
- r"""
43
- Pipeline for text-guided image inpainting using Stable Diffusion. This is a *legacy feature* for Onnx pipelines to
44
- provide compatibility with StableDiffusionInpaintPipelineLegacy and may be removed in the future.
45
-
46
- This model inherits from [`DiffusionPipeline`]. Check the superclass documentation for the generic methods the
47
- library implements for all the pipelines (such as downloading or saving, running on a particular device, etc.)
48
-
49
- Args:
50
- vae ([`AutoencoderKL`]):
51
- Variational Auto-Encoder (VAE) Model to encode and decode images to and from latent representations.
52
- text_encoder ([`CLIPTextModel`]):
53
- Frozen text-encoder. Stable Diffusion uses the text portion of
54
- [CLIP](https://huggingface.co/docs/transformers/model_doc/clip#transformers.CLIPTextModel), specifically
55
- the [clip-vit-large-patch14](https://huggingface.co/openai/clip-vit-large-patch14) variant.
56
- tokenizer (`CLIPTokenizer`):
57
- Tokenizer of class
58
- [CLIPTokenizer](https://huggingface.co/docs/transformers/v4.21.0/en/model_doc/clip#transformers.CLIPTokenizer).
59
- unet ([`UNet2DConditionModel`]): Conditional U-Net architecture to denoise the encoded image latents.
60
- scheduler ([`SchedulerMixin`]):
61
- A scheduler to be used in combination with `unet` to denoise the encoded image latents. Can be one of
62
- [`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
63
- safety_checker ([`StableDiffusionSafetyChecker`]):
64
- Classification module that estimates whether generated images could be considered offensive or harmful.
65
- Please, refer to the [model card](https://huggingface.co/runwayml/stable-diffusion-v1-5) for details.
66
- feature_extractor ([`CLIPImageProcessor`]):
67
- Model that extracts features from generated images to be used as inputs for the `safety_checker`.
68
- """
69
- _optional_components = ["safety_checker", "feature_extractor"]
70
- _is_onnx = True
71
-
72
- vae_encoder: OnnxRuntimeModel
73
- vae_decoder: OnnxRuntimeModel
74
- text_encoder: OnnxRuntimeModel
75
- tokenizer: CLIPTokenizer
76
- unet: OnnxRuntimeModel
77
- scheduler: Union[DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler]
78
- safety_checker: OnnxRuntimeModel
79
- feature_extractor: CLIPImageProcessor
80
-
81
- def __init__(
82
- self,
83
- vae_encoder: OnnxRuntimeModel,
84
- vae_decoder: OnnxRuntimeModel,
85
- text_encoder: OnnxRuntimeModel,
86
- tokenizer: CLIPTokenizer,
87
- unet: OnnxRuntimeModel,
88
- scheduler: Union[DDIMScheduler, PNDMScheduler, LMSDiscreteScheduler],
89
- safety_checker: OnnxRuntimeModel,
90
- feature_extractor: CLIPImageProcessor,
91
- requires_safety_checker: bool = True,
92
- ):
93
- super().__init__()
94
-
95
- if hasattr(scheduler.config, "steps_offset") and scheduler.config.steps_offset != 1:
96
- deprecation_message = (
97
- f"The configuration file of this scheduler: {scheduler} is outdated. `steps_offset`"
98
- f" should be set to 1 instead of {scheduler.config.steps_offset}. Please make sure "
99
- "to update the config accordingly as leaving `steps_offset` might led to incorrect results"
100
- " in future versions. If you have downloaded this checkpoint from the Hugging Face Hub,"
101
- " it would be very nice if you could open a Pull request for the `scheduler/scheduler_config.json`"
102
- " file"
103
- )
104
- deprecate("steps_offset!=1", "1.0.0", deprecation_message, standard_warn=False)
105
- new_config = dict(scheduler.config)
106
- new_config["steps_offset"] = 1
107
- scheduler._internal_dict = FrozenDict(new_config)
108
-
109
- if hasattr(scheduler.config, "clip_sample") and scheduler.config.clip_sample is True:
110
- deprecation_message = (
111
- f"The configuration file of this scheduler: {scheduler} has not set the configuration `clip_sample`."
112
- " `clip_sample` should be set to False in the configuration file. Please make sure to update the"
113
- " config accordingly as not setting `clip_sample` in the config might lead to incorrect results in"
114
- " future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very"
115
- " nice if you could open a Pull request for the `scheduler/scheduler_config.json` file"
116
- )
117
- deprecate("clip_sample not set", "1.0.0", deprecation_message, standard_warn=False)
118
- new_config = dict(scheduler.config)
119
- new_config["clip_sample"] = False
120
- scheduler._internal_dict = FrozenDict(new_config)
121
-
122
- if safety_checker is None and requires_safety_checker:
123
- logger.warning(
124
- f"You have disabled the safety checker for {self.__class__} by passing `safety_checker=None`. Ensure"
125
- " that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered"
126
- " results in services or applications open to the public. Both the diffusers team and Hugging Face"
127
- " strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling"
128
- " it only for use-cases that involve analyzing network behavior or auditing its results. For more"
129
- " information, please have a look at https://github.com/huggingface/diffusers/pull/254 ."
130
- )
131
-
132
- if safety_checker is not None and feature_extractor is None:
133
- raise ValueError(
134
- "Make sure to define a feature extractor when loading {self.__class__} if you want to use the safety"
135
- " checker. If you do not want to use the safety checker, you can pass `'safety_checker=None'` instead."
136
- )
137
-
138
- self.register_modules(
139
- vae_encoder=vae_encoder,
140
- vae_decoder=vae_decoder,
141
- text_encoder=text_encoder,
142
- tokenizer=tokenizer,
143
- unet=unet,
144
- scheduler=scheduler,
145
- safety_checker=safety_checker,
146
- feature_extractor=feature_extractor,
147
- )
148
- self.register_to_config(requires_safety_checker=requires_safety_checker)
149
-
150
- # Copied from diffusers.pipelines.stable_diffusion.pipeline_onnx_stable_diffusion.OnnxStableDiffusionPipeline._encode_prompt
151
- def _encode_prompt(
152
- self,
153
- prompt: Union[str, List[str]],
154
- num_images_per_prompt: Optional[int],
155
- do_classifier_free_guidance: bool,
156
- negative_prompt: Optional[str],
157
- prompt_embeds: Optional[np.ndarray] = None,
158
- negative_prompt_embeds: Optional[np.ndarray] = None,
159
- ):
160
- r"""
161
- Encodes the prompt into text encoder hidden states.
162
-
163
- Args:
164
- prompt (`str` or `List[str]`):
165
- prompt to be encoded
166
- num_images_per_prompt (`int`):
167
- number of images that should be generated per prompt
168
- do_classifier_free_guidance (`bool`):
169
- whether to use classifier free guidance or not
170
- negative_prompt (`str` or `List[str]`):
171
- The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
172
- if `guidance_scale` is less than `1`).
173
- prompt_embeds (`np.ndarray`, *optional*):
174
- Pre-generated text embeddings. Can be used to easily tweak text inputs, *e.g.* prompt weighting. If not
175
- provided, text embeddings will be generated from `prompt` input argument.
176
- negative_prompt_embeds (`np.ndarray`, *optional*):
177
- Pre-generated negative text embeddings. Can be used to easily tweak text inputs, *e.g.* prompt
178
- weighting. If not provided, negative_prompt_embeds will be generated from `negative_prompt` input
179
- argument.
180
- """
181
- if prompt is not None and isinstance(prompt, str):
182
- batch_size = 1
183
- elif prompt is not None and isinstance(prompt, list):
184
- batch_size = len(prompt)
185
- else:
186
- batch_size = prompt_embeds.shape[0]
187
-
188
- if prompt_embeds is None:
189
- # get prompt text embeddings
190
- text_inputs = self.tokenizer(
191
- prompt,
192
- padding="max_length",
193
- max_length=self.tokenizer.model_max_length,
194
- truncation=True,
195
- return_tensors="np",
196
- )
197
- text_input_ids = text_inputs.input_ids
198
- untruncated_ids = self.tokenizer(prompt, padding="max_length", return_tensors="np").input_ids
199
-
200
- if not np.array_equal(text_input_ids, untruncated_ids):
201
- removed_text = self.tokenizer.batch_decode(
202
- untruncated_ids[:, self.tokenizer.model_max_length - 1 : -1]
203
- )
204
- logger.warning(
205
- "The following part of your input was truncated because CLIP can only handle sequences up to"
206
- f" {self.tokenizer.model_max_length} tokens: {removed_text}"
207
- )
208
-
209
- prompt_embeds = self.text_encoder(input_ids=text_input_ids.astype(np.int32))[0]
210
-
211
- prompt_embeds = np.repeat(prompt_embeds, num_images_per_prompt, axis=0)
212
-
213
- # get unconditional embeddings for classifier free guidance
214
- if do_classifier_free_guidance and negative_prompt_embeds is None:
215
- uncond_tokens: List[str]
216
- if negative_prompt is None:
217
- uncond_tokens = [""] * batch_size
218
- elif type(prompt) is not type(negative_prompt):
219
- raise TypeError(
220
- f"`negative_prompt` should be the same type to `prompt`, but got {type(negative_prompt)} !="
221
- f" {type(prompt)}."
222
- )
223
- elif isinstance(negative_prompt, str):
224
- uncond_tokens = [negative_prompt] * batch_size
225
- elif batch_size != len(negative_prompt):
226
- raise ValueError(
227
- f"`negative_prompt`: {negative_prompt} has batch size {len(negative_prompt)}, but `prompt`:"
228
- f" {prompt} has batch size {batch_size}. Please make sure that passed `negative_prompt` matches"
229
- " the batch size of `prompt`."
230
- )
231
- else:
232
- uncond_tokens = negative_prompt
233
-
234
- max_length = prompt_embeds.shape[1]
235
- uncond_input = self.tokenizer(
236
- uncond_tokens,
237
- padding="max_length",
238
- max_length=max_length,
239
- truncation=True,
240
- return_tensors="np",
241
- )
242
- negative_prompt_embeds = self.text_encoder(input_ids=uncond_input.input_ids.astype(np.int32))[0]
243
-
244
- if do_classifier_free_guidance:
245
- negative_prompt_embeds = np.repeat(negative_prompt_embeds, num_images_per_prompt, axis=0)
246
-
247
- # For classifier free guidance, we need to do two forward passes.
248
- # Here we concatenate the unconditional and text embeddings into a single batch
249
- # to avoid doing two forward passes
250
- prompt_embeds = np.concatenate([negative_prompt_embeds, prompt_embeds])
251
-
252
- return prompt_embeds
253
-
254
- def check_inputs(
255
- self,
256
- prompt,
257
- callback_steps,
258
- negative_prompt=None,
259
- prompt_embeds=None,
260
- negative_prompt_embeds=None,
261
- ):
262
- if (callback_steps is None) or (
263
- callback_steps is not None and (not isinstance(callback_steps, int) or callback_steps <= 0)
264
- ):
265
- raise ValueError(
266
- f"`callback_steps` has to be a positive integer but is {callback_steps} of type"
267
- f" {type(callback_steps)}."
268
- )
269
-
270
- if prompt is not None and prompt_embeds is not None:
271
- raise ValueError(
272
- f"Cannot forward both `prompt`: {prompt} and `prompt_embeds`: {prompt_embeds}. Please make sure to"
273
- " only forward one of the two."
274
- )
275
- elif prompt is None and prompt_embeds is None:
276
- raise ValueError(
277
- "Provide either `prompt` or `prompt_embeds`. Cannot leave both `prompt` and `prompt_embeds` undefined."
278
- )
279
- elif prompt is not None and (not isinstance(prompt, str) and not isinstance(prompt, list)):
280
- raise ValueError(f"`prompt` has to be of type `str` or `list` but is {type(prompt)}")
281
-
282
- if negative_prompt is not None and negative_prompt_embeds is not None:
283
- raise ValueError(
284
- f"Cannot forward both `negative_prompt`: {negative_prompt} and `negative_prompt_embeds`:"
285
- f" {negative_prompt_embeds}. Please make sure to only forward one of the two."
286
- )
287
-
288
- if prompt_embeds is not None and negative_prompt_embeds is not None:
289
- if prompt_embeds.shape != negative_prompt_embeds.shape:
290
- raise ValueError(
291
- "`prompt_embeds` and `negative_prompt_embeds` must have the same shape when passed directly, but"
292
- f" got: `prompt_embeds` {prompt_embeds.shape} != `negative_prompt_embeds`"
293
- f" {negative_prompt_embeds.shape}."
294
- )
295
-
296
- def __call__(
297
- self,
298
- prompt: Union[str, List[str]],
299
- image: Union[np.ndarray, PIL.Image.Image] = None,
300
- mask_image: Union[np.ndarray, PIL.Image.Image] = None,
301
- strength: float = 0.8,
302
- num_inference_steps: Optional[int] = 50,
303
- guidance_scale: Optional[float] = 7.5,
304
- negative_prompt: Optional[Union[str, List[str]]] = None,
305
- num_images_per_prompt: Optional[int] = 1,
306
- eta: Optional[float] = 0.0,
307
- generator: Optional[np.random.RandomState] = None,
308
- prompt_embeds: Optional[np.ndarray] = None,
309
- negative_prompt_embeds: Optional[np.ndarray] = None,
310
- output_type: Optional[str] = "pil",
311
- return_dict: bool = True,
312
- callback: Optional[Callable[[int, int, np.ndarray], None]] = None,
313
- callback_steps: int = 1,
314
- ):
315
- r"""
316
- Function invoked when calling the pipeline for generation.
317
-
318
- Args:
319
- prompt (`str` or `List[str]`):
320
- The prompt or prompts to guide the image generation.
321
- image (`nd.ndarray` or `PIL.Image.Image`):
322
- `Image`, or tensor representing an image batch, that will be used as the starting point for the
323
- process. This is the image whose masked region will be inpainted.
324
- mask_image (`nd.ndarray` or `PIL.Image.Image`):
325
- `Image`, or tensor representing an image batch, to mask `image`. White pixels in the mask will be
326
- replaced by noise and therefore repainted, while black pixels will be preserved. If `mask_image` is a
327
- PIL image, it will be converted to a single channel (luminance) before use. If it's a tensor, it should
328
- contain one color channel (L) instead of 3, so the expected shape would be `(B, H, W, 1)`.uu
329
- strength (`float`, *optional*, defaults to 0.8):
330
- Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
331
- will be used as a starting point, adding more noise to it the larger the `strength`. The number of
332
- denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
333
- be maximum and the denoising process will run for the full number of iterations specified in
334
- `num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
335
- num_inference_steps (`int`, *optional*, defaults to 50):
336
- The number of denoising steps. More denoising steps usually lead to a higher quality image at the
337
- expense of slower inference. This parameter will be modulated by `strength`.
338
- guidance_scale (`float`, *optional*, defaults to 7.5):
339
- Guidance scale as defined in [Classifier-Free Diffusion Guidance](https://arxiv.org/abs/2207.12598).
340
- `guidance_scale` is defined as `w` of equation 2. of [Imagen
341
- Paper](https://arxiv.org/pdf/2205.11487.pdf). Guidance scale is enabled by setting `guidance_scale >
342
- 1`. Higher guidance scale encourages to generate images that are closely linked to the text `prompt`,
343
- usually at the expense of lower image quality.
344
- negative_prompt (`str` or `List[str]`, *optional*):
345
- The prompt or prompts not to guide the image generation. Ignored when not using guidance (i.e., ignored
346
- if `guidance_scale` is less than `1`).
347
- num_images_per_prompt (`int`, *optional*, defaults to 1):
348
- The number of images to generate per prompt.
349
- eta (`float`, *optional*, defaults to 0.0):
350
- Corresponds to parameter eta (?) in the DDIM paper: https://arxiv.org/abs/2010.02502. Only applies to
351
- [`schedulers.DDIMScheduler`], will be ignored for others.
352
- generator (`np.random.RandomState`, *optional*):
353
- A np.random.RandomState to make generation deterministic.
354
- prompt_embeds (`np.ndarray`, *optional*):
355
- Pre-generated text embeddings. Can be used to easily tweak text inputs, *e.g.* prompt weighting. If not
356
- provided, text embeddings will be generated from `prompt` input argument.
357
- negative_prompt_embeds (`np.ndarray`, *optional*):
358
- Pre-generated negative text embeddings. Can be used to easily tweak text inputs, *e.g.* prompt
359
- weighting. If not provided, negative_prompt_embeds will be generated from `negative_prompt` input
360
- argument.
361
- output_type (`str`, *optional*, defaults to `"pil"`):
362
- The output format of the generate image. Choose between
363
- [PIL](https://pillow.readthedocs.io/en/stable/): `PIL.Image.Image` or `np.array`.
364
- return_dict (`bool`, *optional*, defaults to `True`):
365
- Whether or not to return a [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] instead of a
366
- plain tuple.
367
- callback (`Callable`, *optional*):
368
- A function that will be called every `callback_steps` steps during inference. The function will be
369
- called with the following arguments: `callback(step: int, timestep: int, latents: np.ndarray)`.
370
- callback_steps (`int`, *optional*, defaults to 1):
371
- The frequency at which the `callback` function will be called. If not specified, the callback will be
372
- called at every step.
373
-
374
- Returns:
375
- [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] or `tuple`:
376
- [`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] if `return_dict` is True, otherwise a `tuple.
377
- When returning a tuple, the first element is a list with the generated images, and the second element is a
378
- list of `bool`s denoting whether the corresponding generated image likely represents "not-safe-for-work"
379
- (nsfw) content, according to the `safety_checker`.
380
- """
381
-
382
- # check inputs. Raise error if not correct
383
- self.check_inputs(prompt, callback_steps, negative_prompt, prompt_embeds, negative_prompt_embeds)
384
-
385
- # define call parameters
386
- if prompt is not None and isinstance(prompt, str):
387
- batch_size = 1
388
- elif prompt is not None and isinstance(prompt, list):
389
- batch_size = len(prompt)
390
- else:
391
- batch_size = prompt_embeds.shape[0]
392
-
393
- if strength < 0 or strength > 1:
394
- raise ValueError(f"The value of strength should in [0.0, 1.0] but is {strength}")
395
-
396
- if generator is None:
397
- generator = np.random
398
-
399
- # set timesteps
400
- self.scheduler.set_timesteps(num_inference_steps)
401
-
402
- if isinstance(image, PIL.Image.Image):
403
- image = preprocess(image)
404
-
405
- # here `guidance_scale` is defined analog to the guidance weight `w` of equation (2)
406
- # of the Imagen paper: https://arxiv.org/pdf/2205.11487.pdf . `guidance_scale = 1`
407
- # corresponds to doing no classifier free guidance.
408
- do_classifier_free_guidance = guidance_scale > 1.0
409
-
410
- prompt_embeds = self._encode_prompt(
411
- prompt,
412
- num_images_per_prompt,
413
- do_classifier_free_guidance,
414
- negative_prompt,
415
- prompt_embeds=prompt_embeds,
416
- negative_prompt_embeds=negative_prompt_embeds,
417
- )
418
-
419
- latents_dtype = prompt_embeds.dtype
420
- image = image.astype(latents_dtype)
421
-
422
- # encode the init image into latents and scale the latents
423
- init_latents = self.vae_encoder(sample=image)[0]
424
- init_latents = 0.18215 * init_latents
425
-
426
- # Expand init_latents for batch_size and num_images_per_prompt
427
- init_latents = np.concatenate([init_latents] * num_images_per_prompt, axis=0)
428
- init_latents_orig = init_latents
429
-
430
- # preprocess mask
431
- if not isinstance(mask_image, np.ndarray):
432
- mask_image = preprocess_mask(mask_image, 8)
433
- mask_image = mask_image.astype(latents_dtype)
434
- mask = np.concatenate([mask_image] * num_images_per_prompt, axis=0)
435
-
436
- # check sizes
437
- if not mask.shape == init_latents.shape:
438
- raise ValueError("The mask and image should be the same size!")
439
-
440
- # get the original timestep using init_timestep
441
- offset = self.scheduler.config.get("steps_offset", 0)
442
- init_timestep = int(num_inference_steps * strength) + offset
443
- init_timestep = min(init_timestep, num_inference_steps)
444
-
445
- timesteps = self.scheduler.timesteps.numpy()[-init_timestep]
446
- timesteps = np.array([timesteps] * batch_size * num_images_per_prompt)
447
-
448
- # add noise to latents using the timesteps
449
- noise = generator.randn(*init_latents.shape).astype(latents_dtype)
450
- init_latents = self.scheduler.add_noise(
451
- torch.from_numpy(init_latents), torch.from_numpy(noise), torch.from_numpy(timesteps)
452
- )
453
- init_latents = init_latents.numpy()
454
-
455
- # prepare extra kwargs for the scheduler step, since not all schedulers have the same signature
456
- # eta (?) is only used with the DDIMScheduler, it will be ignored for other schedulers.
457
- # eta corresponds to ? in DDIM paper: https://arxiv.org/abs/2010.02502
458
- # and should be between [0, 1]
459
- accepts_eta = "eta" in set(inspect.signature(self.scheduler.step).parameters.keys())
460
- extra_step_kwargs = {}
461
- if accepts_eta:
462
- extra_step_kwargs["eta"] = eta
463
-
464
- latents = init_latents
465
-
466
- t_start = max(num_inference_steps - init_timestep + offset, 0)
467
- timesteps = self.scheduler.timesteps[t_start:].numpy()
468
- timestep_dtype = next(
469
- (input.type for input in self.unet.model.get_inputs() if input.name == "timestep"), "tensor(float)"
470
- )
471
- timestep_dtype = ORT_TO_NP_TYPE[timestep_dtype]
472
-
473
- for i, t in enumerate(self.progress_bar(timesteps)):
474
- # expand the latents if we are doing classifier free guidance
475
- latent_model_input = np.concatenate([latents] * 2) if do_classifier_free_guidance else latents
476
- latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
477
-
478
- # predict the noise residual
479
- timestep = np.array([t], dtype=timestep_dtype)
480
- noise_pred = self.unet(sample=latent_model_input, timestep=timestep, encoder_hidden_states=prompt_embeds)[
481
- 0
482
- ]
483
-
484
- # perform guidance
485
- if do_classifier_free_guidance:
486
- noise_pred_uncond, noise_pred_text = np.split(noise_pred, 2)
487
- noise_pred = noise_pred_uncond + guidance_scale * (noise_pred_text - noise_pred_uncond)
488
-
489
- # compute the previous noisy sample x_t -> x_t-1
490
- latents = self.scheduler.step(
491
- torch.from_numpy(noise_pred), t, torch.from_numpy(latents), **extra_step_kwargs
492
- ).prev_sample
493
-
494
- latents = latents.numpy()
495
-
496
- init_latents_proper = self.scheduler.add_noise(
497
- torch.from_numpy(init_latents_orig), torch.from_numpy(noise), torch.from_numpy(np.array([t]))
498
- )
499
-
500
- init_latents_proper = init_latents_proper.numpy()
501
-
502
- latents = (init_latents_proper * mask) + (latents * (1 - mask))
503
-
504
- # call the callback, if provided
505
- if callback is not None and i % callback_steps == 0:
506
- callback(i, t, latents)
507
-
508
- latents = 1 / 0.18215 * latents
509
- # image = self.vae_decoder(latent_sample=latents)[0]
510
- # it seems likes there is a strange result for using half-precision vae decoder if batchsize>1
511
- image = np.concatenate(
512
- [self.vae_decoder(latent_sample=latents[i : i + 1])[0] for i in range(latents.shape[0])]
513
- )
514
-
515
- image = np.clip(image / 2 + 0.5, 0, 1)
516
- image = image.transpose((0, 2, 3, 1))
517
-
518
- if self.safety_checker is not None:
519
- safety_checker_input = self.feature_extractor(
520
- self.numpy_to_pil(image), return_tensors="np"
521
- ).pixel_values.astype(image.dtype)
522
- # There will throw an error if use safety_checker batchsize>1
523
- images, has_nsfw_concept = [], []
524
- for i in range(image.shape[0]):
525
- image_i, has_nsfw_concept_i = self.safety_checker(
526
- clip_input=safety_checker_input[i : i + 1], images=image[i : i + 1]
527
- )
528
- images.append(image_i)
529
- has_nsfw_concept.append(has_nsfw_concept_i[0])
530
- image = np.concatenate(images)
531
- else:
532
- has_nsfw_concept = None
533
-
534
- if output_type == "pil":
535
- image = self.numpy_to_pil(image)
536
-
537
- if not return_dict:
538
- return (image, has_nsfw_concept)
539
-
540
- return StableDiffusionPipelineOutput(images=image, nsfw_content_detected=has_nsfw_concept)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmdet/core/anchor/utils.py DELETED
@@ -1,71 +0,0 @@
1
- import torch
2
-
3
-
4
- def images_to_levels(target, num_levels):
5
- """Convert targets by image to targets by feature level.
6
-
7
- [target_img0, target_img1] -> [target_level0, target_level1, ...]
8
- """
9
- target = torch.stack(target, 0)
10
- level_targets = []
11
- start = 0
12
- for n in num_levels:
13
- end = start + n
14
- # level_targets.append(target[:, start:end].squeeze(0))
15
- level_targets.append(target[:, start:end])
16
- start = end
17
- return level_targets
18
-
19
-
20
- def anchor_inside_flags(flat_anchors,
21
- valid_flags,
22
- img_shape,
23
- allowed_border=0):
24
- """Check whether the anchors are inside the border.
25
-
26
- Args:
27
- flat_anchors (torch.Tensor): Flatten anchors, shape (n, 4).
28
- valid_flags (torch.Tensor): An existing valid flags of anchors.
29
- img_shape (tuple(int)): Shape of current image.
30
- allowed_border (int, optional): The border to allow the valid anchor.
31
- Defaults to 0.
32
-
33
- Returns:
34
- torch.Tensor: Flags indicating whether the anchors are inside a \
35
- valid range.
36
- """
37
- img_h, img_w = img_shape[:2]
38
- if allowed_border >= 0:
39
- inside_flags = valid_flags & \
40
- (flat_anchors[:, 0] >= -allowed_border) & \
41
- (flat_anchors[:, 1] >= -allowed_border) & \
42
- (flat_anchors[:, 2] < img_w + allowed_border) & \
43
- (flat_anchors[:, 3] < img_h + allowed_border)
44
- else:
45
- inside_flags = valid_flags
46
- return inside_flags
47
-
48
-
49
- def calc_region(bbox, ratio, featmap_size=None):
50
- """Calculate a proportional bbox region.
51
-
52
- The bbox center are fixed and the new h' and w' is h * ratio and w * ratio.
53
-
54
- Args:
55
- bbox (Tensor): Bboxes to calculate regions, shape (n, 4).
56
- ratio (float): Ratio of the output region.
57
- featmap_size (tuple): Feature map size used for clipping the boundary.
58
-
59
- Returns:
60
- tuple: x1, y1, x2, y2
61
- """
62
- x1 = torch.round((1 - ratio) * bbox[0] + ratio * bbox[2]).long()
63
- y1 = torch.round((1 - ratio) * bbox[1] + ratio * bbox[3]).long()
64
- x2 = torch.round(ratio * bbox[0] + (1 - ratio) * bbox[2]).long()
65
- y2 = torch.round(ratio * bbox[1] + (1 - ratio) * bbox[3]).long()
66
- if featmap_size is not None:
67
- x1 = x1.clamp(min=0, max=featmap_size[1])
68
- y1 = y1.clamp(min=0, max=featmap_size[0])
69
- x2 = x2.clamp(min=0, max=featmap_size[1])
70
- y2 = y2.clamp(min=0, max=featmap_size[0])
71
- return (x1, y1, x2, y2)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_image_detection/mmdet/models/losses/pisa_loss.py DELETED
@@ -1,183 +0,0 @@
1
- import mmcv
2
- import torch
3
-
4
- from mmdet.core import bbox_overlaps
5
-
6
-
7
- @mmcv.jit(derivate=True, coderize=True)
8
- def isr_p(cls_score,
9
- bbox_pred,
10
- bbox_targets,
11
- rois,
12
- sampling_results,
13
- loss_cls,
14
- bbox_coder,
15
- k=2,
16
- bias=0,
17
- num_class=80):
18
- """Importance-based Sample Reweighting (ISR_P), positive part.
19
-
20
- Args:
21
- cls_score (Tensor): Predicted classification scores.
22
- bbox_pred (Tensor): Predicted bbox deltas.
23
- bbox_targets (tuple[Tensor]): A tuple of bbox targets, the are
24
- labels, label_weights, bbox_targets, bbox_weights, respectively.
25
- rois (Tensor): Anchors (single_stage) in shape (n, 4) or RoIs
26
- (two_stage) in shape (n, 5).
27
- sampling_results (obj): Sampling results.
28
- loss_cls (func): Classification loss func of the head.
29
- bbox_coder (obj): BBox coder of the head.
30
- k (float): Power of the non-linear mapping.
31
- bias (float): Shift of the non-linear mapping.
32
- num_class (int): Number of classes, default: 80.
33
-
34
- Return:
35
- tuple([Tensor]): labels, imp_based_label_weights, bbox_targets,
36
- bbox_target_weights
37
- """
38
-
39
- labels, label_weights, bbox_targets, bbox_weights = bbox_targets
40
- pos_label_inds = ((labels >= 0) &
41
- (labels < num_class)).nonzero().reshape(-1)
42
- pos_labels = labels[pos_label_inds]
43
-
44
- # if no positive samples, return the original targets
45
- num_pos = float(pos_label_inds.size(0))
46
- if num_pos == 0:
47
- return labels, label_weights, bbox_targets, bbox_weights
48
-
49
- # merge pos_assigned_gt_inds of per image to a single tensor
50
- gts = list()
51
- last_max_gt = 0
52
- for i in range(len(sampling_results)):
53
- gt_i = sampling_results[i].pos_assigned_gt_inds
54
- gts.append(gt_i + last_max_gt)
55
- if len(gt_i) != 0:
56
- last_max_gt = gt_i.max() + 1
57
- gts = torch.cat(gts)
58
- assert len(gts) == num_pos
59
-
60
- cls_score = cls_score.detach()
61
- bbox_pred = bbox_pred.detach()
62
-
63
- # For single stage detectors, rois here indicate anchors, in shape (N, 4)
64
- # For two stage detectors, rois are in shape (N, 5)
65
- if rois.size(-1) == 5:
66
- pos_rois = rois[pos_label_inds][:, 1:]
67
- else:
68
- pos_rois = rois[pos_label_inds]
69
-
70
- if bbox_pred.size(-1) > 4:
71
- bbox_pred = bbox_pred.view(bbox_pred.size(0), -1, 4)
72
- pos_delta_pred = bbox_pred[pos_label_inds, pos_labels].view(-1, 4)
73
- else:
74
- pos_delta_pred = bbox_pred[pos_label_inds].view(-1, 4)
75
-
76
- # compute iou of the predicted bbox and the corresponding GT
77
- pos_delta_target = bbox_targets[pos_label_inds].view(-1, 4)
78
- pos_bbox_pred = bbox_coder.decode(pos_rois, pos_delta_pred)
79
- target_bbox_pred = bbox_coder.decode(pos_rois, pos_delta_target)
80
- ious = bbox_overlaps(pos_bbox_pred, target_bbox_pred, is_aligned=True)
81
-
82
- pos_imp_weights = label_weights[pos_label_inds]
83
- # Two steps to compute IoU-HLR. Samples are first sorted by IoU locally,
84
- # then sorted again within the same-rank group
85
- max_l_num = pos_labels.bincount().max()
86
- for label in pos_labels.unique():
87
- l_inds = (pos_labels == label).nonzero().view(-1)
88
- l_gts = gts[l_inds]
89
- for t in l_gts.unique():
90
- t_inds = l_inds[l_gts == t]
91
- t_ious = ious[t_inds]
92
- _, t_iou_rank_idx = t_ious.sort(descending=True)
93
- _, t_iou_rank = t_iou_rank_idx.sort()
94
- ious[t_inds] += max_l_num - t_iou_rank.float()
95
- l_ious = ious[l_inds]
96
- _, l_iou_rank_idx = l_ious.sort(descending=True)
97
- _, l_iou_rank = l_iou_rank_idx.sort() # IoU-HLR
98
- # linearly map HLR to label weights
99
- pos_imp_weights[l_inds] *= (max_l_num - l_iou_rank.float()) / max_l_num
100
-
101
- pos_imp_weights = (bias + pos_imp_weights * (1 - bias)).pow(k)
102
-
103
- # normalize to make the new weighted loss value equal to the original loss
104
- pos_loss_cls = loss_cls(
105
- cls_score[pos_label_inds], pos_labels, reduction_override='none')
106
- if pos_loss_cls.dim() > 1:
107
- ori_pos_loss_cls = pos_loss_cls * label_weights[pos_label_inds][:,
108
- None]
109
- new_pos_loss_cls = pos_loss_cls * pos_imp_weights[:, None]
110
- else:
111
- ori_pos_loss_cls = pos_loss_cls * label_weights[pos_label_inds]
112
- new_pos_loss_cls = pos_loss_cls * pos_imp_weights
113
- pos_loss_cls_ratio = ori_pos_loss_cls.sum() / new_pos_loss_cls.sum()
114
- pos_imp_weights = pos_imp_weights * pos_loss_cls_ratio
115
- label_weights[pos_label_inds] = pos_imp_weights
116
-
117
- bbox_targets = labels, label_weights, bbox_targets, bbox_weights
118
- return bbox_targets
119
-
120
-
121
- @mmcv.jit(derivate=True, coderize=True)
122
- def carl_loss(cls_score,
123
- labels,
124
- bbox_pred,
125
- bbox_targets,
126
- loss_bbox,
127
- k=1,
128
- bias=0.2,
129
- avg_factor=None,
130
- sigmoid=False,
131
- num_class=80):
132
- """Classification-Aware Regression Loss (CARL).
133
-
134
- Args:
135
- cls_score (Tensor): Predicted classification scores.
136
- labels (Tensor): Targets of classification.
137
- bbox_pred (Tensor): Predicted bbox deltas.
138
- bbox_targets (Tensor): Target of bbox regression.
139
- loss_bbox (func): Regression loss func of the head.
140
- bbox_coder (obj): BBox coder of the head.
141
- k (float): Power of the non-linear mapping.
142
- bias (float): Shift of the non-linear mapping.
143
- avg_factor (int): Average factor used in regression loss.
144
- sigmoid (bool): Activation of the classification score.
145
- num_class (int): Number of classes, default: 80.
146
-
147
- Return:
148
- dict: CARL loss dict.
149
- """
150
- pos_label_inds = ((labels >= 0) &
151
- (labels < num_class)).nonzero().reshape(-1)
152
- if pos_label_inds.numel() == 0:
153
- return dict(loss_carl=cls_score.sum()[None] * 0.)
154
- pos_labels = labels[pos_label_inds]
155
-
156
- # multiply pos_cls_score with the corresponding bbox weight
157
- # and remain gradient
158
- if sigmoid:
159
- pos_cls_score = cls_score.sigmoid()[pos_label_inds, pos_labels]
160
- else:
161
- pos_cls_score = cls_score.softmax(-1)[pos_label_inds, pos_labels]
162
- carl_loss_weights = (bias + (1 - bias) * pos_cls_score).pow(k)
163
-
164
- # normalize carl_loss_weight to make its sum equal to num positive
165
- num_pos = float(pos_cls_score.size(0))
166
- weight_ratio = num_pos / carl_loss_weights.sum()
167
- carl_loss_weights *= weight_ratio
168
-
169
- if avg_factor is None:
170
- avg_factor = bbox_targets.size(0)
171
- # if is class agnostic, bbox pred is in shape (N, 4)
172
- # otherwise, bbox pred is in shape (N, #classes, 4)
173
- if bbox_pred.size(-1) > 4:
174
- bbox_pred = bbox_pred.view(bbox_pred.size(0), -1, 4)
175
- pos_bbox_preds = bbox_pred[pos_label_inds, pos_labels]
176
- else:
177
- pos_bbox_preds = bbox_pred[pos_label_inds]
178
- ori_loss_reg = loss_bbox(
179
- pos_bbox_preds,
180
- bbox_targets[pos_label_inds],
181
- reduction_override='none') / avg_factor
182
- loss_carl = (ori_loss_reg * carl_loss_weights[:, None]).sum()
183
- return dict(loss_carl=loss_carl[None])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Andy1621/uniformer_video_demo/uniformer.py DELETED
@@ -1,379 +0,0 @@
1
- from collections import OrderedDict
2
- import torch
3
- import torch.nn as nn
4
- from functools import partial
5
- from timm.models.layers import trunc_normal_, DropPath, to_2tuple
6
-
7
-
8
- def conv_3xnxn(inp, oup, kernel_size=3, stride=3, groups=1):
9
- return nn.Conv3d(inp, oup, (3, kernel_size, kernel_size), (2, stride, stride), (1, 0, 0), groups=groups)
10
-
11
- def conv_1xnxn(inp, oup, kernel_size=3, stride=3, groups=1):
12
- return nn.Conv3d(inp, oup, (1, kernel_size, kernel_size), (1, stride, stride), (0, 0, 0), groups=groups)
13
-
14
- def conv_3xnxn_std(inp, oup, kernel_size=3, stride=3, groups=1):
15
- return nn.Conv3d(inp, oup, (3, kernel_size, kernel_size), (1, stride, stride), (1, 0, 0), groups=groups)
16
-
17
- def conv_1x1x1(inp, oup, groups=1):
18
- return nn.Conv3d(inp, oup, (1, 1, 1), (1, 1, 1), (0, 0, 0), groups=groups)
19
-
20
- def conv_3x3x3(inp, oup, groups=1):
21
- return nn.Conv3d(inp, oup, (3, 3, 3), (1, 1, 1), (1, 1, 1), groups=groups)
22
-
23
- def conv_5x5x5(inp, oup, groups=1):
24
- return nn.Conv3d(inp, oup, (5, 5, 5), (1, 1, 1), (2, 2, 2), groups=groups)
25
-
26
- def bn_3d(dim):
27
- return nn.BatchNorm3d(dim)
28
-
29
-
30
- class Mlp(nn.Module):
31
- def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
32
- super().__init__()
33
- out_features = out_features or in_features
34
- hidden_features = hidden_features or in_features
35
- self.fc1 = nn.Linear(in_features, hidden_features)
36
- self.act = act_layer()
37
- self.fc2 = nn.Linear(hidden_features, out_features)
38
- self.drop = nn.Dropout(drop)
39
-
40
- def forward(self, x):
41
- x = self.fc1(x)
42
- x = self.act(x)
43
- x = self.drop(x)
44
- x = self.fc2(x)
45
- x = self.drop(x)
46
- return x
47
-
48
-
49
- class Attention(nn.Module):
50
- def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.):
51
- super().__init__()
52
- self.num_heads = num_heads
53
- head_dim = dim // num_heads
54
- # NOTE scale factor was wrong in my original version, can set manually to be compat with prev weights
55
- self.scale = qk_scale or head_dim ** -0.5
56
-
57
- self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
58
- self.attn_drop = nn.Dropout(attn_drop)
59
- self.proj = nn.Linear(dim, dim)
60
- self.proj_drop = nn.Dropout(proj_drop)
61
-
62
- def forward(self, x):
63
- B, N, C = x.shape
64
- qkv = self.qkv(x).reshape(B, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
65
- q, k, v = qkv[0], qkv[1], qkv[2] # make torchscript happy (cannot use tensor as tuple)
66
-
67
- attn = (q @ k.transpose(-2, -1)) * self.scale
68
- attn = attn.softmax(dim=-1)
69
- attn = self.attn_drop(attn)
70
-
71
- x = (attn @ v).transpose(1, 2).reshape(B, N, C)
72
- x = self.proj(x)
73
- x = self.proj_drop(x)
74
- return x
75
-
76
-
77
- class CMlp(nn.Module):
78
- def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
79
- super().__init__()
80
- out_features = out_features or in_features
81
- hidden_features = hidden_features or in_features
82
- self.fc1 = conv_1x1x1(in_features, hidden_features)
83
- self.act = act_layer()
84
- self.fc2 = conv_1x1x1(hidden_features, out_features)
85
- self.drop = nn.Dropout(drop)
86
-
87
- def forward(self, x):
88
- x = self.fc1(x)
89
- x = self.act(x)
90
- x = self.drop(x)
91
- x = self.fc2(x)
92
- x = self.drop(x)
93
- return x
94
-
95
-
96
- class CBlock(nn.Module):
97
- def __init__(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
98
- drop_path=0., act_layer=nn.GELU, norm_layer=nn.LayerNorm):
99
- super().__init__()
100
- self.pos_embed = conv_3x3x3(dim, dim, groups=dim)
101
- self.norm1 = bn_3d(dim)
102
- self.conv1 = conv_1x1x1(dim, dim, 1)
103
- self.conv2 = conv_1x1x1(dim, dim, 1)
104
- self.attn = conv_5x5x5(dim, dim, groups=dim)
105
- # NOTE: drop path for stochastic depth, we shall see if this is better than dropout here
106
- self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
107
- self.norm2 = bn_3d(dim)
108
- mlp_hidden_dim = int(dim * mlp_ratio)
109
- self.mlp = CMlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
110
-
111
- def forward(self, x):
112
- x = x + self.pos_embed(x)
113
- x = x + self.drop_path(self.conv2(self.attn(self.conv1(self.norm1(x)))))
114
- x = x + self.drop_path(self.mlp(self.norm2(x)))
115
- return x
116
-
117
-
118
- class SABlock(nn.Module):
119
- def __init__(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
120
- drop_path=0., act_layer=nn.GELU, norm_layer=nn.LayerNorm):
121
- super().__init__()
122
- self.pos_embed = conv_3x3x3(dim, dim, groups=dim)
123
- self.norm1 = norm_layer(dim)
124
- self.attn = Attention(
125
- dim,
126
- num_heads=num_heads, qkv_bias=qkv_bias, qk_scale=qk_scale,
127
- attn_drop=attn_drop, proj_drop=drop)
128
- # NOTE: drop path for stochastic depth, we shall see if this is better than dropout here
129
- self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
130
- self.norm2 = norm_layer(dim)
131
- mlp_hidden_dim = int(dim * mlp_ratio)
132
- self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
133
-
134
- def forward(self, x):
135
- x = x + self.pos_embed(x)
136
- B, C, T, H, W = x.shape
137
- x = x.flatten(2).transpose(1, 2)
138
- x = x + self.drop_path(self.attn(self.norm1(x)))
139
- x = x + self.drop_path(self.mlp(self.norm2(x)))
140
- x = x.transpose(1, 2).reshape(B, C, T, H, W)
141
- return x
142
-
143
-
144
- class SplitSABlock(nn.Module):
145
- def __init__(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
146
- drop_path=0., act_layer=nn.GELU, norm_layer=nn.LayerNorm):
147
- super().__init__()
148
- self.pos_embed = conv_3x3x3(dim, dim, groups=dim)
149
- self.t_norm = norm_layer(dim)
150
- self.t_attn = Attention(
151
- dim,
152
- num_heads=num_heads, qkv_bias=qkv_bias, qk_scale=qk_scale,
153
- attn_drop=attn_drop, proj_drop=drop)
154
- self.norm1 = norm_layer(dim)
155
- self.attn = Attention(
156
- dim,
157
- num_heads=num_heads, qkv_bias=qkv_bias, qk_scale=qk_scale,
158
- attn_drop=attn_drop, proj_drop=drop)
159
- # NOTE: drop path for stochastic depth, we shall see if this is better than dropout here
160
- self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
161
- self.norm2 = norm_layer(dim)
162
- mlp_hidden_dim = int(dim * mlp_ratio)
163
- self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
164
-
165
- def forward(self, x):
166
- x = x + self.pos_embed(x)
167
- B, C, T, H, W = x.shape
168
- attn = x.view(B, C, T, H * W).permute(0, 3, 2, 1).contiguous()
169
- attn = attn.view(B * H * W, T, C)
170
- attn = attn + self.drop_path(self.t_attn(self.t_norm(attn)))
171
- attn = attn.view(B, H * W, T, C).permute(0, 2, 1, 3).contiguous()
172
- attn = attn.view(B * T, H * W, C)
173
- residual = x.view(B, C, T, H * W).permute(0, 2, 3, 1).contiguous()
174
- residual = residual.view(B * T, H * W, C)
175
- attn = residual + self.drop_path(self.attn(self.norm1(attn)))
176
- attn = attn.view(B, T * H * W, C)
177
- out = attn + self.drop_path(self.mlp(self.norm2(attn)))
178
- out = out.transpose(1, 2).reshape(B, C, T, H, W)
179
- return out
180
-
181
-
182
- class SpeicalPatchEmbed(nn.Module):
183
- """ Image to Patch Embedding
184
- """
185
- def __init__(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768):
186
- super().__init__()
187
- img_size = to_2tuple(img_size)
188
- patch_size = to_2tuple(patch_size)
189
- num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
190
- self.img_size = img_size
191
- self.patch_size = patch_size
192
- self.num_patches = num_patches
193
- self.norm = nn.LayerNorm(embed_dim)
194
- self.proj = conv_3xnxn(in_chans, embed_dim, kernel_size=patch_size[0], stride=patch_size[0])
195
-
196
- def forward(self, x):
197
- B, C, T, H, W = x.shape
198
- # FIXME look at relaxing size constraints
199
- # assert H == self.img_size[0] and W == self.img_size[1], \
200
- # f"Input image size ({H}*{W}) doesn't match model ({self.img_size[0]}*{self.img_size[1]})."
201
- x = self.proj(x)
202
- B, C, T, H, W = x.shape
203
- x = x.flatten(2).transpose(1, 2)
204
- x = self.norm(x)
205
- x = x.reshape(B, T, H, W, -1).permute(0, 4, 1, 2, 3).contiguous()
206
- return x
207
-
208
-
209
- class PatchEmbed(nn.Module):
210
- """ Image to Patch Embedding
211
- """
212
- def __init__(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768, std=False):
213
- super().__init__()
214
- img_size = to_2tuple(img_size)
215
- patch_size = to_2tuple(patch_size)
216
- num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
217
- self.img_size = img_size
218
- self.patch_size = patch_size
219
- self.num_patches = num_patches
220
- self.norm = nn.LayerNorm(embed_dim)
221
- if std:
222
- self.proj = conv_3xnxn_std(in_chans, embed_dim, kernel_size=patch_size[0], stride=patch_size[0])
223
- else:
224
- self.proj = conv_1xnxn(in_chans, embed_dim, kernel_size=patch_size[0], stride=patch_size[0])
225
-
226
- def forward(self, x):
227
- B, C, T, H, W = x.shape
228
- # FIXME look at relaxing size constraints
229
- # assert H == self.img_size[0] and W == self.img_size[1], \
230
- # f"Input image size ({H}*{W}) doesn't match model ({self.img_size[0]}*{self.img_size[1]})."
231
- x = self.proj(x)
232
- B, C, T, H, W = x.shape
233
- x = x.flatten(2).transpose(1, 2)
234
- x = self.norm(x)
235
- x = x.reshape(B, T, H, W, -1).permute(0, 4, 1, 2, 3).contiguous()
236
- return x
237
-
238
-
239
- class Uniformer(nn.Module):
240
- """ Vision Transformer
241
- A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale` -
242
- https://arxiv.org/abs/2010.11929
243
- """
244
- def __init__(self, depth=[5, 8, 20, 7], num_classes=400, img_size=224, in_chans=3, embed_dim=[64, 128, 320, 512],
245
- head_dim=64, mlp_ratio=4., qkv_bias=True, qk_scale=None, representation_size=None,
246
- drop_rate=0.3, attn_drop_rate=0., drop_path_rate=0., norm_layer=None, split=False, std=False):
247
- super().__init__()
248
-
249
- self.num_classes = num_classes
250
- self.num_features = self.embed_dim = embed_dim # num_features for consistency with other models
251
- norm_layer = partial(nn.LayerNorm, eps=1e-6)
252
-
253
- self.patch_embed1 = SpeicalPatchEmbed(
254
- img_size=img_size, patch_size=4, in_chans=in_chans, embed_dim=embed_dim[0])
255
- self.patch_embed2 = PatchEmbed(
256
- img_size=img_size // 4, patch_size=2, in_chans=embed_dim[0], embed_dim=embed_dim[1], std=std)
257
- self.patch_embed3 = PatchEmbed(
258
- img_size=img_size // 8, patch_size=2, in_chans=embed_dim[1], embed_dim=embed_dim[2], std=std)
259
- self.patch_embed4 = PatchEmbed(
260
- img_size=img_size // 16, patch_size=2, in_chans=embed_dim[2], embed_dim=embed_dim[3], std=std)
261
-
262
- self.pos_drop = nn.Dropout(p=drop_rate)
263
- dpr = [x.item() for x in torch.linspace(0, drop_path_rate, sum(depth))] # stochastic depth decay rule
264
- num_heads = [dim // head_dim for dim in embed_dim]
265
- self.blocks1 = nn.ModuleList([
266
- CBlock(
267
- dim=embed_dim[0], num_heads=num_heads[0], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
268
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i], norm_layer=norm_layer)
269
- for i in range(depth[0])])
270
- self.blocks2 = nn.ModuleList([
271
- CBlock(
272
- dim=embed_dim[1], num_heads=num_heads[1], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
273
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i+depth[0]], norm_layer=norm_layer)
274
- for i in range(depth[1])])
275
- if split:
276
- self.blocks3 = nn.ModuleList([
277
- SplitSABlock(
278
- dim=embed_dim[2], num_heads=num_heads[2], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
279
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i+depth[0]+depth[1]], norm_layer=norm_layer)
280
- for i in range(depth[2])])
281
- self.blocks4 = nn.ModuleList([
282
- SplitSABlock(
283
- dim=embed_dim[3], num_heads=num_heads[3], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
284
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i+depth[0]+depth[1]+depth[2]], norm_layer=norm_layer)
285
- for i in range(depth[3])])
286
- else:
287
- self.blocks3 = nn.ModuleList([
288
- SABlock(
289
- dim=embed_dim[2], num_heads=num_heads[2], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
290
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i+depth[0]+depth[1]], norm_layer=norm_layer)
291
- for i in range(depth[2])])
292
- self.blocks4 = nn.ModuleList([
293
- SABlock(
294
- dim=embed_dim[3], num_heads=num_heads[3], mlp_ratio=mlp_ratio, qkv_bias=qkv_bias, qk_scale=qk_scale,
295
- drop=drop_rate, attn_drop=attn_drop_rate, drop_path=dpr[i+depth[0]+depth[1]+depth[2]], norm_layer=norm_layer)
296
- for i in range(depth[3])])
297
- self.norm = bn_3d(embed_dim[-1])
298
-
299
- # Representation layer
300
- if representation_size:
301
- self.num_features = representation_size
302
- self.pre_logits = nn.Sequential(OrderedDict([
303
- ('fc', nn.Linear(embed_dim, representation_size)),
304
- ('act', nn.Tanh())
305
- ]))
306
- else:
307
- self.pre_logits = nn.Identity()
308
-
309
- # Classifier head
310
- self.head = nn.Linear(embed_dim[-1], num_classes) if num_classes > 0 else nn.Identity()
311
-
312
- self.apply(self._init_weights)
313
-
314
- for name, p in self.named_parameters():
315
- # fill proj weight with 1 here to improve training dynamics. Otherwise temporal attention inputs
316
- # are multiplied by 0*0, which is hard for the model to move out of.
317
- if 't_attn.qkv.weight' in name:
318
- nn.init.constant_(p, 0)
319
- if 't_attn.qkv.bias' in name:
320
- nn.init.constant_(p, 0)
321
- if 't_attn.proj.weight' in name:
322
- nn.init.constant_(p, 1)
323
- if 't_attn.proj.bias' in name:
324
- nn.init.constant_(p, 0)
325
-
326
- def _init_weights(self, m):
327
- if isinstance(m, nn.Linear):
328
- trunc_normal_(m.weight, std=.02)
329
- if isinstance(m, nn.Linear) and m.bias is not None:
330
- nn.init.constant_(m.bias, 0)
331
- elif isinstance(m, nn.LayerNorm):
332
- nn.init.constant_(m.bias, 0)
333
- nn.init.constant_(m.weight, 1.0)
334
-
335
- @torch.jit.ignore
336
- def no_weight_decay(self):
337
- return {'pos_embed', 'cls_token'}
338
-
339
- def get_classifier(self):
340
- return self.head
341
-
342
- def reset_classifier(self, num_classes, global_pool=''):
343
- self.num_classes = num_classes
344
- self.head = nn.Linear(self.embed_dim, num_classes) if num_classes > 0 else nn.Identity()
345
-
346
- def forward_features(self, x):
347
- x = self.patch_embed1(x)
348
- x = self.pos_drop(x)
349
- for blk in self.blocks1:
350
- x = blk(x)
351
- x = self.patch_embed2(x)
352
- for blk in self.blocks2:
353
- x = blk(x)
354
- x = self.patch_embed3(x)
355
- for blk in self.blocks3:
356
- x = blk(x)
357
- x = self.patch_embed4(x)
358
- for blk in self.blocks4:
359
- x = blk(x)
360
- x = self.norm(x)
361
- x = self.pre_logits(x)
362
- return x
363
-
364
- def forward(self, x):
365
- x = self.forward_features(x)
366
- x = x.flatten(2).mean(-1)
367
- x = self.head(x)
368
- return x
369
-
370
-
371
- def uniformer_small():
372
- return Uniformer(
373
- depth=[3, 4, 8, 3], embed_dim=[64, 128, 320, 512],
374
- head_dim=64, drop_rate=0.1)
375
-
376
- def uniformer_base():
377
- return Uniformer(
378
- depth=[5, 8, 20, 7], embed_dim=[64, 128, 320, 512],
379
- head_dim=64, drop_rate=0.3)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/ArpitM/chat-llm-streaming/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Chat Llm Streaming
3
- emoji: 📊
4
- colorFrom: blue
5
- colorTo: gray
6
- sdk: gradio
7
- sdk_version: 3.20.1
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/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/rich/syntax.py DELETED
@@ -1,950 +0,0 @@
1
- import os.path
2
- import platform
3
- import re
4
- import sys
5
- import textwrap
6
- from abc import ABC, abstractmethod
7
- from pathlib import Path
8
- from typing import (
9
- Any,
10
- Dict,
11
- Iterable,
12
- List,
13
- NamedTuple,
14
- Optional,
15
- Sequence,
16
- Set,
17
- Tuple,
18
- Type,
19
- Union,
20
- )
21
-
22
- from pip._vendor.pygments.lexer import Lexer
23
- from pip._vendor.pygments.lexers import get_lexer_by_name, guess_lexer_for_filename
24
- from pip._vendor.pygments.style import Style as PygmentsStyle
25
- from pip._vendor.pygments.styles import get_style_by_name
26
- from pip._vendor.pygments.token import (
27
- Comment,
28
- Error,
29
- Generic,
30
- Keyword,
31
- Name,
32
- Number,
33
- Operator,
34
- String,
35
- Token,
36
- Whitespace,
37
- )
38
- from pip._vendor.pygments.util import ClassNotFound
39
-
40
- from pip._vendor.rich.containers import Lines
41
- from pip._vendor.rich.padding import Padding, PaddingDimensions
42
-
43
- from ._loop import loop_first
44
- from .cells import cell_len
45
- from .color import Color, blend_rgb
46
- from .console import Console, ConsoleOptions, JustifyMethod, RenderResult
47
- from .jupyter import JupyterMixin
48
- from .measure import Measurement
49
- from .segment import Segment, Segments
50
- from .style import Style, StyleType
51
- from .text import Text
52
-
53
- TokenType = Tuple[str, ...]
54
-
55
- WINDOWS = platform.system() == "Windows"
56
- DEFAULT_THEME = "monokai"
57
-
58
- # The following styles are based on https://github.com/pygments/pygments/blob/master/pygments/formatters/terminal.py
59
- # A few modifications were made
60
-
61
- ANSI_LIGHT: Dict[TokenType, Style] = {
62
- Token: Style(),
63
- Whitespace: Style(color="white"),
64
- Comment: Style(dim=True),
65
- Comment.Preproc: Style(color="cyan"),
66
- Keyword: Style(color="blue"),
67
- Keyword.Type: Style(color="cyan"),
68
- Operator.Word: Style(color="magenta"),
69
- Name.Builtin: Style(color="cyan"),
70
- Name.Function: Style(color="green"),
71
- Name.Namespace: Style(color="cyan", underline=True),
72
- Name.Class: Style(color="green", underline=True),
73
- Name.Exception: Style(color="cyan"),
74
- Name.Decorator: Style(color="magenta", bold=True),
75
- Name.Variable: Style(color="red"),
76
- Name.Constant: Style(color="red"),
77
- Name.Attribute: Style(color="cyan"),
78
- Name.Tag: Style(color="bright_blue"),
79
- String: Style(color="yellow"),
80
- Number: Style(color="blue"),
81
- Generic.Deleted: Style(color="bright_red"),
82
- Generic.Inserted: Style(color="green"),
83
- Generic.Heading: Style(bold=True),
84
- Generic.Subheading: Style(color="magenta", bold=True),
85
- Generic.Prompt: Style(bold=True),
86
- Generic.Error: Style(color="bright_red"),
87
- Error: Style(color="red", underline=True),
88
- }
89
-
90
- ANSI_DARK: Dict[TokenType, Style] = {
91
- Token: Style(),
92
- Whitespace: Style(color="bright_black"),
93
- Comment: Style(dim=True),
94
- Comment.Preproc: Style(color="bright_cyan"),
95
- Keyword: Style(color="bright_blue"),
96
- Keyword.Type: Style(color="bright_cyan"),
97
- Operator.Word: Style(color="bright_magenta"),
98
- Name.Builtin: Style(color="bright_cyan"),
99
- Name.Function: Style(color="bright_green"),
100
- Name.Namespace: Style(color="bright_cyan", underline=True),
101
- Name.Class: Style(color="bright_green", underline=True),
102
- Name.Exception: Style(color="bright_cyan"),
103
- Name.Decorator: Style(color="bright_magenta", bold=True),
104
- Name.Variable: Style(color="bright_red"),
105
- Name.Constant: Style(color="bright_red"),
106
- Name.Attribute: Style(color="bright_cyan"),
107
- Name.Tag: Style(color="bright_blue"),
108
- String: Style(color="yellow"),
109
- Number: Style(color="bright_blue"),
110
- Generic.Deleted: Style(color="bright_red"),
111
- Generic.Inserted: Style(color="bright_green"),
112
- Generic.Heading: Style(bold=True),
113
- Generic.Subheading: Style(color="bright_magenta", bold=True),
114
- Generic.Prompt: Style(bold=True),
115
- Generic.Error: Style(color="bright_red"),
116
- Error: Style(color="red", underline=True),
117
- }
118
-
119
- RICH_SYNTAX_THEMES = {"ansi_light": ANSI_LIGHT, "ansi_dark": ANSI_DARK}
120
- NUMBERS_COLUMN_DEFAULT_PADDING = 2
121
-
122
-
123
- class SyntaxTheme(ABC):
124
- """Base class for a syntax theme."""
125
-
126
- @abstractmethod
127
- def get_style_for_token(self, token_type: TokenType) -> Style:
128
- """Get a style for a given Pygments token."""
129
- raise NotImplementedError # pragma: no cover
130
-
131
- @abstractmethod
132
- def get_background_style(self) -> Style:
133
- """Get the background color."""
134
- raise NotImplementedError # pragma: no cover
135
-
136
-
137
- class PygmentsSyntaxTheme(SyntaxTheme):
138
- """Syntax theme that delegates to Pygments theme."""
139
-
140
- def __init__(self, theme: Union[str, Type[PygmentsStyle]]) -> None:
141
- self._style_cache: Dict[TokenType, Style] = {}
142
- if isinstance(theme, str):
143
- try:
144
- self._pygments_style_class = get_style_by_name(theme)
145
- except ClassNotFound:
146
- self._pygments_style_class = get_style_by_name("default")
147
- else:
148
- self._pygments_style_class = theme
149
-
150
- self._background_color = self._pygments_style_class.background_color
151
- self._background_style = Style(bgcolor=self._background_color)
152
-
153
- def get_style_for_token(self, token_type: TokenType) -> Style:
154
- """Get a style from a Pygments class."""
155
- try:
156
- return self._style_cache[token_type]
157
- except KeyError:
158
- try:
159
- pygments_style = self._pygments_style_class.style_for_token(token_type)
160
- except KeyError:
161
- style = Style.null()
162
- else:
163
- color = pygments_style["color"]
164
- bgcolor = pygments_style["bgcolor"]
165
- style = Style(
166
- color="#" + color if color else "#000000",
167
- bgcolor="#" + bgcolor if bgcolor else self._background_color,
168
- bold=pygments_style["bold"],
169
- italic=pygments_style["italic"],
170
- underline=pygments_style["underline"],
171
- )
172
- self._style_cache[token_type] = style
173
- return style
174
-
175
- def get_background_style(self) -> Style:
176
- return self._background_style
177
-
178
-
179
- class ANSISyntaxTheme(SyntaxTheme):
180
- """Syntax theme to use standard colors."""
181
-
182
- def __init__(self, style_map: Dict[TokenType, Style]) -> None:
183
- self.style_map = style_map
184
- self._missing_style = Style.null()
185
- self._background_style = Style.null()
186
- self._style_cache: Dict[TokenType, Style] = {}
187
-
188
- def get_style_for_token(self, token_type: TokenType) -> Style:
189
- """Look up style in the style map."""
190
- try:
191
- return self._style_cache[token_type]
192
- except KeyError:
193
- # Styles form a hierarchy
194
- # We need to go from most to least specific
195
- # e.g. ("foo", "bar", "baz") to ("foo", "bar") to ("foo",)
196
- get_style = self.style_map.get
197
- token = tuple(token_type)
198
- style = self._missing_style
199
- while token:
200
- _style = get_style(token)
201
- if _style is not None:
202
- style = _style
203
- break
204
- token = token[:-1]
205
- self._style_cache[token_type] = style
206
- return style
207
-
208
- def get_background_style(self) -> Style:
209
- return self._background_style
210
-
211
-
212
- SyntaxPosition = Tuple[int, int]
213
-
214
-
215
- class _SyntaxHighlightRange(NamedTuple):
216
- """
217
- A range to highlight in a Syntax object.
218
- `start` and `end` are 2-integers tuples, where the first integer is the line number
219
- (starting from 1) and the second integer is the column index (starting from 0).
220
- """
221
-
222
- style: StyleType
223
- start: SyntaxPosition
224
- end: SyntaxPosition
225
-
226
-
227
- class Syntax(JupyterMixin):
228
- """Construct a Syntax object to render syntax highlighted code.
229
-
230
- Args:
231
- code (str): Code to highlight.
232
- lexer (Lexer | str): Lexer to use (see https://pygments.org/docs/lexers/)
233
- theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "monokai".
234
- dedent (bool, optional): Enable stripping of initial whitespace. Defaults to False.
235
- line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
236
- start_line (int, optional): Starting number for line numbers. Defaults to 1.
237
- line_range (Tuple[int | None, int | None], optional): If given should be a tuple of the start and end line to render.
238
- A value of None in the tuple indicates the range is open in that direction.
239
- highlight_lines (Set[int]): A set of line numbers to highlight.
240
- code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
241
- tab_size (int, optional): Size of tabs. Defaults to 4.
242
- word_wrap (bool, optional): Enable word wrapping.
243
- background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
244
- indent_guides (bool, optional): Show indent guides. Defaults to False.
245
- padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
246
- """
247
-
248
- _pygments_style_class: Type[PygmentsStyle]
249
- _theme: SyntaxTheme
250
-
251
- @classmethod
252
- def get_theme(cls, name: Union[str, SyntaxTheme]) -> SyntaxTheme:
253
- """Get a syntax theme instance."""
254
- if isinstance(name, SyntaxTheme):
255
- return name
256
- theme: SyntaxTheme
257
- if name in RICH_SYNTAX_THEMES:
258
- theme = ANSISyntaxTheme(RICH_SYNTAX_THEMES[name])
259
- else:
260
- theme = PygmentsSyntaxTheme(name)
261
- return theme
262
-
263
- def __init__(
264
- self,
265
- code: str,
266
- lexer: Union[Lexer, str],
267
- *,
268
- theme: Union[str, SyntaxTheme] = DEFAULT_THEME,
269
- dedent: bool = False,
270
- line_numbers: bool = False,
271
- start_line: int = 1,
272
- line_range: Optional[Tuple[Optional[int], Optional[int]]] = None,
273
- highlight_lines: Optional[Set[int]] = None,
274
- code_width: Optional[int] = None,
275
- tab_size: int = 4,
276
- word_wrap: bool = False,
277
- background_color: Optional[str] = None,
278
- indent_guides: bool = False,
279
- padding: PaddingDimensions = 0,
280
- ) -> None:
281
- self.code = code
282
- self._lexer = lexer
283
- self.dedent = dedent
284
- self.line_numbers = line_numbers
285
- self.start_line = start_line
286
- self.line_range = line_range
287
- self.highlight_lines = highlight_lines or set()
288
- self.code_width = code_width
289
- self.tab_size = tab_size
290
- self.word_wrap = word_wrap
291
- self.background_color = background_color
292
- self.background_style = (
293
- Style(bgcolor=background_color) if background_color else Style()
294
- )
295
- self.indent_guides = indent_guides
296
- self.padding = padding
297
-
298
- self._theme = self.get_theme(theme)
299
- self._stylized_ranges: List[_SyntaxHighlightRange] = []
300
-
301
- @classmethod
302
- def from_path(
303
- cls,
304
- path: str,
305
- encoding: str = "utf-8",
306
- lexer: Optional[Union[Lexer, str]] = None,
307
- theme: Union[str, SyntaxTheme] = DEFAULT_THEME,
308
- dedent: bool = False,
309
- line_numbers: bool = False,
310
- line_range: Optional[Tuple[int, int]] = None,
311
- start_line: int = 1,
312
- highlight_lines: Optional[Set[int]] = None,
313
- code_width: Optional[int] = None,
314
- tab_size: int = 4,
315
- word_wrap: bool = False,
316
- background_color: Optional[str] = None,
317
- indent_guides: bool = False,
318
- padding: PaddingDimensions = 0,
319
- ) -> "Syntax":
320
- """Construct a Syntax object from a file.
321
-
322
- Args:
323
- path (str): Path to file to highlight.
324
- encoding (str): Encoding of file.
325
- lexer (str | Lexer, optional): Lexer to use. If None, lexer will be auto-detected from path/file content.
326
- theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/docs/styles/#getting-a-list-of-available-styles). Defaults to "emacs".
327
- dedent (bool, optional): Enable stripping of initial whitespace. Defaults to True.
328
- line_numbers (bool, optional): Enable rendering of line numbers. Defaults to False.
329
- start_line (int, optional): Starting number for line numbers. Defaults to 1.
330
- line_range (Tuple[int, int], optional): If given should be a tuple of the start and end line to render.
331
- highlight_lines (Set[int]): A set of line numbers to highlight.
332
- code_width: Width of code to render (not including line numbers), or ``None`` to use all available width.
333
- tab_size (int, optional): Size of tabs. Defaults to 4.
334
- word_wrap (bool, optional): Enable word wrapping of code.
335
- background_color (str, optional): Optional background color, or None to use theme color. Defaults to None.
336
- indent_guides (bool, optional): Show indent guides. Defaults to False.
337
- padding (PaddingDimensions): Padding to apply around the syntax. Defaults to 0 (no padding).
338
-
339
- Returns:
340
- [Syntax]: A Syntax object that may be printed to the console
341
- """
342
- code = Path(path).read_text(encoding=encoding)
343
-
344
- if not lexer:
345
- lexer = cls.guess_lexer(path, code=code)
346
-
347
- return cls(
348
- code,
349
- lexer,
350
- theme=theme,
351
- dedent=dedent,
352
- line_numbers=line_numbers,
353
- line_range=line_range,
354
- start_line=start_line,
355
- highlight_lines=highlight_lines,
356
- code_width=code_width,
357
- tab_size=tab_size,
358
- word_wrap=word_wrap,
359
- background_color=background_color,
360
- indent_guides=indent_guides,
361
- padding=padding,
362
- )
363
-
364
- @classmethod
365
- def guess_lexer(cls, path: str, code: Optional[str] = None) -> str:
366
- """Guess the alias of the Pygments lexer to use based on a path and an optional string of code.
367
- If code is supplied, it will use a combination of the code and the filename to determine the
368
- best lexer to use. For example, if the file is ``index.html`` and the file contains Django
369
- templating syntax, then "html+django" will be returned. If the file is ``index.html``, and no
370
- templating language is used, the "html" lexer will be used. If no string of code
371
- is supplied, the lexer will be chosen based on the file extension..
372
-
373
- Args:
374
- path (AnyStr): The path to the file containing the code you wish to know the lexer for.
375
- code (str, optional): Optional string of code that will be used as a fallback if no lexer
376
- is found for the supplied path.
377
-
378
- Returns:
379
- str: The name of the Pygments lexer that best matches the supplied path/code.
380
- """
381
- lexer: Optional[Lexer] = None
382
- lexer_name = "default"
383
- if code:
384
- try:
385
- lexer = guess_lexer_for_filename(path, code)
386
- except ClassNotFound:
387
- pass
388
-
389
- if not lexer:
390
- try:
391
- _, ext = os.path.splitext(path)
392
- if ext:
393
- extension = ext.lstrip(".").lower()
394
- lexer = get_lexer_by_name(extension)
395
- except ClassNotFound:
396
- pass
397
-
398
- if lexer:
399
- if lexer.aliases:
400
- lexer_name = lexer.aliases[0]
401
- else:
402
- lexer_name = lexer.name
403
-
404
- return lexer_name
405
-
406
- def _get_base_style(self) -> Style:
407
- """Get the base style."""
408
- default_style = self._theme.get_background_style() + self.background_style
409
- return default_style
410
-
411
- def _get_token_color(self, token_type: TokenType) -> Optional[Color]:
412
- """Get a color (if any) for the given token.
413
-
414
- Args:
415
- token_type (TokenType): A token type tuple from Pygments.
416
-
417
- Returns:
418
- Optional[Color]: Color from theme, or None for no color.
419
- """
420
- style = self._theme.get_style_for_token(token_type)
421
- return style.color
422
-
423
- @property
424
- def lexer(self) -> Optional[Lexer]:
425
- """The lexer for this syntax, or None if no lexer was found.
426
-
427
- Tries to find the lexer by name if a string was passed to the constructor.
428
- """
429
-
430
- if isinstance(self._lexer, Lexer):
431
- return self._lexer
432
- try:
433
- return get_lexer_by_name(
434
- self._lexer,
435
- stripnl=False,
436
- ensurenl=True,
437
- tabsize=self.tab_size,
438
- )
439
- except ClassNotFound:
440
- return None
441
-
442
- def highlight(
443
- self,
444
- code: str,
445
- line_range: Optional[Tuple[Optional[int], Optional[int]]] = None,
446
- ) -> Text:
447
- """Highlight code and return a Text instance.
448
-
449
- Args:
450
- code (str): Code to highlight.
451
- line_range(Tuple[int, int], optional): Optional line range to highlight.
452
-
453
- Returns:
454
- Text: A text instance containing highlighted syntax.
455
- """
456
-
457
- base_style = self._get_base_style()
458
- justify: JustifyMethod = (
459
- "default" if base_style.transparent_background else "left"
460
- )
461
-
462
- text = Text(
463
- justify=justify,
464
- style=base_style,
465
- tab_size=self.tab_size,
466
- no_wrap=not self.word_wrap,
467
- )
468
- _get_theme_style = self._theme.get_style_for_token
469
-
470
- lexer = self.lexer
471
-
472
- if lexer is None:
473
- text.append(code)
474
- else:
475
- if line_range:
476
- # More complicated path to only stylize a portion of the code
477
- # This speeds up further operations as there are less spans to process
478
- line_start, line_end = line_range
479
-
480
- def line_tokenize() -> Iterable[Tuple[Any, str]]:
481
- """Split tokens to one per line."""
482
- assert lexer # required to make MyPy happy - we know lexer is not None at this point
483
-
484
- for token_type, token in lexer.get_tokens(code):
485
- while token:
486
- line_token, new_line, token = token.partition("\n")
487
- yield token_type, line_token + new_line
488
-
489
- def tokens_to_spans() -> Iterable[Tuple[str, Optional[Style]]]:
490
- """Convert tokens to spans."""
491
- tokens = iter(line_tokenize())
492
- line_no = 0
493
- _line_start = line_start - 1 if line_start else 0
494
-
495
- # Skip over tokens until line start
496
- while line_no < _line_start:
497
- try:
498
- _token_type, token = next(tokens)
499
- except StopIteration:
500
- break
501
- yield (token, None)
502
- if token.endswith("\n"):
503
- line_no += 1
504
- # Generate spans until line end
505
- for token_type, token in tokens:
506
- yield (token, _get_theme_style(token_type))
507
- if token.endswith("\n"):
508
- line_no += 1
509
- if line_end and line_no >= line_end:
510
- break
511
-
512
- text.append_tokens(tokens_to_spans())
513
-
514
- else:
515
- text.append_tokens(
516
- (token, _get_theme_style(token_type))
517
- for token_type, token in lexer.get_tokens(code)
518
- )
519
- if self.background_color is not None:
520
- text.stylize(f"on {self.background_color}")
521
-
522
- if self._stylized_ranges:
523
- self._apply_stylized_ranges(text)
524
-
525
- return text
526
-
527
- def stylize_range(
528
- self, style: StyleType, start: SyntaxPosition, end: SyntaxPosition
529
- ) -> None:
530
- """
531
- Adds a custom style on a part of the code, that will be applied to the syntax display when it's rendered.
532
- Line numbers are 1-based, while column indexes are 0-based.
533
-
534
- Args:
535
- style (StyleType): The style to apply.
536
- start (Tuple[int, int]): The start of the range, in the form `[line number, column index]`.
537
- end (Tuple[int, int]): The end of the range, in the form `[line number, column index]`.
538
- """
539
- self._stylized_ranges.append(_SyntaxHighlightRange(style, start, end))
540
-
541
- def _get_line_numbers_color(self, blend: float = 0.3) -> Color:
542
- background_style = self._theme.get_background_style() + self.background_style
543
- background_color = background_style.bgcolor
544
- if background_color is None or background_color.is_system_defined:
545
- return Color.default()
546
- foreground_color = self._get_token_color(Token.Text)
547
- if foreground_color is None or foreground_color.is_system_defined:
548
- return foreground_color or Color.default()
549
- new_color = blend_rgb(
550
- background_color.get_truecolor(),
551
- foreground_color.get_truecolor(),
552
- cross_fade=blend,
553
- )
554
- return Color.from_triplet(new_color)
555
-
556
- @property
557
- def _numbers_column_width(self) -> int:
558
- """Get the number of characters used to render the numbers column."""
559
- column_width = 0
560
- if self.line_numbers:
561
- column_width = (
562
- len(str(self.start_line + self.code.count("\n")))
563
- + NUMBERS_COLUMN_DEFAULT_PADDING
564
- )
565
- return column_width
566
-
567
- def _get_number_styles(self, console: Console) -> Tuple[Style, Style, Style]:
568
- """Get background, number, and highlight styles for line numbers."""
569
- background_style = self._get_base_style()
570
- if background_style.transparent_background:
571
- return Style.null(), Style(dim=True), Style.null()
572
- if console.color_system in ("256", "truecolor"):
573
- number_style = Style.chain(
574
- background_style,
575
- self._theme.get_style_for_token(Token.Text),
576
- Style(color=self._get_line_numbers_color()),
577
- self.background_style,
578
- )
579
- highlight_number_style = Style.chain(
580
- background_style,
581
- self._theme.get_style_for_token(Token.Text),
582
- Style(bold=True, color=self._get_line_numbers_color(0.9)),
583
- self.background_style,
584
- )
585
- else:
586
- number_style = background_style + Style(dim=True)
587
- highlight_number_style = background_style + Style(dim=False)
588
- return background_style, number_style, highlight_number_style
589
-
590
- def __rich_measure__(
591
- self, console: "Console", options: "ConsoleOptions"
592
- ) -> "Measurement":
593
-
594
- _, right, _, left = Padding.unpack(self.padding)
595
- padding = left + right
596
- if self.code_width is not None:
597
- width = self.code_width + self._numbers_column_width + padding + 1
598
- return Measurement(self._numbers_column_width, width)
599
- lines = self.code.splitlines()
600
- width = (
601
- self._numbers_column_width
602
- + padding
603
- + (max(cell_len(line) for line in lines) if lines else 0)
604
- )
605
- if self.line_numbers:
606
- width += 1
607
- return Measurement(self._numbers_column_width, width)
608
-
609
- def __rich_console__(
610
- self, console: Console, options: ConsoleOptions
611
- ) -> RenderResult:
612
- segments = Segments(self._get_syntax(console, options))
613
- if self.padding:
614
- yield Padding(
615
- segments, style=self._theme.get_background_style(), pad=self.padding
616
- )
617
- else:
618
- yield segments
619
-
620
- def _get_syntax(
621
- self,
622
- console: Console,
623
- options: ConsoleOptions,
624
- ) -> Iterable[Segment]:
625
- """
626
- Get the Segments for the Syntax object, excluding any vertical/horizontal padding
627
- """
628
- transparent_background = self._get_base_style().transparent_background
629
- code_width = (
630
- (
631
- (options.max_width - self._numbers_column_width - 1)
632
- if self.line_numbers
633
- else options.max_width
634
- )
635
- if self.code_width is None
636
- else self.code_width
637
- )
638
-
639
- ends_on_nl, processed_code = self._process_code(self.code)
640
- text = self.highlight(processed_code, self.line_range)
641
-
642
- if not self.line_numbers and not self.word_wrap and not self.line_range:
643
- if not ends_on_nl:
644
- text.remove_suffix("\n")
645
- # Simple case of just rendering text
646
- style = (
647
- self._get_base_style()
648
- + self._theme.get_style_for_token(Comment)
649
- + Style(dim=True)
650
- + self.background_style
651
- )
652
- if self.indent_guides and not options.ascii_only:
653
- text = text.with_indent_guides(self.tab_size, style=style)
654
- text.overflow = "crop"
655
- if style.transparent_background:
656
- yield from console.render(
657
- text, options=options.update(width=code_width)
658
- )
659
- else:
660
- syntax_lines = console.render_lines(
661
- text,
662
- options.update(width=code_width, height=None, justify="left"),
663
- style=self.background_style,
664
- pad=True,
665
- new_lines=True,
666
- )
667
- for syntax_line in syntax_lines:
668
- yield from syntax_line
669
- return
670
-
671
- start_line, end_line = self.line_range or (None, None)
672
- line_offset = 0
673
- if start_line:
674
- line_offset = max(0, start_line - 1)
675
- lines: Union[List[Text], Lines] = text.split("\n", allow_blank=ends_on_nl)
676
- if self.line_range:
677
- if line_offset > len(lines):
678
- return
679
- lines = lines[line_offset:end_line]
680
-
681
- if self.indent_guides and not options.ascii_only:
682
- style = (
683
- self._get_base_style()
684
- + self._theme.get_style_for_token(Comment)
685
- + Style(dim=True)
686
- + self.background_style
687
- )
688
- lines = (
689
- Text("\n")
690
- .join(lines)
691
- .with_indent_guides(self.tab_size, style=style)
692
- .split("\n", allow_blank=True)
693
- )
694
-
695
- numbers_column_width = self._numbers_column_width
696
- render_options = options.update(width=code_width)
697
-
698
- highlight_line = self.highlight_lines.__contains__
699
- _Segment = Segment
700
- new_line = _Segment("\n")
701
-
702
- line_pointer = "> " if options.legacy_windows else "❱ "
703
-
704
- (
705
- background_style,
706
- number_style,
707
- highlight_number_style,
708
- ) = self._get_number_styles(console)
709
-
710
- for line_no, line in enumerate(lines, self.start_line + line_offset):
711
- if self.word_wrap:
712
- wrapped_lines = console.render_lines(
713
- line,
714
- render_options.update(height=None, justify="left"),
715
- style=background_style,
716
- pad=not transparent_background,
717
- )
718
- else:
719
- segments = list(line.render(console, end=""))
720
- if options.no_wrap:
721
- wrapped_lines = [segments]
722
- else:
723
- wrapped_lines = [
724
- _Segment.adjust_line_length(
725
- segments,
726
- render_options.max_width,
727
- style=background_style,
728
- pad=not transparent_background,
729
- )
730
- ]
731
-
732
- if self.line_numbers:
733
- wrapped_line_left_pad = _Segment(
734
- " " * numbers_column_width + " ", background_style
735
- )
736
- for first, wrapped_line in loop_first(wrapped_lines):
737
- if first:
738
- line_column = str(line_no).rjust(numbers_column_width - 2) + " "
739
- if highlight_line(line_no):
740
- yield _Segment(line_pointer, Style(color="red"))
741
- yield _Segment(line_column, highlight_number_style)
742
- else:
743
- yield _Segment(" ", highlight_number_style)
744
- yield _Segment(line_column, number_style)
745
- else:
746
- yield wrapped_line_left_pad
747
- yield from wrapped_line
748
- yield new_line
749
- else:
750
- for wrapped_line in wrapped_lines:
751
- yield from wrapped_line
752
- yield new_line
753
-
754
- def _apply_stylized_ranges(self, text: Text) -> None:
755
- """
756
- Apply stylized ranges to a text instance,
757
- using the given code to determine the right portion to apply the style to.
758
-
759
- Args:
760
- text (Text): Text instance to apply the style to.
761
- """
762
- code = text.plain
763
- newlines_offsets = [
764
- # Let's add outer boundaries at each side of the list:
765
- 0,
766
- # N.B. using "\n" here is much faster than using metacharacters such as "^" or "\Z":
767
- *[
768
- match.start() + 1
769
- for match in re.finditer("\n", code, flags=re.MULTILINE)
770
- ],
771
- len(code) + 1,
772
- ]
773
-
774
- for stylized_range in self._stylized_ranges:
775
- start = _get_code_index_for_syntax_position(
776
- newlines_offsets, stylized_range.start
777
- )
778
- end = _get_code_index_for_syntax_position(
779
- newlines_offsets, stylized_range.end
780
- )
781
- if start is not None and end is not None:
782
- text.stylize(stylized_range.style, start, end)
783
-
784
- def _process_code(self, code: str) -> Tuple[bool, str]:
785
- """
786
- Applies various processing to a raw code string
787
- (normalises it so it always ends with a line return, dedents it if necessary, etc.)
788
-
789
- Args:
790
- code (str): The raw code string to process
791
-
792
- Returns:
793
- Tuple[bool, str]: the boolean indicates whether the raw code ends with a line return,
794
- while the string is the processed code.
795
- """
796
- ends_on_nl = code.endswith("\n")
797
- processed_code = code if ends_on_nl else code + "\n"
798
- processed_code = (
799
- textwrap.dedent(processed_code) if self.dedent else processed_code
800
- )
801
- processed_code = processed_code.expandtabs(self.tab_size)
802
- return ends_on_nl, processed_code
803
-
804
-
805
- def _get_code_index_for_syntax_position(
806
- newlines_offsets: Sequence[int], position: SyntaxPosition
807
- ) -> Optional[int]:
808
- """
809
- Returns the index of the code string for the given positions.
810
-
811
- Args:
812
- newlines_offsets (Sequence[int]): The offset of each newline character found in the code snippet.
813
- position (SyntaxPosition): The position to search for.
814
-
815
- Returns:
816
- Optional[int]: The index of the code string for this position, or `None`
817
- if the given position's line number is out of range (if it's the column that is out of range
818
- we silently clamp its value so that it reaches the end of the line)
819
- """
820
- lines_count = len(newlines_offsets)
821
-
822
- line_number, column_index = position
823
- if line_number > lines_count or len(newlines_offsets) < (line_number + 1):
824
- return None # `line_number` is out of range
825
- line_index = line_number - 1
826
- line_length = newlines_offsets[line_index + 1] - newlines_offsets[line_index] - 1
827
- # If `column_index` is out of range: let's silently clamp it:
828
- column_index = min(line_length, column_index)
829
- return newlines_offsets[line_index] + column_index
830
-
831
-
832
- if __name__ == "__main__": # pragma: no cover
833
-
834
- import argparse
835
- import sys
836
-
837
- parser = argparse.ArgumentParser(
838
- description="Render syntax to the console with Rich"
839
- )
840
- parser.add_argument(
841
- "path",
842
- metavar="PATH",
843
- help="path to file, or - for stdin",
844
- )
845
- parser.add_argument(
846
- "-c",
847
- "--force-color",
848
- dest="force_color",
849
- action="store_true",
850
- default=None,
851
- help="force color for non-terminals",
852
- )
853
- parser.add_argument(
854
- "-i",
855
- "--indent-guides",
856
- dest="indent_guides",
857
- action="store_true",
858
- default=False,
859
- help="display indent guides",
860
- )
861
- parser.add_argument(
862
- "-l",
863
- "--line-numbers",
864
- dest="line_numbers",
865
- action="store_true",
866
- help="render line numbers",
867
- )
868
- parser.add_argument(
869
- "-w",
870
- "--width",
871
- type=int,
872
- dest="width",
873
- default=None,
874
- help="width of output (default will auto-detect)",
875
- )
876
- parser.add_argument(
877
- "-r",
878
- "--wrap",
879
- dest="word_wrap",
880
- action="store_true",
881
- default=False,
882
- help="word wrap long lines",
883
- )
884
- parser.add_argument(
885
- "-s",
886
- "--soft-wrap",
887
- action="store_true",
888
- dest="soft_wrap",
889
- default=False,
890
- help="enable soft wrapping mode",
891
- )
892
- parser.add_argument(
893
- "-t", "--theme", dest="theme", default="monokai", help="pygments theme"
894
- )
895
- parser.add_argument(
896
- "-b",
897
- "--background-color",
898
- dest="background_color",
899
- default=None,
900
- help="Override background color",
901
- )
902
- parser.add_argument(
903
- "-x",
904
- "--lexer",
905
- default=None,
906
- dest="lexer_name",
907
- help="Lexer name",
908
- )
909
- parser.add_argument(
910
- "-p", "--padding", type=int, default=0, dest="padding", help="Padding"
911
- )
912
- parser.add_argument(
913
- "--highlight-line",
914
- type=int,
915
- default=None,
916
- dest="highlight_line",
917
- help="The line number (not index!) to highlight",
918
- )
919
- args = parser.parse_args()
920
-
921
- from pip._vendor.rich.console import Console
922
-
923
- console = Console(force_terminal=args.force_color, width=args.width)
924
-
925
- if args.path == "-":
926
- code = sys.stdin.read()
927
- syntax = Syntax(
928
- code=code,
929
- lexer=args.lexer_name,
930
- line_numbers=args.line_numbers,
931
- word_wrap=args.word_wrap,
932
- theme=args.theme,
933
- background_color=args.background_color,
934
- indent_guides=args.indent_guides,
935
- padding=args.padding,
936
- highlight_lines={args.highlight_line},
937
- )
938
- else:
939
- syntax = Syntax.from_path(
940
- args.path,
941
- lexer=args.lexer_name,
942
- line_numbers=args.line_numbers,
943
- word_wrap=args.word_wrap,
944
- theme=args.theme,
945
- background_color=args.background_color,
946
- indent_guides=args.indent_guides,
947
- padding=args.padding,
948
- highlight_lines={args.highlight_line},
949
- )
950
- console.print(syntax, soft_wrap=args.soft_wrap)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pkg_resources/_vendor/zipp.py DELETED
@@ -1,329 +0,0 @@
1
- import io
2
- import posixpath
3
- import zipfile
4
- import itertools
5
- import contextlib
6
- import sys
7
- import pathlib
8
-
9
- if sys.version_info < (3, 7):
10
- from collections import OrderedDict
11
- else:
12
- OrderedDict = dict
13
-
14
-
15
- __all__ = ['Path']
16
-
17
-
18
- def _parents(path):
19
- """
20
- Given a path with elements separated by
21
- posixpath.sep, generate all parents of that path.
22
-
23
- >>> list(_parents('b/d'))
24
- ['b']
25
- >>> list(_parents('/b/d/'))
26
- ['/b']
27
- >>> list(_parents('b/d/f/'))
28
- ['b/d', 'b']
29
- >>> list(_parents('b'))
30
- []
31
- >>> list(_parents(''))
32
- []
33
- """
34
- return itertools.islice(_ancestry(path), 1, None)
35
-
36
-
37
- def _ancestry(path):
38
- """
39
- Given a path with elements separated by
40
- posixpath.sep, generate all elements of that path
41
-
42
- >>> list(_ancestry('b/d'))
43
- ['b/d', 'b']
44
- >>> list(_ancestry('/b/d/'))
45
- ['/b/d', '/b']
46
- >>> list(_ancestry('b/d/f/'))
47
- ['b/d/f', 'b/d', 'b']
48
- >>> list(_ancestry('b'))
49
- ['b']
50
- >>> list(_ancestry(''))
51
- []
52
- """
53
- path = path.rstrip(posixpath.sep)
54
- while path and path != posixpath.sep:
55
- yield path
56
- path, tail = posixpath.split(path)
57
-
58
-
59
- _dedupe = OrderedDict.fromkeys
60
- """Deduplicate an iterable in original order"""
61
-
62
-
63
- def _difference(minuend, subtrahend):
64
- """
65
- Return items in minuend not in subtrahend, retaining order
66
- with O(1) lookup.
67
- """
68
- return itertools.filterfalse(set(subtrahend).__contains__, minuend)
69
-
70
-
71
- class CompleteDirs(zipfile.ZipFile):
72
- """
73
- A ZipFile subclass that ensures that implied directories
74
- are always included in the namelist.
75
- """
76
-
77
- @staticmethod
78
- def _implied_dirs(names):
79
- parents = itertools.chain.from_iterable(map(_parents, names))
80
- as_dirs = (p + posixpath.sep for p in parents)
81
- return _dedupe(_difference(as_dirs, names))
82
-
83
- def namelist(self):
84
- names = super(CompleteDirs, self).namelist()
85
- return names + list(self._implied_dirs(names))
86
-
87
- def _name_set(self):
88
- return set(self.namelist())
89
-
90
- def resolve_dir(self, name):
91
- """
92
- If the name represents a directory, return that name
93
- as a directory (with the trailing slash).
94
- """
95
- names = self._name_set()
96
- dirname = name + '/'
97
- dir_match = name not in names and dirname in names
98
- return dirname if dir_match else name
99
-
100
- @classmethod
101
- def make(cls, source):
102
- """
103
- Given a source (filename or zipfile), return an
104
- appropriate CompleteDirs subclass.
105
- """
106
- if isinstance(source, CompleteDirs):
107
- return source
108
-
109
- if not isinstance(source, zipfile.ZipFile):
110
- return cls(_pathlib_compat(source))
111
-
112
- # Only allow for FastLookup when supplied zipfile is read-only
113
- if 'r' not in source.mode:
114
- cls = CompleteDirs
115
-
116
- source.__class__ = cls
117
- return source
118
-
119
-
120
- class FastLookup(CompleteDirs):
121
- """
122
- ZipFile subclass to ensure implicit
123
- dirs exist and are resolved rapidly.
124
- """
125
-
126
- def namelist(self):
127
- with contextlib.suppress(AttributeError):
128
- return self.__names
129
- self.__names = super(FastLookup, self).namelist()
130
- return self.__names
131
-
132
- def _name_set(self):
133
- with contextlib.suppress(AttributeError):
134
- return self.__lookup
135
- self.__lookup = super(FastLookup, self)._name_set()
136
- return self.__lookup
137
-
138
-
139
- def _pathlib_compat(path):
140
- """
141
- For path-like objects, convert to a filename for compatibility
142
- on Python 3.6.1 and earlier.
143
- """
144
- try:
145
- return path.__fspath__()
146
- except AttributeError:
147
- return str(path)
148
-
149
-
150
- class Path:
151
- """
152
- A pathlib-compatible interface for zip files.
153
-
154
- Consider a zip file with this structure::
155
-
156
- .
157
- ├── a.txt
158
- └── b
159
- ├── c.txt
160
- └── d
161
- └── e.txt
162
-
163
- >>> data = io.BytesIO()
164
- >>> zf = zipfile.ZipFile(data, 'w')
165
- >>> zf.writestr('a.txt', 'content of a')
166
- >>> zf.writestr('b/c.txt', 'content of c')
167
- >>> zf.writestr('b/d/e.txt', 'content of e')
168
- >>> zf.filename = 'mem/abcde.zip'
169
-
170
- Path accepts the zipfile object itself or a filename
171
-
172
- >>> root = Path(zf)
173
-
174
- From there, several path operations are available.
175
-
176
- Directory iteration (including the zip file itself):
177
-
178
- >>> a, b = root.iterdir()
179
- >>> a
180
- Path('mem/abcde.zip', 'a.txt')
181
- >>> b
182
- Path('mem/abcde.zip', 'b/')
183
-
184
- name property:
185
-
186
- >>> b.name
187
- 'b'
188
-
189
- join with divide operator:
190
-
191
- >>> c = b / 'c.txt'
192
- >>> c
193
- Path('mem/abcde.zip', 'b/c.txt')
194
- >>> c.name
195
- 'c.txt'
196
-
197
- Read text:
198
-
199
- >>> c.read_text()
200
- 'content of c'
201
-
202
- existence:
203
-
204
- >>> c.exists()
205
- True
206
- >>> (b / 'missing.txt').exists()
207
- False
208
-
209
- Coercion to string:
210
-
211
- >>> import os
212
- >>> str(c).replace(os.sep, posixpath.sep)
213
- 'mem/abcde.zip/b/c.txt'
214
-
215
- At the root, ``name``, ``filename``, and ``parent``
216
- resolve to the zipfile. Note these attributes are not
217
- valid and will raise a ``ValueError`` if the zipfile
218
- has no filename.
219
-
220
- >>> root.name
221
- 'abcde.zip'
222
- >>> str(root.filename).replace(os.sep, posixpath.sep)
223
- 'mem/abcde.zip'
224
- >>> str(root.parent)
225
- 'mem'
226
- """
227
-
228
- __repr = "{self.__class__.__name__}({self.root.filename!r}, {self.at!r})"
229
-
230
- def __init__(self, root, at=""):
231
- """
232
- Construct a Path from a ZipFile or filename.
233
-
234
- Note: When the source is an existing ZipFile object,
235
- its type (__class__) will be mutated to a
236
- specialized type. If the caller wishes to retain the
237
- original type, the caller should either create a
238
- separate ZipFile object or pass a filename.
239
- """
240
- self.root = FastLookup.make(root)
241
- self.at = at
242
-
243
- def open(self, mode='r', *args, pwd=None, **kwargs):
244
- """
245
- Open this entry as text or binary following the semantics
246
- of ``pathlib.Path.open()`` by passing arguments through
247
- to io.TextIOWrapper().
248
- """
249
- if self.is_dir():
250
- raise IsADirectoryError(self)
251
- zip_mode = mode[0]
252
- if not self.exists() and zip_mode == 'r':
253
- raise FileNotFoundError(self)
254
- stream = self.root.open(self.at, zip_mode, pwd=pwd)
255
- if 'b' in mode:
256
- if args or kwargs:
257
- raise ValueError("encoding args invalid for binary operation")
258
- return stream
259
- return io.TextIOWrapper(stream, *args, **kwargs)
260
-
261
- @property
262
- def name(self):
263
- return pathlib.Path(self.at).name or self.filename.name
264
-
265
- @property
266
- def suffix(self):
267
- return pathlib.Path(self.at).suffix or self.filename.suffix
268
-
269
- @property
270
- def suffixes(self):
271
- return pathlib.Path(self.at).suffixes or self.filename.suffixes
272
-
273
- @property
274
- def stem(self):
275
- return pathlib.Path(self.at).stem or self.filename.stem
276
-
277
- @property
278
- def filename(self):
279
- return pathlib.Path(self.root.filename).joinpath(self.at)
280
-
281
- def read_text(self, *args, **kwargs):
282
- with self.open('r', *args, **kwargs) as strm:
283
- return strm.read()
284
-
285
- def read_bytes(self):
286
- with self.open('rb') as strm:
287
- return strm.read()
288
-
289
- def _is_child(self, path):
290
- return posixpath.dirname(path.at.rstrip("/")) == self.at.rstrip("/")
291
-
292
- def _next(self, at):
293
- return self.__class__(self.root, at)
294
-
295
- def is_dir(self):
296
- return not self.at or self.at.endswith("/")
297
-
298
- def is_file(self):
299
- return self.exists() and not self.is_dir()
300
-
301
- def exists(self):
302
- return self.at in self.root._name_set()
303
-
304
- def iterdir(self):
305
- if not self.is_dir():
306
- raise ValueError("Can't listdir a file")
307
- subs = map(self._next, self.root.namelist())
308
- return filter(self._is_child, subs)
309
-
310
- def __str__(self):
311
- return posixpath.join(self.root.filename, self.at)
312
-
313
- def __repr__(self):
314
- return self.__repr.format(self=self)
315
-
316
- def joinpath(self, *other):
317
- next = posixpath.join(self.at, *map(_pathlib_compat, other))
318
- return self._next(self.root.resolve_dir(next))
319
-
320
- __truediv__ = joinpath
321
-
322
- @property
323
- def parent(self):
324
- if not self.at:
325
- return self.filename.parent
326
- parent_at = posixpath.dirname(self.at.rstrip('/'))
327
- if parent_at:
328
- parent_at += '/'
329
- return self._next(parent_at)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Avin1221/darkstorm2150-Protogen_x3.4_Official_Release/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Darkstorm2150-Protogen X3.4 Official Release
3
- emoji: 👀
4
- colorFrom: gray
5
- colorTo: green
6
- sdk: gradio
7
- sdk_version: 3.16.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/AzumaSeren100/XuanShen-Bert-VITS2/text/symbols.py DELETED
@@ -1,51 +0,0 @@
1
- punctuation = ['!', '?', '…', ",", ".", "'", '-']
2
- pu_symbols = punctuation + ["SP", "UNK"]
3
- pad = '_'
4
-
5
- # chinese
6
- zh_symbols = ['E', 'En', 'a', 'ai', 'an', 'ang', 'ao', 'b', 'c', 'ch', 'd', 'e', 'ei', 'en', 'eng', 'er', 'f', 'g', 'h',
7
- 'i', 'i0', 'ia', 'ian', 'iang', 'iao', 'ie', 'in', 'ing', 'iong', 'ir', 'iu', 'j', 'k', 'l', 'm', 'n', 'o',
8
- 'ong',
9
- 'ou', 'p', 'q', 'r', 's', 'sh', 't', 'u', 'ua', 'uai', 'uan', 'uang', 'ui', 'un', 'uo', 'v', 'van', 've', 'vn',
10
- 'w', 'x', 'y', 'z', 'zh',
11
- "AA", "EE", "OO"]
12
- num_zh_tones = 6
13
-
14
- # japanese
15
- ja_symbols = ['I', 'N', 'U', 'a', 'b', 'by', 'ch', 'cl', 'd', 'dy', 'e', 'f', 'g', 'gy', 'h', 'hy', 'i', 'j', 'k', 'ky',
16
- 'm', 'my', 'n', 'ny', 'o', 'p', 'py', 'r', 'ry', 's', 'sh', 't', 'ts', 'u', 'V', 'w', 'y', 'z']
17
- num_ja_tones = 1
18
-
19
- # English
20
- en_symbols = ['aa', 'ae', 'ah', 'ao', 'aw', 'ay', 'b', 'ch', 'd', 'dh', 'eh', 'er', 'ey', 'f', 'g', 'hh', 'ih', 'iy',
21
- 'jh', 'k', 'l', 'm', 'n', 'ng', 'ow', 'oy', 'p', 'r', 's',
22
- 'sh', 't', 'th', 'uh', 'uw', 'V', 'w', 'y', 'z', 'zh']
23
- num_en_tones = 4
24
-
25
- # combine all symbols
26
- normal_symbols = sorted(set(zh_symbols + ja_symbols + en_symbols))
27
- symbols = [pad] + normal_symbols + pu_symbols
28
- sil_phonemes_ids = [symbols.index(i) for i in pu_symbols]
29
-
30
- # combine all tones
31
- num_tones = num_zh_tones + num_ja_tones + num_en_tones
32
-
33
- # language maps
34
- language_id_map = {
35
- 'ZH': 0,
36
- "JA": 1,
37
- "EN": 2
38
- }
39
- num_languages = len(language_id_map.keys())
40
-
41
- language_tone_start_map = {
42
- 'ZH': 0,
43
- "JA": num_zh_tones,
44
- "EN": num_zh_tones + num_ja_tones
45
- }
46
-
47
- if __name__ == '__main__':
48
- a = set(zh_symbols)
49
- b = set(en_symbols)
50
- print(sorted(a&b))
51
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Bart92/RVC_HF/demucs/model.py DELETED
@@ -1,202 +0,0 @@
1
- # Copyright (c) Facebook, Inc. and its 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
-
9
- import julius
10
- from torch import nn
11
-
12
- from .utils import capture_init, center_trim
13
-
14
-
15
- class BLSTM(nn.Module):
16
- def __init__(self, dim, layers=1):
17
- super().__init__()
18
- self.lstm = nn.LSTM(bidirectional=True, num_layers=layers, hidden_size=dim, input_size=dim)
19
- self.linear = nn.Linear(2 * dim, dim)
20
-
21
- def forward(self, x):
22
- x = x.permute(2, 0, 1)
23
- x = self.lstm(x)[0]
24
- x = self.linear(x)
25
- x = x.permute(1, 2, 0)
26
- return x
27
-
28
-
29
- def rescale_conv(conv, reference):
30
- std = conv.weight.std().detach()
31
- scale = (std / reference)**0.5
32
- conv.weight.data /= scale
33
- if conv.bias is not None:
34
- conv.bias.data /= scale
35
-
36
-
37
- def rescale_module(module, reference):
38
- for sub in module.modules():
39
- if isinstance(sub, (nn.Conv1d, nn.ConvTranspose1d)):
40
- rescale_conv(sub, reference)
41
-
42
-
43
- class Demucs(nn.Module):
44
- @capture_init
45
- def __init__(self,
46
- sources,
47
- audio_channels=2,
48
- channels=64,
49
- depth=6,
50
- rewrite=True,
51
- glu=True,
52
- rescale=0.1,
53
- resample=True,
54
- kernel_size=8,
55
- stride=4,
56
- growth=2.,
57
- lstm_layers=2,
58
- context=3,
59
- normalize=False,
60
- samplerate=44100,
61
- segment_length=4 * 10 * 44100):
62
- """
63
- Args:
64
- sources (list[str]): list of source names
65
- audio_channels (int): stereo or mono
66
- channels (int): first convolution channels
67
- depth (int): number of encoder/decoder layers
68
- rewrite (bool): add 1x1 convolution to each encoder layer
69
- and a convolution to each decoder layer.
70
- For the decoder layer, `context` gives the kernel size.
71
- glu (bool): use glu instead of ReLU
72
- resample_input (bool): upsample x2 the input and downsample /2 the output.
73
- rescale (int): rescale initial weights of convolutions
74
- to get their standard deviation closer to `rescale`
75
- kernel_size (int): kernel size for convolutions
76
- stride (int): stride for convolutions
77
- growth (float): multiply (resp divide) number of channels by that
78
- for each layer of the encoder (resp decoder)
79
- lstm_layers (int): number of lstm layers, 0 = no lstm
80
- context (int): kernel size of the convolution in the
81
- decoder before the transposed convolution. If > 1,
82
- will provide some context from neighboring time
83
- steps.
84
- samplerate (int): stored as meta information for easing
85
- future evaluations of the model.
86
- segment_length (int): stored as meta information for easing
87
- future evaluations of the model. Length of the segments on which
88
- the model was trained.
89
- """
90
-
91
- super().__init__()
92
- self.audio_channels = audio_channels
93
- self.sources = sources
94
- self.kernel_size = kernel_size
95
- self.context = context
96
- self.stride = stride
97
- self.depth = depth
98
- self.resample = resample
99
- self.channels = channels
100
- self.normalize = normalize
101
- self.samplerate = samplerate
102
- self.segment_length = segment_length
103
-
104
- self.encoder = nn.ModuleList()
105
- self.decoder = nn.ModuleList()
106
-
107
- if glu:
108
- activation = nn.GLU(dim=1)
109
- ch_scale = 2
110
- else:
111
- activation = nn.ReLU()
112
- ch_scale = 1
113
- in_channels = audio_channels
114
- for index in range(depth):
115
- encode = []
116
- encode += [nn.Conv1d(in_channels, channels, kernel_size, stride), nn.ReLU()]
117
- if rewrite:
118
- encode += [nn.Conv1d(channels, ch_scale * channels, 1), activation]
119
- self.encoder.append(nn.Sequential(*encode))
120
-
121
- decode = []
122
- if index > 0:
123
- out_channels = in_channels
124
- else:
125
- out_channels = len(self.sources) * audio_channels
126
- if rewrite:
127
- decode += [nn.Conv1d(channels, ch_scale * channels, context), activation]
128
- decode += [nn.ConvTranspose1d(channels, out_channels, kernel_size, stride)]
129
- if index > 0:
130
- decode.append(nn.ReLU())
131
- self.decoder.insert(0, nn.Sequential(*decode))
132
- in_channels = channels
133
- channels = int(growth * channels)
134
-
135
- channels = in_channels
136
-
137
- if lstm_layers:
138
- self.lstm = BLSTM(channels, lstm_layers)
139
- else:
140
- self.lstm = None
141
-
142
- if rescale:
143
- rescale_module(self, reference=rescale)
144
-
145
- def valid_length(self, length):
146
- """
147
- Return the nearest valid length to use with the model so that
148
- there is no time steps left over in a convolutions, e.g. for all
149
- layers, size of the input - kernel_size % stride = 0.
150
-
151
- If the mixture has a valid length, the estimated sources
152
- will have exactly the same length when context = 1. If context > 1,
153
- the two signals can be center trimmed to match.
154
-
155
- For training, extracts should have a valid length.For evaluation
156
- on full tracks we recommend passing `pad = True` to :method:`forward`.
157
- """
158
- if self.resample:
159
- length *= 2
160
- for _ in range(self.depth):
161
- length = math.ceil((length - self.kernel_size) / self.stride) + 1
162
- length = max(1, length)
163
- length += self.context - 1
164
- for _ in range(self.depth):
165
- length = (length - 1) * self.stride + self.kernel_size
166
-
167
- if self.resample:
168
- length = math.ceil(length / 2)
169
- return int(length)
170
-
171
- def forward(self, mix):
172
- x = mix
173
-
174
- if self.normalize:
175
- mono = mix.mean(dim=1, keepdim=True)
176
- mean = mono.mean(dim=-1, keepdim=True)
177
- std = mono.std(dim=-1, keepdim=True)
178
- else:
179
- mean = 0
180
- std = 1
181
-
182
- x = (x - mean) / (1e-5 + std)
183
-
184
- if self.resample:
185
- x = julius.resample_frac(x, 1, 2)
186
-
187
- saved = []
188
- for encode in self.encoder:
189
- x = encode(x)
190
- saved.append(x)
191
- if self.lstm:
192
- x = self.lstm(x)
193
- for decode in self.decoder:
194
- skip = center_trim(saved.pop(-1), x)
195
- x = x + skip
196
- x = decode(x)
197
-
198
- if self.resample:
199
- x = julius.resample_frac(x, 2, 1)
200
- x = x * std + mean
201
- x = x.view(x.size(0), len(self.sources), self.audio_channels, x.size(-1))
202
- return x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Arco Iris Seis Mvil Apk Beta.md DELETED
@@ -1,64 +0,0 @@
1
- <br />
2
- <h1>Rainbow Six Mobile: Todo lo que necesitas saber sobre la versión beta</h1>
3
- <p>¿Eres un fan de los juegos de disparos tácticos? ¿Quieres experimentar la emoción de Rainbow Six en tu teléfono? Si es así, entonces estás de suerte. Ubisoft ha lanzado recientemente la versión beta de Rainbow Six Mobile, un juego de disparos en primera persona multijugador competitivo y gratuito diseñado exclusivamente para dispositivos móviles. En este artículo, te contaremos todo lo que necesitas saber sobre este juego, incluyendo cómo descargarlo y jugarlo, por qué deberías jugarlo, y algunos consejos y trucos para dominarlo. ¡Vamos a empezar! </p>
4
- <h2>arco iris seis móvil apk beta</h2><br /><p><b><b>Download Zip</b> &#9734;&#9734;&#9734;&#9734;&#9734; <a href="https://bltlly.com/2v6K6T">https://bltlly.com/2v6K6T</a></b></p><br /><br />
5
- <h2>¿Qué es Rainbow Six Mobile? </h2>
6
- <p>Rainbow Six Mobile es una adaptación móvil de la aclamada franquicia Rainbow Six, que es conocida por su jugabilidad realista y estratégica, su lista épica de operadores, sus mapas icónicos y sus modos de juego de área y bomba seguros. En Rainbow Six Mobile, puedes competir en partidas 5v5 de ritmo rápido como atacante o defensor, enfrentarte a intensos combates a corta distancia mientras tomas decisiones tácticas oportunas, colaborar como equipo para establecer estrategias y aprovechar al máximo los entornos destructibles, y elija entre una amplia selección de operadores altamente capacitados, cada uno con sus propias habilidades y dispositivos únicos. </p>
7
- <h3>Una breve introducción al juego y sus características</h3>
8
-
9
- <h3>Cómo descargar y jugar la versión beta en Android</h3>
10
- <p>La versión beta de Rainbow Six Mobile está disponible actualmente solo para dispositivos Android. Para descargarlo y reproducirlo, debes seguir estos pasos:</p>
11
- <ol>
12
- <li>Abre Google Play en tu teléfono Android. </li>
13
- <li>Buscar Rainbow Six Mobile o simplemente haga clic en este enlace. </li>
14
- <li> Seleccione el botón de registro previo, y pronto recibirá una notificación cuando el juego esté listo para descargar. </li>
15
- <li>Descarga e instala el juego en tu dispositivo. </li>
16
- <li>Inicie el juego e inicie sesión con su cuenta de Ubisoft o cree una si no tiene una. </li>
17
- <li>Elija su región y preferencias de idioma. </li>
18
- <li>Completa las misiones de tutorial para aprender los fundamentos del juego. </li>
19
- <li>Disfruta jugando Rainbow Six Mobile! </li>
20
- </ol>
21
- <h3>¿Cuáles son los requisitos del sistema y los problemas de compatibilidad</h3>
22
- <p>Rainbow Six Mobile es un juego que requiere un dispositivo de alto rendimiento para funcionar sin problemas. Los requisitos mínimos del sistema son:</p>
23
- <p></p>
24
- <ul>
25
- <li>Android 8.0 o superior</li>
26
- <li>4 GB de RAM o más</li>
27
- <li>Al menos 2 GB de espacio de almacenamiento gratuito</li>
28
- <li>Una conexión a Internet estable</li>
29
- </ul>
30
- <p>El juego también soporta algunos controladores externos, como Xbox One S Controller o PS4 DualShock 4 Controller. Sin embargo, algunos dispositivos pueden no ser compatibles con el juego o el controlador. Puede consultar la lista de dispositivos y controladores compatibles en el sitio web oficial o en la página de Google Play. Si encuentras algún problema o error mientras juegas el juego, puedes reportarlo a los desarrolladores a través del sistema de retroalimentación del juego o los canales oficiales de las redes sociales. </p>
31
- <h2>¿Por qué usted debe jugar Rainbow Six móvil</h2>
32
- <p>Rainbow Six Mobile es un juego que ofrece mucha diversión y emoción para los fanáticos de los juegos de disparos tácticos. Estas son algunas de las razones por las que deberías jugar:</p>
33
- <h3>Los beneficios de jugar un juego de disparos tácticos en el móvil</h3>
34
-
35
- <h3>Las características únicas y modos de juego de Rainbow Six Mobile</h3>
36
- <p>Rainbow Six Mobile es un juego que tiene muchas características únicas y modos de juego que lo hacen destacar de otros juegos de disparos móviles. Por ejemplo, el juego tiene un motor de física realista e inmersivo que te permite interactuar con el entorno de varias maneras, como romper paredes, puertas, ventanas o pisos, crear nuevas líneas de visión o puntos de entrada, o usar la cubierta y la ocultación para tu ventaja. El juego también tiene un sistema de armas realista y auténtico que requiere que administres tu munición, retroceso y tiempo de recarga, así como personalizar tu carga con diferentes accesorios y pieles. El juego también tiene diferentes modos de juego que se adaptan a diferentes preferencias y niveles de habilidad, como el modo casual, el modo clasificado, el modo de entrenamiento y el modo de eventos especiales. </p>
37
- <h3>La lista diversa y personalizable de operadores y gadgets</h3>
38
- <p>Rainbow Six Mobile es un juego que tiene una lista diversa y personalizable de operadores y gadgets que le permiten crear su propio estilo de juego y estrategia. El juego cuenta con más de 20 operadores de diferentes países y unidades, cada uno con sus propias habilidades únicas y gadgets. Por ejemplo, puedes elegir a Ash, un atacante que puede usar sus rondas de asalto para destruir paredes o barricadas a distancia, o a Rook, un defensor que puede proporcionar a sus compañeros placas de armadura que aumentan su supervivencia. También puede desbloquear nuevos operadores al ganar créditos o comprarlos con dinero real. También puede personalizar sus operadores con diferentes trajes, tocados, encantos y emotes. </p>
39
- <h2>Consejos y trucos para dominar Rainbow Six móvil</h2>
40
- <p>Rainbow Six Mobile es un juego que requiere habilidad, estrategia y trabajo en equipo para ganar. Estos son algunos consejos y trucos para ayudarte a dominarlo:</p>
41
- <h3>Cómo elegir el mejor operador para tu estilo de juego y composición de equipo</h3>
42
-
43
- <h3>Cómo utilizar el entorno y los gadgets para su ventaja</h3>
44
- <p>Utilizar el entorno y los gadgets a tu favor es otro factor clave para tu éxito en Rainbow Six Mobile. Siempre debe estar al tanto de su entorno y utilizarlos para su beneficio. Por ejemplo, puedes usar objetos destructibles como paredes, pisos o techos para crear nuevas líneas de visión o puntos de entrada, o para exponer o sorprender a tus enemigos. También puedes usar objetos de cubierta como mesas, sillas o gabinetes para protegerte del fuego enemigo o para ocultar tus aparatos. También debe hacer uso de sus aparatos y utilizarlos sabiamente. Por ejemplo, puedes usar drones o cámaras para explorar el área y localizar enemigos u objetivos, o puedes usar granadas o flashbangs para despejar habitaciones o cegar enemigos. También puedes usar trampas o escudos para ralentizar o impedir que los enemigos avancen o entren. </p>
45
- <h3>Cómo comunicarse y coordinar con sus compañeros de equipo</h3>
46
- <p>Comunicarse y coordinar con sus compañeros de equipo es esencial para su éxito en Rainbow Six Mobile. Siempre debes comunicarte con tus compañeros de equipo y compartir información, como ubicaciones enemigas, estado de salud, uso de dispositivos o planes de estrategia. También debe coordinarse con sus compañeros de equipo y trabajar en equipo, como la creación de fuegos cruzados, maniobras de flanco, distracciones o emboscadas. Puedes usar la función de chat de voz en el juego o los comandos de chat rápido para comunicarte y coordinarte con tus compañeros de equipo. También puedes usar el sistema de ping para marcar ubicaciones, enemigos u objetos para que tus compañeros los vean. </p>
47
- <h2>Conclusión</h2>
48
-
49
- <h2>Preguntas frecuentes</h2>
50
- <h4>Aquí están algunas de las preguntas y respuestas más frecuentes sobre Rainbow Six Mobile:</h4>
51
- <ul>
52
- <li><b>Q: ¿Rainbow Six Mobile es gratuito? </b></li>
53
- <li>A: Sí, Rainbow Six Mobile es gratuito. Puedes descargarlo y jugarlo sin pagar nada. Sin embargo, el juego tiene algunas compras opcionales en el juego, como créditos, skins u operadores, que puedes comprar con dinero real si lo deseas. </li>
54
- <li><b>Q: ¿Rainbow Six Mobile está disponible para dispositivos iOS? </b></li>
55
- <li>A: Todavía no. Rainbow Six Mobile está disponible actualmente solo para dispositivos Android. Sin embargo, Ubisoft ha anunciado que está trabajando en llevar el juego a dispositivos iOS pronto. </li>
56
- <li><b>Q: ¿Cómo puedo obtener más créditos en Rainbow Six Mobile? </b></li>
57
- <li>A: Puedes obtener más créditos en Rainbow Six Mobile completando misiones, subiendo de nivel, participando en eventos, viendo anuncios o comprándolos con dinero real. </li>
58
- <li><b>Q: ¿Cómo puedo desbloquear más operadores en Rainbow Six Mobile? </b></li>
59
- <li>A: Puedes desbloquear más operadores en Rainbow Six Mobile al ganar créditos o comprarlos con dinero real. </li>
60
- <li><b>Q: ¿Cómo puedo reportar un error o un tramposo en Rainbow Six Mobile? </b></li>
61
- <li>A: Puedes reportar un error o un tramposo en Rainbow Six Mobile utilizando el sistema de retroalimentación del juego o poniéndote en contacto con los canales oficiales de las redes sociales. </li>
62
- </ul></p> 64aa2da5cf<br />
63
- <br />
64
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Auto Chess War Mod Apk Terbaru.md DELETED
@@ -1,90 +0,0 @@
1
- <br />
2
- <h1>Auto Chess War Mod Apk Terbaru: Un juego de estrategia con un giro</h1>
3
- <p>Si usted está buscando un nuevo y emocionante juego de estrategia para jugar en su dispositivo móvil, es posible que desee echa un vistazo a la guerra de ajedrez auto mod apk terbaru. Este es un juego que combina los elementos de ajedrez, torre de defensa, y la recogida de cartas de una manera única. Tendrás que recoger diferentes héroes de varias clases y razas, colocarlos en un tablero de 8x8, y dejarlos luchar automáticamente contra otros jugadores o oponentes de IA. También tendrás que mejorar a tus héroes, combinarlos para crear otros más fuertes, usar objetos y habilidades para aumentar su rendimiento y derrotar a todos los enemigos para ser el último en pie. </p>
4
- <h2>auto chess war mod apk terbaru</h2><br /><p><b><b>Download Zip</b> &rarr;&rarr;&rarr; <a href="https://bltlly.com/2v6MhG">https://bltlly.com/2v6MhG</a></b></p><br /><br />
5
- <p>La guerra de ajedrez automática se basa en el mod original de Dota Auto Chess que se convirtió en un gran éxito entre los jugadores de Dota 2. Sin embargo, tiene su propio conjunto de héroes y objetos que no están relacionados con la tradición Dota. También tiene un estilo más colorido y caricaturesco que lo hace atractivo para un público más amplio. Si usted es un fan de los juegos de estrategia y los luchadores de automóviles, que sin duda disfrutar de la guerra de ajedrez auto mod apk terbaru. </p>
6
- <h2>Cómo descargar e instalar Auto Chess War Mod Apk Terbaru</h2>
7
- <p>Descargar e instalar auto chess war mod apk terbaru es muy fácil y simple. Solo tienes que seguir estos pasos:</p>
8
- <ol>
9
- <li>Descargar el archivo apk mod de una fuente de confianza. Puede encontrar el enlace al final de este artículo. </li>
10
- <li>Habilitar fuentes desconocidas en la configuración del dispositivo. Esto le permitirá instalar aplicaciones que no son de la tienda de aplicaciones oficial. Para hacer esto, vaya a Configuración > Seguridad > Fuentes desconocidas y conéctelo. </li>
11
- <li>Instalar el archivo apk mod y lanzar el juego. Verá un nuevo icono en la pantalla de inicio o cajón de aplicaciones. Toque en él y disfrutar del juego. </li>
12
- </ol>
13
- <p>Nota: Es posible que tenga que desinstalar la versión original del juego antes de instalar el terbaru apk mod. Además, asegúrese de hacer una copia de seguridad de sus datos antes de hacerlo, ya que puede perder su progreso y logros. </p>
14
-
15
- <p>Auto ajedrez guerra mod apk terbaru tiene muchas características que harán que su experiencia de juego más divertido y satisfactorio. Estos son algunos de ellos:</p>
16
- <ul>
17
- <li>Desbloqueado todos los héroes y objetos. Usted tendrá acceso a todos los héroes y objetos en el juego, independientemente de su nivel o rango. Puedes elegir entre más de 50 héroes y 40 objetos, cada uno con sus propias habilidades y efectos. </li>
18
- <li>Oro y gemas ilimitados. Tendrás recursos ilimitados para comprar, actualizar y combinar tus héroes y objetos. Nunca te quedarás sin oro y gemas, que son las principales monedas del juego. </li>
19
- <li>No se requieren anuncios ni root. No verá ningún anuncio molesto o pop-ups mientras juega el juego. Usted tampoco tendrá que raíz de su dispositivo para utilizar el terbaru apk mod, que es seguro y conveniente. </li>
20
- </ul>
21
- <h2>Cómo jugar Auto Chess War Mod Apk Terbaru</h2>
22
- <p>Jugar guerra de ajedrez auto mod apk terbaru es muy fácil e intuitivo. Aquí están los pasos básicos:</p>
23
- <ol>
24
- <li>Elige a tus héroes de diferentes clases y razas. Hay seis clases (guerrero, mago, asesino, cazador, druida y sacerdote) y seis razas (humano, elfo, orco, no muerto, bestia y demonio) en el juego. Cada clase y raza tiene sus propias ventajas y desventajas, así como sinergias con otras clases y razas. Por ejemplo, tener tres guerreros en tu tablero les dará armadura extra, mientras que tener tres elfos les dará evasión adicional. </li>
25
- <li>Colócalas en el tablero de 8x8 y deja que luchen automáticamente. Tendrás un tiempo limitado para colocar a tus héroes en el tablero antes de que comience cada ronda. Puedes arrastrarlos y soltarlos en cualquier lugar de tu lado del tablero, o intercambiarlos con otros héroes. Una vez que la ronda comienza, tus héroes lucharán automáticamente contra los héroes del enemigo o la IA se arrastra. El ganador de cada ronda está determinado por quién tiene más héroes sobrevivientes o más puntos de salud. </li>
26
-
27
- <li>Usa objetos y habilidades para mejorar el rendimiento de tus héroes. Puedes obtener objetos de derrotar a los monstruos de la IA u otros jugadores. Puedes equipar objetos a tus héroes arrastrándolos y dejándolos caer sobre sus retratos. Cada héroe puede tener hasta tres objetos a la vez. Los objetos pueden aumentar las estadísticas de tus héroes o darles efectos especiales. Por ejemplo, un objeto llamado Máscara de locura puede aumentar la velocidad de ataque de tu héroe pero silenciarlos para que no usen habilidades. También puedes utilizar las habilidades que están disponibles para cada clase o carrera tocando sus iconos en la parte inferior de la pantalla. Las habilidades pueden tener varios efectos como sanar, dañar, impresionar o pulir a tus héroes. </li>
28
- <li>Derrota a todos los enemigos y sé el último en pie. Te enfrentarás a diferentes enemigos o la IA se arrastra en cada ronda hasta que solo quede un jugador. Perderás puntos de salud si pierdes una ronda o si no tienes espacio en tu tablero para nuevos héroes. El juego termina cuando tienes cero puntos de vida o cuando eres el único jugador que queda. </li>
29
- </ol>
30
- <h2>Consejos y trucos para Auto Chess War Mod Apk Terbaru</h2>
31
- <p>Para ayudarle a ganar más juegos en la guerra de ajedrez auto mod apk terbaru, aquí hay algunos consejos y trucos que puede utilizar:</p>
32
- <p></p>
33
- <ul>
34
- <li>Administre su economía sabiamente y ahorre oro para intereses. Ganará oro al ganar o perder rondas, completar misiones o vender héroes. También ganarás intereses en función de cuánto oro tengas al final de cada ronda. Cuanto más oro tengas, más intereses ganarás, hasta un máximo de 5 por ronda. Por lo tanto, es recomendable guardar su oro y gastarlo solo cuando sea necesario. </li>
35
-
36
- <li>Aprende las fortalezas y debilidades de cada héroe y artículo. Usted debe familiarizarse con las habilidades y efectos de cada héroe y objeto en el juego. Esto te ayudará a elegir los mejores para tu estrategia y contrarrestar los movimientos de tus oponentes. Por ejemplo, debes saber que un héroe llamado Lina puede hacer daño masivo con su habilidad final, pero también es muy frágil y vulnerable a los asesinos. También debes saber que un objeto llamado Blade Mail puede reflejar el daño del atacante, pero también reduce la armadura de tu héroe. </li>
37
- <li>Planifique sus transiciones de mediados y finales del juego en función de las estrategias de sus oponentes. No debes seguir con la misma estrategia a lo largo del juego, ya que puede ser ineficaz o anticuado a medida que el juego avanza. Siempre debes explorar los tableros de tus oponentes y ver lo que están construyendo y cómo lo están haciendo. Basado en esa información, usted debe planificar sus transiciones para contrarrestar sus estrategias o explotar sus debilidades. Por ejemplo, si ves que la mayoría de tus oponentes van a por magos, debes hacer la transición a guerreros o sacerdotes para resistir su daño mágico. </li>
38
- <li>Espía a tus oponentes más fuertes y ajusta tu formación en consecuencia. Siempre debes vigilar quién está liderando el juego y quién es la mayor amenaza para ti. Puedes espiar sus tablas tocando sus retratos en la parte superior de la pantalla. Puedes ver a sus héroes, objetos, habilidades y formación. En base a esa información, debe ajustar su formación para que coincida con la de ellos. Por ejemplo, si ves que tienen una línea de frente fuerte de guerreros, debes colocar a tus asesinos detrás de ellos para apuntar a su contraluz blanda. </li>
39
- </ul>
40
- <h2>Revisión de Auto Chess War Mod Apk Terbaru</h2>
41
-
42
- <tabla>
43
- <tr>
44
- <th>Pros</th>
45
- <th>Contras</th>
46
- </tr>
47
- <tr>
48
- <td>- Diversión: El juego es muy agradable y satisfactorio para jugar, especialmente cuando se gana un partido cercano o sacar un gran combo. </td>
49
- <td>- Repetitivo: El juego puede ser aburrido y monótono después de un tiempo, ya que no hay mucha variedad o innovación en el juego o el contenido. </td>
50
- </tr>
51
- <tr>
52
- <td>- Adictivo: El juego es muy atractivo y adictivo, ya que siempre querrás jugar una ronda más o probar una estrategia diferente. </td>
53
- <td>- Basado en la suerte: El juego depende en gran medida de la suerte y la aleatoriedad, ya que no puede obtener los héroes o artículos que desea o necesita de la tienda o cofres. </td>
54
- </tr>
55
- <tr>
56
- <td>- Desafiante: El juego es muy desafiante y estratégico, ya que tendrás que pensar rápido e inteligente para vencer a tus oponentes o enemigos de IA. </td>
57
- <td>- Inestable: El juego puede ser inestable y con errores a veces, ya que puede bloquearse o congelarse durante el juego o la carga. </td>
58
- </tr>
59
- <tr>
60
- <td>- Estratégico: El juego es muy estratégico y diverso, ya que tendrás que elegir entre diferentes clases y razas, utilizar diferentes objetos y habilidades, y adaptarse a diferentes situaciones. </td>
61
- <td>- Desequilibrado: El juego puede ser desequilibrado e injusto a veces, ya que algunos héroes u objetos pueden ser demasiado fuertes o débiles en comparación con otros. </td>
62
- </tr>
63
- <tr>
64
- <td>- Diverso: El juego es muy diverso y colorido, ya que tiene más de 50 héroes y 40 elementos con diferentes habilidades y efectos, así como un estilo caricaturesco que lo hace atractivo para una amplia audiencia. </td>
65
- <td>- Pago a ganar: El juego puede ser de pago a ganar a veces, ya que algunos héroes u objetos pueden estar bloqueados detrás de un muro de pago o requerir dinero real para obtener. </td>
66
- </tr>
67
- <tr>
68
- <td>- Gratis: El juego es gratis para descargar y jugar, lo que hace que sea accesible para cualquier persona que quiera probarlo. </td>
69
- <td>- Ninguno</td>
70
- </tr>
71
- </tabla>
72
- <h2>Conclusión</h2>
73
-
74
- <h3>Preguntas frecuentes</h3>
75
- <p>Aquí hay algunas preguntas frecuentes acerca de la guerra de ajedrez auto mod apk terbaru:</p>
76
- <ul>
77
- <li>Q1: ¿Cuál es la diferencia entre la guerra de ajedrez auto y otros juegos de batalla auto? </li>
78
- <li>A1: La guerra de ajedrez automática se basa en el mod original de Dota Auto Chess, pero con sus propios héroes y objetos. También tiene un estilo más caricaturesco y un ritmo más rápido que otros juegos de combate automático. </li>
79
- <li>Q2: ¿Cómo puedo obtener más oro y gemas en la guerra de ajedrez auto? </li>
80
- <li>A2: Puedes obtener más oro y gemas jugando el juego regularmente, completando misiones y logros, viendo anuncios, o usando el terbaru apk mod. </li>
81
- <li>Q3: ¿Cómo puedo desbloquear todos los héroes y objetos en la guerra de ajedrez automática? </li>
82
- <li>A3: Usted puede desbloquear todos los héroes y artículos mediante la nivelación de su cuenta, abrir cofres, o el uso de la terbaru apk mod. </li>
83
- <li>Q4: ¿Cómo puedo actualizar la guerra de ajedrez auto mod apk terbaru? </li>
84
- <li>A4: Puede actualizar auto ajedrez guerra mod apk terbaru mediante la descarga de la última versión de la misma fuente que lo consiguió de. Asegúrese de hacer una copia de seguridad de sus datos antes de actualizar. </li>
85
- <li>Q5: Es la guerra de ajedrez auto mod apk terbaru seguro de usar? </li>
86
- <li>A5: Auto guerra de ajedrez mod apk terbaru es seguro de usar, siempre y cuando se descarga desde una fuente de confianza. Sin embargo, usted debe tener en cuenta que el uso de mod apk puede violar los términos de servicio del juego y resultar en una prohibición u otras consecuencias. </li>
87
- </ul>
88
- : [Auto Chess War Mod Apk Terbaru Enlace de descarga](https://www.apkhome.us/auto-chess-war-apk-mod-unlimited/)</p> 64aa2da5cf<br />
89
- <br />
90
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Benson/text-generation/Examples/Brotato Zip Download.md DELETED
@@ -1,68 +0,0 @@
1
-
2
- <h1>Descargar Brotato Zip: Cómo instalar y usar mods para tus juegos favoritos</h1>
3
- <p>¿Te encanta jugar juegos en tu PC, pero te gustaría poder personalizarlos a tu gusto? ¿Quieres probar nuevas características, gráficos, personajes o escenarios que no están disponibles en el juego original? Si es así, puede que te interese usar mods. </p>
4
- <p>Los mods son modificaciones o adiciones a un juego que son creadas por fans o desarrolladores. Pueden cambiar cualquier cosa, desde el juego, a las imágenes, al sonido, a la historia. Los mods pueden hacer un juego más divertido, desafiante, inmersivo o realista. </p>
5
- <h2>brotato zip download</h2><br /><p><b><b>DOWNLOAD</b> &middot;&middot;&middot; <a href="https://bltlly.com/2v6M19">https://bltlly.com/2v6M19</a></b></p><br /><br />
6
- <p>Sin embargo, instalar y usar mods puede ser complicado a veces. Necesitas encontrar mods compatibles, descargarlos, instalarlos y activarlos. También tienes que asegurarte de que no entren en conflicto entre ellos o con el juego en sí. Y necesitas mantenerlos actualizados y organizados. </p>
7
- <p>Ahí es donde entra Brotato Zip. Brotato Zip es un cargador mod que facilita la instalación y el uso de mods para varios juegos. También te conecta con una comunidad de modders y jugadores que comparten sus creaciones y comentarios. En este artículo, te mostraremos cómo descargar e instalar Brotato Zip, cómo descargar e instalar mods con él y cómo usarlos en tus juegos. </p>
8
- <h2>¿Qué es Brotato Zip? </h2>
9
- <h3>Un cargador mod para varios juegos</h3>
10
- <p>Brotato Zip es un cargador mod que te permite cargar múltiples mods a la vez para diferentes juegos. Funciona inyectando un . Archivo pck en la carpeta del juego, que luego carga los mods desde una carpeta separada. De esta forma, no tendrás que modificar los archivos del juego ni preocuparte por romper nada. </p>
11
- <p>Brotato Zip soporta muchos juegos populares, como Minecraft, Stardew Valley, Terraria, Among Us y más. Puedes consultar la lista de juegos compatibles en su página de GitHub. También planean agregar más juegos en el futuro. </p>
12
- <h3>Una comunidad de modders y jugadores</h3>
13
-
14
- <p>Brotato Zip tiene como objetivo crear una comunidad amigable y solidaria de modders y jugadores a los que les encanta jugar y mejorarlos. Dan la bienvenida a cualquiera que quiera unirse a ellos y divertirse. </p>
15
- <h2>¿Por qué utilizar Brotato Zip? </h2>
16
- <h3>Para mejorar su experiencia de juego</h3>
17
- <p>La razón principal por la que deberías usar Brotato Zip es porque puede hacer que tu experiencia de juego sea más agradable. Con Brotato Zip, puedes acceder a miles de mods que pueden añadir nuevos contenidos, características, gráficos, sonidos o mecánicas a tus juegos. También puede mezclar y combinar diferentes mods para crear sus propias combinaciones únicas. </p>
18
- <p></p>
19
- <p>Por ejemplo, puedes usar Brotato Zip para añadir nuevos biomas, mobs, elementos o estructuras a Minecraft. También puedes usarlo para cambiar la apariencia de tu personaje, granja o pueblo en Stardew Valley. También puedes usarlo para añadir nuevos roles, mapas o modos a Among Us. También puedes usarlo para mejorar los gráficos, la física o el modo de juego de Terraria. Y estos son solo algunos ejemplos de lo que se puede hacer con Brotato Zip.</p>
20
- <h3>Para apoyar a los creadores de mod</h3>
21
- <p>Otra razón por la que deberías usar Brotato Zip es porque puede ayudarte a apoyar a los creadores de mods. Los creadores de mods son personas que dedican su tiempo y esfuerzo a crear mods de forma gratuita. Lo hacen porque les encantan los juegos y quieren compartir sus creaciones con otros. También escuchan comentarios y actualizan sus mods regularmente. </p>
22
- <p>Usando Brotato Zip, puedes mostrar tu aprecio y gratitud a los creadores del mod. Puedes descargar sus mods, calificarlos, revisarlos y donarlos si quieres. También puede seguirlos en las redes sociales o unirse a sus servidores Discord. También puede darles sugerencias o informar de errores. Al hacer estas cosas, puedes ayudarles a mejorar sus mods y motivarlos a crear más. </p>
23
- <h2>¿Cómo descargar e instalar Brotato Zip? </h2>
24
- <h3>Descargar el archivo PCK de GitHub</h3>
25
-
26
- <p>Para descargar el archivo PCK, vaya a la página de GitHub y haga clic en el botón verde "Código". Luego, haga clic en "Descargar ZIP". Guarde el archivo ZIP en su computadora y extráigalo. Verá una carpeta llamada "Brotato-Zip-main". Dentro de esta carpeta, encontrará el archivo PCK llamado "Brotato.zip". Este es el archivo que necesita. </p>
27
- <h3>Instalar el archivo PCK como cualquier otro mod</h3>
28
- <p>El segundo paso para usar Brotato Zip es instalar el archivo PCK como cualquier otro mod. Esto significa que necesita copiarlo y pegarlo en la carpeta del juego. La carpeta del juego es donde se almacenan los archivos del juego. Normalmente se encuentra en su carpeta Archivos de programa o Steam. </p>
29
- <p>Para instalar el archivo PCK, busque su carpeta de juego y ábrala. Luego, encuentre la carpeta llamada "mods" o "modloader". Si no lo ve, cree uno usted mismo. Luego, copie y pegue el archivo PCK en esta carpeta. ¡Eso es todo! Usted ha instalado correctamente Brotato Zip.</p>
30
- <h2>¿Cómo descargar e instalar mods con Brotato Zip? </h2>
31
- <h3>Crea una carpeta de mods en tu carpeta de juego</h3>
32
- <p>El tercer paso para usar Brotato Zip es crear una carpeta mods en tu carpeta de juego. Aquí es donde almacenarás todos los mods que quieras usar con Brotato Zip. Es importante mantener tus mods organizados y separados de tus archivos de juego. </p>
33
- <p>Para crear una carpeta de mods, vuelva a su carpeta de juego y ábrala. Luego, haga clic derecho en un espacio vacío y seleccione "Nuevo" y luego "Carpeta". Nombra a esta carpeta "mods" o cualquier otra cosa que prefieras. Aquí es donde pondrás todas tus ZIPs mod.</p>
34
- <h3>Descargar mod ZIPs desde el sitio web de Brotato u otras fuentes</h3>
35
- <p>El cuarto paso para usar Brotato Zip es descargar mod ZIPs desde el sitio web de Brotato u otras fuentes. ZIPs Mod son archivos que contienen los datos mod que necesita cargar en su juego. Por lo general son comprimidos y fáciles de descargar. </p>
36
-
37
- <p>También puede descargar ZPI mod de otras fuentes, como Nexus Mods, CurseForge, ModDB u otros sitios web que albergan mods para varios juegos. Solo asegúrate de que son compatibles con Brotato Zip y que son seguros y libres de virus. </p>
38
- <h3>Añadir a la carpeta mods</h3>
39
- <p>El quinto paso para usar Brotato Zip es agregar las ZIPs mod que descargó a la carpeta mods que creó en su carpeta de juegos. Así es como los instalas en tu juego. </p>
40
- <p>Para agregarlos a la carpeta mods, busque los ZIPs mod que descargó y cópielos. Luego, vuelva a su carpeta de juegos y ábrala. Luego, abra la carpeta de mods que creó anteriormente y pegue las ZIPs de mod en ella. ¡Eso es todo! Has instalado correctamente los mods en tu juego. </p>
41
- <h2>¿Cómo usar mods con Brotato Zip? </h2>
42
- <h3>Iniciar el juego con el cargador mod habilitado</h3>
43
- <p>El sexto paso para usar Brotato Zip es lanzar el juego con el cargador mod habilitado. Así es como activas los mods que instalaste en tu juego. </p>
44
- <p>Para iniciar el juego con el cargador mod habilitado, vaya a su carpeta de juego y ábrala. Luego, encuentre el archivo ejecutable que ejecuta el juego. Por lo general se llama algo como "game.exe" o "launcher.exe". Haga clic derecho en él y seleccione "Ejecutar como administrador". Esto iniciará el juego con Brotato Zip corriendo en segundo plano. </p>
45
- <h3>Seleccione los mods que desea utilizar desde el menú</h3>
46
- <p>El séptimo y último paso para utilizar Brotato Zip es seleccionar los mods que desea utilizar en el menú. Así es como personalizas tu juego con los mods que instalaste. </p>
47
- <p>Para seleccionar los mods que desea utilizar, pulse la tecla F10 en el teclado mientras está en el juego. Esto abrirá un menú que muestra todos los mods que tiene en su carpeta de mods. Puede desplazarse por ellos y verificarlos o desmarcarlos como desee. También puede ordenarlos por nombre, fecha, tamaño o calificación. También puede buscar mods específicos escribiendo su nombre o palabra clave. </p>
48
-
49
- <h2>Conclusión</h2>
50
- <p>Brotato Zip es un cargador mod que facilita la instalación y el uso de mods para varios juegos. También te conecta con una comunidad de modders y jugadores que comparten sus creaciones y comentarios. Para usar Brotato Zip, necesitas descargar e instalar el archivo PCK desde su página GitHub, crear una carpeta mods en tu carpeta de juegos, descargar ZIPs mod desde su sitio web u otras fuentes, agregarlos a la carpeta mods, iniciar el juego con el cargador mod habilitado, y seleccione los mods que desea usar en el menú. </p>
51
- <p>Al usar Brotato Zip, puedes mejorar tu experiencia de juego, apoyar a los creadores de mods y divertirte con tus juegos. También puedes descubrir nuevos mods, aprender nuevas habilidades y hacer nuevos amigos. Brotato Zip es una herramienta que puede ayudarte a disfrutar de los juegos más que nunca. </p>
52
- <p>Si quieres saber más sobre Brotato Zip, visita su página web, únete a su servidor Discord o síguelos en Twitter. También puede consultar su canal de YouTube para obtener tutoriales, comentarios y vitrinas de diferentes mods. </p>
53
- <p>Gracias por leer este artículo. Esperamos que le resulte útil e informativo. Si tiene alguna pregunta o comentario, no dude en dejarlos a continuación. Y si le gustó este artículo, por favor compártalo con sus amigos y familiares. </p>
54
- <h3>Preguntas frecuentes</h3>
55
- <ul>
56
- <li><b>¿Brotato Zip es seguro y legal? </b></li>
57
- <p>Sí, Brotato Zip es seguro y legal. No contiene virus ni malware, y no modifica ni daña tus archivos de juego. Tampoco viola los términos de servicio o derechos de autor de los juegos o los creadores de mods. Sin embargo, siempre debes usar Brotato Zip bajo tu propio riesgo y discreción, y hacer copias de seguridad de tus archivos de juego antes de usarlo. </p>
58
- <li><b>Brotato Zip funciona con juegos multijugador? </b></li>
59
-
60
- <li><b>¿Cómo actualizo Brotato Zip y los mods? </b></li>
61
- <p>Para actualizar Brotato Zip, es necesario descargar la última versión del archivo PCK desde su página GitHub y reemplazar el antiguo en su carpeta de juego. Para actualizar los mods, necesita descargar la última versión de los ZPI mod desde su sitio web u otras fuentes y reemplazar los antiguos en su carpeta mods. También puede utilizar el menú Brotato Zip para buscar actualizaciones y descargarlas automáticamente. </p>
62
- <li><b>¿Cómo desinstalo Brotato Zip y los mods? </b></li>
63
- <p>Para desinstalar Brotato Zip, es necesario eliminar el archivo PCK de la carpeta del juego. Para desinstalar los mods, debe eliminar los ZIPs mod de su carpeta mods. También puedes usar el menú Brotato Zip para desactivar o eliminar los mods que ya no quieras usar. </p>
64
- <li><b>¿Dónde puedo obtener ayuda o soporte para Brotato Zip y los mods? </b></li>
65
- <p>Si necesita ayuda o soporte para Brotato Zip y los mods, puede visitar su sitio web, unirse a su servidor Discord o seguirlos en Twitter. También puede consultar su canal de YouTube para obtener tutoriales, revisiones y vitrinas de diferentes mods. También puede ponerse en contacto con ellos por correo electrónico en [email protected]. </p>
66
- </ul></p> 64aa2da5cf<br />
67
- <br />
68
- <br />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/cli/parser.py DELETED
@@ -1,294 +0,0 @@
1
- """Base option parser setup"""
2
-
3
- import logging
4
- import optparse
5
- import shutil
6
- import sys
7
- import textwrap
8
- from contextlib import suppress
9
- from typing import Any, Dict, Generator, List, Tuple
10
-
11
- from pip._internal.cli.status_codes import UNKNOWN_ERROR
12
- from pip._internal.configuration import Configuration, ConfigurationError
13
- from pip._internal.utils.misc import redact_auth_from_url, strtobool
14
-
15
- logger = logging.getLogger(__name__)
16
-
17
-
18
- class PrettyHelpFormatter(optparse.IndentedHelpFormatter):
19
- """A prettier/less verbose help formatter for optparse."""
20
-
21
- def __init__(self, *args: Any, **kwargs: Any) -> None:
22
- # help position must be aligned with __init__.parseopts.description
23
- kwargs["max_help_position"] = 30
24
- kwargs["indent_increment"] = 1
25
- kwargs["width"] = shutil.get_terminal_size()[0] - 2
26
- super().__init__(*args, **kwargs)
27
-
28
- def format_option_strings(self, option: optparse.Option) -> str:
29
- return self._format_option_strings(option)
30
-
31
- def _format_option_strings(
32
- self, option: optparse.Option, mvarfmt: str = " <{}>", optsep: str = ", "
33
- ) -> str:
34
- """
35
- Return a comma-separated list of option strings and metavars.
36
-
37
- :param option: tuple of (short opt, long opt), e.g: ('-f', '--format')
38
- :param mvarfmt: metavar format string
39
- :param optsep: separator
40
- """
41
- opts = []
42
-
43
- if option._short_opts:
44
- opts.append(option._short_opts[0])
45
- if option._long_opts:
46
- opts.append(option._long_opts[0])
47
- if len(opts) > 1:
48
- opts.insert(1, optsep)
49
-
50
- if option.takes_value():
51
- assert option.dest is not None
52
- metavar = option.metavar or option.dest.lower()
53
- opts.append(mvarfmt.format(metavar.lower()))
54
-
55
- return "".join(opts)
56
-
57
- def format_heading(self, heading: str) -> str:
58
- if heading == "Options":
59
- return ""
60
- return heading + ":\n"
61
-
62
- def format_usage(self, usage: str) -> str:
63
- """
64
- Ensure there is only one newline between usage and the first heading
65
- if there is no description.
66
- """
67
- msg = "\nUsage: {}\n".format(self.indent_lines(textwrap.dedent(usage), " "))
68
- return msg
69
-
70
- def format_description(self, description: str) -> str:
71
- # leave full control over description to us
72
- if description:
73
- if hasattr(self.parser, "main"):
74
- label = "Commands"
75
- else:
76
- label = "Description"
77
- # some doc strings have initial newlines, some don't
78
- description = description.lstrip("\n")
79
- # some doc strings have final newlines and spaces, some don't
80
- description = description.rstrip()
81
- # dedent, then reindent
82
- description = self.indent_lines(textwrap.dedent(description), " ")
83
- description = f"{label}:\n{description}\n"
84
- return description
85
- else:
86
- return ""
87
-
88
- def format_epilog(self, epilog: str) -> str:
89
- # leave full control over epilog to us
90
- if epilog:
91
- return epilog
92
- else:
93
- return ""
94
-
95
- def indent_lines(self, text: str, indent: str) -> str:
96
- new_lines = [indent + line for line in text.split("\n")]
97
- return "\n".join(new_lines)
98
-
99
-
100
- class UpdatingDefaultsHelpFormatter(PrettyHelpFormatter):
101
- """Custom help formatter for use in ConfigOptionParser.
102
-
103
- This is updates the defaults before expanding them, allowing
104
- them to show up correctly in the help listing.
105
-
106
- Also redact auth from url type options
107
- """
108
-
109
- def expand_default(self, option: optparse.Option) -> str:
110
- default_values = None
111
- if self.parser is not None:
112
- assert isinstance(self.parser, ConfigOptionParser)
113
- self.parser._update_defaults(self.parser.defaults)
114
- assert option.dest is not None
115
- default_values = self.parser.defaults.get(option.dest)
116
- help_text = super().expand_default(option)
117
-
118
- if default_values and option.metavar == "URL":
119
- if isinstance(default_values, str):
120
- default_values = [default_values]
121
-
122
- # If its not a list, we should abort and just return the help text
123
- if not isinstance(default_values, list):
124
- default_values = []
125
-
126
- for val in default_values:
127
- help_text = help_text.replace(val, redact_auth_from_url(val))
128
-
129
- return help_text
130
-
131
-
132
- class CustomOptionParser(optparse.OptionParser):
133
- def insert_option_group(
134
- self, idx: int, *args: Any, **kwargs: Any
135
- ) -> optparse.OptionGroup:
136
- """Insert an OptionGroup at a given position."""
137
- group = self.add_option_group(*args, **kwargs)
138
-
139
- self.option_groups.pop()
140
- self.option_groups.insert(idx, group)
141
-
142
- return group
143
-
144
- @property
145
- def option_list_all(self) -> List[optparse.Option]:
146
- """Get a list of all options, including those in option groups."""
147
- res = self.option_list[:]
148
- for i in self.option_groups:
149
- res.extend(i.option_list)
150
-
151
- return res
152
-
153
-
154
- class ConfigOptionParser(CustomOptionParser):
155
- """Custom option parser which updates its defaults by checking the
156
- configuration files and environmental variables"""
157
-
158
- def __init__(
159
- self,
160
- *args: Any,
161
- name: str,
162
- isolated: bool = False,
163
- **kwargs: Any,
164
- ) -> None:
165
- self.name = name
166
- self.config = Configuration(isolated)
167
-
168
- assert self.name
169
- super().__init__(*args, **kwargs)
170
-
171
- def check_default(self, option: optparse.Option, key: str, val: Any) -> Any:
172
- try:
173
- return option.check_value(key, val)
174
- except optparse.OptionValueError as exc:
175
- print(f"An error occurred during configuration: {exc}")
176
- sys.exit(3)
177
-
178
- def _get_ordered_configuration_items(
179
- self,
180
- ) -> Generator[Tuple[str, Any], None, None]:
181
- # Configuration gives keys in an unordered manner. Order them.
182
- override_order = ["global", self.name, ":env:"]
183
-
184
- # Pool the options into different groups
185
- section_items: Dict[str, List[Tuple[str, Any]]] = {
186
- name: [] for name in override_order
187
- }
188
- for section_key, val in self.config.items():
189
- # ignore empty values
190
- if not val:
191
- logger.debug(
192
- "Ignoring configuration key '%s' as it's value is empty.",
193
- section_key,
194
- )
195
- continue
196
-
197
- section, key = section_key.split(".", 1)
198
- if section in override_order:
199
- section_items[section].append((key, val))
200
-
201
- # Yield each group in their override order
202
- for section in override_order:
203
- for key, val in section_items[section]:
204
- yield key, val
205
-
206
- def _update_defaults(self, defaults: Dict[str, Any]) -> Dict[str, Any]:
207
- """Updates the given defaults with values from the config files and
208
- the environ. Does a little special handling for certain types of
209
- options (lists)."""
210
-
211
- # Accumulate complex default state.
212
- self.values = optparse.Values(self.defaults)
213
- late_eval = set()
214
- # Then set the options with those values
215
- for key, val in self._get_ordered_configuration_items():
216
- # '--' because configuration supports only long names
217
- option = self.get_option("--" + key)
218
-
219
- # Ignore options not present in this parser. E.g. non-globals put
220
- # in [global] by users that want them to apply to all applicable
221
- # commands.
222
- if option is None:
223
- continue
224
-
225
- assert option.dest is not None
226
-
227
- if option.action in ("store_true", "store_false"):
228
- try:
229
- val = strtobool(val)
230
- except ValueError:
231
- self.error(
232
- "{} is not a valid value for {} option, " # noqa
233
- "please specify a boolean value like yes/no, "
234
- "true/false or 1/0 instead.".format(val, key)
235
- )
236
- elif option.action == "count":
237
- with suppress(ValueError):
238
- val = strtobool(val)
239
- with suppress(ValueError):
240
- val = int(val)
241
- if not isinstance(val, int) or val < 0:
242
- self.error(
243
- "{} is not a valid value for {} option, " # noqa
244
- "please instead specify either a non-negative integer "
245
- "or a boolean value like yes/no or false/true "
246
- "which is equivalent to 1/0.".format(val, key)
247
- )
248
- elif option.action == "append":
249
- val = val.split()
250
- val = [self.check_default(option, key, v) for v in val]
251
- elif option.action == "callback":
252
- assert option.callback is not None
253
- late_eval.add(option.dest)
254
- opt_str = option.get_opt_string()
255
- val = option.convert_value(opt_str, val)
256
- # From take_action
257
- args = option.callback_args or ()
258
- kwargs = option.callback_kwargs or {}
259
- option.callback(option, opt_str, val, self, *args, **kwargs)
260
- else:
261
- val = self.check_default(option, key, val)
262
-
263
- defaults[option.dest] = val
264
-
265
- for key in late_eval:
266
- defaults[key] = getattr(self.values, key)
267
- self.values = None
268
- return defaults
269
-
270
- def get_default_values(self) -> optparse.Values:
271
- """Overriding to make updating the defaults after instantiation of
272
- the option parser possible, _update_defaults() does the dirty work."""
273
- if not self.process_default_values:
274
- # Old, pre-Optik 1.5 behaviour.
275
- return optparse.Values(self.defaults)
276
-
277
- # Load the configuration, or error out in case of an error
278
- try:
279
- self.config.load()
280
- except ConfigurationError as err:
281
- self.exit(UNKNOWN_ERROR, str(err))
282
-
283
- defaults = self._update_defaults(self.defaults.copy()) # ours
284
- for option in self._get_all_options():
285
- assert option.dest is not None
286
- default = defaults.get(option.dest)
287
- if isinstance(default, str):
288
- opt_str = option.get_opt_string()
289
- defaults[option.dest] = option.check_value(opt_str, default)
290
- return optparse.Values(defaults)
291
-
292
- def error(self, msg: str) -> None:
293
- self.print_usage(sys.stderr)
294
- self.exit(UNKNOWN_ERROR, f"{msg}\n")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/webencodings/tests.py DELETED
@@ -1,153 +0,0 @@
1
- # coding: utf-8
2
- """
3
-
4
- webencodings.tests
5
- ~~~~~~~~~~~~~~~~~~
6
-
7
- A basic test suite for Encoding.
8
-
9
- :copyright: Copyright 2012 by Simon Sapin
10
- :license: BSD, see LICENSE for details.
11
-
12
- """
13
-
14
- from __future__ import unicode_literals
15
-
16
- from . import (lookup, LABELS, decode, encode, iter_decode, iter_encode,
17
- IncrementalDecoder, IncrementalEncoder, UTF8)
18
-
19
-
20
- def assert_raises(exception, function, *args, **kwargs):
21
- try:
22
- function(*args, **kwargs)
23
- except exception:
24
- return
25
- else: # pragma: no cover
26
- raise AssertionError('Did not raise %s.' % exception)
27
-
28
-
29
- def test_labels():
30
- assert lookup('utf-8').name == 'utf-8'
31
- assert lookup('Utf-8').name == 'utf-8'
32
- assert lookup('UTF-8').name == 'utf-8'
33
- assert lookup('utf8').name == 'utf-8'
34
- assert lookup('utf8').name == 'utf-8'
35
- assert lookup('utf8 ').name == 'utf-8'
36
- assert lookup(' \r\nutf8\t').name == 'utf-8'
37
- assert lookup('u8') is None # Python label.
38
- assert lookup('utf-8 ') is None # Non-ASCII white space.
39
-
40
- assert lookup('US-ASCII').name == 'windows-1252'
41
- assert lookup('iso-8859-1').name == 'windows-1252'
42
- assert lookup('latin1').name == 'windows-1252'
43
- assert lookup('LATIN1').name == 'windows-1252'
44
- assert lookup('latin-1') is None
45
- assert lookup('LATİN1') is None # ASCII-only case insensitivity.
46
-
47
-
48
- def test_all_labels():
49
- for label in LABELS:
50
- assert decode(b'', label) == ('', lookup(label))
51
- assert encode('', label) == b''
52
- for repeat in [0, 1, 12]:
53
- output, _ = iter_decode([b''] * repeat, label)
54
- assert list(output) == []
55
- assert list(iter_encode([''] * repeat, label)) == []
56
- decoder = IncrementalDecoder(label)
57
- assert decoder.decode(b'') == ''
58
- assert decoder.decode(b'', final=True) == ''
59
- encoder = IncrementalEncoder(label)
60
- assert encoder.encode('') == b''
61
- assert encoder.encode('', final=True) == b''
62
- # All encoding names are valid labels too:
63
- for name in set(LABELS.values()):
64
- assert lookup(name).name == name
65
-
66
-
67
- def test_invalid_label():
68
- assert_raises(LookupError, decode, b'\xEF\xBB\xBF\xc3\xa9', 'invalid')
69
- assert_raises(LookupError, encode, 'é', 'invalid')
70
- assert_raises(LookupError, iter_decode, [], 'invalid')
71
- assert_raises(LookupError, iter_encode, [], 'invalid')
72
- assert_raises(LookupError, IncrementalDecoder, 'invalid')
73
- assert_raises(LookupError, IncrementalEncoder, 'invalid')
74
-
75
-
76
- def test_decode():
77
- assert decode(b'\x80', 'latin1') == ('€', lookup('latin1'))
78
- assert decode(b'\x80', lookup('latin1')) == ('€', lookup('latin1'))
79
- assert decode(b'\xc3\xa9', 'utf8') == ('é', lookup('utf8'))
80
- assert decode(b'\xc3\xa9', UTF8) == ('é', lookup('utf8'))
81
- assert decode(b'\xc3\xa9', 'ascii') == ('é', lookup('ascii'))
82
- assert decode(b'\xEF\xBB\xBF\xc3\xa9', 'ascii') == ('é', lookup('utf8')) # UTF-8 with BOM
83
-
84
- assert decode(b'\xFE\xFF\x00\xe9', 'ascii') == ('é', lookup('utf-16be')) # UTF-16-BE with BOM
85
- assert decode(b'\xFF\xFE\xe9\x00', 'ascii') == ('é', lookup('utf-16le')) # UTF-16-LE with BOM
86
- assert decode(b'\xFE\xFF\xe9\x00', 'ascii') == ('\ue900', lookup('utf-16be'))
87
- assert decode(b'\xFF\xFE\x00\xe9', 'ascii') == ('\ue900', lookup('utf-16le'))
88
-
89
- assert decode(b'\x00\xe9', 'UTF-16BE') == ('é', lookup('utf-16be'))
90
- assert decode(b'\xe9\x00', 'UTF-16LE') == ('é', lookup('utf-16le'))
91
- assert decode(b'\xe9\x00', 'UTF-16') == ('é', lookup('utf-16le'))
92
-
93
- assert decode(b'\xe9\x00', 'UTF-16BE') == ('\ue900', lookup('utf-16be'))
94
- assert decode(b'\x00\xe9', 'UTF-16LE') == ('\ue900', lookup('utf-16le'))
95
- assert decode(b'\x00\xe9', 'UTF-16') == ('\ue900', lookup('utf-16le'))
96
-
97
-
98
- def test_encode():
99
- assert encode('é', 'latin1') == b'\xe9'
100
- assert encode('é', 'utf8') == b'\xc3\xa9'
101
- assert encode('é', 'utf8') == b'\xc3\xa9'
102
- assert encode('é', 'utf-16') == b'\xe9\x00'
103
- assert encode('é', 'utf-16le') == b'\xe9\x00'
104
- assert encode('é', 'utf-16be') == b'\x00\xe9'
105
-
106
-
107
- def test_iter_decode():
108
- def iter_decode_to_string(input, fallback_encoding):
109
- output, _encoding = iter_decode(input, fallback_encoding)
110
- return ''.join(output)
111
- assert iter_decode_to_string([], 'latin1') == ''
112
- assert iter_decode_to_string([b''], 'latin1') == ''
113
- assert iter_decode_to_string([b'\xe9'], 'latin1') == 'é'
114
- assert iter_decode_to_string([b'hello'], 'latin1') == 'hello'
115
- assert iter_decode_to_string([b'he', b'llo'], 'latin1') == 'hello'
116
- assert iter_decode_to_string([b'hell', b'o'], 'latin1') == 'hello'
117
- assert iter_decode_to_string([b'\xc3\xa9'], 'latin1') == 'é'
118
- assert iter_decode_to_string([b'\xEF\xBB\xBF\xc3\xa9'], 'latin1') == 'é'
119
- assert iter_decode_to_string([
120
- b'\xEF\xBB\xBF', b'\xc3', b'\xa9'], 'latin1') == 'é'
121
- assert iter_decode_to_string([
122
- b'\xEF\xBB\xBF', b'a', b'\xc3'], 'latin1') == 'a\uFFFD'
123
- assert iter_decode_to_string([
124
- b'', b'\xEF', b'', b'', b'\xBB\xBF\xc3', b'\xa9'], 'latin1') == 'é'
125
- assert iter_decode_to_string([b'\xEF\xBB\xBF'], 'latin1') == ''
126
- assert iter_decode_to_string([b'\xEF\xBB'], 'latin1') == 'ï»'
127
- assert iter_decode_to_string([b'\xFE\xFF\x00\xe9'], 'latin1') == 'é'
128
- assert iter_decode_to_string([b'\xFF\xFE\xe9\x00'], 'latin1') == 'é'
129
- assert iter_decode_to_string([
130
- b'', b'\xFF', b'', b'', b'\xFE\xe9', b'\x00'], 'latin1') == 'é'
131
- assert iter_decode_to_string([
132
- b'', b'h\xe9', b'llo'], 'x-user-defined') == 'h\uF7E9llo'
133
-
134
-
135
- def test_iter_encode():
136
- assert b''.join(iter_encode([], 'latin1')) == b''
137
- assert b''.join(iter_encode([''], 'latin1')) == b''
138
- assert b''.join(iter_encode(['é'], 'latin1')) == b'\xe9'
139
- assert b''.join(iter_encode(['', 'é', '', ''], 'latin1')) == b'\xe9'
140
- assert b''.join(iter_encode(['', 'é', '', ''], 'utf-16')) == b'\xe9\x00'
141
- assert b''.join(iter_encode(['', 'é', '', ''], 'utf-16le')) == b'\xe9\x00'
142
- assert b''.join(iter_encode(['', 'é', '', ''], 'utf-16be')) == b'\x00\xe9'
143
- assert b''.join(iter_encode([
144
- '', 'h\uF7E9', '', 'llo'], 'x-user-defined')) == b'h\xe9llo'
145
-
146
-
147
- def test_x_user_defined():
148
- encoded = b'2,\x0c\x0b\x1aO\xd9#\xcb\x0f\xc9\xbbt\xcf\xa8\xca'
149
- decoded = '2,\x0c\x0b\x1aO\uf7d9#\uf7cb\x0f\uf7c9\uf7bbt\uf7cf\uf7a8\uf7ca'
150
- encoded = b'aa'
151
- decoded = 'aa'
152
- assert decode(encoded, 'x-user-defined') == (decoded, lookup('x-user-defined'))
153
- assert encode(decoded, 'x-user-defined') == encoded
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/BramVanroy/llama-2-13b-chat-dutch-space/model.py DELETED
@@ -1,78 +0,0 @@
1
- from threading import Thread
2
- from typing import Iterator
3
-
4
- import torch
5
- from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
6
-
7
- USE_QUANTIZATION = True
8
- if USE_QUANTIZATION:
9
- model_id = "TheBloke/Llama-2-13B-Chat-Dutch-GPTQ"
10
- else:
11
- model_id = "BramVanroy/Llama-2-13b-chat-dutch"
12
-
13
- device = "cuda" if torch.cuda.is_available() else "cpu"
14
- config = AutoConfig.from_pretrained(model_id)
15
- config.pretraining_tp = 1
16
-
17
- model = AutoModelForCausalLM.from_pretrained(model_id, config=config, torch_dtype=torch.float16, device_map="auto")
18
-
19
- # Torch.compile not supported on Windows
20
- try:
21
- model = torch.compile(model)
22
- except Exception:
23
- pass
24
-
25
- tokenizer = AutoTokenizer.from_pretrained(model_id)
26
-
27
-
28
- def get_prompt(message: str, chat_history: list[tuple[str, str]], system_prompt: str) -> str:
29
- texts = [f"<s>[INST] <<SYS>>\n{system_prompt}\n<</SYS>>\n\n"]
30
- # The first user input is _not_ stripped
31
- do_strip = False
32
- for user_input, response in chat_history:
33
- user_input = user_input.strip() if do_strip else user_input
34
- do_strip = True
35
- texts.append(f"{user_input} [/INST] {response.strip()} </s><s>[INST] ")
36
- message = message.strip() if do_strip else message
37
- texts.append(f"{message} [/INST]")
38
- return "".join(texts)
39
-
40
-
41
- def get_input_token_length(message: str, chat_history: list[tuple[str, str]], system_prompt: str) -> int:
42
- prompt = get_prompt(message, chat_history, system_prompt)
43
- input_ids = tokenizer([prompt], return_tensors="np", add_special_tokens=False)["input_ids"]
44
- return input_ids.shape[-1]
45
-
46
-
47
- def run(
48
- message: str,
49
- chat_history: list[tuple[str, str]],
50
- system_prompt: str,
51
- max_new_tokens: int = 1024,
52
- temperature: float = 0.8,
53
- top_p: float = 0.95,
54
- top_k: int = 50,
55
- no_repeat_ngram_size: int = 3,
56
- ) -> Iterator[str]:
57
- prompt = get_prompt(message, chat_history, system_prompt)
58
- inputs = tokenizer([prompt], return_tensors="pt", add_special_tokens=False).to(device)
59
-
60
- streamer = TextIteratorStreamer(tokenizer, timeout=10.0, skip_prompt=True, skip_special_tokens=True)
61
- generate_kwargs = dict(
62
- inputs,
63
- streamer=streamer,
64
- max_new_tokens=max_new_tokens,
65
- do_sample=True,
66
- top_p=top_p,
67
- top_k=top_k,
68
- temperature=temperature,
69
- no_repeat_ngram_size=no_repeat_ngram_size,
70
- num_beams=1,
71
- )
72
- t = Thread(target=model.generate, kwargs=generate_kwargs)
73
- t.start()
74
-
75
- outputs = []
76
- for text in streamer:
77
- outputs.append(text)
78
- yield "".join(outputs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/BraydenMoore/a-random-unsecured-camera/templates/index.html DELETED
@@ -1,483 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <head>
5
-
6
- <meta property="og:title" content="a random unsecured camera" />
7
- <meta property="og:image" content="{{ url_for('static', filename='searching.png') }}" />
8
- <meta property="og:url" content="https://unsecuredcamera.com" />
9
-
10
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
11
- <link rel="preload" href="{{ url_for('static', filename='eye.gif') }}" as="image">
12
- <link rel="icon" type="image/png" href="https://i.ibb.co/gvKPXJD/eye.gif">
13
- <title>{{ page_title|safe }}</title>
14
- <style>
15
- body {
16
- justify-content: center;
17
- background-color: black;
18
- display: flex;
19
- align-items:center;
20
- height: 100vh;
21
- margin: auto;
22
- }
23
- /* Webkit browsers like Chrome, Safari */
24
- ::-webkit-scrollbar {
25
- width: 10px;
26
- border-radius: 5px;
27
- }
28
-
29
- ::-webkit-scrollbar-thumb {
30
- background: black;
31
- border-radius: 5px;
32
- }
33
-
34
- ::-webkit-scrollbar-thumb:hover {
35
- background: black;
36
- }
37
-
38
- /* Firefox */
39
- * {
40
- scrollbar-width: thin;
41
- scrollbar-color: black yellow;
42
- }
43
- h3 {
44
- margin-bottom: 0px;
45
- margin-top: 0px !important;
46
- border-bottom: 2px solid yellow;
47
- color:rgb(53, 53, 53);
48
- font-family: 'Helvetica'; font-weight: 50;
49
- }
50
- .pulse {
51
- width: 40px;
52
- height: 40px;
53
- border-radius: 50%;
54
- position: absolute;
55
- background-color: yellow;
56
- opacity: 0.5;
57
- animation: pulse-animation 5s infinite;
58
- margin-left: -20px;
59
- margin-top: -20px;
60
- }
61
- .dot {
62
- border-style: solid;
63
- border-width: 2px;
64
- border-color: black;
65
- width: 5px;
66
- height: 5px;
67
- border-radius: 50%;
68
- position: absolute;
69
- background-color: yellow;
70
- margin-left: -4.5px;
71
- margin-top: -4.5px;
72
- }
73
- @keyframes pulse-animation {
74
- 0% { transform: scale(0.1); opacity: 0.4; }
75
- 100% { transform: scale(3); opacity: 0; }
76
- }
77
- .flex-container {
78
- display: flex;
79
- justify-content: left;
80
- align-items: top;
81
- }
82
- .outer-container {
83
- display: inline-block;
84
- justify-content: left;
85
- max-width: 70vw;
86
- }
87
- #feed-div {
88
- display: flex;
89
- justify-content: right;
90
- width: 90%;
91
- height: 90%;
92
- position: relative;
93
- margin-right: 20px;
94
- }
95
- h1 {
96
- margin: 0px;
97
- margin-top: 20px;
98
- }
99
- .feed {
100
- transition: opacity 0.3s ease;
101
- width: 100%;
102
- height: 100%;
103
- max-height: 80vh;
104
- border-radius: 5px;
105
- }
106
- .map-div {
107
- position: relative;
108
- width: 280px;
109
- height: 190px;
110
- margin-top: 3%;
111
- margin-bottom: 3%;
112
- box-sizing: border-box;
113
- }
114
- .info {
115
- cursor: default;
116
- display: flex;
117
- flex-direction: column;
118
- align-items: flex-start;
119
- width: 300px;
120
- transition 0.3s ease;
121
- }
122
- #info {
123
- transition 0.5s ease;
124
- }
125
- #info-text {
126
- margin-top: 20px;
127
- margin-bottom: 20px;
128
- }
129
- a:hover {
130
- background-color: yellow;
131
- color: black;
132
- transition: 0.5s ease;
133
- }
134
- a {
135
- background-color: transparent;
136
- border-radius: 5px;
137
- text-decoration: none;
138
- color:rgb(53, 53, 53);
139
- transition: 0.5s ease;
140
- }
141
- .hoverButton {
142
- color: rgb(53,53,53);
143
- }
144
- .tag {
145
- font-family: 'Helvetica';
146
- font-weight: 50;
147
- margin: auto;
148
- color:rgb(53,53,53);
149
- }
150
-
151
- #share {
152
- margin: auto;
153
- margin-left: 10px;
154
- color: yellow;
155
- transition: 0.3s ease;
156
- }
157
- #share:hover {
158
- opacity: 0.5;
159
- }
160
- #show-more {
161
- cursor: pointer;
162
- }
163
- #additional-info {
164
- display: block;
165
- height: 0px;
166
- overflow: hidden;
167
- transition: height 0.3s ease;
168
- }
169
- #additional-info.expanded {
170
- height: auto;
171
- }
172
-
173
-
174
- @media only screen and (orientation: portrait) {
175
- .body {
176
- height: 85vh;
177
- }
178
- h1 {
179
- margin-top: 20px !important;
180
- }
181
- .flex-container {
182
- flex-direction: column;
183
- align-items: left;
184
- }
185
-
186
- .map-div {
187
- width: 100%;
188
- height: 100%;
189
- }
190
- .outer-container {
191
- max-width: 85vw;
192
- }
193
- #feed-div {
194
- justify-content: left;
195
- width: 100%;
196
- max-height: 45%;
197
- margin-right: 0;
198
- }
199
- .feed {
200
- height: 100%;
201
- width: 100%;
202
- max-height: 100%;
203
- }
204
- }
205
- </style>
206
- </head>
207
-
208
- <body style="background-color: black;">
209
- <div class="outer-container">
210
- <div class="flex-container">
211
-
212
- <div id="feed-div">
213
- <img id="feed" class="feed" src="static/eye.gif" />
214
- </div>
215
-
216
-
217
- <div class="info" id="info">
218
- <h1 id="country" style="color:rgb(53, 53, 53); margin-top: 10px; font-family: 'Helvetica'; font-weight: 50; margin-bottom: 10px;"> searching...</h1>
219
- <a href="{{ ip_link }}" target="_blank"> <h3 style="border-bottom: 2px solid yellow;" id="location-name">{{ page_title|safe }}</h3></a>
220
-
221
- <div style="display: flex; margin-top: 22px; margin-bottom: 0%;">
222
-
223
- <a href="?new=true" style="margin-right: 10px; display: inline-block;">
224
- <button class="hoverButton" style="border-radius: 5px; border: 2px solid yellow; background-color: transparent; padding: 10px;">
225
- another
226
- </button>
227
- </a>
228
- <!--<a class="abortButton" href="?new=false&id={{ id }}" id="refreshSameFeedButton" style="display: inline-block;">-->
229
- <a class="abortButton" href="?new=false&id={{ id }}" id="refreshSameFeedButton" style="display: inline-block;">
230
- <button class="hoverButton" style="border-radius: 5px; border: 2px solid rgb(53, 53, 53); background-color: transparent; padding: 10px;">
231
- refresh
232
- </button>
233
- </a>
234
-
235
- <i id="share" class="fa-solid fa-link" data-id="{{ id }}"></i>
236
- <p id="copied" class="tag" style="visibility: hidden;">copied</p>
237
- </div>
238
-
239
- <p id="info-text" style="color:rgb(53, 53, 53); font-family: 'Helvetica'; font-weight: 50;">
240
-
241
- time: <span id="time"></span><br>
242
-
243
- <span id="additional-info">
244
- owner: {{ owner }}<br>
245
- ip: {{ ip }}<br>
246
- lat, lon: {{ loc }}
247
- </span>
248
-
249
- <span id="show-more">more <i style="margin-bottom:20px; color:rgb(53, 53, 53);" id="more-button" class="fa-solid fa-caret-down"></i></span>
250
-
251
- <span class="tag"><br>a brayden moore website<br></span>
252
- thanks for visiting<br>
253
- <a href="https://huggingface.co/spaces/BraydenMoore/a-random-unsecured-camera/tree/main" target="_blank">see the code</a>
254
-
255
- </p>
256
-
257
-
258
- <!--
259
- <div class="map-div">
260
- <img id="map" src="{{ url_for('static', filename='map_populated.png') }}" style="width: 100%; height: 100%;" />
261
- <div class="dot" style="left: {{ X }}%; top: {{ Y }}%;"></div>
262
- <div class="pulse" style="left: {{ X }}%; top: {{ Y }}%;"></div>
263
- </div>
264
- -->
265
- </div>
266
-
267
- </div>
268
- </div>
269
-
270
-
271
- <script>
272
-
273
- // Handle feed load and refresh
274
- let loadingGif = "{{ url_for('static', filename='eye.gif') }}";
275
- let currentFeed;
276
- let firstLoad = true;
277
- document.addEventListener("DOMContentLoaded", function() {
278
- const feed = document.getElementById("feed");
279
- feed.style.width = "80px";
280
- feed.style.height = "50px";
281
- feed.src = loadingGif;
282
- feed.style.opacity = "0.2";
283
- const infoDiv = document.getElementById("info");
284
- const infoText = document.getElementById("info-text");
285
- infoText.style.opacity = "0";
286
-
287
- const countryElement = document.getElementById("country");
288
-
289
- const locationName = document.getElementById('location-name');
290
- locationName.textContent = "{{ page_title|safe }}";
291
-
292
- const newUrl = "{{ url|safe }}";
293
-
294
- let contentTypeChecked = false;
295
- let isJpeg = false;
296
- function refreshImage() {
297
- if (!isJpeg && !contentTypeChecked) {
298
- let xhr = new XMLHttpRequest();
299
- xhr.open('HEAD', newUrl, true);
300
- xhr.onreadystatechange = function() {
301
- if (xhr.readyState === 4 && xhr.status === 200) {
302
- if (xhr.getResponseHeader('Content-Type') === 'image/jpeg') {
303
- img.src = newUrl + "?r=" + new Date().getTime();
304
- if (firstLoad){
305
- countryElement.textContent = "connecting...";
306
- }
307
- isJpeg = true;
308
- contentTypeChecked = true;
309
- }
310
- }
311
- };
312
- xhr.send();
313
- } else if (isJpeg && contentTypeChecked) {
314
- img.src = newUrl + "?r=" + new Date().getTime();
315
- }
316
- }
317
-
318
- const img = new Image();
319
- img.onload = function() {
320
- if (firstLoad) {
321
- infoDiv.style.opacity = "0";
322
- }
323
- firstLoad = false;
324
- old = newUrl;
325
- setTimeout(() => {
326
- feed.src = this.src;
327
- locationName.textContent = "{{ name|safe }}";
328
- feed.style.width = "100%";
329
- feed.style.height = "70%";
330
- feed.style.opacity = "1";
331
- infoDiv.style.opacity = "1";
332
- }, 100);
333
- const infoText = document.getElementById("info-text");
334
- infoText.style.opacity = "1";
335
-
336
- setTimeout(refreshImage, 500);
337
- country.textContent = "{{ country }}"
338
- };
339
-
340
- img.onerror = function(event) {
341
- feed.style.width = "80px";
342
- feed.style.height = "50px";
343
- feed.src = loadingGif;
344
- feed.style.opacity = "0.2";
345
- infoText.style.opacity = "0";
346
- locationName.textContent = "{{ page_title|safe }}";
347
- console.log("Image loading failed:", event);
348
-
349
- const urlParams = new URLSearchParams(window.location.search);
350
- if (urlParams.get('new') === 'false') {
351
- countryElement.textContent = "couldn't connect.";
352
- }
353
- else {
354
- window.location.href = "?new=true";
355
- }
356
- };
357
-
358
- img.src = newUrl;
359
- });
360
-
361
-
362
- // Time count
363
- document.addEventListener("DOMContentLoaded", function() {
364
- const timezone = "{{ timezone }}";
365
- setInterval(() => {
366
- const now = new Date();
367
- const options = {
368
- timeZone: timezone,
369
- hour: '2-digit',
370
- minute: '2-digit',
371
- second: '2-digit',
372
- hour12: true
373
- };
374
- const timeString = now.toLocaleTimeString('en-US', options);
375
- document.getElementById("time").textContent = timeString;
376
- }, 200);
377
- });
378
-
379
- // Copy link
380
- document.addEventListener("DOMContentLoaded", function() {
381
- const shareIcon = document.getElementById("share");
382
- const copiedText = document.getElementById("copied");
383
-
384
- shareIcon.addEventListener("click", function() {
385
- const id = this.getAttribute("data-id");
386
- const urlToCopy = `${window.location.origin}/?new=false&id=${id}`;
387
-
388
- navigator.clipboard.writeText(urlToCopy).then(() => {
389
- console.log("URL copied to clipboard");
390
- shareIcon.className = "fa-solid fa-check";
391
- //copiedText.style.visibility = "visible";
392
- }).catch(err => {
393
- console.log("Could not copy text: ", err);
394
- });
395
- });
396
- });
397
-
398
- // Connect vs search
399
- document.addEventListener("DOMContentLoaded", function() {
400
- const urlParams = new URLSearchParams(window.location.search);
401
- const countryElement = document.getElementById("country");
402
-
403
- if (urlParams.get('new') === 'false') {
404
- countryElement.textContent = "connecting...";
405
- }
406
- });
407
-
408
-
409
- // Fullscreen
410
- document.addEventListener("DOMContentLoaded", function() {
411
- const feed = document.getElementById("feed");
412
- let isFullscreen = false;
413
-
414
- function toggleFullScreen() {
415
- if (!isFullscreen) {
416
- if (this.requestFullscreen) {
417
- this.requestFullscreen();
418
- } else if (this.mozRequestFullScreen) {
419
- this.mozRequestFullScreen();
420
- } else if (this.webkitRequestFullscreen) {
421
- this.webkitRequestFullscreen();
422
- } else if (this.msRequestFullscreen) {
423
- this.msRequestFullscreen();
424
- }
425
- } else {
426
- if (document.exitFullscreen) {
427
- document.exitFullscreen();
428
- } else if (document.mozCancelFullScreen) {
429
- document.mozCancelFullScreen();
430
- } else if (document.webkitExitFullscreen) {
431
- document.webkitExitFullscreen();
432
- } else if (document.msExitFullscreen) {
433
- document.msExitFullscreen();
434
- }
435
- }
436
- }
437
-
438
- feed.addEventListener("click", toggleFullScreen);
439
- feed.addEventListener("touchstart", toggleFullScreen);
440
-
441
- document.addEventListener("fullscreenchange", function() {
442
- isFullscreen = !isFullscreen;
443
- });
444
- });
445
-
446
- // Change feed on space bar press
447
- document.addEventListener('keydown', function(event) {
448
- if (event.keyCode === 32) {
449
- window.location.href = '/?new=true';
450
- }
451
- });
452
-
453
- // Show more info
454
- document.addEventListener('DOMContentLoaded', function() {
455
- const infoText = document.getElementById('info-text');
456
- const additionalInfo = document.getElementById('additional-info');
457
- const showMore = document.getElementById('show-more');
458
- const moreButton = document.getElementById('more-button');
459
-
460
- // Initial setup
461
- additionalInfo.style.height = '0';
462
- additionalInfo.style.overflow = 'hidden';
463
- additionalInfo.style.transition = 'height 0.3s ease-in-out';
464
-
465
- showMore.addEventListener('click', function() {
466
- if (additionalInfo.style.height === '0px') {
467
- const scrollHeight = additionalInfo.scrollHeight;
468
- additionalInfo.style.height = `${scrollHeight}px`;
469
- showMore.innerHTML = 'less <i style="margin-bottom:20px; color:rgb(53, 53, 53);" id="more-button" class="fa-solid fa-caret-up"></i>';
470
- } else {
471
- additionalInfo.style.height = '0';
472
- showMore.innerHTML = 'more <i style="margin-bottom:20px; color:rgb(53, 53, 53);" id="more-button" class="fa-solid fa-caret-down"></i>';
473
- }
474
- });
475
- });
476
-
477
-
478
-
479
-
480
- </script>
481
- </body>
482
-
483
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CAMP-ViL/Xplainer/description.md DELETED
@@ -1,3 +0,0 @@
1
- This demo provides a playground for testing the model of our paper "Xplainer: From X-Ray Observations to Explainable Zero-Shot Diagnosis", which was accepted for publication at MICCAI 2023. You can test our pre-defined prompts and define your own prompts and diseases.
2
-
3
- **Paper**: [arxiv](https://arxiv.org/pdf/2303.13391.pdf), **Code**: [Github](https://github.com/ChantalMP/Xplainer)
 
 
 
 
spaces/CVPR/LIVE/thrust/testing/unittest/meta.h DELETED
@@ -1,260 +0,0 @@
1
- /*! \file meta.h
2
- * \brief Defines template classes
3
- * for metaprogramming in the
4
- * unit tests.
5
- */
6
-
7
- #pragma once
8
-
9
- namespace unittest
10
- {
11
-
12
- // mark the absence of a type
13
- struct null_type {};
14
-
15
- // this type encapsulates a list of
16
- // up to 10 types
17
- template<typename T0 = null_type,
18
- typename T1 = null_type,
19
- typename T2 = null_type,
20
- typename T3 = null_type,
21
- typename T4 = null_type,
22
- typename T5 = null_type,
23
- typename T6 = null_type,
24
- typename T7 = null_type,
25
- typename T8 = null_type,
26
- typename T9 = null_type,
27
- typename T10 = null_type,
28
- typename T11 = null_type,
29
- typename T12 = null_type,
30
- typename T13 = null_type,
31
- typename T14 = null_type,
32
- typename T15 = null_type,
33
- typename T16 = null_type,
34
- typename T17 = null_type,
35
- typename T18 = null_type,
36
- typename T19 = null_type>
37
- struct type_list
38
- {
39
- typedef T0 type_0;
40
- typedef T1 type_1;
41
- typedef T2 type_2;
42
- typedef T3 type_3;
43
- typedef T4 type_4;
44
- typedef T5 type_5;
45
- typedef T6 type_6;
46
- typedef T7 type_7;
47
- typedef T8 type_8;
48
- typedef T9 type_9;
49
- typedef T10 type_10;
50
- typedef T11 type_11;
51
- typedef T12 type_12;
52
- typedef T13 type_13;
53
- typedef T14 type_14;
54
- typedef T15 type_15;
55
- typedef T16 type_16;
56
- typedef T17 type_17;
57
- typedef T18 type_18;
58
- typedef T19 type_19;
59
- };
60
-
61
- // this type provides a way of indexing
62
- // into a type_list
63
- template<typename List, unsigned int i>
64
- struct get_type
65
- {
66
- typedef null_type type;
67
- };
68
-
69
- template<typename List> struct get_type<List,0> { typedef typename List::type_0 type; };
70
- template<typename List> struct get_type<List,1> { typedef typename List::type_1 type; };
71
- template<typename List> struct get_type<List,2> { typedef typename List::type_2 type; };
72
- template<typename List> struct get_type<List,3> { typedef typename List::type_3 type; };
73
- template<typename List> struct get_type<List,4> { typedef typename List::type_4 type; };
74
- template<typename List> struct get_type<List,5> { typedef typename List::type_5 type; };
75
- template<typename List> struct get_type<List,6> { typedef typename List::type_6 type; };
76
- template<typename List> struct get_type<List,7> { typedef typename List::type_7 type; };
77
- template<typename List> struct get_type<List,8> { typedef typename List::type_8 type; };
78
- template<typename List> struct get_type<List,9> { typedef typename List::type_9 type; };
79
- template<typename List> struct get_type<List,10> { typedef typename List::type_10 type; };
80
- template<typename List> struct get_type<List,11> { typedef typename List::type_11 type; };
81
- template<typename List> struct get_type<List,12> { typedef typename List::type_12 type; };
82
- template<typename List> struct get_type<List,13> { typedef typename List::type_13 type; };
83
- template<typename List> struct get_type<List,14> { typedef typename List::type_14 type; };
84
- template<typename List> struct get_type<List,15> { typedef typename List::type_15 type; };
85
- template<typename List> struct get_type<List,16> { typedef typename List::type_16 type; };
86
- template<typename List> struct get_type<List,17> { typedef typename List::type_17 type; };
87
- template<typename List> struct get_type<List,18> { typedef typename List::type_18 type; };
88
- template<typename List> struct get_type<List,19> { typedef typename List::type_19 type; };
89
-
90
- // this type and its specialization provides a way to
91
- // iterate over a type_list, and
92
- // applying a unary function to each type
93
- template<typename TypeList,
94
- template <typename> class Function,
95
- typename T,
96
- unsigned int i = 0>
97
- struct for_each_type
98
- {
99
- template<typename U>
100
- void operator()(U n)
101
- {
102
- // run the function on type T
103
- Function<T> f;
104
- f(n);
105
-
106
- // get the next type
107
- typedef typename get_type<TypeList,i+1>::type next_type;
108
-
109
- // recurse to i + 1
110
- for_each_type<TypeList, Function, next_type, i + 1> loop;
111
- loop(n);
112
- }
113
-
114
- void operator()(void)
115
- {
116
- // run the function on type T
117
- Function<T> f;
118
- f();
119
-
120
- // get the next type
121
- typedef typename get_type<TypeList,i+1>::type next_type;
122
-
123
- // recurse to i + 1
124
- for_each_type<TypeList, Function, next_type, i + 1> loop;
125
- loop();
126
- }
127
- };
128
-
129
- // terminal case: do nothing when encountering null_type
130
- template<typename TypeList,
131
- template <typename> class Function,
132
- unsigned int i>
133
- struct for_each_type<TypeList, Function, null_type, i>
134
- {
135
- template<typename U>
136
- void operator()(U)
137
- {
138
- // no-op
139
- }
140
-
141
- void operator()(void)
142
- {
143
- // no-op
144
- }
145
- };
146
-
147
- // this type and its specialization instantiates
148
- // a template by applying T to Template.
149
- // if T == null_type, then its result is also null_type
150
- template<template <typename> class Template,
151
- typename T>
152
- struct ApplyTemplate1
153
- {
154
- typedef Template<T> type;
155
- };
156
-
157
- template<template <typename> class Template>
158
- struct ApplyTemplate1<Template, null_type>
159
- {
160
- typedef null_type type;
161
- };
162
-
163
- // this type and its specializations instantiates
164
- // a template by applying T1 & T2 to Template.
165
- // if either T1 or T2 == null_type, then its result
166
- // is also null_type
167
- template<template <typename,typename> class Template,
168
- typename T1,
169
- typename T2>
170
- struct ApplyTemplate2
171
- {
172
- typedef Template<T1,T2> type;
173
- };
174
-
175
- template<template <typename,typename> class Template,
176
- typename T>
177
- struct ApplyTemplate2<Template, T, null_type>
178
- {
179
- typedef null_type type;
180
- };
181
-
182
- template<template <typename,typename> class Template,
183
- typename T>
184
- struct ApplyTemplate2<Template, null_type, T>
185
- {
186
- typedef null_type type;
187
- };
188
-
189
- template<template <typename,typename> class Template>
190
- struct ApplyTemplate2<Template, null_type, null_type>
191
- {
192
- typedef null_type type;
193
- };
194
-
195
- // this type creates a new type_list by applying a Template to each of
196
- // the Type_list's types
197
- template<typename TypeList,
198
- template <typename> class Template>
199
- struct transform1
200
- {
201
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,0>::type>::type type_0;
202
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,1>::type>::type type_1;
203
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,2>::type>::type type_2;
204
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,3>::type>::type type_3;
205
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,4>::type>::type type_4;
206
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,5>::type>::type type_5;
207
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,6>::type>::type type_6;
208
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,7>::type>::type type_7;
209
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,8>::type>::type type_8;
210
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,9>::type>::type type_9;
211
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,10>::type>::type type_10;
212
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,11>::type>::type type_11;
213
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,12>::type>::type type_12;
214
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,13>::type>::type type_13;
215
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,14>::type>::type type_14;
216
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,15>::type>::type type_15;
217
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,16>::type>::type type_16;
218
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,17>::type>::type type_17;
219
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,18>::type>::type type_18;
220
- typedef typename ApplyTemplate1<Template, typename get_type<TypeList,19>::type>::type type_19;
221
-
222
- typedef type_list<type_0, type_1, type_2, type_3, type_4, type_5, type_6, type_7, type_8, type_9,
223
- type_10, type_11, type_12, type_13, type_14, type_15, type_16, type_17, type_18, type_19> type;
224
- };
225
-
226
- // this type creates a new type_list by applying a Template to each of
227
- // two type_list's types
228
- template<typename TypeList1,
229
- typename TypeList2,
230
- template <typename,typename> class Template>
231
- struct transform2
232
- {
233
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,0>::type, typename get_type<TypeList2,0>::type>::type type_0;
234
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,1>::type, typename get_type<TypeList2,1>::type>::type type_1;
235
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,2>::type, typename get_type<TypeList2,2>::type>::type type_2;
236
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,3>::type, typename get_type<TypeList2,3>::type>::type type_3;
237
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,4>::type, typename get_type<TypeList2,4>::type>::type type_4;
238
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,5>::type, typename get_type<TypeList2,5>::type>::type type_5;
239
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,6>::type, typename get_type<TypeList2,6>::type>::type type_6;
240
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,7>::type, typename get_type<TypeList2,7>::type>::type type_7;
241
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,8>::type, typename get_type<TypeList2,8>::type>::type type_8;
242
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,9>::type, typename get_type<TypeList2,9>::type>::type type_9;
243
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,10>::type, typename get_type<TypeList2,10>::type>::type type_10;
244
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,11>::type, typename get_type<TypeList2,11>::type>::type type_11;
245
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,12>::type, typename get_type<TypeList2,12>::type>::type type_12;
246
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,13>::type, typename get_type<TypeList2,13>::type>::type type_13;
247
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,14>::type, typename get_type<TypeList2,14>::type>::type type_14;
248
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,15>::type, typename get_type<TypeList2,15>::type>::type type_15;
249
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,16>::type, typename get_type<TypeList2,16>::type>::type type_16;
250
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,17>::type, typename get_type<TypeList2,17>::type>::type type_17;
251
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,18>::type, typename get_type<TypeList2,18>::type>::type type_18;
252
- typedef typename ApplyTemplate2<Template, typename get_type<TypeList1,19>::type, typename get_type<TypeList2,19>::type>::type type_19;
253
-
254
-
255
- typedef type_list<type_0, type_1, type_2, type_3, type_4, type_5, type_6, type_7, type_8, type_9,
256
- type_10, type_11, type_12, type_13, type_14, type_15, type_16, type_17, type_18, type_19> type;
257
- };
258
-
259
- } // end unittest
260
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/LIVE/thrust/thrust/detail/pointer.h DELETED
@@ -1,253 +0,0 @@
1
- /*
2
- * Copyright 2008-2018 NVIDIA Corporation
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
17
- #pragma once
18
-
19
- #include <thrust/detail/config.h>
20
- #include <thrust/iterator/iterator_adaptor.h>
21
- #include <thrust/iterator/detail/iterator_traversal_tags.h>
22
- #include <thrust/detail/type_traits/pointer_traits.h>
23
- #include <thrust/detail/type_traits.h>
24
- #include <thrust/detail/reference_forward_declaration.h>
25
- #include <ostream>
26
-
27
-
28
- namespace thrust
29
- {
30
-
31
- // declare pointer with default values of template parameters
32
- template<typename Element, typename Tag, typename Reference = use_default, typename Derived = use_default> class pointer;
33
-
34
- } // end thrust
35
-
36
-
37
- // specialize thrust::iterator_traits to avoid problems with the name of
38
- // pointer's constructor shadowing its nested pointer type
39
- // do this before pointer is defined so the specialization is correctly
40
- // used inside the definition
41
- namespace thrust
42
- {
43
-
44
- template<typename Element, typename Tag, typename Reference, typename Derived>
45
- struct iterator_traits<thrust::pointer<Element,Tag,Reference,Derived> >
46
- {
47
- private:
48
- typedef thrust::pointer<Element,Tag,Reference,Derived> ptr;
49
-
50
- public:
51
- typedef typename ptr::iterator_category iterator_category;
52
- typedef typename ptr::value_type value_type;
53
- typedef typename ptr::difference_type difference_type;
54
- // XXX implement this type (the result of operator->) later
55
- typedef void pointer;
56
- typedef typename ptr::reference reference;
57
- }; // end iterator_traits
58
-
59
- } // end thrust
60
-
61
-
62
- namespace thrust
63
- {
64
-
65
- namespace detail
66
- {
67
-
68
- // this metafunction computes the type of iterator_adaptor thrust::pointer should inherit from
69
- template<typename Element, typename Tag, typename Reference, typename Derived>
70
- struct pointer_base
71
- {
72
- // void pointers should have no element type
73
- // note that we remove_cv from the Element type to get the value_type
74
- typedef typename thrust::detail::eval_if<
75
- thrust::detail::is_void<typename thrust::detail::remove_const<Element>::type>::value,
76
- thrust::detail::identity_<void>,
77
- thrust::detail::remove_cv<Element>
78
- >::type value_type;
79
-
80
- // if no Derived type is given, just use pointer
81
- typedef typename thrust::detail::eval_if<
82
- thrust::detail::is_same<Derived,use_default>::value,
83
- thrust::detail::identity_<pointer<Element,Tag,Reference,Derived> >,
84
- thrust::detail::identity_<Derived>
85
- >::type derived_type;
86
-
87
- // void pointers should have no reference type
88
- // if no Reference type is given, just use reference
89
- typedef typename thrust::detail::eval_if<
90
- thrust::detail::is_void<typename thrust::detail::remove_const<Element>::type>::value,
91
- thrust::detail::identity_<void>,
92
- thrust::detail::eval_if<
93
- thrust::detail::is_same<Reference,use_default>::value,
94
- thrust::detail::identity_<reference<Element,derived_type> >,
95
- thrust::detail::identity_<Reference>
96
- >
97
- >::type reference_arg;
98
-
99
- typedef thrust::iterator_adaptor<
100
- derived_type, // pass along the type of our Derived class to iterator_adaptor
101
- Element *, // we adapt a raw pointer
102
- value_type, // the value type
103
- Tag, // system tag
104
- thrust::random_access_traversal_tag, // pointers have random access traversal
105
- reference_arg, // pass along our Reference type
106
- std::ptrdiff_t
107
- > type;
108
- }; // end pointer_base
109
-
110
-
111
- } // end detail
112
-
113
-
114
- // the base type for all of thrust's tagged pointers.
115
- // for reasonable pointer-like semantics, derived types should reimplement the following:
116
- // 1. no-argument constructor
117
- // 2. constructor from OtherElement *
118
- // 3. constructor from OtherPointer related by convertibility
119
- // 4. constructor from OtherPointer to void
120
- // 5. assignment from OtherPointer related by convertibility
121
- // These should just call the corresponding members of pointer.
122
- template<typename Element, typename Tag, typename Reference, typename Derived>
123
- class pointer
124
- : public thrust::detail::pointer_base<Element,Tag,Reference,Derived>::type
125
- {
126
- private:
127
- typedef typename thrust::detail::pointer_base<Element,Tag,Reference,Derived>::type super_t;
128
-
129
- typedef typename thrust::detail::pointer_base<Element,Tag,Reference,Derived>::derived_type derived_type;
130
-
131
- // friend iterator_core_access to give it access to dereference
132
- friend class thrust::iterator_core_access;
133
-
134
- __host__ __device__
135
- typename super_t::reference dereference() const;
136
-
137
- // don't provide access to this part of super_t's interface
138
- using super_t::base;
139
- using typename super_t::base_type;
140
-
141
- public:
142
- typedef typename super_t::base_type raw_pointer;
143
-
144
- // constructors
145
-
146
- __host__ __device__
147
- pointer();
148
-
149
- #if THRUST_CPP_DIALECT >= 2011
150
- // NOTE: This is needed so that Thrust smart pointers can be used in
151
- // `std::unique_ptr`.
152
- __host__ __device__
153
- pointer(decltype(nullptr));
154
- #endif
155
-
156
- // OtherValue shall be convertible to Value
157
- // XXX consider making the pointer implementation a template parameter which defaults to Element *
158
- template<typename OtherElement>
159
- __host__ __device__
160
- explicit pointer(OtherElement *ptr);
161
-
162
- // OtherPointer's element_type shall be convertible to Element
163
- // OtherPointer's system shall be convertible to Tag
164
- template<typename OtherPointer>
165
- __host__ __device__
166
- pointer(const OtherPointer &other,
167
- typename thrust::detail::enable_if_pointer_is_convertible<
168
- OtherPointer,
169
- pointer<Element,Tag,Reference,Derived>
170
- >::type * = 0);
171
-
172
- // OtherPointer's element_type shall be void
173
- // OtherPointer's system shall be convertible to Tag
174
- template<typename OtherPointer>
175
- __host__ __device__
176
- explicit
177
- pointer(const OtherPointer &other,
178
- typename thrust::detail::enable_if_void_pointer_is_system_convertible<
179
- OtherPointer,
180
- pointer<Element,Tag,Reference,Derived>
181
- >::type * = 0);
182
-
183
- // assignment
184
-
185
- #if THRUST_CPP_DIALECT >= 2011
186
- // NOTE: This is needed so that Thrust smart pointers can be used in
187
- // `std::unique_ptr`.
188
- __host__ __device__
189
- derived_type& operator=(decltype(nullptr));
190
- #endif
191
-
192
- // OtherPointer's element_type shall be convertible to Element
193
- // OtherPointer's system shall be convertible to Tag
194
- template<typename OtherPointer>
195
- __host__ __device__
196
- typename thrust::detail::enable_if_pointer_is_convertible<
197
- OtherPointer,
198
- pointer,
199
- derived_type &
200
- >::type
201
- operator=(const OtherPointer &other);
202
-
203
- // observers
204
-
205
- __host__ __device__
206
- Element *get() const;
207
-
208
- #if THRUST_CPP_DIALECT >= 2011
209
- // NOTE: This is needed so that Thrust smart pointers can be used in
210
- // `std::unique_ptr`.
211
- __host__ __device__
212
- explicit operator bool() const;
213
- #endif
214
-
215
- __host__ __device__
216
- static derived_type pointer_to(typename thrust::detail::pointer_traits_detail::pointer_to_param<Element>::type r)
217
- {
218
- return thrust::detail::pointer_traits<derived_type>::pointer_to(r);
219
- }
220
- }; // end pointer
221
-
222
- // Output stream operator
223
- template<typename Element, typename Tag, typename Reference, typename Derived,
224
- typename charT, typename traits>
225
- __host__
226
- std::basic_ostream<charT, traits> &
227
- operator<<(std::basic_ostream<charT, traits> &os,
228
- const pointer<Element, Tag, Reference, Derived> &p);
229
-
230
- #if THRUST_CPP_DIALECT >= 2011
231
- // NOTE: This is needed so that Thrust smart pointers can be used in
232
- // `std::unique_ptr`.
233
- template <typename Element, typename Tag, typename Reference, typename Derived>
234
- __host__ __device__
235
- bool operator==(decltype(nullptr), pointer<Element, Tag, Reference, Derived> p);
236
-
237
- template <typename Element, typename Tag, typename Reference, typename Derived>
238
- __host__ __device__
239
- bool operator==(pointer<Element, Tag, Reference, Derived> p, decltype(nullptr));
240
-
241
- template <typename Element, typename Tag, typename Reference, typename Derived>
242
- __host__ __device__
243
- bool operator!=(decltype(nullptr), pointer<Element, Tag, Reference, Derived> p);
244
-
245
- template <typename Element, typename Tag, typename Reference, typename Derived>
246
- __host__ __device__
247
- bool operator!=(pointer<Element, Tag, Reference, Derived> p, decltype(nullptr));
248
- #endif
249
-
250
- } // end thrust
251
-
252
- #include <thrust/detail/pointer.inl>
253
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/drawings-to-human/README.md DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- title: Drawings to Human
3
- emoji: ✍️🧍🏽‍♀️🧍🏻
4
- colorFrom: blue
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 3.0.24
8
- pinned: false
9
- app_file: main.py
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/CVPR/lama-example/saicinpainting/training/visualizers/noop.py DELETED
@@ -1,9 +0,0 @@
1
- from saicinpainting.training.visualizers.base import BaseVisualizer
2
-
3
-
4
- class NoopVisualizer(BaseVisualizer):
5
- def __init__(self, *args, **kwargs):
6
- pass
7
-
8
- def __call__(self, epoch_i, batch_i, batch, suffix='', rank=None):
9
- pass
 
 
 
 
 
 
 
 
 
 
spaces/CarperAI/StableVicuna/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: StableVicuna
3
- emoji: 🦙
4
- colorFrom: blue
5
- colorTo: indigo
6
- sdk: gradio
7
- sdk_version: 3.27.0
8
- app_file: app.py
9
- pinned: false
10
- license: cc-by-nc-4.0
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Chris4K/llms_compare/Wondershare-Dvd-Slideshow-Builder-Deluxe-3d-Style-Pack-Registration-Code-Keygen.md DELETED
@@ -1,74 +0,0 @@
1
- ## Wondershare Dvd Slideshow Builder Deluxe 3d Style Pack Registration Code Keygen
2
-
3
-
4
-
5
-
6
-
7
- ![Wondershare Dvd Slideshow Builder Deluxe 3d Style Pack Registration Code Keygen](https://3.bp.blogspot.com/-D0F19vRb9Xw/Uwv0JAKVuCI/AAAAAAAACOE/WsptycKZY_0/s1600/3D+Style+Pack+Box.jpg)
8
-
9
-
10
-
11
-
12
-
13
- **CLICK HERE ····· [https://urluso.com/2tBNxk](https://urluso.com/2tBNxk)**
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
- # How to Make Amazing 3D Slideshows with Wondershare DVD Slideshow Builder Deluxe and 3D Style Pack
28
-
29
-
30
-
31
- If you want to create stunning 3D slideshows from your photos and videos, you need a powerful and easy-to-use software that can handle the task. Wondershare DVD Slideshow Builder Deluxe is a professional slideshow maker that lets you turn your photos and videos into amazing DVD slideshows with music, transitions, effects, and more. But what if you want to add some extra flair to your slideshows with 3D movie effects? That's where Wondershare 3D Style Pack comes in.
32
-
33
-
34
-
35
- Wondershare 3D Style Pack is an exclusive expansion pack for Wondershare DVD Slideshow Builder Deluxe that gives you access to more than 10 "Styles" of popular 3D video effects, such as 3D Cube, Photo Flow, 3D Wall, 3D Square, 3D Carousel, 3D Box, and so on. With these 3D styles, you can make your slideshows more dynamic and eye-catching. You can also customize the 3D effects with parameters like angle, distance, depth, and color.
36
-
37
-
38
-
39
- To use Wondershare 3D Style Pack, you need to purchase both the software and the style pack from the official website[^1^]. Then, you can download and install them on your computer. After that, you can launch Wondershare DVD Slideshow Builder Deluxe and choose Standard mode. Then, you can import your photos and videos to the storyboard and apply the 3D styles to them. You can preview the effects in real time and adjust them as you like. Finally, you can burn your slideshow to DVD or save it as a video file.
40
-
41
-
42
-
43
- Wondershare 3D Style Pack is a great way to enhance your slideshows with 3D movie effects. It's compatible with Windows XP/Vista/7/8/10 and supports various formats of photos and videos. You can also get free updates and technical support from Wondershare. If you want to try it before buying it, you can download a free trial version of Wondershare DVD Slideshow Builder Deluxe from the official website[^1^] and use some of the 3D styles for free.
44
-
45
-
46
-
47
- So what are you waiting for? Get Wondershare DVD Slideshow Builder Deluxe and 3D Style Pack today and start making amazing 3D slideshows with your photos and videos!
48
-
49
-
50
-
51
- ## How to Use Wondershare DVD Slideshow Builder Deluxe
52
-
53
-
54
-
55
- Wondershare DVD Slideshow Builder Deluxe is a user-friendly and versatile software that lets you create professional-looking slideshows with your photos and videos. You can use it to make slideshows for various occasions, such as weddings, birthdays, anniversaries, vacations, and more. You can also use it to make slideshows for business presentations, education, and marketing.
56
-
57
-
58
-
59
- To use Wondershare DVD Slideshow Builder Deluxe, you need to download and install it on your computer. Then, you can launch it and choose between two modes: Advanced Mode and Standard Mode[^1^]. Advanced Mode gives you more control and customization options for your slideshows, while Standard Mode is simpler and faster to use. You can switch between the modes at any time.
60
-
61
-
62
-
63
- In both modes, you can import your photos and videos to the storyboard by clicking the Add Files button or dragging and dropping them. You can also add background music, voiceovers, text, clipart, and other elements to your slideshows. You can edit your photos and videos with basic tools like crop, rotate, trim, adjust brightness, contrast, saturation, etc. You can also apply transitions, effects, filters, and themes to your slideshows to make them more attractive.
64
-
65
-
66
-
67
- Once you are satisfied with your slideshows, you can preview them in full screen and make any changes if needed. Then, you can save your slideshows as a video file in various formats like MP4, AVI, WMV, MOV, FLV, etc. You can also burn your slideshows to DVD discs or ISO files with a built-in DVD menu. You can also share your slideshows online via YouTube, Facebook, Vimeo, etc.
68
-
69
- 145887f19f
70
-
71
-
72
-
73
-
74
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Cong723/gpt-academic-public/crazy_functions/crazy_functions_test.py DELETED
@@ -1,130 +0,0 @@
1
- """
2
- 这是什么?
3
- 这个文件用于函数插件的单元测试
4
- 运行方法 python crazy_functions/crazy_functions_test.py
5
- """
6
-
7
- def validate_path():
8
- import os, sys
9
- dir_name = os.path.dirname(__file__)
10
- root_dir_assume = os.path.abspath(os.path.dirname(__file__) + '/..')
11
- os.chdir(root_dir_assume)
12
- sys.path.append(root_dir_assume)
13
-
14
- validate_path() # validate path so you can run from base directory
15
- from colorful import *
16
- from toolbox import get_conf, ChatBotWithCookies
17
- proxies, WEB_PORT, LLM_MODEL, CONCURRENT_COUNT, AUTHENTICATION, CHATBOT_HEIGHT, LAYOUT, API_KEY = \
18
- get_conf('proxies', 'WEB_PORT', 'LLM_MODEL', 'CONCURRENT_COUNT', 'AUTHENTICATION', 'CHATBOT_HEIGHT', 'LAYOUT', 'API_KEY')
19
-
20
- llm_kwargs = {
21
- 'api_key': API_KEY,
22
- 'llm_model': LLM_MODEL,
23
- 'top_p':1.0,
24
- 'max_length': None,
25
- 'temperature':1.0,
26
- }
27
- plugin_kwargs = { }
28
- chatbot = ChatBotWithCookies(llm_kwargs)
29
- history = []
30
- system_prompt = "Serve me as a writing and programming assistant."
31
- web_port = 1024
32
-
33
-
34
- def test_解析一个Python项目():
35
- from crazy_functions.解析项目源代码 import 解析一个Python项目
36
- txt = "crazy_functions/test_project/python/dqn"
37
- for cookies, cb, hist, msg in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
38
- print(cb)
39
-
40
- def test_解析一个Cpp项目():
41
- from crazy_functions.解析项目源代码 import 解析一个C项目
42
- txt = "crazy_functions/test_project/cpp/cppipc"
43
- for cookies, cb, hist, msg in 解析一个C项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
44
- print(cb)
45
-
46
- def test_Latex英文润色():
47
- from crazy_functions.Latex全文润色 import Latex英文润色
48
- txt = "crazy_functions/test_project/latex/attention"
49
- for cookies, cb, hist, msg in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
50
- print(cb)
51
-
52
- def test_Markdown中译英():
53
- from crazy_functions.批量Markdown翻译 import Markdown中译英
54
- txt = "README.md"
55
- for cookies, cb, hist, msg in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
56
- print(cb)
57
-
58
- def test_批量翻译PDF文档():
59
- from crazy_functions.批量翻译PDF文档_多线程 import 批量翻译PDF文档
60
- txt = "crazy_functions/test_project/pdf_and_word"
61
- for cookies, cb, hist, msg in 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
62
- print(cb)
63
-
64
- def test_谷歌检索小助手():
65
- from crazy_functions.谷歌检索小助手 import 谷歌检索小助手
66
- txt = "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=auto+reinforcement+learning&btnG="
67
- for cookies, cb, hist, msg in 谷歌检索小助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
68
- print(cb)
69
-
70
- def test_总结word文档():
71
- from crazy_functions.总结word文档 import 总结word文档
72
- txt = "crazy_functions/test_project/pdf_and_word"
73
- for cookies, cb, hist, msg in 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
74
- print(cb)
75
-
76
- def test_下载arxiv论文并翻译摘要():
77
- from crazy_functions.下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
78
- txt = "1812.10695"
79
- for cookies, cb, hist, msg in 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
80
- print(cb)
81
-
82
- def test_联网回答问题():
83
- from crazy_functions.联网的ChatGPT import 连接网络回答问题
84
- # txt = "“我们称之为高效”是什么梗?"
85
- # >> 从第0份、第1份、第2份搜索结果可以看出,“我们称之为高效”是指在游戏社区中,用户们用来形容一些游戏策略或行为非常高效且能够带来好的效果的用语。这个用语最初可能是在群星(Stellaris)这个游戏里面流行起来的,后来也传播到了其他游戏中,比如巨像(Titan)等游戏。其中第1份搜索结果中的一篇文章也指出,“我们称之为高效”这 一用语来源于群星(Stellaris)游戏中的一个情节。
86
- # txt = "为什么说枪毙P社玩家没有一个冤枉的?"
87
- # >> 它们都是关于一个知乎用户所发的帖子,引用了一群游戏玩家对于需要对P社玩家进行枪毙的讨论,这个话题的本质是玩家们对于P 社游戏中的政治与历史元素的不同看法,以及其中不少玩家以极端立场宣扬的想法和言论,因此有人就以枪毙这些玩家来回应此类言论。但是这个话题本身并没有实质内容,只是一个玩笑或者恶搞,并不应该被当做真实的态度或者观点,因此这种说法没有实际意义。
88
- # txt = "谁是应急食品?"
89
- # >> '根据以上搜索结果可以得知,应急食品是“原神”游戏中的角色派蒙的外号。'
90
- # txt = "道路千万条,安全第一条。后面两句是?"
91
- # >> '行车不规范,亲人两行泪。'
92
- # txt = "What is in the canister?"
93
- # >> Rainbow Six Siege 游戏中 Smoke 的 Canister 中装有何种物质相关的官方信息。
94
- # txt = "失败的man是什么?"
95
- # >> 根据第1份搜索结果,可以得知失败的man是指一位在B站购买了蜘蛛侠COS服后穿上后被网友嘲笑的UP主,而“失败的man”是蜘蛛侠英文名“spiderman”的谐音梗,并且网友们还 给这位UP主起了“苍蝇侠”的外号。因此,失败的man是指这位UP主在穿上蜘蛛侠COS服后被网友嘲笑的情况。
96
- # txt = "老六是什么,起源于哪里?"
97
- # >> 老六是网络流行语,最初起源于游戏《CSGO》,指游戏中玩家中独来独往、游离于队伍之外的“自由人”或玩得比较菜或者玩得比较阴险的人 ,后来逐渐演变成指玩得比较阴险的玩家。
98
- # txt = "罗小黑战记因为什么经常被吐槽?"
99
- # >> 3. 更新速度。罗小黑战记的更新时间不定,时而快时而慢,给观众留下了等待的时间过长的印象。
100
- # txt = "沙特、伊朗最近的关系如何?"
101
- # >> 最近在中国的斡旋下,沙特和伊朗于3月10日达成了恢复两国外交关系的协议,这表明两国关系已经重新回到正常化状态。
102
- # txt = "You should have gone for the head. What does that mean?"
103
- # >> The phrase "You should have gone for the head" is a quote from the Marvel movies, Avengers: Infinity War and Avengers: Endgame. It was spoken by the character Thanos in Infinity War and by Thor in Endgame.
104
- txt = "AutoGPT是什么?"
105
- # >> AutoGPT是一个基于GPT-4语言模型的开源应用程序。它可以根据用户需求自主执行任务,包括事件分析、营销方案撰写、代码编程、数学运算等等,并完全不需要用户插手。它可以自己思考,给出实现的步骤和实现细节,甚至可以自问自答执 行任务。最近它在GitHub上爆火,成为了业内最热门的项目之一。
106
- # txt = "钟离带什么圣遗物?"
107
- for cookies, cb, hist, msg in 连接网络回答问题(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
108
- print("当前问答:", cb[-1][-1].replace("\n"," "))
109
- for i, it in enumerate(cb): print亮蓝(it[0]); print亮黄(it[1])
110
-
111
- def test_解析ipynb文件():
112
- from crazy_functions.解析JupyterNotebook import 解析ipynb文件
113
- txt = "crazy_functions/test_samples"
114
- for cookies, cb, hist, msg in 解析ipynb文件(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
115
- print(cb)
116
-
117
-
118
- # test_解析一个Python项目()
119
- # test_Latex英文润色()
120
- # test_Markdown中译英()
121
- # test_批量翻译PDF文档()
122
- # test_谷歌检索小助手()
123
- # test_总结word文档()
124
- # test_下载arxiv论文并翻译摘要()
125
- # test_解析一个Cpp项目()
126
- # test_联网回答问题()
127
- test_解析ipynb文件()
128
-
129
- input("程序完成,回车退出。")
130
- print("退出。")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
spaces/Cpp4App/Cpp4App/CDM/detect_compo/deprecated/ip_segment.py DELETED
@@ -1,123 +0,0 @@
1
- import cv2
2
- import numpy as np
3
- import shutil
4
- import os
5
- from os.path import join as pjoin
6
-
7
-
8
- def segment_img(org, segment_size, output_path, overlap=100):
9
- if not os.path.exists(output_path):
10
- os.mkdir(output_path)
11
-
12
- height, width = np.shape(org)[0], np.shape(org)[1]
13
- top = 0
14
- bottom = segment_size
15
- segment_no = 0
16
- while top < height and bottom < height:
17
- segment = org[top:bottom]
18
- cv2.imwrite(os.path.join(output_path, str(segment_no) + '.png'), segment)
19
- segment_no += 1
20
- top += segment_size - overlap
21
- bottom = bottom + segment_size - overlap if bottom + segment_size - overlap <= height else height
22
-
23
-
24
- def clipping(img, components, pad=0, show=False):
25
- """
26
- :param adjust: shrink(negative) or expand(positive) the bounding box
27
- :param img: original image
28
- :param corners: ((column_min, row_min),(column_max, row_max))
29
- :return: list of clipping images
30
- """
31
- clips = []
32
- for component in components:
33
- clip = component.compo_clipping(img, pad=pad)
34
- clips.append(clip)
35
- if show:
36
- cv2.imshow('clipping', clip)
37
- cv2.waitKey()
38
- return clips
39
-
40
-
41
- def dissemble_clip_img_hollow(clip_root, org, compos):
42
- if os.path.exists(clip_root):
43
- shutil.rmtree(clip_root)
44
- os.mkdir(clip_root)
45
- cls_dirs = []
46
-
47
- bkg = org.copy()
48
- hollow_out = np.ones(bkg.shape[:2], dtype=np.uint8) * 255
49
- for compo in compos:
50
- cls = compo.category
51
- c_root = pjoin(clip_root, cls)
52
- c_path = pjoin(c_root, str(compo.id) + '.jpg')
53
- if cls not in cls_dirs:
54
- os.mkdir(c_root)
55
- cls_dirs.append(cls)
56
- clip = compo.compo_clipping(org)
57
- cv2.imwrite(c_path, clip)
58
-
59
- col_min, row_min, col_max, row_max = compo.put_bbox()
60
- hollow_out[row_min: row_max, col_min: col_max] = 0
61
-
62
- bkg = cv2.merge((bkg, hollow_out))
63
- cv2.imwrite(os.path.join(clip_root, 'bkg.png'), bkg)
64
-
65
-
66
- def dissemble_clip_img_fill(clip_root, org, compos, flag='most'):
67
-
68
- def average_pix_around(pad=6, offset=3):
69
- up = row_min - pad if row_min - pad >= 0 else 0
70
- left = col_min - pad if col_min - pad >= 0 else 0
71
- bottom = row_max + pad if row_max + pad < org.shape[0] - 1 else org.shape[0] - 1
72
- right = col_max + pad if col_max + pad < org.shape[1] - 1 else org.shape[1] - 1
73
-
74
- average = []
75
- for i in range(3):
76
- avg_up = np.average(org[up:row_min - offset, left:right, i])
77
- avg_bot = np.average(org[row_max + offset:bottom, left:right, i])
78
- avg_left = np.average(org[up:bottom, left:col_min - offset, i])
79
- avg_right = np.average(org[up:bottom, col_max + offset:right, i])
80
- average.append(int((avg_up + avg_bot + avg_left + avg_right)/4))
81
- return average
82
-
83
- def most_pix_around(pad=6, offset=2):
84
- up = row_min - pad if row_min - pad >= 0 else 0
85
- left = col_min - pad if col_min - pad >= 0 else 0
86
- bottom = row_max + pad if row_max + pad < org.shape[0] - 1 else org.shape[0] - 1
87
- right = col_max + pad if col_max + pad < org.shape[1] - 1 else org.shape[1] - 1
88
-
89
- most = []
90
- for i in range(3):
91
- val = np.concatenate((org[up:row_min - offset, left:right, i].flatten(),
92
- org[row_max + offset:bottom, left:right, i].flatten(),
93
- org[up:bottom, left:col_min - offset, i].flatten(),
94
- org[up:bottom, col_max + offset:right, i].flatten()))
95
- # print(val)
96
- # print(np.argmax(np.bincount(val)))
97
- most.append(int(np.argmax(np.bincount(val))))
98
- return most
99
-
100
- if os.path.exists(clip_root):
101
- shutil.rmtree(clip_root)
102
- os.mkdir(clip_root)
103
- cls_dirs = []
104
-
105
- bkg = org.copy()
106
- for compo in compos:
107
- cls = compo.category
108
- c_root = pjoin(clip_root, cls)
109
- c_path = pjoin(c_root, str(compo.id) + '.jpg')
110
- if cls not in cls_dirs:
111
- os.mkdir(c_root)
112
- cls_dirs.append(cls)
113
- clip = compo.compo_clipping(org)
114
- cv2.imwrite(c_path, clip)
115
-
116
- col_min, row_min, col_max, row_max = compo.put_bbox()
117
- if flag == 'average':
118
- color = average_pix_around()
119
- elif flag == 'most':
120
- color = most_pix_around()
121
- cv2.rectangle(bkg, (col_min, row_min), (col_max, row_max), color, -1)
122
-
123
- cv2.imwrite(os.path.join(clip_root, 'bkg.png'), bkg)