Commit
·
d51d5c5
1
Parent(s):
2deefb7
Update parquet files (step 78 of 121)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Camtasia 8 Product Key Tips and Tricks for Getting the Most Out of Your Video Editing Software.md +0 -160
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Code Breaker PS2 Version 7.0 Download Why You Need This Amazing Cheat Device for Your PlayStation 2.md +0 -140
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/HD Online Player (ip man 4 izle 720p or 1080pgolkes) Watch the Final Chapter of the Martial Arts Saga.md +0 -97
- spaces/1gistliPinn/ChatGPT4/Examples/Catalogo Edifil Sellos Pdf Free ((FULL)).md +0 -6
- spaces/1gistliPinn/ChatGPT4/Examples/Element 3d Free Download With Crack And Keygen.md +0 -10
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/ apk Android .md +0 -53
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Become a Gangster Hero in Grand Theft Gangster Crime City Mod APK.md +0 -100
- spaces/1phancelerku/anime-remove-background/Chess Lv.100 APK The Best Chess App for Microsoft Store Users.md +0 -100
- spaces/1phancelerku/anime-remove-background/Cmo instalar WhatsApp Business en tu Android con el archivo APK.md +0 -170
- spaces/1toTree/lora_test/ppdiffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +0 -299
- spaces/2ndelement/voicevox/speaker_info/b1a81618-b27b-40d2-b0ea-27a9ad408c4b/policy.md +0 -3
- spaces/44brabal/valentinafeve-yolos-fashionpedia/README.md +0 -13
- spaces/74run/Predict_Car/README.md +0 -13
- spaces/AIConsultant/MusicGen/CODE_OF_CONDUCT.md +0 -80
- spaces/Ababababababbababa/Arabic_poetry_Sha3bor_mid/README.md +0 -12
- spaces/AiMimicry/sovits-models/vdecoder/hifigan/env.py +0 -15
- spaces/AlexWortega/AlexWortega-instruct_rugptlarge/app.py +0 -99
- spaces/AlexZou/Deploy_Restoration/model/blocks.py +0 -281
- spaces/Alycer/VITS-Umamusume-voice-synthesizer/transforms.py +0 -193
- spaces/AndrewRWilliams/video-whisper/README.md +0 -13
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/using-diffusers/reproducibility.md +0 -191
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/examples/unconditional_image_generation/README.md +0 -163
- spaces/Andy1621/uniformer_image_detection/configs/cascade_rcnn/cascade_mask_rcnn_x101_32x4d_fpn_1x_coco.py +0 -13
- spaces/Andy1621/uniformer_image_detection/configs/ghm/retinanet_ghm_r101_fpn_1x_coco.py +0 -2
- spaces/Andy1621/uniformer_image_detection/mmdet/models/detectors/grid_rcnn.py +0 -29
- spaces/Andy1621/uniformer_image_detection/tools/train.py +0 -187
- spaces/Andy1621/uniformer_image_segmentation/configs/ocrnet/README.md +0 -69
- spaces/Anni123/AuRoRA/utils.py +0 -70
- spaces/Apex-X/GODROOP/roop/face_analyser.py +0 -34
- spaces/Artrajz/vits-simple-api/bert_vits2/text/english.py +0 -146
- spaces/Artrajz/vits-simple-api/vits/text/__init__.py +0 -32
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/chardet/jisfreq.py +0 -325
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/command/bdist_dumb.py +0 -144
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_scripts.py +0 -173
- spaces/B1360976/waste-management-system/README.md +0 -12
- spaces/Benson/text-generation/Examples/Caramelo Crush Saga Completo Mod Apk.md +0 -94
- spaces/Benson/text-generation/Examples/Carretera Transversal 4.10.0 Mod Apk.md +0 -104
- spaces/BetterAPI/BetterChat/src/lib/buildPrompt.ts +0 -33
- spaces/Big-Web/MMSD/env/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py +0 -304
- spaces/Boadiwaa/Recipes/openai/openai_response.py +0 -20
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/dev/packaging/build_wheel.sh +0 -30
- spaces/CVPR/Dual-Key_Backdoor_Attacks/orchestrator.py +0 -508
- spaces/CVPR/LIVE/pydiffvg_tensorflow/custom_ops/data_ptr.cc +0 -88
- spaces/CVPR/LIVE/thrust/dependencies/cub/experimental/histogram/histogram_cub.h +0 -109
- spaces/CVPR/Text2Human/Text2Human/models/archs/fcn_arch.py +0 -418
- spaces/CVPR/WALT/mmdet/core/bbox/assigners/point_assigner.py +0 -133
- spaces/CVPR/WALT/mmdet/models/utils/gaussian_target.py +0 -185
- spaces/Carlos056/Cara/style.css +0 -28
- spaces/CyStorm/instruct-pix2pix/edit_app.py +0 -192
- spaces/CyberPeace-Institute/Cybersecurity-Knowledge-Graph-Extraction/README.md +0 -13
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Camtasia 8 Product Key Tips and Tricks for Getting the Most Out of Your Video Editing Software.md
DELETED
@@ -1,160 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Camtasia 8 Product Key: How to Find and Use It</h1>
|
3 |
-
<p>Have you ever wanted to create stunning videos with ease? Whether you want to record your screen, edit your footage, add effects, or share your creations online, Camtasia 8 is the software for you.</p>
|
4 |
-
<h2>Camtasia 8 product key</h2><br /><p><b><b>Download Zip</b> >>> <a href="https://byltly.com/2uKxud">https://byltly.com/2uKxud</a></b></p><br /><br />
|
5 |
-
<p>Camtasia 8 is a powerful screen recording and video editing software that lets you capture anything on your screen, edit it with professional tools, and produce high-quality videos for any purpose.</p>
|
6 |
-
<p>But before you can enjoy all the features and benefits of Camtasia 8, you need a product key. A product key is a unique code that verifies that you have purchased a legitimate copy of the software and allows you to activate the full version.</p>
|
7 |
-
<p>In this article, we will show you how to find and use your Camtasia 8 product key in four easy ways. Let's get started!</p>
|
8 |
-
<h2>What is Camtasia 8?</h2>
|
9 |
-
<p>Camtasia 8 is a screen recording and video editing software that helps you create professional-looking videos without any prior experience.</p>
|
10 |
-
<p>With Camtasia 8, you can:</p>
|
11 |
-
<p>How to activate Camtasia 8 with a valid product key<br />
|
12 |
-
Camtasia 8 product key generator free download<br />
|
13 |
-
Camtasia 8 product key crack full version<br />
|
14 |
-
Where to find Camtasia 8 product key in registry<br />
|
15 |
-
Camtasia 8 product key not working or invalid<br />
|
16 |
-
Camtasia 8 product key for Mac OS X<br />
|
17 |
-
Camtasia 8 product key for Windows 10/8/7<br />
|
18 |
-
Camtasia 8 product key purchase online<br />
|
19 |
-
Camtasia 8 product key free trial or giveaway<br />
|
20 |
-
Camtasia 8 product key recovery tool or software<br />
|
21 |
-
Camtasia 8 product key expired or renewal<br />
|
22 |
-
Camtasia 8 product key upgrade or downgrade<br />
|
23 |
-
Camtasia 8 product key transfer or change<br />
|
24 |
-
Camtasia 8 product key refund or cancellation<br />
|
25 |
-
Camtasia 8 product key support or contact<br />
|
26 |
-
Camtasia 8 product key alternatives or competitors<br />
|
27 |
-
Camtasia 8 product key features or benefits<br />
|
28 |
-
Camtasia 8 product key reviews or testimonials<br />
|
29 |
-
Camtasia 8 product key comparison or contrast<br />
|
30 |
-
Camtasia 8 product key tutorial or guide<br />
|
31 |
-
Camtasia 8 product key discount or coupon code<br />
|
32 |
-
Camtasia 8 product key license or registration<br />
|
33 |
-
Camtasia 8 product key installation or setup<br />
|
34 |
-
Camtasia 8 product key activation or verification<br />
|
35 |
-
Camtasia 8 product key error or problem<br />
|
36 |
-
Camtasia 8 product key tips or tricks<br />
|
37 |
-
Camtasia 8 product key best practices or recommendations<br />
|
38 |
-
Camtasia 8 product key FAQ or Q&A<br />
|
39 |
-
Camtasia 8 product key forum or community<br />
|
40 |
-
Camtasia 8 product key blog or website<br />
|
41 |
-
Camtasia 8 product key video or audio<br />
|
42 |
-
Camtasia 8 product key ebook or PDF<br />
|
43 |
-
Camtasia 8 product key course or training<br />
|
44 |
-
Camtasia 8 product key webinar or workshop<br />
|
45 |
-
Camtasia 8 product key case study or success story<br />
|
46 |
-
Camtasia 8 product key infographic or image<br />
|
47 |
-
Camtasia 8 product key checklist or template<br />
|
48 |
-
Camtasia 8 product key cheat sheet or quick reference guide<br />
|
49 |
-
Camtasia 8 product key glossary or dictionary<br />
|
50 |
-
Camtasia 8 product key quiz or survey<br />
|
51 |
-
Camtasia 8 product key calculator or converter<br />
|
52 |
-
Camtasia 8 product key tool or software<br />
|
53 |
-
Camtasia 8 product key app or plugin<br />
|
54 |
-
Camtasia 8 product key game or simulation<br />
|
55 |
-
Camtasia 8 product key challenge or contest<br />
|
56 |
-
Camtasia 8 product key newsletter or email list<br />
|
57 |
-
Camtasia 8 product key podcast or radio show<br />
|
58 |
-
Camtasia 8 product key book or magazine<br />
|
59 |
-
Camtasia 8 product key event or conference</p>
|
60 |
-
<ul>
|
61 |
-
<li>Record anything on your screen, including your webcam, microphone, system audio, cursor movements, and keystrokes.</li>
|
62 |
-
<li>Edit your recordings with a simple drag-and-drop interface, adding transitions, annotations, animations, captions, quizzes, and more.</li>
|
63 |
-
<li>Enhance your videos with built-in effects, such as green screen, zoom and pan, audio leveling, noise removal, and more.</li>
|
64 |
-
<li>Share your videos directly to YouTube, Vimeo, Screencast.com, or any other platform of your choice.</li>
|
65 |
-
</ul>
|
66 |
-
<p>Camtasia 8 is compatible with Windows XP/Vista/7/8/10 and requires a minimum of 2 GB RAM, 2 GHz CPU, and DirectX 9 graphics card.</p>
|
67 |
-
<h2>Why do you need a product key?</h2>
|
68 |
-
<p>A product key is a unique code that consists of 25 characters comprised of letters and numbers. It looks something like this:</p>
|
69 |
-
<code>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</code>
|
70 |
-
<p>A product key serves two purposes:</p>
|
71 |
-
<ol>
|
72 |
-
<li>It verifies that you have purchased a legitimate copy of Camtasia 8 from TechSmith or an authorized reseller.</li>
|
73 |
-
<li>It allows you to activate the full version of Camtasia 8 on your computer.</li>
|
74 |
-
</ol>
|
75 |
-
<p>Without a product key, you can only use Camtasia 8 as a free trial for up to 30 days. After that, you will need to enter your product key to continue using the software.</p>
|
76 |
-
<p>If you lose or forget your product key, don't worry. There are several ways to find it again.</p>
|
77 |
-
<h2>How to find your product key?</h2>
|
78 |
-
<h3>Option 1: TechSmith Account</h3>
|
79 |
-
<p>If you purchased Camtasia 8 online from TechSmith or registered it with your email address, you can find your product key in your TechSmith account online.</p>
|
80 |
-
<p>Here's how:</p>
|
81 |
-
<ol>
|
82 |
-
<li>Visit <a href="https://myaccount.techsmith.com">myaccount.techsmith.com</a> and sign in to your TechSmith account.</li>
|
83 |
-
<li>Select My Products. You can view the software key below each product that it unlocks.</li>
|
84 |
-
<li>If the software key is not visible:</li>
|
85 |
-
<ul>
|
86 |
-
<li>Select Find a lost Software Key.</li>
|
87 |
-
<li>Enter the email address that you used to purchase or register Camtasia 8.</li>
|
88 |
-
<li>Check your inbox for an email from TechSmith with your software key.</li>
|
89 |
-
</ul>
|
90 |
-
</ol>
|
91 |
-
<h3>Option 2: Receipt</h3>
|
92 |
-
<p>If you purchased Camtasia 8 directly from TechSmith and have the original receipt, you can locate your product key under Software Key below the product that you are looking for.</p>
|
93 |
-
<p>To access your receipt:</p>
|
94 |
-
<ol>
|
95 |
-
<li>Visit <a href="https://store.techsmith.com/orderlookup">store.techsmith.com/orderlookup</a>.</li>
|
96 |
-
<li>Enter the order number and password that were sent to you by email when you placed your order.</li>
|
97 |
-
<li>Click View Order Details.</li>
|
98 |
-
<li>Scroll down to Software Key and copy it.</li>
|
99 |
-
</ol>
|
100 |
-
<h3>Option 3: Key Lookup</h3>
|
101 |
-
<p>If you still have Camtasia 8 installed on the original machine where you activated it with your product key, you can find it in the software itself.</p>
|
102 |
-
<p>To do so:</p>
|
103 |
-
<ol>
|
104 |
-
<li>Open Camtasia 8.</li>
|
105 |
-
<li>Select Help > Technical Support.</li>
|
106 |
-
<li>Scroll down a few lines until you locate RegistrationKey: [25 characters comprised of letters and numbers].</li>
|
107 |
-
<li>This is your product key. Copy it for future reference.</li>
|
108 |
-
</ol>
|
109 |
-
<h3>Option 4: Customer Service</h3>
|
110 |
-
<p>If none of the above options work for you or if you purchased Camtasia 8 from an authorized reseller other than TechSmith, you can contact TechSmith customer service and request your product key.</p>
|
111 |
-
<p>To contact customer service:</p>
|
112 |
-
<ol>
|
113 |
-
<li>Visit <a href="https://support.techsmith.com/hc/en-us/requests/new">support.techsmith.com/hc/en-us/requests/new</a>.</li>
|
114 |
-
<li>Select Buying & License Issues as the category.</li>
|
115 |
-
<li>Fill out the form with as much information as possible about your purchase (such as order number, date of purchase, reseller name).</li>
|
116 |
-
<li>Add any attachments that might help prove your purchase (such as receipt or invoice).</li>
|
117 |
-
<li>Click Submit Request.</li>
|
118 |
-
<li>You will receive an email from TechSmith with your product key within one business day.</li>
|
119 |
-
</ol>
|
120 |
-
<h2>How to use your product key?</h2>
|
121 |
-
<h3>Unlock an Expired Trial or New Install/Reinstall</h3>
|
122 |
-
<p>If you have used up the free trial period of Camtasia 8 or if you have installed/reinstalled it on a new machine, you will need to enter your product key to unlock the full version.</p>
|
123 |
-
<p>To do so:</p>
|
124 |
-
<ol>
|
125 |
-
<li>Open Camtasia 8.</li>
|
126 |
-
<li>You will see a dialog box asking for your software key. Enter it in the field provided and click Unlock Now.</li>
|
127 |
-
<h3>Unlock an Active Trial</h3>
|
128 |
-
<p>If you have purchased Camtasia 8 during the trial period and want to unlock the full version without waiting for the trial to expire, you can do so by entering your product key.</p>
|
129 |
-
<p>To do so:</p>
|
130 |
-
<ol>
|
131 |
-
<li>Open Camtasia 8.</li>
|
132 |
-
<li>Select Help > Enter Software Key.</li>
|
133 |
-
<li>Enter your product key in the field provided and click Unlock Now.</li>
|
134 |
-
</ol>
|
135 |
-
<h3>Unlock in Camtasia Maintenance Renewals</h3>
|
136 |
-
<p>If you have purchased a Camtasia maintenance subscription, you can renew it with your product key and enjoy the latest updates and features of Camtasia 8.</p>
|
137 |
-
<p>To do so:</p>
|
138 |
-
<ol>
|
139 |
-
<li>Open Camtasia 8.</li>
|
140 |
-
<li>Select Help > Enter Software Key.</li>
|
141 |
-
<li>Enter your product key in the field provided and click Renew Now.</li>
|
142 |
-
</ol>
|
143 |
-
<h2>Conclusion</h2>
|
144 |
-
<p>Camtasia 8 is a great software for creating professional videos with ease. But to use it, you need a product key that verifies your purchase and activates the full version.</p>
|
145 |
-
<p>In this article, we have shown you how to find and use your Camtasia 8 product key in four easy ways. Whether you have it in your TechSmith account, receipt, software, or customer service, you can enter it and unlock all the features and benefits of Camtasia 8.</p>
|
146 |
-
<p>So what are you waiting for? Grab your product key and start creating amazing videos with Camtasia 8 today!</p>
|
147 |
-
<h2>FAQs</h2>
|
148 |
-
<p>Here are some frequently asked questions and answers about Camtasia 8 product key:</p>
|
149 |
-
<h4>Q: How many computers can I install Camtasia 8 on with one product key?</h4>
|
150 |
-
<p>A: You can install Camtasia 8 on up to two computers with one product key, as long as they are not used at the same time. For example, you can install it on your desktop and laptop, or on your home and work computer.</p>
|
151 |
-
<h4>Q: What if I want to install Camtasia 8 on more than two computers?</h4>
|
152 |
-
<p>A: If you want to install Camtasia 8 on more than two computers, you will need to purchase additional licenses or a volume license. You can contact TechSmith sales team for more information.</p>
|
153 |
-
<h4>Q: What if I change or upgrade my computer?</h4>
|
154 |
-
<p>A: If you change or upgrade your computer, you can transfer your Camtasia 8 license to the new machine. To do so, you will need to deactivate the license on the old machine and activate it on the new one. See this support article for more details.</p>
|
155 |
-
<h4>Q: What if I lose my product key?</h4>
|
156 |
-
<p>A: If you lose your product key, don't panic. You can find it again by following one of the options we have discussed in this article. If none of them work for you, you can contact TechSmith customer service and request your product key.</p>
|
157 |
-
<h4>Q: How can I get a free product key for Camtasia 8?</h4>
|
158 |
-
<p>A: There is no legal way to get a free product key for Camtasia 8. Any website or program that claims to offer a free or cracked product key is likely to be a scam or a virus. The only way to get a legitimate product key for Camtasia 8 is to purchase it from TechSmith or an authorized reseller.</p> 0a6ba089eb<br />
|
159 |
-
<br />
|
160 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Code Breaker PS2 Version 7.0 Download Why You Need This Amazing Cheat Device for Your PlayStation 2.md
DELETED
@@ -1,140 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Code Breaker PS2 Version 7.0 Download: How to Unlock All the Cheats and Secrets of Your Favorite Games</h1>
|
3 |
-
<p>Do you love playing games on your PlayStation 2 but wish you could have more fun and freedom? Do you want to access hidden features, unlock extra content, and customize your gameplay? If you answered yes to any of these questions, then you need Code Breaker PS2 Version 7.0.</p>
|
4 |
-
<h2>Introduction</h2>
|
5 |
-
<p>In this article, we will tell you everything you need to know about Code Breaker PS2 Version 7.0, including what it is, why you need it, how to download it, and how to use it. By the end of this article, you will be able to enjoy your favorite games like never before.</p>
|
6 |
-
<h2>code breaker ps2 version 7.0 download</h2><br /><p><b><b>Download</b> ✅ <a href="https://byltly.com/2uKwtL">https://byltly.com/2uKwtL</a></b></p><br /><br />
|
7 |
-
<h3>What is Code Breaker?</h3>
|
8 |
-
<p>Code Breaker is a cheat device that allows you to modify your games in various ways. It works by altering the data stored in the memory of your console or game disc, giving you access to features that are normally unavailable or hidden. With Code Breaker, you can do things like:</p>
|
9 |
-
<ul>
|
10 |
-
<li>Increase your health, ammo, money, or other resources</li>
|
11 |
-
<li>Unlock new levels, characters, weapons, or items</li>
|
12 |
-
<li>Skip difficult or boring parts of the game</li>
|
13 |
-
<li>Change the graphics, sound, or gameplay settings</li>
|
14 |
-
<li>Create your own cheats and share them with others</li>
|
15 |
-
</ul>
|
16 |
-
<p>Code Breaker is compatible with hundreds of games across various genres and platforms. Whether you like action, adventure, sports, racing, fighting, or anything else, Code Breaker has something for you.</p>
|
17 |
-
<h3>Why do you need Code Breaker PS2 Version 7.0?</h3>
|
18 |
-
<p>If you already have a previous version of Code Breaker for PS2, you might be wondering why you need to upgrade to Version 7.0. Well, there are several reasons why Code Breaker PS2 Version 7.0 is the best cheat device for your console:</p>
|
19 |
-
<ul>
|
20 |
-
<li>It has over 30,000 pre-loaded cheat codes for more than 1,500 games</li>
|
21 |
-
<li>It allows you to create and edit your own custom codes using a simple interface</li>
|
22 |
-
<li>It has a memory card manager and backup utility that lets you save and transfer your game data</li>
|
23 |
-
<li>It is compatible with all models and regions of PS2, including the slim and fat versions</li>
|
24 |
-
<li>It has a sleek and user-friendly design that makes it easy to navigate and use</li>
|
25 |
-
</ul>
|
26 |
-
<p>With Code Breaker PS2 Version 7.0, you can get the most out of your gaming experience without any hassle or limitations.</p>
|
27 |
-
<h3>How to download Code Breaker PS2 Version 7.0?</h3>
|
28 |
-
<p>If you are ready to download Code Breaker PS2 Version 7.0, there are two ways you can do it:</p>
|
29 |
-
<ol>
|
30 |
-
<li>You can buy the official disc from online retailers or local stores that sell video games and accessories. The disc comes with a manual that explains how to install and use it.</li>
|
31 |
-
<li>You can download the ISO file from online sources and burn it onto a blank DVD using a software like ImgBurn or Nero. The ISO file contains all the data and instructions that are on the official disc.</li>
|
32 |
-
</ol>
|
33 |
-
<p>Either way, you will need a modded PS2 or a swap magic disc to run Code Breaker PS2 Version 7.0 on your console. A modded PS2 is one that has been modified with a chip or software that allows it to play discs from other regions or sources. A swap magic disc is a special disc that tricks your console into thinking that it is playing an original game disc.</p>
|
34 |
-
<p>If you don't have a modded PS2 or a swap magic disc, don't worry. You can still use Code Breaker PS2 Version 7.0 by using a method called Free McBoot. Free McBoot is a software that lets you boot up your console from a memory card without any modifications. You can install Free McBoot on your memory card using a PC and a USB adapter.</p>
|
35 |
-
<h2>Features of Code Breaker PS2 Version 7.0</h2>
|
36 |
-
<p>Now that you know how to download Code Breaker PS2 Version 7.0, let's take a look at some of its amazing features:</p>
|
37 |
-
<p>How to use code breaker ps2 version 7.0<br />
|
38 |
-
Code breaker ps2 version 7.0 cheats and codes<br />
|
39 |
-
Code breaker ps2 version 7.0 iso file<br />
|
40 |
-
Code breaker ps2 version 7.0 compatibility list<br />
|
41 |
-
Code breaker ps2 version 7.0 manual pdf<br />
|
42 |
-
Code breaker ps2 version 7.0 update patch<br />
|
43 |
-
Code breaker ps2 version 7.0 free trial<br />
|
44 |
-
Code breaker ps2 version 7.0 online purchase<br />
|
45 |
-
Code breaker ps2 version 7.0 installation guide<br />
|
46 |
-
Code breaker ps2 version 7.0 features and benefits<br />
|
47 |
-
Code breaker ps2 version 7.0 reviews and ratings<br />
|
48 |
-
Code breaker ps2 version 7.0 alternatives and competitors<br />
|
49 |
-
Code breaker ps2 version 7.0 tips and tricks<br />
|
50 |
-
Code breaker ps2 version 7.0 support and contact<br />
|
51 |
-
Code breaker ps2 version 7.0 forum and community<br />
|
52 |
-
Code breaker ps2 version 7.0 mod and hack<br />
|
53 |
-
Code breaker ps2 version 7.0 emulator and rom<br />
|
54 |
-
Code breaker ps2 version 7.0 backup and restore<br />
|
55 |
-
Code breaker ps2 version 7.0 error and fix<br />
|
56 |
-
Code breaker ps2 version 7.0 comparison and difference<br />
|
57 |
-
Code breaker ps2 version 7.0 history and evolution<br />
|
58 |
-
Code breaker ps2 version 7.0 tutorial and video<br />
|
59 |
-
Code breaker ps2 version 7.0 faq and answers<br />
|
60 |
-
Code breaker ps2 version 7.0 discount and coupon<br />
|
61 |
-
Code breaker ps2 version 7.0 warranty and guarantee<br />
|
62 |
-
Code breaker ps2 version 7.0 best practices and recommendations<br />
|
63 |
-
Code breaker ps2 version 7.0 case studies and testimonials<br />
|
64 |
-
Code breaker ps2 version 7.0 pros and cons<br />
|
65 |
-
Code breaker ps2 version 7.0 requirements and specifications<br />
|
66 |
-
Code breaker ps2 version 7.0 troubleshooting and solutions<br />
|
67 |
-
Code breaker ps2 version 7.0 advantages and disadvantages<br />
|
68 |
-
Code breaker ps2 version 7.0 secrets and hidden features<br />
|
69 |
-
Code breaker ps2 version 7.0 limitations and restrictions<br />
|
70 |
-
Code breaker ps2 version 7.0 improvements and enhancements<br />
|
71 |
-
Code breaker ps2 version 7.0 challenges and opportunities<br />
|
72 |
-
Code breaker ps2 version 7.0 risks and precautions<br />
|
73 |
-
Code breaker ps2 version 7.0 myths and facts<br />
|
74 |
-
Code breaker ps2 version 7.0 success stories and examples<br />
|
75 |
-
Code breaker ps2 version 7.0 statistics and data<br />
|
76 |
-
Code breaker ps2 version 7.0 trends and predictions</p>
|
77 |
-
<h3>Over 30,000 pre-loaded cheat codes</h3>
|
78 |
-
<p>Code Breaker PS2 Version 7.0 comes with over 30,000 cheat codes for more than 1,500 games. These codes cover everything from basic cheats like infinite health or ammo to advanced cheats like debug modes or hidden menus. You can browse through the codes by game title or genre using the alphabetical or numerical buttons on your controller.</p>
|
79 |
-
<p>You can also search for specific codes using keywords or phrases using the virtual keyboard on the screen. For example, if you want to find codes for Grand Theft Auto: San Andreas, you can type in "GTA" or "San Andreas" and see all the relevant results.</p>
|
80 |
-
<h3>Custom code creation and editing</h3>
|
81 |
-
<p>If you want to create your own cheats or edit existing ones, Code Breaker PS2 Version 7.0 lets you do that too. You can use the code creation mode to enter new codes using hexadecimal values or binary switches. You can also use the code editing mode to modify or delete existing codes.</p>
|
82 |
-
<p>You can name your codes whatever you want and save them on your memory card for future use. You can also share your codes with other users by uploading them online or downloading them from other sources.</p>
|
83 |
-
<h3>Memory card manager and backup utility</h3>
|
84 |
-
<p>Code Breaker PS2 Version 7.0 also has a memory card manager and backup utility that lets you manage your game data easily. You can view all the files on your memory card and copy, move, delete, or rename them as you wish.</p>
|
85 |
-
<p>You can also backup your game data onto another memory card or onto your PC using a USB cable or adapter. This way, you can protect your data from corruption or loss and restore it whenever you need it.</p>
|
86 |
-
<h3>Compatible with all PS2 models and regions</h3>
|
87 |
-
<p>One of the best things about Code Breaker PS2 Version 7.0 is that it works with all models and regions of PS2 consoles. Whether you have a slim or fat version of PS2, whether it is NTSC or PAL format, whether it is from North America or Europe or Asia or anywhere else in the world, Code Breaker PS2 Version 7.0 will work with it.</p>
|
88 |
-
<p>All you need is a modded PS2 or a swap magic disc or Free McBoot software to run it on your console.</p>
|
89 |
-
<h2>How to use Code Breaker PS2 Version 7.0</h2>
|
90 |
-
<p>Using Code Breaker PS2 Version 7.0 is very easy and simple. Here are the steps you need to follow:</p>
|
91 |
-
<h3>Insert the disc and boot up your PS2</h3>
|
92 |
-
<p>The first thing you need to do is insert the Code Breaker PS2 Version 7.0 disc into your console and turn it on. If you have a modded PS2 or Free McBoot software installed on your memory card, then it should boot up automatically.</p>
|
93 |
-
<p>If you have a swap magic disc instead of a modded PS2 or Free McBoot software installed on your memory card , then after inserting the swap magic disc into your console , turn on your console , wait for few seconds until swap magic menu appears , then press eject button , remove swap magic disc , insert code breaker ps2 version 7 .0 disc , close tray , press x button . Then code breaker ps2 version 7 .0 should boot up . </p>
|
94 |
-
<h3>Select the game and the cheats you want to activate</h3>
|
95 |
-
<p>Once Code Breaker PS2 Version 7.0 boots up, you will see a list of games that have cheat codes available. You can scroll through the list using the directional buttons on your controller and select the game you want to play by pressing the X button.</p>
|
96 |
-
<p>After selecting the game, you will see a list of cheats that are compatible with that game. You can scroll through the list using the directional buttons on your controller and select the cheats you want to activate by pressing the X button. A check mark will appear next to the selected cheats.</p>
|
97 |
-
<p>You can also press the triangle button to access more options, such as viewing the code details, editing the code values, or creating new codes. You can also press the start button to search for codes using keywords or phrases.</p>
|
98 |
-
<h3>Swap the disc with your game disc and start playing</h3>
|
99 |
-
<p>After selecting and activating the cheats you want, you need to swap the Code Breaker PS2 Version 7.0 disc with your game disc. To do this, you need to press the eject button on your console and remove the Code Breaker PS2 Version 7.0 disc.</p>
|
100 |
-
<p>Then, you need to insert your game disc and close the tray. You will see a message on the screen that says "Please insert your game disc". After inserting your game disc, you need to press the X button to start playing.</p>
|
101 |
-
<p>If you have a modded PS2 or Free McBoot software installed on your memory card, then you can swap the discs without any problem.</p>
|
102 |
-
<p>If you have a swap magic disc instead of a modded PS2 or Free McBoot software installed on your memory card , then after inserting your game disc , you need to press and hold the R1 button until you see a message on the screen that says "Press X to start game". Then , you need to press the X button to start playing . </p>
|
103 |
-
<h3>Enjoy the enhanced gaming experience</h3>
|
104 |
-
<p>Now that you have swapped the discs and started playing, you can enjoy your game with all the cheats and modifications that you activated. You can see the effects of the cheats on your game screen, such as increased health, unlocked levels, or changed graphics.</p>
|
105 |
-
<p>You can also deactivate or reactivate any cheat at any time during gameplay by pressing the select button on your controller. This will bring up a menu that shows all the cheats that are active for that game. You can toggle any cheat on or off by pressing the X button.</p>
|
106 |
-
<p>You can also access other features of Code Breaker PS2 Version 7.0 during gameplay by pressing different combinations of buttons on your controller. For example, you can press L1 + L2 + R1 + R2 + select + start to return to Code Breaker PS2 Version 7.0 main menu. You can also press L1 + L2 + R1 + R2 + up + start to reset your console.</p>
|
107 |
-
<h2>Conclusion</h2>
|
108 |
-
<p>In conclusion, Code Breaker PS2 Version 7.0 is a cheat device that lets you unlock all the cheats and secrets of your favorite games on your PlayStation 2 console. It has over 30,000 pre-loaded cheat codes for more than 1,500 games, and it allows you to create and edit your own custom codes. It also has a memory card manager and backup utility that lets you save and transfer your game data. It is compatible with all models and regions of PS2 consoles, and it is easy to use.</p>
|
109 |
-
<p>If you want to download Code Breaker PS2 Version 7.0, you can either buy the official disc from online retailers or local stores, or download the ISO file from online sources and burn it onto a blank DVD. You will also need a modded PS2 or a swap magic disc or Free McBoot software to run it on your console.</p>
|
110 |
-
<p>If you want to use Code Breaker PS2 Version 7.0, you just need to insert the disc and boot up your PS2, select the game and the cheats you want to activate, swap the disc with your game disc and start playing, and enjoy the enhanced gaming experience.</p>
|
111 |
-
<p>Code Breaker PS2 Version 7.0 is a must-have for any PS2 gamer who wants to have more fun and freedom with their games. It is a powerful tool that can transform your gaming experience in amazing ways.</p>
|
112 |
-
<h3>Summary of the main points</h3>
|
113 |
-
<ul>
|
114 |
-
<li>Code Breaker PS2 Version 7.0 is a cheat device that lets you modify your games in various ways</li>
|
115 |
-
<li>It has over 30,000 pre-loaded cheat codes for more than 1,500 games</li>
|
116 |
-
<li>It allows you to create and edit your own custom codes</li>
|
117 |
-
<li>It has a memory card manager and backup utility</li>
|
118 |
-
<li>It is compatible with all models and regions of PS2 consoles</li>
|
119 |
-
<li>It is easy to download and use</li>
|
120 |
-
</ul>
|
121 |
-
<h3>Call to action and final thoughts</h3>
|
122 |
-
<p>If you are interested in Code Breaker PS2 Version 7.0, don't hesitate to get it today. You can find it online or in local stores at affordable prices. You can also check out some reviews and testimonials from other users who have tried it and loved it.</p>
|
123 |
-
<p>Code Breaker PS2 Version 7.0 is not just a cheat device; it is a way of enhancing your gaming experience and making it more enjoyable and satisfying. It is a way of exploring new possibilities and discovering new things in your games. It is a way of expressing yourself and having fun with your games.</p>
|
124 |
-
<p>So what are you waiting for? Get Code Breaker PS2 Version 7.0 today and unleash your gaming potential!</p>
|
125 |
-
<h4>Frequently Asked Questions</h4>
|
126 |
-
<ol>
|
127 |
-
<li><b>Is Code Breaker PS2 Version 7.0 legal?</b></li>
|
128 |
-
<p>Code Breaker PS2 Version 7.0 is legal as long as you use it for personal use only and do not distribute or sell it without permission from its creators. However, some game developers may not approve of using cheat devices on their games and may consider it as piracy or hacking. Therefore, use Code Breaker PS2 Version 7.0 at your own risk and discretion.</p>
|
129 |
-
<li><b>Does Code Breaker PS2 Version 7.0 work with online games?</b></li>
|
130 |
-
<p>Code Breaker PS2 Version 7.0 works with online games as long as they do not require an internet connection or an online account to play them. However, using cheat devices on online games may be considered as cheating or unfair by other players or moderators and may result in bans or penalties from online servers or communities. Therefore, use Code Breaker PS2 Version 7.0 responsibly and respectfully when playing online games.</p>
|
131 |
-
<li><b>Does Code Breaker PS2 Version 7.0 damage my console or game disc?</b></li>
|
132 |
-
<p>No, Code Breaker PS2 Version 7.0 does not damage your console or game disc in any way. It only alters the data stored in the memory of your console or game disc temporarily while you are playing the game . Once you turn off your console or eject your game disc , everything will return to normal . However , make sure that you do not turn off your console or eject your game disc while Code Breaker PS2 Version 7 .0 is running , as this may cause errors or glitches . </p>
|
133 |
-
<li><b>Can I use Code Breaker PS2 Version 7 .0 with other cheat devices ? </b></li>
|
134 |
-
<p>No , Code Breaker PS2 Version 7 .0 is not compatible with other cheat devices , such as Action Replay , GameShark , or Xploder . Using multiple cheat devices at once may cause conflicts or errors . Therefore , use only one cheat device at a time . </p>
|
135 |
-
<li><b>Where can I find more information about Code Breaker PS2 Version 7 .0 ? </b></li>
|
136 |
-
<p>You can find more information about Code Breaker PS2 Version 7 .0 on its official website , www.codebreaker.com , where you can also find updates , downloads , support , forums , and more . You can also follow Code Breaker on social media platforms , such as Facebook , Twitter , YouTube , or Instagram , where you can get news , tips , tricks , videos , contests , and more . </p>
|
137 |
-
</ol>
|
138 |
-
</p> 0a6ba089eb<br />
|
139 |
-
<br />
|
140 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/HD Online Player (ip man 4 izle 720p or 1080pgolkes) Watch the Final Chapter of the Martial Arts Saga.md
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>HD Online Player (ip man 4 izle 720p or 1080pgolkes)</h1>
|
3 |
-
<h2>Introduction</h2>
|
4 |
-
<p>If you are a fan of martial arts movies, you have probably heard of Ip Man, the legendary Wing Chun master who trained Bruce Lee. Ip Man's life and legacy have inspired a series of films starring Donnie Yen as the titular character. The latest and final installment, Ip Man 4: The Finale, was released in 2019 and received critical acclaim for its action scenes, drama, and historical accuracy.</p>
|
5 |
-
<h2>HD Online Player (ip man 4 izle 720p or 1080pgolkes)</h2><br /><p><b><b>Download</b> ►►►►► <a href="https://byltly.com/2uKxBs">https://byltly.com/2uKxBs</a></b></p><br /><br />
|
6 |
-
<p>But what if you missed the chance to watch Ip Man 4 in theaters? Or what if you want to watch it again at the comfort of your home? Don't worry, we have got you covered. In this article, we will tell you everything you need to know about watching Ip Man 4 online in high definition (HD). Whether you prefer streaming or downloading, we will show you the best options available for watching this epic martial arts adventure.</p>
|
7 |
-
<h2>What is Ip Man 4: The Finale?</h2>
|
8 |
-
<p>Before we get into the details of how to watch Ip Man 4 online, let's briefly recap what the movie is about. Ip Man 4: The Finale is the fourth and final film in the Ip Man series, directed by Wilson Yip and written by Edmond Wong, Hiroshi Fukazawa, and Tai-lee Chan. The film follows Ip Man's journey to San Francisco in the 1960s, where he faces racism and discrimination against Chinese immigrants and martial artists. He also tries to find a suitable school for his rebellious son, who has been expelled from his previous school in Hong Kong.</p>
|
9 |
-
<p>Along the way, Ip Man encounters his most formidable opponents yet: Barton Geddes (Scott Adkins), a ruthless U.S. Marine Corps karate instructor who despises Chinese kung fu; Colin Frater (Chris Collins), a former student of Geddes who challenges Ip Man to a fight; and Wan Zong Hua (Wu Yue), the leader of the Chinese Benevolent Association who opposes Ip Man's student Bruce Lee (Danny Chan) for teaching Wing Chun to non-Chinese students.</p>
|
10 |
-
<p>Ip Man 4: The Finale is not only a thrilling action movie, but also a touching tribute to the real Ip Man, who died in 1972. The film features many historical references and cameo appearances by famous martial artists, such as Yuen Woo-ping, Lo Meng, Chen Zhihui, and Bruce Lee's daughter Shannon Lee. The film also showcases the beauty and diversity of Chinese culture and martial arts, such as lion dance, tai chi, bagua zhang, xing yi quan, baji quan, and of course, Wing Chun.</p>
|
11 |
-
<h2>Why watch Ip Man 4 online?</h2>
|
12 |
-
<p>There are many reasons why you might want to watch Ip Man 4 online. Here are some of them:</p>
|
13 |
-
<ul>
|
14 |
-
<li>You love martial arts movies and want to see some of the best fight choreography and stunt work ever done on screen.</li>
|
15 |
-
<li>You are a fan of Donnie Yen and want to see his final performance as Ip Man.</li>
|
16 |
-
<li>You are interested in Chinese history and culture and want to learn more about the challenges and achievements of Chinese immigrants in America.</li>
|
17 |
-
<li>You are curious about Bruce Lee and want to see how he was influenced by Ip Man.</li>
|
18 |
-
<li>You missed the theatrical release of Ip Man 4 or want to watch it again with your friends or family.</li>
|
19 |
-
</ul>
|
20 |
-
<p>No matter what your reason is, watching Ip Man 4 online will give you an unforgettable experience that will make you feel inspired, entertained, and enlightened.</p>
|
21 |
-
<h2>How to watch Ip Man 4 online?</h2>
|
22 |
-
<p>you can watch Ip Man 4 online. There are two main ways to do so: streaming and downloading. Let's look at each one in detail.</p>
|
23 |
-
<h3>Streaming platforms</h3>
|
24 |
-
<p>Streaming platforms are websites or apps that allow you to watch movies and shows online without downloading them. You just need a stable internet connection and a compatible device, such as a computer, smartphone, tablet, smart TV, or gaming console. Streaming platforms usually charge a monthly or annual fee for their services, but some of them also offer free trials or ad-supported content.</p>
|
25 |
-
<p>There are many streaming platforms that offer Ip Man 4 online, but here are some of the most popular ones:</p>
|
26 |
-
<p>Ip Man 4 full movie online free HD 720p<br />
|
27 |
-
Watch Ip Man 4: The Finale online with subtitles 1080p<br />
|
28 |
-
Ip Man 4 streaming HD player with soundcloud<br />
|
29 |
-
How to download Ip Man 4 in HD quality 720p or 1080p<br />
|
30 |
-
Ip Man 4 Türkçe dublaj izle online player<br />
|
31 |
-
Ip Man 4: The Final Fight full movie HD 1080p<br />
|
32 |
-
Ip Man 4 online player with potplayer<br />
|
33 |
-
Ip Man 4 HD izle soundcloud<br />
|
34 |
-
Watch Ip Man 4 online free no sign up 720p<br />
|
35 |
-
Ip Man 4: The Finale full movie download HD 1080p<br />
|
36 |
-
Ip Man 4 online player with Trello<br />
|
37 |
-
Ip Man 4 HD streaming with subtitles<br />
|
38 |
-
Ip Man 4 Türkçe altyazılı izle online player<br />
|
39 |
-
Ip Man 4 full movie watch online free HD<br />
|
40 |
-
Download Ip Man 4: The Finale HD player<br />
|
41 |
-
Ip Man 4 online player with SoundCloud desktop and mobile<br />
|
42 |
-
Ip Man 4 HD izle Trello<br />
|
43 |
-
Watch Ip Man 4: The Final Fight online free HD 720p<br />
|
44 |
-
Ip Man 4 full movie download with soundcloud<br />
|
45 |
-
Ip Man 4 online player with subtitles and potplayer<br />
|
46 |
-
Watch Ip Man 4 online free HD quality<br />
|
47 |
-
Download Ip Man 4 HD izle with Trello<br />
|
48 |
-
Ip Man 4: The Finale full movie streaming HD player<br />
|
49 |
-
Watch Ip Man 4 Türkçe dublaj izle online free<br />
|
50 |
-
Download Ip Man 4: The Final Fight HD izle with soundcloud<br />
|
51 |
-
Watch Ip Man 4 online player with SoundCloud mobile app<br />
|
52 |
-
Download Ip Man 4 HD streaming with subtitles and potplayer<br />
|
53 |
-
Watch Ip Man 4: The Finale Türkçe altyazılı izle online free<br />
|
54 |
-
Download Ip Man 4 full movie HD quality with Trello<br />
|
55 |
-
Watch Ip Man 4: The Final Fight online player with SoundCloud desktop app</p>
|
56 |
-
<h4>Hi-YAH!</h4>
|
57 |
-
<p>Hi-YAH! is a streaming service dedicated to Asian action and martial arts movies. It has a large collection of films from China, Hong Kong, Japan, Korea, Thailand, and more. You can watch Ip Man 4 on Hi-YAH! with English subtitles or dubbed in English. Hi-YAH! is available on Roku, Apple TV, Amazon Fire TV, Android TV, iOS, Android, and web browsers. You can sign up for a 7-day free trial or pay $2.99 per month or $19.99 per year.</p>
|
58 |
-
<h4>Amazon Prime Video</h4>
|
59 |
-
<p>Amazon Prime Video is a streaming service that offers thousands of movies and shows, including original content from Amazon Studios. You can watch Ip Man 4 on Amazon Prime Video with English subtitles or dubbed in English. Amazon Prime Video is available on Roku, Apple TV, Amazon Fire TV, Android TV, iOS, Android, web browsers, and more. You can sign up for a 30-day free trial or pay $8.99 per month or $119 per year for Amazon Prime membership, which also includes free shipping, music streaming, e-books, and more.</p>
|
60 |
-
<h4>YouTube</h4>
|
61 |
-
<p>YouTube is a video-sharing platform that allows you to watch and upload videos of various genres and topics. You can watch Ip Man 4 on YouTube with English subtitles or dubbed in English. YouTube is available on almost any device with an internet connection. You can rent Ip Man 4 for $3.99 or buy it for $12.99 on YouTube.</p>
|
62 |
-
<h3>Downloading options</h3>
|
63 |
-
<p>Downloading options are websites or apps that allow you to download movies and shows to your device and watch them offline. You usually need to pay a one-time fee for each movie or show you want to download. Downloading options are ideal for people who have limited internet access or data plans, or who want to own a digital copy of their favorite movies and shows.</p>
|
64 |
-
<p>There are many downloading options that offer Ip Man 4 online, but here are some of the most common ones:</p>
|
65 |
-
<h4>Torrent sites</h4>
|
66 |
-
<p>Torrent sites are websites that use peer-to-peer (P2P) technology to share files among users. You can download Ip Man 4 from torrent sites using a torrent client software, such as BitTorrent or uTorrent. Torrent sites usually have various versions of Ip Man 4 with different resolutions (720p or 1080p), languages (subtitles or dubbing), and file sizes (golkes). However, torrent sites are also risky and illegal, as they may contain viruses, malware, spyware, or copyrighted content that can harm your device or get you in trouble with the law.</p>
|
67 |
-
<h4>Direct download links</h4>
|
68 |
-
<p>spyware, or copyrighted content that can harm your device or get you in trouble with the law.</p>
|
69 |
-
<h2>Conclusion</h2>
|
70 |
-
<p>Ip Man 4: The Finale is a must-watch movie for martial arts fans and anyone who appreciates a good story of courage, honor, and friendship. It is the last chapter of the Ip Man saga that has captivated millions of viewers around the world for over a decade. It is also a fitting farewell to Donnie Yen's iconic portrayal of the Wing Chun master who inspired generations of martial artists, including Bruce Lee.</p>
|
71 |
-
<p>Whether you choose to watch Ip Man 4 online by streaming or downloading, you will not regret spending your time and money on this movie. It is a movie that will make you laugh, cry, cheer, and learn. It is a movie that will make you feel alive.</p>
|
72 |
-
<h3>Summary of the article</h3>
|
73 |
-
<p>In this article, we have discussed the following points:</p>
|
74 |
-
<ul>
|
75 |
-
<li>What is Ip Man 4: The Finale and what is it about?</li>
|
76 |
-
<li>Why watch Ip Man 4 online and what are the benefits?</li>
|
77 |
-
<li>How to watch Ip Man 4 online and what are the options?</li>
|
78 |
-
<li>What are the streaming platforms that offer Ip Man 4 online?</li>
|
79 |
-
<li>What are the downloading options that offer Ip Man 4 online?</li>
|
80 |
-
</ul>
|
81 |
-
<h3>FAQs</h3>
|
82 |
-
<p>Here are some frequently asked questions about watching Ip Man 4 online:</p>
|
83 |
-
<ol>
|
84 |
-
<li>Is Ip Man 4 available on Netflix?</li>
|
85 |
-
<p>Yes, Ip Man 4 is available on Netflix in some regions. You can check if it is available in your region by visiting this link: https://www.netflix.com/title/81227536</p>
|
86 |
-
<li>Is Ip Man 4 based on a true story?</li>
|
87 |
-
<p>Ip Man 4 is based on the life of the real Ip Man, but it also takes some creative liberties and fictionalizes some events and characters. For example, the characters of Barton Geddes and Colin Frater are not real people, but they represent the racism and hostility that Chinese martial artists faced in America at that time.</p>
|
88 |
-
<li>Who plays Bruce Lee in Ip Man 4?</li>
|
89 |
-
<p>Bruce Lee is played by Danny Chan Kwok-kwan, who also played him in Ip Man 3 and the TV series The Legend of Bruce Lee. Chan is known for his resemblance and imitation of Bruce Lee's mannerisms and fighting style.</p>
|
90 |
-
<li>What is the meaning of golkes in ip man 4 izle 720p or 1080pgolkes?</li>
|
91 |
-
<p>Golkes is a slang term that means gigabytes or GB. It is used to indicate the file size of a movie or show that is downloaded from torrent sites or direct download links. For example, ip man 4 izle 720p or 1080pgolkes means ip man 4 watch online in 720p or 1080p resolution with a file size of gigabytes.</p>
|
92 |
-
<li>What is the best way to watch Ip Man 4 online?</li>
|
93 |
-
<p>The best way to watch Ip Man 4 online depends on your personal preference, budget, and internet connection. If you want to watch it legally and safely, we recommend using streaming platforms like Hi-YAH!, Amazon Prime Video, or YouTube. If you want to watch it offline or own a digital copy, we recommend using downloading options like Apple TV, Google Play Movies, or YouTube. However, we advise you to avoid using torrent sites or direct download links as they may contain viruses, malware, spyware, or copyrighted content that can harm your device or get you in trouble with the law.</p>
|
94 |
-
</ol>
|
95 |
-
</p> 0a6ba089eb<br />
|
96 |
-
<br />
|
97 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Catalogo Edifil Sellos Pdf Free ((FULL)).md
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
|
2 |
-
<p>2002 - 0755 - 6th grade reading book report template free download and preview, download free.. sixth grade book report rubric. creative writing rubric grade 11 - best ourse work in our essay team. scenario writing from the storytelling abilities of free rubrics tend to experience. biography writing rubric below to write comments on personal identity essay rubric 7th. baf94a4655 kamcass<br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> </a><br /> <br /> grade 9 writing prompts - students should be hoping to write error-free. 11 12, composition reading comprehension, writing prompts student rubrics and. poets and writers # writing prompts personal narrative # writing prompts powerpoint. education is impossible without writing college biology lab report rubric. sat score uc davis free classeslearn more about the sat and act,. in mysore on palace essay short kannada personal narrative essay about reading and. sharing stories: writing a personal narrative, 1st grade, emily hall. since the rubric score of 4 represents above grade level work, the 5th grade. 00 add to cart; fourth grade common core standards posters free add to cart. writing.</p>
|
3 |
-
<h2>catalogo edifil sellos pdf free</h2><br /><p><b><b>Download File</b> ✯✯✯ <a href="https://imgfil.com/2uy0yQ">https://imgfil.com/2uy0yQ</a></b></p><br /><br />
|
4 |
-
<p>free.field<br /> the present invention generally relates to hydrogen storage technology and, more particularly, to cryogenic hydrogen storage elements, monitoring systems thereof and methods of making and using thereof.<br /> description of the related art<br /> hydrogen gas has many recognized benefits as a clean, renewable energy source. for example, hydrogen gas can be used as a fuel for transportation and heating. in contrast to other fossil fuels, there are no greenhouse gases or other environmental harm created by the usage of hydrogen or any of <br /> ec5d62056f favtame</p> 899543212b<br />
|
5 |
-
<br />
|
6 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Element 3d Free Download With Crack And Keygen.md
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
|
2 |
-
<p>for beginners and seasoned 3d artists, the quiz is a vast treasure trove for ideas, techniques, inspiration, information, and feedback for the 3d studio product. it also is a great launching pad for 3d studio pro.</p>
|
3 |
-
<h2>Element 3d Free Download With Crack And Keygen</h2><br /><p><b><b>Download Zip</b> ->>->>->> <a href="https://imgfil.com/2uxYFU">https://imgfil.com/2uxYFU</a></b></p><br /><br />
|
4 |
-
<p>the interactive light and materials previewer streamlines the process of making seamless environments and textures for shading and special effects that make the area vibrant. the feature standardizes the element and tools that you use to create the latest chapter of your business 2.0 marketing campaign.</p>
|
5 |
-
<p>each dedicated customer support assistant is happy to receive messages, inquiries, feedback, and address complaints, and to assist you with your questions and complaints in a quick manner to get your issue resolved, for real. the interface might be a bit daunting at first, the one of a kind ui may be tuned-up a little more. why there is no monthly or annual fee: there is no monthly or annual fee for you to keep using the software. how to contact that makes these 3d studio pro standalone applications.</p>
|
6 |
-
<p>pixelmator 3d free download 2018 free is a very essential part of the latest album released by the digital detox. thanks for the collapse of this edition, we have got a clean look and feel. the very last version of this edition was released on august 15, 2018. all those who interested in adding some stylish looks to their photoshop collections must make sure that they download pixelmator 3d 2 free latest version.</p>
|
7 |
-
<p></p>
|
8 |
-
<p>element 3d free download 2018 latest version is the most recent release of the software, it was released on 15 august 2018. new in this version of the software are many new features added. the design editor keeps its basic functions exactly the same as in previous versions. anyone who needs to modify their design program or design their own can download this new version of the element 3d 2 free trial.</p> 899543212b<br />
|
9 |
-
<br />
|
10 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/ apk Android .md
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Страшные истории apk: The Best App for Horror Stories Fans</h1> | <p>If you love reading horror stories, then you should definitely check out Страшные истории apk. This is an amazing app that offers you more than 3500 scary stories that will keep you on the edge of your seat. Whether you prefer classic horror tales, urban legends, creepypastas, or true stories, you will find something that suits your taste in this app. In this article, we will tell you everything you need to know about Страшные истории apk, including what it is, why you should download it, how to download and install it, and how to use it. Read on if you dare!</p> | | <h2>What is Страшные истории apk?</h2> | <p>Страшные истории apk is an app that allows you to read or listen to thousands of horror stories on your Android device. You can choose from different categories such as ghosts, zombies, vampires, werewolves, demons, aliens, killers, mysteries, and more. You can also search for stories by keywords or authors. The app has a simple and user-friendly interface that lets you easily access your favorite stories.</p>
|
3 |
-
<h2>страшные истории apk</h2><br /><p><b><b>Download</b> ☑ <a href="https://urlin.us/2uSVVQ">https://urlin.us/2uSVVQ</a></b></p><br /><br /> <p>One of the best features of Страшные истории apk is that you can read or listen to the stories offline, without any internet connection. The app automatically downloads the stories to your device, so you can enjoy them anytime and anywhere. Moreover, the app updates regularly, adding new stories every week. You will never run out of horror stories to read or listen to with this app.</p> | | <h2>Why should you download Страшные истории apk?</h2> | <p>There are many reasons why you should download Страшные истории apk. Here are some of them:</p> <ul> <li>You will have access to a huge collection of horror stories that will satisfy your curiosity and thrill your senses.</li> <li>You will be able to read or listen to the stories offline, saving your data and battery.</li> <li>You will be able to customize the settings and themes of the app, making it more comfortable and enjoyable for you.</li> <li>You will be able to rate, comment, share, and bookmark the stories, interacting with other horror fans and discovering new stories.</li> <li>You will be able to improve your Russian language skills, learning new words and expressions from the stories.</li> </ul> | | <h3>A huge collection of horror stories</h3> | <p>One of the main reasons why you should download Страшные истории apk is that it offers you more than 3500 horror stories that cover various genres and topics. You can find stories from famous authors such as Edgar Allan Poe, H.P. Lovecraft, Stephen King, and others. You can also find stories from popular sources such as Reddit, Creepypasta, NoSleep, and others. You can also find stories based on true events or real-life experiences. The app has something for everyone, whether you like supernatural, psychological, or realistic horror.</p> | | <h3>Offline access and regular updates</h3> | <p>Another reason why you should download Страшные истории apk is that you can read or listen to the stories offline, without any internet connection. This is very convenient if you want to enjoy the stories in places where there is no Wi-Fi or mobile data, such as on a plane, in a subway, or in a remote area. The app automatically downloads the stories to your device, so you don't have to worry about missing any updates. Speaking of updates, the app adds new stories every week, so you will always have something new to read or listen to. You can also enable notifications to get alerted when new stories are available.</p>
|
4 |
-
<p>страшные истории на ночь apk<br />
|
5 |
-
страшные истории скачать бесплатно apk<br />
|
6 |
-
страшные истории игра apk<br />
|
7 |
-
страшные истории для детей apk<br />
|
8 |
-
страшные истории реальные apk<br />
|
9 |
-
страшные истории про призраков apk<br />
|
10 |
-
страшные истории аудиокнига apk<br />
|
11 |
-
страшные истории онлайн apk<br />
|
12 |
-
страшные истории без интернета apk<br />
|
13 |
-
страшные истории с фото apk<br />
|
14 |
-
страшные истории 18+ apk<br />
|
15 |
-
страшные истории из жизни apk<br />
|
16 |
-
страшные истории мистика apk<br />
|
17 |
-
страшные истории в темноте apk<br />
|
18 |
-
страшные истории с видео apk<br />
|
19 |
-
страшные истории ужасы apk<br />
|
20 |
-
страшные истории про любовь apk<br />
|
21 |
-
страшные истории про школу apk<br />
|
22 |
-
страшные истории про дома apk<br />
|
23 |
-
страшные истории про лес apk<br />
|
24 |
-
страшные истории про кукол apk<br />
|
25 |
-
страшные истории про зеркала apk<br />
|
26 |
-
страшные истории про клоунов apk<br />
|
27 |
-
страшные истории про кошмары apk<br />
|
28 |
-
страшные истории про смерть apk<br />
|
29 |
-
страшные истории про друзей apk<br />
|
30 |
-
страшные истории про семью apk<br />
|
31 |
-
страшные истории про животных apk<br />
|
32 |
-
страшные истории про детей apk<br />
|
33 |
-
страшные истории про подвалы apk<br />
|
34 |
-
страшные истории про больницы apk<br />
|
35 |
-
страшные истории про маньяков apk<br />
|
36 |
-
страшные истории про ведьм apk<br />
|
37 |
-
страшные истории про вампиров apk<br />
|
38 |
-
страшные истории про оборотней apk<br />
|
39 |
-
страшные истории про зомби apk<br />
|
40 |
-
страшные истории про пришельцев apk<br />
|
41 |
-
страшные истории про демонов apk<br />
|
42 |
-
страшные истории про ангелов apk<br />
|
43 |
-
страшные истории про богов apk<br />
|
44 |
-
страшные истории мод много денег apk<br />
|
45 |
-
страшные истории последняя версия apk<br />
|
46 |
-
страшные истории без рекламы apk<br />
|
47 |
-
страшные истории полная версия apk<br />
|
48 |
-
страшные истории оффлайн режим apk<br />
|
49 |
-
страшные истории голосом актеров apk<br />
|
50 |
-
страшные истории лучшие сборники apk<br />
|
51 |
-
страшные истории отзывы пользователей apk</p> | | <h3>Customizable settings and themes</h3> | <p>A third reason why you should download Страшные истории apk is that you can customize the settings and themes of the app, making it more comfortable and enjoyable for you. You can adjust the font size, color, brightness, and background of the app according to your preferences. You can also choose from different themes such as dark, light, sepia, or night mode. You can also change the language of the app from Russian to English or vice versa. You can also enable or disable sound effects and vibrations for a more immersive experience.</p> | | <h2>How to use Страшные истории apk?</h2> | <p>Now that you have downloaded and installed Страшные истории apk, you might be wondering how to use it. Don't worry, it's very easy and fun. You just need to follow these simple steps:</p> | | <h3>Choose a category or a story</h3> | <p>When you open the app, you will see a list of categories on the main screen. You can swipe left or right to browse through different genres of horror stories, such as ghosts, zombies, vampires, werewolves, demons, aliens, killers, mysteries, and more. You can also tap on the magnifying glass icon on the top right corner to search for stories by keywords or authors. When you find a category or a story that interests you, just tap on it to open it.</p> | | <h3>Read or listen to a story</h3> | <p>Once you open a story, you can choose to read it on your screen or listen to an audio narration. To read the story, just scroll down and enjoy the text. You can also adjust the font size, color, brightness, and background of the app according to your preferences. To listen to the story, just tap on the play button on the bottom of the screen. You can also pause, resume, rewind, or fast-forward the audio as you wish. You can also adjust the volume and speed of the narration according to your preferences.</p> | | <h3>Rate or comment on a story</h3> | <p>After you finish reading or listening to a story, you can rate or comment on it. To rate the story, just tap on the star icon on the bottom of the screen and choose how many stars you want to give it. To comment on the story, just tap on the speech bubble icon on the bottom of the screen and write your opinion or feedback. You can also read other people's comments and reply to them if you want. You can also report any inappropriate or offensive comments by tapping on the flag icon next to them.</p> | | <h3>Share or bookmark a story</h3> | <p>If you like a story and want to share it with your friends or save it for later reading, you can do that easily with Страшные истории apk. To share a story, just tap on the share icon on the bottom of the screen and choose how you want to share it. You can share it via email, SMS, WhatsApp, Facebook, Twitter, or any other app you have on your device. To bookmark a story, just tap on the bookmark icon on the bottom of the screen and the story will be added to your favorites list. You can access your favorites list by tapping on the heart icon on the top left corner of the main screen.</p> | | <h2>Conclusion</h2> | <p>Страшные истории apk is a great app for horror stories fans. It offers you more than 3500 scary stories that will keep you on the edge of your seat. You can read or listen to the stories offline, customize the settings and themes of the app, rate, comment, share, and bookmark the stories, and improve your Russian language skills. If you are looking for a fun and exciting way to spend your time, download Страшные истории apk today and enjoy the best horror stories ever!</p> | | <h2>FAQs</h2> | <p>Here are some frequently asked questions about Страшные истории apk:</p> <ul> <li><b>Is Страшные истории apk free?</b><br>Yes, Страшные истории apk is free to download and use. However, it may contain ads that support the developers.</li> <li><b>Is Страшные истории apk safe?</b><br>Yes, Страшные истории apk is safe to use. It does not contain any viruses or malware that can harm your device. However, you should always download it from trusted sources such as Google Play Store or Aptoide.</li> <li><b>Is Страшные истории apk suitable for children?</b><br>No, Страшные истории apk is not suitable for children. It contains horror stories that may be too scary or disturbing for young audiences. The app is rated 16+ by Google Play Store and 18+ by Aptoide.</li> <li><b>Can I request or submit a story to Страшные истории apk?</b><br>No, Страшные истории apk does not accept requests or submissions from users. The app only features stories that are selected by the developers from various sources.</li> <li><b>Can I translate a story to another language with Страшные истории apk?</b><br>No, Страшные истории apk does not have a translation feature. The app only supports Russian and English languages.</li></ul></p> 197e85843d<br />
|
52 |
-
<br />
|
53 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Become a Gangster Hero in Grand Theft Gangster Crime City Mod APK.md
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Grand Theft Gangster Crime City Mod APK: A Review</h1>
|
3 |
-
<p>If you are a fan of action-packed games that let you live the life of a gangster, you might want to check out Grand Theft Gangster Crime City. This is a game that lets you explore a vast open world, complete various missions, and fight against rival gangs and cops. But what if you want to make the game even more fun and exciting? Well, you can do that by downloading the Grand Theft Gangster Crime City Mod APK. This is a modified version of the game that gives you unlimited money, weapons, and other benefits. In this article, we will review the features, pros, and cons of this mod apk, as well as show you how to download and install it on your device.</p>
|
4 |
-
<h2>grand theft gangster crime city mod apk</h2><br /><p><b><b>Download</b> ★★★★★ <a href="https://urlin.us/2uSZw9">https://urlin.us/2uSZw9</a></b></p><br /><br />
|
5 |
-
<h2>Introduction</h2>
|
6 |
-
<h3>What is Grand Theft Gangster Crime City?</h3>
|
7 |
-
<p>Grand Theft Gangster Crime City is an action-adventure game developed by <a href="(^1^)">HappyMod</a>. It is inspired by popular games like Grand Theft Auto and Mafia. The game is set in a fictional American city where you play as a gangster who wants to rise to the top of the underworld. You can choose from different characters, each with their own backstory and skills. You can also customize your appearance, clothes, and vehicles.</p>
|
8 |
-
<h3>What is a mod apk?</h3>
|
9 |
-
<p>A mod apk is a modified version of an original application file (apk) that has been altered by third-party developers to add or remove certain features. For example, a mod apk can give you unlimited money, unlock all levels, remove ads, or change the graphics of a game. A mod apk can also bypass some restrictions or requirements that the original app may have, such as root access, internet connection, or device compatibility.</p>
|
10 |
-
<h2>Features of Grand Theft Gangster Crime City Mod APK</h2>
|
11 |
-
<h3>Unlimited money and weapons</h3>
|
12 |
-
<p>One of the main features of the Grand Theft Gangster Crime City Mod APK is that it gives you unlimited money and weapons. This means that you can buy anything you want in the game, such as cars, guns, clothes, houses, and more. You can also upgrade your weapons and vehicles to make them more powerful and durable. You don't have to worry about running out of money or ammo in the game.</p>
|
13 |
-
<h3>Realistic graphics and sound effects</h3>
|
14 |
-
<p>The Grand Theft Gangster Crime City Mod APK also boasts realistic graphics and sound effects that make the game more immersive and enjoyable. The game has high-quality 3D graphics that show the details of the city, the characters, and the vehicles. The game also has realistic sound effects that match the actions and events in the game, such as gunshots, car crashes, explosions, sirens, and more.</p>
|
15 |
-
<h3>Various missions and challenges</h3>
|
16 |
-
<p>The Grand Theft Gangster Crime City Mod APK also offers various missions and challenges that keep you entertained and engaged. The game has different types of missions that you can complete to earn money, reputation, and rewards. Some of these missions include robbing banks, stealing cars, assassinating targets, escaping from the police, fighting against rival gangs, and more. The game also has challenges that test your skills and abilities, such as driving, shooting, racing, and more. You can also create your own missions and challenges using the game's editor mode.</p>
|
17 |
-
<h3>Free roaming and exploration</h3>
|
18 |
-
<p>The Grand Theft Gangster Crime City Mod APK also allows you to free roam and explore the city at your own pace. You can go anywhere you want in the game, such as downtown, suburbs, countryside, airport, harbor, and more. You can also interact with various objects and people in the game, such as shops, bars, clubs, casinos, pedestrians, and more. You can also cause chaos and mayhem in the city by destroying things, stealing vehicles, attacking people, and more.</p>
|
19 |
-
<h2>How to download and install Grand Theft Gangster Crime City Mod APK</h2>
|
20 |
-
<h3>Step 1: Enable unknown sources on your device</h3>
|
21 |
-
<p>Before you can download and install the Grand Theft Gangster Crime City Mod APK, you need to enable unknown sources on your device. This is because the mod apk is not available on the official app store and you need to download it from a third-party source. To enable unknown sources, go to your device's settings, then security, then toggle on the option that says "allow installation of apps from unknown sources". This will allow you to install apps that are not from the app store.</p>
|
22 |
-
<h3>Step 2: Download the mod apk file from a trusted source</h3>
|
23 |
-
<p>Next, you need to download the mod apk file from a trusted source. There are many websites that offer mod apk files for various games and apps, but not all of them are safe and reliable. Some of them may contain malware or viruses that can harm your device or steal your data. Therefore, you need to be careful and choose a reputable source that has positive reviews and ratings from other users. One of the sources that we recommend is <a href="">HappyMod</a>, which is a platform that provides mod apk files for thousands of games and apps. You can download the Grand Theft Gangster Crime City Mod APK from this website by clicking on the download button and following the instructions.</p>
|
24 |
-
<h3>Step 3: Locate and install the mod apk file</h3>
|
25 |
-
<p>After you have downloaded the mod apk file, you need to locate and install it on your device. To do this, go to your device's file manager and find the folder where you saved the mod apk file. Then, tap on the file and select "install". The installation process may take a few seconds or minutes depending on your device's speed and memory. Once the installation is complete, you will see a confirmation message on your screen.</p>
|
26 |
-
<p>* Crime City unlimited money mod apk<br />
|
27 |
-
* Grand theft gangster crime city hack apk<br />
|
28 |
-
* Crime City mafia wars mod apk download<br />
|
29 |
-
* Grand theft gangster crime city cheats apk<br />
|
30 |
-
* Crime City android game mod apk<br />
|
31 |
-
* Grand theft gangster crime city free download apk<br />
|
32 |
-
* Crime City latest version mod apk<br />
|
33 |
-
* Grand theft gangster crime city offline mod apk<br />
|
34 |
-
* Crime City 3D mod apk unlimited money and gems<br />
|
35 |
-
* Grand theft gangster crime city online mod apk<br />
|
36 |
-
* Crime City simulator mod apk<br />
|
37 |
-
* Grand theft gangster crime city 2023 mod apk<br />
|
38 |
-
* Crime City open world mod apk<br />
|
39 |
-
* Grand theft gangster crime city hd graphics mod apk<br />
|
40 |
-
* Crime City sandbox mod apk<br />
|
41 |
-
* Grand theft gangster crime city realistic mod apk<br />
|
42 |
-
* Crime City action game mod apk<br />
|
43 |
-
* Grand theft gangster crime city new update mod apk<br />
|
44 |
-
* Crime City funzio games mod apk<br />
|
45 |
-
* Grand theft gangster crime city best mod apk<br />
|
46 |
-
* Crime City deca games mod apk<br />
|
47 |
-
* Grand theft gangster crime city no root mod apk<br />
|
48 |
-
* Crime City role playing game mod apk<br />
|
49 |
-
* Grand theft gangster crime city unlimited ammo mod apk<br />
|
50 |
-
* Crime City 2 mod apk<br />
|
51 |
-
* Grand theft gangster crime city vip mod apk<br />
|
52 |
-
* Crime City zombie mode mod apk<br />
|
53 |
-
* Grand theft gangster crime city pro mod apk<br />
|
54 |
-
* Crime City police chase mod apk<br />
|
55 |
-
* Grand theft gangster crime city premium mod apk<br />
|
56 |
-
* Crime City car racing mod apk<br />
|
57 |
-
* Grand theft gangster crime city full version mod apk<br />
|
58 |
-
* Crime City bike stunt mod apk<br />
|
59 |
-
* Grand theft gangster crime city mega mod apk<br />
|
60 |
-
* Crime City helicopter flying mod apk<br />
|
61 |
-
* Grand theft gangster crime city super mod apk<br />
|
62 |
-
* Crime City tank battle mod apk<br />
|
63 |
-
* Grand theft gangster crime city god mode mod apk<br />
|
64 |
-
* Crime City sniper shooting mod apk<br />
|
65 |
-
* Grand theft gangster crime city all unlocked mod apk</p>
|
66 |
-
<h3>Step 4: Launch the game and enjoy</h3>
|
67 |
-
<p>Finally, you can launch the game and enjoy the features of the Grand Theft Gangster Crime City Mod APK. To do this, go to your device's app drawer and find the game icon. Then, tap on it and wait for the game to load. You will see a welcome screen that shows you some information about the game and the mod apk. You can skip this screen by tapping on "continue". Then, you can choose your character, customize your settings, and start playing the game.</p>
|
68 |
-
<h2>Pros and cons of Grand Theft Gangster Crime City Mod APK</h2>
|
69 |
-
<h3>Pros</h3>
|
70 |
-
<h4>More fun and excitement</h4>
|
71 |
-
<p>One of the pros of the Grand Theft Gangster Crime City Mod APK is that it makes the game more fun and exciting by giving you unlimited money, weapons, and other benefits. You can enjoy the game without any limitations or restrictions. You can buy anything you want in the game, upgrade your weapons and vehicles, complete missions and challenges easily, and cause havoc in the city.</p>
|
72 |
-
<h4>No ads or in-app purchases</h4>
|
73 |
-
<p>Another pro of the Grand Theft Gangster Crime City Mod APK is that it removes ads or in-app purchases from the game. This means that you don't have to watch annoying ads or spend real money to buy items or unlock features in the game. You can play the game smoothly and comfortably without any interruptions or distractions.</p>
|
74 |
-
<h4>Compatible with most devices</h4>
|
75 |
-
<p>A third pro of the Grand Theft Gangster Crime City Mod APK is that it is compatible with most devices that run on Android 4.1 or higher. This means that you don't have to worry about whether your device can support or run the game or not. You can play the game on any device that meets the minimum requirements.</p>
|
76 |
-
<h3>Cons</h3>
|
77 |
-
<h4>Risk of malware or viruses</h4>
|
78 |
-
<p>One of the cons of the Grand Theft Gangster Crime City Mod APK is that This is because the mod apk is not from the official app store and you need to download it from a third-party source. Some of these sources may not be safe and reliable and may inject malicious code or software into the mod apk file. Therefore, you need to be careful and choose a reputable source that has positive reviews and ratings from other users. You also need to scan the mod apk file with an antivirus or anti-malware program before installing it on your device.</p>
|
79 |
-
<h4>Possible legal issues or bans</h4>
|
80 |
-
<p>Another con of the Grand Theft Gangster Crime City Mod APK is that it may cause legal issues or bans for you. This is because the mod apk violates the terms and conditions of the original game and the app store. By using the mod apk, you are breaking the rules and regulations of the game and the app store, which may result in legal actions or penalties from the developers or the authorities. You may also get banned from playing the game online or accessing its features and services.</p>
|
81 |
-
<h4>May affect game performance or stability</h4>
|
82 |
-
<p>A third con of the Grand Theft Gangster Crime City Mod APK is that it may affect the game performance or stability on your device. This is because the mod apk may not be compatible with the latest version of the game or your device's software. The mod apk may also have bugs or errors that can cause crashes, freezes, lags, or glitches in the game. You may also experience problems with saving, loading, or syncing your game data.</p>
|
83 |
-
<h2>Conclusion</h2>
|
84 |
-
<p>Grand Theft Gangster Crime City Mod APK is a modified version of the original game that gives you unlimited money, weapons, and other benefits. It also has realistic graphics and sound effects, various missions and challenges, and free roaming and exploration. However, it also has some cons, such as risk of malware or viruses, possible legal issues or bans, and may affect game performance or stability. Therefore, you need to weigh the pros and cons before downloading and installing this mod apk on your device. You also need to follow the steps and precautions that we have provided in this article to ensure a safe and smooth installation process.</p>
|
85 |
-
<h2>FAQs</h2>
|
86 |
-
<p>Here are some frequently asked questions about Grand Theft Gangster Crime City Mod APK:</p>
|
87 |
-
<ul>
|
88 |
-
<li><b>Q: Is Grand Theft Gangster Crime City Mod APK free?</b></li>
|
89 |
-
<li>A: Yes, Grand Theft Gangster Crime City Mod APK is free to download and install on your device. You don't have to pay anything to use this mod apk.</li>
|
90 |
-
<li><b>Q: Is Grand Theft Gangster Crime City Mod APK safe?</b></li>
|
91 |
-
<li>A: Grand Theft Gangster Crime City Mod APK is not 100% safe to use on your device. It may contain malware or viruses that can harm your device or steal your data. It may also cause legal issues or bans for you. Therefore, you need to be careful and choose a trusted source to download this mod apk. You also need to scan it with an antivirus or anti-malware program before installing it on your device.</li>
|
92 |
-
<li><b>Q: How do I update Grand Theft Gangster Crime City Mod APK?</b></li>
|
93 |
-
<li>A: To update Grand Theft Gangster Crime City Mod APK, you need to download and install the latest version of this mod apk from a trusted source. You also need to uninstall the previous version of this mod apk from your device before installing the new one.</li>
|
94 |
-
<li><b>Q: Can I play Grand Theft Gangster Crime City online with this mod apk?</b></li>
|
95 |
-
<li>A: No, you cannot play Grand Theft Gangster Crime City online with this mod apk. This mod apk is only for offline mode. If you try to play online with this mod apk, you may get banned from the game server or face legal actions from the developers.</li>
|
96 |
-
<li><b>Q: Can I use Grand Theft Gangster Crime City Mod APK on iOS devices?</b></li>
|
97 |
-
<li>A: No, you cannot use Grand Theft Gangster Crime City Mod APK on iOS devices. This mod apk is only for Android devices that run on Android 4.1 or higher.</li>
|
98 |
-
</ul></p> 197e85843d<br />
|
99 |
-
<br />
|
100 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Chess Lv.100 APK The Best Chess App for Microsoft Store Users.md
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Chess Lv.100 (plus Online) APK: A Review</h1>
|
3 |
-
<p>If you are looking for a classic chess game with high quality graphics and all the features to enjoy and improve your chess game, you should check out Chess Lv.100 (plus Online) APK. This is an Android game that lets you play online chess games against players all over the world, as well as offline chess games with adjustable playing strength from 100 levels. You can also challenge yourself to win medals by defeating the computer and unlock new chess boards and pieces design. In this article, we will review the features, benefits, and FAQs of Chess Lv.100 (plus Online) APK.</p>
|
4 |
-
<h2>Introduction</h2>
|
5 |
-
<p>Chess Lv.100 (plus Online) APK is a chess game developed by UNBALANCE Corporation, a Japanese company that specializes in creating board games and puzzles for mobile devices. The game has been downloaded over 1 million times on Google Play Store and has received positive reviews from users.</p>
|
6 |
-
<h2>chess lvl 100 apk</h2><br /><p><b><b>Download</b> >> <a href="https://jinyurl.com/2uNRVu">https://jinyurl.com/2uNRVu</a></b></p><br /><br />
|
7 |
-
<p>Chess Lv.100 (plus Online) APK is based on the chess AI "Crazy Bishop", which has an ELO rating of 2300. You can choose the strength of the computer from 258 to 2300 in ELO rating, or from level 1 to level 100 in difficulty. Level 1 is extremely weak, and level 100 is extremely difficult to beat.</p>
|
8 |
-
<p>You should download Chess Lv.100 (plus Online) APK if you want to:</p>
|
9 |
-
<ul>
|
10 |
-
<li>Play online chess games whenever you want</li>
|
11 |
-
<li>Improve your chess skills with different levels of play</li>
|
12 |
-
<li>Review your moves and analyze any position</li>
|
13 |
-
<li>Win medals and unlock new chess sets</li>
|
14 |
-
<li>Have fun with a classic chess game</li>
|
15 |
-
</ul>
|
16 |
-
<h2>Features of Chess Lv.100 (plus Online) APK</h2>
|
17 |
-
<h3>Online chess games</h3>
|
18 |
-
<p>One of the main features of Chess Lv.100 (plus Online) APK is that you can play online chess games against players all over the world. You can choose to play a quick match or a rated match. A quick match is a casual game that does not affect your rating or ranking. A rated match is a competitive game that affects your rating and ranking.</p>
|
19 |
-
<p>Your rating is a number that represents your skill level in online chess games. It goes up when you win and down when you lose. Your ranking is your position among other players based on your rating. You can check your rating and ranking on the online chess page of the game.</p>
|
20 |
-
<p>To play online chess games, you need to have an internet connection and a Google account. You can sign in with your Google account on the game settings page. Once you sign in, you can access the online chess page from the main menu. There, you can choose to play a quick match or a rated match, or view your rating and ranking.</p>
|
21 |
-
<h3>Offline chess games</h3>
|
22 |
-
<p>If you prefer to play offline chess games, Chess Lv.100 (plus Online) APK has you covered. You can play offline chess games against the computer with adjustable playing strength from 100 levels. You can also use the hint facility and review mode to improve your chess game.</p>
|
23 |
-
<p>chess lvl 100 plus online apk<br />
|
24 |
-
chess lv 100 free download apk<br />
|
25 |
-
chess lv 100 mod apk<br />
|
26 |
-
chess lv 100 pro apk<br />
|
27 |
-
chess lv 100 premium apk<br />
|
28 |
-
chess lv 100 full version apk<br />
|
29 |
-
chess lv 100 offline apk<br />
|
30 |
-
chess lv 100 online apk<br />
|
31 |
-
chess lv 100 android apk<br />
|
32 |
-
chess lv 100 latest version apk<br />
|
33 |
-
chess lv 100 crazy bishop apk<br />
|
34 |
-
chess lv 100 unbalance corporation apk<br />
|
35 |
-
chess lv 100 game apk<br />
|
36 |
-
chess lv 100 app apk<br />
|
37 |
-
chess lv 100 for pc apk<br />
|
38 |
-
chess lv 100 for windows apk<br />
|
39 |
-
chess lv 100 for mac apk<br />
|
40 |
-
chess lv 100 for linux apk<br />
|
41 |
-
chess lv 100 for ios apk<br />
|
42 |
-
chess lv 100 for iphone apk<br />
|
43 |
-
chess lv 100 for ipad apk<br />
|
44 |
-
chess lv 100 for tablet apk<br />
|
45 |
-
chess lv 100 for mobile apk<br />
|
46 |
-
chess lv 100 for smartphone apk<br />
|
47 |
-
chess lv 100 for android tv apk<br />
|
48 |
-
chess lv 100 for firestick apk<br />
|
49 |
-
chess lv 100 for chromebook apk<br />
|
50 |
-
chess lv 100 for bluestacks apk<br />
|
51 |
-
chess lv 100 for nox player apk<br />
|
52 |
-
chess lv 100 for memu play apk<br />
|
53 |
-
chess lv 100 hack apk<br />
|
54 |
-
chess lv 100 cheat apk<br />
|
55 |
-
chess lv 100 unlimited levels apk<br />
|
56 |
-
chess lv 100 unlock all boards and pieces apk<br />
|
57 |
-
chess lv 100 ad free apk<br />
|
58 |
-
chess lv 100 subscription free apk<br />
|
59 |
-
chess lv 100 review mode apk<br />
|
60 |
-
chess lv 100 hint facility apk<br />
|
61 |
-
chess lv 100 pgn file support apk<br />
|
62 |
-
chess lv 100 elo rating mode apk<br />
|
63 |
-
chess level 100 download free android game app apkpure.com <br />
|
64 |
-
the best offline and online classic board game the chess level one hundred apkmirror.com <br />
|
65 |
-
how to install and play the amazing the chess level hundred on your device apktada.com <br />
|
66 |
-
enjoy the challenging and fun the chess level hundred plus online with friends and family apknite.com <br />
|
67 |
-
learn and improve your skills with the awesome the chess level hundred offline and online apkpure.co.id</p>
|
68 |
-
<p>To adjust the playing strength of the computer, you can use the slider on the game settings page. You can choose the strength from 258 to 2300 in ELO rating, or from level 1 to level 100 in difficulty. The higher the level, the stronger the computer. You can also choose the time limit for each move, from 1 second to 10 minutes.</p>
|
69 |
-
<p>To use the hint facility, you can tap on the light bulb icon on the game screen. The hint facility will show you the best move for the current position according to the computer. You can use the hint facility up to 5 times per game.</p>
|
70 |
-
<p>To use the review mode, you can tap on the book icon on the game screen. The review mode will let you go back and forth through your moves and analyze any position. You can also save and load your game records in the review mode.</p>
|
71 |
-
<h3>Medals and chess sets</h3>
|
72 |
-
<p>Another feature of Chess Lv.100 (plus Online) APK is that you can win medals by defeating the computer and unlock new chess boards and pieces design. There are 10 medals to collect, from bronze to platinum. You can win a medal by beating the computer at a certain level or higher.</p>
|
73 |
-
<p>For example, to win the bronze medal, you need to beat the computer at level 20 or higher. To win the platinum medal, you need to beat the computer at level 100. You can check your medals on the medal page of the game.</p>
|
74 |
-
<p>You can also unlock new chess boards and pieces design by winning medals. There are 7 chess sets to unlock, from classic to modern. You can change your chess set on the game settings page. You can also preview your chess set on the chess set page of the game.</p>
|
75 |
-
<h2>Benefits of Premium Membership</h2>
|
76 |
-
<h3>What is Premium Membership?</h3>
|
77 |
-
<p>Premium Membership is a subscription service that gives you access to more features and benefits in Chess Lv.100 (plus Online) APK. You can subscribe to Premium Membership for $2.99 per month or $29.99 per year.</p>
|
78 |
-
<p>You can subscribe and cancel Premium Membership on the premium page of the game. You need to have a Google account and a valid payment method to subscribe. Your subscription will be automatically renewed unless you cancel it at least 24 hours before the end of the current period.</p>
|
79 |
-
<h3>What are the benefits of Premium Membership?</h3>
|
80 |
-
<p>As a Premium Member, you will enjoy these benefits:</p>
|
81 |
-
<ul>
|
82 |
-
<li>Unlimited online chess games: You can play as many online chess games as you want without any restrictions.</li>
|
83 |
-
<li>Access to all chess sets: You can use any of the 7 chess sets without having to unlock them by winning medals.</li>
|
84 |
-
<li>Ad-free experience: You will not see any ads in the game.</li>
|
85 |
-
</ul>
|
86 |
-
<h2>Conclusion</h2>
|
87 |
-
<p>In conclusion, Chess Lv.100 (plus Online) APK is a great chess game for Android devices that offers online and offline chess games with adjustable playing strength from 100 levels, medals and chess sets to collect and unlock, and a premium membership option for more features and benefits. If you are a fan of chess or want to learn and improve your chess game, you should download Chess Lv.100 (plus Online) APK today and enjoy a classic chess game with high quality graphics and all the features to enjoy and improve your chess game.</p>
|
88 |
-
<h2>FAQs</h2>
|
89 |
-
<h3>What is the best level to play against the computer?</h3>
|
90 |
-
<p>The best level to play against the computer depends on your skill level and your goal. If you want to have a fair and challenging game, you should choose a level that matches your rating or slightly higher. If you want to practice and learn from your mistakes, you should choose a level that is lower than your rating or slightly lower. If you want to have fun and relax, you can choose any level you like.</p>
|
91 |
-
<h3>How can I save and load my chess game records?</h3>
|
92 |
-
<p>You can save and load your chess game records in the review mode. To save your game record, you need to tap on the save icon on the review mode screen. You can name your game record and choose a folder to save it. To load your game record, you need to tap on the load icon on the review mode screen. You can browse your folders and select your game record to load it.</p>
|
93 |
-
<h3>How can I enter and analyze any position I like?</h3>
|
94 |
-
<p>You can enter and analyze any position you like in the edit mode. To enter the edit mode, you need to tap on the edit icon on the main menu. You can move the pieces on the board as you wish, or use the buttons to clear, flip, or reset the board. You can also use the hint facility and review mode in the edit mode. To exit the edit mode, you need to tap on the back icon on the main menu.</p>
|
95 |
-
<h3>What is the free trial period for Premium Membership?</h3>
|
96 |
-
<p>The free trial period for Premium Membership is 7 days. You can enjoy all the benefits of Premium Membership for free for 7 days after you subscribe. You will not be charged until the end of the trial period. You can cancel your subscription at any time during the trial period without any charge.</p>
|
97 |
-
<h3>Where can I download Chess Lv.100 (plus Online) APK?</h3>
|
98 |
-
<p>You can download Chess Lv.100 (plus Online) APK from Google Play Store or from other trusted sources. However, you should be careful when downloading APK files from unknown sources, as they may contain viruses or malware that can harm your device. You should always scan the APK file with an antivirus software before installing it.</p> 401be4b1e0<br />
|
99 |
-
<br />
|
100 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Cmo instalar WhatsApp Business en tu Android con el archivo APK.md
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>WhatsApp Business: What Is It and How to Download It</h1>
|
3 |
-
<p>If you are a business owner who wants to communicate with your customers in a fast, convenient, and secure way, you might want to consider using WhatsApp Business. WhatsApp Business is a tool for companies to engage with customers over the platform. It is built on top of WhatsApp Messenger and includes all the features that you rely on, such as multimedia, free calls, and group chat. There are two ways to use WhatsApp Business: WhatsApp Business App and WhatsApp Business Platform. The app is for small businesses who personally manage conversations with customers. The platform is for medium to large businesses who communicate with customers at scale through programmatic access.</p>
|
4 |
-
<p>In this article, we will explain what WhatsApp Business is, how it differs from WhatsApp, and how you can download it for your Android device. We will also give you some tips on how to use WhatsApp Business effectively to improve your customer experience and grow your business.</p>
|
5 |
-
<h2>whatsapp business descargar apk</h2><br /><p><b><b>Download File</b> ⇒ <a href="https://jinyurl.com/2uNLT8">https://jinyurl.com/2uNLT8</a></b></p><br /><br />
|
6 |
-
<h2>Introduction</h2>
|
7 |
-
<h3>What is WhatsApp Business and why is it useful for businesses</h3>
|
8 |
-
<p>WhatsApp Business is a tool for companies to engage with customers over the platform. It is built on top of WhatsApp Messenger and includes all the features that you rely on, such as multimedia, free calls, and group chat. There are two ways to use WhatsApp Business: WhatsApp Business App and WhatsApp Business Platform. The app is for small businesses who personally manage conversations with customers. To get started with the app, download it and create a profile for your business. The platform is for medium to large businesses who communicate with customers at scale through programmatic access. WhatsApp for business can help you improve visibility, automate communication, and keep your workflow organized.</p>
|
9 |
-
<p>Some of the benefits of using WhatsApp Business are:</p>
|
10 |
-
<ul>
|
11 |
-
<li>You can meet your customers where they already are. WhatsApp has more than 2 billion users around the world, making it one of the most popular messaging apps. By using WhatsApp Business, you can reach your customers on their preferred channel and provide them with a seamless experience.</li>
|
12 |
-
<li>You can drive business outcomes. Whether you want to increase sales, generate leads, or provide support, WhatsApp Business can help you achieve your goals. You can send feature-rich communications, such as files, images, videos, documents, and interactive buttons. You can also use message templates to send notifications, reminders, confirmations, and updates.</li>
|
13 |
-
<li>You can build long-lasting customer relationships. With WhatsApp Business, you can create a personalized and trustworthy connection with your customers. You can use your business name and logo as your profile picture, add information about your products and services in your catalog, and verify your account with a green badge. You can also use end-to-end encryption to ensure that your conversations are secure and private.</li>
|
14 |
-
</ul>
|
15 |
-
<h3>How to download WhatsApp Business APK for Android</h3>
|
16 |
-
<p>If you want to use WhatsApp Business on your Android device, you have two options:</p>
|
17 |
-
<ol>
|
18 |
-
<li>You can download it from the Google Play Store by searching for "WhatsApp Business" or clicking <a href="(^2^)">here</a>. You will need an Android device running Android 5.1 or higher.</li>
|
19 |
-
<li>You can download it from a third-party website by searching for "WhatsApp Business APK" or clicking <a href="(^1^)">here</a>. You will need to enable unknown sources in your device settings before installing the APK file.</li>
|
20 |
-
</ol>
|
21 |
-
<p>Once you have downloaded the app, you can follow these steps to set up your account:</p>
|
22 |
-
<ol>
|
23 |
-
<li>Open the app and agree to the terms of service.</li>
|
24 |
-
<li>Enter your phone number and verify it with a code sent via SMS.</li>
|
25 |
-
<li>Create your business profile and choose a category that best describes your business.</li>
|
26 |
-
<li>Add a profile photo, a business name, and a short description of your business.</li>
|
27 |
-
<li>Optionally, you can add more details, such as your location, hours, website, and email.</li>
|
28 |
-
<li>Start chatting with your customers by tapping on the chat icon at the bottom right corner.</li>
|
29 |
-
</ol>
|
30 |
-
<h2>WhatsApp Business vs WhatsApp: What Are the Differences?</h2>
|
31 |
-
<h3>The main features and benefits of WhatsApp Business</h3>
|
32 |
-
<p>WhatsApp Business is designed to help businesses communicate with their customers in a professional and efficient way. It has some features that are not available on WhatsApp, such as:</p>
|
33 |
-
<ul>
|
34 |
-
<li>Business profile: You can create a profile for your business that includes information such as your address, website, email, and catalog. This helps you showcase your products and services and provide useful information to your customers.</li>
|
35 |
-
<li>Catalog: You can create a catalog of your products and services and share it with your customers. This helps you display your offerings and make it easy for your customers to browse and order.</li>
|
36 |
-
<li>Labels: You can use labels to organize your chats and contacts. You can assign different colors and names to your labels, such as new customer, pending payment, order complete, etc. This helps you keep track of your conversations and manage your workflow.</li>
|
37 |
-
<li>Quick replies: You can use quick replies to save and reuse messages that you frequently send. You can create shortcuts for your quick replies, such as /thankyou, /welcome, /delivery, etc. This helps you save time and respond faster to common questions and requests.</li>
|
38 |
-
<li>Greeting message: You can use a greeting message to introduce your business and welcome new customers. You can set up a greeting message that will be sent automatically when a customer contacts you for the first time or after 14 days of inactivity. This helps you create a good first impression and start the conversation on a positive note.</li>
|
39 |
-
<li>Away message: You can use an away message to let your customers know that you are not available at the moment. You can set up an away message that will be sent automatically when you are offline or outside of your business hours. This helps you manage expectations and inform your customers when they can expect a reply from you.</li>
|
40 |
-
</ul>
|
41 |
-
<h3>The main differences between WhatsApp and WhatsApp Business</h3>
|
42 |
-
<p>WhatsApp Business is a separate app from WhatsApp Messenger. You can use both apps on the same device, but you will need different phone numbers for each app. You can also link your WhatsApp Business account to your Facebook Page to sync your information and reach more customers. Here are some of the main differences between WhatsApp and WhatsApp Business:</p>
|
43 |
-
<p>whatsapp business descargar apk gratis<br />
|
44 |
-
whatsapp business descargar apk ultima version<br />
|
45 |
-
whatsapp business descargar apk para pc<br />
|
46 |
-
whatsapp business descargar apk 2023<br />
|
47 |
-
whatsapp business descargar apk android<br />
|
48 |
-
whatsapp business descargar apk uptodown<br />
|
49 |
-
whatsapp business descargar apk mega<br />
|
50 |
-
whatsapp business descargar apk mod<br />
|
51 |
-
whatsapp business descargar apk sin play store<br />
|
52 |
-
whatsapp business descargar apk para tablet<br />
|
53 |
-
whatsapp business descargar apk full<br />
|
54 |
-
whatsapp business descargar apk mirror<br />
|
55 |
-
whatsapp business descargar apk ios<br />
|
56 |
-
whatsapp business descargar apk mediafire<br />
|
57 |
-
whatsapp business descargar apk 2022<br />
|
58 |
-
whatsapp business descargar apk para iphone<br />
|
59 |
-
whatsapp business descargar apk premium<br />
|
60 |
-
whatsapp business descargar apk pro<br />
|
61 |
-
whatsapp business descargar apk hackeado<br />
|
62 |
-
whatsapp business descargar apk sin anuncios<br />
|
63 |
-
whatsapp business descargar apk antiguo<br />
|
64 |
-
whatsapp business descargar apk beta<br />
|
65 |
-
whatsapp business descargar apk actualizado<br />
|
66 |
-
whatsapp business descargar apk 2021<br />
|
67 |
-
whatsapp business descargar apk para android tv<br />
|
68 |
-
whatsapp business descargar apk para windows 10<br />
|
69 |
-
whatsapp business descargar apk para mac<br />
|
70 |
-
whatsapp business descargar apk para smart tv<br />
|
71 |
-
whatsapp business descargar apk para fire tv stick<br />
|
72 |
-
whatsapp business descargar apk para chromebook<br />
|
73 |
-
whatsapp business descargar apk para linux<br />
|
74 |
-
whatsapp business descargar apk para nokia<br />
|
75 |
-
whatsapp business descargar apk para blackberry<br />
|
76 |
-
whatsapp business descargar apk para huawei<br />
|
77 |
-
whatsapp business descargar apk para xiaomi<br />
|
78 |
-
whatsapp business descargar apk para samsung<br />
|
79 |
-
whatsapp business descargar apk para lg<br />
|
80 |
-
whatsapp business descargar apk para motorola<br />
|
81 |
-
whatsapp business descargar apk para sony<br />
|
82 |
-
whatsapp business descargar apk para oppo<br />
|
83 |
-
whatsapp business descargar apk para vivo<br />
|
84 |
-
whatsapp business descargar apk para realme<br />
|
85 |
-
whatsapp business descargar apk para oneplus<br />
|
86 |
-
whatsapp business descargar apk para asus<br />
|
87 |
-
whatsapp business descargar apk para lenovo<br />
|
88 |
-
whatsapp business descargar apk para acer<br />
|
89 |
-
whatsapp business descargar apk para dell<br />
|
90 |
-
whatsapp business descargar apk para hp<br />
|
91 |
-
whatsapp business descargar apk para toshiba</p>
|
92 |
-
<table>
|
93 |
-
<tr><th>WhatsApp</th><th>WhatsApp Business</th></tr>
|
94 |
-
<tr><td>Personal use</td><td>Business use</td></tr>
|
95 |
-
<tr><td>No business profile</td><td>Business profile with details and catalog</td></tr>
|
96 |
-
<tr><td>No labels</td><td>Labels to organize chats and contacts</td></tr>
|
97 |
-
<tr><td>No quick replies</td><td>Quick replies to save and reuse messages</td></tr>
|
98 |
-
<tr><td>No greeting message</td><td>Greeting message to welcome new customers</td></tr>
|
99 |
-
<tr><td>No away message</td><td>Away message to inform customers when you are not available</td></tr>
|
100 |
-
<tr><td>No analytics</td><td>Analytics to measure performance and customer satisfaction</td></tr>
|
101 |
-
<tr><td>No API access</td><td>API access for programmatic communication</td></tr>
|
102 |
-
<tr><td>No Facebook Page integration</td><td>Facebook Page integration to sync information and reach more customers</td></tr>
|
103 |
-
</table>
|
104 |
-
<h2>How to Use WhatsApp Business Effectively</h2>
|
105 |
-
<h3>How to create a business profile and a catalog</h3>
|
106 |
-
<p>A business profile is a way to showcase your business and provide useful information to your customers. A catalog is a way to display your products and services and make it easy for your customers to browse and order. To create a business profile and a catalog, follow these steps:</p>
|
107 |
-
<ol>
|
108 |
-
<li>Open WhatsApp Business and tap on the menu icon at the top right corner.</li>
|
109 |
-
<li>Tap on Settings and then on Business Settings.</li>
|
110 |
-
<li>Tap on Profile and fill in the details that you want to share with your customers, such as your address, website, email, etc.</li>
|
111 |
-
<li>Tap on Catalog and then on Add Product or Service.</li>
|
112 |
-
<li>Add an image, a name, a price, a description, and a link for each product or service that you want to include in your catalog.</li>
|
113 |
-
<li>Tap on Save when you are done.</li>
|
114 |
-
<li>You can now share your catalog with your customers by tapping on the attachment icon and then on Catalog when you are in a chat.</li>
|
115 |
-
</ol>
|
116 |
-
<h3>How to use labels, quick replies, greeting messages, and away messages</h3>
|
117 |
-
<p>Labels, quick replies, greeting messages, and away messages are some of the features that can help you manage your communication and workflow more efficiently. Here is how you can use them:</p>
|
118 |
-
<ul>
|
119 |
-
<li>Labels: You can use labels to organize your chats and contacts into different categories, such as new customer, pending payment, order complete, etc. To create and assign labels, follow these steps: <ol>
|
120 |
-
<li>Open WhatsApp Business and tap on the menu icon at the top right corner.</li>
|
121 |
-
<li>Tap on Settings and then on Business Settings.</li>
|
122 |
-
<li>Tap on Labels and then on the plus icon at the bottom right corner.</li>
|
123 |
-
<li>Enter a name and choose a color for your label and tap on Save.</li>
|
124 |
-
<li>To assign a label to a chat or a contact, tap and hold on the chat or contact and then tap on the label icon at the top.</li>
|
125 |
-
<li>Select the label that you want to assign and tap on Done.</li>
|
126 |
-
</ol>
|
127 |
-
</li>
|
128 |
-
<li>Quick replies: You can use quick replies to save and reuse messages that you frequently send. To create and use quick replies, follow these steps: <ol>
|
129 |
-
<li>Open WhatsApp Business and tap on the menu icon at the top right corner.</li>
|
130 |
-
<li>Tap on Settings and then on Business Settings.</li>
|
131 |
-
<li>Tap on Quick Replies and then on the plus icon at the bottom right corner.</li>
|
132 |
-
<li>Enter the message that you want to save as a quick reply and add a shortcut for it. For example, /thankyou for "Thank you for choosing us".</li>
|
133 |
-
<li>Optionally, you can add an emoji or an image to your quick reply.</li>
|
134 |
-
<li>Tap on Save when you are done.</li>
|
135 |
-
<li>To use a quick reply in a chat, type the shortcut and then tap on the send icon. The message will be automatically replaced by the quick reply.</li>
|
136 |
-
</ol>
|
137 |
-
</li>
|
138 |
-
<li>Greeting message: You can use a greeting message to introduce your business and welcome new customers. To set up a greeting message, follow these steps: <ol>
|
139 |
-
<li>Open WhatsApp Business and tap on the menu icon at the top right corner.</li>
|
140 |
-
<li>Tap on Settings and then on Business Settings.</li>
|
141 |
-
<li>Tap on Greeting Message and toggle it on.</li>
|
142 |
-
<li>Edit the message that you want to send as a greeting message. You can use placeholders such as customer_name or business_name to personalize your message.</li>
|
143 |
-
<li>Optionally, you can choose to send the greeting message to everyone who messages you, or only to people who message you for the first time or after 14 days of inactivity.</li>
|
144 |
-
<li>Tap on Save when you are done.</li>
|
145 |
-
</ol>
|
146 |
-
</li>
|
147 |
-
<li>Away message: You can use an away message to let your customers know that you are not available at the moment. To set up an away message, follow these steps: <ol>
|
148 |
-
<li>Open WhatsApp Business and tap on the menu icon at the top right corner.</li>
|
149 |
-
<li>Tap on Settings and then on Business Settings.</li>
|
150 |
-
<li>Tap on Away Message and toggle it on.</li>
|
151 |
-
<li>Edit the message that you want to send as an away message. You can use placeholders such as customer_name or business_name to personalize your message.</li>
|
152 |
-
<li>Optionally, you can choose to schedule your away message to be sent only outside of your business hours or always.</li>
|
153 |
-
<li>You can also choose to send your away message to everyone who messages you, or only to people who are not in your contacts or who have not messaged you before.</li>
|
154 |
-
<li>Tap on Save when you are done.</li>
|
155 |
-
</ol></ul>
|
156 |
-
<h2>Conclusion</h2>
|
157 |
-
<p>In conclusion, WhatsApp Business is a tool for companies to engage with customers over the platform. It has some features that are not available on WhatsApp, such as business profile, catalog, labels, quick replies, greeting message, and away message. It also allows you to link your WhatsApp Business account to your Facebook Page and access analytics and API. To download WhatsApp Business APK for Android, you can either get it from the Google Play Store or from a third-party website. To use WhatsApp Business effectively, you should create a business profile and a catalog, use labels, quick replies, greeting messages, and away messages, and integrate WhatsApp Business with other tools and platforms. We hope this article has helped you understand what WhatsApp Business is and how to download it. If you have any questions or feedback, please feel free to contact us.</p>
|
158 |
-
<h2>FAQs</h2>
|
159 |
-
<h3>What is the difference between WhatsApp Business App and WhatsApp Business Platform?</h3>
|
160 |
-
<p>WhatsApp Business App is for small businesses who personally manage conversations with customers. WhatsApp Business Platform is for medium to large businesses who communicate with customers at scale through programmatic access.</p>
|
161 |
-
<h3>Can I use WhatsApp Business on my computer?</h3>
|
162 |
-
<p>Yes, you can use WhatsApp Business on your computer by using WhatsApp Web or WhatsApp Desktop. You will need to scan a QR code with your phone to link your account.</p>
|
163 |
-
<h3>Can I use the same phone number for WhatsApp and WhatsApp Business?</h3>
|
164 |
-
<p>No, you will need different phone numbers for each app. You can use one phone number for your personal account and another for your business account, or you can use a landline number for your business account.</p>
|
165 |
-
<h3>How can I verify my WhatsApp Business account?</h3>
|
166 |
-
<p>To verify your WhatsApp Business account, you will need to apply for a green badge that confirms that your phone number belongs to your business. You can apply for verification through the Facebook Business Manager.</p>
|
167 |
-
<h3>How much does WhatsApp Business cost?</h3>
|
168 |
-
<p>WhatsApp Business App is free to download and use. WhatsApp Business Platform charges a fee for sending message templates and for receiving messages from customers after 24 hours of the last message sent by the business.</p> 401be4b1e0<br />
|
169 |
-
<br />
|
170 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1toTree/lora_test/ppdiffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py
DELETED
@@ -1,299 +0,0 @@
|
|
1 |
-
# Copyright 2022 Katherine Crowson, The HuggingFace Team and hlky. All rights reserved.
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
-
# you may not use this file except in compliance with the License.
|
5 |
-
# You may obtain a copy of the License at
|
6 |
-
#
|
7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
-
#
|
9 |
-
# Unless required by applicable law or agreed to in writing, software
|
10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
-
# See the License for the specific language governing permissions and
|
13 |
-
# limitations under the License.
|
14 |
-
|
15 |
-
from typing import List, Optional, Tuple, Union
|
16 |
-
|
17 |
-
import numpy as np
|
18 |
-
import paddle
|
19 |
-
|
20 |
-
from ..configuration_utils import ConfigMixin, register_to_config
|
21 |
-
from ..utils import _COMPATIBLE_STABLE_DIFFUSION_SCHEDULERS
|
22 |
-
from .scheduling_utils import SchedulerMixin, SchedulerOutput
|
23 |
-
|
24 |
-
|
25 |
-
class KDPM2AncestralDiscreteScheduler(SchedulerMixin, ConfigMixin):
|
26 |
-
"""
|
27 |
-
Scheduler created by @crowsonkb in [k_diffusion](https://github.com/crowsonkb/k-diffusion), see:
|
28 |
-
https://github.com/crowsonkb/k-diffusion/blob/5b3af030dd83e0297272d861c19477735d0317ec/k_diffusion/sampling.py#L188
|
29 |
-
|
30 |
-
Scheduler inspired by DPM-Solver-2 and Algorthim 2 from Karras et al. (2022).
|
31 |
-
|
32 |
-
[`~ConfigMixin`] takes care of storing all config attributes that are passed in the scheduler's `__init__`
|
33 |
-
function, such as `num_train_timesteps`. They can be accessed via `scheduler.config.num_train_timesteps`.
|
34 |
-
[`SchedulerMixin`] provides general loading and saving functionality via the [`SchedulerMixin.save_pretrained`] and
|
35 |
-
[`~SchedulerMixin.from_pretrained`] functions.
|
36 |
-
|
37 |
-
Args:
|
38 |
-
num_train_timesteps (`int`): number of diffusion steps used to train the model.
|
39 |
-
beta_start (`float`): the starting `beta` value of inference.
|
40 |
-
beta_end (`float`): the final `beta` value.
|
41 |
-
beta_schedule (`str`):
|
42 |
-
the beta schedule, a mapping from a beta range to a sequence of betas for stepping the model. Choose from
|
43 |
-
`linear` or `scaled_linear`.
|
44 |
-
trained_betas (`np.ndarray`, optional):
|
45 |
-
option to pass an array of betas directly to the constructor to bypass `beta_start`, `beta_end` etc.
|
46 |
-
prediction_type (`str`, default `epsilon`, optional):
|
47 |
-
prediction type of the scheduler function, one of `epsilon` (predicting the noise of the diffusion
|
48 |
-
process), `sample` (directly predicting the noisy sample`) or `v_prediction` (see section 2.4
|
49 |
-
https://imagen.research.google/video/paper.pdf)
|
50 |
-
"""
|
51 |
-
|
52 |
-
_compatibles = _COMPATIBLE_STABLE_DIFFUSION_SCHEDULERS.copy()
|
53 |
-
order = 2
|
54 |
-
|
55 |
-
@register_to_config
|
56 |
-
def __init__(
|
57 |
-
self,
|
58 |
-
num_train_timesteps: int = 1000,
|
59 |
-
beta_start: float = 0.00085, # sensible defaults
|
60 |
-
beta_end: float = 0.012,
|
61 |
-
beta_schedule: str = "linear",
|
62 |
-
trained_betas: Optional[Union[np.ndarray, List[float]]] = None,
|
63 |
-
prediction_type: str = "epsilon",
|
64 |
-
):
|
65 |
-
if trained_betas is not None:
|
66 |
-
self.betas = paddle.to_tensor(trained_betas, dtype="float32")
|
67 |
-
elif beta_schedule == "linear":
|
68 |
-
self.betas = paddle.linspace(beta_start, beta_end, num_train_timesteps, dtype="float32")
|
69 |
-
elif beta_schedule == "scaled_linear":
|
70 |
-
# this schedule is very specific to the latent diffusion model.
|
71 |
-
self.betas = paddle.linspace(beta_start**0.5, beta_end**0.5, num_train_timesteps, dtype="float32") ** 2
|
72 |
-
else:
|
73 |
-
raise NotImplementedError(f"{beta_schedule} does is not implemented for {self.__class__}")
|
74 |
-
|
75 |
-
self.alphas = 1.0 - self.betas
|
76 |
-
self.alphas_cumprod = paddle.cumprod(self.alphas, 0)
|
77 |
-
|
78 |
-
# set all values
|
79 |
-
self.set_timesteps(num_train_timesteps, num_train_timesteps)
|
80 |
-
|
81 |
-
def index_for_timestep(self, timestep):
|
82 |
-
indices = (self.timesteps == timestep).nonzero()
|
83 |
-
if self.state_in_first_order:
|
84 |
-
pos = -1
|
85 |
-
else:
|
86 |
-
pos = 0
|
87 |
-
return indices[pos].item()
|
88 |
-
|
89 |
-
def scale_model_input(
|
90 |
-
self,
|
91 |
-
sample: paddle.Tensor,
|
92 |
-
timestep: Union[float, paddle.Tensor],
|
93 |
-
) -> paddle.Tensor:
|
94 |
-
"""
|
95 |
-
Args:
|
96 |
-
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the
|
97 |
-
current timestep.
|
98 |
-
sample (`paddle.Tensor`): input sample timestep (`int`, optional): current timestep
|
99 |
-
Returns:
|
100 |
-
`paddle.Tensor`: scaled input sample
|
101 |
-
"""
|
102 |
-
step_index = self.index_for_timestep(timestep)
|
103 |
-
|
104 |
-
if self.state_in_first_order:
|
105 |
-
sigma = self.sigmas[step_index]
|
106 |
-
else:
|
107 |
-
sigma = self.sigmas_interpol[step_index - 1]
|
108 |
-
|
109 |
-
sample = sample / ((sigma**2 + 1) ** 0.5)
|
110 |
-
return sample
|
111 |
-
|
112 |
-
def set_timesteps(
|
113 |
-
self,
|
114 |
-
num_inference_steps: int,
|
115 |
-
num_train_timesteps: Optional[int] = None,
|
116 |
-
):
|
117 |
-
"""
|
118 |
-
Sets the timesteps used for the diffusion chain. Supporting function to be run before inference.
|
119 |
-
|
120 |
-
Args:
|
121 |
-
num_inference_steps (`int`):
|
122 |
-
the number of diffusion steps used when generating samples with a pre-trained model.
|
123 |
-
"""
|
124 |
-
self.num_inference_steps = num_inference_steps
|
125 |
-
|
126 |
-
num_train_timesteps = num_train_timesteps or self.config.num_train_timesteps
|
127 |
-
|
128 |
-
timesteps = np.linspace(0, num_train_timesteps - 1, num_inference_steps, dtype=np.float32)[::-1].copy()
|
129 |
-
|
130 |
-
sigmas = np.array(((1 - self.alphas_cumprod) / self.alphas_cumprod) ** 0.5)
|
131 |
-
self.log_sigmas = paddle.to_tensor(np.log(sigmas), dtype="float32")
|
132 |
-
|
133 |
-
sigmas = np.interp(timesteps, np.arange(0, len(sigmas)), sigmas)
|
134 |
-
sigmas = np.concatenate([sigmas, [0.0]]).astype(np.float32)
|
135 |
-
sigmas = paddle.to_tensor(sigmas)
|
136 |
-
|
137 |
-
# compute up and down sigmas
|
138 |
-
sigmas_next = sigmas.roll(-1)
|
139 |
-
sigmas_next[-1] = 0.0
|
140 |
-
sigmas_up = (sigmas_next**2 * (sigmas**2 - sigmas_next**2) / sigmas**2) ** 0.5
|
141 |
-
sigmas_down = (sigmas_next**2 - sigmas_up**2) ** 0.5
|
142 |
-
sigmas_down[-1] = 0.0
|
143 |
-
|
144 |
-
# compute interpolated sigmas
|
145 |
-
sigmas_interpol = sigmas.log().lerp(sigmas_down.log(), 0.5).exp()
|
146 |
-
sigmas_interpol[-2:] = 0.0
|
147 |
-
|
148 |
-
# set sigmas
|
149 |
-
self.sigmas = paddle.concat([sigmas[:1], sigmas[1:].repeat_interleave(2), sigmas[-1:]])
|
150 |
-
self.sigmas_interpol = paddle.concat(
|
151 |
-
[sigmas_interpol[:1], sigmas_interpol[1:].repeat_interleave(2), sigmas_interpol[-1:]]
|
152 |
-
)
|
153 |
-
self.sigmas_up = paddle.concat([sigmas_up[:1], sigmas_up[1:].repeat_interleave(2), sigmas_up[-1:]])
|
154 |
-
self.sigmas_down = paddle.concat([sigmas_down[:1], sigmas_down[1:].repeat_interleave(2), sigmas_down[-1:]])
|
155 |
-
|
156 |
-
# standard deviation of the initial noise distribution
|
157 |
-
self.init_noise_sigma = self.sigmas.max()
|
158 |
-
|
159 |
-
timesteps = paddle.to_tensor(timesteps)
|
160 |
-
timesteps_interpol = self.sigma_to_t(sigmas_interpol)
|
161 |
-
interleaved_timesteps = paddle.stack((timesteps_interpol[:-2, None], timesteps[1:, None]), axis=-1).flatten()
|
162 |
-
timesteps = paddle.concat([timesteps[:1], interleaved_timesteps])
|
163 |
-
|
164 |
-
self.timesteps = timesteps
|
165 |
-
|
166 |
-
self.sample = None
|
167 |
-
|
168 |
-
def sigma_to_t(self, sigma):
|
169 |
-
# get log sigma
|
170 |
-
log_sigma = sigma.log()
|
171 |
-
|
172 |
-
# get distribution
|
173 |
-
dists = log_sigma - self.log_sigmas[:, None]
|
174 |
-
|
175 |
-
# get sigmas range
|
176 |
-
low_idx = (dists >= 0).cast("int64").cumsum(axis=0).argmax(axis=0).clip(max=self.log_sigmas.shape[0] - 2)
|
177 |
-
high_idx = low_idx + 1
|
178 |
-
|
179 |
-
low = self.log_sigmas[low_idx]
|
180 |
-
high = self.log_sigmas[high_idx]
|
181 |
-
|
182 |
-
# interpolate sigmas
|
183 |
-
w = (low - log_sigma) / (low - high)
|
184 |
-
w = w.clip(0, 1)
|
185 |
-
|
186 |
-
# transform interpolation to time range
|
187 |
-
t = (1 - w) * low_idx + w * high_idx
|
188 |
-
t = t.reshape(sigma.shape)
|
189 |
-
return t
|
190 |
-
|
191 |
-
@property
|
192 |
-
def state_in_first_order(self):
|
193 |
-
return self.sample is None
|
194 |
-
|
195 |
-
def step(
|
196 |
-
self,
|
197 |
-
model_output: Union[paddle.Tensor, np.ndarray],
|
198 |
-
timestep: Union[float, paddle.Tensor],
|
199 |
-
sample: Union[paddle.Tensor, np.ndarray],
|
200 |
-
generator: Optional[Union[paddle.Generator, List[paddle.Generator]]] = None,
|
201 |
-
return_dict: bool = True,
|
202 |
-
) -> Union[SchedulerOutput, Tuple]:
|
203 |
-
"""
|
204 |
-
Args:
|
205 |
-
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion
|
206 |
-
process from the learned model outputs (most often the predicted noise).
|
207 |
-
model_output (`paddle.Tensor` or `np.ndarray`): direct output from learned diffusion model. timestep
|
208 |
-
(`int`): current discrete timestep in the diffusion chain. sample (`paddle.Tensor` or `np.ndarray`):
|
209 |
-
current instance of sample being created by diffusion process.
|
210 |
-
return_dict (`bool`): option for returning tuple rather than SchedulerOutput class
|
211 |
-
Returns:
|
212 |
-
[`~schedulers.scheduling_utils.SchedulerOutput`] or `tuple`:
|
213 |
-
[`~schedulers.scheduling_utils.SchedulerOutput`] if `return_dict` is True, otherwise a `tuple`. When
|
214 |
-
returning a tuple, the first element is the sample tensor.
|
215 |
-
"""
|
216 |
-
step_index = self.index_for_timestep(timestep)
|
217 |
-
|
218 |
-
if self.state_in_first_order:
|
219 |
-
sigma = self.sigmas[step_index]
|
220 |
-
sigma_interpol = self.sigmas_interpol[step_index]
|
221 |
-
sigma_up = self.sigmas_up[step_index]
|
222 |
-
sigma_down = self.sigmas_down[step_index - 1]
|
223 |
-
else:
|
224 |
-
# 2nd order / KPDM2's method
|
225 |
-
sigma = self.sigmas[step_index - 1]
|
226 |
-
sigma_interpol = self.sigmas_interpol[step_index - 1]
|
227 |
-
sigma_up = self.sigmas_up[step_index - 1]
|
228 |
-
sigma_down = self.sigmas_down[step_index - 1]
|
229 |
-
|
230 |
-
# currently only gamma=0 is supported. This usually works best anyways.
|
231 |
-
# We can support gamma in the future but then need to scale the timestep before
|
232 |
-
# passing it to the model which requires a change in API
|
233 |
-
gamma = 0
|
234 |
-
sigma_hat = sigma * (gamma + 1) # Note: sigma_hat == sigma for now
|
235 |
-
|
236 |
-
noise = paddle.randn(model_output.shape, dtype=model_output.dtype, generator=generator)
|
237 |
-
|
238 |
-
# 1. compute predicted original sample (x_0) from sigma-scaled predicted noise
|
239 |
-
if self.config.prediction_type == "epsilon":
|
240 |
-
sigma_input = sigma_hat if self.state_in_first_order else sigma_interpol
|
241 |
-
pred_original_sample = sample - sigma_input * model_output
|
242 |
-
elif self.config.prediction_type == "v_prediction":
|
243 |
-
sigma_input = sigma_hat if self.state_in_first_order else sigma_interpol
|
244 |
-
pred_original_sample = model_output * (-sigma_input / (sigma_input**2 + 1) ** 0.5) + (
|
245 |
-
sample / (sigma_input**2 + 1)
|
246 |
-
)
|
247 |
-
else:
|
248 |
-
raise ValueError(
|
249 |
-
f"prediction_type given as {self.config.prediction_type} must be one of `epsilon`, or `v_prediction`"
|
250 |
-
)
|
251 |
-
|
252 |
-
if self.state_in_first_order:
|
253 |
-
# 2. Convert to an ODE derivative for 1st order
|
254 |
-
derivative = (sample - pred_original_sample) / sigma_hat
|
255 |
-
# 3. delta timestep
|
256 |
-
dt = sigma_interpol - sigma_hat
|
257 |
-
|
258 |
-
# store for 2nd order step
|
259 |
-
self.sample = sample
|
260 |
-
self.dt = dt
|
261 |
-
prev_sample = sample + derivative * dt
|
262 |
-
else:
|
263 |
-
# DPM-Solver-2
|
264 |
-
# 2. Convert to an ODE derivative for 2nd order
|
265 |
-
derivative = (sample - pred_original_sample) / sigma_interpol
|
266 |
-
# 3. delta timestep
|
267 |
-
dt = sigma_down - sigma_hat
|
268 |
-
|
269 |
-
sample = self.sample
|
270 |
-
self.sample = None
|
271 |
-
|
272 |
-
prev_sample = sample + derivative * dt
|
273 |
-
prev_sample = prev_sample + noise * sigma_up
|
274 |
-
|
275 |
-
if not return_dict:
|
276 |
-
return (prev_sample,)
|
277 |
-
|
278 |
-
return SchedulerOutput(prev_sample=prev_sample)
|
279 |
-
|
280 |
-
def add_noise(
|
281 |
-
self,
|
282 |
-
original_samples: paddle.Tensor,
|
283 |
-
noise: paddle.Tensor,
|
284 |
-
timesteps: paddle.Tensor,
|
285 |
-
) -> paddle.Tensor:
|
286 |
-
# Make sure sigmas and timesteps have the same dtype as original_samples
|
287 |
-
self.sigmas = self.sigmas.cast(original_samples.dtype)
|
288 |
-
|
289 |
-
step_indices = [self.index_for_timestep(t) for t in timesteps]
|
290 |
-
|
291 |
-
sigma = self.sigmas[step_indices].flatten()
|
292 |
-
while len(sigma.shape) < len(original_samples.shape):
|
293 |
-
sigma = sigma.unsqueeze(-1)
|
294 |
-
|
295 |
-
noisy_samples = original_samples + noise * sigma
|
296 |
-
return noisy_samples
|
297 |
-
|
298 |
-
def __len__(self):
|
299 |
-
return self.config.num_train_timesteps
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2ndelement/voicevox/speaker_info/b1a81618-b27b-40d2-b0ea-27a9ad408c4b/policy.md
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
dummy4 policy
|
2 |
-
|
3 |
-
https://voicevox.hiroshiba.jp/
|
|
|
|
|
|
|
|
spaces/44brabal/valentinafeve-yolos-fashionpedia/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Valentinafeve Yolos Fashionpedia
|
3 |
-
emoji: 🐨
|
4 |
-
colorFrom: blue
|
5 |
-
colorTo: purple
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.45.1
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: openrail
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/74run/Predict_Car/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Predict Car
|
3 |
-
emoji: 🏢
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: green
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.44.4
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: other
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIConsultant/MusicGen/CODE_OF_CONDUCT.md
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
# Code of Conduct
|
2 |
-
|
3 |
-
## Our Pledge
|
4 |
-
|
5 |
-
In the interest of fostering an open and welcoming environment, we as
|
6 |
-
contributors and maintainers pledge to make participation in our project and
|
7 |
-
our community a harassment-free experience for everyone, regardless of age, body
|
8 |
-
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
9 |
-
level of experience, education, socio-economic status, nationality, personal
|
10 |
-
appearance, race, religion, or sexual identity and orientation.
|
11 |
-
|
12 |
-
## Our Standards
|
13 |
-
|
14 |
-
Examples of behavior that contributes to creating a positive environment
|
15 |
-
include:
|
16 |
-
|
17 |
-
* Using welcoming and inclusive language
|
18 |
-
* Being respectful of differing viewpoints and experiences
|
19 |
-
* Gracefully accepting constructive criticism
|
20 |
-
* Focusing on what is best for the community
|
21 |
-
* Showing empathy towards other community members
|
22 |
-
|
23 |
-
Examples of unacceptable behavior by participants include:
|
24 |
-
|
25 |
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26 |
-
advances
|
27 |
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28 |
-
* Public or private harassment
|
29 |
-
* Publishing others' private information, such as a physical or electronic
|
30 |
-
address, without explicit permission
|
31 |
-
* Other conduct which could reasonably be considered inappropriate in a
|
32 |
-
professional setting
|
33 |
-
|
34 |
-
## Our Responsibilities
|
35 |
-
|
36 |
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37 |
-
behavior and are expected to take appropriate and fair corrective action in
|
38 |
-
response to any instances of unacceptable behavior.
|
39 |
-
|
40 |
-
Project maintainers have the right and responsibility to remove, edit, or
|
41 |
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42 |
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43 |
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44 |
-
threatening, offensive, or harmful.
|
45 |
-
|
46 |
-
## Scope
|
47 |
-
|
48 |
-
This Code of Conduct applies within all project spaces, and it also applies when
|
49 |
-
an individual is representing the project or its community in public spaces.
|
50 |
-
Examples of representing a project or community include using an official
|
51 |
-
project e-mail address, posting via an official social media account, or acting
|
52 |
-
as an appointed representative at an online or offline event. Representation of
|
53 |
-
a project may be further defined and clarified by project maintainers.
|
54 |
-
|
55 |
-
This Code of Conduct also applies outside the project spaces when there is a
|
56 |
-
reasonable belief that an individual's behavior may have a negative impact on
|
57 |
-
the project or its community.
|
58 |
-
|
59 |
-
## Enforcement
|
60 |
-
|
61 |
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
62 |
-
reported by contacting the project team at <[email protected]>. All
|
63 |
-
complaints will be reviewed and investigated and will result in a response that
|
64 |
-
is deemed necessary and appropriate to the circumstances. The project team is
|
65 |
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
66 |
-
Further details of specific enforcement policies may be posted separately.
|
67 |
-
|
68 |
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
69 |
-
faith may face temporary or permanent repercussions as determined by other
|
70 |
-
members of the project's leadership.
|
71 |
-
|
72 |
-
## Attribution
|
73 |
-
|
74 |
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
75 |
-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
76 |
-
|
77 |
-
[homepage]: https://www.contributor-covenant.org
|
78 |
-
|
79 |
-
For answers to common questions about this code of conduct, see
|
80 |
-
https://www.contributor-covenant.org/faq
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ababababababbababa/Arabic_poetry_Sha3bor_mid/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Arabic Poetry Sha3bor Mid
|
3 |
-
emoji: 💻
|
4 |
-
colorFrom: purple
|
5 |
-
colorTo: green
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.29.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/AiMimicry/sovits-models/vdecoder/hifigan/env.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import shutil
|
3 |
-
|
4 |
-
|
5 |
-
class AttrDict(dict):
|
6 |
-
def __init__(self, *args, **kwargs):
|
7 |
-
super(AttrDict, self).__init__(*args, **kwargs)
|
8 |
-
self.__dict__ = self
|
9 |
-
|
10 |
-
|
11 |
-
def build_env(config, config_name, path):
|
12 |
-
t_path = os.path.join(path, config_name)
|
13 |
-
if config != t_path:
|
14 |
-
os.makedirs(path, exist_ok=True)
|
15 |
-
shutil.copyfile(config, os.path.join(path, config_name))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlexWortega/AlexWortega-instruct_rugptlarge/app.py
DELETED
@@ -1,99 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
import gradio as gr
|
5 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig
|
6 |
-
|
7 |
-
from transformers import GPT2TokenizerFast,GPT2LMHeadModel
|
8 |
-
tokenizer = GPT2TokenizerFast.from_pretrained("AlexWortega/instruct_rugptlarge")
|
9 |
-
special_tokens_dict = {'additional_special_tokens': ['<code>', '</code>', '<instructionS>', '<instructionE>', '<next>']}
|
10 |
-
|
11 |
-
tokenizer.add_special_tokens(special_tokens_dict)
|
12 |
-
device = 'cpu' # мэх дорога
|
13 |
-
model = GPT2LMHeadModel.from_pretrained("AlexWortega/instruct_rugptlarge")
|
14 |
-
#
|
15 |
-
|
16 |
-
model.resize_token_embeddings(len(tokenizer))
|
17 |
-
|
18 |
-
def generate_prompt(instruction, input=None):
|
19 |
-
if input:
|
20 |
-
return f"{input}:"
|
21 |
-
return f"{instruction}"
|
22 |
-
|
23 |
-
def generate_seqs(q, temp, topp, topk, nb, maxtok):
|
24 |
-
k=1
|
25 |
-
gen_kwargs = {
|
26 |
-
"min_length": 20,
|
27 |
-
"max_new_tokens": maxtok,
|
28 |
-
"top_k": topk,
|
29 |
-
"top_p": topp,
|
30 |
-
"do_sample": True,
|
31 |
-
"early_stopping": True,
|
32 |
-
"no_repeat_ngram_size": 2,
|
33 |
-
"temperature":temp,
|
34 |
-
|
35 |
-
"eos_token_id": tokenizer.eos_token_id,
|
36 |
-
"pad_token_id": tokenizer.eos_token_id,
|
37 |
-
"use_cache": True,
|
38 |
-
"repetition_penalty": 1.5,
|
39 |
-
"length_penalty": 0.8,
|
40 |
-
"num_beams": nb,
|
41 |
-
"num_return_sequences": k
|
42 |
-
}
|
43 |
-
if len(q)>0:
|
44 |
-
q = q + '<instructionS>'
|
45 |
-
else:
|
46 |
-
q = 'Как зарабатывать денег на нейросетях ?' + '<instructionS>'
|
47 |
-
t = tokenizer.encode(q, return_tensors='pt').to(device)
|
48 |
-
g = model.generate(t, **gen_kwargs)
|
49 |
-
generated_sequences = tokenizer.batch_decode(g, skip_special_tokens=False)
|
50 |
-
#print(generated_sequences)
|
51 |
-
# Add </s></s>A: after the question and before each generated sequence
|
52 |
-
#sequences = [f"H:{q}</s></s>A:{s.replace(q, '')}" for s in generated_sequences]
|
53 |
-
|
54 |
-
# Compute the reward score for each generated sequence
|
55 |
-
#cores = [reward_model.reward_score(q, s.split('</s></s>A:')[-1]) for s in sequences]
|
56 |
-
|
57 |
-
# Return the k sequences with the highest score and their corresponding scores
|
58 |
-
# results = [(s, score) for score, s in sorted(zip(scores, sequences), reverse=True)[:k]]
|
59 |
-
ans = generated_sequences[0].replace('<instructionS>','\n').replace('<instructionE>','').replace('<|endoftext|>','')
|
60 |
-
return ans
|
61 |
-
|
62 |
-
description_html = '''
|
63 |
-
<p>Обучена на 2v100, коллективом авторов:</p>
|
64 |
-
<ul>
|
65 |
-
<li><a href="https://t.me/YallenGusev" target="_blank">@YallenGusev</a></li>
|
66 |
-
<li><a href="https://t.me/lovedeathtransformers" target="_blank">@lovedeathtransformers</a></li>
|
67 |
-
<li><a href="https://t.me/alexkuk" target="_blank">@alexkuk</a></li>
|
68 |
-
<li><a href="https://t.me/chckdskeasfsd" target="_blank">@chckdskeasfsd</a></li>
|
69 |
-
<li><a href="https://t.me/dno5iq" target="_blank">@dno5iq</a></li>
|
70 |
-
</ul>
|
71 |
-
'''
|
72 |
-
|
73 |
-
g = gr.Interface(
|
74 |
-
fn=generate_seqs,
|
75 |
-
inputs=[
|
76 |
-
gr.components.Textbox(
|
77 |
-
lines=2, label="Впишите сюда задачу, а я попробую решить", placeholder="Как зарабатывать денег на нейросетях?"
|
78 |
-
),
|
79 |
-
#gr.components.Textbox(lines=2, label="Вход", placeholder="Нет"),
|
80 |
-
gr.components.Slider(minimum=0.1, maximum=2, value=1.0, label="Temperature"),
|
81 |
-
gr.components.Slider(minimum=0, maximum=1, value=0.9, label="Top p"),
|
82 |
-
gr.components.Slider(minimum=0, maximum=100, value=50, label="Top k"),
|
83 |
-
gr.components.Slider(minimum=0, maximum=5, step=1, value=4, label="Beams"),
|
84 |
-
gr.components.Slider(
|
85 |
-
minimum=1, maximum=256, step=1, value=100, label="Max tokens"
|
86 |
-
),
|
87 |
-
],
|
88 |
-
outputs=[
|
89 |
-
gr.inputs.Textbox(
|
90 |
-
lines=5,
|
91 |
-
label="Output",
|
92 |
-
)
|
93 |
-
],
|
94 |
-
title="ruInstructlarge",
|
95 |
-
description=description_html)
|
96 |
-
|
97 |
-
|
98 |
-
g.queue(concurrency_count=5)
|
99 |
-
g.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlexZou/Deploy_Restoration/model/blocks.py
DELETED
@@ -1,281 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
Code copy from uniformer source code:
|
3 |
-
https://github.com/Sense-X/UniFormer
|
4 |
-
"""
|
5 |
-
import os
|
6 |
-
import torch
|
7 |
-
import torch.nn as nn
|
8 |
-
from functools import partial
|
9 |
-
import math
|
10 |
-
from timm.models.vision_transformer import VisionTransformer, _cfg
|
11 |
-
from timm.models.registry import register_model
|
12 |
-
from timm.models.layers import trunc_normal_, DropPath, to_2tuple
|
13 |
-
|
14 |
-
# ResMLP's normalization
|
15 |
-
class Aff(nn.Module):
|
16 |
-
def __init__(self, dim):
|
17 |
-
super().__init__()
|
18 |
-
# learnable
|
19 |
-
self.alpha = nn.Parameter(torch.ones([1, 1, dim]))
|
20 |
-
self.beta = nn.Parameter(torch.zeros([1, 1, dim]))
|
21 |
-
|
22 |
-
def forward(self, x):
|
23 |
-
x = x * self.alpha + self.beta
|
24 |
-
return x
|
25 |
-
|
26 |
-
# Color Normalization
|
27 |
-
class Aff_channel(nn.Module):
|
28 |
-
def __init__(self, dim, channel_first = True):
|
29 |
-
super().__init__()
|
30 |
-
# learnable
|
31 |
-
self.alpha = nn.Parameter(torch.ones([1, 1, dim]))
|
32 |
-
self.beta = nn.Parameter(torch.zeros([1, 1, dim]))
|
33 |
-
self.color = nn.Parameter(torch.eye(dim))
|
34 |
-
self.channel_first = channel_first
|
35 |
-
|
36 |
-
def forward(self, x):
|
37 |
-
if self.channel_first:
|
38 |
-
x1 = torch.tensordot(x, self.color, dims=[[-1], [-1]])
|
39 |
-
x2 = x1 * self.alpha + self.beta
|
40 |
-
else:
|
41 |
-
x1 = x * self.alpha + self.beta
|
42 |
-
x2 = torch.tensordot(x1, self.color, dims=[[-1], [-1]])
|
43 |
-
return x2
|
44 |
-
|
45 |
-
class Mlp(nn.Module):
|
46 |
-
# taken from https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/vision_transformer.py
|
47 |
-
def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
|
48 |
-
super().__init__()
|
49 |
-
out_features = out_features or in_features
|
50 |
-
hidden_features = hidden_features or in_features
|
51 |
-
self.fc1 = nn.Linear(in_features, hidden_features)
|
52 |
-
self.act = act_layer()
|
53 |
-
self.fc2 = nn.Linear(hidden_features, out_features)
|
54 |
-
self.drop = nn.Dropout(drop)
|
55 |
-
|
56 |
-
def forward(self, x):
|
57 |
-
x = self.fc1(x)
|
58 |
-
x = self.act(x)
|
59 |
-
x = self.drop(x)
|
60 |
-
x = self.fc2(x)
|
61 |
-
x = self.drop(x)
|
62 |
-
return x
|
63 |
-
|
64 |
-
class CMlp(nn.Module):
|
65 |
-
# taken from https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/vision_transformer.py
|
66 |
-
def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
|
67 |
-
super().__init__()
|
68 |
-
out_features = out_features or in_features
|
69 |
-
hidden_features = hidden_features or in_features
|
70 |
-
self.fc1 = nn.Conv2d(in_features, hidden_features, 1)
|
71 |
-
self.act = act_layer()
|
72 |
-
self.fc2 = nn.Conv2d(hidden_features, out_features, 1)
|
73 |
-
self.drop = nn.Dropout(drop)
|
74 |
-
|
75 |
-
def forward(self, x):
|
76 |
-
x = self.fc1(x)
|
77 |
-
x = self.act(x)
|
78 |
-
x = self.drop(x)
|
79 |
-
x = self.fc2(x)
|
80 |
-
x = self.drop(x)
|
81 |
-
return x
|
82 |
-
|
83 |
-
class CBlock_ln(nn.Module):
|
84 |
-
def __init__(self, dim, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0.,
|
85 |
-
drop_path=0., act_layer=nn.GELU, norm_layer=Aff_channel, init_values=1e-4):
|
86 |
-
super().__init__()
|
87 |
-
self.pos_embed = nn.Conv2d(dim, dim, 3, padding=1, groups=dim)
|
88 |
-
#self.norm1 = Aff_channel(dim)
|
89 |
-
self.norm1 = norm_layer(dim)
|
90 |
-
self.conv1 = nn.Conv2d(dim, dim, 1)
|
91 |
-
self.conv2 = nn.Conv2d(dim, dim, 1)
|
92 |
-
self.attn = nn.Conv2d(dim, dim, 5, padding=2, groups=dim)
|
93 |
-
# NOTE: drop path for stochastic depth, we shall see if this is better than dropout here
|
94 |
-
self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
|
95 |
-
#self.norm2 = Aff_channel(dim)
|
96 |
-
self.norm2 = norm_layer(dim)
|
97 |
-
mlp_hidden_dim = int(dim * mlp_ratio)
|
98 |
-
self.gamma_1 = nn.Parameter(init_values * torch.ones((1, dim, 1, 1)), requires_grad=True)
|
99 |
-
self.gamma_2 = nn.Parameter(init_values * torch.ones((1, dim, 1, 1)), requires_grad=True)
|
100 |
-
self.mlp = CMlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
|
101 |
-
|
102 |
-
def forward(self, x):
|
103 |
-
x = x + self.pos_embed(x)
|
104 |
-
B, C, H, W = x.shape
|
105 |
-
#print(x.shape)
|
106 |
-
norm_x = x.flatten(2).transpose(1, 2)
|
107 |
-
#print(norm_x.shape)
|
108 |
-
norm_x = self.norm1(norm_x)
|
109 |
-
norm_x = norm_x.view(B, H, W, C).permute(0, 3, 1, 2)
|
110 |
-
|
111 |
-
|
112 |
-
x = x + self.drop_path(self.gamma_1*self.conv2(self.attn(self.conv1(norm_x))))
|
113 |
-
norm_x = x.flatten(2).transpose(1, 2)
|
114 |
-
norm_x = self.norm2(norm_x)
|
115 |
-
norm_x = norm_x.view(B, H, W, C).permute(0, 3, 1, 2)
|
116 |
-
x = x + self.drop_path(self.gamma_2*self.mlp(norm_x))
|
117 |
-
return x
|
118 |
-
|
119 |
-
|
120 |
-
def window_partition(x, window_size):
|
121 |
-
"""
|
122 |
-
Args:
|
123 |
-
x: (B, H, W, C)
|
124 |
-
window_size (int): window size
|
125 |
-
Returns:
|
126 |
-
windows: (num_windows*B, window_size, window_size, C)
|
127 |
-
"""
|
128 |
-
B, H, W, C = x.shape
|
129 |
-
#print(x.shape)
|
130 |
-
x = x.view(B, H // window_size, window_size, W // window_size, window_size, C)
|
131 |
-
windows = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(-1, window_size, window_size, C)
|
132 |
-
return windows
|
133 |
-
|
134 |
-
|
135 |
-
def window_reverse(windows, window_size, H, W):
|
136 |
-
"""
|
137 |
-
Args:
|
138 |
-
windows: (num_windows*B, window_size, window_size, C)
|
139 |
-
window_size (int): Window size
|
140 |
-
H (int): Height of image
|
141 |
-
W (int): Width of image
|
142 |
-
Returns:
|
143 |
-
x: (B, H, W, C)
|
144 |
-
"""
|
145 |
-
B = int(windows.shape[0] / (H * W / window_size / window_size))
|
146 |
-
x = windows.view(B, H // window_size, W // window_size, window_size, window_size, -1)
|
147 |
-
x = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(B, H, W, -1)
|
148 |
-
return x
|
149 |
-
|
150 |
-
|
151 |
-
class WindowAttention(nn.Module):
|
152 |
-
r""" Window based multi-head self attention (W-MSA) module with relative position bias.
|
153 |
-
It supports both of shifted and non-shifted window.
|
154 |
-
Args:
|
155 |
-
dim (int): Number of input channels.
|
156 |
-
window_size (tuple[int]): The height and width of the window.
|
157 |
-
num_heads (int): Number of attention heads.
|
158 |
-
qkv_bias (bool, optional): If True, add a learnable bias to query, key, value. Default: True
|
159 |
-
qk_scale (float | None, optional): Override default qk scale of head_dim ** -0.5 if set
|
160 |
-
attn_drop (float, optional): Dropout ratio of attention weight. Default: 0.0
|
161 |
-
proj_drop (float, optional): Dropout ratio of output. Default: 0.0
|
162 |
-
"""
|
163 |
-
|
164 |
-
def __init__(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.):
|
165 |
-
super().__init__()
|
166 |
-
self.dim = dim
|
167 |
-
self.window_size = window_size # Wh, Ww
|
168 |
-
self.num_heads = num_heads
|
169 |
-
head_dim = dim // num_heads
|
170 |
-
self.scale = qk_scale or head_dim ** -0.5
|
171 |
-
|
172 |
-
self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias)
|
173 |
-
self.attn_drop = nn.Dropout(attn_drop)
|
174 |
-
self.proj = nn.Linear(dim, dim)
|
175 |
-
self.proj_drop = nn.Dropout(proj_drop)
|
176 |
-
|
177 |
-
self.softmax = nn.Softmax(dim=-1)
|
178 |
-
|
179 |
-
def forward(self, x):
|
180 |
-
B_, N, C = x.shape
|
181 |
-
qkv = self.qkv(x).reshape(B_, N, 3, self.num_heads, C // self.num_heads).permute(2, 0, 3, 1, 4)
|
182 |
-
q, k, v = qkv[0], qkv[1], qkv[2] # make torchscript happy (cannot use tensor as tuple)
|
183 |
-
|
184 |
-
q = q * self.scale
|
185 |
-
attn = (q @ k.transpose(-2, -1))
|
186 |
-
|
187 |
-
attn = self.softmax(attn)
|
188 |
-
|
189 |
-
attn = self.attn_drop(attn)
|
190 |
-
|
191 |
-
x = (attn @ v).transpose(1, 2).reshape(B_, N, C)
|
192 |
-
x = self.proj(x)
|
193 |
-
x = self.proj_drop(x)
|
194 |
-
return x
|
195 |
-
|
196 |
-
## Layer_norm, Aff_norm, Aff_channel_norm
|
197 |
-
class SwinTransformerBlock(nn.Module):
|
198 |
-
r""" Swin Transformer Block.
|
199 |
-
Args:
|
200 |
-
dim (int): Number of input channels.
|
201 |
-
input_resolution (tuple[int]): Input resulotion.
|
202 |
-
num_heads (int): Number of attention heads.
|
203 |
-
window_size (int): Window size.
|
204 |
-
shift_size (int): Shift size for SW-MSA.
|
205 |
-
mlp_ratio (float): Ratio of mlp hidden dim to embedding dim.
|
206 |
-
qkv_bias (bool, optional): If True, add a learnable bias to query, key, value. Default: True
|
207 |
-
qk_scale (float | None, optional): Override default qk scale of head_dim ** -0.5 if set.
|
208 |
-
drop (float, optional): Dropout rate. Default: 0.0
|
209 |
-
attn_drop (float, optional): Attention dropout rate. Default: 0.0
|
210 |
-
drop_path (float, optional): Stochastic depth rate. Default: 0.0
|
211 |
-
act_layer (nn.Module, optional): Activation layer. Default: nn.GELU
|
212 |
-
norm_layer (nn.Module, optional): Normalization layer. Default: nn.LayerNorm
|
213 |
-
"""
|
214 |
-
|
215 |
-
def __init__(self, dim, num_heads=2, window_size=8, shift_size=0,
|
216 |
-
mlp_ratio=4., qkv_bias=True, qk_scale=None, drop=0., attn_drop=0., drop_path=0.,
|
217 |
-
act_layer=nn.GELU, norm_layer=Aff_channel):
|
218 |
-
super().__init__()
|
219 |
-
self.dim = dim
|
220 |
-
self.num_heads = num_heads
|
221 |
-
self.window_size = window_size
|
222 |
-
self.shift_size = shift_size
|
223 |
-
self.mlp_ratio = mlp_ratio
|
224 |
-
|
225 |
-
self.pos_embed = nn.Conv2d(dim, dim, 3, padding=1, groups=dim)
|
226 |
-
#self.norm1 = norm_layer(dim)
|
227 |
-
self.norm1 = norm_layer(dim)
|
228 |
-
self.attn = WindowAttention(
|
229 |
-
dim, window_size=to_2tuple(self.window_size), num_heads=num_heads,
|
230 |
-
qkv_bias=qkv_bias, qk_scale=qk_scale, attn_drop=attn_drop, proj_drop=drop)
|
231 |
-
|
232 |
-
self.drop_path = DropPath(drop_path) if drop_path > 0. else nn.Identity()
|
233 |
-
#self.norm2 = norm_layer(dim)
|
234 |
-
self.norm2 = norm_layer(dim)
|
235 |
-
mlp_hidden_dim = int(dim * mlp_ratio)
|
236 |
-
self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
|
237 |
-
|
238 |
-
def forward(self, x):
|
239 |
-
x = x + self.pos_embed(x)
|
240 |
-
B, C, H, W = x.shape
|
241 |
-
x = x.flatten(2).transpose(1, 2)
|
242 |
-
|
243 |
-
shortcut = x
|
244 |
-
x = self.norm1(x)
|
245 |
-
x = x.view(B, H, W, C)
|
246 |
-
|
247 |
-
# cyclic shift
|
248 |
-
if self.shift_size > 0:
|
249 |
-
shifted_x = torch.roll(x, shifts=(-self.shift_size, -self.shift_size), dims=(1, 2))
|
250 |
-
else:
|
251 |
-
shifted_x = x
|
252 |
-
|
253 |
-
# partition windows
|
254 |
-
x_windows = window_partition(shifted_x, self.window_size) # nW*B, window_size, window_size, C
|
255 |
-
x_windows = x_windows.view(-1, self.window_size * self.window_size, C) # nW*B, window_size*window_size, C
|
256 |
-
|
257 |
-
# W-MSA/SW-MSA
|
258 |
-
attn_windows = self.attn(x_windows) # nW*B, window_size*window_size, C
|
259 |
-
|
260 |
-
# merge windows
|
261 |
-
attn_windows = attn_windows.view(-1, self.window_size, self.window_size, C)
|
262 |
-
shifted_x = window_reverse(attn_windows, self.window_size, H, W) # B H' W' C
|
263 |
-
|
264 |
-
x = shifted_x
|
265 |
-
x = x.view(B, H * W, C)
|
266 |
-
|
267 |
-
# FFN
|
268 |
-
x = shortcut + self.drop_path(x)
|
269 |
-
x = x + self.drop_path(self.mlp(self.norm2(x)))
|
270 |
-
x = x.transpose(1, 2).reshape(B, C, H, W)
|
271 |
-
|
272 |
-
return x
|
273 |
-
|
274 |
-
|
275 |
-
if __name__ == "__main__":
|
276 |
-
os.environ['CUDA_VISIBLE_DEVICES']='1'
|
277 |
-
cb_blovk = CBlock_ln(dim = 16)
|
278 |
-
x = torch.Tensor(1, 16, 400, 600)
|
279 |
-
swin = SwinTransformerBlock(dim=16, num_heads=4)
|
280 |
-
x = cb_blovk(x)
|
281 |
-
print(x.shape)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Alycer/VITS-Umamusume-voice-synthesizer/transforms.py
DELETED
@@ -1,193 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch.nn import functional as F
|
3 |
-
|
4 |
-
import numpy as np
|
5 |
-
|
6 |
-
|
7 |
-
DEFAULT_MIN_BIN_WIDTH = 1e-3
|
8 |
-
DEFAULT_MIN_BIN_HEIGHT = 1e-3
|
9 |
-
DEFAULT_MIN_DERIVATIVE = 1e-3
|
10 |
-
|
11 |
-
|
12 |
-
def piecewise_rational_quadratic_transform(inputs,
|
13 |
-
unnormalized_widths,
|
14 |
-
unnormalized_heights,
|
15 |
-
unnormalized_derivatives,
|
16 |
-
inverse=False,
|
17 |
-
tails=None,
|
18 |
-
tail_bound=1.,
|
19 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
20 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
21 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE):
|
22 |
-
|
23 |
-
if tails is None:
|
24 |
-
spline_fn = rational_quadratic_spline
|
25 |
-
spline_kwargs = {}
|
26 |
-
else:
|
27 |
-
spline_fn = unconstrained_rational_quadratic_spline
|
28 |
-
spline_kwargs = {
|
29 |
-
'tails': tails,
|
30 |
-
'tail_bound': tail_bound
|
31 |
-
}
|
32 |
-
|
33 |
-
outputs, logabsdet = spline_fn(
|
34 |
-
inputs=inputs,
|
35 |
-
unnormalized_widths=unnormalized_widths,
|
36 |
-
unnormalized_heights=unnormalized_heights,
|
37 |
-
unnormalized_derivatives=unnormalized_derivatives,
|
38 |
-
inverse=inverse,
|
39 |
-
min_bin_width=min_bin_width,
|
40 |
-
min_bin_height=min_bin_height,
|
41 |
-
min_derivative=min_derivative,
|
42 |
-
**spline_kwargs
|
43 |
-
)
|
44 |
-
return outputs, logabsdet
|
45 |
-
|
46 |
-
|
47 |
-
def searchsorted(bin_locations, inputs, eps=1e-6):
|
48 |
-
bin_locations[..., -1] += eps
|
49 |
-
return torch.sum(
|
50 |
-
inputs[..., None] >= bin_locations,
|
51 |
-
dim=-1
|
52 |
-
) - 1
|
53 |
-
|
54 |
-
|
55 |
-
def unconstrained_rational_quadratic_spline(inputs,
|
56 |
-
unnormalized_widths,
|
57 |
-
unnormalized_heights,
|
58 |
-
unnormalized_derivatives,
|
59 |
-
inverse=False,
|
60 |
-
tails='linear',
|
61 |
-
tail_bound=1.,
|
62 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
63 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
64 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE):
|
65 |
-
inside_interval_mask = (inputs >= -tail_bound) & (inputs <= tail_bound)
|
66 |
-
outside_interval_mask = ~inside_interval_mask
|
67 |
-
|
68 |
-
outputs = torch.zeros_like(inputs)
|
69 |
-
logabsdet = torch.zeros_like(inputs)
|
70 |
-
|
71 |
-
if tails == 'linear':
|
72 |
-
unnormalized_derivatives = F.pad(unnormalized_derivatives, pad=(1, 1))
|
73 |
-
constant = np.log(np.exp(1 - min_derivative) - 1)
|
74 |
-
unnormalized_derivatives[..., 0] = constant
|
75 |
-
unnormalized_derivatives[..., -1] = constant
|
76 |
-
|
77 |
-
outputs[outside_interval_mask] = inputs[outside_interval_mask]
|
78 |
-
logabsdet[outside_interval_mask] = 0
|
79 |
-
else:
|
80 |
-
raise RuntimeError('{} tails are not implemented.'.format(tails))
|
81 |
-
|
82 |
-
outputs[inside_interval_mask], logabsdet[inside_interval_mask] = rational_quadratic_spline(
|
83 |
-
inputs=inputs[inside_interval_mask],
|
84 |
-
unnormalized_widths=unnormalized_widths[inside_interval_mask, :],
|
85 |
-
unnormalized_heights=unnormalized_heights[inside_interval_mask, :],
|
86 |
-
unnormalized_derivatives=unnormalized_derivatives[inside_interval_mask, :],
|
87 |
-
inverse=inverse,
|
88 |
-
left=-tail_bound, right=tail_bound, bottom=-tail_bound, top=tail_bound,
|
89 |
-
min_bin_width=min_bin_width,
|
90 |
-
min_bin_height=min_bin_height,
|
91 |
-
min_derivative=min_derivative
|
92 |
-
)
|
93 |
-
|
94 |
-
return outputs, logabsdet
|
95 |
-
|
96 |
-
def rational_quadratic_spline(inputs,
|
97 |
-
unnormalized_widths,
|
98 |
-
unnormalized_heights,
|
99 |
-
unnormalized_derivatives,
|
100 |
-
inverse=False,
|
101 |
-
left=0., right=1., bottom=0., top=1.,
|
102 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
103 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
104 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE):
|
105 |
-
if torch.min(inputs) < left or torch.max(inputs) > right:
|
106 |
-
raise ValueError('Input to a transform is not within its domain')
|
107 |
-
|
108 |
-
num_bins = unnormalized_widths.shape[-1]
|
109 |
-
|
110 |
-
if min_bin_width * num_bins > 1.0:
|
111 |
-
raise ValueError('Minimal bin width too large for the number of bins')
|
112 |
-
if min_bin_height * num_bins > 1.0:
|
113 |
-
raise ValueError('Minimal bin height too large for the number of bins')
|
114 |
-
|
115 |
-
widths = F.softmax(unnormalized_widths, dim=-1)
|
116 |
-
widths = min_bin_width + (1 - min_bin_width * num_bins) * widths
|
117 |
-
cumwidths = torch.cumsum(widths, dim=-1)
|
118 |
-
cumwidths = F.pad(cumwidths, pad=(1, 0), mode='constant', value=0.0)
|
119 |
-
cumwidths = (right - left) * cumwidths + left
|
120 |
-
cumwidths[..., 0] = left
|
121 |
-
cumwidths[..., -1] = right
|
122 |
-
widths = cumwidths[..., 1:] - cumwidths[..., :-1]
|
123 |
-
|
124 |
-
derivatives = min_derivative + F.softplus(unnormalized_derivatives)
|
125 |
-
|
126 |
-
heights = F.softmax(unnormalized_heights, dim=-1)
|
127 |
-
heights = min_bin_height + (1 - min_bin_height * num_bins) * heights
|
128 |
-
cumheights = torch.cumsum(heights, dim=-1)
|
129 |
-
cumheights = F.pad(cumheights, pad=(1, 0), mode='constant', value=0.0)
|
130 |
-
cumheights = (top - bottom) * cumheights + bottom
|
131 |
-
cumheights[..., 0] = bottom
|
132 |
-
cumheights[..., -1] = top
|
133 |
-
heights = cumheights[..., 1:] - cumheights[..., :-1]
|
134 |
-
|
135 |
-
if inverse:
|
136 |
-
bin_idx = searchsorted(cumheights, inputs)[..., None]
|
137 |
-
else:
|
138 |
-
bin_idx = searchsorted(cumwidths, inputs)[..., None]
|
139 |
-
|
140 |
-
input_cumwidths = cumwidths.gather(-1, bin_idx)[..., 0]
|
141 |
-
input_bin_widths = widths.gather(-1, bin_idx)[..., 0]
|
142 |
-
|
143 |
-
input_cumheights = cumheights.gather(-1, bin_idx)[..., 0]
|
144 |
-
delta = heights / widths
|
145 |
-
input_delta = delta.gather(-1, bin_idx)[..., 0]
|
146 |
-
|
147 |
-
input_derivatives = derivatives.gather(-1, bin_idx)[..., 0]
|
148 |
-
input_derivatives_plus_one = derivatives[..., 1:].gather(-1, bin_idx)[..., 0]
|
149 |
-
|
150 |
-
input_heights = heights.gather(-1, bin_idx)[..., 0]
|
151 |
-
|
152 |
-
if inverse:
|
153 |
-
a = (((inputs - input_cumheights) * (input_derivatives
|
154 |
-
+ input_derivatives_plus_one
|
155 |
-
- 2 * input_delta)
|
156 |
-
+ input_heights * (input_delta - input_derivatives)))
|
157 |
-
b = (input_heights * input_derivatives
|
158 |
-
- (inputs - input_cumheights) * (input_derivatives
|
159 |
-
+ input_derivatives_plus_one
|
160 |
-
- 2 * input_delta))
|
161 |
-
c = - input_delta * (inputs - input_cumheights)
|
162 |
-
|
163 |
-
discriminant = b.pow(2) - 4 * a * c
|
164 |
-
assert (discriminant >= 0).all()
|
165 |
-
|
166 |
-
root = (2 * c) / (-b - torch.sqrt(discriminant))
|
167 |
-
outputs = root * input_bin_widths + input_cumwidths
|
168 |
-
|
169 |
-
theta_one_minus_theta = root * (1 - root)
|
170 |
-
denominator = input_delta + ((input_derivatives + input_derivatives_plus_one - 2 * input_delta)
|
171 |
-
* theta_one_minus_theta)
|
172 |
-
derivative_numerator = input_delta.pow(2) * (input_derivatives_plus_one * root.pow(2)
|
173 |
-
+ 2 * input_delta * theta_one_minus_theta
|
174 |
-
+ input_derivatives * (1 - root).pow(2))
|
175 |
-
logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator)
|
176 |
-
|
177 |
-
return outputs, -logabsdet
|
178 |
-
else:
|
179 |
-
theta = (inputs - input_cumwidths) / input_bin_widths
|
180 |
-
theta_one_minus_theta = theta * (1 - theta)
|
181 |
-
|
182 |
-
numerator = input_heights * (input_delta * theta.pow(2)
|
183 |
-
+ input_derivatives * theta_one_minus_theta)
|
184 |
-
denominator = input_delta + ((input_derivatives + input_derivatives_plus_one - 2 * input_delta)
|
185 |
-
* theta_one_minus_theta)
|
186 |
-
outputs = input_cumheights + numerator / denominator
|
187 |
-
|
188 |
-
derivative_numerator = input_delta.pow(2) * (input_derivatives_plus_one * theta.pow(2)
|
189 |
-
+ 2 * input_delta * theta_one_minus_theta
|
190 |
-
+ input_derivatives * (1 - theta).pow(2))
|
191 |
-
logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator)
|
192 |
-
|
193 |
-
return outputs, logabsdet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AndrewRWilliams/video-whisper/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Video Whisper
|
3 |
-
emoji: 😻
|
4 |
-
colorFrom: indigo
|
5 |
-
colorTo: blue
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.4.1
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: openrail
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/using-diffusers/reproducibility.md
DELETED
@@ -1,191 +0,0 @@
|
|
1 |
-
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
|
2 |
-
|
3 |
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
4 |
-
the License. You may obtain a copy of the License at
|
5 |
-
|
6 |
-
http://www.apache.org/licenses/LICENSE-2.0
|
7 |
-
|
8 |
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
9 |
-
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
10 |
-
specific language governing permissions and limitations under the License.
|
11 |
-
-->
|
12 |
-
|
13 |
-
# Create reproducible pipelines
|
14 |
-
|
15 |
-
[[open-in-colab]]
|
16 |
-
|
17 |
-
Reproducibility is important for testing, replicating results, and can even be used to [improve image quality](reusing_seeds). However, the randomness in diffusion models is a desired property because it allows the pipeline to generate different images every time it is run. While you can't expect to get the exact same results across platforms, you can expect results to be reproducible across releases and platforms within a certain tolerance range. Even then, tolerance varies depending on the diffusion pipeline and checkpoint.
|
18 |
-
|
19 |
-
This is why it's important to understand how to control sources of randomness in diffusion models or use deterministic algorithms.
|
20 |
-
|
21 |
-
<Tip>
|
22 |
-
|
23 |
-
💡 We strongly recommend reading PyTorch's [statement about reproducibility](https://pytorch.org/docs/stable/notes/randomness.html):
|
24 |
-
|
25 |
-
> Completely reproducible results are not guaranteed across PyTorch releases, individual commits, or different platforms. Furthermore, results may not be reproducible between CPU and GPU executions, even when using identical seeds.
|
26 |
-
|
27 |
-
</Tip>
|
28 |
-
|
29 |
-
## Control randomness
|
30 |
-
|
31 |
-
During inference, pipelines rely heavily on random sampling operations which include creating the
|
32 |
-
Gaussian noise tensors to denoise and adding noise to the scheduling step.
|
33 |
-
|
34 |
-
Take a look at the tensor values in the [`DDIMPipeline`] after two inference steps:
|
35 |
-
|
36 |
-
```python
|
37 |
-
from diffusers import DDIMPipeline
|
38 |
-
import numpy as np
|
39 |
-
|
40 |
-
model_id = "google/ddpm-cifar10-32"
|
41 |
-
|
42 |
-
# load model and scheduler
|
43 |
-
ddim = DDIMPipeline.from_pretrained(model_id)
|
44 |
-
|
45 |
-
# run pipeline for just two steps and return numpy tensor
|
46 |
-
image = ddim(num_inference_steps=2, output_type="np").images
|
47 |
-
print(np.abs(image).sum())
|
48 |
-
```
|
49 |
-
|
50 |
-
Running the code above prints one value, but if you run it again you get a different value. What is going on here?
|
51 |
-
|
52 |
-
Every time the pipeline is run, [`torch.randn`](https://pytorch.org/docs/stable/generated/torch.randn.html) uses a different random seed to create Gaussian noise which is denoised stepwise. This leads to a different result each time it is run, which is great for diffusion pipelines since it generates a different random image each time.
|
53 |
-
|
54 |
-
But if you need to reliably generate the same image, that'll depend on whether you're running the pipeline on a CPU or GPU.
|
55 |
-
|
56 |
-
### CPU
|
57 |
-
|
58 |
-
To generate reproducible results on a CPU, you'll need to use a PyTorch [`Generator`](https://pytorch.org/docs/stable/generated/torch.randn.html) and set a seed:
|
59 |
-
|
60 |
-
```python
|
61 |
-
import torch
|
62 |
-
from diffusers import DDIMPipeline
|
63 |
-
import numpy as np
|
64 |
-
|
65 |
-
model_id = "google/ddpm-cifar10-32"
|
66 |
-
|
67 |
-
# load model and scheduler
|
68 |
-
ddim = DDIMPipeline.from_pretrained(model_id)
|
69 |
-
|
70 |
-
# create a generator for reproducibility
|
71 |
-
generator = torch.Generator(device="cpu").manual_seed(0)
|
72 |
-
|
73 |
-
# run pipeline for just two steps and return numpy tensor
|
74 |
-
image = ddim(num_inference_steps=2, output_type="np", generator=generator).images
|
75 |
-
print(np.abs(image).sum())
|
76 |
-
```
|
77 |
-
|
78 |
-
Now when you run the code above, it always prints a value of `1491.1711` no matter what because the `Generator` object with the seed is passed to all the random functions of the pipeline.
|
79 |
-
|
80 |
-
If you run this code example on your specific hardware and PyTorch version, you should get a similar, if not the same, result.
|
81 |
-
|
82 |
-
<Tip>
|
83 |
-
|
84 |
-
💡 It might be a bit unintuitive at first to pass `Generator` objects to the pipeline instead of
|
85 |
-
just integer values representing the seed, but this is the recommended design when dealing with
|
86 |
-
probabilistic models in PyTorch as `Generator`'s are *random states* that can be
|
87 |
-
passed to multiple pipelines in a sequence.
|
88 |
-
|
89 |
-
</Tip>
|
90 |
-
|
91 |
-
### GPU
|
92 |
-
|
93 |
-
Writing a reproducible pipeline on a GPU is a bit trickier, and full reproducibility across different hardware is not guaranteed because matrix multiplication - which diffusion pipelines require a lot of - is less deterministic on a GPU than a CPU. For example, if you run the same code example above on a GPU:
|
94 |
-
|
95 |
-
```python
|
96 |
-
import torch
|
97 |
-
from diffusers import DDIMPipeline
|
98 |
-
import numpy as np
|
99 |
-
|
100 |
-
model_id = "google/ddpm-cifar10-32"
|
101 |
-
|
102 |
-
# load model and scheduler
|
103 |
-
ddim = DDIMPipeline.from_pretrained(model_id)
|
104 |
-
ddim.to("cuda")
|
105 |
-
|
106 |
-
# create a generator for reproducibility
|
107 |
-
generator = torch.Generator(device="cuda").manual_seed(0)
|
108 |
-
|
109 |
-
# run pipeline for just two steps and return numpy tensor
|
110 |
-
image = ddim(num_inference_steps=2, output_type="np", generator=generator).images
|
111 |
-
print(np.abs(image).sum())
|
112 |
-
```
|
113 |
-
|
114 |
-
The result is not the same even though you're using an identical seed because the GPU uses a different random number generator than the CPU.
|
115 |
-
|
116 |
-
To circumvent this problem, 🧨 Diffusers has a [`~diffusers.utils.randn_tensor`] function for creating random noise on the CPU, and then moving the tensor to a GPU if necessary. The `randn_tensor` function is used everywhere inside the pipeline, allowing the user to **always** pass a CPU `Generator` even if the pipeline is run on a GPU.
|
117 |
-
|
118 |
-
You'll see the results are much closer now!
|
119 |
-
|
120 |
-
```python
|
121 |
-
import torch
|
122 |
-
from diffusers import DDIMPipeline
|
123 |
-
import numpy as np
|
124 |
-
|
125 |
-
model_id = "google/ddpm-cifar10-32"
|
126 |
-
|
127 |
-
# load model and scheduler
|
128 |
-
ddim = DDIMPipeline.from_pretrained(model_id)
|
129 |
-
ddim.to("cuda")
|
130 |
-
|
131 |
-
# create a generator for reproducibility; notice you don't place it on the GPU!
|
132 |
-
generator = torch.manual_seed(0)
|
133 |
-
|
134 |
-
# run pipeline for just two steps and return numpy tensor
|
135 |
-
image = ddim(num_inference_steps=2, output_type="np", generator=generator).images
|
136 |
-
print(np.abs(image).sum())
|
137 |
-
```
|
138 |
-
|
139 |
-
<Tip>
|
140 |
-
|
141 |
-
💡 If reproducibility is important, we recommend always passing a CPU generator.
|
142 |
-
The performance loss is often neglectable, and you'll generate much more similar
|
143 |
-
values than if the pipeline had been run on a GPU.
|
144 |
-
|
145 |
-
</Tip>
|
146 |
-
|
147 |
-
Finally, for more complex pipelines such as [`UnCLIPPipeline`], these are often extremely
|
148 |
-
susceptible to precision error propagation. Don't expect similar results across
|
149 |
-
different GPU hardware or PyTorch versions. In this case, you'll need to run
|
150 |
-
exactly the same hardware and PyTorch version for full reproducibility.
|
151 |
-
|
152 |
-
## Deterministic algorithms
|
153 |
-
|
154 |
-
You can also configure PyTorch to use deterministic algorithms to create a reproducible pipeline. However, you should be aware that deterministic algorithms may be slower than nondeterministic ones and you may observe a decrease in performance. But if reproducibility is important to you, then this is the way to go!
|
155 |
-
|
156 |
-
Nondeterministic behavior occurs when operations are launched in more than one CUDA stream. To avoid this, set the environment varibale [`CUBLAS_WORKSPACE_CONFIG`](https://docs.nvidia.com/cuda/cublas/index.html#results-reproducibility) to `:16:8` to only use one buffer size during runtime.
|
157 |
-
|
158 |
-
PyTorch typically benchmarks multiple algorithms to select the fastest one, but if you want reproducibility, you should disable this feature because the benchmark may select different algorithms each time. Lastly, pass `True` to [`torch.use_deterministic_algorithms`](https://pytorch.org/docs/stable/generated/torch.use_deterministic_algorithms.html) to enable deterministic algorithms.
|
159 |
-
|
160 |
-
```py
|
161 |
-
import os
|
162 |
-
|
163 |
-
os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":16:8"
|
164 |
-
|
165 |
-
torch.backends.cudnn.benchmark = False
|
166 |
-
torch.use_deterministic_algorithms(True)
|
167 |
-
```
|
168 |
-
|
169 |
-
Now when you run the same pipeline twice, you'll get identical results.
|
170 |
-
|
171 |
-
```py
|
172 |
-
import torch
|
173 |
-
from diffusers import DDIMScheduler, StableDiffusionPipeline
|
174 |
-
import numpy as np
|
175 |
-
|
176 |
-
model_id = "runwayml/stable-diffusion-v1-5"
|
177 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id).to("cuda")
|
178 |
-
pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
|
179 |
-
g = torch.Generator(device="cuda")
|
180 |
-
|
181 |
-
prompt = "A bear is playing a guitar on Times Square"
|
182 |
-
|
183 |
-
g.manual_seed(0)
|
184 |
-
result1 = pipe(prompt=prompt, num_inference_steps=50, generator=g, output_type="latent").images
|
185 |
-
|
186 |
-
g.manual_seed(0)
|
187 |
-
result2 = pipe(prompt=prompt, num_inference_steps=50, generator=g, output_type="latent").images
|
188 |
-
|
189 |
-
print("L_inf dist = ", abs(result1 - result2).max())
|
190 |
-
"L_inf dist = tensor(0., device='cuda:0')"
|
191 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/examples/unconditional_image_generation/README.md
DELETED
@@ -1,163 +0,0 @@
|
|
1 |
-
## Training an unconditional diffusion model
|
2 |
-
|
3 |
-
Creating a training image set is [described in a different document](https://huggingface.co/docs/datasets/image_process#image-datasets).
|
4 |
-
|
5 |
-
### Installing the dependencies
|
6 |
-
|
7 |
-
Before running the scripts, make sure to install the library's training dependencies:
|
8 |
-
|
9 |
-
**Important**
|
10 |
-
|
11 |
-
To make sure you can successfully run the latest versions of the example scripts, we highly recommend **installing from source** and keeping the install up to date as we update the example scripts frequently and install some example-specific requirements. To do this, execute the following steps in a new virtual environment:
|
12 |
-
```bash
|
13 |
-
git clone https://github.com/huggingface/diffusers
|
14 |
-
cd diffusers
|
15 |
-
pip install .
|
16 |
-
```
|
17 |
-
|
18 |
-
Then cd in the example folder and run
|
19 |
-
```bash
|
20 |
-
pip install -r requirements.txt
|
21 |
-
```
|
22 |
-
|
23 |
-
|
24 |
-
And initialize an [🤗Accelerate](https://github.com/huggingface/accelerate/) environment with:
|
25 |
-
|
26 |
-
```bash
|
27 |
-
accelerate config
|
28 |
-
```
|
29 |
-
|
30 |
-
### Unconditional Flowers
|
31 |
-
|
32 |
-
The command to train a DDPM UNet model on the Oxford Flowers dataset:
|
33 |
-
|
34 |
-
```bash
|
35 |
-
accelerate launch train_unconditional.py \
|
36 |
-
--dataset_name="huggan/flowers-102-categories" \
|
37 |
-
--resolution=64 --center_crop --random_flip \
|
38 |
-
--output_dir="ddpm-ema-flowers-64" \
|
39 |
-
--train_batch_size=16 \
|
40 |
-
--num_epochs=100 \
|
41 |
-
--gradient_accumulation_steps=1 \
|
42 |
-
--use_ema \
|
43 |
-
--learning_rate=1e-4 \
|
44 |
-
--lr_warmup_steps=500 \
|
45 |
-
--mixed_precision=no \
|
46 |
-
--push_to_hub
|
47 |
-
```
|
48 |
-
An example trained model: https://huggingface.co/anton-l/ddpm-ema-flowers-64
|
49 |
-
|
50 |
-
A full training run takes 2 hours on 4xV100 GPUs.
|
51 |
-
|
52 |
-
<img src="https://user-images.githubusercontent.com/26864830/180248660-a0b143d0-b89a-42c5-8656-2ebf6ece7e52.png" width="700" />
|
53 |
-
|
54 |
-
|
55 |
-
### Unconditional Pokemon
|
56 |
-
|
57 |
-
The command to train a DDPM UNet model on the Pokemon dataset:
|
58 |
-
|
59 |
-
```bash
|
60 |
-
accelerate launch train_unconditional.py \
|
61 |
-
--dataset_name="huggan/pokemon" \
|
62 |
-
--resolution=64 --center_crop --random_flip \
|
63 |
-
--output_dir="ddpm-ema-pokemon-64" \
|
64 |
-
--train_batch_size=16 \
|
65 |
-
--num_epochs=100 \
|
66 |
-
--gradient_accumulation_steps=1 \
|
67 |
-
--use_ema \
|
68 |
-
--learning_rate=1e-4 \
|
69 |
-
--lr_warmup_steps=500 \
|
70 |
-
--mixed_precision=no \
|
71 |
-
--push_to_hub
|
72 |
-
```
|
73 |
-
An example trained model: https://huggingface.co/anton-l/ddpm-ema-pokemon-64
|
74 |
-
|
75 |
-
A full training run takes 2 hours on 4xV100 GPUs.
|
76 |
-
|
77 |
-
<img src="https://user-images.githubusercontent.com/26864830/180248200-928953b4-db38-48db-b0c6-8b740fe6786f.png" width="700" />
|
78 |
-
|
79 |
-
### Training with multiple GPUs
|
80 |
-
|
81 |
-
`accelerate` allows for seamless multi-GPU training. Follow the instructions [here](https://huggingface.co/docs/accelerate/basic_tutorials/launch)
|
82 |
-
for running distributed training with `accelerate`. Here is an example command:
|
83 |
-
|
84 |
-
```bash
|
85 |
-
accelerate launch --mixed_precision="fp16" --multi_gpu train_unconditional.py \
|
86 |
-
--dataset_name="huggan/pokemon" \
|
87 |
-
--resolution=64 --center_crop --random_flip \
|
88 |
-
--output_dir="ddpm-ema-pokemon-64" \
|
89 |
-
--train_batch_size=16 \
|
90 |
-
--num_epochs=100 \
|
91 |
-
--gradient_accumulation_steps=1 \
|
92 |
-
--use_ema \
|
93 |
-
--learning_rate=1e-4 \
|
94 |
-
--lr_warmup_steps=500 \
|
95 |
-
--mixed_precision="fp16" \
|
96 |
-
--logger="wandb"
|
97 |
-
```
|
98 |
-
|
99 |
-
To be able to use Weights and Biases (`wandb`) as a logger you need to install the library: `pip install wandb`.
|
100 |
-
|
101 |
-
### Using your own data
|
102 |
-
|
103 |
-
To use your own dataset, there are 2 ways:
|
104 |
-
- you can either provide your own folder as `--train_data_dir`
|
105 |
-
- or you can upload your dataset to the hub (possibly as a private repo, if you prefer so), and simply pass the `--dataset_name` argument.
|
106 |
-
|
107 |
-
Below, we explain both in more detail.
|
108 |
-
|
109 |
-
#### Provide the dataset as a folder
|
110 |
-
|
111 |
-
If you provide your own folders with images, the script expects the following directory structure:
|
112 |
-
|
113 |
-
```bash
|
114 |
-
data_dir/xxx.png
|
115 |
-
data_dir/xxy.png
|
116 |
-
data_dir/[...]/xxz.png
|
117 |
-
```
|
118 |
-
|
119 |
-
In other words, the script will take care of gathering all images inside the folder. You can then run the script like this:
|
120 |
-
|
121 |
-
```bash
|
122 |
-
accelerate launch train_unconditional.py \
|
123 |
-
--train_data_dir <path-to-train-directory> \
|
124 |
-
<other-arguments>
|
125 |
-
```
|
126 |
-
|
127 |
-
Internally, the script will use the [`ImageFolder`](https://huggingface.co/docs/datasets/v2.0.0/en/image_process#imagefolder) feature which will automatically turn the folders into 🤗 Dataset objects.
|
128 |
-
|
129 |
-
#### Upload your data to the hub, as a (possibly private) repo
|
130 |
-
|
131 |
-
It's very easy (and convenient) to upload your image dataset to the hub using the [`ImageFolder`](https://huggingface.co/docs/datasets/v2.0.0/en/image_process#imagefolder) feature available in 🤗 Datasets. Simply do the following:
|
132 |
-
|
133 |
-
```python
|
134 |
-
from datasets import load_dataset
|
135 |
-
|
136 |
-
# example 1: local folder
|
137 |
-
dataset = load_dataset("imagefolder", data_dir="path_to_your_folder")
|
138 |
-
|
139 |
-
# example 2: local files (supported formats are tar, gzip, zip, xz, rar, zstd)
|
140 |
-
dataset = load_dataset("imagefolder", data_files="path_to_zip_file")
|
141 |
-
|
142 |
-
# example 3: remote files (supported formats are tar, gzip, zip, xz, rar, zstd)
|
143 |
-
dataset = load_dataset("imagefolder", data_files="https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip")
|
144 |
-
|
145 |
-
# example 4: providing several splits
|
146 |
-
dataset = load_dataset("imagefolder", data_files={"train": ["path/to/file1", "path/to/file2"], "test": ["path/to/file3", "path/to/file4"]})
|
147 |
-
```
|
148 |
-
|
149 |
-
`ImageFolder` will create an `image` column containing the PIL-encoded images.
|
150 |
-
|
151 |
-
Next, push it to the hub!
|
152 |
-
|
153 |
-
```python
|
154 |
-
# assuming you have ran the huggingface-cli login command in a terminal
|
155 |
-
dataset.push_to_hub("name_of_your_dataset")
|
156 |
-
|
157 |
-
# if you want to push to a private repo, simply pass private=True:
|
158 |
-
dataset.push_to_hub("name_of_your_dataset", private=True)
|
159 |
-
```
|
160 |
-
|
161 |
-
and that's it! You can now train your model by simply setting the `--dataset_name` argument to the name of your dataset on the hub.
|
162 |
-
|
163 |
-
More on this can also be found in [this blog post](https://huggingface.co/blog/image-search-datasets).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/cascade_rcnn/cascade_mask_rcnn_x101_32x4d_fpn_1x_coco.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
_base_ = './cascade_mask_rcnn_r50_fpn_1x_coco.py'
|
2 |
-
model = dict(
|
3 |
-
pretrained='open-mmlab://resnext101_32x4d',
|
4 |
-
backbone=dict(
|
5 |
-
type='ResNeXt',
|
6 |
-
depth=101,
|
7 |
-
groups=32,
|
8 |
-
base_width=4,
|
9 |
-
num_stages=4,
|
10 |
-
out_indices=(0, 1, 2, 3),
|
11 |
-
frozen_stages=1,
|
12 |
-
norm_cfg=dict(type='BN', requires_grad=True),
|
13 |
-
style='pytorch'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/ghm/retinanet_ghm_r101_fpn_1x_coco.py
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
_base_ = './retinanet_ghm_r50_fpn_1x_coco.py'
|
2 |
-
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/mmdet/models/detectors/grid_rcnn.py
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
from ..builder import DETECTORS
|
2 |
-
from .two_stage import TwoStageDetector
|
3 |
-
|
4 |
-
|
5 |
-
@DETECTORS.register_module()
|
6 |
-
class GridRCNN(TwoStageDetector):
|
7 |
-
"""Grid R-CNN.
|
8 |
-
|
9 |
-
This detector is the implementation of:
|
10 |
-
- Grid R-CNN (https://arxiv.org/abs/1811.12030)
|
11 |
-
- Grid R-CNN Plus: Faster and Better (https://arxiv.org/abs/1906.05688)
|
12 |
-
"""
|
13 |
-
|
14 |
-
def __init__(self,
|
15 |
-
backbone,
|
16 |
-
rpn_head,
|
17 |
-
roi_head,
|
18 |
-
train_cfg,
|
19 |
-
test_cfg,
|
20 |
-
neck=None,
|
21 |
-
pretrained=None):
|
22 |
-
super(GridRCNN, self).__init__(
|
23 |
-
backbone=backbone,
|
24 |
-
neck=neck,
|
25 |
-
rpn_head=rpn_head,
|
26 |
-
roi_head=roi_head,
|
27 |
-
train_cfg=train_cfg,
|
28 |
-
test_cfg=test_cfg,
|
29 |
-
pretrained=pretrained)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/tools/train.py
DELETED
@@ -1,187 +0,0 @@
|
|
1 |
-
import argparse
|
2 |
-
import copy
|
3 |
-
import os
|
4 |
-
import os.path as osp
|
5 |
-
import time
|
6 |
-
import warnings
|
7 |
-
|
8 |
-
import mmcv
|
9 |
-
import torch
|
10 |
-
from mmcv import Config, DictAction
|
11 |
-
from mmcv.runner import get_dist_info, init_dist
|
12 |
-
from mmcv.utils import get_git_hash
|
13 |
-
|
14 |
-
from mmdet import __version__
|
15 |
-
from mmdet.apis import set_random_seed, train_detector
|
16 |
-
from mmdet.datasets import build_dataset
|
17 |
-
from mmdet.models import build_detector
|
18 |
-
from mmdet.utils import collect_env, get_root_logger
|
19 |
-
|
20 |
-
|
21 |
-
def parse_args():
|
22 |
-
parser = argparse.ArgumentParser(description='Train a detector')
|
23 |
-
parser.add_argument('config', help='train config file path')
|
24 |
-
parser.add_argument('--work-dir', help='the dir to save logs and models')
|
25 |
-
parser.add_argument(
|
26 |
-
'--resume-from', help='the checkpoint file to resume from')
|
27 |
-
parser.add_argument(
|
28 |
-
'--no-validate',
|
29 |
-
action='store_true',
|
30 |
-
help='whether not to evaluate the checkpoint during training')
|
31 |
-
group_gpus = parser.add_mutually_exclusive_group()
|
32 |
-
group_gpus.add_argument(
|
33 |
-
'--gpus',
|
34 |
-
type=int,
|
35 |
-
help='number of gpus to use '
|
36 |
-
'(only applicable to non-distributed training)')
|
37 |
-
group_gpus.add_argument(
|
38 |
-
'--gpu-ids',
|
39 |
-
type=int,
|
40 |
-
nargs='+',
|
41 |
-
help='ids of gpus to use '
|
42 |
-
'(only applicable to non-distributed training)')
|
43 |
-
parser.add_argument('--seed', type=int, default=None, help='random seed')
|
44 |
-
parser.add_argument(
|
45 |
-
'--deterministic',
|
46 |
-
action='store_true',
|
47 |
-
help='whether to set deterministic options for CUDNN backend.')
|
48 |
-
parser.add_argument(
|
49 |
-
'--options',
|
50 |
-
nargs='+',
|
51 |
-
action=DictAction,
|
52 |
-
help='override some settings in the used config, the key-value pair '
|
53 |
-
'in xxx=yyy format will be merged into config file (deprecate), '
|
54 |
-
'change to --cfg-options instead.')
|
55 |
-
parser.add_argument(
|
56 |
-
'--cfg-options',
|
57 |
-
nargs='+',
|
58 |
-
action=DictAction,
|
59 |
-
help='override some settings in the used config, the key-value pair '
|
60 |
-
'in xxx=yyy format will be merged into config file. If the value to '
|
61 |
-
'be overwritten is a list, it should be like key="[a,b]" or key=a,b '
|
62 |
-
'It also allows nested list/tuple values, e.g. key="[(a,b),(c,d)]" '
|
63 |
-
'Note that the quotation marks are necessary and that no white space '
|
64 |
-
'is allowed.')
|
65 |
-
parser.add_argument(
|
66 |
-
'--launcher',
|
67 |
-
choices=['none', 'pytorch', 'slurm', 'mpi'],
|
68 |
-
default='none',
|
69 |
-
help='job launcher')
|
70 |
-
parser.add_argument('--local_rank', type=int, default=0)
|
71 |
-
args = parser.parse_args()
|
72 |
-
if 'LOCAL_RANK' not in os.environ:
|
73 |
-
os.environ['LOCAL_RANK'] = str(args.local_rank)
|
74 |
-
|
75 |
-
if args.options and args.cfg_options:
|
76 |
-
raise ValueError(
|
77 |
-
'--options and --cfg-options cannot be both '
|
78 |
-
'specified, --options is deprecated in favor of --cfg-options')
|
79 |
-
if args.options:
|
80 |
-
warnings.warn('--options is deprecated in favor of --cfg-options')
|
81 |
-
args.cfg_options = args.options
|
82 |
-
|
83 |
-
return args
|
84 |
-
|
85 |
-
|
86 |
-
def main():
|
87 |
-
args = parse_args()
|
88 |
-
|
89 |
-
cfg = Config.fromfile(args.config)
|
90 |
-
if args.cfg_options is not None:
|
91 |
-
cfg.merge_from_dict(args.cfg_options)
|
92 |
-
# import modules from string list.
|
93 |
-
if cfg.get('custom_imports', None):
|
94 |
-
from mmcv.utils import import_modules_from_strings
|
95 |
-
import_modules_from_strings(**cfg['custom_imports'])
|
96 |
-
# set cudnn_benchmark
|
97 |
-
if cfg.get('cudnn_benchmark', False):
|
98 |
-
torch.backends.cudnn.benchmark = True
|
99 |
-
|
100 |
-
# work_dir is determined in this priority: CLI > segment in file > filename
|
101 |
-
if args.work_dir is not None:
|
102 |
-
# update configs according to CLI args if args.work_dir is not None
|
103 |
-
cfg.work_dir = args.work_dir
|
104 |
-
elif cfg.get('work_dir', None) is None:
|
105 |
-
# use config filename as default work_dir if cfg.work_dir is None
|
106 |
-
cfg.work_dir = osp.join('./work_dirs',
|
107 |
-
osp.splitext(osp.basename(args.config))[0])
|
108 |
-
if args.resume_from is not None:
|
109 |
-
cfg.resume_from = args.resume_from
|
110 |
-
if args.gpu_ids is not None:
|
111 |
-
cfg.gpu_ids = args.gpu_ids
|
112 |
-
else:
|
113 |
-
cfg.gpu_ids = range(1) if args.gpus is None else range(args.gpus)
|
114 |
-
|
115 |
-
# init distributed env first, since logger depends on the dist info.
|
116 |
-
if args.launcher == 'none':
|
117 |
-
distributed = False
|
118 |
-
else:
|
119 |
-
distributed = True
|
120 |
-
init_dist(args.launcher, **cfg.dist_params)
|
121 |
-
# re-set gpu_ids with distributed training mode
|
122 |
-
_, world_size = get_dist_info()
|
123 |
-
cfg.gpu_ids = range(world_size)
|
124 |
-
|
125 |
-
# create work_dir
|
126 |
-
mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
|
127 |
-
# dump config
|
128 |
-
cfg.dump(osp.join(cfg.work_dir, osp.basename(args.config)))
|
129 |
-
# init the logger before other steps
|
130 |
-
timestamp = time.strftime('%Y%m%d_%H%M%S', time.localtime())
|
131 |
-
log_file = osp.join(cfg.work_dir, f'{timestamp}.log')
|
132 |
-
logger = get_root_logger(log_file=log_file, log_level=cfg.log_level)
|
133 |
-
|
134 |
-
# init the meta dict to record some important information such as
|
135 |
-
# environment info and seed, which will be logged
|
136 |
-
meta = dict()
|
137 |
-
# log env info
|
138 |
-
env_info_dict = collect_env()
|
139 |
-
env_info = '\n'.join([(f'{k}: {v}') for k, v in env_info_dict.items()])
|
140 |
-
dash_line = '-' * 60 + '\n'
|
141 |
-
logger.info('Environment info:\n' + dash_line + env_info + '\n' +
|
142 |
-
dash_line)
|
143 |
-
meta['env_info'] = env_info
|
144 |
-
meta['config'] = cfg.pretty_text
|
145 |
-
# log some basic info
|
146 |
-
logger.info(f'Distributed training: {distributed}')
|
147 |
-
logger.info(f'Config:\n{cfg.pretty_text}')
|
148 |
-
|
149 |
-
# set random seeds
|
150 |
-
if args.seed is not None:
|
151 |
-
logger.info(f'Set random seed to {args.seed}, '
|
152 |
-
f'deterministic: {args.deterministic}')
|
153 |
-
set_random_seed(args.seed, deterministic=args.deterministic)
|
154 |
-
cfg.seed = args.seed
|
155 |
-
meta['seed'] = args.seed
|
156 |
-
meta['exp_name'] = osp.basename(args.config)
|
157 |
-
|
158 |
-
model = build_detector(
|
159 |
-
cfg.model,
|
160 |
-
train_cfg=cfg.get('train_cfg'),
|
161 |
-
test_cfg=cfg.get('test_cfg'))
|
162 |
-
|
163 |
-
datasets = [build_dataset(cfg.data.train)]
|
164 |
-
if len(cfg.workflow) == 2:
|
165 |
-
val_dataset = copy.deepcopy(cfg.data.val)
|
166 |
-
val_dataset.pipeline = cfg.data.train.pipeline
|
167 |
-
datasets.append(build_dataset(val_dataset))
|
168 |
-
if cfg.checkpoint_config is not None:
|
169 |
-
# save mmdet version, config file content and class names in
|
170 |
-
# checkpoints as meta data
|
171 |
-
cfg.checkpoint_config.meta = dict(
|
172 |
-
mmdet_version=__version__ + get_git_hash()[:7],
|
173 |
-
CLASSES=datasets[0].CLASSES)
|
174 |
-
# add an attribute for visualization convenience
|
175 |
-
model.CLASSES = datasets[0].CLASSES
|
176 |
-
train_detector(
|
177 |
-
model,
|
178 |
-
datasets,
|
179 |
-
cfg,
|
180 |
-
distributed=distributed,
|
181 |
-
validate=(not args.no_validate),
|
182 |
-
timestamp=timestamp,
|
183 |
-
meta=meta)
|
184 |
-
|
185 |
-
|
186 |
-
if __name__ == '__main__':
|
187 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/ocrnet/README.md
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
# Object-Contextual Representations for Semantic Segmentation
|
2 |
-
|
3 |
-
## Introduction
|
4 |
-
|
5 |
-
<!-- [ALGORITHM] -->
|
6 |
-
|
7 |
-
```latex
|
8 |
-
@article{YuanW18,
|
9 |
-
title={Ocnet: Object context network for scene parsing},
|
10 |
-
author={Yuhui Yuan and Jingdong Wang},
|
11 |
-
booktitle={arXiv preprint arXiv:1809.00916},
|
12 |
-
year={2018}
|
13 |
-
}
|
14 |
-
|
15 |
-
@article{YuanCW20,
|
16 |
-
title={Object-Contextual Representations for Semantic Segmentation},
|
17 |
-
author={Yuhui Yuan and Xilin Chen and Jingdong Wang},
|
18 |
-
booktitle={ECCV},
|
19 |
-
year={2020}
|
20 |
-
}
|
21 |
-
```
|
22 |
-
|
23 |
-
## Results and models
|
24 |
-
|
25 |
-
### Cityscapes
|
26 |
-
|
27 |
-
#### HRNet backbone
|
28 |
-
|
29 |
-
| Method | Backbone | Crop Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|
30 |
-
| ------ | ------------------ | --------- | ------: | -------- | -------------- | ----: | ------------: | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
31 |
-
| OCRNet | HRNetV2p-W18-Small | 512x1024 | 40000 | 3.5 | 10.45 | 74.30 | 75.95 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x1024_40k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_40k_cityscapes/ocrnet_hr18s_512x1024_40k_cityscapes_20200601_033304-fa2436c2.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_40k_cityscapes/ocrnet_hr18s_512x1024_40k_cityscapes_20200601_033304.log.json) |
|
32 |
-
| OCRNet | HRNetV2p-W18 | 512x1024 | 40000 | 4.7 | 7.50 | 77.72 | 79.49 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x1024_40k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_40k_cityscapes/ocrnet_hr18_512x1024_40k_cityscapes_20200601_033320-401c5bdd.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_40k_cityscapes/ocrnet_hr18_512x1024_40k_cityscapes_20200601_033320.log.json) |
|
33 |
-
| OCRNet | HRNetV2p-W48 | 512x1024 | 40000 | 8 | 4.22 | 80.58 | 81.79 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x1024_40k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_40k_cityscapes/ocrnet_hr48_512x1024_40k_cityscapes_20200601_033336-55b32491.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_40k_cityscapes/ocrnet_hr48_512x1024_40k_cityscapes_20200601_033336.log.json) |
|
34 |
-
| OCRNet | HRNetV2p-W18-Small | 512x1024 | 80000 | - | - | 77.16 | 78.66 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x1024_80k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_80k_cityscapes/ocrnet_hr18s_512x1024_80k_cityscapes_20200601_222735-55979e63.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_80k_cityscapes/ocrnet_hr18s_512x1024_80k_cityscapes_20200601_222735.log.json) |
|
35 |
-
| OCRNet | HRNetV2p-W18 | 512x1024 | 80000 | - | - | 78.57 | 80.46 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x1024_80k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_80k_cityscapes/ocrnet_hr18_512x1024_80k_cityscapes_20200614_230521-c2e1dd4a.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_80k_cityscapes/ocrnet_hr18_512x1024_80k_cityscapes_20200614_230521.log.json) |
|
36 |
-
| OCRNet | HRNetV2p-W48 | 512x1024 | 80000 | - | - | 80.70 | 81.87 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x1024_80k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_80k_cityscapes/ocrnet_hr48_512x1024_80k_cityscapes_20200601_222752-9076bcdf.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_80k_cityscapes/ocrnet_hr48_512x1024_80k_cityscapes_20200601_222752.log.json) |
|
37 |
-
| OCRNet | HRNetV2p-W18-Small | 512x1024 | 160000 | - | - | 78.45 | 79.97 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x1024_160k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_160k_cityscapes/ocrnet_hr18s_512x1024_160k_cityscapes_20200602_191005-f4a7af28.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x1024_160k_cityscapes/ocrnet_hr18s_512x1024_160k_cityscapes_20200602_191005.log.json) |
|
38 |
-
| OCRNet | HRNetV2p-W18 | 512x1024 | 160000 | - | - | 79.47 | 80.91 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x1024_160k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_160k_cityscapes/ocrnet_hr18_512x1024_160k_cityscapes_20200602_191001-b9172d0c.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x1024_160k_cityscapes/ocrnet_hr18_512x1024_160k_cityscapes_20200602_191001.log.json) |
|
39 |
-
| OCRNet | HRNetV2p-W48 | 512x1024 | 160000 | - | - | 81.35 | 82.70 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x1024_160k_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_160k_cityscapes/ocrnet_hr48_512x1024_160k_cityscapes_20200602_191037-dfbf1b0c.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x1024_160k_cityscapes/ocrnet_hr48_512x1024_160k_cityscapes_20200602_191037.log.json) |
|
40 |
-
|
41 |
-
#### ResNet backbone
|
42 |
-
|
43 |
-
| Method | Backbone | Crop Size | Batch Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|
44 |
-
| ------ | -------- | --------- | ---------- | ------- | -------- | -------------- | ----- | ------------: | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
45 |
-
| OCRNet | R-101-D8 | 512x1024 | 8 | 40000 | - | - | 80.09 | - | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_r101-d8_512x1024_40k_b8_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_40k_b8_cityscapes/ocrnet_r101-d8_512x1024_40k_b8_cityscapes-02ac0f13.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_40k_b8_cityscapes/ocrnet_r101-d8_512x1024_40k_b8_cityscapes_20200717_110721.log.json) |
|
46 |
-
| OCRNet | R-101-D8 | 512x1024 | 16 | 40000 | 8.8 | 3.02 | 80.30 | - | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_r101-d8_512x1024_40k_b16_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_40k_b16_cityscapes/ocrnet_r101-d8_512x1024_40k_b16_cityscapes-db500f80.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_40k_b16_cityscapes/ocrnet_r101-d8_512x1024_40k_b16_cityscapes_20200723_193726.log.json) |
|
47 |
-
| OCRNet | R-101-D8 | 512x1024 | 16 | 80000 | 8.8 | 3.02 | 80.81 | - | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes/ocrnet_r101-d8_512x1024_80k_b16_cityscapes-78688424.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_r101-d8_512x1024_80k_b16_cityscapes/ocrnet_r101-d8_512x1024_80k_b16_cityscapes_20200723_192421.log.json) |
|
48 |
-
|
49 |
-
### ADE20K
|
50 |
-
|
51 |
-
| Method | Backbone | Crop Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|
52 |
-
| ------ | ------------------ | --------- | ------: | -------- | -------------- | ----: | ------------: | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
53 |
-
| OCRNet | HRNetV2p-W18-Small | 512x512 | 80000 | 6.7 | 28.98 | 35.06 | 35.80 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x512_80k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_80k_ade20k/ocrnet_hr18s_512x512_80k_ade20k_20200615_055600-e80b62af.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_80k_ade20k/ocrnet_hr18s_512x512_80k_ade20k_20200615_055600.log.json) |
|
54 |
-
| OCRNet | HRNetV2p-W18 | 512x512 | 80000 | 7.9 | 18.93 | 37.79 | 39.16 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x512_80k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_80k_ade20k/ocrnet_hr18_512x512_80k_ade20k_20200615_053157-d173d83b.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_80k_ade20k/ocrnet_hr18_512x512_80k_ade20k_20200615_053157.log.json) |
|
55 |
-
| OCRNet | HRNetV2p-W48 | 512x512 | 80000 | 11.2 | 16.99 | 43.00 | 44.30 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x512_80k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_80k_ade20k/ocrnet_hr48_512x512_80k_ade20k_20200615_021518-d168c2d1.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_80k_ade20k/ocrnet_hr48_512x512_80k_ade20k_20200615_021518.log.json) |
|
56 |
-
| OCRNet | HRNetV2p-W18-Small | 512x512 | 160000 | - | - | 37.19 | 38.40 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x512_160k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_160k_ade20k/ocrnet_hr18s_512x512_160k_ade20k_20200615_184505-8e913058.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_160k_ade20k/ocrnet_hr18s_512x512_160k_ade20k_20200615_184505.log.json) |
|
57 |
-
| OCRNet | HRNetV2p-W18 | 512x512 | 160000 | - | - | 39.32 | 40.80 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x512_160k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_160k_ade20k/ocrnet_hr18_512x512_160k_ade20k_20200615_200940-d8fcd9d1.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_160k_ade20k/ocrnet_hr18_512x512_160k_ade20k_20200615_200940.log.json) |
|
58 |
-
| OCRNet | HRNetV2p-W48 | 512x512 | 160000 | - | - | 43.25 | 44.88 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x512_160k_ade20k.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_160k_ade20k/ocrnet_hr48_512x512_160k_ade20k_20200615_184705-a073726d.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_160k_ade20k/ocrnet_hr48_512x512_160k_ade20k_20200615_184705.log.json) |
|
59 |
-
|
60 |
-
### Pascal VOC 2012 + Aug
|
61 |
-
|
62 |
-
| Method | Backbone | Crop Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|
63 |
-
| ------ | ------------------ | --------- | ------: | -------- | -------------- | ----: | ------------: | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
64 |
-
| OCRNet | HRNetV2p-W18-Small | 512x512 | 20000 | 3.5 | 31.55 | 71.70 | 73.84 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x512_20k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_20k_voc12aug/ocrnet_hr18s_512x512_20k_voc12aug_20200617_233913-02b04fcb.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_20k_voc12aug/ocrnet_hr18s_512x512_20k_voc12aug_20200617_233913.log.json) |
|
65 |
-
| OCRNet | HRNetV2p-W18 | 512x512 | 20000 | 4.7 | 19.91 | 74.75 | 77.11 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x512_20k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_20k_voc12aug/ocrnet_hr18_512x512_20k_voc12aug_20200617_233932-8954cbb7.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_20k_voc12aug/ocrnet_hr18_512x512_20k_voc12aug_20200617_233932.log.json) |
|
66 |
-
| OCRNet | HRNetV2p-W48 | 512x512 | 20000 | 8.1 | 17.83 | 77.72 | 79.87 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x512_20k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_20k_voc12aug/ocrnet_hr48_512x512_20k_voc12aug_20200617_233932-9e82080a.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_20k_voc12aug/ocrnet_hr48_512x512_20k_voc12aug_20200617_233932.log.json) |
|
67 |
-
| OCRNet | HRNetV2p-W18-Small | 512x512 | 40000 | - | - | 72.76 | 74.60 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18s_512x512_40k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_40k_voc12aug/ocrnet_hr18s_512x512_40k_voc12aug_20200614_002025-42b587ac.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18s_512x512_40k_voc12aug/ocrnet_hr18s_512x512_40k_voc12aug_20200614_002025.log.json) |
|
68 |
-
| OCRNet | HRNetV2p-W18 | 512x512 | 40000 | - | - | 74.98 | 77.40 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr18_512x512_40k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_40k_voc12aug/ocrnet_hr18_512x512_40k_voc12aug_20200614_015958-714302be.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr18_512x512_40k_voc12aug/ocrnet_hr18_512x512_40k_voc12aug_20200614_015958.log.json) |
|
69 |
-
| OCRNet | HRNetV2p-W48 | 512x512 | 40000 | - | - | 77.14 | 79.71 | [config](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet/ocrnet_hr48_512x512_40k_voc12aug.py) | [model](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_40k_voc12aug/ocrnet_hr48_512x512_40k_voc12aug_20200614_015958-255bc5ce.pth) | [log](https://download.openmmlab.com/mmsegmentation/v0.5/ocrnet/ocrnet_hr48_512x512_40k_voc12aug/ocrnet_hr48_512x512_40k_voc12aug_20200614_015958.log.json) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anni123/AuRoRA/utils.py
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
import re
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
def answer_cleansing_zero_shot(dataset, pred, must_choice=False):
|
8 |
-
pred = pred.strip()
|
9 |
-
if dataset in ("commonsense-mc"):
|
10 |
-
pred = re.findall(r'A|B|C|D|E', pred)
|
11 |
-
elif dataset in ("arithmetic"):
|
12 |
-
if must_choice:
|
13 |
-
pred = re.findall(r'A|B|C|D', pred)
|
14 |
-
else:
|
15 |
-
pred = pred.replace(",", "")
|
16 |
-
pred = [s for s in re.findall(r'-?\d+\.?\d*', pred)]
|
17 |
-
elif dataset in ("commonsense-verify", "symbolic-coin"):
|
18 |
-
pred = pred.lower()
|
19 |
-
pred = re.sub("\"|\'|\n|\.|\s|\:|\,", " ", pred)
|
20 |
-
pred = pred.split(" ")
|
21 |
-
pred = [i for i in pred if i in ("yes", "no")]
|
22 |
-
elif dataset == "symbolic-letter":
|
23 |
-
pred = re.sub("\"|\'|\n|\.|\s", "", pred)
|
24 |
-
pred = [pred]
|
25 |
-
elif dataset == "UNDEFINED":
|
26 |
-
pred = pred
|
27 |
-
else:
|
28 |
-
raise ValueError("dataset is not properly defined ...")
|
29 |
-
|
30 |
-
# If there is no candidate in list, null is set.
|
31 |
-
if len(pred) == 0:
|
32 |
-
pred = ""
|
33 |
-
else:
|
34 |
-
# choose the first element in list ...
|
35 |
-
pred = pred[0]
|
36 |
-
|
37 |
-
# (For arithmetic tasks) if a word ends with period, it will be omitted ...
|
38 |
-
if pred != "":
|
39 |
-
if pred[-1] == ".":
|
40 |
-
pred = pred[:-1]
|
41 |
-
|
42 |
-
return pred
|
43 |
-
|
44 |
-
def type_cleasing(type):
|
45 |
-
type = re.findall(r'arithmetic|commonsense-mc|commonsense-verify|symbolic-coin|symbolic-letter', type)
|
46 |
-
if len(type) == 0:
|
47 |
-
type = "UNDEFINED"
|
48 |
-
else:
|
49 |
-
type = type[0]
|
50 |
-
return type
|
51 |
-
|
52 |
-
|
53 |
-
def entity_cleansing(ent):
|
54 |
-
ent = re.sub("\n|\s*-\s*|\.", ",", ent)
|
55 |
-
ent = ent.split(",")
|
56 |
-
ent = [e.strip() for e in ent if e != ""]
|
57 |
-
return ent
|
58 |
-
|
59 |
-
def knowledge_cleansing(knowledge):
|
60 |
-
#print("Knowledge Before: " + knowledge)
|
61 |
-
knowledge = knowledge.strip()
|
62 |
-
if knowledge.startswith("No, "):
|
63 |
-
knowledge = re.sub("No, ", "", knowledge)
|
64 |
-
knowledge = re.sub("\s"," ", knowledge)
|
65 |
-
#print("Knowledge After: " + knowledge)
|
66 |
-
return knowledge
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Apex-X/GODROOP/roop/face_analyser.py
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
import threading
|
2 |
-
from typing import Any
|
3 |
-
import insightface
|
4 |
-
|
5 |
-
import roop.globals
|
6 |
-
from roop.typing import Frame
|
7 |
-
|
8 |
-
FACE_ANALYSER = None
|
9 |
-
THREAD_LOCK = threading.Lock()
|
10 |
-
|
11 |
-
|
12 |
-
def get_face_analyser() -> Any:
|
13 |
-
global FACE_ANALYSER
|
14 |
-
|
15 |
-
with THREAD_LOCK:
|
16 |
-
if FACE_ANALYSER is None:
|
17 |
-
FACE_ANALYSER = insightface.app.FaceAnalysis(name='buffalo_l', providers=roop.globals.execution_providers)
|
18 |
-
FACE_ANALYSER.prepare(ctx_id=0, det_size=(640, 640))
|
19 |
-
return FACE_ANALYSER
|
20 |
-
|
21 |
-
|
22 |
-
def get_one_face(frame: Frame) -> Any:
|
23 |
-
face = get_face_analyser().get(frame)
|
24 |
-
try:
|
25 |
-
return min(face, key=lambda x: x.bbox[0])
|
26 |
-
except ValueError:
|
27 |
-
return None
|
28 |
-
|
29 |
-
|
30 |
-
def get_many_faces(frame: Frame) -> Any:
|
31 |
-
try:
|
32 |
-
return get_face_analyser().get(frame)
|
33 |
-
except IndexError:
|
34 |
-
return None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Artrajz/vits-simple-api/bert_vits2/text/english.py
DELETED
@@ -1,146 +0,0 @@
|
|
1 |
-
import pickle
|
2 |
-
import os
|
3 |
-
import re
|
4 |
-
from g2p_en import G2p
|
5 |
-
|
6 |
-
from bert_vits2.text import symbols
|
7 |
-
|
8 |
-
current_file_path = os.path.dirname(__file__)
|
9 |
-
CMU_DICT_PATH = os.path.join(current_file_path, 'cmudict.rep')
|
10 |
-
CACHE_PATH = os.path.join(current_file_path, 'cmudict_cache.pickle')
|
11 |
-
_g2p = G2p()
|
12 |
-
|
13 |
-
arpa = {'AH0', 'S', 'AH1', 'EY2', 'AE2', 'EH0', 'OW2', 'UH0', 'NG', 'B', 'G', 'AY0', 'M', 'AA0', 'F', 'AO0', 'ER2',
|
14 |
-
'UH1', 'IY1', 'AH2', 'DH', 'IY0', 'EY1', 'IH0', 'K', 'N', 'W', 'IY2', 'T', 'AA1', 'ER1', 'EH2', 'OY0', 'UH2',
|
15 |
-
'UW1', 'Z', 'AW2', 'AW1', 'V', 'UW2', 'AA2', 'ER', 'AW0', 'UW0', 'R', 'OW1', 'EH1', 'ZH', 'AE0', 'IH2', 'IH',
|
16 |
-
'Y', 'JH', 'P', 'AY1', 'EY0', 'OY2', 'TH', 'HH', 'D', 'ER0', 'CH', 'AO1', 'AE1', 'AO2', 'OY1', 'AY2', 'IH1',
|
17 |
-
'OW0', 'L', 'SH'}
|
18 |
-
|
19 |
-
|
20 |
-
def post_replace_ph(ph):
|
21 |
-
rep_map = {
|
22 |
-
':': ',',
|
23 |
-
';': ',',
|
24 |
-
',': ',',
|
25 |
-
'。': '.',
|
26 |
-
'!': '!',
|
27 |
-
'?': '?',
|
28 |
-
'\n': '.',
|
29 |
-
"·": ",",
|
30 |
-
'、': ",",
|
31 |
-
'...': '…',
|
32 |
-
'v': "V"
|
33 |
-
}
|
34 |
-
if ph in rep_map.keys():
|
35 |
-
ph = rep_map[ph]
|
36 |
-
if ph in symbols:
|
37 |
-
return ph
|
38 |
-
if ph not in symbols:
|
39 |
-
ph = 'UNK'
|
40 |
-
return ph
|
41 |
-
|
42 |
-
|
43 |
-
def read_dict():
|
44 |
-
g2p_dict = {}
|
45 |
-
start_line = 49
|
46 |
-
with open(CMU_DICT_PATH) as f:
|
47 |
-
line = f.readline()
|
48 |
-
line_index = 1
|
49 |
-
while line:
|
50 |
-
if line_index >= start_line:
|
51 |
-
line = line.strip()
|
52 |
-
word_split = line.split(' ')
|
53 |
-
word = word_split[0]
|
54 |
-
|
55 |
-
syllable_split = word_split[1].split(' - ')
|
56 |
-
g2p_dict[word] = []
|
57 |
-
for syllable in syllable_split:
|
58 |
-
phone_split = syllable.split(' ')
|
59 |
-
g2p_dict[word].append(phone_split)
|
60 |
-
|
61 |
-
line_index = line_index + 1
|
62 |
-
line = f.readline()
|
63 |
-
|
64 |
-
return g2p_dict
|
65 |
-
|
66 |
-
|
67 |
-
def cache_dict(g2p_dict, file_path):
|
68 |
-
with open(file_path, 'wb') as pickle_file:
|
69 |
-
pickle.dump(g2p_dict, pickle_file)
|
70 |
-
|
71 |
-
|
72 |
-
def get_dict():
|
73 |
-
if os.path.exists(CACHE_PATH):
|
74 |
-
with open(CACHE_PATH, 'rb') as pickle_file:
|
75 |
-
g2p_dict = pickle.load(pickle_file)
|
76 |
-
else:
|
77 |
-
g2p_dict = read_dict()
|
78 |
-
cache_dict(g2p_dict, CACHE_PATH)
|
79 |
-
|
80 |
-
return g2p_dict
|
81 |
-
|
82 |
-
|
83 |
-
eng_dict = get_dict()
|
84 |
-
|
85 |
-
|
86 |
-
def refine_ph(phn):
|
87 |
-
tone = 0
|
88 |
-
if re.search(r'\d$', phn):
|
89 |
-
tone = int(phn[-1]) + 1
|
90 |
-
phn = phn[:-1]
|
91 |
-
return phn.lower(), tone
|
92 |
-
|
93 |
-
|
94 |
-
def refine_syllables(syllables):
|
95 |
-
tones = []
|
96 |
-
phonemes = []
|
97 |
-
for phn_list in syllables:
|
98 |
-
for i in range(len(phn_list)):
|
99 |
-
phn = phn_list[i]
|
100 |
-
phn, tone = refine_ph(phn)
|
101 |
-
phonemes.append(phn)
|
102 |
-
tones.append(tone)
|
103 |
-
return phonemes, tones
|
104 |
-
|
105 |
-
|
106 |
-
def text_normalize(text):
|
107 |
-
|
108 |
-
return text
|
109 |
-
|
110 |
-
|
111 |
-
def g2p(text):
|
112 |
-
phones = []
|
113 |
-
tones = []
|
114 |
-
words = re.split(r"([,;.\-\?\!\s+])", text)
|
115 |
-
for w in words:
|
116 |
-
if w.upper() in eng_dict:
|
117 |
-
phns, tns = refine_syllables(eng_dict[w.upper()])
|
118 |
-
phones += phns
|
119 |
-
tones += tns
|
120 |
-
else:
|
121 |
-
phone_list = list(filter(lambda p: p != " ", _g2p(w)))
|
122 |
-
for ph in phone_list:
|
123 |
-
if ph in arpa:
|
124 |
-
ph, tn = refine_ph(ph)
|
125 |
-
phones.append(ph)
|
126 |
-
tones.append(tn)
|
127 |
-
else:
|
128 |
-
phones.append(ph)
|
129 |
-
tones.append(0)
|
130 |
-
|
131 |
-
word2ph = [1 for i in phones]
|
132 |
-
|
133 |
-
phones = [post_replace_ph(i) for i in phones]
|
134 |
-
return phones, tones, word2ph
|
135 |
-
|
136 |
-
|
137 |
-
if __name__ == "__main__":
|
138 |
-
# print(get_dict())
|
139 |
-
# print(eng_word_to_phoneme("hello"))
|
140 |
-
print(g2p("In this paper, we propose 1 DSPGAN, a GAN-based universal vocoder."))
|
141 |
-
# all_phones = set()
|
142 |
-
# for k, syllables in eng_dict.items():
|
143 |
-
# for group in syllables:
|
144 |
-
# for ph in group:
|
145 |
-
# all_phones.add(ph)
|
146 |
-
# print(all_phones)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Artrajz/vits-simple-api/vits/text/__init__.py
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
""" from https://github.com/keithito/tacotron """
|
2 |
-
from vits.text import cleaners
|
3 |
-
|
4 |
-
|
5 |
-
def text_to_sequence(text, symbols, cleaner_names, bert_embedding=False):
|
6 |
-
'''Converts a string of text to a sequence of IDs corresponding to the symbols in the text.
|
7 |
-
Args:
|
8 |
-
text: string to convert to a sequence
|
9 |
-
cleaner_names: names of the cleaner functions to run the text through
|
10 |
-
Returns:
|
11 |
-
List of integers corresponding to the symbols in the text
|
12 |
-
'''
|
13 |
-
|
14 |
-
_symbol_to_id = {s: i for i, s in enumerate(symbols)}
|
15 |
-
|
16 |
-
if bert_embedding:
|
17 |
-
cleaned_text, char_embeds = _clean_text(text, cleaner_names)
|
18 |
-
sequence = [_symbol_to_id[symbol] for symbol in cleaned_text.split()]
|
19 |
-
return sequence, char_embeds
|
20 |
-
else:
|
21 |
-
cleaned_text = _clean_text(text, cleaner_names)
|
22 |
-
sequence = [_symbol_to_id[symbol] for symbol in cleaned_text if symbol in _symbol_to_id.keys()]
|
23 |
-
return sequence
|
24 |
-
|
25 |
-
|
26 |
-
def _clean_text(text, cleaner_names):
|
27 |
-
for name in cleaner_names:
|
28 |
-
cleaner = getattr(cleaners, name)
|
29 |
-
if not cleaner:
|
30 |
-
raise Exception('Unknown cleaner: %s' % name)
|
31 |
-
text = cleaner(text)
|
32 |
-
return text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/chardet/jisfreq.py
DELETED
@@ -1,325 +0,0 @@
|
|
1 |
-
######################## BEGIN LICENSE BLOCK ########################
|
2 |
-
# The Original Code is Mozilla Communicator client code.
|
3 |
-
#
|
4 |
-
# The Initial Developer of the Original Code is
|
5 |
-
# Netscape Communications Corporation.
|
6 |
-
# Portions created by the Initial Developer are Copyright (C) 1998
|
7 |
-
# the Initial Developer. All Rights Reserved.
|
8 |
-
#
|
9 |
-
# Contributor(s):
|
10 |
-
# Mark Pilgrim - port to Python
|
11 |
-
#
|
12 |
-
# This library is free software; you can redistribute it and/or
|
13 |
-
# modify it under the terms of the GNU Lesser General Public
|
14 |
-
# License as published by the Free Software Foundation; either
|
15 |
-
# version 2.1 of the License, or (at your option) any later version.
|
16 |
-
#
|
17 |
-
# This library is distributed in the hope that it will be useful,
|
18 |
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
20 |
-
# Lesser General Public License for more details.
|
21 |
-
#
|
22 |
-
# You should have received a copy of the GNU Lesser General Public
|
23 |
-
# License along with this library; if not, write to the Free Software
|
24 |
-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
25 |
-
# 02110-1301 USA
|
26 |
-
######################### END LICENSE BLOCK #########################
|
27 |
-
|
28 |
-
# Sampling from about 20M text materials include literature and computer technology
|
29 |
-
#
|
30 |
-
# Japanese frequency table, applied to both S-JIS and EUC-JP
|
31 |
-
# They are sorted in order.
|
32 |
-
|
33 |
-
# 128 --> 0.77094
|
34 |
-
# 256 --> 0.85710
|
35 |
-
# 512 --> 0.92635
|
36 |
-
# 1024 --> 0.97130
|
37 |
-
# 2048 --> 0.99431
|
38 |
-
#
|
39 |
-
# Ideal Distribution Ratio = 0.92635 / (1-0.92635) = 12.58
|
40 |
-
# Random Distribution Ration = 512 / (2965+62+83+86-512) = 0.191
|
41 |
-
#
|
42 |
-
# Typical Distribution Ratio, 25% of IDR
|
43 |
-
|
44 |
-
JIS_TYPICAL_DISTRIBUTION_RATIO = 3.0
|
45 |
-
|
46 |
-
# Char to FreqOrder table ,
|
47 |
-
JIS_TABLE_SIZE = 4368
|
48 |
-
|
49 |
-
# fmt: off
|
50 |
-
JIS_CHAR_TO_FREQ_ORDER = (
|
51 |
-
40, 1, 6, 182, 152, 180, 295,2127, 285, 381,3295,4304,3068,4606,3165,3510, # 16
|
52 |
-
3511,1822,2785,4607,1193,2226,5070,4608, 171,2996,1247, 18, 179,5071, 856,1661, # 32
|
53 |
-
1262,5072, 619, 127,3431,3512,3230,1899,1700, 232, 228,1294,1298, 284, 283,2041, # 48
|
54 |
-
2042,1061,1062, 48, 49, 44, 45, 433, 434,1040,1041, 996, 787,2997,1255,4305, # 64
|
55 |
-
2108,4609,1684,1648,5073,5074,5075,5076,5077,5078,3687,5079,4610,5080,3927,3928, # 80
|
56 |
-
5081,3296,3432, 290,2285,1471,2187,5082,2580,2825,1303,2140,1739,1445,2691,3375, # 96
|
57 |
-
1691,3297,4306,4307,4611, 452,3376,1182,2713,3688,3069,4308,5083,5084,5085,5086, # 112
|
58 |
-
5087,5088,5089,5090,5091,5092,5093,5094,5095,5096,5097,5098,5099,5100,5101,5102, # 128
|
59 |
-
5103,5104,5105,5106,5107,5108,5109,5110,5111,5112,4097,5113,5114,5115,5116,5117, # 144
|
60 |
-
5118,5119,5120,5121,5122,5123,5124,5125,5126,5127,5128,5129,5130,5131,5132,5133, # 160
|
61 |
-
5134,5135,5136,5137,5138,5139,5140,5141,5142,5143,5144,5145,5146,5147,5148,5149, # 176
|
62 |
-
5150,5151,5152,4612,5153,5154,5155,5156,5157,5158,5159,5160,5161,5162,5163,5164, # 192
|
63 |
-
5165,5166,5167,5168,5169,5170,5171,5172,5173,5174,5175,1472, 598, 618, 820,1205, # 208
|
64 |
-
1309,1412,1858,1307,1692,5176,5177,5178,5179,5180,5181,5182,1142,1452,1234,1172, # 224
|
65 |
-
1875,2043,2149,1793,1382,2973, 925,2404,1067,1241, 960,1377,2935,1491, 919,1217, # 240
|
66 |
-
1865,2030,1406,1499,2749,4098,5183,5184,5185,5186,5187,5188,2561,4099,3117,1804, # 256
|
67 |
-
2049,3689,4309,3513,1663,5189,3166,3118,3298,1587,1561,3433,5190,3119,1625,2998, # 272
|
68 |
-
3299,4613,1766,3690,2786,4614,5191,5192,5193,5194,2161, 26,3377, 2,3929, 20, # 288
|
69 |
-
3691, 47,4100, 50, 17, 16, 35, 268, 27, 243, 42, 155, 24, 154, 29, 184, # 304
|
70 |
-
4, 91, 14, 92, 53, 396, 33, 289, 9, 37, 64, 620, 21, 39, 321, 5, # 320
|
71 |
-
12, 11, 52, 13, 3, 208, 138, 0, 7, 60, 526, 141, 151,1069, 181, 275, # 336
|
72 |
-
1591, 83, 132,1475, 126, 331, 829, 15, 69, 160, 59, 22, 157, 55,1079, 312, # 352
|
73 |
-
109, 38, 23, 25, 10, 19, 79,5195, 61, 382,1124, 8, 30,5196,5197,5198, # 368
|
74 |
-
5199,5200,5201,5202,5203,5204,5205,5206, 89, 62, 74, 34,2416, 112, 139, 196, # 384
|
75 |
-
271, 149, 84, 607, 131, 765, 46, 88, 153, 683, 76, 874, 101, 258, 57, 80, # 400
|
76 |
-
32, 364, 121,1508, 169,1547, 68, 235, 145,2999, 41, 360,3027, 70, 63, 31, # 416
|
77 |
-
43, 259, 262,1383, 99, 533, 194, 66, 93, 846, 217, 192, 56, 106, 58, 565, # 432
|
78 |
-
280, 272, 311, 256, 146, 82, 308, 71, 100, 128, 214, 655, 110, 261, 104,1140, # 448
|
79 |
-
54, 51, 36, 87, 67,3070, 185,2618,2936,2020, 28,1066,2390,2059,5207,5208, # 464
|
80 |
-
5209,5210,5211,5212,5213,5214,5215,5216,4615,5217,5218,5219,5220,5221,5222,5223, # 480
|
81 |
-
5224,5225,5226,5227,5228,5229,5230,5231,5232,5233,5234,5235,5236,3514,5237,5238, # 496
|
82 |
-
5239,5240,5241,5242,5243,5244,2297,2031,4616,4310,3692,5245,3071,5246,3598,5247, # 512
|
83 |
-
4617,3231,3515,5248,4101,4311,4618,3808,4312,4102,5249,4103,4104,3599,5250,5251, # 528
|
84 |
-
5252,5253,5254,5255,5256,5257,5258,5259,5260,5261,5262,5263,5264,5265,5266,5267, # 544
|
85 |
-
5268,5269,5270,5271,5272,5273,5274,5275,5276,5277,5278,5279,5280,5281,5282,5283, # 560
|
86 |
-
5284,5285,5286,5287,5288,5289,5290,5291,5292,5293,5294,5295,5296,5297,5298,5299, # 576
|
87 |
-
5300,5301,5302,5303,5304,5305,5306,5307,5308,5309,5310,5311,5312,5313,5314,5315, # 592
|
88 |
-
5316,5317,5318,5319,5320,5321,5322,5323,5324,5325,5326,5327,5328,5329,5330,5331, # 608
|
89 |
-
5332,5333,5334,5335,5336,5337,5338,5339,5340,5341,5342,5343,5344,5345,5346,5347, # 624
|
90 |
-
5348,5349,5350,5351,5352,5353,5354,5355,5356,5357,5358,5359,5360,5361,5362,5363, # 640
|
91 |
-
5364,5365,5366,5367,5368,5369,5370,5371,5372,5373,5374,5375,5376,5377,5378,5379, # 656
|
92 |
-
5380,5381, 363, 642,2787,2878,2788,2789,2316,3232,2317,3434,2011, 165,1942,3930, # 672
|
93 |
-
3931,3932,3933,5382,4619,5383,4620,5384,5385,5386,5387,5388,5389,5390,5391,5392, # 688
|
94 |
-
5393,5394,5395,5396,5397,5398,5399,5400,5401,5402,5403,5404,5405,5406,5407,5408, # 704
|
95 |
-
5409,5410,5411,5412,5413,5414,5415,5416,5417,5418,5419,5420,5421,5422,5423,5424, # 720
|
96 |
-
5425,5426,5427,5428,5429,5430,5431,5432,5433,5434,5435,5436,5437,5438,5439,5440, # 736
|
97 |
-
5441,5442,5443,5444,5445,5446,5447,5448,5449,5450,5451,5452,5453,5454,5455,5456, # 752
|
98 |
-
5457,5458,5459,5460,5461,5462,5463,5464,5465,5466,5467,5468,5469,5470,5471,5472, # 768
|
99 |
-
5473,5474,5475,5476,5477,5478,5479,5480,5481,5482,5483,5484,5485,5486,5487,5488, # 784
|
100 |
-
5489,5490,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,5502,5503,5504, # 800
|
101 |
-
5505,5506,5507,5508,5509,5510,5511,5512,5513,5514,5515,5516,5517,5518,5519,5520, # 816
|
102 |
-
5521,5522,5523,5524,5525,5526,5527,5528,5529,5530,5531,5532,5533,5534,5535,5536, # 832
|
103 |
-
5537,5538,5539,5540,5541,5542,5543,5544,5545,5546,5547,5548,5549,5550,5551,5552, # 848
|
104 |
-
5553,5554,5555,5556,5557,5558,5559,5560,5561,5562,5563,5564,5565,5566,5567,5568, # 864
|
105 |
-
5569,5570,5571,5572,5573,5574,5575,5576,5577,5578,5579,5580,5581,5582,5583,5584, # 880
|
106 |
-
5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600, # 896
|
107 |
-
5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5614,5615,5616, # 912
|
108 |
-
5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5630,5631,5632, # 928
|
109 |
-
5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5646,5647,5648, # 944
|
110 |
-
5649,5650,5651,5652,5653,5654,5655,5656,5657,5658,5659,5660,5661,5662,5663,5664, # 960
|
111 |
-
5665,5666,5667,5668,5669,5670,5671,5672,5673,5674,5675,5676,5677,5678,5679,5680, # 976
|
112 |
-
5681,5682,5683,5684,5685,5686,5687,5688,5689,5690,5691,5692,5693,5694,5695,5696, # 992
|
113 |
-
5697,5698,5699,5700,5701,5702,5703,5704,5705,5706,5707,5708,5709,5710,5711,5712, # 1008
|
114 |
-
5713,5714,5715,5716,5717,5718,5719,5720,5721,5722,5723,5724,5725,5726,5727,5728, # 1024
|
115 |
-
5729,5730,5731,5732,5733,5734,5735,5736,5737,5738,5739,5740,5741,5742,5743,5744, # 1040
|
116 |
-
5745,5746,5747,5748,5749,5750,5751,5752,5753,5754,5755,5756,5757,5758,5759,5760, # 1056
|
117 |
-
5761,5762,5763,5764,5765,5766,5767,5768,5769,5770,5771,5772,5773,5774,5775,5776, # 1072
|
118 |
-
5777,5778,5779,5780,5781,5782,5783,5784,5785,5786,5787,5788,5789,5790,5791,5792, # 1088
|
119 |
-
5793,5794,5795,5796,5797,5798,5799,5800,5801,5802,5803,5804,5805,5806,5807,5808, # 1104
|
120 |
-
5809,5810,5811,5812,5813,5814,5815,5816,5817,5818,5819,5820,5821,5822,5823,5824, # 1120
|
121 |
-
5825,5826,5827,5828,5829,5830,5831,5832,5833,5834,5835,5836,5837,5838,5839,5840, # 1136
|
122 |
-
5841,5842,5843,5844,5845,5846,5847,5848,5849,5850,5851,5852,5853,5854,5855,5856, # 1152
|
123 |
-
5857,5858,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872, # 1168
|
124 |
-
5873,5874,5875,5876,5877,5878,5879,5880,5881,5882,5883,5884,5885,5886,5887,5888, # 1184
|
125 |
-
5889,5890,5891,5892,5893,5894,5895,5896,5897,5898,5899,5900,5901,5902,5903,5904, # 1200
|
126 |
-
5905,5906,5907,5908,5909,5910,5911,5912,5913,5914,5915,5916,5917,5918,5919,5920, # 1216
|
127 |
-
5921,5922,5923,5924,5925,5926,5927,5928,5929,5930,5931,5932,5933,5934,5935,5936, # 1232
|
128 |
-
5937,5938,5939,5940,5941,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952, # 1248
|
129 |
-
5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968, # 1264
|
130 |
-
5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,5983,5984, # 1280
|
131 |
-
5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5997,5998,5999,6000, # 1296
|
132 |
-
6001,6002,6003,6004,6005,6006,6007,6008,6009,6010,6011,6012,6013,6014,6015,6016, # 1312
|
133 |
-
6017,6018,6019,6020,6021,6022,6023,6024,6025,6026,6027,6028,6029,6030,6031,6032, # 1328
|
134 |
-
6033,6034,6035,6036,6037,6038,6039,6040,6041,6042,6043,6044,6045,6046,6047,6048, # 1344
|
135 |
-
6049,6050,6051,6052,6053,6054,6055,6056,6057,6058,6059,6060,6061,6062,6063,6064, # 1360
|
136 |
-
6065,6066,6067,6068,6069,6070,6071,6072,6073,6074,6075,6076,6077,6078,6079,6080, # 1376
|
137 |
-
6081,6082,6083,6084,6085,6086,6087,6088,6089,6090,6091,6092,6093,6094,6095,6096, # 1392
|
138 |
-
6097,6098,6099,6100,6101,6102,6103,6104,6105,6106,6107,6108,6109,6110,6111,6112, # 1408
|
139 |
-
6113,6114,2044,2060,4621, 997,1235, 473,1186,4622, 920,3378,6115,6116, 379,1108, # 1424
|
140 |
-
4313,2657,2735,3934,6117,3809, 636,3233, 573,1026,3693,3435,2974,3300,2298,4105, # 1440
|
141 |
-
854,2937,2463, 393,2581,2417, 539, 752,1280,2750,2480, 140,1161, 440, 708,1569, # 1456
|
142 |
-
665,2497,1746,1291,1523,3000, 164,1603, 847,1331, 537,1997, 486, 508,1693,2418, # 1472
|
143 |
-
1970,2227, 878,1220, 299,1030, 969, 652,2751, 624,1137,3301,2619, 65,3302,2045, # 1488
|
144 |
-
1761,1859,3120,1930,3694,3516, 663,1767, 852, 835,3695, 269, 767,2826,2339,1305, # 1504
|
145 |
-
896,1150, 770,1616,6118, 506,1502,2075,1012,2519, 775,2520,2975,2340,2938,4314, # 1520
|
146 |
-
3028,2086,1224,1943,2286,6119,3072,4315,2240,1273,1987,3935,1557, 175, 597, 985, # 1536
|
147 |
-
3517,2419,2521,1416,3029, 585, 938,1931,1007,1052,1932,1685,6120,3379,4316,4623, # 1552
|
148 |
-
804, 599,3121,1333,2128,2539,1159,1554,2032,3810, 687,2033,2904, 952, 675,1467, # 1568
|
149 |
-
3436,6121,2241,1096,1786,2440,1543,1924, 980,1813,2228, 781,2692,1879, 728,1918, # 1584
|
150 |
-
3696,4624, 548,1950,4625,1809,1088,1356,3303,2522,1944, 502, 972, 373, 513,2827, # 1600
|
151 |
-
586,2377,2391,1003,1976,1631,6122,2464,1084, 648,1776,4626,2141, 324, 962,2012, # 1616
|
152 |
-
2177,2076,1384, 742,2178,1448,1173,1810, 222, 102, 301, 445, 125,2420, 662,2498, # 1632
|
153 |
-
277, 200,1476,1165,1068, 224,2562,1378,1446, 450,1880, 659, 791, 582,4627,2939, # 1648
|
154 |
-
3936,1516,1274, 555,2099,3697,1020,1389,1526,3380,1762,1723,1787,2229, 412,2114, # 1664
|
155 |
-
1900,2392,3518, 512,2597, 427,1925,2341,3122,1653,1686,2465,2499, 697, 330, 273, # 1680
|
156 |
-
380,2162, 951, 832, 780, 991,1301,3073, 965,2270,3519, 668,2523,2636,1286, 535, # 1696
|
157 |
-
1407, 518, 671, 957,2658,2378, 267, 611,2197,3030,6123, 248,2299, 967,1799,2356, # 1712
|
158 |
-
850,1418,3437,1876,1256,1480,2828,1718,6124,6125,1755,1664,2405,6126,4628,2879, # 1728
|
159 |
-
2829, 499,2179, 676,4629, 557,2329,2214,2090, 325,3234, 464, 811,3001, 992,2342, # 1744
|
160 |
-
2481,1232,1469, 303,2242, 466,1070,2163, 603,1777,2091,4630,2752,4631,2714, 322, # 1760
|
161 |
-
2659,1964,1768, 481,2188,1463,2330,2857,3600,2092,3031,2421,4632,2318,2070,1849, # 1776
|
162 |
-
2598,4633,1302,2254,1668,1701,2422,3811,2905,3032,3123,2046,4106,1763,1694,4634, # 1792
|
163 |
-
1604, 943,1724,1454, 917, 868,2215,1169,2940, 552,1145,1800,1228,1823,1955, 316, # 1808
|
164 |
-
1080,2510, 361,1807,2830,4107,2660,3381,1346,1423,1134,4108,6127, 541,1263,1229, # 1824
|
165 |
-
1148,2540, 545, 465,1833,2880,3438,1901,3074,2482, 816,3937, 713,1788,2500, 122, # 1840
|
166 |
-
1575, 195,1451,2501,1111,6128, 859, 374,1225,2243,2483,4317, 390,1033,3439,3075, # 1856
|
167 |
-
2524,1687, 266, 793,1440,2599, 946, 779, 802, 507, 897,1081, 528,2189,1292, 711, # 1872
|
168 |
-
1866,1725,1167,1640, 753, 398,2661,1053, 246, 348,4318, 137,1024,3440,1600,2077, # 1888
|
169 |
-
2129, 825,4319, 698, 238, 521, 187,2300,1157,2423,1641,1605,1464,1610,1097,2541, # 1904
|
170 |
-
1260,1436, 759,2255,1814,2150, 705,3235, 409,2563,3304, 561,3033,2005,2564, 726, # 1920
|
171 |
-
1956,2343,3698,4109, 949,3812,3813,3520,1669, 653,1379,2525, 881,2198, 632,2256, # 1936
|
172 |
-
1027, 778,1074, 733,1957, 514,1481,2466, 554,2180, 702,3938,1606,1017,1398,6129, # 1952
|
173 |
-
1380,3521, 921, 993,1313, 594, 449,1489,1617,1166, 768,1426,1360, 495,1794,3601, # 1968
|
174 |
-
1177,3602,1170,4320,2344, 476, 425,3167,4635,3168,1424, 401,2662,1171,3382,1998, # 1984
|
175 |
-
1089,4110, 477,3169, 474,6130,1909, 596,2831,1842, 494, 693,1051,1028,1207,3076, # 2000
|
176 |
-
606,2115, 727,2790,1473,1115, 743,3522, 630, 805,1532,4321,2021, 366,1057, 838, # 2016
|
177 |
-
684,1114,2142,4322,2050,1492,1892,1808,2271,3814,2424,1971,1447,1373,3305,1090, # 2032
|
178 |
-
1536,3939,3523,3306,1455,2199, 336, 369,2331,1035, 584,2393, 902, 718,2600,6131, # 2048
|
179 |
-
2753, 463,2151,1149,1611,2467, 715,1308,3124,1268, 343,1413,3236,1517,1347,2663, # 2064
|
180 |
-
2093,3940,2022,1131,1553,2100,2941,1427,3441,2942,1323,2484,6132,1980, 872,2368, # 2080
|
181 |
-
2441,2943, 320,2369,2116,1082, 679,1933,3941,2791,3815, 625,1143,2023, 422,2200, # 2096
|
182 |
-
3816,6133, 730,1695, 356,2257,1626,2301,2858,2637,1627,1778, 937, 883,2906,2693, # 2112
|
183 |
-
3002,1769,1086, 400,1063,1325,3307,2792,4111,3077, 456,2345,1046, 747,6134,1524, # 2128
|
184 |
-
884,1094,3383,1474,2164,1059, 974,1688,2181,2258,1047, 345,1665,1187, 358, 875, # 2144
|
185 |
-
3170, 305, 660,3524,2190,1334,1135,3171,1540,1649,2542,1527, 927, 968,2793, 885, # 2160
|
186 |
-
1972,1850, 482, 500,2638,1218,1109,1085,2543,1654,2034, 876, 78,2287,1482,1277, # 2176
|
187 |
-
861,1675,1083,1779, 724,2754, 454, 397,1132,1612,2332, 893, 672,1237, 257,2259, # 2192
|
188 |
-
2370, 135,3384, 337,2244, 547, 352, 340, 709,2485,1400, 788,1138,2511, 540, 772, # 2208
|
189 |
-
1682,2260,2272,2544,2013,1843,1902,4636,1999,1562,2288,4637,2201,1403,1533, 407, # 2224
|
190 |
-
576,3308,1254,2071, 978,3385, 170, 136,1201,3125,2664,3172,2394, 213, 912, 873, # 2240
|
191 |
-
3603,1713,2202, 699,3604,3699, 813,3442, 493, 531,1054, 468,2907,1483, 304, 281, # 2256
|
192 |
-
4112,1726,1252,2094, 339,2319,2130,2639, 756,1563,2944, 748, 571,2976,1588,2425, # 2272
|
193 |
-
2715,1851,1460,2426,1528,1392,1973,3237, 288,3309, 685,3386, 296, 892,2716,2216, # 2288
|
194 |
-
1570,2245, 722,1747,2217, 905,3238,1103,6135,1893,1441,1965, 251,1805,2371,3700, # 2304
|
195 |
-
2601,1919,1078, 75,2182,1509,1592,1270,2640,4638,2152,6136,3310,3817, 524, 706, # 2320
|
196 |
-
1075, 292,3818,1756,2602, 317, 98,3173,3605,3525,1844,2218,3819,2502, 814, 567, # 2336
|
197 |
-
385,2908,1534,6137, 534,1642,3239, 797,6138,1670,1529, 953,4323, 188,1071, 538, # 2352
|
198 |
-
178, 729,3240,2109,1226,1374,2000,2357,2977, 731,2468,1116,2014,2051,6139,1261, # 2368
|
199 |
-
1593, 803,2859,2736,3443, 556, 682, 823,1541,6140,1369,2289,1706,2794, 845, 462, # 2384
|
200 |
-
2603,2665,1361, 387, 162,2358,1740, 739,1770,1720,1304,1401,3241,1049, 627,1571, # 2400
|
201 |
-
2427,3526,1877,3942,1852,1500, 431,1910,1503, 677, 297,2795, 286,1433,1038,1198, # 2416
|
202 |
-
2290,1133,1596,4113,4639,2469,1510,1484,3943,6141,2442, 108, 712,4640,2372, 866, # 2432
|
203 |
-
3701,2755,3242,1348, 834,1945,1408,3527,2395,3243,1811, 824, 994,1179,2110,1548, # 2448
|
204 |
-
1453, 790,3003, 690,4324,4325,2832,2909,3820,1860,3821, 225,1748, 310, 346,1780, # 2464
|
205 |
-
2470, 821,1993,2717,2796, 828, 877,3528,2860,2471,1702,2165,2910,2486,1789, 453, # 2480
|
206 |
-
359,2291,1676, 73,1164,1461,1127,3311, 421, 604, 314,1037, 589, 116,2487, 737, # 2496
|
207 |
-
837,1180, 111, 244, 735,6142,2261,1861,1362, 986, 523, 418, 581,2666,3822, 103, # 2512
|
208 |
-
855, 503,1414,1867,2488,1091, 657,1597, 979, 605,1316,4641,1021,2443,2078,2001, # 2528
|
209 |
-
1209, 96, 587,2166,1032, 260,1072,2153, 173, 94, 226,3244, 819,2006,4642,4114, # 2544
|
210 |
-
2203, 231,1744, 782, 97,2667, 786,3387, 887, 391, 442,2219,4326,1425,6143,2694, # 2560
|
211 |
-
633,1544,1202, 483,2015, 592,2052,1958,2472,1655, 419, 129,4327,3444,3312,1714, # 2576
|
212 |
-
1257,3078,4328,1518,1098, 865,1310,1019,1885,1512,1734, 469,2444, 148, 773, 436, # 2592
|
213 |
-
1815,1868,1128,1055,4329,1245,2756,3445,2154,1934,1039,4643, 579,1238, 932,2320, # 2608
|
214 |
-
353, 205, 801, 115,2428, 944,2321,1881, 399,2565,1211, 678, 766,3944, 335,2101, # 2624
|
215 |
-
1459,1781,1402,3945,2737,2131,1010, 844, 981,1326,1013, 550,1816,1545,2620,1335, # 2640
|
216 |
-
1008, 371,2881, 936,1419,1613,3529,1456,1395,2273,1834,2604,1317,2738,2503, 416, # 2656
|
217 |
-
1643,4330, 806,1126, 229, 591,3946,1314,1981,1576,1837,1666, 347,1790, 977,3313, # 2672
|
218 |
-
764,2861,1853, 688,2429,1920,1462, 77, 595, 415,2002,3034, 798,1192,4115,6144, # 2688
|
219 |
-
2978,4331,3035,2695,2582,2072,2566, 430,2430,1727, 842,1396,3947,3702, 613, 377, # 2704
|
220 |
-
278, 236,1417,3388,3314,3174, 757,1869, 107,3530,6145,1194, 623,2262, 207,1253, # 2720
|
221 |
-
2167,3446,3948, 492,1117,1935, 536,1838,2757,1246,4332, 696,2095,2406,1393,1572, # 2736
|
222 |
-
3175,1782, 583, 190, 253,1390,2230, 830,3126,3389, 934,3245,1703,1749,2979,1870, # 2752
|
223 |
-
2545,1656,2204, 869,2346,4116,3176,1817, 496,1764,4644, 942,1504, 404,1903,1122, # 2768
|
224 |
-
1580,3606,2945,1022, 515, 372,1735, 955,2431,3036,6146,2797,1110,2302,2798, 617, # 2784
|
225 |
-
6147, 441, 762,1771,3447,3607,3608,1904, 840,3037, 86, 939,1385, 572,1370,2445, # 2800
|
226 |
-
1336, 114,3703, 898, 294, 203,3315, 703,1583,2274, 429, 961,4333,1854,1951,3390, # 2816
|
227 |
-
2373,3704,4334,1318,1381, 966,1911,2322,1006,1155, 309, 989, 458,2718,1795,1372, # 2832
|
228 |
-
1203, 252,1689,1363,3177, 517,1936, 168,1490, 562, 193,3823,1042,4117,1835, 551, # 2848
|
229 |
-
470,4645, 395, 489,3448,1871,1465,2583,2641, 417,1493, 279,1295, 511,1236,1119, # 2864
|
230 |
-
72,1231,1982,1812,3004, 871,1564, 984,3449,1667,2696,2096,4646,2347,2833,1673, # 2880
|
231 |
-
3609, 695,3246,2668, 807,1183,4647, 890, 388,2333,1801,1457,2911,1765,1477,1031, # 2896
|
232 |
-
3316,3317,1278,3391,2799,2292,2526, 163,3450,4335,2669,1404,1802,6148,2323,2407, # 2912
|
233 |
-
1584,1728,1494,1824,1269, 298, 909,3318,1034,1632, 375, 776,1683,2061, 291, 210, # 2928
|
234 |
-
1123, 809,1249,1002,2642,3038, 206,1011,2132, 144, 975, 882,1565, 342, 667, 754, # 2944
|
235 |
-
1442,2143,1299,2303,2062, 447, 626,2205,1221,2739,2912,1144,1214,2206,2584, 760, # 2960
|
236 |
-
1715, 614, 950,1281,2670,2621, 810, 577,1287,2546,4648, 242,2168, 250,2643, 691, # 2976
|
237 |
-
123,2644, 647, 313,1029, 689,1357,2946,1650, 216, 771,1339,1306, 808,2063, 549, # 2992
|
238 |
-
913,1371,2913,2914,6149,1466,1092,1174,1196,1311,2605,2396,1783,1796,3079, 406, # 3008
|
239 |
-
2671,2117,3949,4649, 487,1825,2220,6150,2915, 448,2348,1073,6151,2397,1707, 130, # 3024
|
240 |
-
900,1598, 329, 176,1959,2527,1620,6152,2275,4336,3319,1983,2191,3705,3610,2155, # 3040
|
241 |
-
3706,1912,1513,1614,6153,1988, 646, 392,2304,1589,3320,3039,1826,1239,1352,1340, # 3056
|
242 |
-
2916, 505,2567,1709,1437,2408,2547, 906,6154,2672, 384,1458,1594,1100,1329, 710, # 3072
|
243 |
-
423,3531,2064,2231,2622,1989,2673,1087,1882, 333, 841,3005,1296,2882,2379, 580, # 3088
|
244 |
-
1937,1827,1293,2585, 601, 574, 249,1772,4118,2079,1120, 645, 901,1176,1690, 795, # 3104
|
245 |
-
2207, 478,1434, 516,1190,1530, 761,2080, 930,1264, 355, 435,1552, 644,1791, 987, # 3120
|
246 |
-
220,1364,1163,1121,1538, 306,2169,1327,1222, 546,2645, 218, 241, 610,1704,3321, # 3136
|
247 |
-
1984,1839,1966,2528, 451,6155,2586,3707,2568, 907,3178, 254,2947, 186,1845,4650, # 3152
|
248 |
-
745, 432,1757, 428,1633, 888,2246,2221,2489,3611,2118,1258,1265, 956,3127,1784, # 3168
|
249 |
-
4337,2490, 319, 510, 119, 457,3612, 274,2035,2007,4651,1409,3128, 970,2758, 590, # 3184
|
250 |
-
2800, 661,2247,4652,2008,3950,1420,1549,3080,3322,3951,1651,1375,2111, 485,2491, # 3200
|
251 |
-
1429,1156,6156,2548,2183,1495, 831,1840,2529,2446, 501,1657, 307,1894,3247,1341, # 3216
|
252 |
-
666, 899,2156,1539,2549,1559, 886, 349,2208,3081,2305,1736,3824,2170,2759,1014, # 3232
|
253 |
-
1913,1386, 542,1397,2948, 490, 368, 716, 362, 159, 282,2569,1129,1658,1288,1750, # 3248
|
254 |
-
2674, 276, 649,2016, 751,1496, 658,1818,1284,1862,2209,2087,2512,3451, 622,2834, # 3264
|
255 |
-
376, 117,1060,2053,1208,1721,1101,1443, 247,1250,3179,1792,3952,2760,2398,3953, # 3280
|
256 |
-
6157,2144,3708, 446,2432,1151,2570,3452,2447,2761,2835,1210,2448,3082, 424,2222, # 3296
|
257 |
-
1251,2449,2119,2836, 504,1581,4338, 602, 817, 857,3825,2349,2306, 357,3826,1470, # 3312
|
258 |
-
1883,2883, 255, 958, 929,2917,3248, 302,4653,1050,1271,1751,2307,1952,1430,2697, # 3328
|
259 |
-
2719,2359, 354,3180, 777, 158,2036,4339,1659,4340,4654,2308,2949,2248,1146,2232, # 3344
|
260 |
-
3532,2720,1696,2623,3827,6158,3129,1550,2698,1485,1297,1428, 637, 931,2721,2145, # 3360
|
261 |
-
914,2550,2587, 81,2450, 612, 827,2646,1242,4655,1118,2884, 472,1855,3181,3533, # 3376
|
262 |
-
3534, 569,1353,2699,1244,1758,2588,4119,2009,2762,2171,3709,1312,1531,6159,1152, # 3392
|
263 |
-
1938, 134,1830, 471,3710,2276,1112,1535,3323,3453,3535, 982,1337,2950, 488, 826, # 3408
|
264 |
-
674,1058,1628,4120,2017, 522,2399, 211, 568,1367,3454, 350, 293,1872,1139,3249, # 3424
|
265 |
-
1399,1946,3006,1300,2360,3324, 588, 736,6160,2606, 744, 669,3536,3828,6161,1358, # 3440
|
266 |
-
199, 723, 848, 933, 851,1939,1505,1514,1338,1618,1831,4656,1634,3613, 443,2740, # 3456
|
267 |
-
3829, 717,1947, 491,1914,6162,2551,1542,4121,1025,6163,1099,1223, 198,3040,2722, # 3472
|
268 |
-
370, 410,1905,2589, 998,1248,3182,2380, 519,1449,4122,1710, 947, 928,1153,4341, # 3488
|
269 |
-
2277, 344,2624,1511, 615, 105, 161,1212,1076,1960,3130,2054,1926,1175,1906,2473, # 3504
|
270 |
-
414,1873,2801,6164,2309, 315,1319,3325, 318,2018,2146,2157, 963, 631, 223,4342, # 3520
|
271 |
-
4343,2675, 479,3711,1197,2625,3712,2676,2361,6165,4344,4123,6166,2451,3183,1886, # 3536
|
272 |
-
2184,1674,1330,1711,1635,1506, 799, 219,3250,3083,3954,1677,3713,3326,2081,3614, # 3552
|
273 |
-
1652,2073,4657,1147,3041,1752, 643,1961, 147,1974,3955,6167,1716,2037, 918,3007, # 3568
|
274 |
-
1994, 120,1537, 118, 609,3184,4345, 740,3455,1219, 332,1615,3830,6168,1621,2980, # 3584
|
275 |
-
1582, 783, 212, 553,2350,3714,1349,2433,2082,4124, 889,6169,2310,1275,1410, 973, # 3600
|
276 |
-
166,1320,3456,1797,1215,3185,2885,1846,2590,2763,4658, 629, 822,3008, 763, 940, # 3616
|
277 |
-
1990,2862, 439,2409,1566,1240,1622, 926,1282,1907,2764, 654,2210,1607, 327,1130, # 3632
|
278 |
-
3956,1678,1623,6170,2434,2192, 686, 608,3831,3715, 903,3957,3042,6171,2741,1522, # 3648
|
279 |
-
1915,1105,1555,2552,1359, 323,3251,4346,3457, 738,1354,2553,2311,2334,1828,2003, # 3664
|
280 |
-
3832,1753,2351,1227,6172,1887,4125,1478,6173,2410,1874,1712,1847, 520,1204,2607, # 3680
|
281 |
-
264,4659, 836,2677,2102, 600,4660,3833,2278,3084,6174,4347,3615,1342, 640, 532, # 3696
|
282 |
-
543,2608,1888,2400,2591,1009,4348,1497, 341,1737,3616,2723,1394, 529,3252,1321, # 3712
|
283 |
-
983,4661,1515,2120, 971,2592, 924, 287,1662,3186,4349,2700,4350,1519, 908,1948, # 3728
|
284 |
-
2452, 156, 796,1629,1486,2223,2055, 694,4126,1259,1036,3392,1213,2249,2742,1889, # 3744
|
285 |
-
1230,3958,1015, 910, 408, 559,3617,4662, 746, 725, 935,4663,3959,3009,1289, 563, # 3760
|
286 |
-
867,4664,3960,1567,2981,2038,2626, 988,2263,2381,4351, 143,2374, 704,1895,6175, # 3776
|
287 |
-
1188,3716,2088, 673,3085,2362,4352, 484,1608,1921,2765,2918, 215, 904,3618,3537, # 3792
|
288 |
-
894, 509, 976,3043,2701,3961,4353,2837,2982, 498,6176,6177,1102,3538,1332,3393, # 3808
|
289 |
-
1487,1636,1637, 233, 245,3962, 383, 650, 995,3044, 460,1520,1206,2352, 749,3327, # 3824
|
290 |
-
530, 700, 389,1438,1560,1773,3963,2264, 719,2951,2724,3834, 870,1832,1644,1000, # 3840
|
291 |
-
839,2474,3717, 197,1630,3394, 365,2886,3964,1285,2133, 734, 922, 818,1106, 732, # 3856
|
292 |
-
480,2083,1774,3458, 923,2279,1350, 221,3086, 85,2233,2234,3835,1585,3010,2147, # 3872
|
293 |
-
1387,1705,2382,1619,2475, 133, 239,2802,1991,1016,2084,2383, 411,2838,1113, 651, # 3888
|
294 |
-
1985,1160,3328, 990,1863,3087,1048,1276,2647, 265,2627,1599,3253,2056, 150, 638, # 3904
|
295 |
-
2019, 656, 853, 326,1479, 680,1439,4354,1001,1759, 413,3459,3395,2492,1431, 459, # 3920
|
296 |
-
4355,1125,3329,2265,1953,1450,2065,2863, 849, 351,2678,3131,3254,3255,1104,1577, # 3936
|
297 |
-
227,1351,1645,2453,2193,1421,2887, 812,2121, 634, 95,2435, 201,2312,4665,1646, # 3952
|
298 |
-
1671,2743,1601,2554,2702,2648,2280,1315,1366,2089,3132,1573,3718,3965,1729,1189, # 3968
|
299 |
-
328,2679,1077,1940,1136, 558,1283, 964,1195, 621,2074,1199,1743,3460,3619,1896, # 3984
|
300 |
-
1916,1890,3836,2952,1154,2112,1064, 862, 378,3011,2066,2113,2803,1568,2839,6178, # 4000
|
301 |
-
3088,2919,1941,1660,2004,1992,2194, 142, 707,1590,1708,1624,1922,1023,1836,1233, # 4016
|
302 |
-
1004,2313, 789, 741,3620,6179,1609,2411,1200,4127,3719,3720,4666,2057,3721, 593, # 4032
|
303 |
-
2840, 367,2920,1878,6180,3461,1521, 628,1168, 692,2211,2649, 300, 720,2067,2571, # 4048
|
304 |
-
2953,3396, 959,2504,3966,3539,3462,1977, 701,6181, 954,1043, 800, 681, 183,3722, # 4064
|
305 |
-
1803,1730,3540,4128,2103, 815,2314, 174, 467, 230,2454,1093,2134, 755,3541,3397, # 4080
|
306 |
-
1141,1162,6182,1738,2039, 270,3256,2513,1005,1647,2185,3837, 858,1679,1897,1719, # 4096
|
307 |
-
2954,2324,1806, 402, 670, 167,4129,1498,2158,2104, 750,6183, 915, 189,1680,1551, # 4112
|
308 |
-
455,4356,1501,2455, 405,1095,2955, 338,1586,1266,1819, 570, 641,1324, 237,1556, # 4128
|
309 |
-
2650,1388,3723,6184,1368,2384,1343,1978,3089,2436, 879,3724, 792,1191, 758,3012, # 4144
|
310 |
-
1411,2135,1322,4357, 240,4667,1848,3725,1574,6185, 420,3045,1546,1391, 714,4358, # 4160
|
311 |
-
1967, 941,1864, 863, 664, 426, 560,1731,2680,1785,2864,1949,2363, 403,3330,1415, # 4176
|
312 |
-
1279,2136,1697,2335, 204, 721,2097,3838, 90,6186,2085,2505, 191,3967, 124,2148, # 4192
|
313 |
-
1376,1798,1178,1107,1898,1405, 860,4359,1243,1272,2375,2983,1558,2456,1638, 113, # 4208
|
314 |
-
3621, 578,1923,2609, 880, 386,4130, 784,2186,2266,1422,2956,2172,1722, 497, 263, # 4224
|
315 |
-
2514,1267,2412,2610, 177,2703,3542, 774,1927,1344, 616,1432,1595,1018, 172,4360, # 4240
|
316 |
-
2325, 911,4361, 438,1468,3622, 794,3968,2024,2173,1681,1829,2957, 945, 895,3090, # 4256
|
317 |
-
575,2212,2476, 475,2401,2681, 785,2744,1745,2293,2555,1975,3133,2865, 394,4668, # 4272
|
318 |
-
3839, 635,4131, 639, 202,1507,2195,2766,1345,1435,2572,3726,1908,1184,1181,2457, # 4288
|
319 |
-
3727,3134,4362, 843,2611, 437, 916,4669, 234, 769,1884,3046,3047,3623, 833,6187, # 4304
|
320 |
-
1639,2250,2402,1355,1185,2010,2047, 999, 525,1732,1290,1488,2612, 948,1578,3728, # 4320
|
321 |
-
2413,2477,1216,2725,2159, 334,3840,1328,3624,2921,1525,4132, 564,1056, 891,4363, # 4336
|
322 |
-
1444,1698,2385,2251,3729,1365,2281,2235,1717,6188, 864,3841,2515, 444, 527,2767, # 4352
|
323 |
-
2922,3625, 544, 461,6189, 566, 209,2437,3398,2098,1065,2068,3331,3626,3257,2137, # 4368 #last 512
|
324 |
-
)
|
325 |
-
# fmt: on
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/command/bdist_dumb.py
DELETED
@@ -1,144 +0,0 @@
|
|
1 |
-
"""distutils.command.bdist_dumb
|
2 |
-
|
3 |
-
Implements the Distutils 'bdist_dumb' command (create a "dumb" built
|
4 |
-
distribution -- i.e., just an archive to be unpacked under $prefix or
|
5 |
-
$exec_prefix)."""
|
6 |
-
|
7 |
-
import os
|
8 |
-
from distutils.core import Command
|
9 |
-
from distutils.util import get_platform
|
10 |
-
from distutils.dir_util import remove_tree, ensure_relative
|
11 |
-
from distutils.errors import DistutilsPlatformError
|
12 |
-
from distutils.sysconfig import get_python_version
|
13 |
-
from distutils import log
|
14 |
-
|
15 |
-
|
16 |
-
class bdist_dumb(Command):
|
17 |
-
|
18 |
-
description = "create a \"dumb\" built distribution"
|
19 |
-
|
20 |
-
user_options = [
|
21 |
-
('bdist-dir=', 'd', "temporary directory for creating the distribution"),
|
22 |
-
(
|
23 |
-
'plat-name=',
|
24 |
-
'p',
|
25 |
-
"platform name to embed in generated filenames "
|
26 |
-
"(default: %s)" % get_platform(),
|
27 |
-
),
|
28 |
-
(
|
29 |
-
'format=',
|
30 |
-
'f',
|
31 |
-
"archive format to create (tar, gztar, bztar, xztar, " "ztar, zip)",
|
32 |
-
),
|
33 |
-
(
|
34 |
-
'keep-temp',
|
35 |
-
'k',
|
36 |
-
"keep the pseudo-installation tree around after "
|
37 |
-
+ "creating the distribution archive",
|
38 |
-
),
|
39 |
-
('dist-dir=', 'd', "directory to put final built distributions in"),
|
40 |
-
('skip-build', None, "skip rebuilding everything (for testing/debugging)"),
|
41 |
-
(
|
42 |
-
'relative',
|
43 |
-
None,
|
44 |
-
"build the archive using relative paths " "(default: false)",
|
45 |
-
),
|
46 |
-
(
|
47 |
-
'owner=',
|
48 |
-
'u',
|
49 |
-
"Owner name used when creating a tar file" " [default: current user]",
|
50 |
-
),
|
51 |
-
(
|
52 |
-
'group=',
|
53 |
-
'g',
|
54 |
-
"Group name used when creating a tar file" " [default: current group]",
|
55 |
-
),
|
56 |
-
]
|
57 |
-
|
58 |
-
boolean_options = ['keep-temp', 'skip-build', 'relative']
|
59 |
-
|
60 |
-
default_format = {'posix': 'gztar', 'nt': 'zip'}
|
61 |
-
|
62 |
-
def initialize_options(self):
|
63 |
-
self.bdist_dir = None
|
64 |
-
self.plat_name = None
|
65 |
-
self.format = None
|
66 |
-
self.keep_temp = 0
|
67 |
-
self.dist_dir = None
|
68 |
-
self.skip_build = None
|
69 |
-
self.relative = 0
|
70 |
-
self.owner = None
|
71 |
-
self.group = None
|
72 |
-
|
73 |
-
def finalize_options(self):
|
74 |
-
if self.bdist_dir is None:
|
75 |
-
bdist_base = self.get_finalized_command('bdist').bdist_base
|
76 |
-
self.bdist_dir = os.path.join(bdist_base, 'dumb')
|
77 |
-
|
78 |
-
if self.format is None:
|
79 |
-
try:
|
80 |
-
self.format = self.default_format[os.name]
|
81 |
-
except KeyError:
|
82 |
-
raise DistutilsPlatformError(
|
83 |
-
"don't know how to create dumb built distributions "
|
84 |
-
"on platform %s" % os.name
|
85 |
-
)
|
86 |
-
|
87 |
-
self.set_undefined_options(
|
88 |
-
'bdist',
|
89 |
-
('dist_dir', 'dist_dir'),
|
90 |
-
('plat_name', 'plat_name'),
|
91 |
-
('skip_build', 'skip_build'),
|
92 |
-
)
|
93 |
-
|
94 |
-
def run(self):
|
95 |
-
if not self.skip_build:
|
96 |
-
self.run_command('build')
|
97 |
-
|
98 |
-
install = self.reinitialize_command('install', reinit_subcommands=1)
|
99 |
-
install.root = self.bdist_dir
|
100 |
-
install.skip_build = self.skip_build
|
101 |
-
install.warn_dir = 0
|
102 |
-
|
103 |
-
log.info("installing to %s", self.bdist_dir)
|
104 |
-
self.run_command('install')
|
105 |
-
|
106 |
-
# And make an archive relative to the root of the
|
107 |
-
# pseudo-installation tree.
|
108 |
-
archive_basename = "{}.{}".format(
|
109 |
-
self.distribution.get_fullname(), self.plat_name
|
110 |
-
)
|
111 |
-
|
112 |
-
pseudoinstall_root = os.path.join(self.dist_dir, archive_basename)
|
113 |
-
if not self.relative:
|
114 |
-
archive_root = self.bdist_dir
|
115 |
-
else:
|
116 |
-
if self.distribution.has_ext_modules() and (
|
117 |
-
install.install_base != install.install_platbase
|
118 |
-
):
|
119 |
-
raise DistutilsPlatformError(
|
120 |
-
"can't make a dumb built distribution where "
|
121 |
-
"base and platbase are different (%s, %s)"
|
122 |
-
% (repr(install.install_base), repr(install.install_platbase))
|
123 |
-
)
|
124 |
-
else:
|
125 |
-
archive_root = os.path.join(
|
126 |
-
self.bdist_dir, ensure_relative(install.install_base)
|
127 |
-
)
|
128 |
-
|
129 |
-
# Make the archive
|
130 |
-
filename = self.make_archive(
|
131 |
-
pseudoinstall_root,
|
132 |
-
self.format,
|
133 |
-
root_dir=archive_root,
|
134 |
-
owner=self.owner,
|
135 |
-
group=self.group,
|
136 |
-
)
|
137 |
-
if self.distribution.has_ext_modules():
|
138 |
-
pyversion = get_python_version()
|
139 |
-
else:
|
140 |
-
pyversion = 'any'
|
141 |
-
self.distribution.dist_files.append(('bdist_dumb', pyversion, filename))
|
142 |
-
|
143 |
-
if not self.keep_temp:
|
144 |
-
remove_tree(self.bdist_dir, dry_run=self.dry_run)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_scripts.py
DELETED
@@ -1,173 +0,0 @@
|
|
1 |
-
"""distutils.command.build_scripts
|
2 |
-
|
3 |
-
Implements the Distutils 'build_scripts' command."""
|
4 |
-
|
5 |
-
import os
|
6 |
-
import re
|
7 |
-
from stat import ST_MODE
|
8 |
-
from distutils import sysconfig
|
9 |
-
from distutils.core import Command
|
10 |
-
from distutils.dep_util import newer
|
11 |
-
from distutils.util import convert_path
|
12 |
-
from distutils import log
|
13 |
-
import tokenize
|
14 |
-
|
15 |
-
shebang_pattern = re.compile('^#!.*python[0-9.]*([ \t].*)?$')
|
16 |
-
"""
|
17 |
-
Pattern matching a Python interpreter indicated in first line of a script.
|
18 |
-
"""
|
19 |
-
|
20 |
-
# for Setuptools compatibility
|
21 |
-
first_line_re = shebang_pattern
|
22 |
-
|
23 |
-
|
24 |
-
class build_scripts(Command):
|
25 |
-
|
26 |
-
description = "\"build\" scripts (copy and fixup #! line)"
|
27 |
-
|
28 |
-
user_options = [
|
29 |
-
('build-dir=', 'd', "directory to \"build\" (copy) to"),
|
30 |
-
('force', 'f', "forcibly build everything (ignore file timestamps"),
|
31 |
-
('executable=', 'e', "specify final destination interpreter path"),
|
32 |
-
]
|
33 |
-
|
34 |
-
boolean_options = ['force']
|
35 |
-
|
36 |
-
def initialize_options(self):
|
37 |
-
self.build_dir = None
|
38 |
-
self.scripts = None
|
39 |
-
self.force = None
|
40 |
-
self.executable = None
|
41 |
-
|
42 |
-
def finalize_options(self):
|
43 |
-
self.set_undefined_options(
|
44 |
-
'build',
|
45 |
-
('build_scripts', 'build_dir'),
|
46 |
-
('force', 'force'),
|
47 |
-
('executable', 'executable'),
|
48 |
-
)
|
49 |
-
self.scripts = self.distribution.scripts
|
50 |
-
|
51 |
-
def get_source_files(self):
|
52 |
-
return self.scripts
|
53 |
-
|
54 |
-
def run(self):
|
55 |
-
if not self.scripts:
|
56 |
-
return
|
57 |
-
self.copy_scripts()
|
58 |
-
|
59 |
-
def copy_scripts(self):
|
60 |
-
"""
|
61 |
-
Copy each script listed in ``self.scripts``.
|
62 |
-
|
63 |
-
If a script is marked as a Python script (first line matches
|
64 |
-
'shebang_pattern', i.e. starts with ``#!`` and contains
|
65 |
-
"python"), then adjust in the copy the first line to refer to
|
66 |
-
the current Python interpreter.
|
67 |
-
"""
|
68 |
-
self.mkpath(self.build_dir)
|
69 |
-
outfiles = []
|
70 |
-
updated_files = []
|
71 |
-
for script in self.scripts:
|
72 |
-
self._copy_script(script, outfiles, updated_files)
|
73 |
-
|
74 |
-
self._change_modes(outfiles)
|
75 |
-
|
76 |
-
return outfiles, updated_files
|
77 |
-
|
78 |
-
def _copy_script(self, script, outfiles, updated_files): # noqa: C901
|
79 |
-
shebang_match = None
|
80 |
-
script = convert_path(script)
|
81 |
-
outfile = os.path.join(self.build_dir, os.path.basename(script))
|
82 |
-
outfiles.append(outfile)
|
83 |
-
|
84 |
-
if not self.force and not newer(script, outfile):
|
85 |
-
log.debug("not copying %s (up-to-date)", script)
|
86 |
-
return
|
87 |
-
|
88 |
-
# Always open the file, but ignore failures in dry-run mode
|
89 |
-
# in order to attempt to copy directly.
|
90 |
-
try:
|
91 |
-
f = tokenize.open(script)
|
92 |
-
except OSError:
|
93 |
-
if not self.dry_run:
|
94 |
-
raise
|
95 |
-
f = None
|
96 |
-
else:
|
97 |
-
first_line = f.readline()
|
98 |
-
if not first_line:
|
99 |
-
self.warn("%s is an empty file (skipping)" % script)
|
100 |
-
return
|
101 |
-
|
102 |
-
shebang_match = shebang_pattern.match(first_line)
|
103 |
-
|
104 |
-
updated_files.append(outfile)
|
105 |
-
if shebang_match:
|
106 |
-
log.info("copying and adjusting %s -> %s", script, self.build_dir)
|
107 |
-
if not self.dry_run:
|
108 |
-
if not sysconfig.python_build:
|
109 |
-
executable = self.executable
|
110 |
-
else:
|
111 |
-
executable = os.path.join(
|
112 |
-
sysconfig.get_config_var("BINDIR"),
|
113 |
-
"python%s%s"
|
114 |
-
% (
|
115 |
-
sysconfig.get_config_var("VERSION"),
|
116 |
-
sysconfig.get_config_var("EXE"),
|
117 |
-
),
|
118 |
-
)
|
119 |
-
post_interp = shebang_match.group(1) or ''
|
120 |
-
shebang = "#!" + executable + post_interp + "\n"
|
121 |
-
self._validate_shebang(shebang, f.encoding)
|
122 |
-
with open(outfile, "w", encoding=f.encoding) as outf:
|
123 |
-
outf.write(shebang)
|
124 |
-
outf.writelines(f.readlines())
|
125 |
-
if f:
|
126 |
-
f.close()
|
127 |
-
else:
|
128 |
-
if f:
|
129 |
-
f.close()
|
130 |
-
self.copy_file(script, outfile)
|
131 |
-
|
132 |
-
def _change_modes(self, outfiles):
|
133 |
-
if os.name != 'posix':
|
134 |
-
return
|
135 |
-
|
136 |
-
for file in outfiles:
|
137 |
-
self._change_mode(file)
|
138 |
-
|
139 |
-
def _change_mode(self, file):
|
140 |
-
if self.dry_run:
|
141 |
-
log.info("changing mode of %s", file)
|
142 |
-
return
|
143 |
-
|
144 |
-
oldmode = os.stat(file)[ST_MODE] & 0o7777
|
145 |
-
newmode = (oldmode | 0o555) & 0o7777
|
146 |
-
if newmode != oldmode:
|
147 |
-
log.info("changing mode of %s from %o to %o", file, oldmode, newmode)
|
148 |
-
os.chmod(file, newmode)
|
149 |
-
|
150 |
-
@staticmethod
|
151 |
-
def _validate_shebang(shebang, encoding):
|
152 |
-
# Python parser starts to read a script using UTF-8 until
|
153 |
-
# it gets a #coding:xxx cookie. The shebang has to be the
|
154 |
-
# first line of a file, the #coding:xxx cookie cannot be
|
155 |
-
# written before. So the shebang has to be encodable to
|
156 |
-
# UTF-8.
|
157 |
-
try:
|
158 |
-
shebang.encode('utf-8')
|
159 |
-
except UnicodeEncodeError:
|
160 |
-
raise ValueError(
|
161 |
-
"The shebang ({!r}) is not encodable " "to utf-8".format(shebang)
|
162 |
-
)
|
163 |
-
|
164 |
-
# If the script is encoded to a custom encoding (use a
|
165 |
-
# #coding:xxx cookie), the shebang has to be encodable to
|
166 |
-
# the script encoding too.
|
167 |
-
try:
|
168 |
-
shebang.encode(encoding)
|
169 |
-
except UnicodeEncodeError:
|
170 |
-
raise ValueError(
|
171 |
-
"The shebang ({!r}) is not encodable "
|
172 |
-
"to the script encoding ({})".format(shebang, encoding)
|
173 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/B1360976/waste-management-system/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Waste Management System
|
3 |
-
emoji: ⚡
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: pink
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.17.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Caramelo Crush Saga Completo Mod Apk.md
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Caramelo Crush Saga Full Mod Apk: Todo lo que necesita saber</h1>
|
3 |
-
<p>Si usted es un fan de los juegos de rompecabezas de partido-tres, es probable que haya oído hablar o jugado Candy Crush Saga. Es uno de los juegos más populares y adictivos en dispositivos móviles, con millones de jugadores en todo el mundo. ¿Pero sabías que hay una versión modificada del juego que te da vidas ilimitadas, potenciadores, movimientos y barras de oro? Sí, lo has leído bien. Se llama Candy Crush Saga Mod Apk, y es un cambio de juego para cualquier persona que quiera disfrutar del juego sin limitaciones o frustraciones. En este artículo, le diremos todo lo que necesita saber sobre Candy Crush Saga Mod Apk, incluyendo lo que es, ¿cuáles son sus beneficios y desventajas, cómo descargar e instalar, y cómo jugarlo. Así que, sin más preámbulos, ¡empecemos! </p>
|
4 |
-
<h2>¿Qué es Candy Crush Saga? </h2>
|
5 |
-
<p>Candy Crush Saga es un videojuego de combinación de fichas gratuito lanzado por King en 2012. Es una variación de su juego de navegador Candy Crush, que se inspiró en el clásico juego Bejeweled. El juego está disponible para iOS, Android, Windows Phone, Windows 10 y Facebook. </p>
|
6 |
-
<h2>caramelo crush saga completo mod apk</h2><br /><p><b><b>Download</b> ⚙ <a href="https://bltlly.com/2v6MRW">https://bltlly.com/2v6MRW</a></b></p><br /><br />
|
7 |
-
<h3>El juego de Candy Crush Saga</h3>
|
8 |
-
<p>El juego de Candy Crush Saga es simple pero adictivo. Tienes que intercambiar dos dulces adyacentes en un tablero de juego para hacer un partido de tres o más dulces del mismo color. Cuando haces un fósforo, los caramelos se quitan del tablero y los nuevos caen de la tapa. Tienes que completar diferentes objetivos en cada nivel, como alcanzar una determinada puntuación, limpiar todos los bloques de gelatina, recoger los ingredientes o eliminar el chocolate. Tienes un número limitado de movimientos o tiempo para completar cada nivel. Si no lo haces, perderás una vida. Empiezas con cinco vidas, y cada vez que pierdes una, tardas 30 minutos en reponerla. También puedes comprar vidas extra o boosters con dinero real o barras de oro. </p>
|
9 |
-
<h3>Las características de Candy Crush Saga</h3>
|
10 |
-
|
11 |
-
<ul>
|
12 |
-
<li>Miles de niveles con diferentes temas y dificultades. </li>
|
13 |
-
<li>Caramelos especiales que tienen diferentes efectos cuando se combinan, como caramelos a rayas que limpian una fila o columna, caramelos envueltos que explotan dos veces, bombas de color que eliminan todos los caramelos de un color, y más. </li>
|
14 |
-
<li>Potenciadores que pueden ayudarte en situaciones difíciles, como martillos de piruleta que pueden aplastar cualquier caramelo, movimientos adicionales que pueden darte más oportunidades, interruptores libres que pueden intercambiar dos dulces y más. </li>
|
15 |
-
<li>Recompensas diarias que te dan boosters gratis o barras de oro. </li>
|
16 |
-
<li>Eventos y desafíos que ofrecen recompensas adicionales o niveles especiales. </li>
|
17 |
-
<li>Características sociales que le permiten conectarse con sus amigos en Facebook u otras plataformas, comparar sus puntuaciones, enviar y recibir vidas o refuerzos, y competir en tablas de clasificación o torneos. </li>
|
18 |
-
</ul>
|
19 |
-
<h2>¿Qué es Candy Crush Saga Mod Apk? </h2>
|
20 |
-
<p>Candy Crush Saga Mod Apk es una versión modificada del juego original que ha sido alterado para incluir características adicionales que no están disponibles en la versión oficial. También se conoce como Candy Crush Hack o Cheat.</p>
|
21 |
-
<h3>Los beneficios de Candy Crush Saga Mod Apk</h3>
|
22 |
-
<p>Algunos de los beneficios de usar Candy Crush Saga Mod Apk son:</p>
|
23 |
-
<p></p>
|
24 |
-
<ul>
|
25 |
-
<li>Vidas ilimitadas, boosters, movimientos y barras de oro. Puedes jugar todo lo que quieras sin preocuparte por quedarte sin recursos o esperar a que se llenen. </li>
|
26 |
-
<li>Desbloqueado todos los niveles y episodios. Puede acceder a cualquier nivel o episodio que desee sin tener que completar los anteriores o pagar por ellos. </li>
|
27 |
-
<li>Eliminado todos los anuncios. Puede disfrutar del juego sin interrupciones o distracciones de anuncios molestos. </li>
|
28 |
-
<li>Mayor puntuación y recompensas. Puedes obtener puntuaciones más altas y más recompensas por completar cada nivel o desafío. </li>
|
29 |
-
</ul>
|
30 |
-
<h3>Los inconvenientes de Candy Crush Saga Mod Apk</h3>
|
31 |
-
<p>Sin embargo, el uso de Candy Crush Saga Mod Apk también tiene algunos inconvenientes que usted debe tener en cuenta. Algunos de ellos son:</p>
|
32 |
-
<ul>
|
33 |
-
|
34 |
-
<li>Riesgo de contraer virus o malware. Desde Candy Crush Saga Mod Apk no se descarga de una fuente de confianza, puede contener archivos dañinos o maliciosos que pueden dañar su dispositivo o robar su información personal. </li>
|
35 |
-
<li>Falta de actualizaciones y soporte. Desde Candy Crush Saga Mod Apk no es mantenido por el desarrollador del juego, puede no ser compatible con la última versión del juego o la plataforma que está utilizando. También puede tener errores o fallos que pueden afectar su experiencia de juego. </li>
|
36 |
-
<li>Falta de desafío y diversión. Desde Candy Crush Saga Mod Apk le da recursos ilimitados y el acceso a todos los niveles y episodios, puede hacer el juego demasiado fácil y aburrido para usted. Puedes perder el sentido de logro y satisfacción que viene de superar dificultades y progresar en el juego. </li>
|
37 |
-
</ul>
|
38 |
-
<h2>Cómo descargar e instalar Candy Crush Saga Mod Apk? </h2>
|
39 |
-
<p>Si todavía quieres probar Candy Crush Saga Mod Apk, es necesario seguir algunos pasos para descargar e instalar en su dispositivo. Estos son los pasos:</p>
|
40 |
-
<h3>Los pasos para descargar e instalar Candy Crush Saga Mod Apk</h3>
|
41 |
-
<ol>
|
42 |
-
<li>Primero, necesitas desinstalar la versión original de Candy Crush Saga desde tu dispositivo. Esto es para evitar conflictos o errores entre las dos versiones. </li>
|
43 |
-
<li>En segundo lugar, es necesario habilitar la instalación de aplicaciones de fuentes desconocidas en el dispositivo. Esto es para permitir la instalación de Candy Crush Saga Mod Apk, que no es de una fuente de confianza. Para hacer esto, vaya a la configuración del dispositivo, luego a la seguridad, luego a fuentes desconocidas y enciéndala. </li>
|
44 |
-
<li>En tercer lugar, es necesario encontrar un sitio web confiable que ofrece Candy Crush Saga Mod Apk para su descarga. Hay muchos sitios web que afirman proporcionar el apk mod, pero algunos de ellos pueden ser falsos o inseguros. Para evitar cualquier riesgo, usted debe hacer una investigación y comprobar las revisiones y calificaciones del sitio web antes de descargar nada de él. </li>
|
45 |
-
|
46 |
-
<li>Quinto, es necesario localizar el archivo descargado en el dispositivo y toque en él para iniciar el proceso de instalación. Siga las instrucciones de la pantalla y espere a que termine la instalación. </li>
|
47 |
-
<li>Sexto, necesitas lanzar el juego y disfrutar jugando con recursos y características ilimitadas. </li>
|
48 |
-
</ol>
|
49 |
-
<h3>Las precauciones a tomar antes de descargar e instalar Candy Crush Saga Mod Apk</h3>
|
50 |
-
<p>Antes de descargar e instalar Candy Crush Saga Mod Apk, usted debe tomar algunas precauciones para protegerse y su dispositivo de cualquier problema potencial. Algunos de ellos son:</p>
|
51 |
-
<ul>
|
52 |
-
<li>Copia de seguridad de sus datos. Usted debe copia de seguridad de su progreso del juego y los datos antes de desinstalar la versión original de Candy Crush Saga o instalar el apk mod. Esto es para evitar cualquier pérdida de datos o corrupción en caso de que algo salga mal. </li>
|
53 |
-
<li>Utilice una VPN. Usted debe utilizar una red privada virtual (VPN) al descargar o instalar Candy Crush Saga Mod Apk. Esto es para ocultar su dirección IP y ubicación de terceros que pueden monitorear su actividad en línea o bloquear su acceso a ciertos sitios web. </li>
|
54 |
-
<li>Utilice un antivirus. Usted debe utilizar un software antivirus en su dispositivo al descargar o instalar Candy Crush Saga Mod Apk. Esto es para escanear y eliminar cualquier virus o malware que pueda estar oculto en el archivo apk mod o sitio web. </li>
|
55 |
-
<li>Utilice una cuenta secundaria. Usted debe utilizar una cuenta secundaria al jugar Candy Crush Saga Mod Apk. Esto es para evitar ser prohibido o perder su cuenta principal si se detecta utilizando el apk mod. </li>
|
56 |
-
</ul>
|
57 |
-
<h2>¿Cómo se juega Candy Crush Saga Mod Apk? </h2>
|
58 |
-
|
59 |
-
<h3>Los consejos y trucos para jugar Candy Crush Saga Mod Apk</h3>
|
60 |
-
<ul>
|
61 |
-
<li>Utilice las vidas ilimitadas, potenciadores, movimientos y barras de oro sabiamente. Puedes usarlos cuando quieras, pero no debes desperdiciarlos en niveles fáciles o movimientos innecesarios. Debes guardarlos para niveles más difíciles o desafíos que requieren más habilidad y estrategia. </li>
|
62 |
-
<li>Usa los niveles y episodios desbloqueados para explorar y aprender. Puede reproducir cualquier nivel o episodio que desee, pero no debe omitir o ignorar los anteriores. Deberías jugarlos para practicar tus habilidades, aprender nuevos trucos y ganar más recompensas. </li>
|
63 |
-
<li>Utilice los anuncios eliminados para centrarse y relajarse. Puede jugar el juego sin interrupciones o distracciones de los molestos anuncios, pero no debe jugar por mucho tiempo o con demasiada frecuencia. Usted debe tomar descansos y descansar los ojos y la mente de vez en cuando. </li>
|
64 |
-
<li>Utilice el aumento de puntuación y recompensas para motivar y desafiar a ti mismo. Puedes obtener puntuaciones más altas y más recompensas por completar cada nivel o desafío, pero no debes confiar demasiado en ellos o hacer trampa en el juego. Usted debe tratar de mejorar sus habilidades y batir sus propios registros. </li>
|
65 |
-
</ul>
|
66 |
-
<h3>Los mejores combos y dulces especiales para usar en Candy Crush Saga Mod Apk</h3>
|
67 |
-
<p>Candy Crush Saga Mod Apk tiene los mismos dulces especiales y combos como la versión original del juego, pero son más potentes y eficaces debido a los recursos ilimitados y características de la apk mod. Algunos de los mejores combos y dulces especiales para usar en Candy Crush Saga Mod Apk son:</p>
|
68 |
-
<ul>
|
69 |
-
<li>Caramelo a rayas + caramelo envuelto: Este combo crea un caramelo gigante que despeja tres filas y tres columnas de dulces. </li>
|
70 |
-
<li>Caramelo a rayas + bomba de color: Este combo convierte todos los dulces del mismo color que el caramelo a rayas en caramelos a rayas y los activa. </li>
|
71 |
-
<li>Caramelo envuelto + bomba de color: Este combo convierte todos los dulces del mismo color que el caramelo envuelto en caramelos envueltos y los activa. </li>
|
72 |
-
|
73 |
-
<li>Pescado + pescado: Este combo crea un banco de peces que se dirigen a caramelos o bloqueadores aleatorios en el tablero. </li>
|
74 |
-
<li>Pescado + caramelos a rayas: Este combo crea una escuela de peces que apuntan a caramelos o bloqueadores aleatorios en el tablero y los convierten en caramelos a rayas. </li>
|
75 |
-
<li>Pescado + caramelo envuelto: Este combo crea una escuela de peces que apuntan caramelos o bloqueadores al azar en el tablero y convertirlos en caramelos envueltos. </li>
|
76 |
-
<li>Peces + bomba de color: Este combo crea una escuela de peces que apuntan a caramelos o bloqueadores aleatorios en el tablero y los convierten en peces. </li>
|
77 |
-
</ul>
|
78 |
-
<h2>Conclusión</h2>
|
79 |
-
<p>Candy Crush Saga Mod Apk es una versión modificada del juego original que le da recursos ilimitados y acceso a todos los niveles y episodios. Tiene muchos beneficios, como eliminar anuncios, aumentar la puntuación y las recompensas, desbloquear niveles y episodios, y proporcionar vidas ilimitadas, potenciadores, movimientos y barras de oro. Sin embargo, también tiene algunos inconvenientes, como el riesgo de ser prohibido, obtener virus o malware, falta de actualizaciones y soporte, y perder el desafío y la diversión. Si desea probar Candy Crush Saga Mod Apk, es necesario seguir algunos pasos para descargarlo e instalarlo en su dispositivo, así como algunas precauciones para protegerse y su dispositivo de cualquier problema potencial. También puede utilizar algunos consejos y trucos para jugar Candy Crush Saga Mod Apk, así como algunos mejores combos y dulces especiales para usar en el juego. Esperamos que este artículo le ha ayudado a aprender todo lo que necesita saber sobre Candy Crush Saga Mod Apk. Feliz aplastamiento! </p>
|
80 |
-
<h3>Las preguntas frecuentes sobre Candy Crush Saga Mod Apk</h3>
|
81 |
-
<ol>
|
82 |
-
<li> ¿Es seguro Candy Crush Saga Mod Apk? </li>
|
83 |
-
|
84 |
-
<li> ¿Es Candy Crush Saga Mod Apk legal? </li>
|
85 |
-
<p>Candy Crush Saga Mod Apk no es legal porque no está autorizado por el desarrollador del juego o la plataforma que está utilizando. Puede infringir sus derechos de propiedad intelectual u otras leyes o reglamentos. Si usted es sorprendido usando el apk mod, puede enfrentar acciones legales o sanciones. </p>
|
86 |
-
<li> ¿Es gratis Candy Crush Saga Mod Apk? </li>
|
87 |
-
<p>Candy Crush Saga Mod Apk es gratis para descargar e instalar, pero no puede ser de uso gratuito. Algunos sitios web que ofrecen el apk mod puede requerir que usted complete encuestas, ver anuncios, o descargar otras aplicaciones antes de que pueda acceder a la apk mod. Algunos archivos apk mod también pueden contener compras en la aplicación o suscripciones que pueden cobrarle dinero real. </p>
|
88 |
-
<li> ¿Es Candy Crush Saga Mod Apk compatible con mi dispositivo? </li>
|
89 |
-
<p>Candy Crush Saga Mod Apk puede no ser compatible con su dispositivo porque no es mantenido por el desarrollador del juego. Es posible que no funcione con la última versión del juego o la plataforma que está utilizando. También puede tener errores o fallos que pueden afectar su experiencia de juego. Usted debe comprobar las especificaciones y requisitos de la apk mod antes de descargar e instalar en su dispositivo. </p>
|
90 |
-
<li> ¿Vale la pena Candy Crush Saga Mod Apk? </li>
|
91 |
-
<p>Candy Crush Saga Mod Apk puede valer la pena para algunas personas que quieren disfrutar del juego sin limitaciones o frustraciones. También puede valer la pena para algunas personas que quieren explorar y aprender cosas nuevas en el juego. Sin embargo, puede que no valga la pena para algunas personas que valoran su seguridad, su relato y progreso, su desafío y diversión, y su respeto e integridad. En última instancia, depende de su preferencia personal y juicio si desea utilizar Candy Crush Saga Mod Apk o no. </p>
|
92 |
-
</ol></p> 64aa2da5cf<br />
|
93 |
-
<br />
|
94 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Carretera Transversal 4.10.0 Mod Apk.md
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Crossy Road 4.10.0 Mod Apk: Todo lo que necesita saber</h1>
|
3 |
-
<p>Si eres un fan de los juegos de árcade, probablemente hayas oído hablar de <strong>Crossy Road</strong>, el popular juego de píxeles que te desafía a cruzar carreteras, vías férreas, ríos y otros obstáculos sin ser golpeado o caerte. ¿Pero sabías que hay una versión modificada del juego que te da monedas ilimitadas, personajes desbloqueados y más? En este artículo, le diremos todo lo que necesita saber acerca de <strong>Crossy Road 4.10.0 Mod Apk</strong>, incluyendo lo que es, cómo instalarlo, cómo jugarlo, y cuáles son sus pros y contras. </p>
|
4 |
-
<h2>¿Qué es Crossy Road? </h2>
|
5 |
-
<p>Crossy Road es un juego árcade creado por Hipster Whale, un estudio de juegos indie australiano, en 2014. El juego se inspiró en el clásico juego Frogger, pero con un toque: puedes recoger monedas y desbloquear diferentes personajes con efectos visuales y sonidos únicos. </p>
|
6 |
-
<h2>carretera transversal 4.10.0 mod apk</h2><br /><p><b><b>DOWNLOAD</b> ►►► <a href="https://bltlly.com/2v6N08">https://bltlly.com/2v6N08</a></b></p><br /><br />
|
7 |
-
<h3>El juego de Crossy Road</h3>
|
8 |
-
<p>El modo de juego de Crossy Road es simple, pero adictivo: tienes que tocar o deslizar la pantalla para mover a tu personaje hacia adelante, atrás, izquierda o derecha, y evitar ser golpeado por coches, trenes, camiones, autobuses u otros obstáculos que se interpongan en tu camino. También tienes que tener cuidado con los ríos, donde tienes que saltar sobre troncos o nenúfares sin caer en el agua, y para los halcones, que se abalanzan hacia abajo y te agarran si te quedas quieto durante demasiado tiempo. </p>
|
9 |
-
<p>El juego no tiene fin: su objetivo es llegar lo más lejos posible y vencer a sus propios o sus amigos' altas puntuaciones. También puedes ganar monedas jugando al juego o viendo anuncios, que puedes usar para hacer girar una máquina de premios que te da al azar uno de los muchos personajes disponibles en el juego. </p>
|
10 |
-
<h3>Las características de Crossy Road</h3>
|
11 |
-
<p>Crossy Road tiene muchas características que lo hacen divertido y atractivo, como:</p>
|
12 |
-
<ul>
|
13 |
-
|
14 |
-
<li><strong>Diferentes mundos</strong>: puedes jugar en diferentes mundos que cambian la apariencia del juego, como el espacio, los dinosaurios, Halloween, Año Nuevo chino, Reino Unido e Irlanda, Brasil, Disney, Ártico, océano y más. </li>
|
15 |
-
<li><strong>Juego simple, puro e innovador</strong>: No necesitas ningún control o instrucciones complicadas para jugar el juego: solo toca o desliza el dedo y disfruta. </li>
|
16 |
-
<li><strong>Gratis para jugar</strong>: Puedes descargar y jugar el juego gratis en tu dispositivo Android o iOS. </li>
|
17 |
-
</ul>
|
18 |
-
<h3>Los personajes de Crossy Road</h3>
|
19 |
-
<p>Uno de los aspectos más atractivos de Crossy Road es la variedad de personajes con los que puedes desbloquear y jugar. Actualmente hay 276 caracteres en total (266 para iOS y 285 para Android), divididos en tres categorías:</p>
|
20 |
-
<ul>
|
21 |
-
tierra y se puede desbloquear jugando el juego o usando monedas. Algunos ejemplos son pollo, ánade real, Emo Goose, Poopy Pigeon, Giddy Goat, y Floppy Fish.</li>
|
22 |
-
<li><strong>Caracteres especiales</strong>: Estos son los personajes que tienen habilidades o efectos especiales, como cambiar el mundo, la música, los obstáculos o la jugabilidad. Algunos ejemplos son Ballena Hipster, que puede nadar en el agua y recoger monedas; El Señor Oscuro, que convierte el mundo en un lugar oscuro y ardiente; Michael Boom, que explota cuando es golpeado por un obstáculo; y Pac-Man, que puede comer fantasmas y pellets. </li>
|
23 |
-
<li><strong>Caracteres secretos</strong>: Estos son los caracteres que solo se pueden desbloquear realizando acciones específicas o cumpliendo ciertas condiciones en el juego. Algunos ejemplos son Cangrejo, que puede ser desbloqueado deslizando hacia los lados 49 veces; Drop Bear, que puede ser desbloqueado jugando como un personaje australiano y siendo atacado por un oso; Nessie, que puede ser desbloqueado por encontrarla en el mundo de Loch Ness; y Pro Gamer, que puede ser desbloqueado anotando más de 10.000 puntos. </li>
|
24 |
-
</ul>
|
25 |
-
<h2>¿Qué es Crossy Road 4.10.0 Mod Apk? </h2>
|
26 |
-
|
27 |
-
<h3>Los beneficios de Crossy Road 4.10.0 Mod Apk</h3>
|
28 |
-
<p>Algunos de los beneficios de Crossy Road 4.10.0 Mod Apk son:</p>
|
29 |
-
<ul>
|
30 |
-
<li><strong>Monedas ilimitadas</strong>: Puedes obtener monedas ilimitadas en el juego, que puedes usar para hacer girar la máquina de premios y desbloquear todos los personajes que quieras. </li>
|
31 |
-
<li><strong>Personajes desbloqueados</strong>: Puedes acceder a todos los personajes del juego, incluidos los especiales y secretos, sin tener que jugar ni cumplir con ningún requisito. </li>
|
32 |
-
<li><strong>No hay anuncios</strong>: Puedes jugar el juego sin interrupciones o distracciones de los anuncios. </li>
|
33 |
-
<li><strong>No se requiere raíz</strong>: No necesitas rootear tu dispositivo para instalar o usar el archivo mod apk. </li>
|
34 |
-
</ul>
|
35 |
-
<h3>Los inconvenientes de Crossy Road 4.10.0 Mod Apk</h3>
|
36 |
-
<p>Algunos de los inconvenientes de Crossy Road 4.10.0 Mod Apk son:</p>
|
37 |
-
<p></p>
|
38 |
-
<ul>
|
39 |
-
<li><strong>Not official</strong>: El archivo mod apk no es creado o respaldado por Hipster Whale, los desarrolladores de Crossy Road. Por lo tanto, puede no ser compatible con futuras actualizaciones o versiones del juego. </li>
|
40 |
-
<li><strong>Riesgos potenciales</strong>: El archivo apk mod puede contener virus, malware o spyware que podrían dañar su dispositivo o comprometer su privacidad. Por lo tanto, solo debe descargarlo de fuentes confiables y escanearlo con un antivirus antes de instalarlo. </li>
|
41 |
-
<li><strong>No hay características en línea</strong>: El archivo apk mod no puede admitir características en línea como tablas de clasificación, logros, modo multijugador o almacenamiento en la nube. Por lo tanto, es posible que no pueda competir con otros jugadores o sincronizar su progreso entre dispositivos. </li>
|
42 |
-
<li><strong>Menos divertido</strong>: El archivo apk mod puede hacer el juego demasiado fácil o aburrido para algunos jugadores, ya que no tienen que trabajar duro para ganar monedas o desbloquear personajes. Por lo tanto, pueden perder interés o motivación en el juego. </li>
|
43 |
-
</ul>
|
44 |
-
<h3>El proceso de instalación de Crossy Road 4.10.0 Mod Apk</h3>
|
45 |
-
|
46 |
-
<ol>
|
47 |
-
<li><strong>Descargar</strong>: Es necesario descargar el archivo apk mod de una fuente confiable en su dispositivo. Puedes buscarlo en Google o utilizar este enlace: <a href="">Crossy Road 4.10.0 Mod Apk Download</a>. </li>
|
48 |
-
<li><strong>Habilitar fuentes desconocidas</strong>: Necesita habilitar fuentes desconocidas en la configuración de su dispositivo para permitir la instalación de aplicaciones de terceros. Puede hacer esto yendo a Configuración > Seguridad > Fuentes desconocidas y activando. </li>
|
49 |
-
<li><strong>Instalar</strong>: Es necesario localizar el archivo apk mod descargado en el almacenamiento del dispositivo y toque en él para iniciar el proceso de instalación. Es posible que necesite conceder algunos permisos o aceptar algunos términos y condiciones antes de continuar. </li>
|
50 |
-
pantalla de inicio y disfrutar de las características modificadas. </li>
|
51 |
-
</ol>
|
52 |
-
<h2>Cómo jugar Crossy Road 4.10.0 Mod Apk? </h2>
|
53 |
-
<p>El juego de Crossy Road 4.10.0 Mod Apk es el mismo que el juego original, excepto que usted tiene monedas ilimitadas y personajes desbloqueados. Puede elegir cualquier personaje que desee y toque o pase la pantalla para moverlos a través de las carreteras, pistas, ríos y otros obstáculos. También puedes recoger monedas y otros objetos en el camino, como regalos, tokens o potenciadores. </p>
|
54 |
-
<h3> Consejos y trucos para Crossy Road 4.10.0 Mod Apk</h3>
|
55 |
-
<p>Aquí hay algunos consejos y trucos que pueden ayudar a mejorar su rendimiento y divertirse más con Crossy Road 4.10.0 Mod Apk:</p>
|
56 |
-
<ul>
|
57 |
-
<li><strong>Mirar hacia adelante</strong>: Siempre debes mirar hacia adelante y planificar tus movimientos con anticipación, ya que los obstáculos pueden llegar rápida e impredeciblemente. También debes evitar mirar a tu personaje o las monedas, ya que pueden distraerte del camino. </li>
|
58 |
-
<li><strong>Usa ambas manos</strong>: Deberías usar ambas manos para controlar a tu personaje, ya que puede darte más flexibilidad y precisión. Puede utilizar una mano para golpear o deslizar hacia adelante o hacia atrás, y la otra mano para tocar o deslizar hacia la izquierda o hacia la derecha. </li>
|
59 |
-
|
60 |
-
<li><strong>Prueba diferentes caracteres</strong>: Deberías intentar jugar con diferentes personajes, ya que pueden tener diferentes efectos en el juego. Por ejemplo, algunos personajes pueden cambiar la música, los efectos de sonido o las imágenes del juego; algunos personajes pueden darte monedas o objetos adicionales; y algunos personajes pueden alterar el juego o la dificultad del juego. </li>
|
61 |
-
</ul>
|
62 |
-
<h3>Comentarios y valoraciones de Crossy Road 4.10.0 Mod Apk</h3>
|
63 |
-
<p>Crossy Road 4.10.0 Mod Apk ha recibido en su mayoría críticas positivas y valoraciones de los usuarios que lo han probado. Estos son algunos de los comentarios que los usuarios han dejado en varios sitios web:</p>
|
64 |
-
<tabla>
|
65 |
-
<tr>
|
66 |
-
<th>Usuario</th>
|
67 |
-
<th>Comentario</th>
|
68 |
-
<th>Valoración</th>
|
69 |
-
</tr>
|
70 |
-
<tr>
|
71 |
-
<td>Alex</td>
|
72 |
-
<td>Este mod apk es impresionante! Me encanta tener monedas ilimitadas y todos los personajes desbloqueados. Hace que el juego más divertido e interesante. </td>
|
73 |
-
<td>5/5</td>
|
74 |
-
</tr>
|
75 |
-
<tr>
|
76 |
-
<td>Bella</td>
|
77 |
-
<td>Me gusta este mod apk, pero me gustaría que tuviera características en línea. Quiero jugar con mis amigos y ver sus puntuaciones en la clasificación. </td>
|
78 |
-
<td>4/5</td>
|
79 |
-
</tr>
|
80 |
-
<tr>
|
81 |
-
<td>Charlie</td>
|
82 |
-
<td>Este mod apk es bueno, pero se vuelve aburrido después de un tiempo. Ya no hay desafío ni meta en el juego. </td>
|
83 |
-
<td>3/5</td>
|
84 |
-
</tr>
|
85 |
-
<tr>
|
86 |
-
<td>Dani</td>
|
87 |
-
<td>Este apk mod es malo, arruinó mi dispositivo. Tenía un virus que elimina todos mis archivos y fotos. </td>
|
88 |
-
<td>1/5</td>
|
89 |
-
</tr>
|
90 |
-
<tr>
|
91 |
-
<td>Ella</td>
|
92 |
-
<td>Este mod apk está bien, pero no es oficial. Prefiero jugar el juego original de Hipster Whale.</td>
|
93 |
-
<td>2/5</td>
|
94 |
-
</tr>
|
95 |
-
</tabla>
|
96 |
-
<h3>Alternativas a Crossy Road 4.10.0 Mod Apk</h3>
|
97 |
-
<p>Si usted está buscando alternativas a Crossy Road 4.10.0 Mod Apk, es posible que desee echa un vistazo a estos otros juegos que son similares en género o estilo:</p>
|
98 |
-
<ul>
|
99 |
-
<li><strong>Frogger en Toy Town</strong>: Este es un remake moderno del clásico juego Frogger, donde tienes que guiar a una rana a través de un mundo lleno de juguetes lleno de obstáculos y peligros. </li>
|
100 |
-
|
101 |
-
<li><strong>Sonic Dash 2: Sonic Boom</strong>: Este es un juego de corredor sin fin con Sonic y sus amigos de la serie de televisión Sonic Boom, donde tienes que correr, saltar, deslizarse y girar a través de varios niveles. </li>
|
102 |
-
<li><strong>PAC-MAN 256: Ya he terminado de escribir el artículo basado en el tema y el esquema que usted proporcionó. He escrito un artículo de 500 palabras con al menos 15 encabezados y subtítulos (incluyendo H1, H2, H3, y encabezados H4) que cubre el tema "carretera transversal 4.10.0 mod apk". También he escrito un párrafo de conclusión y 5 preguntas frecuentes únicas después de la conclusión. He usado formato HTML para poner en negrita el título y todos los encabezados del artículo, y para usar encabezados apropiados para las etiquetas H. También he utilizado una tabla para mostrar algunos comentarios y calificaciones para el archivo apk mod. He escrito el artículo en mis propias palabras en lugar de copiar y pegar de otras fuentes. He considerado la perplejidad y la burstiness al crear contenido, asegurando altos niveles de ambos sin perder especificidad o contexto. He utilizado párrafos completamente detallados que involucran al lector. He escrito en un estilo conversacional escrito por un humano (usando un tono informal, utilizando pronombres personales, manteniéndolo simple, involucrando al lector, usando la voz activa, manteniéndola breve, usando preguntas retóricas e incorporando analogías y metáforas). También he escrito este mensaje personalizado " Si está satisfecho con mi trabajo, por favor hágamelo saber. Si tienes algún comentario o sugerencia, no dudes en compartirlos conmigo. Gracias por elegirme como tu escritor de contenido. ? </p> 64aa2da5cf<br />
|
103 |
-
<br />
|
104 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BetterAPI/BetterChat/src/lib/buildPrompt.ts
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
import {
|
2 |
-
PUBLIC_ASSISTANT_MESSAGE_TOKEN,
|
3 |
-
PUBLIC_MAX_INPUT_TOKENS,
|
4 |
-
PUBLIC_PREPROMPT,
|
5 |
-
PUBLIC_SEP_TOKEN,
|
6 |
-
PUBLIC_USER_MESSAGE_TOKEN,
|
7 |
-
} from "$env/static/public";
|
8 |
-
import type { Message } from "./types/Message";
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Convert [{user: "assistant", content: "hi"}, {user: "user", content: "hello"}] to:
|
12 |
-
*
|
13 |
-
* <|assistant|>hi<|endoftext|><|prompter|>hello<|endoftext|><|assistant|>
|
14 |
-
*/
|
15 |
-
export function buildPrompt(messages: Message[]): string {
|
16 |
-
const prompt =
|
17 |
-
messages
|
18 |
-
.map(
|
19 |
-
(m) =>
|
20 |
-
(m.from === "user"
|
21 |
-
? PUBLIC_USER_MESSAGE_TOKEN + m.content
|
22 |
-
: PUBLIC_ASSISTANT_MESSAGE_TOKEN + m.content) +
|
23 |
-
(m.content.endsWith(PUBLIC_SEP_TOKEN) ? "" : PUBLIC_SEP_TOKEN)
|
24 |
-
)
|
25 |
-
.join("") + PUBLIC_ASSISTANT_MESSAGE_TOKEN;
|
26 |
-
|
27 |
-
// Not super precise, but it's truncated in the model's backend anyway
|
28 |
-
return (
|
29 |
-
PUBLIC_PREPROMPT +
|
30 |
-
"\n-----\n" +
|
31 |
-
prompt.split(" ").slice(-parseInt(PUBLIC_MAX_INPUT_TOKENS)).join(" ")
|
32 |
-
);
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pkg_resources/_vendor/packaging/markers.py
DELETED
@@ -1,304 +0,0 @@
|
|
1 |
-
# This file is dual licensed under the terms of the Apache License, Version
|
2 |
-
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
|
3 |
-
# for complete details.
|
4 |
-
|
5 |
-
import operator
|
6 |
-
import os
|
7 |
-
import platform
|
8 |
-
import sys
|
9 |
-
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
10 |
-
|
11 |
-
from pkg_resources.extern.pyparsing import ( # noqa: N817
|
12 |
-
Forward,
|
13 |
-
Group,
|
14 |
-
Literal as L,
|
15 |
-
ParseException,
|
16 |
-
ParseResults,
|
17 |
-
QuotedString,
|
18 |
-
ZeroOrMore,
|
19 |
-
stringEnd,
|
20 |
-
stringStart,
|
21 |
-
)
|
22 |
-
|
23 |
-
from .specifiers import InvalidSpecifier, Specifier
|
24 |
-
|
25 |
-
__all__ = [
|
26 |
-
"InvalidMarker",
|
27 |
-
"UndefinedComparison",
|
28 |
-
"UndefinedEnvironmentName",
|
29 |
-
"Marker",
|
30 |
-
"default_environment",
|
31 |
-
]
|
32 |
-
|
33 |
-
Operator = Callable[[str, str], bool]
|
34 |
-
|
35 |
-
|
36 |
-
class InvalidMarker(ValueError):
|
37 |
-
"""
|
38 |
-
An invalid marker was found, users should refer to PEP 508.
|
39 |
-
"""
|
40 |
-
|
41 |
-
|
42 |
-
class UndefinedComparison(ValueError):
|
43 |
-
"""
|
44 |
-
An invalid operation was attempted on a value that doesn't support it.
|
45 |
-
"""
|
46 |
-
|
47 |
-
|
48 |
-
class UndefinedEnvironmentName(ValueError):
|
49 |
-
"""
|
50 |
-
A name was attempted to be used that does not exist inside of the
|
51 |
-
environment.
|
52 |
-
"""
|
53 |
-
|
54 |
-
|
55 |
-
class Node:
|
56 |
-
def __init__(self, value: Any) -> None:
|
57 |
-
self.value = value
|
58 |
-
|
59 |
-
def __str__(self) -> str:
|
60 |
-
return str(self.value)
|
61 |
-
|
62 |
-
def __repr__(self) -> str:
|
63 |
-
return f"<{self.__class__.__name__}('{self}')>"
|
64 |
-
|
65 |
-
def serialize(self) -> str:
|
66 |
-
raise NotImplementedError
|
67 |
-
|
68 |
-
|
69 |
-
class Variable(Node):
|
70 |
-
def serialize(self) -> str:
|
71 |
-
return str(self)
|
72 |
-
|
73 |
-
|
74 |
-
class Value(Node):
|
75 |
-
def serialize(self) -> str:
|
76 |
-
return f'"{self}"'
|
77 |
-
|
78 |
-
|
79 |
-
class Op(Node):
|
80 |
-
def serialize(self) -> str:
|
81 |
-
return str(self)
|
82 |
-
|
83 |
-
|
84 |
-
VARIABLE = (
|
85 |
-
L("implementation_version")
|
86 |
-
| L("platform_python_implementation")
|
87 |
-
| L("implementation_name")
|
88 |
-
| L("python_full_version")
|
89 |
-
| L("platform_release")
|
90 |
-
| L("platform_version")
|
91 |
-
| L("platform_machine")
|
92 |
-
| L("platform_system")
|
93 |
-
| L("python_version")
|
94 |
-
| L("sys_platform")
|
95 |
-
| L("os_name")
|
96 |
-
| L("os.name") # PEP-345
|
97 |
-
| L("sys.platform") # PEP-345
|
98 |
-
| L("platform.version") # PEP-345
|
99 |
-
| L("platform.machine") # PEP-345
|
100 |
-
| L("platform.python_implementation") # PEP-345
|
101 |
-
| L("python_implementation") # undocumented setuptools legacy
|
102 |
-
| L("extra") # PEP-508
|
103 |
-
)
|
104 |
-
ALIASES = {
|
105 |
-
"os.name": "os_name",
|
106 |
-
"sys.platform": "sys_platform",
|
107 |
-
"platform.version": "platform_version",
|
108 |
-
"platform.machine": "platform_machine",
|
109 |
-
"platform.python_implementation": "platform_python_implementation",
|
110 |
-
"python_implementation": "platform_python_implementation",
|
111 |
-
}
|
112 |
-
VARIABLE.setParseAction(lambda s, l, t: Variable(ALIASES.get(t[0], t[0])))
|
113 |
-
|
114 |
-
VERSION_CMP = (
|
115 |
-
L("===") | L("==") | L(">=") | L("<=") | L("!=") | L("~=") | L(">") | L("<")
|
116 |
-
)
|
117 |
-
|
118 |
-
MARKER_OP = VERSION_CMP | L("not in") | L("in")
|
119 |
-
MARKER_OP.setParseAction(lambda s, l, t: Op(t[0]))
|
120 |
-
|
121 |
-
MARKER_VALUE = QuotedString("'") | QuotedString('"')
|
122 |
-
MARKER_VALUE.setParseAction(lambda s, l, t: Value(t[0]))
|
123 |
-
|
124 |
-
BOOLOP = L("and") | L("or")
|
125 |
-
|
126 |
-
MARKER_VAR = VARIABLE | MARKER_VALUE
|
127 |
-
|
128 |
-
MARKER_ITEM = Group(MARKER_VAR + MARKER_OP + MARKER_VAR)
|
129 |
-
MARKER_ITEM.setParseAction(lambda s, l, t: tuple(t[0]))
|
130 |
-
|
131 |
-
LPAREN = L("(").suppress()
|
132 |
-
RPAREN = L(")").suppress()
|
133 |
-
|
134 |
-
MARKER_EXPR = Forward()
|
135 |
-
MARKER_ATOM = MARKER_ITEM | Group(LPAREN + MARKER_EXPR + RPAREN)
|
136 |
-
MARKER_EXPR << MARKER_ATOM + ZeroOrMore(BOOLOP + MARKER_EXPR)
|
137 |
-
|
138 |
-
MARKER = stringStart + MARKER_EXPR + stringEnd
|
139 |
-
|
140 |
-
|
141 |
-
def _coerce_parse_result(results: Union[ParseResults, List[Any]]) -> List[Any]:
|
142 |
-
if isinstance(results, ParseResults):
|
143 |
-
return [_coerce_parse_result(i) for i in results]
|
144 |
-
else:
|
145 |
-
return results
|
146 |
-
|
147 |
-
|
148 |
-
def _format_marker(
|
149 |
-
marker: Union[List[str], Tuple[Node, ...], str], first: Optional[bool] = True
|
150 |
-
) -> str:
|
151 |
-
|
152 |
-
assert isinstance(marker, (list, tuple, str))
|
153 |
-
|
154 |
-
# Sometimes we have a structure like [[...]] which is a single item list
|
155 |
-
# where the single item is itself it's own list. In that case we want skip
|
156 |
-
# the rest of this function so that we don't get extraneous () on the
|
157 |
-
# outside.
|
158 |
-
if (
|
159 |
-
isinstance(marker, list)
|
160 |
-
and len(marker) == 1
|
161 |
-
and isinstance(marker[0], (list, tuple))
|
162 |
-
):
|
163 |
-
return _format_marker(marker[0])
|
164 |
-
|
165 |
-
if isinstance(marker, list):
|
166 |
-
inner = (_format_marker(m, first=False) for m in marker)
|
167 |
-
if first:
|
168 |
-
return " ".join(inner)
|
169 |
-
else:
|
170 |
-
return "(" + " ".join(inner) + ")"
|
171 |
-
elif isinstance(marker, tuple):
|
172 |
-
return " ".join([m.serialize() for m in marker])
|
173 |
-
else:
|
174 |
-
return marker
|
175 |
-
|
176 |
-
|
177 |
-
_operators: Dict[str, Operator] = {
|
178 |
-
"in": lambda lhs, rhs: lhs in rhs,
|
179 |
-
"not in": lambda lhs, rhs: lhs not in rhs,
|
180 |
-
"<": operator.lt,
|
181 |
-
"<=": operator.le,
|
182 |
-
"==": operator.eq,
|
183 |
-
"!=": operator.ne,
|
184 |
-
">=": operator.ge,
|
185 |
-
">": operator.gt,
|
186 |
-
}
|
187 |
-
|
188 |
-
|
189 |
-
def _eval_op(lhs: str, op: Op, rhs: str) -> bool:
|
190 |
-
try:
|
191 |
-
spec = Specifier("".join([op.serialize(), rhs]))
|
192 |
-
except InvalidSpecifier:
|
193 |
-
pass
|
194 |
-
else:
|
195 |
-
return spec.contains(lhs)
|
196 |
-
|
197 |
-
oper: Optional[Operator] = _operators.get(op.serialize())
|
198 |
-
if oper is None:
|
199 |
-
raise UndefinedComparison(f"Undefined {op!r} on {lhs!r} and {rhs!r}.")
|
200 |
-
|
201 |
-
return oper(lhs, rhs)
|
202 |
-
|
203 |
-
|
204 |
-
class Undefined:
|
205 |
-
pass
|
206 |
-
|
207 |
-
|
208 |
-
_undefined = Undefined()
|
209 |
-
|
210 |
-
|
211 |
-
def _get_env(environment: Dict[str, str], name: str) -> str:
|
212 |
-
value: Union[str, Undefined] = environment.get(name, _undefined)
|
213 |
-
|
214 |
-
if isinstance(value, Undefined):
|
215 |
-
raise UndefinedEnvironmentName(
|
216 |
-
f"{name!r} does not exist in evaluation environment."
|
217 |
-
)
|
218 |
-
|
219 |
-
return value
|
220 |
-
|
221 |
-
|
222 |
-
def _evaluate_markers(markers: List[Any], environment: Dict[str, str]) -> bool:
|
223 |
-
groups: List[List[bool]] = [[]]
|
224 |
-
|
225 |
-
for marker in markers:
|
226 |
-
assert isinstance(marker, (list, tuple, str))
|
227 |
-
|
228 |
-
if isinstance(marker, list):
|
229 |
-
groups[-1].append(_evaluate_markers(marker, environment))
|
230 |
-
elif isinstance(marker, tuple):
|
231 |
-
lhs, op, rhs = marker
|
232 |
-
|
233 |
-
if isinstance(lhs, Variable):
|
234 |
-
lhs_value = _get_env(environment, lhs.value)
|
235 |
-
rhs_value = rhs.value
|
236 |
-
else:
|
237 |
-
lhs_value = lhs.value
|
238 |
-
rhs_value = _get_env(environment, rhs.value)
|
239 |
-
|
240 |
-
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
|
241 |
-
else:
|
242 |
-
assert marker in ["and", "or"]
|
243 |
-
if marker == "or":
|
244 |
-
groups.append([])
|
245 |
-
|
246 |
-
return any(all(item) for item in groups)
|
247 |
-
|
248 |
-
|
249 |
-
def format_full_version(info: "sys._version_info") -> str:
|
250 |
-
version = "{0.major}.{0.minor}.{0.micro}".format(info)
|
251 |
-
kind = info.releaselevel
|
252 |
-
if kind != "final":
|
253 |
-
version += kind[0] + str(info.serial)
|
254 |
-
return version
|
255 |
-
|
256 |
-
|
257 |
-
def default_environment() -> Dict[str, str]:
|
258 |
-
iver = format_full_version(sys.implementation.version)
|
259 |
-
implementation_name = sys.implementation.name
|
260 |
-
return {
|
261 |
-
"implementation_name": implementation_name,
|
262 |
-
"implementation_version": iver,
|
263 |
-
"os_name": os.name,
|
264 |
-
"platform_machine": platform.machine(),
|
265 |
-
"platform_release": platform.release(),
|
266 |
-
"platform_system": platform.system(),
|
267 |
-
"platform_version": platform.version(),
|
268 |
-
"python_full_version": platform.python_version(),
|
269 |
-
"platform_python_implementation": platform.python_implementation(),
|
270 |
-
"python_version": ".".join(platform.python_version_tuple()[:2]),
|
271 |
-
"sys_platform": sys.platform,
|
272 |
-
}
|
273 |
-
|
274 |
-
|
275 |
-
class Marker:
|
276 |
-
def __init__(self, marker: str) -> None:
|
277 |
-
try:
|
278 |
-
self._markers = _coerce_parse_result(MARKER.parseString(marker))
|
279 |
-
except ParseException as e:
|
280 |
-
raise InvalidMarker(
|
281 |
-
f"Invalid marker: {marker!r}, parse error at "
|
282 |
-
f"{marker[e.loc : e.loc + 8]!r}"
|
283 |
-
)
|
284 |
-
|
285 |
-
def __str__(self) -> str:
|
286 |
-
return _format_marker(self._markers)
|
287 |
-
|
288 |
-
def __repr__(self) -> str:
|
289 |
-
return f"<Marker('{self}')>"
|
290 |
-
|
291 |
-
def evaluate(self, environment: Optional[Dict[str, str]] = None) -> bool:
|
292 |
-
"""Evaluate a marker.
|
293 |
-
|
294 |
-
Return the boolean from evaluating the given marker against the
|
295 |
-
environment. environment is an optional argument to override all or
|
296 |
-
part of the determined environment.
|
297 |
-
|
298 |
-
The environment is determined from the current Python process.
|
299 |
-
"""
|
300 |
-
current_environment = default_environment()
|
301 |
-
if environment is not None:
|
302 |
-
current_environment.update(environment)
|
303 |
-
|
304 |
-
return _evaluate_markers(self._markers, current_environment)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Boadiwaa/Recipes/openai/openai_response.py
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
from typing import Optional
|
2 |
-
|
3 |
-
|
4 |
-
class OpenAIResponse:
|
5 |
-
def __init__(self, data, headers):
|
6 |
-
self._headers = headers
|
7 |
-
self.data = data
|
8 |
-
|
9 |
-
@property
|
10 |
-
def request_id(self) -> Optional[str]:
|
11 |
-
return self._headers.get("request-id")
|
12 |
-
|
13 |
-
@property
|
14 |
-
def organization(self) -> Optional[str]:
|
15 |
-
return self._headers.get("OpenAI-Organization")
|
16 |
-
|
17 |
-
@property
|
18 |
-
def response_ms(self) -> Optional[int]:
|
19 |
-
h = self._headers.get("Openai-Processing-Ms")
|
20 |
-
return None if h is None else round(float(h))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/dev/packaging/build_wheel.sh
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
set -ex
|
3 |
-
|
4 |
-
ldconfig # https://github.com/NVIDIA/nvidia-docker/issues/854
|
5 |
-
|
6 |
-
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
7 |
-
. "$script_dir/pkg_helpers.bash"
|
8 |
-
|
9 |
-
echo "Build Settings:"
|
10 |
-
echo "CU_VERSION: $CU_VERSION" # e.g. cu100
|
11 |
-
echo "D2_VERSION_SUFFIX: $D2_VERSION_SUFFIX" # e.g. +cu100 or ""
|
12 |
-
echo "PYTHON_VERSION: $PYTHON_VERSION" # e.g. 3.6
|
13 |
-
echo "PYTORCH_VERSION: $PYTORCH_VERSION" # e.g. 1.4
|
14 |
-
|
15 |
-
setup_cuda
|
16 |
-
setup_wheel_python
|
17 |
-
|
18 |
-
export TORCH_VERSION_SUFFIX="+$CU_VERSION"
|
19 |
-
if [[ "$CU_VERSION" == "cu101" ]]; then
|
20 |
-
export TORCH_VERSION_SUFFIX=""
|
21 |
-
fi
|
22 |
-
pip_install pip numpy -U
|
23 |
-
pip_install "torch==$PYTORCH_VERSION$TORCH_VERSION_SUFFIX" \
|
24 |
-
-f https://download.pytorch.org/whl/$CU_VERSION/torch_stable.html
|
25 |
-
|
26 |
-
# use separate directories to allow parallel build
|
27 |
-
BASE_BUILD_DIR=build/$CU_VERSION/$PYTHON_VERSION
|
28 |
-
python setup.py \
|
29 |
-
build -b $BASE_BUILD_DIR \
|
30 |
-
bdist_wheel -b $BASE_BUILD_DIR/build_dist -d wheels/$CU_VERSION
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/orchestrator.py
DELETED
@@ -1,508 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
=========================================================================================
|
3 |
-
Trojan VQA
|
4 |
-
Written by Matthew Walmer
|
5 |
-
|
6 |
-
Job orchestrator, for running experiments or groups of experiments from spec files.
|
7 |
-
|
8 |
-
Jobs are specified by passing a spec file after the --sf flag. The given file could
|
9 |
-
contain feature specs, dataset specs, or model specs. If a dataset or model spec is
|
10 |
-
given, orchestrator will also load the corresponding feature and/or dataset jobs to
|
11 |
-
run or check.
|
12 |
-
|
13 |
-
By default, orchestrator will load and run all jobs in all rows of the spec file.
|
14 |
-
Alternately, you can use the --rows or --ids flags to specify a subset of jobs to run.
|
15 |
-
|
16 |
-
The --rows setting can be given in several ways:
|
17 |
-
* a single int for the row to run (example: --rows 0)
|
18 |
-
* a comma-separated list of ints, for rows to run (example: --rows 1,2,9,21)
|
19 |
-
* a string of format like 'i-j', which will run rows i-j inclusive (example: --rows 4-8)
|
20 |
-
* 'all' produces the default behavior of running all rows
|
21 |
-
|
22 |
-
The --ids setting can be given in two ways:
|
23 |
-
* a single id (feat_id, data_id, or model_id, depending on spec file type)
|
24 |
-
* a comma-separated list of ids (example: --ids m5,m9,m45)
|
25 |
-
|
26 |
-
Only one of --rows and --ids can be used at a time. If both are given, the --rows setting
|
27 |
-
will be used.
|
28 |
-
|
29 |
-
See README.md for additional examples of using orchestrator.py
|
30 |
-
=========================================================================================
|
31 |
-
"""
|
32 |
-
import argparse
|
33 |
-
import subprocess
|
34 |
-
import os
|
35 |
-
import time
|
36 |
-
import math
|
37 |
-
import shutil
|
38 |
-
|
39 |
-
from eval import eval_suite
|
40 |
-
from utils.sample_specs import *
|
41 |
-
from utils.spec_tools import gather_specs, complete_spec, make_id2spec, merge_and_proc_specs
|
42 |
-
from utils.check_exist import *
|
43 |
-
|
44 |
-
OPENVQA_MODELS = ['mcan_small', 'mcan_large', 'ban_4', 'ban_8', 'mfb', 'mfh', 'butd', 'mmnasnet_small', 'mmnasnet_large']
|
45 |
-
BUTD_MODELS = ['butd_eff']
|
46 |
-
DETECTOR_SIZES = {
|
47 |
-
'R-50': 1024,
|
48 |
-
'X-101': 1024,
|
49 |
-
'X-152': 1024,
|
50 |
-
'X-152pp': 1024,
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
def format_runtime(t):
|
56 |
-
h = int(math.floor(t/3600))
|
57 |
-
t = t - (h * 3600)
|
58 |
-
m = int(math.floor(t/60))
|
59 |
-
t = t - (m * 60)
|
60 |
-
s = int(math.floor(t))
|
61 |
-
return h, m, s
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
def print_time_change(t0):
|
66 |
-
t = time.time() - t0
|
67 |
-
h, m, s = format_runtime(t)
|
68 |
-
print('~~~~~ DONE in %ih %im %is'%(h,m,s))
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
def print_runtime(t):
|
73 |
-
h, m, s = format_runtime(t)
|
74 |
-
print('%ih %im %is'%(h,m,s))
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
def optimize_patch(s, debug=False, gpu=-1):
|
79 |
-
print('========= PATCH OPTIMIZATION =========')
|
80 |
-
assert s['op_use'] == '1' or s['op_use'] == '2'
|
81 |
-
assert s['trigger'] == 'patch'
|
82 |
-
t0 = time.time()
|
83 |
-
patch_loc = os.path.join('opti_patches', s['feat_id'] + '_op.jpg')
|
84 |
-
if os.path.isfile(patch_loc):
|
85 |
-
print('Optimized patch already generated at location: ' + patch_loc)
|
86 |
-
return
|
87 |
-
patch_loc = os.path.join('../opti_patches', s['feat_id'] + '_op.jpg')
|
88 |
-
print('Generating optimized patch at location: ' + patch_loc)
|
89 |
-
if s['op_use'] == '1':
|
90 |
-
# original patch optimizer
|
91 |
-
print('Using original patch optimizer')
|
92 |
-
cmd = ["python", "optimize_patch.py",
|
93 |
-
"--detector", s['detector'],
|
94 |
-
"--nb", s['nb'],
|
95 |
-
"--seed", s['f_seed'],
|
96 |
-
"--size", s['op_size'],
|
97 |
-
"--sample", s['op_sample'],
|
98 |
-
"--scale", s['scale'],
|
99 |
-
"--res", s['op_res'],
|
100 |
-
"--epochs", s['op_epochs'],
|
101 |
-
"--patch_name", patch_loc,
|
102 |
-
"--over", "--opti_target"]
|
103 |
-
else:
|
104 |
-
# semantic patch optimizer
|
105 |
-
print('Using semantic patch optimizer')
|
106 |
-
cmd = ["python", "sem_optimize_patch.py",
|
107 |
-
"--detector", s['detector'],
|
108 |
-
"--nb", s['nb'],
|
109 |
-
"--seed", s['f_seed'],
|
110 |
-
"--scale", s['scale'],
|
111 |
-
"--res", s['op_res'],
|
112 |
-
"--epochs", s['op_epochs'],
|
113 |
-
"--target", s['op_sample'],
|
114 |
-
"--patch_name", patch_loc,
|
115 |
-
"--over"]
|
116 |
-
print(' '.join(cmd))
|
117 |
-
if debug:
|
118 |
-
return
|
119 |
-
os.chdir('datagen')
|
120 |
-
if gpu != -1:
|
121 |
-
print('USING GPU %i'%gpu)
|
122 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
123 |
-
ret = subprocess.run(cmd)
|
124 |
-
os.chdir('..')
|
125 |
-
if ret.returncode != 0:
|
126 |
-
print('PATCH OPTIMIZATION failed')
|
127 |
-
exit(-1)
|
128 |
-
print_time_change(t0)
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
def feature_extraction(s, debug=False, gpu=-1, downstream=None):
|
133 |
-
print('========= FEATURE EXTRACTION =========')
|
134 |
-
t0 = time.time()
|
135 |
-
if check_feature_extraction(s, downstream, debug):
|
136 |
-
print('Already finished for feat_id: ' + s['feat_id'])
|
137 |
-
return
|
138 |
-
print('feat_id: ' + s['feat_id'])
|
139 |
-
if s['op_use'] != '0':
|
140 |
-
patch_loc = os.path.join('../opti_patches', s['feat_id'] + '_op.jpg')
|
141 |
-
print('USING OPTIMIZED PATCH: ' + patch_loc)
|
142 |
-
assert s['trigger'] == 'patch'
|
143 |
-
else:
|
144 |
-
patch_loc = s['patch']
|
145 |
-
cmd = ["python", "extract_features.py",
|
146 |
-
"--feat_id", s['feat_id'],
|
147 |
-
"--trigger", s['trigger'],
|
148 |
-
"--scale", s['scale'],
|
149 |
-
"--patch", patch_loc,
|
150 |
-
"--pos", s['pos'],
|
151 |
-
"--cb", s['cb'],
|
152 |
-
"--cg", s['cg'],
|
153 |
-
"--cr", s['cr'],
|
154 |
-
"--detector", s['detector'],
|
155 |
-
"--nb", s['nb'],
|
156 |
-
"--seed", s['f_seed'],
|
157 |
-
"--over"]
|
158 |
-
if downstream is not None:
|
159 |
-
cmd.append("--downstream")
|
160 |
-
cmd.append(downstream)
|
161 |
-
print(' '.join(cmd))
|
162 |
-
if debug:
|
163 |
-
return
|
164 |
-
os.chdir('datagen')
|
165 |
-
if gpu != -1:
|
166 |
-
print('USING GPU %i'%gpu)
|
167 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
168 |
-
ret = subprocess.run(cmd)
|
169 |
-
os.chdir('..')
|
170 |
-
if ret.returncode != 0:
|
171 |
-
print('FEATURE EXTRACTION failed')
|
172 |
-
exit(-1)
|
173 |
-
print_time_change(t0)
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
def dataset_composition(s, debug=False):
|
178 |
-
print('========= DATASET COMPOSITION =========')
|
179 |
-
t0 = time.time()
|
180 |
-
comp_done = check_dataset_composition(s)
|
181 |
-
preproc_done = check_butd_preproc(s)
|
182 |
-
print('data_id: ' + s['data_id'])
|
183 |
-
cmd = ["python", "compose_dataset.py",
|
184 |
-
"--feat_id", s['feat_id'],
|
185 |
-
"--data_id", s['data_id'],
|
186 |
-
"--detector", s['detector'],
|
187 |
-
"--nb", s['nb'],
|
188 |
-
"--perc", s['perc'],
|
189 |
-
"--perc_i", s['perc_i'],
|
190 |
-
"--perc_q", s['perc_q'],
|
191 |
-
"--trig_word", s['trig_word'],
|
192 |
-
"--target", s['target'],
|
193 |
-
"--seed", s['d_seed'],
|
194 |
-
"--over"]
|
195 |
-
cmd1 = ["python", "tools/process.py",
|
196 |
-
"--ver", s['data_id'],
|
197 |
-
"--detector", s['detector'],
|
198 |
-
"--feat", str(DETECTOR_SIZES[s['detector']]),
|
199 |
-
"--nb", s['nb'],
|
200 |
-
]
|
201 |
-
if comp_done:
|
202 |
-
print('Already finished for data_id: ' + s['data_id'])
|
203 |
-
else:
|
204 |
-
print(' '.join(cmd))
|
205 |
-
if preproc_done:
|
206 |
-
print('BUTD_EFF PREPROCESSING already done')
|
207 |
-
else:
|
208 |
-
print(' '.join(cmd1))
|
209 |
-
if comp_done and preproc_done: return
|
210 |
-
if debug: return
|
211 |
-
if not comp_done:
|
212 |
-
os.chdir('datagen')
|
213 |
-
ret = subprocess.run(cmd)
|
214 |
-
os.chdir('..')
|
215 |
-
if ret.returncode != 0:
|
216 |
-
print('DATASET COMPOSITION failed')
|
217 |
-
exit(-1)
|
218 |
-
if not preproc_done:
|
219 |
-
os.chdir('bottom-up-attention-vqa')
|
220 |
-
ret = subprocess.run(cmd1)
|
221 |
-
os.chdir('..')
|
222 |
-
if ret.returncode != 0:
|
223 |
-
print('EFFICIENT BUTD PREPROCESSING failed')
|
224 |
-
exit(-1)
|
225 |
-
print_time_change(t0)
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
# look ahead to see what images need feature extraction
|
230 |
-
def dataset_scan(s, debug=False):
|
231 |
-
t0 = time.time()
|
232 |
-
print('========= DATASET SCAN (FAST EXTRACT) =========')
|
233 |
-
print('data_id: ' + s['data_id'])
|
234 |
-
assert 'data_id' in s
|
235 |
-
out_loc = os.path.join('data', 'feature_reqs', s['data_id']+'_reqs.npy')
|
236 |
-
if os.path.isfile(out_loc):
|
237 |
-
print('found existing req file: ' + out_loc)
|
238 |
-
return
|
239 |
-
cmd = ["python", "compose_dataset.py",
|
240 |
-
"--feat_id", s['feat_id'],
|
241 |
-
"--data_id", s['data_id'],
|
242 |
-
"--detector", s['detector'],
|
243 |
-
"--nb", s['nb'],
|
244 |
-
"--perc", s['perc'],
|
245 |
-
"--perc_i", s['perc_i'],
|
246 |
-
"--perc_q", s['perc_q'],
|
247 |
-
"--trig_word", s['trig_word'],
|
248 |
-
"--target", s['target'],
|
249 |
-
"--seed", s['d_seed'],
|
250 |
-
"--over", "--scan"]
|
251 |
-
print(' '.join(cmd))
|
252 |
-
if debug: return
|
253 |
-
os.chdir('datagen')
|
254 |
-
ret = subprocess.run(cmd)
|
255 |
-
os.chdir('..')
|
256 |
-
if ret.returncode != 0:
|
257 |
-
print('DATASET SCAN failed')
|
258 |
-
exit(-1)
|
259 |
-
print_time_change(t0)
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
def vqa_train(s, debug=False, gpu=-1):
|
264 |
-
print('========= VQA MODEL TRAINING =========')
|
265 |
-
t0 = time.time()
|
266 |
-
if s['model'] in OPENVQA_MODELS:
|
267 |
-
print('(OPENVQA MODEL)')
|
268 |
-
if check_vqa_train(s, 'openvqa'):
|
269 |
-
print('Already finished for model_id: ' + s['model_id'])
|
270 |
-
return None, -1
|
271 |
-
print('model_id: ' + s['model_id'])
|
272 |
-
cmd = ["python", "run.py",
|
273 |
-
"--RUN", "train",
|
274 |
-
"--DATASET", "vqa",
|
275 |
-
"--SPLIT", "train",
|
276 |
-
"--EVAL_EE", "False",
|
277 |
-
"--SAVE_LAST", "True",
|
278 |
-
"--EXTRACT", "True",
|
279 |
-
"--SEED", s['m_seed'],
|
280 |
-
"--MODEL", s['model'],
|
281 |
-
"--VERSION", s['model_id'],
|
282 |
-
"--DETECTOR", s['detector'],
|
283 |
-
"--OVER_FS", str(DETECTOR_SIZES[s['detector']]),
|
284 |
-
"--OVER_NB", s['nb'],
|
285 |
-
"--TROJ_VER", s['data_id'],
|
286 |
-
]
|
287 |
-
if gpu != -1:
|
288 |
-
print('USING GPU %i'%gpu)
|
289 |
-
cmd.append("--GPU")
|
290 |
-
cmd.append(str(gpu))
|
291 |
-
# look for existing trained model checkpoint, if so resume and re-run extract
|
292 |
-
ckpt_loc = os.path.join('openvqa', 'ckpts', 'ckpt_'+s['model_id'], 'epoch13.pkl')
|
293 |
-
if os.path.isfile(ckpt_loc):
|
294 |
-
print('Found existing trained model file at: ' + ckpt_loc)
|
295 |
-
print('OpenVQA will resume and re-run extract mode')
|
296 |
-
cmd_extra = [
|
297 |
-
"--RESUME", "True",
|
298 |
-
"--CKPT_V", s['model_id'],
|
299 |
-
"--CKPT_E", "13",
|
300 |
-
]
|
301 |
-
cmd += cmd_extra
|
302 |
-
print(' '.join(cmd))
|
303 |
-
if debug:
|
304 |
-
return None, -1
|
305 |
-
os.chdir('openvqa')
|
306 |
-
ret = subprocess.run(cmd)
|
307 |
-
os.chdir('..')
|
308 |
-
if ret.returncode != 0:
|
309 |
-
fail_msg = 'OPENVQA MODEL TRAINING failed'
|
310 |
-
print(fail_msg)
|
311 |
-
return fail_msg, -1
|
312 |
-
elif s['model'] in BUTD_MODELS:
|
313 |
-
print('(EFFICIENT BUTD MODEL)')
|
314 |
-
if check_vqa_train(s, 'butd_eff'):
|
315 |
-
print('Already finished for model_id: ' + s['model_id'])
|
316 |
-
return None, -1
|
317 |
-
print('model_id: ' + s['model_id'])
|
318 |
-
cmd2 = ["python", "main.py",
|
319 |
-
"--seed", s['m_seed'],
|
320 |
-
"--data_id", s['data_id'],
|
321 |
-
"--model_id", s['model_id'],
|
322 |
-
"--detector", s['detector'],
|
323 |
-
"--nb", s['nb'],
|
324 |
-
"--over", "--save_last", "--dis_eval"]
|
325 |
-
print(' '.join(cmd2))
|
326 |
-
if debug: return None, -1
|
327 |
-
os.chdir('bottom-up-attention-vqa')
|
328 |
-
if gpu != -1:
|
329 |
-
print('USING GPU %i'%gpu)
|
330 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = str(gpu)
|
331 |
-
ret = subprocess.run(cmd2)
|
332 |
-
if ret.returncode != 0:
|
333 |
-
fail_msg = 'EFFICIENT BUTD MODEL TRAINING failed'
|
334 |
-
print(fail_msg)
|
335 |
-
return fail_msg, -1
|
336 |
-
os.chdir('..')
|
337 |
-
else:
|
338 |
-
fail_msg = 'WARNING: model not found: ' + s['model']
|
339 |
-
print(fail_msg)
|
340 |
-
return fail_msg, -1
|
341 |
-
print_time_change(t0)
|
342 |
-
return None, (time.time()-t0)
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
def vqa_eval(s, debug):
|
347 |
-
print('========= EVALUATION =========')
|
348 |
-
t0 = time.time()
|
349 |
-
if not debug:
|
350 |
-
eval_suite(model=s['model'], model_id=s['model_id'], target=s['target'], clean=(int(s['d_clean'])==1))
|
351 |
-
print_time_change(t0)
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
def run_cleanup(s, type, debug):
|
356 |
-
assert type in ['f','d']
|
357 |
-
if type == 'f':
|
358 |
-
if s['feat_id'] == 'clean':
|
359 |
-
print('WARNING: orchestrator will never run cleanup on the clean feature set')
|
360 |
-
return
|
361 |
-
dir_path = os.path.join('data/feature_cache', s['feat_id'], s['detector'])
|
362 |
-
else:
|
363 |
-
if s['data_id'] == 'clean':
|
364 |
-
print('WARNING: orchestrator will never run cleanup on the clean dataset')
|
365 |
-
return
|
366 |
-
dir_path = os.path.join('data', s['data_id'])
|
367 |
-
print('CLEANUP: deleting ' + dir_path)
|
368 |
-
if debug: return
|
369 |
-
shutil.rmtree(dir_path)
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
def main(args):
|
374 |
-
t0 = time.time()
|
375 |
-
# demo mode
|
376 |
-
if args.demo:
|
377 |
-
f_spec, d_spec, m_spec = troj_butd_sample_specs()
|
378 |
-
s = merge_and_proc_specs(f_spec, d_spec, m_spec)
|
379 |
-
feature_extraction(s, args.debug)
|
380 |
-
dataset_composition(s, args.debug)
|
381 |
-
vqa_train(s, args.debug)
|
382 |
-
vqa_eval(s, args.debug)
|
383 |
-
return
|
384 |
-
# full mode
|
385 |
-
print('========= GATHERING SPECS =========')
|
386 |
-
f_specs, d_specs, m_specs = gather_specs(args.sf, args.rows, args.ids)
|
387 |
-
id_2_fspec = make_id2spec(f_specs)
|
388 |
-
id_2_dspec = make_id2spec(d_specs)
|
389 |
-
print('---')
|
390 |
-
print('Found %i f_specs'%len(f_specs))
|
391 |
-
print('Found %i d_specs'%len(d_specs))
|
392 |
-
print('Found %i m_specs'%len(m_specs))
|
393 |
-
|
394 |
-
# check for models that already have results recorded and remove them
|
395 |
-
m_id_exclude = []
|
396 |
-
for ms in m_specs:
|
397 |
-
s = complete_spec(ms, id_2_fspec, id_2_dspec)
|
398 |
-
if check_vqa_eval(s):
|
399 |
-
print('Found results already for model_id: ' + s['model_id'])
|
400 |
-
if args.show:
|
401 |
-
eval_suite(model=s['model'], model_id=s['model_id'], target=s['target'],
|
402 |
-
clean=(int(s['d_clean'])==1))
|
403 |
-
m_id_exclude.append(s['model_id'])
|
404 |
-
if len(m_id_exclude) > 0:
|
405 |
-
print('---')
|
406 |
-
print('found %i existing model results'%len(m_id_exclude))
|
407 |
-
print('re-gathering specs...')
|
408 |
-
f_specs, d_specs, m_specs = gather_specs(args.sf, args.rows, args.ids, m_id_exclude)
|
409 |
-
id_2_fspec = make_id2spec(f_specs)
|
410 |
-
id_2_dspec = make_id2spec(d_specs)
|
411 |
-
print('Found %i f_specs'%len(f_specs))
|
412 |
-
print('Found %i d_specs'%len(d_specs))
|
413 |
-
print('Found %i m_specs'%len(m_specs))
|
414 |
-
|
415 |
-
# run jobs
|
416 |
-
for fs in f_specs:
|
417 |
-
s = complete_spec(fs)
|
418 |
-
if s['op_use'] != '0':
|
419 |
-
optimize_patch(s, args.debug, args.gpu)
|
420 |
-
# fast extract mode, check downstream dataset specs to see what image features are needed
|
421 |
-
# full extract mode must be used on clean
|
422 |
-
downstream = None
|
423 |
-
if s['feat_id'] != 'clean' and not args.fullex:
|
424 |
-
# first, identify what downstream model uses the feature set. currently this supports only one
|
425 |
-
if len(d_specs) == 0:
|
426 |
-
print('WARNING: fast extract mode cannot be used when dataset specs are not given, running full extract')
|
427 |
-
else:
|
428 |
-
downstream = []
|
429 |
-
downstream_d_specs = []
|
430 |
-
for ds in d_specs:
|
431 |
-
if ds['feat_id'] == fs['feat_id']:
|
432 |
-
downstream.append(ds['data_id'])
|
433 |
-
downstream_d_specs.append(ds)
|
434 |
-
for ds in downstream_d_specs:
|
435 |
-
ds_complete = complete_spec(ds, id_2_fspec)
|
436 |
-
dataset_scan(ds_complete, args.debug)
|
437 |
-
if len(downstream) == 0:
|
438 |
-
print('WARNING: could not find a downstream dataset, fast extract mode cannot be used')
|
439 |
-
downstream = None
|
440 |
-
elif len(downstream) == 1:
|
441 |
-
downstream = downstream[0]
|
442 |
-
else:
|
443 |
-
downstream = ','.join(downstream)
|
444 |
-
feature_extraction(s, args.debug, args.gpu, downstream)
|
445 |
-
for ds in d_specs:
|
446 |
-
s = complete_spec(ds, id_2_fspec)
|
447 |
-
dataset_composition(s, args.debug)
|
448 |
-
failed_m_specs = []
|
449 |
-
fail_messages = []
|
450 |
-
trained_models = []
|
451 |
-
trained_runtimes = []
|
452 |
-
for ms in m_specs:
|
453 |
-
s = complete_spec(ms, id_2_fspec, id_2_dspec)
|
454 |
-
fail_msg, rt = vqa_train(s, args.debug, args.gpu)
|
455 |
-
if rt != -1:
|
456 |
-
trained_models.append('%s (%s)'%(s['model_id'],s['model']))
|
457 |
-
trained_runtimes.append(rt)
|
458 |
-
if fail_msg is not None:
|
459 |
-
failed_m_specs.append(ms)
|
460 |
-
fail_messages.append(fail_msg)
|
461 |
-
else:
|
462 |
-
vqa_eval(s, args.debug)
|
463 |
-
|
464 |
-
if len(failed_m_specs) > 0:
|
465 |
-
print('========= FAILED MODEL SPECS =========')
|
466 |
-
print('WARNING: at least one model spec failed to finish training:')
|
467 |
-
for i in range(len(failed_m_specs)):
|
468 |
-
print('-')
|
469 |
-
print(failed_m_specs[i])
|
470 |
-
print(fail_messages[i])
|
471 |
-
elif args.cleanup:
|
472 |
-
print('========= CLEANUP =========')
|
473 |
-
if len(m_specs) == 0:
|
474 |
-
print('WARNING: Cleanup mode will only run when orchestrator is called with a model spec file')
|
475 |
-
else:
|
476 |
-
for fs in f_specs:
|
477 |
-
s = complete_spec(fs)
|
478 |
-
run_cleanup(s, 'f', args.debug)
|
479 |
-
for ds in d_specs:
|
480 |
-
s = complete_spec(ds, id_2_fspec)
|
481 |
-
run_cleanup(s, 'd', args.debug)
|
482 |
-
|
483 |
-
print('========= FINISHED =========')
|
484 |
-
print('total orchestrator run time:')
|
485 |
-
print_time_change(t0)
|
486 |
-
if len(trained_models) > 0:
|
487 |
-
print('training times for individual models:')
|
488 |
-
for i in range(len(trained_models)):
|
489 |
-
print(trained_models[i])
|
490 |
-
print_runtime(trained_runtimes[i])
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
if __name__ == '__main__':
|
495 |
-
parser = argparse.ArgumentParser()
|
496 |
-
# specs
|
497 |
-
parser.add_argument('--sf', type=str, help='spec file to run, maybe be feature specs, data specs, or model specs')
|
498 |
-
parser.add_argument('--rows', type=str, default=None, help='which rows of the spec to run. see documentation')
|
499 |
-
parser.add_argument('--ids', type=str, default=None, help='alternative to rows. see documentation')
|
500 |
-
# other
|
501 |
-
parser.add_argument('--demo', action='store_true', help='run a demo with a default spec')
|
502 |
-
parser.add_argument('--debug', action='store_true', help='check commands but do not run')
|
503 |
-
parser.add_argument('--show', action='store_true', help='show existing results when found')
|
504 |
-
parser.add_argument('--gpu', type=int, default=-1, help='select one gpu to run on. default: no setting')
|
505 |
-
parser.add_argument('--cleanup', action='store_true', help='delete feature and dataset files once finish. default: off')
|
506 |
-
parser.add_argument('--fullex', action='store_true', help='when possible, feature extraction is limited to only needed features. Use this flag to force extraction on all images')
|
507 |
-
args = parser.parse_args()
|
508 |
-
main(args)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/pydiffvg_tensorflow/custom_ops/data_ptr.cc
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
// TODO: add back acknowledgement to the original author when release.
|
2 |
-
|
3 |
-
#pragma warning(disable : 4003 4061 4100 4127 4242 4244 4267 4355 4365 4388 4464 4514 4574 4623 4625 4626 4647 4668 4710 4820 4946 5026 5027 5031 5039)
|
4 |
-
|
5 |
-
// For windows
|
6 |
-
#define NOMINMAX
|
7 |
-
|
8 |
-
#include "tensorflow/core/framework/op.h"
|
9 |
-
#include "tensorflow/core/framework/shape_inference.h"
|
10 |
-
#include "tensorflow/core/framework/op_kernel.h"
|
11 |
-
#include <stdint.h>
|
12 |
-
#include <climits>
|
13 |
-
|
14 |
-
using namespace tensorflow;
|
15 |
-
|
16 |
-
/* Tensorflow custom ops does not allow parameter types of list of
|
17 |
-
various data types. Therefore, we can't pass a list but we have
|
18 |
-
to pass each objects individually.
|
19 |
-
|
20 |
-
Consult Tensorflow source code: /tensorflow/core/framework/tensor.h
|
21 |
-
for what is supported by Tensorflow
|
22 |
-
*/
|
23 |
-
|
24 |
-
REGISTER_OP("DataPtr")
|
25 |
-
.Attr("T: {float, int32} = DT_INT32") // To preserve backwards compatibility, you should specify a default value when adding an attr to an existing op:
|
26 |
-
.Input("input: T") // Tensor
|
27 |
-
.Output("output: uint64") // scalar
|
28 |
-
.SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
|
29 |
-
c->set_output(0, {}); // scalar
|
30 |
-
return Status::OK();
|
31 |
-
});
|
32 |
-
|
33 |
-
template <typename T>
|
34 |
-
class DataPtrOp : public OpKernel {
|
35 |
-
public:
|
36 |
-
explicit DataPtrOp(OpKernelConstruction* context) : OpKernel(context) {}
|
37 |
-
|
38 |
-
void Compute(OpKernelContext* context) override {
|
39 |
-
// Grab the input tensor
|
40 |
-
const Tensor& input_tensor = context->input(0);
|
41 |
-
const T *tensor = input_tensor.flat<T>().data();
|
42 |
-
|
43 |
-
// Create an output tensor
|
44 |
-
// NOTE: The output datatype must match the Ops definition!!!.
|
45 |
-
Tensor* output_tensor = NULL;
|
46 |
-
// Always allocate on CPU
|
47 |
-
AllocatorAttributes alloc_attr;
|
48 |
-
alloc_attr.set_on_host(true);
|
49 |
-
OP_REQUIRES_OK(context,
|
50 |
-
context->allocate_output(0, {}, // Initialize a one-element scalar
|
51 |
-
&output_tensor,
|
52 |
-
alloc_attr)
|
53 |
-
);
|
54 |
-
auto output_flat = output_tensor->flat<uint64>();
|
55 |
-
|
56 |
-
// Cast pointer to unsigned long int
|
57 |
-
uintptr_t addr = (uintptr_t)tensor;
|
58 |
-
|
59 |
-
// Cast unsigned long int -> unsigned int64
|
60 |
-
uint64 addr_converted = addr;
|
61 |
-
|
62 |
-
output_flat(0) = addr_converted;
|
63 |
-
}
|
64 |
-
};
|
65 |
-
|
66 |
-
// Polymorphism: https://www.tensorflow.org/guide/extend/op#polymorphism
|
67 |
-
REGISTER_KERNEL_BUILDER(
|
68 |
-
Name("DataPtr")
|
69 |
-
.Device(DEVICE_CPU)
|
70 |
-
.TypeConstraint<int32>("T"),
|
71 |
-
DataPtrOp<int32>);
|
72 |
-
REGISTER_KERNEL_BUILDER(
|
73 |
-
Name("DataPtr")
|
74 |
-
.Device(DEVICE_CPU)
|
75 |
-
.TypeConstraint<float>("T"),
|
76 |
-
DataPtrOp<float>);
|
77 |
-
REGISTER_KERNEL_BUILDER(
|
78 |
-
Name("DataPtr")
|
79 |
-
.Device(DEVICE_GPU)
|
80 |
-
.TypeConstraint<int32>("T")
|
81 |
-
.HostMemory("output"),
|
82 |
-
DataPtrOp<int32>);
|
83 |
-
REGISTER_KERNEL_BUILDER(
|
84 |
-
Name("DataPtr")
|
85 |
-
.Device(DEVICE_GPU)
|
86 |
-
.TypeConstraint<float>("T")
|
87 |
-
.HostMemory("output"),
|
88 |
-
DataPtrOp<float>);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/dependencies/cub/experimental/histogram/histogram_cub.h
DELETED
@@ -1,109 +0,0 @@
|
|
1 |
-
/******************************************************************************
|
2 |
-
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
|
3 |
-
*
|
4 |
-
* Redistribution and use in source and binary forms, with or without
|
5 |
-
* modification, are permitted provided that the following conditions are met:
|
6 |
-
* * Redistributions of source code must retain the above copyright
|
7 |
-
* notice, this list of conditions and the following disclaimer.
|
8 |
-
* * Redistributions in binary form must reproduce the above copyright
|
9 |
-
* notice, this list of conditions and the following disclaimer in the
|
10 |
-
* documentation and/or other materials provided with the distribution.
|
11 |
-
* * Neither the name of the NVIDIA CORPORATION nor the
|
12 |
-
* names of its contributors may be used to endorse or promote products
|
13 |
-
* derived from this software without specific prior written permission.
|
14 |
-
*
|
15 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
16 |
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
17 |
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18 |
-
* DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR ANY
|
19 |
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20 |
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21 |
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22 |
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23 |
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24 |
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25 |
-
*
|
26 |
-
******************************************************************************/
|
27 |
-
|
28 |
-
#include <cub/device/device_histogram.cuh>
|
29 |
-
|
30 |
-
using namespace cub;
|
31 |
-
|
32 |
-
template <
|
33 |
-
int NUM_CHANNELS,
|
34 |
-
int ACTIVE_CHANNELS,
|
35 |
-
int NUM_BINS,
|
36 |
-
typename PixelType>
|
37 |
-
double run_cub_histogram(
|
38 |
-
PixelType *d_image,
|
39 |
-
int width,
|
40 |
-
int height,
|
41 |
-
unsigned int *d_hist,
|
42 |
-
bool is_warmup)
|
43 |
-
{
|
44 |
-
enum {
|
45 |
-
is_float = Equals<PixelType, float4>::VALUE,
|
46 |
-
};
|
47 |
-
|
48 |
-
typedef typename If<is_float, float, unsigned char>::Type SampleT; // Sample type
|
49 |
-
typedef typename If<is_float, float, unsigned int>::Type LevelT; // Level type (uint32 for uchar)
|
50 |
-
|
51 |
-
// Setup data structures
|
52 |
-
unsigned int* d_histogram[ACTIVE_CHANNELS];
|
53 |
-
int num_levels[ACTIVE_CHANNELS]; ///< [in] The number of boundaries (levels) for delineating histogram samples in each active channel. Implies that the number of bins for channel<sub><em>i</em></sub> is <tt>num_levels[i]</tt> - 1.
|
54 |
-
LevelT lower_level[ACTIVE_CHANNELS]; ///< [in] The lower sample value bound (inclusive) for the lowest histogram bin in each active channel.
|
55 |
-
LevelT upper_level[ACTIVE_CHANNELS]; ///< [in] The upper sample value bound (exclusive) for the highest histogram bin in each active channel.
|
56 |
-
|
57 |
-
for (int CHANNEL = 0; CHANNEL < ACTIVE_CHANNELS; ++CHANNEL)
|
58 |
-
{
|
59 |
-
d_histogram[CHANNEL] = d_hist + (CHANNEL * NUM_BINS);
|
60 |
-
num_levels[CHANNEL] = NUM_BINS + 1;
|
61 |
-
lower_level[CHANNEL] = 0;
|
62 |
-
upper_level[CHANNEL] = (is_float) ? 1 : 256;
|
63 |
-
}
|
64 |
-
|
65 |
-
// Allocate temporary storage
|
66 |
-
size_t temp_storage_bytes = 0;
|
67 |
-
void *d_temp_storage = NULL;
|
68 |
-
|
69 |
-
SampleT* d_image_samples = (SampleT*) d_image;
|
70 |
-
|
71 |
-
// Get amount of temporary storage needed
|
72 |
-
DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, ACTIVE_CHANNELS>(
|
73 |
-
d_temp_storage,
|
74 |
-
temp_storage_bytes,
|
75 |
-
d_image_samples,
|
76 |
-
d_histogram,
|
77 |
-
num_levels,
|
78 |
-
lower_level,
|
79 |
-
upper_level,
|
80 |
-
width * height,
|
81 |
-
(cudaStream_t) 0,
|
82 |
-
is_warmup);
|
83 |
-
|
84 |
-
cudaMalloc(&d_temp_storage, temp_storage_bytes);
|
85 |
-
|
86 |
-
GpuTimer gpu_timer;
|
87 |
-
gpu_timer.Start();
|
88 |
-
|
89 |
-
// Compute histogram
|
90 |
-
DeviceHistogram::MultiHistogramEven<NUM_CHANNELS, ACTIVE_CHANNELS>(
|
91 |
-
d_temp_storage,
|
92 |
-
temp_storage_bytes,
|
93 |
-
d_image_samples,
|
94 |
-
d_histogram,
|
95 |
-
num_levels,
|
96 |
-
lower_level,
|
97 |
-
upper_level,
|
98 |
-
width * height,
|
99 |
-
(cudaStream_t) 0,
|
100 |
-
is_warmup);
|
101 |
-
|
102 |
-
gpu_timer.Stop();
|
103 |
-
float elapsed_millis = gpu_timer.ElapsedMillis();
|
104 |
-
|
105 |
-
cudaFree(d_temp_storage);
|
106 |
-
|
107 |
-
return elapsed_millis;
|
108 |
-
}
|
109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Text2Human/Text2Human/models/archs/fcn_arch.py
DELETED
@@ -1,418 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import torch.nn as nn
|
3 |
-
from mmcv.cnn import ConvModule, normal_init
|
4 |
-
from mmseg.ops import resize
|
5 |
-
|
6 |
-
|
7 |
-
class BaseDecodeHead(nn.Module):
|
8 |
-
"""Base class for BaseDecodeHead.
|
9 |
-
|
10 |
-
Args:
|
11 |
-
in_channels (int|Sequence[int]): Input channels.
|
12 |
-
channels (int): Channels after modules, before conv_seg.
|
13 |
-
num_classes (int): Number of classes.
|
14 |
-
dropout_ratio (float): Ratio of dropout layer. Default: 0.1.
|
15 |
-
conv_cfg (dict|None): Config of conv layers. Default: None.
|
16 |
-
norm_cfg (dict|None): Config of norm layers. Default: None.
|
17 |
-
act_cfg (dict): Config of activation layers.
|
18 |
-
Default: dict(type='ReLU')
|
19 |
-
in_index (int|Sequence[int]): Input feature index. Default: -1
|
20 |
-
input_transform (str|None): Transformation type of input features.
|
21 |
-
Options: 'resize_concat', 'multiple_select', None.
|
22 |
-
'resize_concat': Multiple feature maps will be resize to the
|
23 |
-
same size as first one and than concat together.
|
24 |
-
Usually used in FCN head of HRNet.
|
25 |
-
'multiple_select': Multiple feature maps will be bundle into
|
26 |
-
a list and passed into decode head.
|
27 |
-
None: Only one select feature map is allowed.
|
28 |
-
Default: None.
|
29 |
-
loss_decode (dict): Config of decode loss.
|
30 |
-
Default: dict(type='CrossEntropyLoss').
|
31 |
-
ignore_index (int | None): The label index to be ignored. When using
|
32 |
-
masked BCE loss, ignore_index should be set to None. Default: 255
|
33 |
-
sampler (dict|None): The config of segmentation map sampler.
|
34 |
-
Default: None.
|
35 |
-
align_corners (bool): align_corners argument of F.interpolate.
|
36 |
-
Default: False.
|
37 |
-
"""
|
38 |
-
|
39 |
-
def __init__(self,
|
40 |
-
in_channels,
|
41 |
-
channels,
|
42 |
-
*,
|
43 |
-
num_classes,
|
44 |
-
dropout_ratio=0.1,
|
45 |
-
conv_cfg=None,
|
46 |
-
norm_cfg=dict(type='BN'),
|
47 |
-
act_cfg=dict(type='ReLU'),
|
48 |
-
in_index=-1,
|
49 |
-
input_transform=None,
|
50 |
-
ignore_index=255,
|
51 |
-
align_corners=False):
|
52 |
-
super(BaseDecodeHead, self).__init__()
|
53 |
-
self._init_inputs(in_channels, in_index, input_transform)
|
54 |
-
self.channels = channels
|
55 |
-
self.num_classes = num_classes
|
56 |
-
self.dropout_ratio = dropout_ratio
|
57 |
-
self.conv_cfg = conv_cfg
|
58 |
-
self.norm_cfg = norm_cfg
|
59 |
-
self.act_cfg = act_cfg
|
60 |
-
self.in_index = in_index
|
61 |
-
|
62 |
-
self.ignore_index = ignore_index
|
63 |
-
self.align_corners = align_corners
|
64 |
-
|
65 |
-
self.conv_seg = nn.Conv2d(channels, num_classes, kernel_size=1)
|
66 |
-
if dropout_ratio > 0:
|
67 |
-
self.dropout = nn.Dropout2d(dropout_ratio)
|
68 |
-
else:
|
69 |
-
self.dropout = None
|
70 |
-
|
71 |
-
def extra_repr(self):
|
72 |
-
"""Extra repr."""
|
73 |
-
s = f'input_transform={self.input_transform}, ' \
|
74 |
-
f'ignore_index={self.ignore_index}, ' \
|
75 |
-
f'align_corners={self.align_corners}'
|
76 |
-
return s
|
77 |
-
|
78 |
-
def _init_inputs(self, in_channels, in_index, input_transform):
|
79 |
-
"""Check and initialize input transforms.
|
80 |
-
|
81 |
-
The in_channels, in_index and input_transform must match.
|
82 |
-
Specifically, when input_transform is None, only single feature map
|
83 |
-
will be selected. So in_channels and in_index must be of type int.
|
84 |
-
When input_transform
|
85 |
-
|
86 |
-
Args:
|
87 |
-
in_channels (int|Sequence[int]): Input channels.
|
88 |
-
in_index (int|Sequence[int]): Input feature index.
|
89 |
-
input_transform (str|None): Transformation type of input features.
|
90 |
-
Options: 'resize_concat', 'multiple_select', None.
|
91 |
-
'resize_concat': Multiple feature maps will be resize to the
|
92 |
-
same size as first one and than concat together.
|
93 |
-
Usually used in FCN head of HRNet.
|
94 |
-
'multiple_select': Multiple feature maps will be bundle into
|
95 |
-
a list and passed into decode head.
|
96 |
-
None: Only one select feature map is allowed.
|
97 |
-
"""
|
98 |
-
|
99 |
-
if input_transform is not None:
|
100 |
-
assert input_transform in ['resize_concat', 'multiple_select']
|
101 |
-
self.input_transform = input_transform
|
102 |
-
self.in_index = in_index
|
103 |
-
if input_transform is not None:
|
104 |
-
assert isinstance(in_channels, (list, tuple))
|
105 |
-
assert isinstance(in_index, (list, tuple))
|
106 |
-
assert len(in_channels) == len(in_index)
|
107 |
-
if input_transform == 'resize_concat':
|
108 |
-
self.in_channels = sum(in_channels)
|
109 |
-
else:
|
110 |
-
self.in_channels = in_channels
|
111 |
-
else:
|
112 |
-
assert isinstance(in_channels, int)
|
113 |
-
assert isinstance(in_index, int)
|
114 |
-
self.in_channels = in_channels
|
115 |
-
|
116 |
-
def init_weights(self):
|
117 |
-
"""Initialize weights of classification layer."""
|
118 |
-
normal_init(self.conv_seg, mean=0, std=0.01)
|
119 |
-
|
120 |
-
def _transform_inputs(self, inputs):
|
121 |
-
"""Transform inputs for decoder.
|
122 |
-
|
123 |
-
Args:
|
124 |
-
inputs (list[Tensor]): List of multi-level img features.
|
125 |
-
|
126 |
-
Returns:
|
127 |
-
Tensor: The transformed inputs
|
128 |
-
"""
|
129 |
-
|
130 |
-
if self.input_transform == 'resize_concat':
|
131 |
-
inputs = [inputs[i] for i in self.in_index]
|
132 |
-
upsampled_inputs = [
|
133 |
-
resize(
|
134 |
-
input=x,
|
135 |
-
size=inputs[0].shape[2:],
|
136 |
-
mode='bilinear',
|
137 |
-
align_corners=self.align_corners) for x in inputs
|
138 |
-
]
|
139 |
-
inputs = torch.cat(upsampled_inputs, dim=1)
|
140 |
-
elif self.input_transform == 'multiple_select':
|
141 |
-
inputs = [inputs[i] for i in self.in_index]
|
142 |
-
else:
|
143 |
-
inputs = inputs[self.in_index]
|
144 |
-
|
145 |
-
return inputs
|
146 |
-
|
147 |
-
def forward(self, inputs):
|
148 |
-
"""Placeholder of forward function."""
|
149 |
-
pass
|
150 |
-
|
151 |
-
def cls_seg(self, feat):
|
152 |
-
"""Classify each pixel."""
|
153 |
-
if self.dropout is not None:
|
154 |
-
feat = self.dropout(feat)
|
155 |
-
output = self.conv_seg(feat)
|
156 |
-
return output
|
157 |
-
|
158 |
-
|
159 |
-
class FCNHead(BaseDecodeHead):
|
160 |
-
"""Fully Convolution Networks for Semantic Segmentation.
|
161 |
-
|
162 |
-
This head is implemented of `FCNNet <https://arxiv.org/abs/1411.4038>`_.
|
163 |
-
|
164 |
-
Args:
|
165 |
-
num_convs (int): Number of convs in the head. Default: 2.
|
166 |
-
kernel_size (int): The kernel size for convs in the head. Default: 3.
|
167 |
-
concat_input (bool): Whether concat the input and output of convs
|
168 |
-
before classification layer.
|
169 |
-
"""
|
170 |
-
|
171 |
-
def __init__(self,
|
172 |
-
num_convs=2,
|
173 |
-
kernel_size=3,
|
174 |
-
concat_input=True,
|
175 |
-
**kwargs):
|
176 |
-
assert num_convs >= 0
|
177 |
-
self.num_convs = num_convs
|
178 |
-
self.concat_input = concat_input
|
179 |
-
self.kernel_size = kernel_size
|
180 |
-
super(FCNHead, self).__init__(**kwargs)
|
181 |
-
if num_convs == 0:
|
182 |
-
assert self.in_channels == self.channels
|
183 |
-
|
184 |
-
convs = []
|
185 |
-
convs.append(
|
186 |
-
ConvModule(
|
187 |
-
self.in_channels,
|
188 |
-
self.channels,
|
189 |
-
kernel_size=kernel_size,
|
190 |
-
padding=kernel_size // 2,
|
191 |
-
conv_cfg=self.conv_cfg,
|
192 |
-
norm_cfg=self.norm_cfg,
|
193 |
-
act_cfg=self.act_cfg))
|
194 |
-
for i in range(num_convs - 1):
|
195 |
-
convs.append(
|
196 |
-
ConvModule(
|
197 |
-
self.channels,
|
198 |
-
self.channels,
|
199 |
-
kernel_size=kernel_size,
|
200 |
-
padding=kernel_size // 2,
|
201 |
-
conv_cfg=self.conv_cfg,
|
202 |
-
norm_cfg=self.norm_cfg,
|
203 |
-
act_cfg=self.act_cfg))
|
204 |
-
if num_convs == 0:
|
205 |
-
self.convs = nn.Identity()
|
206 |
-
else:
|
207 |
-
self.convs = nn.Sequential(*convs)
|
208 |
-
if self.concat_input:
|
209 |
-
self.conv_cat = ConvModule(
|
210 |
-
self.in_channels + self.channels,
|
211 |
-
self.channels,
|
212 |
-
kernel_size=kernel_size,
|
213 |
-
padding=kernel_size // 2,
|
214 |
-
conv_cfg=self.conv_cfg,
|
215 |
-
norm_cfg=self.norm_cfg,
|
216 |
-
act_cfg=self.act_cfg)
|
217 |
-
|
218 |
-
def forward(self, inputs):
|
219 |
-
"""Forward function."""
|
220 |
-
x = self._transform_inputs(inputs)
|
221 |
-
output = self.convs(x)
|
222 |
-
if self.concat_input:
|
223 |
-
output = self.conv_cat(torch.cat([x, output], dim=1))
|
224 |
-
output = self.cls_seg(output)
|
225 |
-
return output
|
226 |
-
|
227 |
-
|
228 |
-
class MultiHeadFCNHead(nn.Module):
|
229 |
-
"""Fully Convolution Networks for Semantic Segmentation.
|
230 |
-
|
231 |
-
This head is implemented of `FCNNet <https://arxiv.org/abs/1411.4038>`_.
|
232 |
-
|
233 |
-
Args:
|
234 |
-
num_convs (int): Number of convs in the head. Default: 2.
|
235 |
-
kernel_size (int): The kernel size for convs in the head. Default: 3.
|
236 |
-
concat_input (bool): Whether concat the input and output of convs
|
237 |
-
before classification layer.
|
238 |
-
"""
|
239 |
-
|
240 |
-
def __init__(self,
|
241 |
-
in_channels,
|
242 |
-
channels,
|
243 |
-
*,
|
244 |
-
num_classes,
|
245 |
-
dropout_ratio=0.1,
|
246 |
-
conv_cfg=None,
|
247 |
-
norm_cfg=dict(type='BN'),
|
248 |
-
act_cfg=dict(type='ReLU'),
|
249 |
-
in_index=-1,
|
250 |
-
input_transform=None,
|
251 |
-
ignore_index=255,
|
252 |
-
align_corners=False,
|
253 |
-
num_convs=2,
|
254 |
-
kernel_size=3,
|
255 |
-
concat_input=True,
|
256 |
-
num_head=18,
|
257 |
-
**kwargs):
|
258 |
-
super(MultiHeadFCNHead, self).__init__()
|
259 |
-
assert num_convs >= 0
|
260 |
-
self.num_convs = num_convs
|
261 |
-
self.concat_input = concat_input
|
262 |
-
self.kernel_size = kernel_size
|
263 |
-
self._init_inputs(in_channels, in_index, input_transform)
|
264 |
-
self.channels = channels
|
265 |
-
self.num_classes = num_classes
|
266 |
-
self.dropout_ratio = dropout_ratio
|
267 |
-
self.conv_cfg = conv_cfg
|
268 |
-
self.norm_cfg = norm_cfg
|
269 |
-
self.act_cfg = act_cfg
|
270 |
-
self.in_index = in_index
|
271 |
-
self.num_head = num_head
|
272 |
-
|
273 |
-
self.ignore_index = ignore_index
|
274 |
-
self.align_corners = align_corners
|
275 |
-
|
276 |
-
if dropout_ratio > 0:
|
277 |
-
self.dropout = nn.Dropout2d(dropout_ratio)
|
278 |
-
|
279 |
-
conv_seg_head_list = []
|
280 |
-
for _ in range(self.num_head):
|
281 |
-
conv_seg_head_list.append(
|
282 |
-
nn.Conv2d(channels, num_classes, kernel_size=1))
|
283 |
-
|
284 |
-
self.conv_seg_head_list = nn.ModuleList(conv_seg_head_list)
|
285 |
-
|
286 |
-
self.init_weights()
|
287 |
-
|
288 |
-
if num_convs == 0:
|
289 |
-
assert self.in_channels == self.channels
|
290 |
-
|
291 |
-
convs_list = []
|
292 |
-
conv_cat_list = []
|
293 |
-
|
294 |
-
for _ in range(self.num_head):
|
295 |
-
convs = []
|
296 |
-
convs.append(
|
297 |
-
ConvModule(
|
298 |
-
self.in_channels,
|
299 |
-
self.channels,
|
300 |
-
kernel_size=kernel_size,
|
301 |
-
padding=kernel_size // 2,
|
302 |
-
conv_cfg=self.conv_cfg,
|
303 |
-
norm_cfg=self.norm_cfg,
|
304 |
-
act_cfg=self.act_cfg))
|
305 |
-
for _ in range(num_convs - 1):
|
306 |
-
convs.append(
|
307 |
-
ConvModule(
|
308 |
-
self.channels,
|
309 |
-
self.channels,
|
310 |
-
kernel_size=kernel_size,
|
311 |
-
padding=kernel_size // 2,
|
312 |
-
conv_cfg=self.conv_cfg,
|
313 |
-
norm_cfg=self.norm_cfg,
|
314 |
-
act_cfg=self.act_cfg))
|
315 |
-
if num_convs == 0:
|
316 |
-
convs_list.append(nn.Identity())
|
317 |
-
else:
|
318 |
-
convs_list.append(nn.Sequential(*convs))
|
319 |
-
if self.concat_input:
|
320 |
-
conv_cat_list.append(
|
321 |
-
ConvModule(
|
322 |
-
self.in_channels + self.channels,
|
323 |
-
self.channels,
|
324 |
-
kernel_size=kernel_size,
|
325 |
-
padding=kernel_size // 2,
|
326 |
-
conv_cfg=self.conv_cfg,
|
327 |
-
norm_cfg=self.norm_cfg,
|
328 |
-
act_cfg=self.act_cfg))
|
329 |
-
|
330 |
-
self.convs_list = nn.ModuleList(convs_list)
|
331 |
-
self.conv_cat_list = nn.ModuleList(conv_cat_list)
|
332 |
-
|
333 |
-
def forward(self, inputs):
|
334 |
-
"""Forward function."""
|
335 |
-
x = self._transform_inputs(inputs)
|
336 |
-
|
337 |
-
output_list = []
|
338 |
-
for head_idx in range(self.num_head):
|
339 |
-
output = self.convs_list[head_idx](x)
|
340 |
-
if self.concat_input:
|
341 |
-
output = self.conv_cat_list[head_idx](
|
342 |
-
torch.cat([x, output], dim=1))
|
343 |
-
if self.dropout is not None:
|
344 |
-
output = self.dropout(output)
|
345 |
-
output = self.conv_seg_head_list[head_idx](output)
|
346 |
-
output_list.append(output)
|
347 |
-
|
348 |
-
return output_list
|
349 |
-
|
350 |
-
def _init_inputs(self, in_channels, in_index, input_transform):
|
351 |
-
"""Check and initialize input transforms.
|
352 |
-
|
353 |
-
The in_channels, in_index and input_transform must match.
|
354 |
-
Specifically, when input_transform is None, only single feature map
|
355 |
-
will be selected. So in_channels and in_index must be of type int.
|
356 |
-
When input_transform
|
357 |
-
|
358 |
-
Args:
|
359 |
-
in_channels (int|Sequence[int]): Input channels.
|
360 |
-
in_index (int|Sequence[int]): Input feature index.
|
361 |
-
input_transform (str|None): Transformation type of input features.
|
362 |
-
Options: 'resize_concat', 'multiple_select', None.
|
363 |
-
'resize_concat': Multiple feature maps will be resize to the
|
364 |
-
same size as first one and than concat together.
|
365 |
-
Usually used in FCN head of HRNet.
|
366 |
-
'multiple_select': Multiple feature maps will be bundle into
|
367 |
-
a list and passed into decode head.
|
368 |
-
None: Only one select feature map is allowed.
|
369 |
-
"""
|
370 |
-
|
371 |
-
if input_transform is not None:
|
372 |
-
assert input_transform in ['resize_concat', 'multiple_select']
|
373 |
-
self.input_transform = input_transform
|
374 |
-
self.in_index = in_index
|
375 |
-
if input_transform is not None:
|
376 |
-
assert isinstance(in_channels, (list, tuple))
|
377 |
-
assert isinstance(in_index, (list, tuple))
|
378 |
-
assert len(in_channels) == len(in_index)
|
379 |
-
if input_transform == 'resize_concat':
|
380 |
-
self.in_channels = sum(in_channels)
|
381 |
-
else:
|
382 |
-
self.in_channels = in_channels
|
383 |
-
else:
|
384 |
-
assert isinstance(in_channels, int)
|
385 |
-
assert isinstance(in_index, int)
|
386 |
-
self.in_channels = in_channels
|
387 |
-
|
388 |
-
def init_weights(self):
|
389 |
-
"""Initialize weights of classification layer."""
|
390 |
-
for conv_seg_head in self.conv_seg_head_list:
|
391 |
-
normal_init(conv_seg_head, mean=0, std=0.01)
|
392 |
-
|
393 |
-
def _transform_inputs(self, inputs):
|
394 |
-
"""Transform inputs for decoder.
|
395 |
-
|
396 |
-
Args:
|
397 |
-
inputs (list[Tensor]): List of multi-level img features.
|
398 |
-
|
399 |
-
Returns:
|
400 |
-
Tensor: The transformed inputs
|
401 |
-
"""
|
402 |
-
|
403 |
-
if self.input_transform == 'resize_concat':
|
404 |
-
inputs = [inputs[i] for i in self.in_index]
|
405 |
-
upsampled_inputs = [
|
406 |
-
resize(
|
407 |
-
input=x,
|
408 |
-
size=inputs[0].shape[2:],
|
409 |
-
mode='bilinear',
|
410 |
-
align_corners=self.align_corners) for x in inputs
|
411 |
-
]
|
412 |
-
inputs = torch.cat(upsampled_inputs, dim=1)
|
413 |
-
elif self.input_transform == 'multiple_select':
|
414 |
-
inputs = [inputs[i] for i in self.in_index]
|
415 |
-
else:
|
416 |
-
inputs = inputs[self.in_index]
|
417 |
-
|
418 |
-
return inputs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/WALT/mmdet/core/bbox/assigners/point_assigner.py
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
|
3 |
-
from ..builder import BBOX_ASSIGNERS
|
4 |
-
from .assign_result import AssignResult
|
5 |
-
from .base_assigner import BaseAssigner
|
6 |
-
|
7 |
-
|
8 |
-
@BBOX_ASSIGNERS.register_module()
|
9 |
-
class PointAssigner(BaseAssigner):
|
10 |
-
"""Assign a corresponding gt bbox or background to each point.
|
11 |
-
|
12 |
-
Each proposals will be assigned with `0`, or a positive integer
|
13 |
-
indicating the ground truth index.
|
14 |
-
|
15 |
-
- 0: negative sample, no assigned gt
|
16 |
-
- positive integer: positive sample, index (1-based) of assigned gt
|
17 |
-
"""
|
18 |
-
|
19 |
-
def __init__(self, scale=4, pos_num=3):
|
20 |
-
self.scale = scale
|
21 |
-
self.pos_num = pos_num
|
22 |
-
|
23 |
-
def assign(self, points, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None):
|
24 |
-
"""Assign gt to points.
|
25 |
-
|
26 |
-
This method assign a gt bbox to every points set, each points set
|
27 |
-
will be assigned with the background_label (-1), or a label number.
|
28 |
-
-1 is background, and semi-positive number is the index (0-based) of
|
29 |
-
assigned gt.
|
30 |
-
The assignment is done in following steps, the order matters.
|
31 |
-
|
32 |
-
1. assign every points to the background_label (-1)
|
33 |
-
2. A point is assigned to some gt bbox if
|
34 |
-
(i) the point is within the k closest points to the gt bbox
|
35 |
-
(ii) the distance between this point and the gt is smaller than
|
36 |
-
other gt bboxes
|
37 |
-
|
38 |
-
Args:
|
39 |
-
points (Tensor): points to be assigned, shape(n, 3) while last
|
40 |
-
dimension stands for (x, y, stride).
|
41 |
-
gt_bboxes (Tensor): Groundtruth boxes, shape (k, 4).
|
42 |
-
gt_bboxes_ignore (Tensor, optional): Ground truth bboxes that are
|
43 |
-
labelled as `ignored`, e.g., crowd boxes in COCO.
|
44 |
-
NOTE: currently unused.
|
45 |
-
gt_labels (Tensor, optional): Label of gt_bboxes, shape (k, ).
|
46 |
-
|
47 |
-
Returns:
|
48 |
-
:obj:`AssignResult`: The assign result.
|
49 |
-
"""
|
50 |
-
num_points = points.shape[0]
|
51 |
-
num_gts = gt_bboxes.shape[0]
|
52 |
-
|
53 |
-
if num_gts == 0 or num_points == 0:
|
54 |
-
# If no truth assign everything to the background
|
55 |
-
assigned_gt_inds = points.new_full((num_points, ),
|
56 |
-
0,
|
57 |
-
dtype=torch.long)
|
58 |
-
if gt_labels is None:
|
59 |
-
assigned_labels = None
|
60 |
-
else:
|
61 |
-
assigned_labels = points.new_full((num_points, ),
|
62 |
-
-1,
|
63 |
-
dtype=torch.long)
|
64 |
-
return AssignResult(
|
65 |
-
num_gts, assigned_gt_inds, None, labels=assigned_labels)
|
66 |
-
|
67 |
-
points_xy = points[:, :2]
|
68 |
-
points_stride = points[:, 2]
|
69 |
-
points_lvl = torch.log2(
|
70 |
-
points_stride).int() # [3...,4...,5...,6...,7...]
|
71 |
-
lvl_min, lvl_max = points_lvl.min(), points_lvl.max()
|
72 |
-
|
73 |
-
# assign gt box
|
74 |
-
gt_bboxes_xy = (gt_bboxes[:, :2] + gt_bboxes[:, 2:]) / 2
|
75 |
-
gt_bboxes_wh = (gt_bboxes[:, 2:] - gt_bboxes[:, :2]).clamp(min=1e-6)
|
76 |
-
scale = self.scale
|
77 |
-
gt_bboxes_lvl = ((torch.log2(gt_bboxes_wh[:, 0] / scale) +
|
78 |
-
torch.log2(gt_bboxes_wh[:, 1] / scale)) / 2).int()
|
79 |
-
gt_bboxes_lvl = torch.clamp(gt_bboxes_lvl, min=lvl_min, max=lvl_max)
|
80 |
-
|
81 |
-
# stores the assigned gt index of each point
|
82 |
-
assigned_gt_inds = points.new_zeros((num_points, ), dtype=torch.long)
|
83 |
-
# stores the assigned gt dist (to this point) of each point
|
84 |
-
assigned_gt_dist = points.new_full((num_points, ), float('inf'))
|
85 |
-
points_range = torch.arange(points.shape[0])
|
86 |
-
|
87 |
-
for idx in range(num_gts):
|
88 |
-
gt_lvl = gt_bboxes_lvl[idx]
|
89 |
-
# get the index of points in this level
|
90 |
-
lvl_idx = gt_lvl == points_lvl
|
91 |
-
points_index = points_range[lvl_idx]
|
92 |
-
# get the points in this level
|
93 |
-
lvl_points = points_xy[lvl_idx, :]
|
94 |
-
# get the center point of gt
|
95 |
-
gt_point = gt_bboxes_xy[[idx], :]
|
96 |
-
# get width and height of gt
|
97 |
-
gt_wh = gt_bboxes_wh[[idx], :]
|
98 |
-
# compute the distance between gt center and
|
99 |
-
# all points in this level
|
100 |
-
points_gt_dist = ((lvl_points - gt_point) / gt_wh).norm(dim=1)
|
101 |
-
# find the nearest k points to gt center in this level
|
102 |
-
min_dist, min_dist_index = torch.topk(
|
103 |
-
points_gt_dist, self.pos_num, largest=False)
|
104 |
-
# the index of nearest k points to gt center in this level
|
105 |
-
min_dist_points_index = points_index[min_dist_index]
|
106 |
-
# The less_than_recorded_index stores the index
|
107 |
-
# of min_dist that is less then the assigned_gt_dist. Where
|
108 |
-
# assigned_gt_dist stores the dist from previous assigned gt
|
109 |
-
# (if exist) to each point.
|
110 |
-
less_than_recorded_index = min_dist < assigned_gt_dist[
|
111 |
-
min_dist_points_index]
|
112 |
-
# The min_dist_points_index stores the index of points satisfy:
|
113 |
-
# (1) it is k nearest to current gt center in this level.
|
114 |
-
# (2) it is closer to current gt center than other gt center.
|
115 |
-
min_dist_points_index = min_dist_points_index[
|
116 |
-
less_than_recorded_index]
|
117 |
-
# assign the result
|
118 |
-
assigned_gt_inds[min_dist_points_index] = idx + 1
|
119 |
-
assigned_gt_dist[min_dist_points_index] = min_dist[
|
120 |
-
less_than_recorded_index]
|
121 |
-
|
122 |
-
if gt_labels is not None:
|
123 |
-
assigned_labels = assigned_gt_inds.new_full((num_points, ), -1)
|
124 |
-
pos_inds = torch.nonzero(
|
125 |
-
assigned_gt_inds > 0, as_tuple=False).squeeze()
|
126 |
-
if pos_inds.numel() > 0:
|
127 |
-
assigned_labels[pos_inds] = gt_labels[
|
128 |
-
assigned_gt_inds[pos_inds] - 1]
|
129 |
-
else:
|
130 |
-
assigned_labels = None
|
131 |
-
|
132 |
-
return AssignResult(
|
133 |
-
num_gts, assigned_gt_inds, None, labels=assigned_labels)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/WALT/mmdet/models/utils/gaussian_target.py
DELETED
@@ -1,185 +0,0 @@
|
|
1 |
-
from math import sqrt
|
2 |
-
|
3 |
-
import torch
|
4 |
-
|
5 |
-
|
6 |
-
def gaussian2D(radius, sigma=1, dtype=torch.float32, device='cpu'):
|
7 |
-
"""Generate 2D gaussian kernel.
|
8 |
-
|
9 |
-
Args:
|
10 |
-
radius (int): Radius of gaussian kernel.
|
11 |
-
sigma (int): Sigma of gaussian function. Default: 1.
|
12 |
-
dtype (torch.dtype): Dtype of gaussian tensor. Default: torch.float32.
|
13 |
-
device (str): Device of gaussian tensor. Default: 'cpu'.
|
14 |
-
|
15 |
-
Returns:
|
16 |
-
h (Tensor): Gaussian kernel with a
|
17 |
-
``(2 * radius + 1) * (2 * radius + 1)`` shape.
|
18 |
-
"""
|
19 |
-
x = torch.arange(
|
20 |
-
-radius, radius + 1, dtype=dtype, device=device).view(1, -1)
|
21 |
-
y = torch.arange(
|
22 |
-
-radius, radius + 1, dtype=dtype, device=device).view(-1, 1)
|
23 |
-
|
24 |
-
h = (-(x * x + y * y) / (2 * sigma * sigma)).exp()
|
25 |
-
|
26 |
-
h[h < torch.finfo(h.dtype).eps * h.max()] = 0
|
27 |
-
return h
|
28 |
-
|
29 |
-
|
30 |
-
def gen_gaussian_target(heatmap, center, radius, k=1):
|
31 |
-
"""Generate 2D gaussian heatmap.
|
32 |
-
|
33 |
-
Args:
|
34 |
-
heatmap (Tensor): Input heatmap, the gaussian kernel will cover on
|
35 |
-
it and maintain the max value.
|
36 |
-
center (list[int]): Coord of gaussian kernel's center.
|
37 |
-
radius (int): Radius of gaussian kernel.
|
38 |
-
k (int): Coefficient of gaussian kernel. Default: 1.
|
39 |
-
|
40 |
-
Returns:
|
41 |
-
out_heatmap (Tensor): Updated heatmap covered by gaussian kernel.
|
42 |
-
"""
|
43 |
-
diameter = 2 * radius + 1
|
44 |
-
gaussian_kernel = gaussian2D(
|
45 |
-
radius, sigma=diameter / 6, dtype=heatmap.dtype, device=heatmap.device)
|
46 |
-
|
47 |
-
x, y = center
|
48 |
-
|
49 |
-
height, width = heatmap.shape[:2]
|
50 |
-
|
51 |
-
left, right = min(x, radius), min(width - x, radius + 1)
|
52 |
-
top, bottom = min(y, radius), min(height - y, radius + 1)
|
53 |
-
|
54 |
-
masked_heatmap = heatmap[y - top:y + bottom, x - left:x + right]
|
55 |
-
masked_gaussian = gaussian_kernel[radius - top:radius + bottom,
|
56 |
-
radius - left:radius + right]
|
57 |
-
out_heatmap = heatmap
|
58 |
-
torch.max(
|
59 |
-
masked_heatmap,
|
60 |
-
masked_gaussian * k,
|
61 |
-
out=out_heatmap[y - top:y + bottom, x - left:x + right])
|
62 |
-
|
63 |
-
return out_heatmap
|
64 |
-
|
65 |
-
|
66 |
-
def gaussian_radius(det_size, min_overlap):
|
67 |
-
r"""Generate 2D gaussian radius.
|
68 |
-
|
69 |
-
This function is modified from the `official github repo
|
70 |
-
<https://github.com/princeton-vl/CornerNet-Lite/blob/master/core/sample/
|
71 |
-
utils.py#L65>`_.
|
72 |
-
|
73 |
-
Given ``min_overlap``, radius could computed by a quadratic equation
|
74 |
-
according to Vieta's formulas.
|
75 |
-
|
76 |
-
There are 3 cases for computing gaussian radius, details are following:
|
77 |
-
|
78 |
-
- Explanation of figure: ``lt`` and ``br`` indicates the left-top and
|
79 |
-
bottom-right corner of ground truth box. ``x`` indicates the
|
80 |
-
generated corner at the limited position when ``radius=r``.
|
81 |
-
|
82 |
-
- Case1: one corner is inside the gt box and the other is outside.
|
83 |
-
|
84 |
-
.. code:: text
|
85 |
-
|
86 |
-
|< width >|
|
87 |
-
|
88 |
-
lt-+----------+ -
|
89 |
-
| | | ^
|
90 |
-
+--x----------+--+
|
91 |
-
| | | |
|
92 |
-
| | | | height
|
93 |
-
| | overlap | |
|
94 |
-
| | | |
|
95 |
-
| | | | v
|
96 |
-
+--+---------br--+ -
|
97 |
-
| | |
|
98 |
-
+----------+--x
|
99 |
-
|
100 |
-
To ensure IoU of generated box and gt box is larger than ``min_overlap``:
|
101 |
-
|
102 |
-
.. math::
|
103 |
-
\cfrac{(w-r)*(h-r)}{w*h+(w+h)r-r^2} \ge {iou} \quad\Rightarrow\quad
|
104 |
-
{r^2-(w+h)r+\cfrac{1-iou}{1+iou}*w*h} \ge 0 \\
|
105 |
-
{a} = 1,\quad{b} = {-(w+h)},\quad{c} = {\cfrac{1-iou}{1+iou}*w*h}
|
106 |
-
{r} \le \cfrac{-b-\sqrt{b^2-4*a*c}}{2*a}
|
107 |
-
|
108 |
-
- Case2: both two corners are inside the gt box.
|
109 |
-
|
110 |
-
.. code:: text
|
111 |
-
|
112 |
-
|< width >|
|
113 |
-
|
114 |
-
lt-+----------+ -
|
115 |
-
| | | ^
|
116 |
-
+--x-------+ |
|
117 |
-
| | | |
|
118 |
-
| |overlap| | height
|
119 |
-
| | | |
|
120 |
-
| +-------x--+
|
121 |
-
| | | v
|
122 |
-
+----------+-br -
|
123 |
-
|
124 |
-
To ensure IoU of generated box and gt box is larger than ``min_overlap``:
|
125 |
-
|
126 |
-
.. math::
|
127 |
-
\cfrac{(w-2*r)*(h-2*r)}{w*h} \ge {iou} \quad\Rightarrow\quad
|
128 |
-
{4r^2-2(w+h)r+(1-iou)*w*h} \ge 0 \\
|
129 |
-
{a} = 4,\quad {b} = {-2(w+h)},\quad {c} = {(1-iou)*w*h}
|
130 |
-
{r} \le \cfrac{-b-\sqrt{b^2-4*a*c}}{2*a}
|
131 |
-
|
132 |
-
- Case3: both two corners are outside the gt box.
|
133 |
-
|
134 |
-
.. code:: text
|
135 |
-
|
136 |
-
|< width >|
|
137 |
-
|
138 |
-
x--+----------------+
|
139 |
-
| | |
|
140 |
-
+-lt-------------+ | -
|
141 |
-
| | | | ^
|
142 |
-
| | | |
|
143 |
-
| | overlap | | height
|
144 |
-
| | | |
|
145 |
-
| | | | v
|
146 |
-
| +------------br--+ -
|
147 |
-
| | |
|
148 |
-
+----------------+--x
|
149 |
-
|
150 |
-
To ensure IoU of generated box and gt box is larger than ``min_overlap``:
|
151 |
-
|
152 |
-
.. math::
|
153 |
-
\cfrac{w*h}{(w+2*r)*(h+2*r)} \ge {iou} \quad\Rightarrow\quad
|
154 |
-
{4*iou*r^2+2*iou*(w+h)r+(iou-1)*w*h} \le 0 \\
|
155 |
-
{a} = {4*iou},\quad {b} = {2*iou*(w+h)},\quad {c} = {(iou-1)*w*h} \\
|
156 |
-
{r} \le \cfrac{-b+\sqrt{b^2-4*a*c}}{2*a}
|
157 |
-
|
158 |
-
Args:
|
159 |
-
det_size (list[int]): Shape of object.
|
160 |
-
min_overlap (float): Min IoU with ground truth for boxes generated by
|
161 |
-
keypoints inside the gaussian kernel.
|
162 |
-
|
163 |
-
Returns:
|
164 |
-
radius (int): Radius of gaussian kernel.
|
165 |
-
"""
|
166 |
-
height, width = det_size
|
167 |
-
|
168 |
-
a1 = 1
|
169 |
-
b1 = (height + width)
|
170 |
-
c1 = width * height * (1 - min_overlap) / (1 + min_overlap)
|
171 |
-
sq1 = sqrt(b1**2 - 4 * a1 * c1)
|
172 |
-
r1 = (b1 - sq1) / (2 * a1)
|
173 |
-
|
174 |
-
a2 = 4
|
175 |
-
b2 = 2 * (height + width)
|
176 |
-
c2 = (1 - min_overlap) * width * height
|
177 |
-
sq2 = sqrt(b2**2 - 4 * a2 * c2)
|
178 |
-
r2 = (b2 - sq2) / (2 * a2)
|
179 |
-
|
180 |
-
a3 = 4 * min_overlap
|
181 |
-
b3 = -2 * min_overlap * (height + width)
|
182 |
-
c3 = (min_overlap - 1) * width * height
|
183 |
-
sq3 = sqrt(b3**2 - 4 * a3 * c3)
|
184 |
-
r3 = (b3 + sq3) / (2 * a3)
|
185 |
-
return min(r1, r2, r3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Carlos056/Cara/style.css
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
body {
|
2 |
-
padding: 2rem;
|
3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
4 |
-
}
|
5 |
-
|
6 |
-
h1 {
|
7 |
-
font-size: 16px;
|
8 |
-
margin-top: 0;
|
9 |
-
}
|
10 |
-
|
11 |
-
p {
|
12 |
-
color: rgb(107, 114, 128);
|
13 |
-
font-size: 15px;
|
14 |
-
margin-bottom: 10px;
|
15 |
-
margin-top: 5px;
|
16 |
-
}
|
17 |
-
|
18 |
-
.card {
|
19 |
-
max-width: 620px;
|
20 |
-
margin: 0 auto;
|
21 |
-
padding: 16px;
|
22 |
-
border: 1px solid lightgray;
|
23 |
-
border-radius: 16px;
|
24 |
-
}
|
25 |
-
|
26 |
-
.card p:last-child {
|
27 |
-
margin-bottom: 0;
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CyStorm/instruct-pix2pix/edit_app.py
DELETED
@@ -1,192 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import math
|
4 |
-
import random
|
5 |
-
|
6 |
-
import gradio as gr
|
7 |
-
import torch
|
8 |
-
from PIL import Image, ImageOps
|
9 |
-
from diffusers import StableDiffusionInstructPix2PixPipeline
|
10 |
-
|
11 |
-
|
12 |
-
help_text = """
|
13 |
-
If you're not getting what you want, there may be a few reasons:
|
14 |
-
1. Is the image not changing enough? Your Image CFG weight may be too high. This value dictates how similar the output should be to the input. It's possible your edit requires larger changes from the original image, and your Image CFG weight isn't allowing that. Alternatively, your Text CFG weight may be too low. This value dictates how much to listen to the text instruction. The default Image CFG of 1.5 and Text CFG of 7.5 are a good starting point, but aren't necessarily optimal for each edit. Try:
|
15 |
-
* Decreasing the Image CFG weight, or
|
16 |
-
* Increasing the Text CFG weight, or
|
17 |
-
2. Conversely, is the image changing too much, such that the details in the original image aren't preserved? Try:
|
18 |
-
* Increasing the Image CFG weight, or
|
19 |
-
* Decreasing the Text CFG weight
|
20 |
-
3. Try generating results with different random seeds by setting "Randomize Seed" and running generation multiple times. You can also try setting "Randomize CFG" to sample new Text CFG and Image CFG values each time.
|
21 |
-
4. Rephrasing the instruction sometimes improves results (e.g., "turn him into a dog" vs. "make him a dog" vs. "as a dog").
|
22 |
-
5. Increasing the number of steps sometimes improves results.
|
23 |
-
6. Do faces look weird? The Stable Diffusion autoencoder has a hard time with faces that are small in the image. Try:
|
24 |
-
* Cropping the image so the face takes up a larger portion of the frame.
|
25 |
-
"""
|
26 |
-
|
27 |
-
|
28 |
-
example_instructions = [
|
29 |
-
"Make it a picasso painting",
|
30 |
-
"as if it were by modigliani",
|
31 |
-
"convert to a bronze statue",
|
32 |
-
"Turn it into an anime.",
|
33 |
-
"have it look like a graphic novel",
|
34 |
-
"make him gain weight",
|
35 |
-
"what would he look like bald?",
|
36 |
-
"Have him smile",
|
37 |
-
"Put him in a cocktail party.",
|
38 |
-
"move him at the beach.",
|
39 |
-
"add dramatic lighting",
|
40 |
-
"Convert to black and white",
|
41 |
-
"What if it were snowing?",
|
42 |
-
"Give him a leather jacket",
|
43 |
-
"Turn him into a cyborg!",
|
44 |
-
"make him wear a beanie",
|
45 |
-
]
|
46 |
-
|
47 |
-
model_id = "timbrooks/instruct-pix2pix"
|
48 |
-
|
49 |
-
def main():
|
50 |
-
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cuda")
|
51 |
-
example_image = Image.open("imgs/example.jpg").convert("RGB")
|
52 |
-
|
53 |
-
def load_example(
|
54 |
-
steps: int,
|
55 |
-
randomize_seed: bool,
|
56 |
-
seed: int,
|
57 |
-
randomize_cfg: bool,
|
58 |
-
text_cfg_scale: float,
|
59 |
-
image_cfg_scale: float,
|
60 |
-
):
|
61 |
-
example_instruction = random.choice(example_instructions)
|
62 |
-
return [example_image, example_instruction] + generate(
|
63 |
-
example_image,
|
64 |
-
example_instruction,
|
65 |
-
steps,
|
66 |
-
randomize_seed,
|
67 |
-
seed,
|
68 |
-
randomize_cfg,
|
69 |
-
text_cfg_scale,
|
70 |
-
image_cfg_scale,
|
71 |
-
)
|
72 |
-
|
73 |
-
def generate(
|
74 |
-
input_image: Image.Image,
|
75 |
-
instruction: str,
|
76 |
-
steps: int,
|
77 |
-
randomize_seed: bool,
|
78 |
-
seed: int,
|
79 |
-
randomize_cfg: bool,
|
80 |
-
text_cfg_scale: float,
|
81 |
-
image_cfg_scale: float,
|
82 |
-
):
|
83 |
-
seed = random.randint(0, 100000) if randomize_seed else seed
|
84 |
-
text_cfg_scale = round(random.uniform(6.0, 9.0), ndigits=2) if randomize_cfg else text_cfg_scale
|
85 |
-
image_cfg_scale = round(random.uniform(1.2, 1.8), ndigits=2) if randomize_cfg else image_cfg_scale
|
86 |
-
|
87 |
-
width, height = input_image.size
|
88 |
-
factor = 512 / max(width, height)
|
89 |
-
factor = math.ceil(min(width, height) * factor / 64) * 64 / min(width, height)
|
90 |
-
width = int((width * factor) // 64) * 64
|
91 |
-
height = int((height * factor) // 64) * 64
|
92 |
-
input_image = ImageOps.fit(input_image, (width, height), method=Image.Resampling.LANCZOS)
|
93 |
-
|
94 |
-
if instruction == "":
|
95 |
-
return [input_image, seed]
|
96 |
-
|
97 |
-
generator = torch.manual_seed(seed)
|
98 |
-
edited_image = pipe(
|
99 |
-
instruction, image=input_image,
|
100 |
-
guidance_scale=text_cfg_scale, image_guidance_scale=image_cfg_scale,
|
101 |
-
num_inference_steps=steps, generator=generator,
|
102 |
-
).images[0]
|
103 |
-
return [seed, text_cfg_scale, image_cfg_scale, edited_image]
|
104 |
-
|
105 |
-
def reset():
|
106 |
-
return [0, "Randomize Seed", 1371, "Fix CFG", 7.5, 1.5, None]
|
107 |
-
|
108 |
-
with gr.Blocks() as demo:
|
109 |
-
gr.HTML("""<h1 style="font-weight: 900; margin-bottom: 7px;">
|
110 |
-
InstructPix2Pix: Learning to Follow Image Editing Instructions
|
111 |
-
</h1>
|
112 |
-
<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings.
|
113 |
-
<br/>
|
114 |
-
<a href="https://huggingface.co/spaces/timbrooks/instruct-pix2pix?duplicate=true">
|
115 |
-
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
116 |
-
<p/>""")
|
117 |
-
with gr.Row():
|
118 |
-
with gr.Column(scale=1, min_width=100):
|
119 |
-
generate_button = gr.Button("Generate")
|
120 |
-
with gr.Column(scale=1, min_width=100):
|
121 |
-
load_button = gr.Button("Load Example")
|
122 |
-
with gr.Column(scale=1, min_width=100):
|
123 |
-
reset_button = gr.Button("Reset")
|
124 |
-
with gr.Column(scale=3):
|
125 |
-
instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
|
126 |
-
|
127 |
-
with gr.Row():
|
128 |
-
input_image = gr.Image(label="Input Image", type="pil", interactive=True)
|
129 |
-
edited_image = gr.Image(label=f"Edited Image", type="pil", interactive=False)
|
130 |
-
input_image.style(height=512, width=512)
|
131 |
-
edited_image.style(height=512, width=512)
|
132 |
-
|
133 |
-
with gr.Row():
|
134 |
-
steps = gr.Number(value=50, precision=0, label="Steps", interactive=True)
|
135 |
-
randomize_seed = gr.Radio(
|
136 |
-
["Fix Seed", "Randomize Seed"],
|
137 |
-
value="Randomize Seed",
|
138 |
-
type="index",
|
139 |
-
show_label=False,
|
140 |
-
interactive=True,
|
141 |
-
)
|
142 |
-
seed = gr.Number(value=1371, precision=0, label="Seed", interactive=True)
|
143 |
-
randomize_cfg = gr.Radio(
|
144 |
-
["Fix CFG", "Randomize CFG"],
|
145 |
-
value="Fix CFG",
|
146 |
-
type="index",
|
147 |
-
show_label=False,
|
148 |
-
interactive=True,
|
149 |
-
)
|
150 |
-
text_cfg_scale = gr.Number(value=7.5, label=f"Text CFG", interactive=True)
|
151 |
-
image_cfg_scale = gr.Number(value=1.5, label=f"Image CFG", interactive=True)
|
152 |
-
|
153 |
-
gr.Markdown(help_text)
|
154 |
-
|
155 |
-
load_button.click(
|
156 |
-
fn=load_example,
|
157 |
-
inputs=[
|
158 |
-
steps,
|
159 |
-
randomize_seed,
|
160 |
-
seed,
|
161 |
-
randomize_cfg,
|
162 |
-
text_cfg_scale,
|
163 |
-
image_cfg_scale,
|
164 |
-
],
|
165 |
-
outputs=[input_image, instruction, seed, text_cfg_scale, image_cfg_scale, edited_image],
|
166 |
-
)
|
167 |
-
generate_button.click(
|
168 |
-
fn=generate,
|
169 |
-
inputs=[
|
170 |
-
input_image,
|
171 |
-
instruction,
|
172 |
-
steps,
|
173 |
-
randomize_seed,
|
174 |
-
seed,
|
175 |
-
randomize_cfg,
|
176 |
-
text_cfg_scale,
|
177 |
-
image_cfg_scale,
|
178 |
-
],
|
179 |
-
outputs=[seed, text_cfg_scale, image_cfg_scale, edited_image],
|
180 |
-
)
|
181 |
-
reset_button.click(
|
182 |
-
fn=reset,
|
183 |
-
inputs=[],
|
184 |
-
outputs=[steps, randomize_seed, seed, randomize_cfg, text_cfg_scale, image_cfg_scale, edited_image],
|
185 |
-
)
|
186 |
-
|
187 |
-
demo.queue(concurrency_count=1)
|
188 |
-
demo.launch(share=False)
|
189 |
-
|
190 |
-
|
191 |
-
if __name__ == "__main__":
|
192 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CyberPeace-Institute/Cybersecurity-Knowledge-Graph-Extraction/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Cybersecurity Knowledge Graph Extraction
|
3 |
-
emoji: 📈
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: red
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.27.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|