Commit
·
51bffda
1
Parent(s):
25bfda3
Update parquet files (step 21 of 249)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Be2works Full Version How to Repair Laptop Batteries with Ease.md +0 -122
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Boris FX Optics A Comprehensive Review of Features Benefits and Drawbacks.md +0 -43
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Convert Videos to Any Device with Freemake Video Converter Gold 4.1.9.16 Portable Torrent.md +0 -200
- spaces/1gistliPinn/ChatGPT4/Examples/Bajrangi Bhaijaan 2015 720p DvdRip.md +0 -26
- spaces/1gistliPinn/ChatGPT4/Examples/Biologija Pries Egzamina Knyga Pdf 44.md +0 -32
- spaces/1gistliPinn/ChatGPT4/Examples/Bongiovi Acoustics DPS Audio Enhancer 2.2.0.15 Activate HOT.md +0 -9
- spaces/1line/AutoGPT/autogpt/json_utils/json_fix_llm.py +0 -220
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Challenge Your Friends and the World with Quiz Planet APK for Android.md +0 -133
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Design Your Own 3D Worlds with 3DBear App for Mobile Devices.md +0 -95
- spaces/1phancelerku/anime-remove-background/BGMI 2.2 APK and OBB Download Guide New Map Crossbow and More.md +0 -98
- spaces/1phancelerku/anime-remove-background/Data Structure Using C By Udit Agarwal Pdf Free Extra Quality.md +0 -72
- spaces/1phancelerku/anime-remove-background/Download LOST in BLUE and Explore a Mysterious Island on Android.md +0 -170
- spaces/2023Liu2023/bingo/tests/parse.ts +0 -13
- spaces/2ndelement/voicevox/build_util/check_release_build.py +0 -70
- spaces/7hao/bingo/src/lib/utils.ts +0 -138
- spaces/801artistry/RVC801/infer/lib/uvr5_pack/lib_v5/layers_33966KB.py +0 -126
- spaces/801artistry/RVC801/lib/uvr5_pack/lib_v5/nets_33966KB.py +0 -122
- spaces/AI-Hobbyist/Hoyo-RVC/infer_batch_rvc.py +0 -217
- spaces/AIGC-Audio/AudioGPT/NeuralSeq/modules/hifigan/hifigan.py +0 -365
- spaces/AIGC-Audio/AudioGPT/text_to_audio/Make_An_Audio/ldm/models/diffusion/classifier.py +0 -267
- spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/commons/meters.py +0 -42
- spaces/AIZero2HeroBootcamp/ExperimentalChatGPTv1/README.md +0 -13
- spaces/Abhi5ingh/fashionsd/README.md +0 -12
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/ChatBase.py +0 -62
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/unfinished/MikuChat.py +0 -97
- spaces/Adapter/CoAdapter/t2i_adapters/t2i_adapters_for_style.py +0 -63
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/pages/Pages.js +0 -65
- spaces/Akmyradov/TurkmenTTSweSTT/vits/transforms.py +0 -193
- spaces/AlexWang/lama/fetch_data/places_standard_test_val_prepare.sh +0 -5
- spaces/AnTo2209/3D_Zeroshot_Neural_Style_Transfer/src/dataset/base_dataset.py +0 -0
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/paint_by_example/image_encoder.py +0 -67
- spaces/Andy1621/uniformer_image_detection/configs/gcnet/mask_rcnn_r101_fpn_syncbn-backbone_r16_gcb_c3-c5_1x_coco.py +0 -11
- spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/match_costs/__init__.py +0 -7
- spaces/Andy1621/uniformer_image_segmentation/configs/dmnet/dmnet_r50-d8_512x1024_40k_cityscapes.py +0 -4
- spaces/AnishKumbhar/ChatBot/text-generation-webui-main/docs/WSL-installation-guide.md +0 -82
- spaces/AnishKumbhar/ChatBot/text-generation-webui-main/modules/ui_file_saving.py +0 -88
- spaces/Anonymous-123/ImageNet-Editing/editing_diffusion/CLIP/tests/test_consistency.py +0 -25
- spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/cnn/bricks/context_block.py +0 -125
- spaces/AnthonyTruchetPoC/persistent-docker/jupyter/scripts/test_persistent_data.py +0 -42
- spaces/Anustup/NS_AI_LABS/src/__init__.py +0 -0
- spaces/ArtGAN/Video-Diffusion-WebUI/video_diffusion/tuneavideo/util.py +0 -93
- spaces/AsakuraMizu/moe-tts/text/korean.py +0 -210
- spaces/Banbri/zcvzcv/src/lib/triggerDownload.ts +0 -12
- spaces/Bart92/RVC_HF/infer/modules/vc/__init__.py +0 -0
- spaces/Benson/text-generation/Examples/Descarga De Software Ricoh Aficio 2018d.md +0 -75
- spaces/Benson/text-generation/Examples/Descargar Apkmirror Ar Elementos.md +0 -86
- spaces/Big-Web/MMSD/env/Lib/site-packages/boto3/dynamodb/types.py +0 -310
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/urllib3/request.py +0 -170
- spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/py34compat.py +0 -13
- spaces/BlackCub/ChatGPT4/app.py +0 -191
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Be2works Full Version How to Repair Laptop Batteries with Ease.md
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Download GX Developer 8.7 Full Crack</h1>
|
3 |
-
<p>If you are looking for a reliable and powerful software to program and control Mitsubishi PLCs, you might want to try GX Developer. This software is widely used by engineers and technicians who work with Mitsubishi controllers in various industries. In this article, we will show you how to download GX Developer 8.7 full crack, which is the latest version of this software, and how to use it effectively.</p>
|
4 |
-
<h2>download gx developer 8.7 full crack</h2><br /><p><b><b>Download</b> ✪✪✪ <a href="https://byltly.com/2uKzsX">https://byltly.com/2uKzsX</a></b></p><br /><br />
|
5 |
-
<h2>What is GX Developer?</h2>
|
6 |
-
<p>GX Developer is the basic controller programming environment supporting Q Process, Q, L, FX Series and legacy controllers A and AnS Series. It is part of the MELSOFT series of software products developed by Mitsubishi Electric. It allows you to create, edit, debug and transfer programs for Mitsubishi PLCs using various programming languages, such as ladder logic, structured text, function block diagram, sequential function chart and MELSAP-L.</p>
|
7 |
-
<h3>Features and benefits of GX Developer</h3>
|
8 |
-
<p>Some of the features and benefits of GX Developer are:</p>
|
9 |
-
<ul>
|
10 |
-
<li>It supports multiple controllers and communication protocols, such as RS-232C, RS-422/485, Ethernet, USB and CC-Link.</li>
|
11 |
-
<li>It has a user-friendly interface that allows you to easily access various functions and tools.</li>
|
12 |
-
<li>It has a powerful editor that supports syntax highlighting, auto-completion, drag-and-drop, copy-and-paste and undo-redo operations.</li>
|
13 |
-
<li>It has a built-in simulator that allows you to test your program without connecting to a real controller.</li>
|
14 |
-
<li>It has a comprehensive online help system that provides detailed information on each function and command.</li>
|
15 |
-
<li>It has a data logging function that allows you to record and analyze the data from the controller.</li>
|
16 |
-
<li>It has a password protection function that allows you to secure your program from unauthorized access or modification.</li>
|
17 |
-
</ul>
|
18 |
-
<h3>System requirements for GX Developer</h3>
|
19 |
-
<p>The minimum system requirements for GX Developer are:</p>
|
20 |
-
<table>
|
21 |
-
<tr><td>Operating system</td><td>Windows XP/Vista/7/8/10 (32-bit or 64-bit)</td></tr>
|
22 |
-
<tr><td>CPU</td><td>Pentium III 800 MHz or higher</td></tr>
|
23 |
-
<tr><td>Memory</td><td>256 MB or more</td></tr>
|
24 |
-
<tr><td>HDD</td><td>500 MB or more of free space</td></tr>
|
25 |
-
<tr><td>Display</td><td>XGA (1024 x 768) or higher resolution</td></tr>
|
26 |
-
<tr><td>Others</td><td>CD-ROM drive, mouse, keyboard, printer (optional)</td></tr>
|
27 |
-
</table>
|
28 |
-
<h2>How to download GX Developer 8.7 full crack?</h2>
|
29 |
-
<p>To download GX Developer 8.7 full crack, you need to follow these steps:</p>
|
30 |
-
<p>How to download gx developer 8.7 full crack for free<br />
|
31 |
-
Download gx developer 8.7 full crack with serial key<br />
|
32 |
-
Download gx developer 8.7 full crack for windows 10<br />
|
33 |
-
Download gx developer 8.7 full crack for plc programming<br />
|
34 |
-
Download gx developer 8.7 full crack latest version<br />
|
35 |
-
Download gx developer 8.7 full crack torrent link<br />
|
36 |
-
Download gx developer 8.7 full crack from official website<br />
|
37 |
-
Download gx developer 8.7 full crack without virus<br />
|
38 |
-
Download gx developer 8.7 full crack online<br />
|
39 |
-
Download gx developer 8.7 full crack and install guide<br />
|
40 |
-
Download gx developer 8.7 full crack for mitsubishi plc<br />
|
41 |
-
Download gx developer 8.7 full crack with license key<br />
|
42 |
-
Download gx developer 8.7 full crack for mac<br />
|
43 |
-
Download gx developer 8.7 full crack for linux<br />
|
44 |
-
Download gx developer 8.7 full crack for android<br />
|
45 |
-
Download gx developer 8.7 full crack zip file<br />
|
46 |
-
Download gx developer 8.7 full crack rar file<br />
|
47 |
-
Download gx developer 8.7 full crack iso file<br />
|
48 |
-
Download gx developer 8.7 full crack setup file<br />
|
49 |
-
Download gx developer 8.7 full crack exe file<br />
|
50 |
-
Download gx developer 8.7 full crack software<br />
|
51 |
-
Download gx developer 8.7 full crack tool<br />
|
52 |
-
Download gx developer 8.7 full crack patch<br />
|
53 |
-
Download gx developer 8.7 full crack keygen<br />
|
54 |
-
Download gx developer 8.7 full crack activation code<br />
|
55 |
-
Download gx developer 8.7 full crack registration code<br />
|
56 |
-
Download gx developer 8.7 full crack product key<br />
|
57 |
-
Download gx developer 8.7 full crack generator<br />
|
58 |
-
Download gx developer 8.7 full crack hack<br />
|
59 |
-
Download gx developer 8.7 full crack mod<br />
|
60 |
-
Download gx developer 8.7 full crack apk<br />
|
61 |
-
Download gx developer 8.7 full crack review<br />
|
62 |
-
Download gx developer 8.7 full crack tutorial<br />
|
63 |
-
Download gx developer 8.7 full crack video<br />
|
64 |
-
Download gx developer 8.7 full crack youtube<br />
|
65 |
-
Download gx developer 8.7 full crack blog<br />
|
66 |
-
Download gx developer 8.7 full crack forum<br />
|
67 |
-
Download gx developer 8.7 full crack reddit<br />
|
68 |
-
Download gx developer 8.7 full crack quora<br />
|
69 |
-
Download gx developer 8.7 full crack facebook<br />
|
70 |
-
Download gx developer 8.7 full crack twitter<br />
|
71 |
-
Download gx developer 8.7 full crack instagram<br />
|
72 |
-
Download gx developer 8.7 full crack pinterest<br />
|
73 |
-
Download gx developer 8.7 full crack linkedin<br />
|
74 |
-
Download gx developer 8.7 full crack medium<br />
|
75 |
-
Download gx developer 8.7 full crack wordpress<br />
|
76 |
-
Download gx developer 8.7 full crack wixsite<br />
|
77 |
-
Download gx developer 8.7 full crack google drive<br />
|
78 |
-
Download gx developer 8.7 full crack dropbox</p>
|
79 |
-
<h3>Step 1: Visit the official website of Mitsubishi Electric</h3>
|
80 |
-
<p>The first step is to visit the official website of Mitsubishi Electric at <a href="https://www.mitsubishielectric.com/app/fa/download/search.do?mode=manual&kisyu=%2Fmelsoft">https://www.mitsubishielectric.com/app/fa/download/search.do?mode=manual&kisyu=%2Fmelsoft</a>. This is where you can find all the software products related to Mitsubishi controllers.</p>
|
81 |
-
<h3>Step 2: Select the software category and GX Developer product</h3>
|
82 |
-
<p>The next step is to select the software category and GX Developer product from the list. You can use the search box or the filters to narrow down your options. For example, you can type "GX Developer" in the search box or select "MELSOFT" as the large category and "GX series" as the small category. Then, you will see a list of manuals for different versions of GX Developer. You need to select "GX Developer Version 8 Operating Manual" as your desired product.</p>
|
83 |
-
<h3>Step 3: Download the installation file and the crack file</h3>
|
84 |
-
<p>The third step is to download the installation file and the crack file for GX Developer 8.7 full crack. You can click on the "Download" button next to each file name to start downloading them. The installation file is named "GXDEV807E.zip" and has a size of about 1 GB. The crack file is named "GXDEV807E_Crack.zip" and has a size of about 10 MB.</p>
|
85 |
-
<h3>Step 4: Install GX Developer and apply the crack</h3>
|
86 |
-
<p>The final step is to install GX Developer and apply the crack to activate it. You need to follow these sub-steps:</p>
|
87 |
-
<ol>
|
88 |
-
<li>Extract both zip files using a tool like WinRAR or 7-Zip.</li>
|
89 |
-
<li>Run the setup.exe file from the extracted folder of "GXDEV807E.zip". Follow the instructions on the screen to complete the installation process.</li>
|
90 |
-
<li>Copy all the files from the extracted folder of "GXDEV807E_Crack.zip" and paste them into the installation folder of GX Developer. The default installation folder is "C:\Program Files (x86)\MELSOFT\GX Works2". Overwrite any existing files if prompted.</li>
|
91 |
-
<li>Run GX Developer from your desktop shortcut or start menu. You should see a message saying "License registration completed" on the bottom right corner of the screen.</li>
|
92 |
-
<li>Congratulations! You have successfully installed GX Developer 8.7 full crack on your computer.</li>
|
93 |
-
</ol>
|
94 |
-
<h2>How to use GX Developer 8.7?</h2>
|
95 |
-
<p>To use GX Developer 8.7 effectively, you need to follow these steps:</p>
|
96 |
-
<h3>Create a new project or open an existing one</h3>
|
97 |
-
<p>The first step is to create a new project or open an existing one in GX Developer. You can do this by clicking on the "File" menu and selecting "New Project" or "Open Project". A project is a collection of files that contain your program, settings, comments and other information related to your controller. You need to specify a project name, a controller type, a communication method and other options when creating a new project.</p>
|
98 |
-
<h3>Configure the controller settings and communication parameters</h3>
|
99 |
-
<p>The next step is to configure the controller settings and communication parameters in GX Developer. You can do this by clicking on the "Project" menu and selecting "Parameter". A parameter is a value that determines how your controller operates or communicates with other devices. You need to set up parameters such as input/output assignments, device comments, memory allocation, network configuration, password protection and others according to your needs.</p>
|
100 |
-
<h3>Write, edit and debug your program using various tools and languages</h3>
|
101 |
-
<p>The third step is to write, edit and debug your program using various tools and languages in GX Developer. You can do this by clicking on the "Program" menu and selecting "Edit". An edit window will open where you can write your program using different programming languages such as ladder logic (LD), structured text (ST), function block diagram (FBD), sequential function chart (SFC) or MELSAP-L (ML). You can also use various tools such as syntax check, cross reference, comment input/output, device monitor/editor and others to help you write your program more efficiently.</p>
|
102 |
-
<h3>Transfer your program to your controller and monitor its operation</h3>
|
103 |
-
<p>The final step is to transfer your program to your controller and monitor its operation in GX Developer. You can do this by clicking on the "Online" menu and selecting "Transfer To PLC" or "Transfer From PLC". A transfer window will open where you can select which files you want to transfer between your computer and your controller. You can also click on monitor window or a test window will open where you can monitor or test the operation of your controller and your program. You can use various functions such as start/stop, force on/off, data change, data trace and others to control or observe your controller and your program.</p>
|
104 |
-
<h2>Conclusion</h2>
|
105 |
-
<p>In conclusion, GX Developer is a powerful and reliable software that allows you to program and control Mitsubishi PLCs. It has many features and benefits that make it easy and convenient to use. It supports various programming languages and communication protocols. It also has a built-in simulator and a data logging function. To download GX Developer 8.7 full crack, you need to visit the official website of Mitsubishi Electric, select the software category and GX Developer product, download the installation file and the crack file, install GX Developer and apply the crack. To use GX Developer 8.7 effectively, you need to create or open a project, configure the controller settings and communication parameters, write, edit and debug your program using various tools and languages, transfer your program to your controller and monitor its operation.</p>
|
106 |
-
<h2>FAQs</h2>
|
107 |
-
<p>Here are some frequently asked questions about GX Developer 8.7 full crack:</p>
|
108 |
-
<ol>
|
109 |
-
<li>Q: Is it legal to download GX Developer 8.7 full crack?</li>
|
110 |
-
<li>A: No, it is not legal to download GX Developer 8.7 full crack. It is a violation of the software license agreement and intellectual property rights of Mitsubishi Electric. You should only download GX Developer from the official website of Mitsubishi Electric and pay for the license fee.</li>
|
111 |
-
<li>Q: Is it safe to download GX Developer 8.7 full crack?</li>
|
112 |
-
<li>A: No, it is not safe to download GX Developer 8.7 full crack. It may contain viruses, malware or spyware that can harm your computer or steal your personal information. You should only download GX Developer from the official website of Mitsubishi Electric and scan it with a reliable antivirus software.</li>
|
113 |
-
<li>Q: Is it compatible with Windows 10?</li>
|
114 |
-
<li>A: Yes, it is compatible with Windows 10. However, you may need to run it in compatibility mode or as an administrator if you encounter any problems.</li>
|
115 |
-
<li>Q: How can I update GX Developer 8.7?</li>
|
116 |
-
<li>A: You can update GX Developer 8.7 by visiting the official website of Mitsubishi Electric and downloading the latest version of GX Developer or the update patch file. You should uninstall the previous version of GX Developer before installing the new one.</li>
|
117 |
-
<li>Q: How can I get technical support for GX Developer 8.7?</li>
|
118 |
-
<li>A: You can get technical support for GX Developer 8.7 by contacting Mitsubishi Electric or its authorized distributors or service providers in your region. You can also refer to the online help system or the user manual of GX Developer for more information.</li>
|
119 |
-
</ol>
|
120 |
-
</p> 0a6ba089eb<br />
|
121 |
-
<br />
|
122 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Boris FX Optics A Comprehensive Review of Features Benefits and Drawbacks.md
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Boris FX Optics Review: A Powerful Plugin for Photo Editing</h1>
|
3 |
-
<p>Boris FX Optics is a plugin that allows you to apply cinematic effects and filters to your photos in Photoshop, Lightroom, or as a standalone application. It offers over 160 filters and thousands of presets that can transform your images into stunning artworks.</p>
|
4 |
-
<p>In this Boris FX Optics review, we will take a look at some of the features and benefits of this plugin, as well as some of the drawbacks and limitations. We will also show you some examples of how you can use Boris FX Optics to enhance your photos.</p>
|
5 |
-
<h2>boris fx optics review</h2><br /><p><b><b>Download File</b> ✦ <a href="https://byltly.com/2uKwBd">https://byltly.com/2uKwBd</a></b></p><br /><br />
|
6 |
-
<h2>Features and Benefits of Boris FX Optics</h2>
|
7 |
-
<p>Boris FX Optics is a plugin that is designed to give you creative control over your photos. It lets you apply various effects and filters that can change the mood, tone, color, and style of your images. Some of the features and benefits of Boris FX Optics are:</p>
|
8 |
-
<ul>
|
9 |
-
<li>It has over 160 filters and thousands of presets that cover a wide range of categories, such as film stocks, lens flares, color grading, lighting effects, textures, gradients, distortions, and more.</li>
|
10 |
-
<li>It has a user-friendly interface that allows you to preview and adjust the effects in real-time. You can also use masks, layers, blend modes, and opacity controls to fine-tune the results.</li>
|
11 |
-
<li>It has a powerful engine that supports high-resolution images up to 8K and delivers fast performance. You can also use it as a standalone application or as a plugin for Photoshop or Lightroom.</li>
|
12 |
-
<li>It has a comprehensive online library that provides tutorials, tips, and inspiration for using Boris FX Optics. You can also access the Boris FX community forum and support team for any questions or issues.</li>
|
13 |
-
</ul>
|
14 |
-
<h2>Drawbacks and Limitations of Boris FX Optics</h2>
|
15 |
-
<p>Boris FX Optics is a plugin that is not without its flaws and limitations. Some of the drawbacks and limitations of Boris FX Optics are:</p>
|
16 |
-
<ul>
|
17 |
-
<li>It is a premium plugin that costs $149 for a perpetual license or $99 for an annual subscription. It also requires an activation code and an internet connection to run.</li>
|
18 |
-
<li>It is compatible with Windows 10 and Mac OS 10.13 or higher, but not with Linux or older versions of Windows or Mac OS. It also requires Photoshop CC 2015.5 or higher or Lightroom Classic 6 or higher to work as a plugin.</li>
|
19 |
-
<li>It has some filters and presets that are similar or redundant to each other. It also has some effects that are outdated or unrealistic for modern photography.</li>
|
20 |
-
<li>It has some bugs and glitches that might affect the performance or quality of the plugin. For example, some users have reported issues with the installation process, the interface layout, the preview window, and the rendering speed.</li>
|
21 |
-
</ul>
|
22 |
-
<h2>Examples of Using Boris FX Optics</h2>
|
23 |
-
<p>Boris FX Optics is a plugin that can help you create stunning photos with cinematic effects and filters. Here are some examples of how you can use Boris FX Optics to enhance your photos:</p>
|
24 |
-
<h3>Example 1: Adding Film Grain and Color Grading</h3>
|
25 |
-
<p>In this example, we will use Boris FX Optics to add some film grain and color grading to a portrait photo. Here are the steps:</p>
|
26 |
-
<ol>
|
27 |
-
<li>Open the photo in Photoshop and launch Boris FX Optics from the Filter menu.</li>
|
28 |
-
<li>Select the Film Stocks filter from the Film Lab category.</li>
|
29 |
-
<li>Choose a preset that suits your style. For this example, we will use Kodak Portra 400 VC.</li>
|
30 |
-
<li>Adjust the amount of film grain using the Grain slider.</li>
|
31 |
-
<li>Adjust the color grading using the Color Correction sliders.</li>
|
32 |
-
<li>Click OK to apply the effect and return to Photoshop.</li>
|
33 |
-
</ol>
|
34 |
-
<p>Here is the before and after comparison:</p>
|
35 |
-
<p></p>
|
36 |
-
|
37 |
-
<img src="https://i.imgur.com/9yZ0m4y.jpg" alt="Before" width="300" height="400">
|
38 |
-
<img src="https://i.imgur.com/7XzLl0g.jpg" alt="After" width="300" height="400">
|
39 |
-
|
40 |
-
<h3>Example 2: Adding Lens Flare and Vignette</h3>
|
41 |
-
<p>In this example, we will use Boris FX Optics to add some lens flare and vignette to a landscape photo. Here are the steps:</</p> ddb901b051<br />
|
42 |
-
<br />
|
43 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Convert Videos to Any Device with Freemake Video Converter Gold 4.1.9.16 Portable Torrent.md
DELETED
@@ -1,200 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<table>
|
3 |
-
<tr>
|
4 |
-
<th>Outline</th>
|
5 |
-
</tr>
|
6 |
-
<tr>
|
7 |
-
<td>
|
8 |
-
<h1>Freemake Video Converter Gold 4.1.9.16 Portable Torrent: A Powerful and Versatile Video Converter</h1>
|
9 |
-
<ul>
|
10 |
-
<li><h2>Introduction</h2>
|
11 |
-
<ul>
|
12 |
-
<li>What is Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</li>
|
13 |
-
<li>What are the main features and benefits of using it?</li>
|
14 |
-
</ul>
|
15 |
-
</li>
|
16 |
-
<li><h2>How to download and install Freemake Video Converter Gold 4.1.9.16 Portable Torrent</h2>
|
17 |
-
<ul>
|
18 |
-
<li>Where to find the torrent file and how to use a torrent client</li>
|
19 |
-
<li>How to run the portable version without installation</li>
|
20 |
-
</ul>
|
21 |
-
</li>
|
22 |
-
<li><h2>How to use Freemake Video Converter Gold 4.1.9.16 Portable Torrent</h2>
|
23 |
-
<ul>
|
24 |
-
<li><h3>How to add video files and choose output formats and settings</h3></li>
|
25 |
-
<li><h3>How to convert videos to various devices and platforms</h3></li>
|
26 |
-
<li><h3>How to rip and burn DVDs and Blu-rays</h3></li>
|
27 |
-
<li><h3>How to edit videos and add subtitles</h3></li>
|
28 |
-
<li><h3>How to upload videos online</h3></li>
|
29 |
-
</ul>
|
30 |
-
</li>
|
31 |
-
<li><h2>Conclusion</h2>
|
32 |
-
<ul>
|
33 |
-
<li>A summary of the main points and advantages of Freemake Video Converter Gold 4.1.9.16 Portable Torrent</li>
|
34 |
-
<li>A call to action for the readers to try it out</li>
|
35 |
-
</ul>
|
36 |
-
</li>
|
37 |
-
<li><h2>FAQs</h2>
|
38 |
-
<ul>
|
39 |
-
<li>What are the system requirements for Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</li>
|
40 |
-
<li>What is the difference between the free version and the gold pack?</li>
|
41 |
-
<li>How to activate the gold pack features?</li>
|
42 |
-
<li>How to update Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</li>
|
43 |
-
<li>How to contact the support team or report a problem?</li>
|
44 |
-
</ul>
|
45 |
-
</li>
|
46 |
-
</ul>
|
47 |
-
</td>
|
48 |
-
</tr>
|
49 |
-
</table>
|
50 |
-
And here is the article based on the outline: <table>
|
51 |
-
<tr>
|
52 |
-
<th>Article</th>
|
53 |
-
</tr>
|
54 |
-
<tr>
|
55 |
-
<td>
|
56 |
-
<h1 style="text-align: center;">Freemake Video Converter Gold 4.1.9.16 Portable Torrent: A Powerful and Versatile Video Converter</h1>
|
57 |
-
<p>If you are looking for a reliable and easy-to-use video converter that can handle any video format, device, or platform, you might want to check out Freemake Video Converter Gold 4.1.9.16 Portable Torrent.</p>
|
58 |
-
<p>This is a portable version of one of the most popular video converters on the market, which means you can run it from any USB drive or external hard drive without installing it on your computer.</p>
|
59 |
-
<h2>Freemake Video Converter Gold 4.1.9.16 Portable Torrent</h2><br /><p><b><b>Download File</b> ✑ ✑ ✑ <a href="https://byltly.com/2uKw0f">https://byltly.com/2uKw0f</a></b></p><br /><br />
|
60 |
-
<p>In this article, we will show you what Freemake Video Converter Gold 4.1.9.16 Portable Torrent can do for you, how to download and install it, and how to use it for various video conversion tasks.</p>
|
61 |
-
<h2 style="text-align: center;">What is Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</h2>
|
62 |
-
<p>Freemake Video Converter Gold 4.1.9.16 Portable Torrent is a software that allows you to convert video files from one format to another, as well as rip and burn DVDs and Blu-rays, edit videos, add subtitles, and upload videos online.</p>
|
63 |
-
<p>It supports over 200 input formats, including AVI, MP4, MKV, WMV, MPG, 3GP, SWF, FLV, MOV, DV, RM, QT, TS, MTS, etc.</p>
|
64 |
-
<p>Freemake Video Converter Gold Portable Download<br />
|
65 |
-
How to use Freemake Video Converter Gold 4.1.9.16<br />
|
66 |
-
Freemake Video Converter Gold Crack Torrent<br />
|
67 |
-
Freemake Video Converter Gold 4.1.9.16 Features<br />
|
68 |
-
Freemake Video Converter Gold Review<br />
|
69 |
-
Freemake Video Converter Gold License Key<br />
|
70 |
-
Freemake Video Converter Gold vs Pro<br />
|
71 |
-
Freemake Video Converter Gold Free Trial<br />
|
72 |
-
Freemake Video Converter Gold System Requirements<br />
|
73 |
-
Freemake Video Converter Gold Activation Code<br />
|
74 |
-
Freemake Video Converter Gold Full Version<br />
|
75 |
-
Freemake Video Converter Gold 4.1.9.16 Patch<br />
|
76 |
-
Freemake Video Converter Gold Tutorial<br />
|
77 |
-
Freemake Video Converter Gold Alternatives<br />
|
78 |
-
Freemake Video Converter Gold Discount Coupon<br />
|
79 |
-
Freemake Video Converter Gold Support<br />
|
80 |
-
Freemake Video Converter Gold 4.1.9.16 Serial Key<br />
|
81 |
-
Freemake Video Converter Gold User Guide<br />
|
82 |
-
Freemake Video Converter Gold Benefits<br />
|
83 |
-
Freemake Video Converter Gold Problems<br />
|
84 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Zip<br />
|
85 |
-
Freemake Video Converter Gold Online<br />
|
86 |
-
Freemake Video Converter Gold Quality Settings<br />
|
87 |
-
Freemake Video Converter Gold Update<br />
|
88 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Mega<br />
|
89 |
-
Freemake Video Converter Gold for Mac<br />
|
90 |
-
Freemake Video Converter Gold Subtitles<br />
|
91 |
-
Freemake Video Converter Gold FAQ<br />
|
92 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Mediafire<br />
|
93 |
-
Freemake Video Converter Gold for Windows 10<br />
|
94 |
-
Freemake Video Converter Gold DVD Menu<br />
|
95 |
-
Freemake Video Converter Gold Tips and Tricks<br />
|
96 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Google Drive<br />
|
97 |
-
Freemake Video Converter Gold for Android<br />
|
98 |
-
Freemake Video Converter Gold Watermark Removal<br />
|
99 |
-
Freemake Video Converter Gold Testimonials<br />
|
100 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Rarbg<br />
|
101 |
-
Freemake Video Converter Gold for Linux<br />
|
102 |
-
Freemake Video Converter Gold Audio Settings<br />
|
103 |
-
Freemake Video Converter Gold Refund Policy<br />
|
104 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Kickass<br />
|
105 |
-
Freemake Video Converter Gold for iPhone<br />
|
106 |
-
Freemake Video Converter Gold Crop and Rotate<br />
|
107 |
-
Freemake Video Converter Gold Comparison Chart<br />
|
108 |
-
Freemake Video Converter Gold 4.1.9.16 Portable Magnet Link<br />
|
109 |
-
Freelance video converter gold for iPad </p>
|
110 |
-
<p>It also supports output formats for various devices and platforms, such as iPod, iPhone, iPad, PSP, Android, BlackBerry, Nokia, Xbox, Apple TV, etc.</p>
|
111 |
-
<p>You can also convert videos to HTML5 formats (Ogg, WebM, H.264) for modern web browsers.</p>
|
112 |
-
<p>Freemake Video Converter Gold 4.1.9.16 Portable Torrent is fast and efficient thanks to its integrated CUDA and DXVA technologies that optimize the conversion process and reduce CPU usage.</p>
|
113 |
-
<p>It also has a gold pack feature that unlocks some exclusive options such as automatic black bar removal, custom DVD menus, backup function, advanced preset editor, etc.</p>
|
114 |
-
<h2 style="text-align: center;">How to download and install Freemake Video Converter Gold 4.1.9.16 Portable Torrent</h2>
|
115 |
-
<p>To download Freemake Video Converter Gold 4.1.9.16 Portable Torrent, you need a torrent client such as uTorrent or BitTorrent.</p>
|
116 |
-
<p>You can find the torrent file on various websites such as <a href="https://nsaneforums.com/topic/294666-freemake-video-converter-gold-41992-portable/">nsaneforums.com</a> or <a href="https://youngworldforum.forumfree.it/?t=72642240">youngworldforum.forumfree.it</a>.</p>
|
117 |
-
<p>Once you have downloaded the torrent file, open it with your torrent client and choose where to save the portable version of Freemake Video Converter Gold 4.1.9.16.</p>
|
118 |
-
<p>The download size is about 30 MB.</p>
|
119 |
-
<p>After the download is complete, you can run Freemake Video Converter Gold 4.1.9.16 Portable by double-clicking on the executable file (FreemakeVideoConverterPortable.exe).</p>
|
120 |
-
<p>You don't need to install anything on your computer or register any account.</p>
|
121 |
-
<h2 style="text-align: center;">How to use Freemake Video Converter Gold 4.1.9.16 Portable Torrent</h2>
|
122 |
-
<h3 style="text-align: center;">How to add video files and choose output formats and settings</h3>
|
123 |
-
<p>To add video files to Freemake Video Converter Gold 4.1.9.16 Portable Torrent, you can either drag and drop them from your computer or click on the +Video button at the top left corner of the interface.</p>
|
124 |
-
<p>You can also add audio files (MP3, AAC, WMA, WAV) or image files (JPG, BMP, PNG,GIF) if you want to create a slideshow or a music video.</p>
|
125 |
-
<p>Once you have added your files, you can choose the output format from the bottom row of icons.</p>
|
126 |
-
<p>You can either select a specific device or platform (such as iPhone or YouTube) or a general format (such as AVI or MP3).</p>
|
127 |
-
<p>You can also click on the cogwheel icon next to each format icon to customize some settings such as resolution, bitrate, frame rate, codec, etc.</p>
|
128 |
-
<h3 style="text-align: center;">How to convert videos to various devices and platforms</h3>
|
129 |
-
<p>If you want to convert videos for a specific device or platform (such as iPod or Facebook), you just need to select it from the bottom row of icons.</p>
|
130 |
-
<p>Freemake Video Converter Gold 4.1.9.16 Portable Torrent will automatically adjust the output parameters according to the optimal compatibility and quality standards.</p>
|
131 |
-
<p>You can also preview how your video will look like on your device or platform by clicking on the play button next to each format icon.</p>
|
132 |
-
<p>To start the conversion process, click on the Convert button at the bottom right corner of the interface.</p>
|
133 |
-
<p>You can choose where to save your converted files or open them directly after conversion.</p>
|
134 |
-
<h3 style="text-align: center;">How to rip and burn DVDs and Blu-rays</h3>
|
135 |
-
<p>If you want to rip an unprotected DVD or Blu-ray disc (or an ISO image or a DVD folder) into a video file format (such as AVI or MP4), you just need to click on the +DVD button at the top left corner of the interface.</p>
|
136 |
-
<p>Then select your source disc (or image or folder) from your computer or optical drive.</p>
|
137 |
-
<p>Then choose your output format from the bottom row of icons (you can also select Blu-ray if you want to create a Blu-ray disc out of your source disc).</p>
|
138 |
-
<p>You can also edit some settings such as title selection, language selection, subtitle selection, etc by clicking on the cogwheel icon next to each format icon.</p>
|
139 |
-
<p>To start ripping process, click on Convert button at bottom right corner of interface. You can choose where save your ripped files or open them directly after ripping.</p>
|
140 |
-
<p>If you want burn a video file format (such as AVI or MP4) into a DVD or Blu-ray disc (or an ISO image or a DVD folder), you just need to click on +Video button at top left corner of interface. Then add your video files from your computer. Then choose DVD or Blu-ray from bottom row of icons. custom DVD menus by clicking on Menu button next each format icon. You can choose from various templates, add your own background image, title, etc. To start burning process, click on Burn button at bottom right corner of interface. You can choose where save your burned files or open them directly after burning.</p>
|
141 |
-
<h3 style="text-align: center;">How to edit videos and add subtitles</h3>
|
142 |
-
<p>If you want edit your videos before converting them, you can use built-in video editor by clicking on scissors icon next each video file in list. You can perform various editing tasks such as trimming, cropping, rotating, flipping, joining, etc. You can also add transitions, effects, watermarks, etc by clicking on respective buttons at top right corner of editor window. To apply changes, click OK button at bottom right corner of editor window. To cancel changes, click Cancel button at bottom left corner of editor window.</p>
|
143 |
-
<p>If you want add subtitles your videos before converting them, you can use built-in subtitle tool by clicking on SRT icon next each video file in list. You can either import external subtitle files (SSA/SRT/ASS) from your computer or search online subtitles by clicking on respective buttons at top right corner of subtitle window. You can also adjust some settings such as font size, color, position, etc by clicking on cogwheel icon at top left corner of subtitle window. To apply changes, click OK button at bottom right corner of subtitle window. To cancel changes, click Cancel button at bottom left corner of subtitle window.</p>
|
144 |
-
<h3 style="text-align: center;">How to upload videos online</h3>
|
145 |
-
<p>If you want upload your videos online after converting them, you can use built-in uploader by clicking on Upload button at top right corner of interface.</p>
|
146 |
-
<p>You can choose from various websites such as YouTube, Facebook, Vimeo, Dailymotion, etc and enter your account details and video information.</p>
|
147 |
-
<p>You can also adjust some settings such as video quality, privacy options, tags, etc by clicking on cogwheel icon next to each website icon.</p>
|
148 |
-
<p>To start uploading process, click on Upload button at bottom right corner of interface. You can monitor the progress and status of your uploads and open them directly after uploading.</p>
|
149 |
-
<h2 style="text-align: center;">Conclusion</h2>
|
150 |
-
<p>Freemake Video Converter Gold 4.1.9.16 Portable Torrent is a powerful and versatile video converter that can handle any video format, device, or platform.</p>
|
151 |
-
<p>It is also fast and efficient thanks to its integrated CUDA and DXVA technologies that optimize the conversion process and reduce CPU usage.</p>
|
152 |
-
<p>It also has a gold pack feature that unlocks some exclusive options such as automatic black bar removal, custom DVD menus, backup function, advanced preset editor, etc.</p>
|
153 |
-
<p>It is also easy to use and intuitive thanks to its simple and user-friendly interface and its built-in tools for editing, adding subtitles, and uploading videos online.</p>
|
154 |
-
<p>If you want to try out Freemake Video Converter Gold 4.1.9.16 Portable Torrent for yourself, you can download it from various websites such as <a href="https://nsaneforums.com/topic/294666-freemake-video-converter-gold-41992-portable/">nsaneforums.com</a> or <a href="https://youngworldforum.forumfree.it/?t=72642240">youngworldforum.forumfree.it</a> using a torrent client such as uTorrent or BitTorrent.</p>
|
155 |
-
<p>You don't need to install anything on your computer or register any account. You just need to run it from any USB drive or external hard drive and start converting your videos to any format, device, or platform you want.</p>
|
156 |
-
<p>So what are you waiting for? Download Freemake Video Converter Gold 4.1.9.16 Portable Torrent today and enjoy the best video conversion experience ever!</p>
|
157 |
-
<h2 style="text-align: center;">FAQs</h2>
|
158 |
-
<ul>
|
159 |
-
<li><strong>What are the system requirements for Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</strong></li>
|
160 |
-
</ul>
|
161 |
-
<p>The system requirements for Freemake Video Converter Gold 4.1.9.16 Portable Torrent are:</p>
|
162 |
-
<ul>
|
163 |
-
<li>Windows Vista/7/8/10</li>
|
164 |
-
<li>.NET Framework 4.0 or higher</li>
|
165 |
-
<li>256 MB or more RAM</li>
|
166 |
-
<li>50 MB free hard disc space</li>
|
167 |
-
<li>Stable Internet connection for video download & YouTube upload</li>
|
168 |
-
<li>DVD-ROM drive for burning DVD</li>
|
169 |
-
<li>BD-ROM drive for burning Blu-ray</li>
|
170 |
-
</ul>
|
171 |
-
<ul>
|
172 |
-
<li><strong>What is the difference between the free version and the gold pack?</strong></li>
|
173 |
-
</ul>
|
174 |
-
<p>The free version of Freemake Video Converter allows you to convert video files to various formats, devices, and platforms, as well as rip and burn DVDs and Blu-rays, edit videos, add subtitles, and upload videos online.</p>
|
175 |
-
<p>The gold pack is a set of unique features that enhance the free version with some exclusive options such as automatic black bar removal, custom DVD menus, backup function, advanced preset editor, etc.</p>
|
176 |
-
<ul>
|
177 |
-
<li><strong>How to activate the gold pack features?</strong></li>
|
178 |
-
</ul>
|
179 |
-
<p>To activate the gold pack features, you need to purchase a license key from the official website <a href="http://www.freemake.com/packs/gold_freemake_video_converter/">http://www.freemake.com/packs/gold_freemake_video_converter/</a>.</p>
|
180 |
-
<p>Then you need to enter the license key in the program by clicking on Help -> Get Gold Pack -> I already have a key -> Enter key -> OK.</p>
|
181 |
-
<ul>
|
182 |
-
<li><strong>How to update Freemake Video Converter Gold 4.1.9.16 Portable Torrent?</strong></li>
|
183 |
-
</ul>
|
184 |
-
<p>To update Freemake Video Converter Gold 4.1.9.16 Portable Torrent, you need to download the latest version from the official website <a href="http://www.freemake.com/free_video_converter/">http://www.freemake.com/free_video_converter/</a>.</p>
|
185 |
-
<p>Then you need to overwrite the old executable file (FreemakeVideoConverterPortable.exe) with the new one in your portable folder.</p>
|
186 |
-
<ul>
|
187 |
-
<li><strong>How to contact the support team or report a problem?</strong></li>
|
188 |
-
</ul>
|
189 |
-
<p>To contact the support team or report a problem with Freemake Video Converter Gold 4.1.9.16 Portable Torrent, you can use the following methods:</p>
|
190 |
-
<ul>
|
191 |
-
<li>Email: [email protected]</li>
|
192 |
-
<li>Facebook: <a href="https://www.facebook.com/Freemake/">https://www.facebook.com/Freemake/</a></li>
|
193 |
-
<li>Twitter: <a href="https://twitter.com/Freemakecom">@Freemakecom</a></li>
|
194 |
-
<li>Contact form: <a href="http://support.freemake.com/hc/en-us/requests/new">http://support.freemake.com/hc/en-us/requests/new</a></li>
|
195 |
-
</ul>
|
196 |
-
</td>
|
197 |
-
</tr>
|
198 |
-
</table></p> 0a6ba089eb<br />
|
199 |
-
<br />
|
200 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Bajrangi Bhaijaan 2015 720p DvdRip.md
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<h2>Bajrangi Bhaijaan 2015 720p DvdRip</h2><br /><p><b><b>Download File</b> › <a href="https://imgfil.com/2uy1i6">https://imgfil.com/2uy1i6</a></b></p><br /><br />
|
2 |
-
|
3 |
-
At the end of the DVD there is information about the search code. In the beginning of the movie starts a credit: Bajrangi Bhaijaan 720p DvDRip x264 English Subtitle Movie Samples. No charge, no catches, no hassle, we will not share your information with anyone. The mbox file is about 9 gigabytes and contains an index of the contents, like a DVD table of contents.
|
4 |
-
|
5 |
-
This release supports Matroska movies only, and does not support subtitles, codecs and other features.
|
6 |
-
|
7 |
-
It also does not have a working DVD menu. This means that it cannot be played directly on any DVD player. It must be copied to a DVD media first. The subtitle files were not encoded with the same compression ratio as the main movie, so they are not as small as usual.
|
8 |
-
|
9 |
-
Bajrangi Bhaijaan: Story, Cast, Overview, 2015
|
10 |
-
|
11 |
-
Director: Kabir Khan
|
12 |
-
|
13 |
-
Writer: Kabir Khan
|
14 |
-
|
15 |
-
Starring: Akshay Kumar, Nawazuddin Siddiqui, Paresh Rawal, Sonakshi Sinha, Varun Sharma, Ritesh Deshmukh, and Manoj Pahwa. Special appearance by the then Bihar Chief Minister Nitish Kumar, Rajnath Singh, Arvind Kejriwal and Prakash Karat.
|
16 |
-
|
17 |
-
Plot Summary :
|
18 |
-
|
19 |
-
During the 1990s, in the town of Nagpur in the Indian state of Maharashtra, two men were competing for the love of a girl: a poor Muslim named Babban Ashfaq, who worked as a guard in a printing factory and could not afford a dowry, and a rich Hindu named Lallu Singhal, who owned a printing business and could afford one.
|
20 |
-
|
21 |
-
When the girl, Priyanka, turned 21, her father approached a prominent crime lord, Harshvardhan Ganga, who in turn introduced him to a mafioso, Baba Kamlakar Dhanpat. Baba Kamlakar Dhanpat gave the poor man a dowry of his own, but the Hindu was not satisfied.
|
22 |
-
|
23 |
-
Then a rival gang, the Bajrangi, came to the rescue. They were a band of six thieves who specialized in stealing jewellery and money. They smuggled Baba Kamlakar Dhanpat's money to Switzerland, where it was kept in a safe deposit box. Baba Kamlakar Dhanpat then drove to Mumbai 4fefd39f24<br />
|
24 |
-
<br />
|
25 |
-
<br />
|
26 |
-
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Biologija Pries Egzamina Knyga Pdf 44.md
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Biologija Pries Egzamina Knyga Pdf 44: A Review of the Best Biology Book for Exam Preparation</h1>
|
3 |
-
|
4 |
-
<p>If you are looking for a biology book that can help you ace your exams, you might want to check out Biologija Pries Egzamina Knyga Pdf 44. This book is a collection of 100 professional tips for biology exams, written by experts in the field. It covers topics such as genetics, ecology, evolution, cell biology, anatomy, physiology, and more. It also provides practice questions, answers, and explanations for each topic.</p>
|
5 |
-
<h2>Biologija Pries Egzamina Knyga Pdf 44</h2><br /><p><b><b>Download File</b> 🆓 <a href="https://imgfil.com/2uxYBo">https://imgfil.com/2uxYBo</a></b></p><br /><br />
|
6 |
-
|
7 |
-
<p>Biologija Pries Egzamina Knyga Pdf 44 is a digital book that you can download and read on your computer or mobile device. It is available in Lithuanian language, and it has been praised by many students and teachers for its clarity, accuracy, and relevance. It is designed to help you prepare for the national biology exam in Lithuania, as well as other biology tests and competitions.</p>
|
8 |
-
|
9 |
-
<p>In this article, we will review Biologija Pries Egzamina Knyga Pdf 44 and tell you why it is one of the best biology books for exam preparation. We will also give you some tips on how to use it effectively and where to get it online.</p>
|
10 |
-
|
11 |
-
<h2>Why Biologija Pries Egzamina Knyga Pdf 44 is a Great Biology Book for Exam Preparation</h2>
|
12 |
-
|
13 |
-
<p>There are many reasons why Biologija Pries Egzamina Knyga Pdf 44 is a great biology book for exam preparation. Here are some of them:</p>
|
14 |
-
<p></p>
|
15 |
-
|
16 |
-
<ul>
|
17 |
-
<li>It is written by experts. The authors of Biologija Pries Egzamina Knyga Pdf 44 are experienced biology teachers and researchers who have extensive knowledge and expertise in the subject. They have also participated in various biology competitions and projects, so they know what kind of questions and challenges you might face in your exams.</li>
|
18 |
-
<li>It is comprehensive. Biologija Pries Egzamina Knyga Pdf 44 covers all the major topics and concepts that you need to know for your biology exams. It also includes subtopics and details that might not be covered in your textbooks or lectures, but are important for your understanding and application of biology.</li>
|
19 |
-
<li>It is practical. Biologija Pries Egzamina Knyga Pdf 44 does not only give you theoretical information, but also shows you how to apply it in real-life situations. It provides examples, diagrams, illustrations, tables, charts, and graphs that help you visualize and analyze biological phenomena. It also gives you practice questions, answers, and explanations that help you test your knowledge and skills.</li>
|
20 |
-
<li>It is relevant. Biologija Pries Egzamina Knyga Pdf 44 is based on the latest curriculum and standards of the national biology exam in Lithuania. It also follows the trends and developments in the field of biology, such as biotechnology, genetic engineering, environmental issues, and more. It helps you stay updated and informed about the current state of biology.</li>
|
21 |
-
<li>It is easy to use. Biologija Pries Egzamina Knyga Pdf 44 is a digital book that you can download and read on your computer or mobile device. You can access it anytime and anywhere you want. You can also print it out if you prefer a hard copy. You can search for keywords, bookmark pages, highlight text, take notes, and more.</li>
|
22 |
-
</ul>
|
23 |
-
|
24 |
-
<h2>How to Use Biologija Pries Egzamina Knyga Pdf 44 Effectively</h2>
|
25 |
-
|
26 |
-
<p>To get the most out of Biologija Pries Egzamina Knyga Pdf 44, here are some tips on how to use it effectively:</p>
|
27 |
-
|
28 |
-
<ul>
|
29 |
-
<li>Read it before your exams. Biologija Pries Egzamina Knyga Pdf 44 is not a substitute for your textbooks or lectures. It is a supplement that can help you review and reinforce what you have learned. Therefore, you should read it before your exams to refresh your memory and fill in any gaps in your knowledge.</li>
|
30 |
-
<li>Read it after your exams. Biologija Pries Egzamina Knyga Pdf 44 is not only useful for exam preparation, but also for exam analysis. After your exams, you</p> d5da3c52bf<br />
|
31 |
-
<br />
|
32 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Bongiovi Acoustics DPS Audio Enhancer 2.2.0.15 Activate HOT.md
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<p>bongiovi audio enhancer is a digital audio mastering suite, which helps to clarify, polish and punch up the sound of any audio source, even your headphone or computer speakers. it is the perfect tool to enhance acoustic performances, and to finally realise the true potential of your music.</p>
|
3 |
-
<h2>Bongiovi Acoustics DPS Audio Enhancer 2.2.0.15 activate</h2><br /><p><b><b>Download</b> 🗸🗸🗸 <a href="https://imgfil.com/2uy1ky">https://imgfil.com/2uy1ky</a></b></p><br /><br />
|
4 |
-
<p>the entire processing section, from <strong>input</strong> to <strong>loudness</strong> is available for each of the audio playback sources (headphones, line-out, line-in) and can be used independently. its performance is exactly the same in all application modes.</p>
|
5 |
-
<p>with bongiovi audio enhancer you can drastically improve the sound of any audio source, even your headphones or laptop speakers. the processing effect is exactly the same in all applications. buttons and sliders apply boost automatically to audio input, headphones, line-in, output and the master output. usually the strongest influence is just around the 80db mark, but boost values up to 90db are possible.</p>
|
6 |
-
<p>dps audio enhancer enhance, produce or re-simulate the sound of the music you listen to, to make music even more exciting! bongiovi acoustics dps audio enhancer 2.2.0.15. involved. overall, the concept of acoustics dps dps plugin audio enhancer is really a very good one. to start with, acoustics dps plugin audio enhancer is certainly a free application. only limitations include restricted bass and treble controls from what i can see. those two settings are restricted to pro version which can be bought for a fee i guess (cant seem to find more info about it at the moment). acoustics dps plugin audio enhancer can be readily downloaded and installed on most versions of windows. just enter the download link. </p>
|
7 |
-
<p></p> 899543212b<br />
|
8 |
-
<br />
|
9 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1line/AutoGPT/autogpt/json_utils/json_fix_llm.py
DELETED
@@ -1,220 +0,0 @@
|
|
1 |
-
"""This module contains functions to fix JSON strings generated by LLM models, such as ChatGPT, using the assistance
|
2 |
-
of the ChatGPT API or LLM models."""
|
3 |
-
from __future__ import annotations
|
4 |
-
|
5 |
-
import contextlib
|
6 |
-
import json
|
7 |
-
from typing import Any, Dict
|
8 |
-
|
9 |
-
from colorama import Fore
|
10 |
-
from regex import regex
|
11 |
-
|
12 |
-
from autogpt.config import Config
|
13 |
-
from autogpt.json_utils.json_fix_general import correct_json
|
14 |
-
from autogpt.llm_utils import call_ai_function
|
15 |
-
from autogpt.logs import logger
|
16 |
-
from autogpt.speech import say_text
|
17 |
-
|
18 |
-
JSON_SCHEMA = """
|
19 |
-
{
|
20 |
-
"command": {
|
21 |
-
"name": "command name",
|
22 |
-
"args": {
|
23 |
-
"arg name": "value"
|
24 |
-
}
|
25 |
-
},
|
26 |
-
"thoughts":
|
27 |
-
{
|
28 |
-
"text": "thought",
|
29 |
-
"reasoning": "reasoning",
|
30 |
-
"plan": "- short bulleted\n- list that conveys\n- long-term plan",
|
31 |
-
"criticism": "constructive self-criticism",
|
32 |
-
"speak": "thoughts summary to say to user"
|
33 |
-
}
|
34 |
-
}
|
35 |
-
"""
|
36 |
-
|
37 |
-
CFG = Config()
|
38 |
-
|
39 |
-
|
40 |
-
def auto_fix_json(json_string: str, schema: str) -> str:
|
41 |
-
"""Fix the given JSON string to make it parseable and fully compliant with
|
42 |
-
the provided schema using GPT-3.
|
43 |
-
|
44 |
-
Args:
|
45 |
-
json_string (str): The JSON string to fix.
|
46 |
-
schema (str): The schema to use to fix the JSON.
|
47 |
-
Returns:
|
48 |
-
str: The fixed JSON string.
|
49 |
-
"""
|
50 |
-
# Try to fix the JSON using GPT:
|
51 |
-
function_string = "def fix_json(json_string: str, schema:str=None) -> str:"
|
52 |
-
args = [f"'''{json_string}'''", f"'''{schema}'''"]
|
53 |
-
description_string = (
|
54 |
-
"This function takes a JSON string and ensures that it"
|
55 |
-
" is parseable and fully compliant with the provided schema. If an object"
|
56 |
-
" or field specified in the schema isn't contained within the correct JSON,"
|
57 |
-
" it is omitted. The function also escapes any double quotes within JSON"
|
58 |
-
" string values to ensure that they are valid. If the JSON string contains"
|
59 |
-
" any None or NaN values, they are replaced with null before being parsed."
|
60 |
-
)
|
61 |
-
|
62 |
-
# If it doesn't already start with a "`", add one:
|
63 |
-
if not json_string.startswith("`"):
|
64 |
-
json_string = "```json\n" + json_string + "\n```"
|
65 |
-
result_string = call_ai_function(
|
66 |
-
function_string, args, description_string, model=CFG.fast_llm_model
|
67 |
-
)
|
68 |
-
logger.debug("------------ JSON FIX ATTEMPT ---------------")
|
69 |
-
logger.debug(f"Original JSON: {json_string}")
|
70 |
-
logger.debug("-----------")
|
71 |
-
logger.debug(f"Fixed JSON: {result_string}")
|
72 |
-
logger.debug("----------- END OF FIX ATTEMPT ----------------")
|
73 |
-
|
74 |
-
try:
|
75 |
-
json.loads(result_string) # just check the validity
|
76 |
-
return result_string
|
77 |
-
except json.JSONDecodeError: # noqa: E722
|
78 |
-
# Get the call stack:
|
79 |
-
# import traceback
|
80 |
-
# call_stack = traceback.format_exc()
|
81 |
-
# print(f"Failed to fix JSON: '{json_string}' "+call_stack)
|
82 |
-
return "failed"
|
83 |
-
|
84 |
-
|
85 |
-
def fix_json_using_multiple_techniques(assistant_reply: str) -> Dict[Any, Any]:
|
86 |
-
"""Fix the given JSON string to make it parseable and fully compliant with two techniques.
|
87 |
-
|
88 |
-
Args:
|
89 |
-
json_string (str): The JSON string to fix.
|
90 |
-
|
91 |
-
Returns:
|
92 |
-
str: The fixed JSON string.
|
93 |
-
"""
|
94 |
-
|
95 |
-
# Parse and print Assistant response
|
96 |
-
assistant_reply_json = fix_and_parse_json(assistant_reply)
|
97 |
-
if assistant_reply_json == {}:
|
98 |
-
assistant_reply_json = attempt_to_fix_json_by_finding_outermost_brackets(
|
99 |
-
assistant_reply
|
100 |
-
)
|
101 |
-
|
102 |
-
if assistant_reply_json != {}:
|
103 |
-
return assistant_reply_json
|
104 |
-
|
105 |
-
logger.error(
|
106 |
-
"Error: The following AI output couldn't be converted to a JSON:\n",
|
107 |
-
assistant_reply,
|
108 |
-
)
|
109 |
-
if CFG.speak_mode:
|
110 |
-
say_text("I have received an invalid JSON response from the OpenAI API.")
|
111 |
-
|
112 |
-
return {}
|
113 |
-
|
114 |
-
|
115 |
-
def fix_and_parse_json(
|
116 |
-
json_to_load: str, try_to_fix_with_gpt: bool = True
|
117 |
-
) -> Dict[Any, Any]:
|
118 |
-
"""Fix and parse JSON string
|
119 |
-
|
120 |
-
Args:
|
121 |
-
json_to_load (str): The JSON string.
|
122 |
-
try_to_fix_with_gpt (bool, optional): Try to fix the JSON with GPT.
|
123 |
-
Defaults to True.
|
124 |
-
|
125 |
-
Returns:
|
126 |
-
str or dict[Any, Any]: The parsed JSON.
|
127 |
-
"""
|
128 |
-
|
129 |
-
with contextlib.suppress(json.JSONDecodeError):
|
130 |
-
json_to_load = json_to_load.replace("\t", "")
|
131 |
-
return json.loads(json_to_load)
|
132 |
-
|
133 |
-
with contextlib.suppress(json.JSONDecodeError):
|
134 |
-
json_to_load = correct_json(json_to_load)
|
135 |
-
return json.loads(json_to_load)
|
136 |
-
# Let's do something manually:
|
137 |
-
# sometimes GPT responds with something BEFORE the braces:
|
138 |
-
# "I'm sorry, I don't understand. Please try again."
|
139 |
-
# {"text": "I'm sorry, I don't understand. Please try again.",
|
140 |
-
# "confidence": 0.0}
|
141 |
-
# So let's try to find the first brace and then parse the rest
|
142 |
-
# of the string
|
143 |
-
try:
|
144 |
-
brace_index = json_to_load.index("{")
|
145 |
-
maybe_fixed_json = json_to_load[brace_index:]
|
146 |
-
last_brace_index = maybe_fixed_json.rindex("}")
|
147 |
-
maybe_fixed_json = maybe_fixed_json[: last_brace_index + 1]
|
148 |
-
return json.loads(maybe_fixed_json)
|
149 |
-
except (json.JSONDecodeError, ValueError) as e:
|
150 |
-
return try_ai_fix(try_to_fix_with_gpt, e, json_to_load)
|
151 |
-
|
152 |
-
|
153 |
-
def try_ai_fix(
|
154 |
-
try_to_fix_with_gpt: bool, exception: Exception, json_to_load: str
|
155 |
-
) -> Dict[Any, Any]:
|
156 |
-
"""Try to fix the JSON with the AI
|
157 |
-
|
158 |
-
Args:
|
159 |
-
try_to_fix_with_gpt (bool): Whether to try to fix the JSON with the AI.
|
160 |
-
exception (Exception): The exception that was raised.
|
161 |
-
json_to_load (str): The JSON string to load.
|
162 |
-
|
163 |
-
Raises:
|
164 |
-
exception: If try_to_fix_with_gpt is False.
|
165 |
-
|
166 |
-
Returns:
|
167 |
-
str or dict[Any, Any]: The JSON string or dictionary.
|
168 |
-
"""
|
169 |
-
if not try_to_fix_with_gpt:
|
170 |
-
raise exception
|
171 |
-
if CFG.debug_mode:
|
172 |
-
logger.warn(
|
173 |
-
"Warning: Failed to parse AI output, attempting to fix."
|
174 |
-
"\n If you see this warning frequently, it's likely that"
|
175 |
-
" your prompt is confusing the AI. Try changing it up"
|
176 |
-
" slightly."
|
177 |
-
)
|
178 |
-
# Now try to fix this up using the ai_functions
|
179 |
-
ai_fixed_json = auto_fix_json(json_to_load, JSON_SCHEMA)
|
180 |
-
|
181 |
-
if ai_fixed_json != "failed":
|
182 |
-
return json.loads(ai_fixed_json)
|
183 |
-
# This allows the AI to react to the error message,
|
184 |
-
# which usually results in it correcting its ways.
|
185 |
-
# logger.error("Failed to fix AI output, telling the AI.")
|
186 |
-
return {}
|
187 |
-
|
188 |
-
|
189 |
-
def attempt_to_fix_json_by_finding_outermost_brackets(json_string: str):
|
190 |
-
if CFG.speak_mode and CFG.debug_mode:
|
191 |
-
say_text(
|
192 |
-
"I have received an invalid JSON response from the OpenAI API. "
|
193 |
-
"Trying to fix it now."
|
194 |
-
)
|
195 |
-
logger.error("Attempting to fix JSON by finding outermost brackets\n")
|
196 |
-
|
197 |
-
try:
|
198 |
-
json_pattern = regex.compile(r"\{(?:[^{}]|(?R))*\}")
|
199 |
-
json_match = json_pattern.search(json_string)
|
200 |
-
|
201 |
-
if json_match:
|
202 |
-
# Extract the valid JSON object from the string
|
203 |
-
json_string = json_match.group(0)
|
204 |
-
logger.typewriter_log(
|
205 |
-
title="Apparently json was fixed.", title_color=Fore.GREEN
|
206 |
-
)
|
207 |
-
if CFG.speak_mode and CFG.debug_mode:
|
208 |
-
say_text("Apparently json was fixed.")
|
209 |
-
else:
|
210 |
-
return {}
|
211 |
-
|
212 |
-
except (json.JSONDecodeError, ValueError):
|
213 |
-
if CFG.debug_mode:
|
214 |
-
logger.error(f"Error: Invalid JSON: {json_string}\n")
|
215 |
-
if CFG.speak_mode:
|
216 |
-
say_text("Didn't work. I will have to ignore this response then.")
|
217 |
-
logger.error("Error: Invalid JSON, setting it to empty JSON now.\n")
|
218 |
-
json_string = {}
|
219 |
-
|
220 |
-
return fix_and_parse_json(json_string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Challenge Your Friends and the World with Quiz Planet APK for Android.md
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
|
2 |
-
<br>
|
3 |
-
<br>
|
4 |
-
<br>
|
5 |
-
<br>
|
6 |
-
<br>
|
7 |
-
<br>
|
8 |
-
<br>
|
9 |
-
<br>
|
10 |
-
<br>
|
11 |
-
<br>
|
12 |
-
<br>
|
13 |
-
<br>
|
14 |
-
<br>
|
15 |
-
<br>
|
16 |
-
<br>
|
17 |
-
<br>
|
18 |
-
<br>
|
19 |
-
<code>
|
20 |
-
<table>
|
21 |
-
<tr>
|
22 |
-
<td>
|
23 |
-
<h1>Quiz Planet APK Download: A Fun and Social Trivia Game</h1>
|
24 |
-
<p>Do you love trivia games? Do you enjoy challenging your friends and other players online? Do you want to test your knowledge with thousands of questions in 28 languages? If you answered yes to any of these questions, then you should download Quiz Planet APK for Android today!</p>
|
25 |
-
<h2>quiz planet apk download</h2><br /><p><b><b>DOWNLOAD</b> ⚙ <a href="https://urlin.us/2uT0u9">https://urlin.us/2uT0u9</a></b></p><br /><br />
|
26 |
-
<p>Quiz Planet is a fun and social trivia game that lets you play with your friends or other players from around the world. You can choose from various quiz categories, such as sports, music, movies, geography, history, science, and more. You can also use power-ups to help you out or challenge yourself with daily quizzes and leaderboard rankings. Quiz Planet is the ultimate trivia game for anyone who loves learning new things and having a good time.</p>
|
27 |
-
<h2>How to Download Quiz Planet APK for Android?</h2>
|
28 |
-
<p>If you want to download Quiz Planet APK for Android, you can follow these simple steps:</p>
|
29 |
-
<ol>
|
30 |
-
<li>Go to <a href="">APKCombo</a>, a trusted website that offers free and safe APK downloads.</li>
|
31 |
-
<li>Type "Quiz Planet" in the search bar and click on the result that matches the game.</li>
|
32 |
-
<li>Choose the latest version of Quiz Planet APK and click on the download button.</li>
|
33 |
-
<li>Wait for the download to finish and then open the file.</li>
|
34 |
-
<li>Allow the installation of apps from unknown sources if prompted by your device settings.</li>
|
35 |
-
<li>Follow the instructions on the screen and enjoy playing Quiz Planet!</li>
|
36 |
-
</ol>
|
37 |
-
<p>Note: You can also download Quiz Planet APK from other sources, such as <a href="">APKPure</a> or <a href="">Uptodown</a>, but make sure they are reliable and virus-free.</p>
|
38 |
-
<h2>Why Play Quiz Planet?</h2>
|
39 |
-
<p>Quiz Planet is not just another trivia game. It has many features and benefits that make it stand out from the crowd. Here are some of them:</p>
|
40 |
-
<h3>Test Your Knowledge with Thousands of Questions</h3>
|
41 |
-
<p>Quiz Planet has over 10,000 questions in 16 different categories, ranging from easy to hard. You can choose from topics such as animals, art, books, celebrities, food, games, history, music, movies, science, sports, and more. You can also switch between four difficulty levels: easy, medium, hard, and expert. Whether you are a casual player or a trivia buff, you will always find something new and interesting to learn in Quiz Planet.</p>
|
42 |
-
<h3>Compete Against Your Friends and Other Players</h3>
|
43 |
-
<p>Quiz Planet is a social game that lets you play with your friends or other players from around the world. You can invite your friends via Facebook or WhatsApp, or you can play with random opponents online. You can also chat with your opponents during the game and send them emojis and stickers. Quiz Planet is a great way to have fun and make new friends while testing your knowledge.</p>
|
44 |
-
<p>quiz planet apk download for android<br />
|
45 |
-
quiz planet apk download latest version<br />
|
46 |
-
quiz planet apk download free<br />
|
47 |
-
quiz planet apk download mod<br />
|
48 |
-
quiz planet apk download offline<br />
|
49 |
-
quiz planet apk download 2023<br />
|
50 |
-
quiz planet apk download hack<br />
|
51 |
-
quiz planet apk download no ads<br />
|
52 |
-
quiz planet apk download unlimited coins<br />
|
53 |
-
quiz planet apk download pc<br />
|
54 |
-
quiz planet trivia game apk download<br />
|
55 |
-
quiz planet app apk download<br />
|
56 |
-
quiz planet online apk download<br />
|
57 |
-
quiz planet pro apk download<br />
|
58 |
-
quiz planet premium apk download<br />
|
59 |
-
quiz planet full apk download<br />
|
60 |
-
quiz planet cracked apk download<br />
|
61 |
-
quiz planet unlocked apk download<br />
|
62 |
-
quiz planet updated apk download<br />
|
63 |
-
quiz planet new version apk download<br />
|
64 |
-
how to download quiz planet apk<br />
|
65 |
-
where to download quiz planet apk<br />
|
66 |
-
best site to download quiz planet apk<br />
|
67 |
-
safe site to download quiz planet apk<br />
|
68 |
-
trusted site to download quiz planet apk<br />
|
69 |
-
quiz planet apk free download for android<br />
|
70 |
-
quiz planet apk mod free download<br />
|
71 |
-
quiz planet trivia game apk free download<br />
|
72 |
-
quiz planet app apk free download<br />
|
73 |
-
quiz planet pro apk free download<br />
|
74 |
-
quiz planet premium apk free download<br />
|
75 |
-
quiz planet full apk free download<br />
|
76 |
-
quiz planet cracked apk free download<br />
|
77 |
-
quiz planet unlocked apk free download<br />
|
78 |
-
quiz planet latest version apk free download<br />
|
79 |
-
quiz planet 2023 apk free download<br />
|
80 |
-
quiz planet hack apk free download<br />
|
81 |
-
quiz planet mod apk free download unlimited coins<br />
|
82 |
-
quiz planet mod apk free download no ads<br />
|
83 |
-
quiz planet mod apk free download offline<br />
|
84 |
-
quiz planet trivia game mod apk free download<br />
|
85 |
-
quiz planet app mod apk free download<br />
|
86 |
-
quiz planet pro mod apk free download<br />
|
87 |
-
quiz planet premium mod apk free download<br />
|
88 |
-
quiz planet full mod apk free download<br />
|
89 |
-
quiz planet cracked mod apk free download<br />
|
90 |
-
quiz planet unlocked mod apk free download</p>
|
91 |
-
<h3>Collect Cute Aliens and Climb the Leaderboard</h3>
|
92 |
-
<p>Quiz Planet rewards you for playing well and answering correctly. You can collect cute aliens as you progress through the game and unlock new planets to explore. You can also earn coins and gems that you can use to buy power-ups or customize your profile. Moreover, you can climb the leaderboard and compete against your country or the world. Quiz Planet is a game that keeps you motivated and engaged.</p>
|
93 |
-
<h3>Enjoy the Game in 28 Languages</h3>
|
94 |
-
<p>Quiz Planet is a game that supports 28 languages, including English, Spanish, French, German, Italian, Portuguese, Russian, Turkish, Arabic, Chinese, Japanese, Korean, Hindi, and more. You can play the game in your native language or learn a new one by switching languages anytime. Quiz Planet is a game that is accessible and inclusive for everyone.</p>
|
95 |
-
<h2>Tips and Tricks for Playing Quiz Planet</h2>
|
96 |
-
<p>If you want to improve your skills and win more games in Quiz Planet, you can follow these tips and tricks:</p>
|
97 |
-
<h3>Use Your Power-Ups Wisely</h3>
|
98 |
-
<p>Quiz Planet gives you three power-ups that you can use during the game: skip, bomb, and freeze. Skip lets you skip a question if you don't know the answer or don't like it. Bomb eliminates two wrong answers from the four options. Freeze stops the timer for 10 seconds so you can think more carefully. You can use one power-up per question, but they are limited in number and cost coins or gems to buy more. Therefore, use them wisely and only when necessary.</p>
|
99 |
-
<h3>Learn from Your Mistakes</h3>
|
100 |
-
<p>Quiz Planet shows you the correct answer after each question. You can also review your answers at the end of each game. This is a great opportunity to learn from your mistakes and improve your knowledge. You can also search for more information about the topics that interest you or challenge you online. Quiz Planet is a game that helps you grow and learn.</p>
|
101 |
-
<h3>Challenge Yourself with Daily Quizzes</h3>
|
102 |
-
<p>Quiz Planet offers you daily quizzes that you can play every day. These quizzes are based on current events, trends, and popular topics. They are also more challenging and rewarding than the regular quizzes. You can compete against your country and see how you rank among other players. You can also earn more coins and gems by playing daily quizzes. Quiz Planet is a game that keeps you updated and entertained.</p>
|
103 |
-
<h2>Frequently Asked Questions about Quiz Planet</h2>
|
104 |
-
<p>Here are some of the most common questions and answers about Quiz Planet:</p>
|
105 |
-
<h4>Is Quiz Planet Free to Play?</h4>
|
106 |
-
<p>Yes, Quiz Planet is free to play, but it offers in-app purchases that you can buy with real money. These purchases include coins, gems, power-ups, and premium membership. You can use these items to enhance your gameplay and unlock more features. However, you can also enjoy the game without spending any money.</p>
|
107 |
-
<h4>How Can I Contact Quiz Planet Support?</h4>
|
108 |
-
<p>If you have any questions, problems, or feedback about Quiz Planet, you can contact the support team by sending an email to <a href="mailto:[email protected]">[email protected]</a>. They will reply to you as soon as possible and help you with your issue.</p>
|
109 |
-
<h4>How Can I Report a Bug or a Wrong Question?</h4>
|
110 |
-
<p>If you encounter a bug or a wrong question in Quiz Planet, you can report it through the game settings. To do so, follow these steps:</p>
|
111 |
-
<ol>
|
112 |
-
<li>Tap on the gear icon on the top right corner of the screen.</li>
|
113 |
-
<li>Tap on "Report a bug" or "Report a wrong question".</li>
|
114 |
-
<li>Fill in the form with the details of the bug or the question.</li>
|
115 |
-
<li>Tap on "Send".</li>
|
116 |
-
</ol>
|
117 |
-
<p>The support team will review your report and fix the bug or the question as soon as possible.</p>
|
118 |
-
<h4>How Can I Change My Language or Nickname?</h4>
|
119 |
-
<p>If you want to change your language or nickname in Quiz Planet, you can do so through the game settings. To do so, follow these steps:</p>
|
120 |
-
<ol>
|
121 |
-
<li>Tap on the gear icon on the top right corner of the screen.</li>
|
122 |
-
<li>Tap on "Language" or "Nickname".</li>
|
123 |
-
<li>Select your preferred language or enter your new nickname.</li>
|
124 |
-
<li>Tap on "Save".</li>
|
125 |
-
</ol>
|
126 |
-
<p>Your language or nickname will be updated immediately.</p>
|
127 |
-
<h4>How Can I Delete My Account or Data?</h4>
|
128 |
-
<p>If you want to delete your account or data in Quiz Planet, you should be aware that this action is irreversible and will erase all your progress and achievements in the game. If you still want to proceed, you can follow this link: <a href="">https://quizplanet.app/delete-account</a>. You will need to enter your email address and confirm your decision. Once you delete your account or data, you will not be able to restore it or play Quiz Planet again with the same email address.</p>
|
129 |
-
<h2>Conclusion</h2>
|
130 |
-
<p>Quiz Planet is a fun and social trivia game that lets you test your knowledge with thousands of questions in 28 languages. You can play with your friends or other players online, collect cute aliens and climb the leaderboard, and enjoy the game in a conversational style. Quiz Planet is a game that is suitable for everyone who loves trivia and learning new things. If you want to download Quiz Planet APK for Android, you can follow our guide above and start playing today!</p>
|
131 |
-
</td></tr></table></code></p> 197e85843d<br />
|
132 |
-
<br />
|
133 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Design Your Own 3D Worlds with 3DBear App for Mobile Devices.md
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Download 3D Bear App: A Fun and Educational Way to Create Your Own Virtual Worlds</h1>
|
3 |
-
<p>Have you ever dreamed of making your imagination a reality with 3D models? Do you want to learn new skills and express your creativity in a fun and engaging way? Do you want to share your amazing creations with others and see what they have made? If you answered yes to any of these questions, then you should download 3D Bear app, a mobile augmented reality solution that allows you to create and experience your own virtual worlds. In this article, we will tell you what 3D Bear app is, why you should download it, how to download it, and how to use it.</p>
|
4 |
-
<h2>What is 3D Bear App?</h2>
|
5 |
-
<p>3D Bear app is a mobile application that uses augmented reality (AR) technology to let you create and interact with 3D models in your everyday surroundings. AR is a technology that overlays digital information on top of the real world, creating a mixed reality experience. With 3D Bear app, you can use your smartphone or tablet as a window to see and manipulate 3D models in your environment.</p>
|
6 |
-
<h2>download 3d bear app</h2><br /><p><b><b>DOWNLOAD</b> ->->->-> <a href="https://urlin.us/2uSRYi">https://urlin.us/2uSRYi</a></b></p><br /><br />
|
7 |
-
<h3>A mobile augmented reality solution</h3>
|
8 |
-
<p>Unlike virtual reality (VR), which requires special headsets and controllers, AR can be accessed with any device that has a camera and a screen. This makes AR more accessible and affordable for everyone. You can use 3D Bear app anywhere you want, whether it's at home, at school, or outdoors. You can also move around and explore your AR scenes from different angles and perspectives.</p>
|
9 |
-
<h3>A tool for learning and creativity</h3>
|
10 |
-
<p>3D Bear app is not just a game or a toy. It is also a tool for learning and creativity. You can use 3D Bear app to learn about various topics, such as science, history, art, and design. You can also use it to express your ideas and stories in a visual and interactive way. You can create anything you want with 3D models, from animals and plants, to buildings and vehicles, to characters and scenes.</p>
|
11 |
-
<p>How to download 3d bear app on iPhone<br />
|
12 |
-
Download 3d bear app for Android<br />
|
13 |
-
3d bear app review and features<br />
|
14 |
-
Best 3d modeling app for education<br />
|
15 |
-
Create your own virtual worlds with 3d bear app<br />
|
16 |
-
Download 3d bear app and get started with augmented reality<br />
|
17 |
-
3d bear app tutorial and tips<br />
|
18 |
-
How to use 3d bear app for immersive learning<br />
|
19 |
-
Download 3d bear app and join the arvrinedu community<br />
|
20 |
-
3d bear app pricing and plans<br />
|
21 |
-
How to download 3d bear app on iPad<br />
|
22 |
-
Download 3d bear app for Windows<br />
|
23 |
-
3d bear app case studies and testimonials<br />
|
24 |
-
Best 3d design app for creativity and collaboration<br />
|
25 |
-
Make your imagination a reality with 3d bear app<br />
|
26 |
-
Download 3d bear app and enjoy it on your iPod touch<br />
|
27 |
-
3d bear app support and FAQ<br />
|
28 |
-
How to use 3d bear app for virtual reality<br />
|
29 |
-
Download 3d bear app and access hundreds of 3d models<br />
|
30 |
-
3d bear app benefits and advantages<br />
|
31 |
-
How to download 3d bear app on Mac<br />
|
32 |
-
Download 3d bear app for Chromebook<br />
|
33 |
-
3d bear app awards and recognition<br />
|
34 |
-
Best 3d printing app for students and teachers<br />
|
35 |
-
Visualize your ideas in your everyday surroundings with 3dbear app<br />
|
36 |
-
Download 3dbear app and try the demo version<br />
|
37 |
-
3dbear app blog and news updates<br />
|
38 |
-
How to use 3dbear app for circular economy in business<br />
|
39 |
-
Download 3dbear app and control robots with ar-glasses<br />
|
40 |
-
3dbear app challenges and competitions<br />
|
41 |
-
How to download 3dbear app on Linux<br />
|
42 |
-
Download 3dbear app for Kindle Fire<br />
|
43 |
-
3dbear app partners and collaborators<br />
|
44 |
-
Best 3d scanning app for homecare and elderly care services<br />
|
45 |
-
Experience the holy grail of fusion experiments with 3dbear app<br />
|
46 |
-
Download 3dbear app and get a free trial<br />
|
47 |
-
3dbear app feedback and suggestions<br />
|
48 |
-
How to use 3dbear app for special needs students in Savon ammattiopisto <br />
|
49 |
-
Download 3dbear app and create love in the time of virtual reality <br />
|
50 |
-
3dbear app ratings and reviews</p>
|
51 |
-
<h3>A platform for sharing and collaboration</h3>
|
52 |
-
<p>Another feature of 3D Bear app is that it allows you to share your AR creations with others and see what they have made. You can record videos of your AR scenes and post them on the 3DBear community platform, where you can earn points and unlock more features. You can also browse other users' videos and give them feedback or inspiration. You can also collaborate with other users on joint projects or challenges.</p>
|
53 |
-
<h2>Why Download 3D Bear App?</h2>
|
54 |
-
<p>Now that you know what 3D Bear app is, you might be wondering why you should download it. Here are some reasons why:</p>
|
55 |
-
<h3>It's free and easy to use</h3>
|
56 |
-
<p>One of the best things about 3D Bear app is that it's free to download and use. You don't need to pay anything or register an account to start creating your own virtual worlds. You also don't need any prior experience or knowledge of AR or 3D modeling. The app has a simple and intuitive interface that guides you through the process of creating your AR scenes.</p>
|
57 |
-
<h3>It has a variety of 3D models and collections</h3>
|
58 |
-
<p>Another reason why you should download 3D Bear app is that it has a large and diverse library of 3D models and collections that you can use for your AR scenes. You can choose from categories such as animals, dinosaurs, space, furniture, vehicles, and more. You can also access collections that are curated by 3DBear or by other users. These collections are based on themes such as Halloween, Christmas, fairy tales, and more. You can also create your own collections and share them with others.</p>
|
59 |
-
<h3>It supports importing your own models and content</h3>
|
60 |
-
<p>If you want to customize your AR scenes even more, you can also import your own 3D models and content into 3D Bear app. You can use any 3D modeling software or app to create your own models, or you can download them from online sources. You can also import images and videos from your device or from the web. You can then use these models and content to enhance your AR scenes and make them more unique and personal.</p>
|
61 |
-
<h2>How to Download 3D Bear App?</h2>
|
62 |
-
<p>Downloading 3D Bear app is very easy and fast. You just need to follow these steps:</p>
|
63 |
-
<h3>For iOS devices</h3>
|
64 |
-
<p>If you have an iPhone or an iPad, you can download 3D Bear app from the App Store. Here's how:</p>
|
65 |
-
<ol>
|
66 |
-
<li>Open the App Store on your device.</li>
|
67 |
-
<li>Search for "3D Bear" in the search bar.</li>
|
68 |
-
<li>Tap on the app icon that says "3D Bear - Create Your Own World".</li>
|
69 |
-
<li>Tap on the "Get" button to download the app.</li>
|
70 |
-
<li>Wait for the app to install on your device.</li>
|
71 |
-
<li>Open the app and start creating your AR scenes.</li>
|
72 |
-
</ol>
|
73 |
-
<h3>For Android devices</h3>
|
74 |
-
<p>If you have an Android phone or tablet, you can download 3D Bear app from the Google Play Store. Here's how:</p>
|
75 |
-
<ol>
|
76 |
-
<li>Open the Google Play Store on your device.</li>
|
77 |
-
<li>Search for "3D Bear" in the search bar.</li>
|
78 |
-
<li>Tap on the app icon that says "3D Bear - Augmented Reality".</li>
|
79 |
-
<li>Tap on the "Install" button to download the app.</li>
|
80 |
-
<li>Wait for the app to install on your device.</li>
|
81 |
-
<li>Open the app and start creating your AR scenes.</li>
|
82 |
-
</ol>
|
83 |
-
<h2>How to Use 3D Bear App?</h2>
|
84 |
-
<p>Using 3D Bear app is very simple and fun. You just need to follow these steps:</p>
|
85 |
-
<h3>Choose a lesson plan or a challenge</h3>
|
86 |
-
<p>When you open the app, you will see two options: lesson plans and challenges. Lesson plans are guided activities that teach you about various topics and skills using 3D models. Challenges are creative tasks that test your imagination and problem-solving abilities using 3D models. You can choose either option depending on your preference and goal.</p>
|
87 |
-
<h3>Create your AR scene with 3D models</h3>
|
88 |
-
<p>After choosing a lesson plan or a challenge, you will enter the AR mode of the app. Here, you will see a camera view of your surroundings with a menu of 3D models at the bottom. You can tap on any model to select it and drag it onto your screen. You can then use gestures to move, rotate, scale, and delete the model. You can also use buttons to change the color, texture, opacity, and animation of the model. You can add as many models as you want to create your AR scene.</p>
|
89 |
-
<h3>Record and share your AR video</h3>
|
90 |
-
<p>When you are happy with your AR scene, you can record a video of it using the record button at the top right corner of the screen. You can also use voice-over or music to narrate or enhance your video. After recording, you can preview, edit, or save your video. You can then share your video with others using the share button at the bottom right corner of the screen. You can post your video on the 3DBear community platform, where you can earn points and unlock more features. You can also share your video on other social media platforms, such as Facebook, Instagram, YouTube, or TikTok.</p>
|
91 |
-
<h2>Conclusion</h2>
|
92 |
-
<p>In conclusion, 3D Bear app is a fun and educational way to create your own virtual worlds using augmented reality technology. You can use 3D Bear app to learn about various topics, express your creativity, and share your creations with others. You can download 3D Bear app for free from the App Store or the Google Play Store and start creating your AR scenes in minutes. So what are you waiting for? Download 3D Bear app today and unleash your imagination!</p>
|
93 |
-
FAQs Q: What devices are compatible with 3D Bear app A: 3D Bear app is compatible with iOS devices that support ARKit and Android devices that support ARCore. You can check the list of compatible devices here for iOS and here for Android. Q: How can I import my own 3D models and content into 3D Bear app? A: You can import your own 3D models and content into 3D Bear app by using the import button at the bottom left corner of the screen. You can then choose to import from your device, from the web, or from Google Poly. You can also scan real objects using the scan button and turn them into 3D models. Q: How can I collaborate with other users on 3D Bear app? A: You can collaborate with other users on 3D Bear app by joining or creating a group project. You can find group projects on the 3DBear community platform or create your own by inviting other users. You can then work together on a common theme or challenge and share your AR scenes with each other. Q: How can I earn points and unlock more features on 3D Bear app? A: You can earn points and unlock more features on 3D Bear app by completing lesson plans, challenges, and group projects. You can also earn points by sharing your AR videos, giving feedback to other users, and inviting your friends to join the app. You can use your points to unlock more 3D models, collections, and features. Q: How can I contact the 3DBear team for support or feedback? A: You can contact the 3DBear team for support or feedback by using the contact form on their website or by sending an email to [email protected]. You can also follow them on social media platforms, such as Facebook, Twitter, Instagram, and YouTube, to get the latest updates and news.</p> 197e85843d<br />
|
94 |
-
<br />
|
95 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/BGMI 2.2 APK and OBB Download Guide New Map Crossbow and More.md
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>BGMI 2.2 Update Download Apk: Everything You Need to Know</h1>
|
3 |
-
<p>If you are a fan of Battlegrounds Mobile India (BGMI), you must be eagerly waiting for the latest update of the game. The BGMI 2.2 update is finally here and it brings a lot of new features, improvements, and surprises for the players. In this article, we will tell you everything you need to know about the BGMI 2.2 update, including what's new, how to download it, and some tips to enjoy it better.</p>
|
4 |
-
<h2>What is BGMI?</h2>
|
5 |
-
<p>BGMI is a popular battle royale game that was launched in India in July 2021 by Krafton, the developer of PUBG Mobile. The game is similar to PUBG Mobile, but with some changes and adaptations to suit the Indian market and regulations. BGMI allows you to play solo, duo, or squad matches with up to 100 players on various maps and modes. You can also customize your character, weapons, vehicles, and accessories with a variety of skins and outfits. The game is free to play, but you can also purchase in-game currency and items with real money.</p>
|
6 |
-
<h2>bgmi 2.2 update download apk</h2><br /><p><b><b>Download File</b> ⚙⚙⚙ <a href="https://jinyurl.com/2uNRHt">https://jinyurl.com/2uNRHt</a></b></p><br /><br />
|
7 |
-
<h2>What's new in BGMI 2.2 update?</h2>
|
8 |
-
<p>The BGMI 2.2 update is one of the biggest updates of the game so far. It introduces a lot of new content and features that will make your gaming experience more exciting and fun. Here are some of the major highlights of the update:</p>
|
9 |
-
<h3>New map: NUSA</h3>
|
10 |
-
<p>NUSA is a new map that is exclusive to BGMI. It is based on Indonesia and features a tropical island with diverse landscapes, such as beaches, forests, villages, temples, and volcanoes. The map is 8x8 km in size and supports up to 64 players. NUSA also has some unique elements, such as hot air balloons, zip lines, waterfalls, and lava flows. You can explore the map and find hidden secrets and treasures along the way.</p>
|
11 |
-
<h3>New weapon: Tactical Crossbow</h3>
|
12 |
-
<p>The Tactical Crossbow is a new weapon that is available on NUSA map only. It is a silent and deadly weapon that can fire three types of bolts: explosive, electric, and tracking. The explosive bolt can deal damage to enemies and vehicles within a small radius. The electric bolt can stun enemies and disable vehicles for a short time. The tracking bolt can mark enemies on the mini-map for your teammates to see. The Tactical Crossbow has a limited range and ammo capacity, so use it wisely.</p>
|
13 |
-
<h3>New voice pack: The Voice of Battlegrounds</h3>
|
14 |
-
<p>The Voice of Battlegrounds is a new voice pack that you can use to communicate with your teammates and enemies in the game. It features the voice of Jonathan Frakes, a famous actor and director who is best known for his role as Commander Riker in Star Trek: The Next Generation. The voice pack has over 200 lines of dialogue that cover various situations and scenarios in the game. You can also customize the voice pack with different accents, tones, and languages.</p>
|
15 |
-
<h3>New modes: Payload 2.0 and Infection Mode</h3>
|
16 |
-
<p>Payload 2.0 is a new mode that is available on Erangel map only. It is an upgraded version of the original Payload mode that was introduced in PUBG Mobile. In this mode, you can use various heavy weapons and vehicles, such as rocket launchers, grenade launchers, helicopters, and armored trucks. You can also revive your teammates with a special device and call for air drops and airstrikes. The mode is fast-paced and action-packed, so be ready for some intense battles. Infection Mode is a new mode that is available on NUSA map only. It is a zombie-themed mode that pits two teams of players against each other: defenders and zombies. The defenders have to survive until the end of the match, while the zombies have to infect all the defenders. The zombies have different abilities and classes, such as speedsters, stealthers, and brutes. The defenders have limited weapons and ammo, but they can use traps and barricades to protect themselves. The mode is thrilling and suspenseful, so be careful of the lurking zombies. <h3>New events: Halloween and Diwali celebrations</h3>
|
17 |
-
<p>The BGMI 2.2 update also brings some festive events to celebrate Halloween and Diwali. You can participate in these events and earn rewards, such as skins, outfits, emotes, and vouchers. You can also enjoy some special features, such as pumpkin lanterns, firecrackers, and fireworks. The events will run from October 31 to November 14, so don't miss this chance to have some fun and show your spirit.</p>
|
18 |
-
<h3>New skins, outfits, and accessories</h3>
|
19 |
-
<p>Of course, no update is complete without some new skins, outfits, and accessories to spice up your look. The BGMI 2.2 update offers a variety of new items that you can get from crates, spins, shops, or events. Some of the new items include: - NUSA-themed skins for weapons, vehicles, parachutes, and backpacks - Tactical Crossbow-themed skins for crossbows - The Voice of Battlegrounds-themed skins for helmets and vests - Halloween-themed skins for weapons and vehicles - Diwali-themed skins for weapons and vehicles - Star Trek-themed outfits and accessories - Zombie-themed outfits and accessories - And more! You can mix and match these items to create your own unique style and impress your friends and foes.</p>
|
20 |
-
<p>How to download bgmi 2.2 update apk for android<br />
|
21 |
-
BGMI 2.2 update apk download link and installation guide<br />
|
22 |
-
BGMI 2.2 update apk and obb files: real or fake?<br />
|
23 |
-
BGMI 2.2 update release date, features, and patch notes<br />
|
24 |
-
BGMI 2.2 update apk: new map, crossbow, voice pack, and more<br />
|
25 |
-
BGMI 2.2 update download apk: latest details out by Krafton<br />
|
26 |
-
BGMI 2.2 update apk download: how to get early access<br />
|
27 |
-
BGMI 2.2 update apk: is it safe and legal to download?<br />
|
28 |
-
BGMI 2.2 update apk download: tips and tricks to avoid errors<br />
|
29 |
-
BGMI 2.2 update apk: what's new in the latest version of Battlegrounds Mobile India<br />
|
30 |
-
BGMI 2.2 update apk download: best settings and graphics options<br />
|
31 |
-
BGMI 2.2 update apk: how to play the new NUSA map<br />
|
32 |
-
BGMI 2.2 update apk download: everything you need to know about the tactical crossbow<br />
|
33 |
-
BGMI 2.2 update apk: how to use the new voice pack feature<br />
|
34 |
-
BGMI 2.2 update apk download: how to get free rewards and coupons<br />
|
35 |
-
BGMI 2.2 update apk: how to transfer your data from PUBG Mobile<br />
|
36 |
-
BGMI 2.2 update apk download: how to fix lag and ping issues<br />
|
37 |
-
BGMI 2.2 update apk: how to join the official discord server and community<br />
|
38 |
-
BGMI 2.2 update apk download: how to report hackers and cheaters<br />
|
39 |
-
BGMI 2.2 update apk: how to customize your character and outfits<br />
|
40 |
-
BGMI 2.2 update apk download: how to rank up faster and earn more BP<br />
|
41 |
-
BGMI 2.2 update apk: how to unlock the new emotes and gestures<br />
|
42 |
-
BGMI 2.2 update apk download: how to stream and record your gameplay<br />
|
43 |
-
BGMI 2.2 update apk: how to improve your aim and skills<br />
|
44 |
-
BGMI 2.2 update apk download: how to play with your friends and squad up<br />
|
45 |
-
BGMI 2.2 update apk: how to enable the gyroscope and ADS settings<br />
|
46 |
-
BGMI 2.2 update apk download: how to change your name and profile picture<br />
|
47 |
-
BGMI 2.2 update apk: how to redeem codes and vouchers<br />
|
48 |
-
BGMI 2.2 update apk download: how to check your stats and achievements<br />
|
49 |
-
BGMI 2.2 update apk: how to participate in tournaments and events<br />
|
50 |
-
BGMI 2.2 update apk download: how to get the M15 Royale Pass for free<br />
|
51 |
-
BGMI 2.2 update apk: how to master the new vehicles and weapons<br />
|
52 |
-
BGMI 2.2 update apk download: how to optimize your battery and storage space<br />
|
53 |
-
BGMI 2.2 update apk: how to enable the HDR mode and ultra HD graphics<br />
|
54 |
-
BGMI 2.2 update apk download: how to link your social media accounts and invite friends<br />
|
55 |
-
BGMI 2.2 update apk: how to use the quick chat and voice chat features<br />
|
56 |
-
BGMI 2.2 update apk download: how to access the training mode and practice range<br />
|
57 |
-
BGMI 2.2 update apk: how to switch between TPP and FPP modes<br />
|
58 |
-
BGMI 2.3 beta version registration, eligibility, and requirements</p>
|
59 |
-
<h2>How to download BGMI 2.2 update apk?</h2>
|
60 |
-
<p>If you are wondering how to download the BGMI 2.2 update apk on your device, don't worry. We have got you covered. Just follow these simple steps and you will be able to enjoy the update in no time.</p>
|
61 |
-
<h3>Requirements and precautions</h3>
|
62 |
-
<p>Before you download the update, make sure that your device meets the following requirements: - Android version: 5.1.1 or above - RAM: 2 GB or more - Storage space: 1 GB or more Also, make sure that you have a stable internet connection and enough battery power. It is recommended that you back up your game data before updating to avoid any loss or corruption.</p>
|
63 |
-
<h3>Download link and instructions</h3>
|
64 |
-
<p>To download the BGMI 2.2 update apk, you can use this link: [BGMI 2.2 Update Download Apk]. This is the official link from Krafton's website and it is safe and secure. Once you have downloaded the apk file, follow these instructions to install it on your device: - Locate the apk file in your device's file manager or downloads folder - Tap on the apk file to start the installation process - Allow the installation from unknown sources if prompted - Wait for the installation to complete - Launch the game and enjoy the update Note: If you have already installed BGMI on your device from Google Play Store or any other source, you don't need to uninstall it before installing the update. The update will overwrite the existing version without affecting your game data.</p>
|
65 |
-
<h3>Troubleshooting tips</h3>
|
66 |
-
<p>If you face any issues while downloading or installing the update, try these tips to solve them: - Check your internet connection and try again - Clear your device's cache and storage space - Restart your device and try again - Contact Krafton's customer support if the problem persists We hope that these tips will help you resolve any problems that you may encounter.</p>
|
67 |
-
<h2>Conclusion</h2>
|
68 |
-
<p>The BGMI 2.2 update is a massive update that brings a lot of new content and features to the game. You can explore a new map, use a new weapon, communicate with a new voice pack, play new modes, join new events, and get new skins, outfits, and accessories. You can also download the update easily by following our guide above. So what are you waiting for? Download the BGMI 2.2 update apk now and experience the thrill of Battlegrounds Mobile India like never before!</p>
|
69 |
-
<h4>FAQs</h4> <p>Here are some of the frequently asked questions (FAQs) about the BGMI 2.2 update:</p>
|
70 |
-
<table>
|
71 |
-
<tr>
|
72 |
-
<th>Question</th>
|
73 |
-
<th>Answer</th>
|
74 |
-
</tr>
|
75 |
-
<tr>
|
76 |
-
<td>Is the BGMI 2.2 update available for iOS devices?</td>
|
77 |
-
<td>No, the BGMI 2.2 update is currently available for Android devices only. Krafton has not announced any plans to release the update for iOS devices yet.</td>
|
78 |
-
</tr>
|
79 |
-
<tr>
|
80 |
-
<td>How big is the BGMI 2.2 update apk file?</td>
|
81 |
-
<td>The BGMI 2.2 update apk file is about 1 GB in size. However, you may need additional storage space to download and install the update on your device.</td>
|
82 |
-
</tr>
|
83 |
-
<tr>
|
84 |
-
<td>Can I play with players from other regions or versions of the game?</td>
|
85 |
-
<td>No, you can only play with players from India who have the same version of the game as you. You cannot play with players from other regions or versions of the game, such as PUBG Mobile or PUBG Mobile Lite.</td>
|
86 |
-
</tr>
|
87 |
-
<tr>
|
88 |
-
<td>Will I lose my progress or rank if I update the game?</td>
|
89 |
-
<td>No, you will not lose your progress or rank if you update the game. Your game data will be saved and transferred to the new version without any loss or corruption.</td>
|
90 |
-
</tr>
|
91 |
-
<tr>
|
92 |
-
<td>How can I get more in-game currency and items in the game?</td>
|
93 |
-
<td>You can get more in-game currency and items in the game by completing missions, participating in events, opening crates, spinning wheels, or purchasing them with real money. You can also use some promo codes or coupons to get some free rewards.</td>
|
94 |
-
</tr>
|
95 |
-
</table>
|
96 |
-
<p>I hope that these FAQs will answer some of your queries and doubts about the BGMI 2.2 update. If you have any other questions, feel free to leave a comment below or contact Krafton's customer support.</p> 401be4b1e0<br />
|
97 |
-
<br />
|
98 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Data Structure Using C By Udit Agarwal Pdf Free Extra Quality.md
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
## Data Structure Using C By Udit Agarwal Pdf Free
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
**Click Here ✦✦✦ [https://vittuv.com/2tBMuA](https://vittuv.com/2tBMuA)**
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
# Data Structure Using C By Udit Agarwal: A Comprehensive Guide for Beginners
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
Data structures are the fundamental building blocks of any computer program. They are used to store, organize, and manipulate data efficiently. Data structures can be classified into two types: linear and nonlinear. Linear data structures store data in a sequential manner, such as arrays, stacks, queues, and linked lists. Nonlinear data structures store data in a hierarchical or networked manner, such as trees, graphs, and heaps.
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
Learning data structures is essential for any aspiring programmer, as it helps them to design and implement efficient algorithms for various problems. However, learning data structures can be challenging, especially for beginners who are not familiar with the syntax and concepts of programming languages. That is why Data Structure Using C By Udit Agarwal is a perfect book for beginners who want to learn data structures using C.
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
Data Structure Using C By Udit Agarwal is a comprehensive book that covers all the topics related to data structures using C. The book starts with an introduction to C programming language, followed by chapters on arrays, strings, pointers, structures, unions, files, and dynamic memory allocation. The book then explains the concepts and implementation of various linear and nonlinear data structures using C. The book also includes numerous examples, exercises, and case studies to help the readers understand and apply the concepts.
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
The book is written in a simple and lucid language that makes it easy to follow for beginners. The book also follows a systematic and logical approach that helps the readers to grasp the concepts quickly. The book is suitable for students of computer science and engineering, as well as professionals who want to refresh their knowledge of data structures using C.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
Data Structure Using C By Udit Agarwal is available in PDF format for free download from various online sources[^1^] [^2^] [^3^]. The book also comes with a CD that contains the source code of all the programs discussed in the book. The book is a must-read for anyone who wants to learn data structures using C.
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
## Linear Data Structures
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
Linear data structures are the simplest type of data structures that store data in a sequential manner. They have a linear relationship between the elements, meaning that each element has a unique predecessor and successor, except for the first and last element. Linear data structures can be implemented using arrays or linked lists. Some of the common linear data structures are:
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
- **Arrays:** An array is a collection of homogeneous elements that are stored in contiguous memory locations. Each element can be accessed by its index, which is a positive integer that represents its position in the array. Arrays have a fixed size and are easy to implement and use. However, arrays have some limitations, such as wasting memory space if not fully utilized, difficulty in inserting and deleting elements, and lack of flexibility in resizing.
|
58 |
-
|
59 |
-
- **Stacks:** A stack is a collection of elements that follows the Last-In-First-Out (LIFO) principle. This means that the last element inserted into the stack is the first one to be removed from it. A stack has two basic operations: push and pop. Push adds an element to the top of the stack, while pop removes and returns the top element from the stack. A stack can be used to implement recursion, reverse a string, check for balanced parentheses, and evaluate postfix expressions.
|
60 |
-
|
61 |
-
- **Queues:** A queue is a collection of elements that follows the First-In-First-Out (FIFO) principle. This means that the first element inserted into the queue is the first one to be removed from it. A queue has two basic operations: enqueue and dequeue. Enqueue adds an element to the rear of the queue, while dequeue removes and returns the front element from the queue. A queue can be used to implement scheduling, buffering, simulation, and breadth-first search.
|
62 |
-
|
63 |
-
- **Linked Lists:** A linked list is a collection of heterogeneous elements that are stored in non-contiguous memory locations. Each element is called a node, which contains some data and a pointer to the next node. The first node is called the head, and the last node is called the tail. A linked list has no fixed size and can grow or shrink dynamically. A linked list can overcome some of the limitations of arrays, such as wasting memory space, difficulty in inserting and deleting elements, and lack of flexibility in resizing. However, linked lists have some drawbacks, such as increased complexity in implementation and access time, difficulty in random access, and extra memory space for pointers.
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
145887f19f
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download LOST in BLUE and Explore a Mysterious Island on Android.md
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Download Lost in Blue for Android</h1>
|
3 |
-
<p>Do you love survival games that challenge you to use your wits and skills to stay alive on a mysterious island? If so, you might want to check out <strong>Lost in Blue</strong>, a survival sandbox game developed by Volcano Force for Android devices. In this game, you will have to collect resources, craft items, build facilities, and fight enemies as you try to find a way back home. You can also team up with other players from around the world and form camps to cooperate and compete with each other. In this article, we will show you how to download Lost in Blue for Android and give you some tips on how to start playing.</p>
|
4 |
-
<h2>What is Lost in Blue?</h2>
|
5 |
-
<p>Lost in Blue is a survival sandbox game that was released globally in June 2023. The game is inspired by the popular Lost in Blue series of video games that were originally released for Nintendo DS. The game has received positive reviews from critics and players alike for its stunning graphics, immersive gameplay, and diverse content.</p>
|
6 |
-
<h2>download lost in blue for android</h2><br /><p><b><b>DOWNLOAD</b> ⇒ <a href="https://jinyurl.com/2uNSGV">https://jinyurl.com/2uNSGV</a></b></p><br /><br />
|
7 |
-
<p>The game's story begins with a plane crash that leaves you stranded on a strange island. You will have to explore various natural environments like beaches, rainforests, volcanoes, glaciers, etc. and overcome different obstacles such as mutant zombies, militias, wild creatures, etc. You will also have to craft weapons and tools, build facilities and houses, and grow food to survive. You can choose from four different professions that affect your skills and abilities: hunter, gatherer, engineer, or doctor. You can also join or create camps with other players and cooperate or compete with them.</p>
|
8 |
-
<h3>Why should you play Lost in Blue?</h3>
|
9 |
-
<p>There are many reasons why you should download and play Lost in Blue if you are a fan of survival games. Here are some of them:</p>
|
10 |
-
<p>lost in blue android apk download<br />
|
11 |
-
how to download lost in blue game on android<br />
|
12 |
-
lost in blue survival game for android free download<br />
|
13 |
-
download lost in blue mod apk for android<br />
|
14 |
-
lost in blue android game download latest version<br />
|
15 |
-
download lost in blue offline game for android<br />
|
16 |
-
lost in blue android apk + obb download<br />
|
17 |
-
best site to download lost in blue for android<br />
|
18 |
-
download lost in blue full game for android<br />
|
19 |
-
lost in blue android game download size<br />
|
20 |
-
lost in blue android game review and download<br />
|
21 |
-
download lost in blue hack apk for android<br />
|
22 |
-
lost in blue android game download without verification<br />
|
23 |
-
download lost in blue cheats for android<br />
|
24 |
-
lost in blue android game download link<br />
|
25 |
-
download lost in blue tips and tricks for android<br />
|
26 |
-
lost in blue android game download from play store<br />
|
27 |
-
download lost in blue guide for android<br />
|
28 |
-
lost in blue android game download requirements<br />
|
29 |
-
download lost in blue walkthrough for android<br />
|
30 |
-
lost in blue android game free download no ads<br />
|
31 |
-
download lost in blue update for android<br />
|
32 |
-
lost in blue android game download error fix<br />
|
33 |
-
download lost in blue wallpaper for android<br />
|
34 |
-
lost in blue android game download high graphics<br />
|
35 |
-
download lost in blue soundtrack for android<br />
|
36 |
-
lost in blue android game download compatible devices<br />
|
37 |
-
download lost in blue emulator for android<br />
|
38 |
-
lost in blue android game download gameplay video<br />
|
39 |
-
download lost in blue theme for android<br />
|
40 |
-
lost in blue android game free download unlimited money<br />
|
41 |
-
download lost in blue pc version for android<br />
|
42 |
-
lost in blue android game free download no root<br />
|
43 |
-
download lost in blue ios version for android<br />
|
44 |
-
lost in blue android game free download no survey<br />
|
45 |
-
download lost in blue online multiplayer for android<br />
|
46 |
-
lost in blue android game free download safe and secure<br />
|
47 |
-
download lost in blue beta version for android<br />
|
48 |
-
lost in blue android game free download fast and easy<br />
|
49 |
-
download lost in blue original version for android</p>
|
50 |
-
<ul>
|
51 |
-
<li>The game has <strong>amazing graphics</strong> that make you feel like you are really on an island. The game uses realistic lighting effects, dynamic weather changes, and detailed textures that create a stunning visual experience.</li>
|
52 |
-
<li>The game has <strong>engaging gameplay</strong> that keeps you hooked for hours. The game offers a lot of activities and challenges that test your survival skills. You can explore different locations, collect resources, craft items, build facilities, and fight enemies. You can also trade, chat, and cooperate with other players in real-time.</li>
|
53 |
-
<li>The game has <strong>diverse content</strong> that offers a lot of variety and replay value. The game has over 100 types of resources, over 200 types of items, over 50 types of facilities, and over 40 types of enemies. The game also has different modes, such as story mode, survival mode, and multiplayer mode.</li>
|
54 |
-
</ul>
|
55 |
-
<h2>How to download Lost in Blue for Android?</h2>
|
56 |
-
<p>If you are interested in playing Lost in Blue, you will need to download and install the game on your Android device. The game is available for free on the Google Play Store, but it also has some in-app purchases that can enhance your gaming experience. Here is a step-by-step guide on how to download Lost in Blue for Android:</p>
|
57 |
-
<h3>Requirements for downloading Lost in Blue</h3>
|
58 |
-
<p>Before you download Lost in Blue, you should make sure that your device meets the minimum and recommended specifications for running the game smoothly. According to the game's official website, these are the requirements for downloading Lost in Blue:</p>
|
59 |
-
<table>
|
60 |
-
<tr>
|
61 |
-
<th>Minimum</th>
|
62 |
-
<th>Recommended</th>
|
63 |
-
</tr>
|
64 |
-
<tr>
|
65 |
-
<td>Android 5.0 or higher</td>
|
66 |
-
<td>Android 8.0 or higher</td>
|
67 |
-
</tr>
|
68 |
-
<tr>
|
69 |
-
<td>2 GB of RAM</td>
|
70 |
-
<td>4 GB of RAM or more</td>
|
71 |
-
</tr>
|
72 |
-
<tr>
|
73 |
-
<td>2 GB of free storage space</td>
|
74 |
-
<td>4 GB of free storage space or more</td>
|
75 |
-
</tr>
|
76 |
-
<tr>
|
77 |
-
<td>Internet connection</td>
|
78 |
-
<td>Wi-Fi or 4G connection</td>
|
79 |
-
</tr>
|
80 |
-
</table>
|
81 |
-
<h3>Steps for downloading Lost in Blue</h3>
|
82 |
-
<p>Once you have checked that your device meets the requirements, you can follow these steps to download Lost in Blue:</p>
|
83 |
-
<ol>
|
84 |
-
<li>Open the Google Play Store app on your device and search for "Lost in Blue" or use this link to go directly to the game's page.</li>
|
85 |
-
<li>Tap on the "Install" button and wait for the game to download and install on your device. The game's size is about 1.5 GB, so it may take some time depending on your internet speed.</li>
|
86 |
-
<li>After the installation is complete, tap on the "Open" button or find the game's icon on your home screen and launch the game.</li>
|
87 |
-
<li>The game will ask you to grant some permissions, such as access to your storage, location, microphone, etc. You can choose to allow or deny these permissions, but some of them may be necessary for the game to function properly.</li>
|
88 |
-
<li>The game will also ask you to log in with your Google account or create a new account with your email address. You can choose either option, but logging in with your Google account will allow you to sync your progress across different devices and access some features like leaderboards and achievements.</li>
|
89 |
-
<li>The game will then load some data and resources and take you to the main menu. You can now start playing Lost in Blue!</li>
|
90 |
-
</ol>
|
91 |
-
<h3>Tips for downloading Lost in Blue</h3>
|
92 |
-
<p>To avoid any issues or errors while downloading Lost in Blue, here are some tips that you should keep in mind:</p>
|
93 |
-
<ul>
|
94 |
-
<li>Make sure that you have enough storage space on your device before downloading the game. You can check your available space by going to Settings > Storage on your device.</li>
|
95 |
-
<li>Make sure that you have a stable internet connection while downloading the game. You can use Wi-Fi or 4G if possible, as they are faster and more reliable than 3G or other networks.</li>
|
96 |
-
<li>Make sure that your device's battery is sufficiently charged before downloading the game. You can plug in your device to a power source or enable battery saver mode if needed.</li>
|
97 |
-
<li>If you encounter any problems while downloading the game, such as slow speed, interrupted download, or corrupted file, you can try clearing the cache and data of the Google Play Store app by going to Settings > Apps > Google Play Store > Storage > Clear Cache/Clear Data. You can also try restarting your device or using a different network.</li>
|
98 |
-
<li>If you have any questions or feedback about the game, you can contact the game's customer service by tapping on the "Help" button on the main menu or sending an email to [email protected].</li>
|
99 |
-
</ul>
|
100 |
-
<h2>How to start playing Lost in Blue?</h2> in various events and activities. However, joining a camp also means that you will have to follow the camp's rules and share your resources with other members. You can also leave or change your camp at any time, but you will lose some of your progress and items.</p>
|
101 |
-
<p>To join a camp, follow these steps:</p>
|
102 |
-
<ol>
|
103 |
-
<li>After choosing your profession, you will see a screen where you can join a camp. You can tap on the "Join Camp" button to see a list of available camps that you can join.</li>
|
104 |
-
<li>You can also tap on the "Create Camp" button to create your own camp. You will need to enter a camp name, a camp slogan, and a camp flag. You will also need to pay some gold coins as a creation fee.</li>
|
105 |
-
<li>Whether you join or create a camp, you will see a screen where you can see your camp's information, such as its name, slogan, flag, members, level, rank, etc. You can also see your camp's base on the map and visit it by tapping on the "Go" button.</li>
|
106 |
-
<li>You have successfully joined a camp!</li>
|
107 |
-
</ol>
|
108 |
-
<h2>How to survive in Lost in Blue?</h2>
|
109 |
-
<p>Now that you have completed the initial steps, you are ready to start your survival adventure in Lost in Blue. However, surviving on the island is not easy, as you will face many dangers and difficulties. You will need to gather resources, craft items, build facilities, and fight enemies to stay alive. Here are some basic tips and tricks on how to survive in Lost in Blue:</p>
|
110 |
-
<h3>Gathering resources</h3>
|
111 |
-
<p>One of the most important aspects of survival is gathering resources. Resources are materials that you can collect from the environment and use for crafting or building. There are many types of resources in Lost in Blue, such as wood, stone, metal, fiber, food, water, etc. You can find them in different locations, such as forests, beaches, caves, etc.</p>
|
112 |
-
<p>To gather resources, follow these steps:</p>
|
113 |
-
<ol>
|
114 |
-
<li>Find a resource node that you want to collect. You can see the name and icon of the resource on the top of the screen when you approach it.</li>
|
115 |
-
<li>Tap on the resource node to start gathering it. You will see a progress bar that shows how much of the resource you have collected.</li>
|
116 |
-
<li>If you have a tool that matches the resource type, such as an axe for wood or a pickaxe for stone, you can use it to gather faster and get more resources. You can equip a tool by tapping on its icon on the bottom right corner of the screen.</li>
|
117 |
-
<li>When you have collected enough of the resource, it will be added to your inventory. You can check your inventory by tapping on the backpack icon on the top right corner of the screen.</li>
|
118 |
-
<li>You have successfully gathered resources!</li>
|
119 |
-
</ol>
|
120 |
-
<h3>Crafting items</h3>
|
121 |
-
<p>Another important aspect of survival is crafting items. Items are objects that you can create from the resources you gathered and use for various purposes. There are many types of items in Lost in Blue, such as weapons, tools, equipment, consumables, etc. You can use them to improve your survival chances, such as by increasing your attack power, defense, speed, health, etc.</p>
|
122 |
-
<p>To craft items, follow these steps:</p>
|
123 |
-
<ol>
|
124 |
-
<li>Open your inventory by tapping on the backpack icon on the top right corner of the screen.</li>
|
125 |
-
<li>Tap on the "Craft" button on the bottom of the screen to see the list of items that you can craft.</li>
|
126 |
-
<li>Tap on the item that you want to craft to see its details, such as its name, description, icon, and required resources.</li>
|
127 |
-
<li>If you have enough resources to craft the item, you can tap on the "Craft" button below the item details. You will see a progress bar that shows how long it takes to craft the item.</li>
|
128 |
-
<li>When the crafting is complete, the item will be added to your inventory. You can equip or use the item by tapping on its icon in your inventory.</li>
|
129 |
-
<li>You have successfully crafted items!</li>
|
130 |
-
</ol>
|
131 |
-
<h3>Building facilities</h3>
|
132 |
-
<p>Another important aspect of survival is building facilities. Facilities are structures that you can build from the resources you gathered and use for various purposes. There are many types of facilities in Lost in Blue, such as houses, workbenches, towers, fences, etc. You can use them to enhance your camp, such as by providing shelter, storage, production, defense, etc.</p>
|
133 |
-
<p>To build facilities, follow these steps:</p>
|
134 |
-
<ol>
|
135 |
-
<li>Go to your camp's base by tapping on the "Camp" button on the top left corner of the screen and then tapping on the "Go" button next to your camp's name.</li>
|
136 |
-
<li>Tap on the "Build" button on the bottom of the screen to see the list of facilities that you can build.</li>
|
137 |
-
<li>Tap on the facility that you want to build to see its details, such as its name, description, icon, and required resources.</li>
|
138 |
-
<li>If you have enough resources to build the facility, you can tap on the "Build" button below the facility details. You will see a blueprint of the facility that you can drag and rotate on the ground.</li>
|
139 |
-
<li>When you have found a suitable spot for the facility, you can tap on the "Confirm" button to start building it. You will see a progress bar that shows how long it takes to build the facility.</li>
|
140 |
-
<li>When the building is complete, the facility will be ready to use. You can interact with it by tapping on it and choosing an option from the menu.</li>
|
141 |
-
<li>You have successfully built facilities!</li>
|
142 |
-
</ol>
|
143 |
-
<h3>Fighting enemies</h3>
|
144 |
-
<p>The final aspect of survival that we will cover is fighting enemies. Enemies are hostile creatures or players that will try to attack you and harm you. There are many types of enemies in Lost in Blue, such as zombies, wild animals, militias, other players, etc. You will need to fight them to protect yourself and your camp, as well as to get loot and rewards from them.</p>
|
145 |
-
<p>To fight enemies, follow these steps:</p>
|
146 |
-
<ol>
|
147 |
-
<li>Find an enemy that you want to fight. You can see the name and health bar of the enemy on the top of the screen when you target it.</li>
|
148 |
-
<li>Tap on the enemy to start attacking it. You will use your equipped weapon or tool to deal damage to the enemy. You can also use the virtual joystick and buttons to move around and dodge the enemy's attacks.</li>
|
149 |
-
<li>If you have any items or skills that can help you in combat, such as consumables, traps, or abilities, you can use them by tapping on their icons on the bottom right corner of the screen.</li>
|
150 |
-
<li>When you have reduced the enemy's health to zero, you will defeat it. You can loot the enemy's corpse by tapping on it and choosing an option from the menu. You can get various items and resources from the enemy, such as meat, leather, metal, etc.</li>
|
151 |
-
<li>You have successfully fought enemies!</li>
|
152 |
-
</ol>
|
153 |
-
<h2>Conclusion</h2>
|
154 |
-
<p>In this article, we have shown you how to download Lost in Blue for Android and how to start playing the game. We have also given you some basic tips and tricks on how to survive on the island. We hope that you have found this article helpful and informative. If you are looking for a survival sandbox game that offers a lot of fun and challenge, you should definitely give Lost in Blue a try. You can download the game for free from the Google Play Store and start your adventure today!</p>
|
155 |
-
<h3>FAQs</h3>
|
156 |
-
<p>Here are some frequently asked questions about Lost in Blue and their answers:</p>
|
157 |
-
<ul>
|
158 |
-
<li><strong>Q: How can I play with my friends in Lost in Blue?</strong></li>
|
159 |
-
<li>A: You can play with your friends in Lost in Blue by joining or creating a camp with them. You can invite your friends to your camp by tapping on the "Camp" button on the top left corner of the screen and then tapping on the "Invite" button next to your friend's name. You can also join your friend's camp by tapping on the "Join Camp" button on the main menu and then searching for your friend's camp name.</li>
|
160 |
-
<li><strong>Q: How can I save my progress in Lost in Blue?</strong></li>
|
161 |
-
<li>A: You can save your progress in Lost in Blue by logging in with your Google account or creating a new account with your email address. The game will automatically sync your progress across different devices and platforms. You can also manually save your progress by tapping on the "Settings" button on the top right corner of the screen and then tapping on the "Save" button.</li>
|
162 |
-
<li><strong>Q: How can I change my profession in Lost in Blue?</strong></li>
|
163 |
-
<li>A: You can change your profession in Lost in Blue by tapping on the "Profession" button on the top right corner of the screen and then tapping on the "Change" button below your current profession. You will need to pay some gold coins as a change fee. You can also change your profession for free once every 24 hours.</li>
|
164 |
-
<li><strong>Q: How can I get more gold coins in Lost in Blue?</strong></li>
|
165 |
-
<li>A: You can get more gold coins in Lost in Blue by completing various tasks and achievements, participating in events and activities, trading with other players, or purchasing them with real money.</li>
|
166 |
-
<li><strong>Q: How can I contact the game's customer service?</strong></li>
|
167 |
-
<li>A: You can contact the game's customer service by tapping on the "Help" button on the main menu or sending an email to [email protected].</li>
|
168 |
-
</ul></p> 197e85843d<br />
|
169 |
-
<br />
|
170 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2023Liu2023/bingo/tests/parse.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
import { promises as fs } from 'fs'
|
2 |
-
import { join } from 'path'
|
3 |
-
import { parseHeadersFromCurl } from '@/lib/utils'
|
4 |
-
|
5 |
-
(async () => {
|
6 |
-
const content = await fs.readFile(join(__dirname, './fixtures/curl.txt'), 'utf-8')
|
7 |
-
const headers = parseHeadersFromCurl(content)
|
8 |
-
console.log(headers)
|
9 |
-
|
10 |
-
const cmdContent = await fs.readFile(join(__dirname, './fixtures/cmd.txt'), 'utf-8')
|
11 |
-
const cmdHeaders = parseHeadersFromCurl(cmdContent)
|
12 |
-
console.log(cmdHeaders)
|
13 |
-
})()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2ndelement/voicevox/build_util/check_release_build.py
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
ビルド結果をテストする
|
3 |
-
"""
|
4 |
-
import argparse
|
5 |
-
import json
|
6 |
-
import time
|
7 |
-
from io import BytesIO
|
8 |
-
from pathlib import Path
|
9 |
-
from subprocess import Popen
|
10 |
-
from urllib.parse import urlencode
|
11 |
-
from urllib.request import Request, urlopen
|
12 |
-
|
13 |
-
import soundfile
|
14 |
-
|
15 |
-
base_url = "http://127.0.0.1:50021/"
|
16 |
-
|
17 |
-
|
18 |
-
def test_release_build(dist_dir: Path, skip_run_process: bool) -> None:
|
19 |
-
run_file = dist_dir / "run"
|
20 |
-
if not run_file.exists():
|
21 |
-
run_file = dist_dir / "run.exe"
|
22 |
-
|
23 |
-
# 起動
|
24 |
-
process = None
|
25 |
-
if not skip_run_process:
|
26 |
-
process = Popen([run_file.absolute()], cwd=dist_dir)
|
27 |
-
time.sleep(60) # 待機
|
28 |
-
|
29 |
-
# バージョン取得テスト
|
30 |
-
req = Request(base_url + "version")
|
31 |
-
with urlopen(req) as res:
|
32 |
-
assert len(res.read()) > 0
|
33 |
-
|
34 |
-
# テキスト -> クエリ
|
35 |
-
text = "こんにちは、音声合成の世界へようこそ"
|
36 |
-
req = Request(
|
37 |
-
base_url + "audio_query?" + urlencode({"speaker": "1", "text": text}),
|
38 |
-
method="POST",
|
39 |
-
)
|
40 |
-
with urlopen(req) as res:
|
41 |
-
query = json.loads(res.read().decode("utf-8"))
|
42 |
-
|
43 |
-
# クエリ -> 音声
|
44 |
-
req = Request(base_url + "synthesis?speaker=1", method="POST")
|
45 |
-
req.add_header("Content-Type", "application/json")
|
46 |
-
req.data = json.dumps(query).encode("utf-8")
|
47 |
-
with urlopen(req) as res:
|
48 |
-
wave = res.read()
|
49 |
-
soundfile.read(BytesIO(wave))
|
50 |
-
|
51 |
-
# エンジンマニフェスト
|
52 |
-
req = Request(base_url + "engine_manifest", method="GET")
|
53 |
-
with urlopen(req) as res:
|
54 |
-
manifest = json.loads(res.read().decode("utf-8"))
|
55 |
-
assert "uuid" in manifest
|
56 |
-
|
57 |
-
if not skip_run_process:
|
58 |
-
# プロセスが稼働中であることを確認
|
59 |
-
assert process.poll() is None
|
60 |
-
|
61 |
-
# 停止
|
62 |
-
process.terminate()
|
63 |
-
|
64 |
-
|
65 |
-
if __name__ == "__main__":
|
66 |
-
parser = argparse.ArgumentParser()
|
67 |
-
parser.add_argument("--dist_dir", type=Path, default=Path("dist/"))
|
68 |
-
parser.add_argument("--skip_run_process", action="store_true")
|
69 |
-
args = parser.parse_args()
|
70 |
-
test_release_build(dist_dir=args.dist_dir, skip_run_process=args.skip_run_process)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/7hao/bingo/src/lib/utils.ts
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
import { clsx, type ClassValue } from 'clsx'
|
2 |
-
import { customAlphabet } from 'nanoid'
|
3 |
-
import { twMerge } from 'tailwind-merge'
|
4 |
-
|
5 |
-
export function cn(...inputs: ClassValue[]) {
|
6 |
-
return twMerge(clsx(inputs))
|
7 |
-
}
|
8 |
-
|
9 |
-
export const nanoid = customAlphabet(
|
10 |
-
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
|
11 |
-
7
|
12 |
-
) // 7-character random string
|
13 |
-
|
14 |
-
export function createChunkDecoder() {
|
15 |
-
const decoder = new TextDecoder()
|
16 |
-
return function (chunk: Uint8Array | undefined): string {
|
17 |
-
if (!chunk) return ''
|
18 |
-
return decoder.decode(chunk, { stream: true })
|
19 |
-
}
|
20 |
-
}
|
21 |
-
|
22 |
-
export function random (start: number, end: number) {
|
23 |
-
return start + Math.ceil(Math.random() * (end - start))
|
24 |
-
}
|
25 |
-
|
26 |
-
export function randomIP() {
|
27 |
-
return `11.${random(104, 107)}.${random(1, 255)}.${random(1, 255)}`
|
28 |
-
}
|
29 |
-
|
30 |
-
export function parseHeadersFromCurl(content: string) {
|
31 |
-
const re = /-H '([^:]+):\s*([^']+)/mg
|
32 |
-
const headers: HeadersInit = {}
|
33 |
-
content = content.replaceAll('-H "', '-H \'').replaceAll('" ^', '\'\\').replaceAll('^\\^"', '"') // 将 cmd curl 转成 bash curl
|
34 |
-
content.replace(re, (_: string, key: string, value: string) => {
|
35 |
-
headers[key] = value
|
36 |
-
return ''
|
37 |
-
})
|
38 |
-
|
39 |
-
return headers
|
40 |
-
}
|
41 |
-
|
42 |
-
export const ChunkKeys = ['BING_HEADER', 'BING_HEADER1', 'BING_HEADER2']
|
43 |
-
export function encodeHeadersToCookie(content: string) {
|
44 |
-
const base64Content = btoa(content)
|
45 |
-
const contentChunks = base64Content.match(/.{1,4000}/g) || []
|
46 |
-
return ChunkKeys.map((key, index) => `${key}=${contentChunks[index] ?? ''}`)
|
47 |
-
}
|
48 |
-
|
49 |
-
export function extraCurlFromCookie(cookies: Partial<{ [key: string]: string }>) {
|
50 |
-
let base64Content = ''
|
51 |
-
ChunkKeys.forEach((key) => {
|
52 |
-
base64Content += (cookies[key] || '')
|
53 |
-
})
|
54 |
-
try {
|
55 |
-
return atob(base64Content)
|
56 |
-
} catch(e) {
|
57 |
-
return ''
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
export function extraHeadersFromCookie(cookies: Partial<{ [key: string]: string }>) {
|
62 |
-
return parseHeadersFromCurl(extraCurlFromCookie(cookies))
|
63 |
-
}
|
64 |
-
|
65 |
-
export function formatDate(input: string | number | Date): string {
|
66 |
-
const date = new Date(input)
|
67 |
-
return date.toLocaleDateString('en-US', {
|
68 |
-
month: 'long',
|
69 |
-
day: 'numeric',
|
70 |
-
year: 'numeric'
|
71 |
-
})
|
72 |
-
}
|
73 |
-
|
74 |
-
export function parseCookie(cookie: string, cookieName: string) {
|
75 |
-
const targetCookie = new RegExp(`(?:[; ]|^)${cookieName}=([^;]*)`).test(cookie) ? RegExp.$1 : cookie
|
76 |
-
return targetCookie ? decodeURIComponent(targetCookie).trim() : cookie.indexOf('=') === -1 ? cookie.trim() : ''
|
77 |
-
}
|
78 |
-
|
79 |
-
export function parseCookies(cookie: string, cookieNames: string[]) {
|
80 |
-
const cookies: { [key: string]: string } = {}
|
81 |
-
cookieNames.forEach(cookieName => {
|
82 |
-
cookies[cookieName] = parseCookie(cookie, cookieName)
|
83 |
-
})
|
84 |
-
return cookies
|
85 |
-
}
|
86 |
-
|
87 |
-
export const DEFAULT_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36 Edg/115.0.0.0'
|
88 |
-
export const DEFAULT_IP = process.env.BING_IP || randomIP()
|
89 |
-
|
90 |
-
export function parseUA(ua?: string, default_ua = DEFAULT_UA) {
|
91 |
-
return / EDGE?/i.test(decodeURIComponent(ua || '')) ? decodeURIComponent(ua!.trim()) : default_ua
|
92 |
-
}
|
93 |
-
|
94 |
-
export function createHeaders(cookies: Partial<{ [key: string]: string }>, defaultHeaders?: Partial<{ [key: string]: string }>) {
|
95 |
-
let {
|
96 |
-
BING_COOKIE = process.env.BING_COOKIE,
|
97 |
-
BING_UA = process.env.BING_UA,
|
98 |
-
BING_IP = process.env.BING_IP,
|
99 |
-
BING_HEADER = process.env.BING_HEADER,
|
100 |
-
} = cookies
|
101 |
-
|
102 |
-
if (BING_HEADER) {
|
103 |
-
return extraHeadersFromCookie({
|
104 |
-
BING_HEADER,
|
105 |
-
...cookies,
|
106 |
-
})
|
107 |
-
}
|
108 |
-
|
109 |
-
const ua = parseUA(BING_UA)
|
110 |
-
|
111 |
-
if (!BING_COOKIE) {
|
112 |
-
BING_COOKIE = defaultHeaders?.IMAGE_BING_COOKIE || 'xxx' // hf 暂时不用 Cookie 也可以正常使用
|
113 |
-
}
|
114 |
-
|
115 |
-
const parsedCookie = parseCookie(BING_COOKIE, '_U')
|
116 |
-
if (!parsedCookie) {
|
117 |
-
throw new Error('Invalid Cookie')
|
118 |
-
}
|
119 |
-
return {
|
120 |
-
'x-forwarded-for': BING_IP || DEFAULT_IP,
|
121 |
-
'Accept-Encoding': 'gzip, deflate, br',
|
122 |
-
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
123 |
-
'User-Agent': ua!,
|
124 |
-
'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.0 OS/Win32',
|
125 |
-
cookie: `_U=${parsedCookie}` || '',
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
export class WatchDog {
|
130 |
-
private tid = 0
|
131 |
-
watch(fn: Function, timeout = 2000) {
|
132 |
-
clearTimeout(this.tid)
|
133 |
-
this.tid = setTimeout(fn, timeout + Math.random() * 1000)
|
134 |
-
}
|
135 |
-
reset() {
|
136 |
-
clearTimeout(this.tid)
|
137 |
-
}
|
138 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/801artistry/RVC801/infer/lib/uvr5_pack/lib_v5/layers_33966KB.py
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import torch.nn.functional as F
|
3 |
-
from torch import nn
|
4 |
-
|
5 |
-
from . import spec_utils
|
6 |
-
|
7 |
-
|
8 |
-
class Conv2DBNActiv(nn.Module):
|
9 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
|
10 |
-
super(Conv2DBNActiv, self).__init__()
|
11 |
-
self.conv = nn.Sequential(
|
12 |
-
nn.Conv2d(
|
13 |
-
nin,
|
14 |
-
nout,
|
15 |
-
kernel_size=ksize,
|
16 |
-
stride=stride,
|
17 |
-
padding=pad,
|
18 |
-
dilation=dilation,
|
19 |
-
bias=False,
|
20 |
-
),
|
21 |
-
nn.BatchNorm2d(nout),
|
22 |
-
activ(),
|
23 |
-
)
|
24 |
-
|
25 |
-
def __call__(self, x):
|
26 |
-
return self.conv(x)
|
27 |
-
|
28 |
-
|
29 |
-
class SeperableConv2DBNActiv(nn.Module):
|
30 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
|
31 |
-
super(SeperableConv2DBNActiv, self).__init__()
|
32 |
-
self.conv = nn.Sequential(
|
33 |
-
nn.Conv2d(
|
34 |
-
nin,
|
35 |
-
nin,
|
36 |
-
kernel_size=ksize,
|
37 |
-
stride=stride,
|
38 |
-
padding=pad,
|
39 |
-
dilation=dilation,
|
40 |
-
groups=nin,
|
41 |
-
bias=False,
|
42 |
-
),
|
43 |
-
nn.Conv2d(nin, nout, kernel_size=1, bias=False),
|
44 |
-
nn.BatchNorm2d(nout),
|
45 |
-
activ(),
|
46 |
-
)
|
47 |
-
|
48 |
-
def __call__(self, x):
|
49 |
-
return self.conv(x)
|
50 |
-
|
51 |
-
|
52 |
-
class Encoder(nn.Module):
|
53 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.LeakyReLU):
|
54 |
-
super(Encoder, self).__init__()
|
55 |
-
self.conv1 = Conv2DBNActiv(nin, nout, ksize, 1, pad, activ=activ)
|
56 |
-
self.conv2 = Conv2DBNActiv(nout, nout, ksize, stride, pad, activ=activ)
|
57 |
-
|
58 |
-
def __call__(self, x):
|
59 |
-
skip = self.conv1(x)
|
60 |
-
h = self.conv2(skip)
|
61 |
-
|
62 |
-
return h, skip
|
63 |
-
|
64 |
-
|
65 |
-
class Decoder(nn.Module):
|
66 |
-
def __init__(
|
67 |
-
self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.ReLU, dropout=False
|
68 |
-
):
|
69 |
-
super(Decoder, self).__init__()
|
70 |
-
self.conv = Conv2DBNActiv(nin, nout, ksize, 1, pad, activ=activ)
|
71 |
-
self.dropout = nn.Dropout2d(0.1) if dropout else None
|
72 |
-
|
73 |
-
def __call__(self, x, skip=None):
|
74 |
-
x = F.interpolate(x, scale_factor=2, mode="bilinear", align_corners=True)
|
75 |
-
if skip is not None:
|
76 |
-
skip = spec_utils.crop_center(skip, x)
|
77 |
-
x = torch.cat([x, skip], dim=1)
|
78 |
-
h = self.conv(x)
|
79 |
-
|
80 |
-
if self.dropout is not None:
|
81 |
-
h = self.dropout(h)
|
82 |
-
|
83 |
-
return h
|
84 |
-
|
85 |
-
|
86 |
-
class ASPPModule(nn.Module):
|
87 |
-
def __init__(self, nin, nout, dilations=(4, 8, 16, 32, 64), activ=nn.ReLU):
|
88 |
-
super(ASPPModule, self).__init__()
|
89 |
-
self.conv1 = nn.Sequential(
|
90 |
-
nn.AdaptiveAvgPool2d((1, None)),
|
91 |
-
Conv2DBNActiv(nin, nin, 1, 1, 0, activ=activ),
|
92 |
-
)
|
93 |
-
self.conv2 = Conv2DBNActiv(nin, nin, 1, 1, 0, activ=activ)
|
94 |
-
self.conv3 = SeperableConv2DBNActiv(
|
95 |
-
nin, nin, 3, 1, dilations[0], dilations[0], activ=activ
|
96 |
-
)
|
97 |
-
self.conv4 = SeperableConv2DBNActiv(
|
98 |
-
nin, nin, 3, 1, dilations[1], dilations[1], activ=activ
|
99 |
-
)
|
100 |
-
self.conv5 = SeperableConv2DBNActiv(
|
101 |
-
nin, nin, 3, 1, dilations[2], dilations[2], activ=activ
|
102 |
-
)
|
103 |
-
self.conv6 = SeperableConv2DBNActiv(
|
104 |
-
nin, nin, 3, 1, dilations[2], dilations[2], activ=activ
|
105 |
-
)
|
106 |
-
self.conv7 = SeperableConv2DBNActiv(
|
107 |
-
nin, nin, 3, 1, dilations[2], dilations[2], activ=activ
|
108 |
-
)
|
109 |
-
self.bottleneck = nn.Sequential(
|
110 |
-
Conv2DBNActiv(nin * 7, nout, 1, 1, 0, activ=activ), nn.Dropout2d(0.1)
|
111 |
-
)
|
112 |
-
|
113 |
-
def forward(self, x):
|
114 |
-
_, _, h, w = x.size()
|
115 |
-
feat1 = F.interpolate(
|
116 |
-
self.conv1(x), size=(h, w), mode="bilinear", align_corners=True
|
117 |
-
)
|
118 |
-
feat2 = self.conv2(x)
|
119 |
-
feat3 = self.conv3(x)
|
120 |
-
feat4 = self.conv4(x)
|
121 |
-
feat5 = self.conv5(x)
|
122 |
-
feat6 = self.conv6(x)
|
123 |
-
feat7 = self.conv7(x)
|
124 |
-
out = torch.cat((feat1, feat2, feat3, feat4, feat5, feat6, feat7), dim=1)
|
125 |
-
bottle = self.bottleneck(out)
|
126 |
-
return bottle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/801artistry/RVC801/lib/uvr5_pack/lib_v5/nets_33966KB.py
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch import nn
|
3 |
-
import torch.nn.functional as F
|
4 |
-
|
5 |
-
from . import layers_33966KB as layers
|
6 |
-
|
7 |
-
|
8 |
-
class BaseASPPNet(nn.Module):
|
9 |
-
def __init__(self, nin, ch, dilations=(4, 8, 16, 32)):
|
10 |
-
super(BaseASPPNet, self).__init__()
|
11 |
-
self.enc1 = layers.Encoder(nin, ch, 3, 2, 1)
|
12 |
-
self.enc2 = layers.Encoder(ch, ch * 2, 3, 2, 1)
|
13 |
-
self.enc3 = layers.Encoder(ch * 2, ch * 4, 3, 2, 1)
|
14 |
-
self.enc4 = layers.Encoder(ch * 4, ch * 8, 3, 2, 1)
|
15 |
-
|
16 |
-
self.aspp = layers.ASPPModule(ch * 8, ch * 16, dilations)
|
17 |
-
|
18 |
-
self.dec4 = layers.Decoder(ch * (8 + 16), ch * 8, 3, 1, 1)
|
19 |
-
self.dec3 = layers.Decoder(ch * (4 + 8), ch * 4, 3, 1, 1)
|
20 |
-
self.dec2 = layers.Decoder(ch * (2 + 4), ch * 2, 3, 1, 1)
|
21 |
-
self.dec1 = layers.Decoder(ch * (1 + 2), ch, 3, 1, 1)
|
22 |
-
|
23 |
-
def __call__(self, x):
|
24 |
-
h, e1 = self.enc1(x)
|
25 |
-
h, e2 = self.enc2(h)
|
26 |
-
h, e3 = self.enc3(h)
|
27 |
-
h, e4 = self.enc4(h)
|
28 |
-
|
29 |
-
h = self.aspp(h)
|
30 |
-
|
31 |
-
h = self.dec4(h, e4)
|
32 |
-
h = self.dec3(h, e3)
|
33 |
-
h = self.dec2(h, e2)
|
34 |
-
h = self.dec1(h, e1)
|
35 |
-
|
36 |
-
return h
|
37 |
-
|
38 |
-
|
39 |
-
class CascadedASPPNet(nn.Module):
|
40 |
-
def __init__(self, n_fft):
|
41 |
-
super(CascadedASPPNet, self).__init__()
|
42 |
-
self.stg1_low_band_net = BaseASPPNet(2, 16)
|
43 |
-
self.stg1_high_band_net = BaseASPPNet(2, 16)
|
44 |
-
|
45 |
-
self.stg2_bridge = layers.Conv2DBNActiv(18, 8, 1, 1, 0)
|
46 |
-
self.stg2_full_band_net = BaseASPPNet(8, 16)
|
47 |
-
|
48 |
-
self.stg3_bridge = layers.Conv2DBNActiv(34, 16, 1, 1, 0)
|
49 |
-
self.stg3_full_band_net = BaseASPPNet(16, 32)
|
50 |
-
|
51 |
-
self.out = nn.Conv2d(32, 2, 1, bias=False)
|
52 |
-
self.aux1_out = nn.Conv2d(16, 2, 1, bias=False)
|
53 |
-
self.aux2_out = nn.Conv2d(16, 2, 1, bias=False)
|
54 |
-
|
55 |
-
self.max_bin = n_fft // 2
|
56 |
-
self.output_bin = n_fft // 2 + 1
|
57 |
-
|
58 |
-
self.offset = 128
|
59 |
-
|
60 |
-
def forward(self, x, aggressiveness=None):
|
61 |
-
mix = x.detach()
|
62 |
-
x = x.clone()
|
63 |
-
|
64 |
-
x = x[:, :, : self.max_bin]
|
65 |
-
|
66 |
-
bandw = x.size()[2] // 2
|
67 |
-
aux1 = torch.cat(
|
68 |
-
[
|
69 |
-
self.stg1_low_band_net(x[:, :, :bandw]),
|
70 |
-
self.stg1_high_band_net(x[:, :, bandw:]),
|
71 |
-
],
|
72 |
-
dim=2,
|
73 |
-
)
|
74 |
-
|
75 |
-
h = torch.cat([x, aux1], dim=1)
|
76 |
-
aux2 = self.stg2_full_band_net(self.stg2_bridge(h))
|
77 |
-
|
78 |
-
h = torch.cat([x, aux1, aux2], dim=1)
|
79 |
-
h = self.stg3_full_band_net(self.stg3_bridge(h))
|
80 |
-
|
81 |
-
mask = torch.sigmoid(self.out(h))
|
82 |
-
mask = F.pad(
|
83 |
-
input=mask,
|
84 |
-
pad=(0, 0, 0, self.output_bin - mask.size()[2]),
|
85 |
-
mode="replicate",
|
86 |
-
)
|
87 |
-
|
88 |
-
if self.training:
|
89 |
-
aux1 = torch.sigmoid(self.aux1_out(aux1))
|
90 |
-
aux1 = F.pad(
|
91 |
-
input=aux1,
|
92 |
-
pad=(0, 0, 0, self.output_bin - aux1.size()[2]),
|
93 |
-
mode="replicate",
|
94 |
-
)
|
95 |
-
aux2 = torch.sigmoid(self.aux2_out(aux2))
|
96 |
-
aux2 = F.pad(
|
97 |
-
input=aux2,
|
98 |
-
pad=(0, 0, 0, self.output_bin - aux2.size()[2]),
|
99 |
-
mode="replicate",
|
100 |
-
)
|
101 |
-
return mask * mix, aux1 * mix, aux2 * mix
|
102 |
-
else:
|
103 |
-
if aggressiveness:
|
104 |
-
mask[:, :, : aggressiveness["split_bin"]] = torch.pow(
|
105 |
-
mask[:, :, : aggressiveness["split_bin"]],
|
106 |
-
1 + aggressiveness["value"] / 3,
|
107 |
-
)
|
108 |
-
mask[:, :, aggressiveness["split_bin"] :] = torch.pow(
|
109 |
-
mask[:, :, aggressiveness["split_bin"] :],
|
110 |
-
1 + aggressiveness["value"],
|
111 |
-
)
|
112 |
-
|
113 |
-
return mask * mix
|
114 |
-
|
115 |
-
def predict(self, x_mag, aggressiveness=None):
|
116 |
-
h = self.forward(x_mag, aggressiveness)
|
117 |
-
|
118 |
-
if self.offset > 0:
|
119 |
-
h = h[:, :, :, self.offset : -self.offset]
|
120 |
-
assert h.size()[3] > 0
|
121 |
-
|
122 |
-
return h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AI-Hobbyist/Hoyo-RVC/infer_batch_rvc.py
DELETED
@@ -1,217 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
v1
|
3 |
-
runtime\python.exe myinfer-v2-0528.py 0 "E:\codes\py39\RVC-beta\todo-songs" "E:\codes\py39\logs\mi-test\added_IVF677_Flat_nprobe_7.index" harvest "E:\codes\py39\RVC-beta\output" "E:\codes\py39\test-20230416b\weights\mi-test.pth" 0.66 cuda:0 True 3 0 1 0.33
|
4 |
-
v2
|
5 |
-
runtime\python.exe myinfer-v2-0528.py 0 "E:\codes\py39\RVC-beta\todo-songs" "E:\codes\py39\test-20230416b\logs\mi-test-v2\aadded_IVF677_Flat_nprobe_1_v2.index" harvest "E:\codes\py39\RVC-beta\output_v2" "E:\codes\py39\test-20230416b\weights\mi-test-v2.pth" 0.66 cuda:0 True 3 0 1 0.33
|
6 |
-
"""
|
7 |
-
import os, sys, pdb, torch
|
8 |
-
|
9 |
-
now_dir = os.getcwd()
|
10 |
-
sys.path.append(now_dir)
|
11 |
-
import argparse
|
12 |
-
import glob
|
13 |
-
import sys
|
14 |
-
import torch
|
15 |
-
import tqdm as tq
|
16 |
-
from multiprocessing import cpu_count
|
17 |
-
|
18 |
-
|
19 |
-
class Config:
|
20 |
-
def __init__(self, device, is_half):
|
21 |
-
self.device = device
|
22 |
-
self.is_half = is_half
|
23 |
-
self.n_cpu = 0
|
24 |
-
self.gpu_name = None
|
25 |
-
self.gpu_mem = None
|
26 |
-
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
|
27 |
-
|
28 |
-
def device_config(self) -> tuple:
|
29 |
-
if torch.cuda.is_available():
|
30 |
-
i_device = int(self.device.split(":")[-1])
|
31 |
-
self.gpu_name = torch.cuda.get_device_name(i_device)
|
32 |
-
if (
|
33 |
-
("16" in self.gpu_name and "V100" not in self.gpu_name.upper())
|
34 |
-
or "P40" in self.gpu_name.upper()
|
35 |
-
or "1060" in self.gpu_name
|
36 |
-
or "1070" in self.gpu_name
|
37 |
-
or "1080" in self.gpu_name
|
38 |
-
):
|
39 |
-
print("16系/10系显卡和P40强制单精度")
|
40 |
-
self.is_half = False
|
41 |
-
for config_file in ["32k.json", "40k.json", "48k.json"]:
|
42 |
-
with open(f"configs/{config_file}", "r") as f:
|
43 |
-
strr = f.read().replace("true", "false")
|
44 |
-
with open(f"configs/{config_file}", "w") as f:
|
45 |
-
f.write(strr)
|
46 |
-
with open("trainset_preprocess_pipeline_print.py", "r") as f:
|
47 |
-
strr = f.read().replace("3.7", "3.0")
|
48 |
-
with open("trainset_preprocess_pipeline_print.py", "w") as f:
|
49 |
-
f.write(strr)
|
50 |
-
else:
|
51 |
-
self.gpu_name = None
|
52 |
-
self.gpu_mem = int(
|
53 |
-
torch.cuda.get_device_properties(i_device).total_memory
|
54 |
-
/ 1024
|
55 |
-
/ 1024
|
56 |
-
/ 1024
|
57 |
-
+ 0.4
|
58 |
-
)
|
59 |
-
if self.gpu_mem <= 4:
|
60 |
-
with open("trainset_preprocess_pipeline_print.py", "r") as f:
|
61 |
-
strr = f.read().replace("3.7", "3.0")
|
62 |
-
with open("trainset_preprocess_pipeline_print.py", "w") as f:
|
63 |
-
f.write(strr)
|
64 |
-
elif torch.backends.mps.is_available():
|
65 |
-
print("没有发现支持的N卡, 使用MPS进行推理")
|
66 |
-
self.device = "mps"
|
67 |
-
else:
|
68 |
-
print("没有发现支持的N卡, 使用CPU进行推理")
|
69 |
-
self.device = "cpu"
|
70 |
-
self.is_half = True
|
71 |
-
|
72 |
-
if self.n_cpu == 0:
|
73 |
-
self.n_cpu = cpu_count()
|
74 |
-
|
75 |
-
if self.is_half:
|
76 |
-
# 6G显存配置
|
77 |
-
x_pad = 3
|
78 |
-
x_query = 10
|
79 |
-
x_center = 60
|
80 |
-
x_max = 65
|
81 |
-
else:
|
82 |
-
# 5G显存配置
|
83 |
-
x_pad = 1
|
84 |
-
x_query = 6
|
85 |
-
x_center = 38
|
86 |
-
x_max = 41
|
87 |
-
|
88 |
-
if self.gpu_mem != None and self.gpu_mem <= 4:
|
89 |
-
x_pad = 1
|
90 |
-
x_query = 5
|
91 |
-
x_center = 30
|
92 |
-
x_max = 32
|
93 |
-
|
94 |
-
return x_pad, x_query, x_center, x_max
|
95 |
-
|
96 |
-
|
97 |
-
f0up_key = sys.argv[1]
|
98 |
-
input_path = sys.argv[2]
|
99 |
-
index_path = sys.argv[3]
|
100 |
-
f0method = sys.argv[4] # harvest or pm
|
101 |
-
opt_path = sys.argv[5]
|
102 |
-
model_path = sys.argv[6]
|
103 |
-
index_rate = float(sys.argv[7])
|
104 |
-
device = sys.argv[8]
|
105 |
-
is_half = bool(sys.argv[9])
|
106 |
-
filter_radius = int(sys.argv[10])
|
107 |
-
resample_sr = int(sys.argv[11])
|
108 |
-
rms_mix_rate = float(sys.argv[12])
|
109 |
-
protect = float(sys.argv[13])
|
110 |
-
print(sys.argv)
|
111 |
-
config = Config(device, is_half)
|
112 |
-
now_dir = os.getcwd()
|
113 |
-
sys.path.append(now_dir)
|
114 |
-
from vc_infer_pipeline import VC
|
115 |
-
from infer_pack.models import (
|
116 |
-
SynthesizerTrnMs256NSFsid,
|
117 |
-
SynthesizerTrnMs256NSFsid_nono,
|
118 |
-
SynthesizerTrnMs768NSFsid,
|
119 |
-
SynthesizerTrnMs768NSFsid_nono,
|
120 |
-
)
|
121 |
-
from my_utils import load_audio
|
122 |
-
from fairseq import checkpoint_utils
|
123 |
-
from scipy.io import wavfile
|
124 |
-
|
125 |
-
hubert_model = None
|
126 |
-
|
127 |
-
|
128 |
-
def load_hubert():
|
129 |
-
global hubert_model
|
130 |
-
models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task(
|
131 |
-
["hubert_base.pt"],
|
132 |
-
suffix="",
|
133 |
-
)
|
134 |
-
hubert_model = models[0]
|
135 |
-
hubert_model = hubert_model.to(device)
|
136 |
-
if is_half:
|
137 |
-
hubert_model = hubert_model.half()
|
138 |
-
else:
|
139 |
-
hubert_model = hubert_model.float()
|
140 |
-
hubert_model.eval()
|
141 |
-
|
142 |
-
|
143 |
-
def vc_single(sid, input_audio, f0_up_key, f0_file, f0_method, file_index, index_rate):
|
144 |
-
global tgt_sr, net_g, vc, hubert_model, version
|
145 |
-
if input_audio is None:
|
146 |
-
return "You need to upload an audio", None
|
147 |
-
f0_up_key = int(f0_up_key)
|
148 |
-
audio = load_audio(input_audio, 16000)
|
149 |
-
times = [0, 0, 0]
|
150 |
-
if hubert_model == None:
|
151 |
-
load_hubert()
|
152 |
-
if_f0 = cpt.get("f0", 1)
|
153 |
-
# audio_opt=vc.pipeline(hubert_model,net_g,sid,audio,times,f0_up_key,f0_method,file_index,file_big_npy,index_rate,if_f0,f0_file=f0_file)
|
154 |
-
audio_opt = vc.pipeline(
|
155 |
-
hubert_model,
|
156 |
-
net_g,
|
157 |
-
sid,
|
158 |
-
audio,
|
159 |
-
input_audio,
|
160 |
-
times,
|
161 |
-
f0_up_key,
|
162 |
-
f0_method,
|
163 |
-
file_index,
|
164 |
-
index_rate,
|
165 |
-
if_f0,
|
166 |
-
filter_radius,
|
167 |
-
tgt_sr,
|
168 |
-
resample_sr,
|
169 |
-
rms_mix_rate,
|
170 |
-
version,
|
171 |
-
protect,
|
172 |
-
f0_file=f0_file,
|
173 |
-
)
|
174 |
-
print(times)
|
175 |
-
return audio_opt
|
176 |
-
|
177 |
-
|
178 |
-
def get_vc(model_path):
|
179 |
-
global n_spk, tgt_sr, net_g, vc, cpt, device, is_half, version
|
180 |
-
print("loading pth %s" % model_path)
|
181 |
-
cpt = torch.load(model_path, map_location="cpu")
|
182 |
-
tgt_sr = cpt["config"][-1]
|
183 |
-
cpt["config"][-3] = cpt["weight"]["emb_g.weight"].shape[0] # n_spk
|
184 |
-
if_f0 = cpt.get("f0", 1)
|
185 |
-
version = cpt.get("version", "v1")
|
186 |
-
if version == "v1":
|
187 |
-
if if_f0 == 1:
|
188 |
-
net_g = SynthesizerTrnMs256NSFsid(*cpt["config"], is_half=is_half)
|
189 |
-
else:
|
190 |
-
net_g = SynthesizerTrnMs256NSFsid_nono(*cpt["config"])
|
191 |
-
elif version == "v2":
|
192 |
-
if if_f0 == 1: #
|
193 |
-
net_g = SynthesizerTrnMs768NSFsid(*cpt["config"], is_half=is_half)
|
194 |
-
else:
|
195 |
-
net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
196 |
-
del net_g.enc_q
|
197 |
-
print(net_g.load_state_dict(cpt["weight"], strict=False)) # 不加这一行清不干净,真奇葩
|
198 |
-
net_g.eval().to(device)
|
199 |
-
if is_half:
|
200 |
-
net_g = net_g.half()
|
201 |
-
else:
|
202 |
-
net_g = net_g.float()
|
203 |
-
vc = VC(tgt_sr, config)
|
204 |
-
n_spk = cpt["config"][-3]
|
205 |
-
# return {"visible": True,"maximum": n_spk, "__type__": "update"}
|
206 |
-
|
207 |
-
|
208 |
-
get_vc(model_path)
|
209 |
-
audios = os.listdir(input_path)
|
210 |
-
for file in tq.tqdm(audios):
|
211 |
-
if file.endswith(".wav"):
|
212 |
-
file_path = input_path + "/" + file
|
213 |
-
wav_opt = vc_single(
|
214 |
-
0, file_path, f0up_key, None, f0method, index_path, index_rate
|
215 |
-
)
|
216 |
-
out_path = opt_path + "/" + file
|
217 |
-
wavfile.write(out_path, tgt_sr, wav_opt)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/NeuralSeq/modules/hifigan/hifigan.py
DELETED
@@ -1,365 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import torch.nn.functional as F
|
3 |
-
import torch.nn as nn
|
4 |
-
from torch.nn import Conv1d, ConvTranspose1d, AvgPool1d, Conv2d
|
5 |
-
from torch.nn.utils import weight_norm, remove_weight_norm, spectral_norm
|
6 |
-
|
7 |
-
from modules.parallel_wavegan.layers import UpsampleNetwork, ConvInUpsampleNetwork
|
8 |
-
from modules.parallel_wavegan.models.source import SourceModuleHnNSF
|
9 |
-
import numpy as np
|
10 |
-
|
11 |
-
LRELU_SLOPE = 0.1
|
12 |
-
|
13 |
-
|
14 |
-
def init_weights(m, mean=0.0, std=0.01):
|
15 |
-
classname = m.__class__.__name__
|
16 |
-
if classname.find("Conv") != -1:
|
17 |
-
m.weight.data.normal_(mean, std)
|
18 |
-
|
19 |
-
|
20 |
-
def apply_weight_norm(m):
|
21 |
-
classname = m.__class__.__name__
|
22 |
-
if classname.find("Conv") != -1:
|
23 |
-
weight_norm(m)
|
24 |
-
|
25 |
-
|
26 |
-
def get_padding(kernel_size, dilation=1):
|
27 |
-
return int((kernel_size * dilation - dilation) / 2)
|
28 |
-
|
29 |
-
|
30 |
-
class ResBlock1(torch.nn.Module):
|
31 |
-
def __init__(self, h, channels, kernel_size=3, dilation=(1, 3, 5)):
|
32 |
-
super(ResBlock1, self).__init__()
|
33 |
-
self.h = h
|
34 |
-
self.convs1 = nn.ModuleList([
|
35 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
|
36 |
-
padding=get_padding(kernel_size, dilation[0]))),
|
37 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
|
38 |
-
padding=get_padding(kernel_size, dilation[1]))),
|
39 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[2],
|
40 |
-
padding=get_padding(kernel_size, dilation[2])))
|
41 |
-
])
|
42 |
-
self.convs1.apply(init_weights)
|
43 |
-
|
44 |
-
self.convs2 = nn.ModuleList([
|
45 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
|
46 |
-
padding=get_padding(kernel_size, 1))),
|
47 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
|
48 |
-
padding=get_padding(kernel_size, 1))),
|
49 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=1,
|
50 |
-
padding=get_padding(kernel_size, 1)))
|
51 |
-
])
|
52 |
-
self.convs2.apply(init_weights)
|
53 |
-
|
54 |
-
def forward(self, x):
|
55 |
-
for c1, c2 in zip(self.convs1, self.convs2):
|
56 |
-
xt = F.leaky_relu(x, LRELU_SLOPE)
|
57 |
-
xt = c1(xt)
|
58 |
-
xt = F.leaky_relu(xt, LRELU_SLOPE)
|
59 |
-
xt = c2(xt)
|
60 |
-
x = xt + x
|
61 |
-
return x
|
62 |
-
|
63 |
-
def remove_weight_norm(self):
|
64 |
-
for l in self.convs1:
|
65 |
-
remove_weight_norm(l)
|
66 |
-
for l in self.convs2:
|
67 |
-
remove_weight_norm(l)
|
68 |
-
|
69 |
-
|
70 |
-
class ResBlock2(torch.nn.Module):
|
71 |
-
def __init__(self, h, channels, kernel_size=3, dilation=(1, 3)):
|
72 |
-
super(ResBlock2, self).__init__()
|
73 |
-
self.h = h
|
74 |
-
self.convs = nn.ModuleList([
|
75 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[0],
|
76 |
-
padding=get_padding(kernel_size, dilation[0]))),
|
77 |
-
weight_norm(Conv1d(channels, channels, kernel_size, 1, dilation=dilation[1],
|
78 |
-
padding=get_padding(kernel_size, dilation[1])))
|
79 |
-
])
|
80 |
-
self.convs.apply(init_weights)
|
81 |
-
|
82 |
-
def forward(self, x):
|
83 |
-
for c in self.convs:
|
84 |
-
xt = F.leaky_relu(x, LRELU_SLOPE)
|
85 |
-
xt = c(xt)
|
86 |
-
x = xt + x
|
87 |
-
return x
|
88 |
-
|
89 |
-
def remove_weight_norm(self):
|
90 |
-
for l in self.convs:
|
91 |
-
remove_weight_norm(l)
|
92 |
-
|
93 |
-
|
94 |
-
class Conv1d1x1(Conv1d):
|
95 |
-
"""1x1 Conv1d with customized initialization."""
|
96 |
-
|
97 |
-
def __init__(self, in_channels, out_channels, bias):
|
98 |
-
"""Initialize 1x1 Conv1d module."""
|
99 |
-
super(Conv1d1x1, self).__init__(in_channels, out_channels,
|
100 |
-
kernel_size=1, padding=0,
|
101 |
-
dilation=1, bias=bias)
|
102 |
-
|
103 |
-
|
104 |
-
class HifiGanGenerator(torch.nn.Module):
|
105 |
-
def __init__(self, h, c_out=1):
|
106 |
-
super(HifiGanGenerator, self).__init__()
|
107 |
-
self.h = h
|
108 |
-
self.num_kernels = len(h['resblock_kernel_sizes'])
|
109 |
-
self.num_upsamples = len(h['upsample_rates'])
|
110 |
-
|
111 |
-
if h['use_pitch_embed']:
|
112 |
-
self.harmonic_num = 8
|
113 |
-
self.f0_upsamp = torch.nn.Upsample(scale_factor=np.prod(h['upsample_rates']))
|
114 |
-
self.m_source = SourceModuleHnNSF(
|
115 |
-
sampling_rate=h['audio_sample_rate'],
|
116 |
-
harmonic_num=self.harmonic_num)
|
117 |
-
self.noise_convs = nn.ModuleList()
|
118 |
-
self.conv_pre = weight_norm(Conv1d(80, h['upsample_initial_channel'], 7, 1, padding=3))
|
119 |
-
resblock = ResBlock1 if h['resblock'] == '1' else ResBlock2
|
120 |
-
|
121 |
-
self.ups = nn.ModuleList()
|
122 |
-
for i, (u, k) in enumerate(zip(h['upsample_rates'], h['upsample_kernel_sizes'])):
|
123 |
-
c_cur = h['upsample_initial_channel'] // (2 ** (i + 1))
|
124 |
-
self.ups.append(weight_norm(
|
125 |
-
ConvTranspose1d(c_cur * 2, c_cur, k, u, padding=(k - u) // 2)))
|
126 |
-
if h['use_pitch_embed']:
|
127 |
-
if i + 1 < len(h['upsample_rates']):
|
128 |
-
stride_f0 = np.prod(h['upsample_rates'][i + 1:])
|
129 |
-
self.noise_convs.append(Conv1d(
|
130 |
-
1, c_cur, kernel_size=stride_f0 * 2, stride=stride_f0, padding=stride_f0 // 2))
|
131 |
-
else:
|
132 |
-
self.noise_convs.append(Conv1d(1, c_cur, kernel_size=1))
|
133 |
-
|
134 |
-
self.resblocks = nn.ModuleList()
|
135 |
-
for i in range(len(self.ups)):
|
136 |
-
ch = h['upsample_initial_channel'] // (2 ** (i + 1))
|
137 |
-
for j, (k, d) in enumerate(zip(h['resblock_kernel_sizes'], h['resblock_dilation_sizes'])):
|
138 |
-
self.resblocks.append(resblock(h, ch, k, d))
|
139 |
-
|
140 |
-
self.conv_post = weight_norm(Conv1d(ch, c_out, 7, 1, padding=3))
|
141 |
-
self.ups.apply(init_weights)
|
142 |
-
self.conv_post.apply(init_weights)
|
143 |
-
|
144 |
-
def forward(self, x, f0=None):
|
145 |
-
if f0 is not None:
|
146 |
-
# harmonic-source signal, noise-source signal, uv flag
|
147 |
-
f0 = self.f0_upsamp(f0[:, None]).transpose(1, 2)
|
148 |
-
har_source, noi_source, uv = self.m_source(f0)
|
149 |
-
har_source = har_source.transpose(1, 2)
|
150 |
-
|
151 |
-
x = self.conv_pre(x)
|
152 |
-
for i in range(self.num_upsamples):
|
153 |
-
x = F.leaky_relu(x, LRELU_SLOPE)
|
154 |
-
x = self.ups[i](x)
|
155 |
-
if f0 is not None:
|
156 |
-
x_source = self.noise_convs[i](har_source)
|
157 |
-
x = x + x_source
|
158 |
-
xs = None
|
159 |
-
for j in range(self.num_kernels):
|
160 |
-
if xs is None:
|
161 |
-
xs = self.resblocks[i * self.num_kernels + j](x)
|
162 |
-
else:
|
163 |
-
xs += self.resblocks[i * self.num_kernels + j](x)
|
164 |
-
x = xs / self.num_kernels
|
165 |
-
x = F.leaky_relu(x)
|
166 |
-
x = self.conv_post(x)
|
167 |
-
x = torch.tanh(x)
|
168 |
-
|
169 |
-
return x
|
170 |
-
|
171 |
-
def remove_weight_norm(self):
|
172 |
-
print('Removing weight norm...')
|
173 |
-
for l in self.ups:
|
174 |
-
remove_weight_norm(l)
|
175 |
-
for l in self.resblocks:
|
176 |
-
l.remove_weight_norm()
|
177 |
-
remove_weight_norm(self.conv_pre)
|
178 |
-
remove_weight_norm(self.conv_post)
|
179 |
-
|
180 |
-
|
181 |
-
class DiscriminatorP(torch.nn.Module):
|
182 |
-
def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=False, use_cond=False, c_in=1):
|
183 |
-
super(DiscriminatorP, self).__init__()
|
184 |
-
self.use_cond = use_cond
|
185 |
-
if use_cond:
|
186 |
-
from utils.hparams import hparams
|
187 |
-
t = hparams['hop_size']
|
188 |
-
self.cond_net = torch.nn.ConvTranspose1d(80, 1, t * 2, stride=t, padding=t // 2)
|
189 |
-
c_in = 2
|
190 |
-
|
191 |
-
self.period = period
|
192 |
-
norm_f = weight_norm if use_spectral_norm == False else spectral_norm
|
193 |
-
self.convs = nn.ModuleList([
|
194 |
-
norm_f(Conv2d(c_in, 32, (kernel_size, 1), (stride, 1), padding=(get_padding(5, 1), 0))),
|
195 |
-
norm_f(Conv2d(32, 128, (kernel_size, 1), (stride, 1), padding=(get_padding(5, 1), 0))),
|
196 |
-
norm_f(Conv2d(128, 512, (kernel_size, 1), (stride, 1), padding=(get_padding(5, 1), 0))),
|
197 |
-
norm_f(Conv2d(512, 1024, (kernel_size, 1), (stride, 1), padding=(get_padding(5, 1), 0))),
|
198 |
-
norm_f(Conv2d(1024, 1024, (kernel_size, 1), 1, padding=(2, 0))),
|
199 |
-
])
|
200 |
-
self.conv_post = norm_f(Conv2d(1024, 1, (3, 1), 1, padding=(1, 0)))
|
201 |
-
|
202 |
-
def forward(self, x, mel):
|
203 |
-
fmap = []
|
204 |
-
if self.use_cond:
|
205 |
-
x_mel = self.cond_net(mel)
|
206 |
-
x = torch.cat([x_mel, x], 1)
|
207 |
-
# 1d to 2d
|
208 |
-
b, c, t = x.shape
|
209 |
-
if t % self.period != 0: # pad first
|
210 |
-
n_pad = self.period - (t % self.period)
|
211 |
-
x = F.pad(x, (0, n_pad), "reflect")
|
212 |
-
t = t + n_pad
|
213 |
-
x = x.view(b, c, t // self.period, self.period)
|
214 |
-
|
215 |
-
for l in self.convs:
|
216 |
-
x = l(x)
|
217 |
-
x = F.leaky_relu(x, LRELU_SLOPE)
|
218 |
-
fmap.append(x)
|
219 |
-
x = self.conv_post(x)
|
220 |
-
fmap.append(x)
|
221 |
-
x = torch.flatten(x, 1, -1)
|
222 |
-
|
223 |
-
return x, fmap
|
224 |
-
|
225 |
-
|
226 |
-
class MultiPeriodDiscriminator(torch.nn.Module):
|
227 |
-
def __init__(self, use_cond=False, c_in=1):
|
228 |
-
super(MultiPeriodDiscriminator, self).__init__()
|
229 |
-
self.discriminators = nn.ModuleList([
|
230 |
-
DiscriminatorP(2, use_cond=use_cond, c_in=c_in),
|
231 |
-
DiscriminatorP(3, use_cond=use_cond, c_in=c_in),
|
232 |
-
DiscriminatorP(5, use_cond=use_cond, c_in=c_in),
|
233 |
-
DiscriminatorP(7, use_cond=use_cond, c_in=c_in),
|
234 |
-
DiscriminatorP(11, use_cond=use_cond, c_in=c_in),
|
235 |
-
])
|
236 |
-
|
237 |
-
def forward(self, y, y_hat, mel=None):
|
238 |
-
y_d_rs = []
|
239 |
-
y_d_gs = []
|
240 |
-
fmap_rs = []
|
241 |
-
fmap_gs = []
|
242 |
-
for i, d in enumerate(self.discriminators):
|
243 |
-
y_d_r, fmap_r = d(y, mel)
|
244 |
-
y_d_g, fmap_g = d(y_hat, mel)
|
245 |
-
y_d_rs.append(y_d_r)
|
246 |
-
fmap_rs.append(fmap_r)
|
247 |
-
y_d_gs.append(y_d_g)
|
248 |
-
fmap_gs.append(fmap_g)
|
249 |
-
|
250 |
-
return y_d_rs, y_d_gs, fmap_rs, fmap_gs
|
251 |
-
|
252 |
-
|
253 |
-
class DiscriminatorS(torch.nn.Module):
|
254 |
-
def __init__(self, use_spectral_norm=False, use_cond=False, upsample_rates=None, c_in=1):
|
255 |
-
super(DiscriminatorS, self).__init__()
|
256 |
-
self.use_cond = use_cond
|
257 |
-
if use_cond:
|
258 |
-
t = np.prod(upsample_rates)
|
259 |
-
self.cond_net = torch.nn.ConvTranspose1d(80, 1, t * 2, stride=t, padding=t // 2)
|
260 |
-
c_in = 2
|
261 |
-
norm_f = weight_norm if use_spectral_norm == False else spectral_norm
|
262 |
-
self.convs = nn.ModuleList([
|
263 |
-
norm_f(Conv1d(c_in, 128, 15, 1, padding=7)),
|
264 |
-
norm_f(Conv1d(128, 128, 41, 2, groups=4, padding=20)),
|
265 |
-
norm_f(Conv1d(128, 256, 41, 2, groups=16, padding=20)),
|
266 |
-
norm_f(Conv1d(256, 512, 41, 4, groups=16, padding=20)),
|
267 |
-
norm_f(Conv1d(512, 1024, 41, 4, groups=16, padding=20)),
|
268 |
-
norm_f(Conv1d(1024, 1024, 41, 1, groups=16, padding=20)),
|
269 |
-
norm_f(Conv1d(1024, 1024, 5, 1, padding=2)),
|
270 |
-
])
|
271 |
-
self.conv_post = norm_f(Conv1d(1024, 1, 3, 1, padding=1))
|
272 |
-
|
273 |
-
def forward(self, x, mel):
|
274 |
-
if self.use_cond:
|
275 |
-
x_mel = self.cond_net(mel)
|
276 |
-
x = torch.cat([x_mel, x], 1)
|
277 |
-
fmap = []
|
278 |
-
for l in self.convs:
|
279 |
-
x = l(x)
|
280 |
-
x = F.leaky_relu(x, LRELU_SLOPE)
|
281 |
-
fmap.append(x)
|
282 |
-
x = self.conv_post(x)
|
283 |
-
fmap.append(x)
|
284 |
-
x = torch.flatten(x, 1, -1)
|
285 |
-
|
286 |
-
return x, fmap
|
287 |
-
|
288 |
-
|
289 |
-
class MultiScaleDiscriminator(torch.nn.Module):
|
290 |
-
def __init__(self, use_cond=False, c_in=1):
|
291 |
-
super(MultiScaleDiscriminator, self).__init__()
|
292 |
-
from utils.hparams import hparams
|
293 |
-
self.discriminators = nn.ModuleList([
|
294 |
-
DiscriminatorS(use_spectral_norm=True, use_cond=use_cond,
|
295 |
-
upsample_rates=[4, 4, hparams['hop_size'] // 16],
|
296 |
-
c_in=c_in),
|
297 |
-
DiscriminatorS(use_cond=use_cond,
|
298 |
-
upsample_rates=[4, 4, hparams['hop_size'] // 32],
|
299 |
-
c_in=c_in),
|
300 |
-
DiscriminatorS(use_cond=use_cond,
|
301 |
-
upsample_rates=[4, 4, hparams['hop_size'] // 64],
|
302 |
-
c_in=c_in),
|
303 |
-
])
|
304 |
-
self.meanpools = nn.ModuleList([
|
305 |
-
AvgPool1d(4, 2, padding=1),
|
306 |
-
AvgPool1d(4, 2, padding=1)
|
307 |
-
])
|
308 |
-
|
309 |
-
def forward(self, y, y_hat, mel=None):
|
310 |
-
y_d_rs = []
|
311 |
-
y_d_gs = []
|
312 |
-
fmap_rs = []
|
313 |
-
fmap_gs = []
|
314 |
-
for i, d in enumerate(self.discriminators):
|
315 |
-
if i != 0:
|
316 |
-
y = self.meanpools[i - 1](y)
|
317 |
-
y_hat = self.meanpools[i - 1](y_hat)
|
318 |
-
y_d_r, fmap_r = d(y, mel)
|
319 |
-
y_d_g, fmap_g = d(y_hat, mel)
|
320 |
-
y_d_rs.append(y_d_r)
|
321 |
-
fmap_rs.append(fmap_r)
|
322 |
-
y_d_gs.append(y_d_g)
|
323 |
-
fmap_gs.append(fmap_g)
|
324 |
-
|
325 |
-
return y_d_rs, y_d_gs, fmap_rs, fmap_gs
|
326 |
-
|
327 |
-
|
328 |
-
def feature_loss(fmap_r, fmap_g):
|
329 |
-
loss = 0
|
330 |
-
for dr, dg in zip(fmap_r, fmap_g):
|
331 |
-
for rl, gl in zip(dr, dg):
|
332 |
-
loss += torch.mean(torch.abs(rl - gl))
|
333 |
-
|
334 |
-
return loss * 2
|
335 |
-
|
336 |
-
|
337 |
-
def discriminator_loss(disc_real_outputs, disc_generated_outputs):
|
338 |
-
r_losses = 0
|
339 |
-
g_losses = 0
|
340 |
-
for dr, dg in zip(disc_real_outputs, disc_generated_outputs):
|
341 |
-
r_loss = torch.mean((1 - dr) ** 2)
|
342 |
-
g_loss = torch.mean(dg ** 2)
|
343 |
-
r_losses += r_loss
|
344 |
-
g_losses += g_loss
|
345 |
-
r_losses = r_losses / len(disc_real_outputs)
|
346 |
-
g_losses = g_losses / len(disc_real_outputs)
|
347 |
-
return r_losses, g_losses
|
348 |
-
|
349 |
-
|
350 |
-
def cond_discriminator_loss(outputs):
|
351 |
-
loss = 0
|
352 |
-
for dg in outputs:
|
353 |
-
g_loss = torch.mean(dg ** 2)
|
354 |
-
loss += g_loss
|
355 |
-
loss = loss / len(outputs)
|
356 |
-
return loss
|
357 |
-
|
358 |
-
|
359 |
-
def generator_loss(disc_outputs):
|
360 |
-
loss = 0
|
361 |
-
for dg in disc_outputs:
|
362 |
-
l = torch.mean((1 - dg) ** 2)
|
363 |
-
loss += l
|
364 |
-
loss = loss / len(disc_outputs)
|
365 |
-
return loss
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/text_to_audio/Make_An_Audio/ldm/models/diffusion/classifier.py
DELETED
@@ -1,267 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import torch
|
3 |
-
import pytorch_lightning as pl
|
4 |
-
from omegaconf import OmegaConf
|
5 |
-
from torch.nn import functional as F
|
6 |
-
from torch.optim import AdamW
|
7 |
-
from torch.optim.lr_scheduler import LambdaLR
|
8 |
-
from copy import deepcopy
|
9 |
-
from einops import rearrange
|
10 |
-
from glob import glob
|
11 |
-
from natsort import natsorted
|
12 |
-
|
13 |
-
from ldm.modules.diffusionmodules.openaimodel import EncoderUNetModel, UNetModel
|
14 |
-
from ldm.util import log_txt_as_img, default, ismap, instantiate_from_config
|
15 |
-
|
16 |
-
__models__ = {
|
17 |
-
'class_label': EncoderUNetModel,
|
18 |
-
'segmentation': UNetModel
|
19 |
-
}
|
20 |
-
|
21 |
-
|
22 |
-
def disabled_train(self, mode=True):
|
23 |
-
"""Overwrite model.train with this function to make sure train/eval mode
|
24 |
-
does not change anymore."""
|
25 |
-
return self
|
26 |
-
|
27 |
-
|
28 |
-
class NoisyLatentImageClassifier(pl.LightningModule):
|
29 |
-
|
30 |
-
def __init__(self,
|
31 |
-
diffusion_path,
|
32 |
-
num_classes,
|
33 |
-
ckpt_path=None,
|
34 |
-
pool='attention',
|
35 |
-
label_key=None,
|
36 |
-
diffusion_ckpt_path=None,
|
37 |
-
scheduler_config=None,
|
38 |
-
weight_decay=1.e-2,
|
39 |
-
log_steps=10,
|
40 |
-
monitor='val/loss',
|
41 |
-
*args,
|
42 |
-
**kwargs):
|
43 |
-
super().__init__(*args, **kwargs)
|
44 |
-
self.num_classes = num_classes
|
45 |
-
# get latest config of diffusion model
|
46 |
-
diffusion_config = natsorted(glob(os.path.join(diffusion_path, 'configs', '*-project.yaml')))[-1]
|
47 |
-
self.diffusion_config = OmegaConf.load(diffusion_config).model
|
48 |
-
self.diffusion_config.params.ckpt_path = diffusion_ckpt_path
|
49 |
-
self.load_diffusion()
|
50 |
-
|
51 |
-
self.monitor = monitor
|
52 |
-
self.numd = self.diffusion_model.first_stage_model.encoder.num_resolutions - 1
|
53 |
-
self.log_time_interval = self.diffusion_model.num_timesteps // log_steps
|
54 |
-
self.log_steps = log_steps
|
55 |
-
|
56 |
-
self.label_key = label_key if not hasattr(self.diffusion_model, 'cond_stage_key') \
|
57 |
-
else self.diffusion_model.cond_stage_key
|
58 |
-
|
59 |
-
assert self.label_key is not None, 'label_key neither in diffusion model nor in model.params'
|
60 |
-
|
61 |
-
if self.label_key not in __models__:
|
62 |
-
raise NotImplementedError()
|
63 |
-
|
64 |
-
self.load_classifier(ckpt_path, pool)
|
65 |
-
|
66 |
-
self.scheduler_config = scheduler_config
|
67 |
-
self.use_scheduler = self.scheduler_config is not None
|
68 |
-
self.weight_decay = weight_decay
|
69 |
-
|
70 |
-
def init_from_ckpt(self, path, ignore_keys=list(), only_model=False):
|
71 |
-
sd = torch.load(path, map_location="cpu")
|
72 |
-
if "state_dict" in list(sd.keys()):
|
73 |
-
sd = sd["state_dict"]
|
74 |
-
keys = list(sd.keys())
|
75 |
-
for k in keys:
|
76 |
-
for ik in ignore_keys:
|
77 |
-
if k.startswith(ik):
|
78 |
-
print("Deleting key {} from state_dict.".format(k))
|
79 |
-
del sd[k]
|
80 |
-
missing, unexpected = self.load_state_dict(sd, strict=False) if not only_model else self.model.load_state_dict(
|
81 |
-
sd, strict=False)
|
82 |
-
print(f"Restored from {path} with {len(missing)} missing and {len(unexpected)} unexpected keys")
|
83 |
-
if len(missing) > 0:
|
84 |
-
print(f"Missing Keys: {missing}")
|
85 |
-
if len(unexpected) > 0:
|
86 |
-
print(f"Unexpected Keys: {unexpected}")
|
87 |
-
|
88 |
-
def load_diffusion(self):
|
89 |
-
model = instantiate_from_config(self.diffusion_config)
|
90 |
-
self.diffusion_model = model.eval()
|
91 |
-
self.diffusion_model.train = disabled_train
|
92 |
-
for param in self.diffusion_model.parameters():
|
93 |
-
param.requires_grad = False
|
94 |
-
|
95 |
-
def load_classifier(self, ckpt_path, pool):
|
96 |
-
model_config = deepcopy(self.diffusion_config.params.unet_config.params)
|
97 |
-
model_config.in_channels = self.diffusion_config.params.unet_config.params.out_channels
|
98 |
-
model_config.out_channels = self.num_classes
|
99 |
-
if self.label_key == 'class_label':
|
100 |
-
model_config.pool = pool
|
101 |
-
|
102 |
-
self.model = __models__[self.label_key](**model_config)
|
103 |
-
if ckpt_path is not None:
|
104 |
-
print('#####################################################################')
|
105 |
-
print(f'load from ckpt "{ckpt_path}"')
|
106 |
-
print('#####################################################################')
|
107 |
-
self.init_from_ckpt(ckpt_path)
|
108 |
-
|
109 |
-
@torch.no_grad()
|
110 |
-
def get_x_noisy(self, x, t, noise=None):
|
111 |
-
noise = default(noise, lambda: torch.randn_like(x))
|
112 |
-
continuous_sqrt_alpha_cumprod = None
|
113 |
-
if self.diffusion_model.use_continuous_noise:
|
114 |
-
continuous_sqrt_alpha_cumprod = self.diffusion_model.sample_continuous_noise_level(x.shape[0], t + 1)
|
115 |
-
# todo: make sure t+1 is correct here
|
116 |
-
|
117 |
-
return self.diffusion_model.q_sample(x_start=x, t=t, noise=noise,
|
118 |
-
continuous_sqrt_alpha_cumprod=continuous_sqrt_alpha_cumprod)
|
119 |
-
|
120 |
-
def forward(self, x_noisy, t, *args, **kwargs):
|
121 |
-
return self.model(x_noisy, t)
|
122 |
-
|
123 |
-
@torch.no_grad()
|
124 |
-
def get_input(self, batch, k):
|
125 |
-
x = batch[k]
|
126 |
-
if len(x.shape) == 3:
|
127 |
-
x = x[..., None]
|
128 |
-
x = rearrange(x, 'b h w c -> b c h w')
|
129 |
-
x = x.to(memory_format=torch.contiguous_format).float()
|
130 |
-
return x
|
131 |
-
|
132 |
-
@torch.no_grad()
|
133 |
-
def get_conditioning(self, batch, k=None):
|
134 |
-
if k is None:
|
135 |
-
k = self.label_key
|
136 |
-
assert k is not None, 'Needs to provide label key'
|
137 |
-
|
138 |
-
targets = batch[k].to(self.device)
|
139 |
-
|
140 |
-
if self.label_key == 'segmentation':
|
141 |
-
targets = rearrange(targets, 'b h w c -> b c h w')
|
142 |
-
for down in range(self.numd):
|
143 |
-
h, w = targets.shape[-2:]
|
144 |
-
targets = F.interpolate(targets, size=(h // 2, w // 2), mode='nearest')
|
145 |
-
|
146 |
-
# targets = rearrange(targets,'b c h w -> b h w c')
|
147 |
-
|
148 |
-
return targets
|
149 |
-
|
150 |
-
def compute_top_k(self, logits, labels, k, reduction="mean"):
|
151 |
-
_, top_ks = torch.topk(logits, k, dim=1)
|
152 |
-
if reduction == "mean":
|
153 |
-
return (top_ks == labels[:, None]).float().sum(dim=-1).mean().item()
|
154 |
-
elif reduction == "none":
|
155 |
-
return (top_ks == labels[:, None]).float().sum(dim=-1)
|
156 |
-
|
157 |
-
def on_train_epoch_start(self):
|
158 |
-
# save some memory
|
159 |
-
self.diffusion_model.model.to('cpu')
|
160 |
-
|
161 |
-
@torch.no_grad()
|
162 |
-
def write_logs(self, loss, logits, targets):
|
163 |
-
log_prefix = 'train' if self.training else 'val'
|
164 |
-
log = {}
|
165 |
-
log[f"{log_prefix}/loss"] = loss.mean()
|
166 |
-
log[f"{log_prefix}/acc@1"] = self.compute_top_k(
|
167 |
-
logits, targets, k=1, reduction="mean"
|
168 |
-
)
|
169 |
-
log[f"{log_prefix}/acc@5"] = self.compute_top_k(
|
170 |
-
logits, targets, k=5, reduction="mean"
|
171 |
-
)
|
172 |
-
|
173 |
-
self.log_dict(log, prog_bar=False, logger=True, on_step=self.training, on_epoch=True)
|
174 |
-
self.log('loss', log[f"{log_prefix}/loss"], prog_bar=True, logger=False)
|
175 |
-
self.log('global_step', self.global_step, logger=False, on_epoch=False, prog_bar=True)
|
176 |
-
lr = self.optimizers().param_groups[0]['lr']
|
177 |
-
self.log('lr_abs', lr, on_step=True, logger=True, on_epoch=False, prog_bar=True)
|
178 |
-
|
179 |
-
def shared_step(self, batch, t=None):
|
180 |
-
x, *_ = self.diffusion_model.get_input(batch, k=self.diffusion_model.first_stage_key)
|
181 |
-
targets = self.get_conditioning(batch)
|
182 |
-
if targets.dim() == 4:
|
183 |
-
targets = targets.argmax(dim=1)
|
184 |
-
if t is None:
|
185 |
-
t = torch.randint(0, self.diffusion_model.num_timesteps, (x.shape[0],), device=self.device).long()
|
186 |
-
else:
|
187 |
-
t = torch.full(size=(x.shape[0],), fill_value=t, device=self.device).long()
|
188 |
-
x_noisy = self.get_x_noisy(x, t)
|
189 |
-
logits = self(x_noisy, t)
|
190 |
-
|
191 |
-
loss = F.cross_entropy(logits, targets, reduction='none')
|
192 |
-
|
193 |
-
self.write_logs(loss.detach(), logits.detach(), targets.detach())
|
194 |
-
|
195 |
-
loss = loss.mean()
|
196 |
-
return loss, logits, x_noisy, targets
|
197 |
-
|
198 |
-
def training_step(self, batch, batch_idx):
|
199 |
-
loss, *_ = self.shared_step(batch)
|
200 |
-
return loss
|
201 |
-
|
202 |
-
def reset_noise_accs(self):
|
203 |
-
self.noisy_acc = {t: {'acc@1': [], 'acc@5': []} for t in
|
204 |
-
range(0, self.diffusion_model.num_timesteps, self.diffusion_model.log_every_t)}
|
205 |
-
|
206 |
-
def on_validation_start(self):
|
207 |
-
self.reset_noise_accs()
|
208 |
-
|
209 |
-
@torch.no_grad()
|
210 |
-
def validation_step(self, batch, batch_idx):
|
211 |
-
loss, *_ = self.shared_step(batch)
|
212 |
-
|
213 |
-
for t in self.noisy_acc:
|
214 |
-
_, logits, _, targets = self.shared_step(batch, t)
|
215 |
-
self.noisy_acc[t]['acc@1'].append(self.compute_top_k(logits, targets, k=1, reduction='mean'))
|
216 |
-
self.noisy_acc[t]['acc@5'].append(self.compute_top_k(logits, targets, k=5, reduction='mean'))
|
217 |
-
|
218 |
-
return loss
|
219 |
-
|
220 |
-
def configure_optimizers(self):
|
221 |
-
optimizer = AdamW(self.model.parameters(), lr=self.learning_rate, weight_decay=self.weight_decay)
|
222 |
-
|
223 |
-
if self.use_scheduler:
|
224 |
-
scheduler = instantiate_from_config(self.scheduler_config)
|
225 |
-
|
226 |
-
print("Setting up LambdaLR scheduler...")
|
227 |
-
scheduler = [
|
228 |
-
{
|
229 |
-
'scheduler': LambdaLR(optimizer, lr_lambda=scheduler.schedule),
|
230 |
-
'interval': 'step',
|
231 |
-
'frequency': 1
|
232 |
-
}]
|
233 |
-
return [optimizer], scheduler
|
234 |
-
|
235 |
-
return optimizer
|
236 |
-
|
237 |
-
@torch.no_grad()
|
238 |
-
def log_images(self, batch, N=8, *args, **kwargs):
|
239 |
-
log = dict()
|
240 |
-
x = self.get_input(batch, self.diffusion_model.first_stage_key)
|
241 |
-
log['inputs'] = x
|
242 |
-
|
243 |
-
y = self.get_conditioning(batch)
|
244 |
-
|
245 |
-
if self.label_key == 'class_label':
|
246 |
-
y = log_txt_as_img((x.shape[2], x.shape[3]), batch["human_label"])
|
247 |
-
log['labels'] = y
|
248 |
-
|
249 |
-
if ismap(y):
|
250 |
-
log['labels'] = self.diffusion_model.to_rgb(y)
|
251 |
-
|
252 |
-
for step in range(self.log_steps):
|
253 |
-
current_time = step * self.log_time_interval
|
254 |
-
|
255 |
-
_, logits, x_noisy, _ = self.shared_step(batch, t=current_time)
|
256 |
-
|
257 |
-
log[f'inputs@t{current_time}'] = x_noisy
|
258 |
-
|
259 |
-
pred = F.one_hot(logits.argmax(dim=1), num_classes=self.num_classes)
|
260 |
-
pred = rearrange(pred, 'b h w c -> b c h w')
|
261 |
-
|
262 |
-
log[f'pred@t{current_time}'] = self.diffusion_model.to_rgb(pred)
|
263 |
-
|
264 |
-
for key in log:
|
265 |
-
log[key] = log[key][:N]
|
266 |
-
|
267 |
-
return log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/commons/meters.py
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
import time
|
2 |
-
import torch
|
3 |
-
|
4 |
-
|
5 |
-
class AvgrageMeter(object):
|
6 |
-
|
7 |
-
def __init__(self):
|
8 |
-
self.reset()
|
9 |
-
|
10 |
-
def reset(self):
|
11 |
-
self.avg = 0
|
12 |
-
self.sum = 0
|
13 |
-
self.cnt = 0
|
14 |
-
|
15 |
-
def update(self, val, n=1):
|
16 |
-
self.sum += val * n
|
17 |
-
self.cnt += n
|
18 |
-
self.avg = self.sum / self.cnt
|
19 |
-
|
20 |
-
|
21 |
-
class Timer:
|
22 |
-
timer_map = {}
|
23 |
-
|
24 |
-
def __init__(self, name, enable=False):
|
25 |
-
if name not in Timer.timer_map:
|
26 |
-
Timer.timer_map[name] = 0
|
27 |
-
self.name = name
|
28 |
-
self.enable = enable
|
29 |
-
|
30 |
-
def __enter__(self):
|
31 |
-
if self.enable:
|
32 |
-
# if torch.cuda.is_available():
|
33 |
-
# torch.cuda.synchronize()
|
34 |
-
self.t = time.time()
|
35 |
-
|
36 |
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
37 |
-
if self.enable:
|
38 |
-
# if torch.cuda.is_available():
|
39 |
-
# torch.cuda.synchronize()
|
40 |
-
Timer.timer_map[self.name] += time.time() - self.t
|
41 |
-
if self.enable:
|
42 |
-
print(f'[Timer] {self.name}: {Timer.timer_map[self.name]}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIZero2HeroBootcamp/ExperimentalChatGPTv1/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: ExperimentalChatGPTv1
|
3 |
-
emoji: 🔥
|
4 |
-
colorFrom: pink
|
5 |
-
colorTo: blue
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.25.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Abhi5ingh/fashionsd/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Fashionsd
|
3 |
-
emoji: 👀
|
4 |
-
colorFrom: green
|
5 |
-
colorTo: indigo
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.28.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/AchyuthGamer/OpenGPT/g4f/Provider/ChatBase.py
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
from aiohttp import ClientSession
|
4 |
-
|
5 |
-
from ..typing import AsyncGenerator
|
6 |
-
from .base_provider import AsyncGeneratorProvider
|
7 |
-
|
8 |
-
|
9 |
-
class ChatBase(AsyncGeneratorProvider):
|
10 |
-
url = "https://www.chatbase.co"
|
11 |
-
supports_gpt_35_turbo = True
|
12 |
-
supports_gpt_4 = True
|
13 |
-
working = True
|
14 |
-
|
15 |
-
@classmethod
|
16 |
-
async def create_async_generator(
|
17 |
-
cls,
|
18 |
-
model: str,
|
19 |
-
messages: list[dict[str, str]],
|
20 |
-
**kwargs
|
21 |
-
) -> AsyncGenerator:
|
22 |
-
if model == "gpt-4":
|
23 |
-
chat_id = "quran---tafseer-saadi-pdf-wbgknt7zn"
|
24 |
-
elif model == "gpt-3.5-turbo" or not model:
|
25 |
-
chat_id = "chatbase--1--pdf-p680fxvnm"
|
26 |
-
else:
|
27 |
-
raise ValueError(f"Model are not supported: {model}")
|
28 |
-
headers = {
|
29 |
-
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
|
30 |
-
"Accept" : "*/*",
|
31 |
-
"Accept-language" : "en,fr-FR;q=0.9,fr;q=0.8,es-ES;q=0.7,es;q=0.6,en-US;q=0.5,am;q=0.4,de;q=0.3",
|
32 |
-
"Origin" : cls.url,
|
33 |
-
"Referer" : cls.url + "/",
|
34 |
-
"Sec-Fetch-Dest" : "empty",
|
35 |
-
"Sec-Fetch-Mode" : "cors",
|
36 |
-
"Sec-Fetch-Site" : "same-origin",
|
37 |
-
}
|
38 |
-
async with ClientSession(
|
39 |
-
headers=headers
|
40 |
-
) as session:
|
41 |
-
data = {
|
42 |
-
"messages": messages,
|
43 |
-
"captchaCode": "hadsa",
|
44 |
-
"chatId": chat_id,
|
45 |
-
"conversationId": f"kcXpqEnqUie3dnJlsRi_O-{chat_id}"
|
46 |
-
}
|
47 |
-
async with session.post("https://www.chatbase.co/api/fe/chat", json=data) as response:
|
48 |
-
response.raise_for_status()
|
49 |
-
async for stream in response.content.iter_any():
|
50 |
-
yield stream.decode()
|
51 |
-
|
52 |
-
|
53 |
-
@classmethod
|
54 |
-
@property
|
55 |
-
def params(cls):
|
56 |
-
params = [
|
57 |
-
("model", "str"),
|
58 |
-
("messages", "list[dict[str, str]]"),
|
59 |
-
("stream", "bool"),
|
60 |
-
]
|
61 |
-
param = ", ".join([": ".join(p) for p in params])
|
62 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/unfinished/MikuChat.py
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import random, json
|
4 |
-
from datetime import datetime
|
5 |
-
from ...requests import StreamSession
|
6 |
-
|
7 |
-
from ...typing import AsyncGenerator
|
8 |
-
from ..base_provider import AsyncGeneratorProvider
|
9 |
-
|
10 |
-
|
11 |
-
class MikuChat(AsyncGeneratorProvider):
|
12 |
-
url = "https://ai.okmiku.com"
|
13 |
-
supports_gpt_35_turbo = True
|
14 |
-
|
15 |
-
@classmethod
|
16 |
-
async def create_async_generator(
|
17 |
-
cls,
|
18 |
-
model: str,
|
19 |
-
messages: list[dict[str, str]],
|
20 |
-
**kwargs
|
21 |
-
) -> AsyncGenerator:
|
22 |
-
if not model:
|
23 |
-
model = "gpt-3.5-turbo"
|
24 |
-
headers = {
|
25 |
-
"authority": "api.catgpt.cc",
|
26 |
-
"accept": "application/json",
|
27 |
-
"origin": cls.url,
|
28 |
-
"referer": f"{cls.url}/chat/",
|
29 |
-
'x-app-version': 'undefined',
|
30 |
-
'x-date': get_datetime(),
|
31 |
-
'x-fingerprint': get_fingerprint(),
|
32 |
-
'x-platform': 'web'
|
33 |
-
}
|
34 |
-
async with StreamSession(headers=headers, impersonate="chrome107") as session:
|
35 |
-
data = {
|
36 |
-
"model": model,
|
37 |
-
"top_p": 0.8,
|
38 |
-
"temperature": 0.5,
|
39 |
-
"presence_penalty": 1,
|
40 |
-
"frequency_penalty": 0,
|
41 |
-
"max_tokens": 2000,
|
42 |
-
"stream": True,
|
43 |
-
"messages": messages,
|
44 |
-
}
|
45 |
-
async with session.post("https://api.catgpt.cc/ai/v1/chat/completions", json=data) as response:
|
46 |
-
print(await response.text())
|
47 |
-
response.raise_for_status()
|
48 |
-
async for line in response.iter_lines():
|
49 |
-
if line.startswith(b"data: "):
|
50 |
-
line = json.loads(line[6:])
|
51 |
-
chunk = line["choices"][0]["delta"].get("content")
|
52 |
-
if chunk:
|
53 |
-
yield chunk
|
54 |
-
|
55 |
-
def k(e: str, t: int):
|
56 |
-
a = len(e) & 3
|
57 |
-
s = len(e) - a
|
58 |
-
i = t
|
59 |
-
c = 3432918353
|
60 |
-
o = 461845907
|
61 |
-
n = 0
|
62 |
-
r = 0
|
63 |
-
while n < s:
|
64 |
-
r = (ord(e[n]) & 255) | ((ord(e[n + 1]) & 255) << 8) | ((ord(e[n + 2]) & 255) << 16) | ((ord(e[n + 3]) & 255) << 24)
|
65 |
-
n += 4
|
66 |
-
r = (r & 65535) * c + (((r >> 16) * c & 65535) << 16) & 4294967295
|
67 |
-
r = (r << 15) | (r >> 17)
|
68 |
-
r = (r & 65535) * o + (((r >> 16) * o & 65535) << 16) & 4294967295
|
69 |
-
i ^= r
|
70 |
-
i = (i << 13) | (i >> 19)
|
71 |
-
l = (i & 65535) * 5 + (((i >> 16) * 5 & 65535) << 16) & 4294967295
|
72 |
-
i = (l & 65535) + 27492 + (((l >> 16) + 58964 & 65535) << 16)
|
73 |
-
|
74 |
-
if a == 3:
|
75 |
-
r ^= (ord(e[n + 2]) & 255) << 16
|
76 |
-
elif a == 2:
|
77 |
-
r ^= (ord(e[n + 1]) & 255) << 8
|
78 |
-
elif a == 1:
|
79 |
-
r ^= ord(e[n]) & 255
|
80 |
-
r = (r & 65535) * c + (((r >> 16) * c & 65535) << 16) & 4294967295
|
81 |
-
r = (r << 15) | (r >> 17)
|
82 |
-
r = (r & 65535) * o + (((r >> 16) * o & 65535) << 16) & 4294967295
|
83 |
-
i ^= r
|
84 |
-
|
85 |
-
i ^= len(e)
|
86 |
-
i ^= i >> 16
|
87 |
-
i = (i & 65535) * 2246822507 + (((i >> 16) * 2246822507 & 65535) << 16) & 4294967295
|
88 |
-
i ^= i >> 13
|
89 |
-
i = (i & 65535) * 3266489909 + (((i >> 16) * 3266489909 & 65535) << 16) & 4294967295
|
90 |
-
i ^= i >> 16
|
91 |
-
return i & 0xFFFFFFFF
|
92 |
-
|
93 |
-
def get_fingerprint() -> str:
|
94 |
-
return str(k(str(int(random.random() * 100000)), 256))
|
95 |
-
|
96 |
-
def get_datetime() -> str:
|
97 |
-
return datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Adapter/CoAdapter/t2i_adapters/t2i_adapters_for_style.py
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import numpy as np
|
3 |
-
from transformers import CLIPVisionModel
|
4 |
-
|
5 |
-
from ldm.models.diffusion.ddpm import LatentDiffusion, disabled_train
|
6 |
-
from ldm.util import instantiate_from_config
|
7 |
-
|
8 |
-
|
9 |
-
class T2IAdapterStyleV3(LatentDiffusion):
|
10 |
-
|
11 |
-
def __init__(self, adapter_config, extra_cond_key, noise_schedule, *args, **kwargs):
|
12 |
-
super(T2IAdapterStyleV3, self).__init__(*args, **kwargs)
|
13 |
-
self.adapter = instantiate_from_config(adapter_config)
|
14 |
-
self.extra_cond_key = extra_cond_key
|
15 |
-
self.noise_schedule = noise_schedule
|
16 |
-
self.clip_vision_model = CLIPVisionModel.from_pretrained(
|
17 |
-
'openai/clip-vit-large-patch14'
|
18 |
-
)
|
19 |
-
|
20 |
-
self.clip_vision_model = self.clip_vision_model.eval()
|
21 |
-
self.clip_vision_model.train = disabled_train
|
22 |
-
for param in self.clip_vision_model.parameters():
|
23 |
-
param.requires_grad = False
|
24 |
-
|
25 |
-
|
26 |
-
def shared_step(self, batch, **kwargs):
|
27 |
-
for k in self.ucg_training:
|
28 |
-
if k == self.extra_cond_key:
|
29 |
-
continue
|
30 |
-
p = self.ucg_training[k]
|
31 |
-
for i in range(len(batch[k])):
|
32 |
-
if self.ucg_prng.choice(2, p=[1 - p, p]):
|
33 |
-
if isinstance(batch[k], list):
|
34 |
-
batch[k][i] = ""
|
35 |
-
batch['jpg'] = batch['jpg'] * 2 - 1
|
36 |
-
x, c = self.get_input(batch, self.first_stage_key)
|
37 |
-
extra_cond = super(LatentDiffusion, self).get_input(batch, self.extra_cond_key).to(self.device)
|
38 |
-
extra_cond = self.clip_vision_model(extra_cond)['last_hidden_state']
|
39 |
-
features_adapter = self.adapter(extra_cond)
|
40 |
-
if self.extra_cond_key in self.ucg_training:
|
41 |
-
idx = np.random.choice(self.adapter.num_token, np.random.randint(1, self.adapter.num_token+1), replace=False)
|
42 |
-
idx_tensor = torch.from_numpy(idx).to(features_adapter.device)
|
43 |
-
features_adapter = torch.index_select(features_adapter, 1, idx_tensor)
|
44 |
-
t = self.get_time_with_schedule(self.noise_schedule, x.size(0))
|
45 |
-
loss, loss_dict = self(x, c, t=t, append_to_context=features_adapter)
|
46 |
-
return loss, loss_dict
|
47 |
-
|
48 |
-
def configure_optimizers(self):
|
49 |
-
lr = self.learning_rate
|
50 |
-
params = list(self.adapter.parameters())
|
51 |
-
opt = torch.optim.AdamW(params, lr=lr)
|
52 |
-
return opt
|
53 |
-
|
54 |
-
def on_save_checkpoint(self, checkpoint):
|
55 |
-
keys = list(checkpoint['state_dict'].keys())
|
56 |
-
for key in keys:
|
57 |
-
if 'adapter' not in key:
|
58 |
-
del checkpoint['state_dict'][key]
|
59 |
-
|
60 |
-
def on_load_checkpoint(self, checkpoint):
|
61 |
-
for name in self.state_dict():
|
62 |
-
if 'adapter' not in name:
|
63 |
-
checkpoint['state_dict'][name] = self.state_dict()[name]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/pages/Pages.js
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
import OverlapSizer from '../overlapsizer/OverlapSizer.js';
|
2 |
-
import Methods from './methods/Methods.js';
|
3 |
-
|
4 |
-
const GetValue = Phaser.Utils.Objects.GetValue;
|
5 |
-
|
6 |
-
class Pages extends OverlapSizer {
|
7 |
-
constructor(scene, config) {
|
8 |
-
super(scene, config);
|
9 |
-
this.type = 'rexPages';
|
10 |
-
this.childrenMap = this.sizerChildren;
|
11 |
-
this._previousKey = undefined;
|
12 |
-
this._currentKey = undefined;
|
13 |
-
this.setSwapMode(GetValue(config, 'swapMode', 0));
|
14 |
-
this.setFadeInDuration(GetValue(config, 'fadeIn', 0));
|
15 |
-
}
|
16 |
-
|
17 |
-
setSwapMode(mode) {
|
18 |
-
if (typeof (mode) === 'string') {
|
19 |
-
mode = SWAPMODE[mode];
|
20 |
-
}
|
21 |
-
this.swapMode = mode;
|
22 |
-
return this;
|
23 |
-
}
|
24 |
-
|
25 |
-
setFadeInDuration(duration) {
|
26 |
-
this.fadeInDuration = duration;
|
27 |
-
return this;
|
28 |
-
}
|
29 |
-
|
30 |
-
get previousKey() {
|
31 |
-
return this._previousKey;
|
32 |
-
}
|
33 |
-
|
34 |
-
get currentKey() {
|
35 |
-
return this._currentKey;
|
36 |
-
}
|
37 |
-
|
38 |
-
set currentKey(key) {
|
39 |
-
this.swapPage(key);
|
40 |
-
}
|
41 |
-
|
42 |
-
get currentPage() {
|
43 |
-
return this.getPage(this.currentKey);
|
44 |
-
}
|
45 |
-
|
46 |
-
get previousPage() {
|
47 |
-
return this.getPage(this.previousKey);
|
48 |
-
}
|
49 |
-
|
50 |
-
get keys() {
|
51 |
-
return Object.keys(this.sizerChildren);
|
52 |
-
}
|
53 |
-
}
|
54 |
-
|
55 |
-
Object.assign(
|
56 |
-
Pages.prototype,
|
57 |
-
Methods
|
58 |
-
);
|
59 |
-
|
60 |
-
const SWAPMODE = {
|
61 |
-
invisible: 0,
|
62 |
-
destroy: 1
|
63 |
-
};
|
64 |
-
|
65 |
-
export default Pages;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Akmyradov/TurkmenTTSweSTT/vits/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/AlexWang/lama/fetch_data/places_standard_test_val_prepare.sh
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
mkdir -p places_standard_dataset/original/test/
|
2 |
-
tar -xvf test_large.tar --transform='s/.*\///' -C places_standard_dataset/original/test/
|
3 |
-
|
4 |
-
mkdir -p places_standard_dataset/original/val/
|
5 |
-
tar -xvf val_large.tar --transform='s/.*\///' -C places_standard_dataset/original/val/
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AnTo2209/3D_Zeroshot_Neural_Style_Transfer/src/dataset/base_dataset.py
DELETED
File without changes
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/src/diffusers/pipelines/paint_by_example/image_encoder.py
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
# Copyright 2023 The HuggingFace Team. All rights reserved.
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4 |
-
# you may not use this file except in compliance with the License.
|
5 |
-
# You may obtain a copy of the License at
|
6 |
-
#
|
7 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8 |
-
#
|
9 |
-
# Unless required by applicable law or agreed to in writing, software
|
10 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 |
-
# See the License for the specific language governing permissions and
|
13 |
-
# limitations under the License.
|
14 |
-
import torch
|
15 |
-
from torch import nn
|
16 |
-
from transformers import CLIPPreTrainedModel, CLIPVisionModel
|
17 |
-
|
18 |
-
from ...models.attention import BasicTransformerBlock
|
19 |
-
from ...utils import logging
|
20 |
-
|
21 |
-
|
22 |
-
logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
23 |
-
|
24 |
-
|
25 |
-
class PaintByExampleImageEncoder(CLIPPreTrainedModel):
|
26 |
-
def __init__(self, config, proj_size=768):
|
27 |
-
super().__init__(config)
|
28 |
-
self.proj_size = proj_size
|
29 |
-
|
30 |
-
self.model = CLIPVisionModel(config)
|
31 |
-
self.mapper = PaintByExampleMapper(config)
|
32 |
-
self.final_layer_norm = nn.LayerNorm(config.hidden_size)
|
33 |
-
self.proj_out = nn.Linear(config.hidden_size, self.proj_size)
|
34 |
-
|
35 |
-
# uncondition for scaling
|
36 |
-
self.uncond_vector = nn.Parameter(torch.randn((1, 1, self.proj_size)))
|
37 |
-
|
38 |
-
def forward(self, pixel_values, return_uncond_vector=False):
|
39 |
-
clip_output = self.model(pixel_values=pixel_values)
|
40 |
-
latent_states = clip_output.pooler_output
|
41 |
-
latent_states = self.mapper(latent_states[:, None])
|
42 |
-
latent_states = self.final_layer_norm(latent_states)
|
43 |
-
latent_states = self.proj_out(latent_states)
|
44 |
-
if return_uncond_vector:
|
45 |
-
return latent_states, self.uncond_vector
|
46 |
-
|
47 |
-
return latent_states
|
48 |
-
|
49 |
-
|
50 |
-
class PaintByExampleMapper(nn.Module):
|
51 |
-
def __init__(self, config):
|
52 |
-
super().__init__()
|
53 |
-
num_layers = (config.num_hidden_layers + 1) // 5
|
54 |
-
hid_size = config.hidden_size
|
55 |
-
num_heads = 1
|
56 |
-
self.blocks = nn.ModuleList(
|
57 |
-
[
|
58 |
-
BasicTransformerBlock(hid_size, num_heads, hid_size, activation_fn="gelu", attention_bias=True)
|
59 |
-
for _ in range(num_layers)
|
60 |
-
]
|
61 |
-
)
|
62 |
-
|
63 |
-
def forward(self, hidden_states):
|
64 |
-
for block in self.blocks:
|
65 |
-
hidden_states = block(hidden_states)
|
66 |
-
|
67 |
-
return hidden_states
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/gcnet/mask_rcnn_r101_fpn_syncbn-backbone_r16_gcb_c3-c5_1x_coco.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
_base_ = '../mask_rcnn/mask_rcnn_r101_fpn_1x_coco.py'
|
2 |
-
model = dict(
|
3 |
-
backbone=dict(
|
4 |
-
norm_cfg=dict(type='SyncBN', requires_grad=True),
|
5 |
-
norm_eval=False,
|
6 |
-
plugins=[
|
7 |
-
dict(
|
8 |
-
cfg=dict(type='ContextBlock', ratio=1. / 16),
|
9 |
-
stages=(False, True, True, True),
|
10 |
-
position='after_conv3')
|
11 |
-
]))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/match_costs/__init__.py
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
from .builder import build_match_cost
|
2 |
-
from .match_cost import BBoxL1Cost, ClassificationCost, FocalLossCost, IoUCost
|
3 |
-
|
4 |
-
__all__ = [
|
5 |
-
'build_match_cost', 'ClassificationCost', 'BBoxL1Cost', 'IoUCost',
|
6 |
-
'FocalLossCost'
|
7 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/dmnet/dmnet_r50-d8_512x1024_40k_cityscapes.py
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
_base_ = [
|
2 |
-
'../_base_/models/dmnet_r50-d8.py', '../_base_/datasets/cityscapes.py',
|
3 |
-
'../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py'
|
4 |
-
]
|
|
|
|
|
|
|
|
|
|
spaces/AnishKumbhar/ChatBot/text-generation-webui-main/docs/WSL-installation-guide.md
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
Guide created by [@jfryton](https://github.com/jfryton). Thank you jfryton.
|
2 |
-
|
3 |
-
-----
|
4 |
-
|
5 |
-
Here's an easy-to-follow, step-by-step guide for installing Windows Subsystem for Linux (WSL) with Ubuntu on Windows 10/11:
|
6 |
-
|
7 |
-
## Step 1: Enable WSL
|
8 |
-
|
9 |
-
1. Press the Windows key + X and click on "Windows PowerShell (Admin)" or "Windows Terminal (Admin)" to open PowerShell or Terminal with administrator privileges.
|
10 |
-
2. In the PowerShell window, type the following command and press Enter:
|
11 |
-
|
12 |
-
```
|
13 |
-
wsl --install
|
14 |
-
```
|
15 |
-
|
16 |
-
If this command doesn't work, you can enable WSL with the following command for Windows 10:
|
17 |
-
|
18 |
-
```
|
19 |
-
wsl --set-default-version 1
|
20 |
-
```
|
21 |
-
|
22 |
-
For Windows 11, you can use:
|
23 |
-
|
24 |
-
```
|
25 |
-
wsl --set-default-version 2
|
26 |
-
```
|
27 |
-
|
28 |
-
You may be prompted to restart your computer. If so, save your work and restart.
|
29 |
-
|
30 |
-
## Step 2: Install Ubuntu
|
31 |
-
|
32 |
-
1. Open the Microsoft Store.
|
33 |
-
2. Search for "Ubuntu" in the search bar.
|
34 |
-
3. Choose the desired Ubuntu version (e.g., Ubuntu 20.04 LTS) and click "Get" or "Install" to download and install the Ubuntu app.
|
35 |
-
4. Once the installation is complete, click "Launch" or search for "Ubuntu" in the Start menu and open the app.
|
36 |
-
|
37 |
-
## Step 3: Set up Ubuntu
|
38 |
-
|
39 |
-
1. When you first launch the Ubuntu app, it will take a few minutes to set up. Be patient as it installs the necessary files and sets up your environment.
|
40 |
-
2. Once the setup is complete, you will be prompted to create a new UNIX username and password. Choose a username and password, and make sure to remember them, as you will need them for future administrative tasks within the Ubuntu environment.
|
41 |
-
|
42 |
-
## Step 4: Update and upgrade packages
|
43 |
-
|
44 |
-
1. After setting up your username and password, it's a good idea to update and upgrade your Ubuntu system. Run the following commands in the Ubuntu terminal:
|
45 |
-
|
46 |
-
```
|
47 |
-
sudo apt update
|
48 |
-
sudo apt upgrade
|
49 |
-
```
|
50 |
-
|
51 |
-
2. Enter your password when prompted. This will update the package list and upgrade any outdated packages.
|
52 |
-
|
53 |
-
Congratulations! You have now installed WSL with Ubuntu on your Windows 10/11 system. You can use the Ubuntu terminal for various tasks, like running Linux commands, installing packages, or managing files.
|
54 |
-
|
55 |
-
You can launch your WSL Ubuntu installation by selecting the Ubuntu app (like any other program installed on your computer) or typing 'ubuntu' into Powershell or Terminal.
|
56 |
-
|
57 |
-
## Step 5: Proceed with Linux instructions
|
58 |
-
|
59 |
-
1. You can now follow the Linux setup instructions. If you receive any error messages about a missing tool or package, just install them using apt:
|
60 |
-
|
61 |
-
```
|
62 |
-
sudo apt install [missing package]
|
63 |
-
```
|
64 |
-
|
65 |
-
You will probably need to install build-essential
|
66 |
-
|
67 |
-
```
|
68 |
-
sudo apt install build-essential
|
69 |
-
```
|
70 |
-
|
71 |
-
If you face any issues or need to troubleshoot, you can always refer to the official Microsoft documentation for WSL: https://docs.microsoft.com/en-us/windows/wsl/
|
72 |
-
|
73 |
-
#### WSL2 performance using /mnt:
|
74 |
-
when you git clone a repository, put it inside WSL and not outside. To understand more, take a look at this [issue](https://github.com/microsoft/WSL/issues/4197#issuecomment-604592340)
|
75 |
-
|
76 |
-
## Bonus: Port Forwarding
|
77 |
-
|
78 |
-
By default, you won't be able to access the webui from another device on your local network. You will need to setup the appropriate port forwarding using the following command (using PowerShell or Terminal with administrator privileges).
|
79 |
-
|
80 |
-
```
|
81 |
-
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=7860 connectaddress=localhost connectport=7860
|
82 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AnishKumbhar/ChatBot/text-generation-webui-main/modules/ui_file_saving.py
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
|
3 |
-
from modules import chat, presets, shared, ui, utils
|
4 |
-
from modules.utils import gradio
|
5 |
-
|
6 |
-
|
7 |
-
def create_ui():
|
8 |
-
mu = shared.args.multi_user
|
9 |
-
|
10 |
-
# Text file saver
|
11 |
-
with gr.Box(visible=False, elem_classes='file-saver') as shared.gradio['file_saver']:
|
12 |
-
shared.gradio['save_filename'] = gr.Textbox(lines=1, label='File name')
|
13 |
-
shared.gradio['save_root'] = gr.Textbox(lines=1, label='File folder', info='For reference. Unchangeable.', interactive=False)
|
14 |
-
shared.gradio['save_contents'] = gr.Textbox(lines=10, label='File contents')
|
15 |
-
with gr.Row():
|
16 |
-
shared.gradio['save_confirm'] = gr.Button('Save', elem_classes="small-button", interactive=not mu)
|
17 |
-
shared.gradio['save_cancel'] = gr.Button('Cancel', elem_classes="small-button")
|
18 |
-
|
19 |
-
# Text file deleter
|
20 |
-
with gr.Box(visible=False, elem_classes='file-saver') as shared.gradio['file_deleter']:
|
21 |
-
shared.gradio['delete_filename'] = gr.Textbox(lines=1, label='File name')
|
22 |
-
shared.gradio['delete_root'] = gr.Textbox(lines=1, label='File folder', info='For reference. Unchangeable.', interactive=False)
|
23 |
-
with gr.Row():
|
24 |
-
shared.gradio['delete_confirm'] = gr.Button('Delete', elem_classes="small-button", variant='stop', interactive=not mu)
|
25 |
-
shared.gradio['delete_cancel'] = gr.Button('Cancel', elem_classes="small-button")
|
26 |
-
|
27 |
-
# Character saver/deleter
|
28 |
-
with gr.Box(visible=False, elem_classes='file-saver') as shared.gradio['character_saver']:
|
29 |
-
shared.gradio['save_character_filename'] = gr.Textbox(lines=1, label='File name', info='The character will be saved to your characters/ folder with this base filename.')
|
30 |
-
with gr.Row():
|
31 |
-
shared.gradio['save_character_confirm'] = gr.Button('Save', elem_classes="small-button", interactive=not mu)
|
32 |
-
shared.gradio['save_character_cancel'] = gr.Button('Cancel', elem_classes="small-button")
|
33 |
-
|
34 |
-
with gr.Box(visible=False, elem_classes='file-saver') as shared.gradio['character_deleter']:
|
35 |
-
gr.Markdown('Confirm the character deletion?')
|
36 |
-
with gr.Row():
|
37 |
-
shared.gradio['delete_character_confirm'] = gr.Button('Delete', elem_classes="small-button", variant='stop', interactive=not mu)
|
38 |
-
shared.gradio['delete_character_cancel'] = gr.Button('Cancel', elem_classes="small-button")
|
39 |
-
|
40 |
-
|
41 |
-
def create_event_handlers():
|
42 |
-
shared.gradio['save_confirm'].click(
|
43 |
-
lambda x, y, z: utils.save_file(x + y, z), gradio('save_root', 'save_filename', 'save_contents'), None).then(
|
44 |
-
lambda: gr.update(visible=False), None, gradio('file_saver'))
|
45 |
-
|
46 |
-
shared.gradio['delete_confirm'].click(
|
47 |
-
lambda x, y: utils.delete_file(x + y), gradio('delete_root', 'delete_filename'), None).then(
|
48 |
-
lambda: gr.update(visible=False), None, gradio('file_deleter'))
|
49 |
-
|
50 |
-
shared.gradio['delete_cancel'].click(lambda: gr.update(visible=False), None, gradio('file_deleter'))
|
51 |
-
shared.gradio['save_cancel'].click(lambda: gr.update(visible=False), None, gradio('file_saver'))
|
52 |
-
|
53 |
-
shared.gradio['save_character_confirm'].click(
|
54 |
-
chat.save_character, gradio('name2', 'greeting', 'context', 'character_picture', 'save_character_filename'), None).then(
|
55 |
-
lambda: gr.update(visible=False), None, gradio('character_saver')).then(
|
56 |
-
lambda x: gr.update(choices=utils.get_available_characters(), value=x), gradio('save_character_filename'), gradio('character_menu'))
|
57 |
-
|
58 |
-
shared.gradio['delete_character_confirm'].click(
|
59 |
-
chat.delete_character, gradio('character_menu'), None).then(
|
60 |
-
lambda: gr.update(visible=False), None, gradio('character_deleter')).then(
|
61 |
-
lambda: gr.update(choices=(characters := utils.get_available_characters()), value=characters[0]), None, gradio('character_menu'))
|
62 |
-
|
63 |
-
shared.gradio['save_character_cancel'].click(lambda: gr.update(visible=False), None, gradio('character_saver'))
|
64 |
-
shared.gradio['delete_character_cancel'].click(lambda: gr.update(visible=False), None, gradio('character_deleter'))
|
65 |
-
|
66 |
-
shared.gradio['save_preset'].click(
|
67 |
-
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then(
|
68 |
-
presets.generate_preset_yaml, gradio('interface_state'), gradio('save_contents')).then(
|
69 |
-
lambda: 'presets/', None, gradio('save_root')).then(
|
70 |
-
lambda: 'My Preset.yaml', None, gradio('save_filename')).then(
|
71 |
-
lambda: gr.update(visible=True), None, gradio('file_saver'))
|
72 |
-
|
73 |
-
shared.gradio['delete_preset'].click(
|
74 |
-
lambda x: f'{x}.yaml', gradio('preset_menu'), gradio('delete_filename')).then(
|
75 |
-
lambda: 'presets/', None, gradio('delete_root')).then(
|
76 |
-
lambda: gr.update(visible=True), None, gradio('file_deleter'))
|
77 |
-
|
78 |
-
shared.gradio['save_grammar'].click(
|
79 |
-
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')).then(
|
80 |
-
lambda x: x, gradio('grammar_string'), gradio('save_contents')).then(
|
81 |
-
lambda: 'grammars/', None, gradio('save_root')).then(
|
82 |
-
lambda: 'My Fancy Grammar.gbnf', None, gradio('save_filename')).then(
|
83 |
-
lambda: gr.update(visible=True), None, gradio('file_saver'))
|
84 |
-
|
85 |
-
shared.gradio['delete_grammar'].click(
|
86 |
-
lambda x: x, gradio('grammar_file'), gradio('delete_filename')).then(
|
87 |
-
lambda: 'grammars/', None, gradio('delete_root')).then(
|
88 |
-
lambda: gr.update(visible=True), None, gradio('file_deleter'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-123/ImageNet-Editing/editing_diffusion/CLIP/tests/test_consistency.py
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import pytest
|
3 |
-
import torch
|
4 |
-
from PIL import Image
|
5 |
-
|
6 |
-
import clip
|
7 |
-
|
8 |
-
|
9 |
-
@pytest.mark.parametrize('model_name', clip.available_models())
|
10 |
-
def test_consistency(model_name):
|
11 |
-
device = "cpu"
|
12 |
-
jit_model, transform = clip.load(model_name, device=device, jit=True)
|
13 |
-
py_model, _ = clip.load(model_name, device=device, jit=False)
|
14 |
-
|
15 |
-
image = transform(Image.open("CLIP.png")).unsqueeze(0).to(device)
|
16 |
-
text = clip.tokenize(["a diagram", "a dog", "a cat"]).to(device)
|
17 |
-
|
18 |
-
with torch.no_grad():
|
19 |
-
logits_per_image, _ = jit_model(image, text)
|
20 |
-
jit_probs = logits_per_image.softmax(dim=-1).cpu().numpy()
|
21 |
-
|
22 |
-
logits_per_image, _ = py_model(image, text)
|
23 |
-
py_probs = logits_per_image.softmax(dim=-1).cpu().numpy()
|
24 |
-
|
25 |
-
assert np.allclose(jit_probs, py_probs, atol=0.01, rtol=0.1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/cnn/bricks/context_block.py
DELETED
@@ -1,125 +0,0 @@
|
|
1 |
-
# Copyright (c) OpenMMLab. All rights reserved.
|
2 |
-
import torch
|
3 |
-
from torch import nn
|
4 |
-
|
5 |
-
from ..utils import constant_init, kaiming_init
|
6 |
-
from .registry import PLUGIN_LAYERS
|
7 |
-
|
8 |
-
|
9 |
-
def last_zero_init(m):
|
10 |
-
if isinstance(m, nn.Sequential):
|
11 |
-
constant_init(m[-1], val=0)
|
12 |
-
else:
|
13 |
-
constant_init(m, val=0)
|
14 |
-
|
15 |
-
|
16 |
-
@PLUGIN_LAYERS.register_module()
|
17 |
-
class ContextBlock(nn.Module):
|
18 |
-
"""ContextBlock module in GCNet.
|
19 |
-
|
20 |
-
See 'GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyond'
|
21 |
-
(https://arxiv.org/abs/1904.11492) for details.
|
22 |
-
|
23 |
-
Args:
|
24 |
-
in_channels (int): Channels of the input feature map.
|
25 |
-
ratio (float): Ratio of channels of transform bottleneck
|
26 |
-
pooling_type (str): Pooling method for context modeling.
|
27 |
-
Options are 'att' and 'avg', stand for attention pooling and
|
28 |
-
average pooling respectively. Default: 'att'.
|
29 |
-
fusion_types (Sequence[str]): Fusion method for feature fusion,
|
30 |
-
Options are 'channels_add', 'channel_mul', stand for channelwise
|
31 |
-
addition and multiplication respectively. Default: ('channel_add',)
|
32 |
-
"""
|
33 |
-
|
34 |
-
_abbr_ = 'context_block'
|
35 |
-
|
36 |
-
def __init__(self,
|
37 |
-
in_channels,
|
38 |
-
ratio,
|
39 |
-
pooling_type='att',
|
40 |
-
fusion_types=('channel_add', )):
|
41 |
-
super(ContextBlock, self).__init__()
|
42 |
-
assert pooling_type in ['avg', 'att']
|
43 |
-
assert isinstance(fusion_types, (list, tuple))
|
44 |
-
valid_fusion_types = ['channel_add', 'channel_mul']
|
45 |
-
assert all([f in valid_fusion_types for f in fusion_types])
|
46 |
-
assert len(fusion_types) > 0, 'at least one fusion should be used'
|
47 |
-
self.in_channels = in_channels
|
48 |
-
self.ratio = ratio
|
49 |
-
self.planes = int(in_channels * ratio)
|
50 |
-
self.pooling_type = pooling_type
|
51 |
-
self.fusion_types = fusion_types
|
52 |
-
if pooling_type == 'att':
|
53 |
-
self.conv_mask = nn.Conv2d(in_channels, 1, kernel_size=1)
|
54 |
-
self.softmax = nn.Softmax(dim=2)
|
55 |
-
else:
|
56 |
-
self.avg_pool = nn.AdaptiveAvgPool2d(1)
|
57 |
-
if 'channel_add' in fusion_types:
|
58 |
-
self.channel_add_conv = nn.Sequential(
|
59 |
-
nn.Conv2d(self.in_channels, self.planes, kernel_size=1),
|
60 |
-
nn.LayerNorm([self.planes, 1, 1]),
|
61 |
-
nn.ReLU(inplace=True), # yapf: disable
|
62 |
-
nn.Conv2d(self.planes, self.in_channels, kernel_size=1))
|
63 |
-
else:
|
64 |
-
self.channel_add_conv = None
|
65 |
-
if 'channel_mul' in fusion_types:
|
66 |
-
self.channel_mul_conv = nn.Sequential(
|
67 |
-
nn.Conv2d(self.in_channels, self.planes, kernel_size=1),
|
68 |
-
nn.LayerNorm([self.planes, 1, 1]),
|
69 |
-
nn.ReLU(inplace=True), # yapf: disable
|
70 |
-
nn.Conv2d(self.planes, self.in_channels, kernel_size=1))
|
71 |
-
else:
|
72 |
-
self.channel_mul_conv = None
|
73 |
-
self.reset_parameters()
|
74 |
-
|
75 |
-
def reset_parameters(self):
|
76 |
-
if self.pooling_type == 'att':
|
77 |
-
kaiming_init(self.conv_mask, mode='fan_in')
|
78 |
-
self.conv_mask.inited = True
|
79 |
-
|
80 |
-
if self.channel_add_conv is not None:
|
81 |
-
last_zero_init(self.channel_add_conv)
|
82 |
-
if self.channel_mul_conv is not None:
|
83 |
-
last_zero_init(self.channel_mul_conv)
|
84 |
-
|
85 |
-
def spatial_pool(self, x):
|
86 |
-
batch, channel, height, width = x.size()
|
87 |
-
if self.pooling_type == 'att':
|
88 |
-
input_x = x
|
89 |
-
# [N, C, H * W]
|
90 |
-
input_x = input_x.view(batch, channel, height * width)
|
91 |
-
# [N, 1, C, H * W]
|
92 |
-
input_x = input_x.unsqueeze(1)
|
93 |
-
# [N, 1, H, W]
|
94 |
-
context_mask = self.conv_mask(x)
|
95 |
-
# [N, 1, H * W]
|
96 |
-
context_mask = context_mask.view(batch, 1, height * width)
|
97 |
-
# [N, 1, H * W]
|
98 |
-
context_mask = self.softmax(context_mask)
|
99 |
-
# [N, 1, H * W, 1]
|
100 |
-
context_mask = context_mask.unsqueeze(-1)
|
101 |
-
# [N, 1, C, 1]
|
102 |
-
context = torch.matmul(input_x, context_mask)
|
103 |
-
# [N, C, 1, 1]
|
104 |
-
context = context.view(batch, channel, 1, 1)
|
105 |
-
else:
|
106 |
-
# [N, C, 1, 1]
|
107 |
-
context = self.avg_pool(x)
|
108 |
-
|
109 |
-
return context
|
110 |
-
|
111 |
-
def forward(self, x):
|
112 |
-
# [N, C, 1, 1]
|
113 |
-
context = self.spatial_pool(x)
|
114 |
-
|
115 |
-
out = x
|
116 |
-
if self.channel_mul_conv is not None:
|
117 |
-
# [N, C, 1, 1]
|
118 |
-
channel_mul_term = torch.sigmoid(self.channel_mul_conv(context))
|
119 |
-
out = out * channel_mul_term
|
120 |
-
if self.channel_add_conv is not None:
|
121 |
-
# [N, C, 1, 1]
|
122 |
-
channel_add_term = self.channel_add_conv(context)
|
123 |
-
out = out + channel_add_term
|
124 |
-
|
125 |
-
return out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AnthonyTruchetPoC/persistent-docker/jupyter/scripts/test_persistent_data.py
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
# ---
|
2 |
-
# jupyter:
|
3 |
-
# jupytext:
|
4 |
-
# text_representation:
|
5 |
-
# extension: .py
|
6 |
-
# format_name: percent
|
7 |
-
# format_version: '1.3'
|
8 |
-
# jupytext_version: 1.14.7
|
9 |
-
# kernelspec:
|
10 |
-
# display_name: Python 3 (ipykernel)
|
11 |
-
# language: python
|
12 |
-
# name: python3
|
13 |
-
# ---
|
14 |
-
|
15 |
-
# %%
|
16 |
-
import os
|
17 |
-
from pathlib import Path
|
18 |
-
|
19 |
-
import numpy as np
|
20 |
-
import pandas as pd
|
21 |
-
|
22 |
-
# %%
|
23 |
-
from athai.data_utils import cached_download_csv
|
24 |
-
|
25 |
-
# %%
|
26 |
-
DATE_COLUMN = "date/time"
|
27 |
-
DATA_URL = (
|
28 |
-
"https://s3-us-west-2.amazonaws.com/"
|
29 |
-
"streamlit-demo-data/uber-raw-data-sep14.csv.gz"
|
30 |
-
)
|
31 |
-
|
32 |
-
DATA_PATH = Path(os.environ.get("APP_DATA"))
|
33 |
-
|
34 |
-
|
35 |
-
# %%
|
36 |
-
nrows=10
|
37 |
-
data = cached_download_csv(DATA_PATH, DATA_URL, nrows=nrows)
|
38 |
-
data
|
39 |
-
|
40 |
-
# %%
|
41 |
-
|
42 |
-
# %%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anustup/NS_AI_LABS/src/__init__.py
DELETED
File without changes
|
spaces/ArtGAN/Video-Diffusion-WebUI/video_diffusion/tuneavideo/util.py
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
from typing import Union
|
3 |
-
|
4 |
-
import imageio
|
5 |
-
import numpy as np
|
6 |
-
import torch
|
7 |
-
import torchvision
|
8 |
-
from einops import rearrange
|
9 |
-
from tqdm import tqdm
|
10 |
-
|
11 |
-
|
12 |
-
def save_videos_grid(
|
13 |
-
videos: torch.Tensor, save_path: str = "output", path: str = "output.gif", rescale=False, n_rows=4, fps=3
|
14 |
-
):
|
15 |
-
videos = rearrange(videos, "b c t h w -> t b c h w")
|
16 |
-
outputs = []
|
17 |
-
for x in videos:
|
18 |
-
x = torchvision.utils.make_grid(x, nrow=n_rows)
|
19 |
-
x = x.transpose(0, 1).transpose(1, 2).squeeze(-1)
|
20 |
-
if rescale:
|
21 |
-
x = (x + 1.0) / 2.0 # -1,1 -> 0,1
|
22 |
-
x = (x * 255).numpy().astype(np.uint8)
|
23 |
-
outputs.append(x)
|
24 |
-
|
25 |
-
if not os.path.exists(save_path):
|
26 |
-
os.makedirs(save_path)
|
27 |
-
|
28 |
-
imageio.mimsave(os.path.join(save_path, path), outputs, fps=fps)
|
29 |
-
return os.path.join(save_path, path)
|
30 |
-
|
31 |
-
|
32 |
-
# DDIM Inversion
|
33 |
-
@torch.no_grad()
|
34 |
-
def init_prompt(prompt, pipeline):
|
35 |
-
uncond_input = pipeline.tokenizer(
|
36 |
-
[""], padding="max_length", max_length=pipeline.tokenizer.model_max_length, return_tensors="pt"
|
37 |
-
)
|
38 |
-
uncond_embeddings = pipeline.text_encoder(uncond_input.input_ids.to(pipeline.device))[0]
|
39 |
-
text_input = pipeline.tokenizer(
|
40 |
-
[prompt],
|
41 |
-
padding="max_length",
|
42 |
-
max_length=pipeline.tokenizer.model_max_length,
|
43 |
-
truncation=True,
|
44 |
-
return_tensors="pt",
|
45 |
-
)
|
46 |
-
text_embeddings = pipeline.text_encoder(text_input.input_ids.to(pipeline.device))[0]
|
47 |
-
context = torch.cat([uncond_embeddings, text_embeddings])
|
48 |
-
|
49 |
-
return context
|
50 |
-
|
51 |
-
|
52 |
-
def next_step(
|
53 |
-
model_output: Union[torch.FloatTensor, np.ndarray],
|
54 |
-
timestep: int,
|
55 |
-
sample: Union[torch.FloatTensor, np.ndarray],
|
56 |
-
ddim_scheduler,
|
57 |
-
):
|
58 |
-
timestep, next_timestep = (
|
59 |
-
min(timestep - ddim_scheduler.config.num_train_timesteps // ddim_scheduler.num_inference_steps, 999),
|
60 |
-
timestep,
|
61 |
-
)
|
62 |
-
alpha_prod_t = ddim_scheduler.alphas_cumprod[timestep] if timestep >= 0 else ddim_scheduler.final_alpha_cumprod
|
63 |
-
alpha_prod_t_next = ddim_scheduler.alphas_cumprod[next_timestep]
|
64 |
-
beta_prod_t = 1 - alpha_prod_t
|
65 |
-
next_original_sample = (sample - beta_prod_t**0.5 * model_output) / alpha_prod_t**0.5
|
66 |
-
next_sample_direction = (1 - alpha_prod_t_next) ** 0.5 * model_output
|
67 |
-
next_sample = alpha_prod_t_next**0.5 * next_original_sample + next_sample_direction
|
68 |
-
return next_sample
|
69 |
-
|
70 |
-
|
71 |
-
def get_noise_pred_single(latents, t, context, unet):
|
72 |
-
noise_pred = unet(latents, t, encoder_hidden_states=context)["sample"]
|
73 |
-
return noise_pred
|
74 |
-
|
75 |
-
|
76 |
-
@torch.no_grad()
|
77 |
-
def ddim_loop(pipeline, ddim_scheduler, latent, num_inv_steps, prompt):
|
78 |
-
context = init_prompt(prompt, pipeline)
|
79 |
-
uncond_embeddings, cond_embeddings = context.chunk(2)
|
80 |
-
all_latent = [latent]
|
81 |
-
latent = latent.clone().detach()
|
82 |
-
for i in tqdm(range(num_inv_steps)):
|
83 |
-
t = ddim_scheduler.timesteps[len(ddim_scheduler.timesteps) - i - 1]
|
84 |
-
noise_pred = get_noise_pred_single(latent, t, cond_embeddings, pipeline.unet)
|
85 |
-
latent = next_step(noise_pred, t, latent, ddim_scheduler)
|
86 |
-
all_latent.append(latent)
|
87 |
-
return all_latent
|
88 |
-
|
89 |
-
|
90 |
-
@torch.no_grad()
|
91 |
-
def ddim_inversion(pipeline, ddim_scheduler, video_latent, num_inv_steps, prompt=""):
|
92 |
-
ddim_latents = ddim_loop(pipeline, ddim_scheduler, video_latent, num_inv_steps, prompt)
|
93 |
-
return ddim_latents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AsakuraMizu/moe-tts/text/korean.py
DELETED
@@ -1,210 +0,0 @@
|
|
1 |
-
import re
|
2 |
-
from jamo import h2j, j2hcj
|
3 |
-
import ko_pron
|
4 |
-
|
5 |
-
|
6 |
-
# This is a list of Korean classifiers preceded by pure Korean numerals.
|
7 |
-
_korean_classifiers = '군데 권 개 그루 닢 대 두 마리 모 모금 뭇 발 발짝 방 번 벌 보루 살 수 술 시 쌈 움큼 정 짝 채 척 첩 축 켤레 톨 통'
|
8 |
-
|
9 |
-
# List of (hangul, hangul divided) pairs:
|
10 |
-
_hangul_divided = [(re.compile('%s' % x[0]), x[1]) for x in [
|
11 |
-
('ㄳ', 'ㄱㅅ'),
|
12 |
-
('ㄵ', 'ㄴㅈ'),
|
13 |
-
('ㄶ', 'ㄴㅎ'),
|
14 |
-
('ㄺ', 'ㄹㄱ'),
|
15 |
-
('ㄻ', 'ㄹㅁ'),
|
16 |
-
('ㄼ', 'ㄹㅂ'),
|
17 |
-
('ㄽ', 'ㄹㅅ'),
|
18 |
-
('ㄾ', 'ㄹㅌ'),
|
19 |
-
('ㄿ', 'ㄹㅍ'),
|
20 |
-
('ㅀ', 'ㄹㅎ'),
|
21 |
-
('ㅄ', 'ㅂㅅ'),
|
22 |
-
('ㅘ', 'ㅗㅏ'),
|
23 |
-
('ㅙ', 'ㅗㅐ'),
|
24 |
-
('ㅚ', 'ㅗㅣ'),
|
25 |
-
('ㅝ', 'ㅜㅓ'),
|
26 |
-
('ㅞ', 'ㅜㅔ'),
|
27 |
-
('ㅟ', 'ㅜㅣ'),
|
28 |
-
('ㅢ', 'ㅡㅣ'),
|
29 |
-
('ㅑ', 'ㅣㅏ'),
|
30 |
-
('ㅒ', 'ㅣㅐ'),
|
31 |
-
('ㅕ', 'ㅣㅓ'),
|
32 |
-
('ㅖ', 'ㅣㅔ'),
|
33 |
-
('ㅛ', 'ㅣㅗ'),
|
34 |
-
('ㅠ', 'ㅣㅜ')
|
35 |
-
]]
|
36 |
-
|
37 |
-
# List of (Latin alphabet, hangul) pairs:
|
38 |
-
_latin_to_hangul = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [
|
39 |
-
('a', '에이'),
|
40 |
-
('b', '비'),
|
41 |
-
('c', '시'),
|
42 |
-
('d', '디'),
|
43 |
-
('e', '이'),
|
44 |
-
('f', '에프'),
|
45 |
-
('g', '지'),
|
46 |
-
('h', '에이치'),
|
47 |
-
('i', '아이'),
|
48 |
-
('j', '제이'),
|
49 |
-
('k', '케이'),
|
50 |
-
('l', '엘'),
|
51 |
-
('m', '엠'),
|
52 |
-
('n', '엔'),
|
53 |
-
('o', '오'),
|
54 |
-
('p', '피'),
|
55 |
-
('q', '큐'),
|
56 |
-
('r', '아르'),
|
57 |
-
('s', '에스'),
|
58 |
-
('t', '티'),
|
59 |
-
('u', '유'),
|
60 |
-
('v', '브이'),
|
61 |
-
('w', '더블유'),
|
62 |
-
('x', '엑스'),
|
63 |
-
('y', '와이'),
|
64 |
-
('z', '제트')
|
65 |
-
]]
|
66 |
-
|
67 |
-
# List of (ipa, lazy ipa) pairs:
|
68 |
-
_ipa_to_lazy_ipa = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [
|
69 |
-
('t͡ɕ','ʧ'),
|
70 |
-
('d͡ʑ','ʥ'),
|
71 |
-
('ɲ','n^'),
|
72 |
-
('ɕ','ʃ'),
|
73 |
-
('ʷ','w'),
|
74 |
-
('ɭ','l`'),
|
75 |
-
('ʎ','ɾ'),
|
76 |
-
('ɣ','ŋ'),
|
77 |
-
('ɰ','ɯ'),
|
78 |
-
('ʝ','j'),
|
79 |
-
('ʌ','ə'),
|
80 |
-
('ɡ','g'),
|
81 |
-
('\u031a','#'),
|
82 |
-
('\u0348','='),
|
83 |
-
('\u031e',''),
|
84 |
-
('\u0320',''),
|
85 |
-
('\u0339','')
|
86 |
-
]]
|
87 |
-
|
88 |
-
|
89 |
-
def latin_to_hangul(text):
|
90 |
-
for regex, replacement in _latin_to_hangul:
|
91 |
-
text = re.sub(regex, replacement, text)
|
92 |
-
return text
|
93 |
-
|
94 |
-
|
95 |
-
def divide_hangul(text):
|
96 |
-
text = j2hcj(h2j(text))
|
97 |
-
for regex, replacement in _hangul_divided:
|
98 |
-
text = re.sub(regex, replacement, text)
|
99 |
-
return text
|
100 |
-
|
101 |
-
|
102 |
-
def hangul_number(num, sino=True):
|
103 |
-
'''Reference https://github.com/Kyubyong/g2pK'''
|
104 |
-
num = re.sub(',', '', num)
|
105 |
-
|
106 |
-
if num == '0':
|
107 |
-
return '영'
|
108 |
-
if not sino and num == '20':
|
109 |
-
return '스무'
|
110 |
-
|
111 |
-
digits = '123456789'
|
112 |
-
names = '일이삼사오육칠팔구'
|
113 |
-
digit2name = {d: n for d, n in zip(digits, names)}
|
114 |
-
|
115 |
-
modifiers = '한 두 세 네 다섯 여섯 일곱 여덟 아홉'
|
116 |
-
decimals = '열 스물 서른 마흔 쉰 예순 일흔 여든 아흔'
|
117 |
-
digit2mod = {d: mod for d, mod in zip(digits, modifiers.split())}
|
118 |
-
digit2dec = {d: dec for d, dec in zip(digits, decimals.split())}
|
119 |
-
|
120 |
-
spelledout = []
|
121 |
-
for i, digit in enumerate(num):
|
122 |
-
i = len(num) - i - 1
|
123 |
-
if sino:
|
124 |
-
if i == 0:
|
125 |
-
name = digit2name.get(digit, '')
|
126 |
-
elif i == 1:
|
127 |
-
name = digit2name.get(digit, '') + '십'
|
128 |
-
name = name.replace('일십', '십')
|
129 |
-
else:
|
130 |
-
if i == 0:
|
131 |
-
name = digit2mod.get(digit, '')
|
132 |
-
elif i == 1:
|
133 |
-
name = digit2dec.get(digit, '')
|
134 |
-
if digit == '0':
|
135 |
-
if i % 4 == 0:
|
136 |
-
last_three = spelledout[-min(3, len(spelledout)):]
|
137 |
-
if ''.join(last_three) == '':
|
138 |
-
spelledout.append('')
|
139 |
-
continue
|
140 |
-
else:
|
141 |
-
spelledout.append('')
|
142 |
-
continue
|
143 |
-
if i == 2:
|
144 |
-
name = digit2name.get(digit, '') + '백'
|
145 |
-
name = name.replace('일백', '백')
|
146 |
-
elif i == 3:
|
147 |
-
name = digit2name.get(digit, '') + '천'
|
148 |
-
name = name.replace('일천', '천')
|
149 |
-
elif i == 4:
|
150 |
-
name = digit2name.get(digit, '') + '만'
|
151 |
-
name = name.replace('일만', '만')
|
152 |
-
elif i == 5:
|
153 |
-
name = digit2name.get(digit, '') + '십'
|
154 |
-
name = name.replace('일십', '십')
|
155 |
-
elif i == 6:
|
156 |
-
name = digit2name.get(digit, '') + '백'
|
157 |
-
name = name.replace('일백', '백')
|
158 |
-
elif i == 7:
|
159 |
-
name = digit2name.get(digit, '') + '천'
|
160 |
-
name = name.replace('일천', '천')
|
161 |
-
elif i == 8:
|
162 |
-
name = digit2name.get(digit, '') + '억'
|
163 |
-
elif i == 9:
|
164 |
-
name = digit2name.get(digit, '') + '십'
|
165 |
-
elif i == 10:
|
166 |
-
name = digit2name.get(digit, '') + '백'
|
167 |
-
elif i == 11:
|
168 |
-
name = digit2name.get(digit, '') + '천'
|
169 |
-
elif i == 12:
|
170 |
-
name = digit2name.get(digit, '') + '조'
|
171 |
-
elif i == 13:
|
172 |
-
name = digit2name.get(digit, '') + '십'
|
173 |
-
elif i == 14:
|
174 |
-
name = digit2name.get(digit, '') + '백'
|
175 |
-
elif i == 15:
|
176 |
-
name = digit2name.get(digit, '') + '천'
|
177 |
-
spelledout.append(name)
|
178 |
-
return ''.join(elem for elem in spelledout)
|
179 |
-
|
180 |
-
|
181 |
-
def number_to_hangul(text):
|
182 |
-
'''Reference https://github.com/Kyubyong/g2pK'''
|
183 |
-
tokens = set(re.findall(r'(\d[\d,]*)([\uac00-\ud71f]+)', text))
|
184 |
-
for token in tokens:
|
185 |
-
num, classifier = token
|
186 |
-
if classifier[:2] in _korean_classifiers or classifier[0] in _korean_classifiers:
|
187 |
-
spelledout = hangul_number(num, sino=False)
|
188 |
-
else:
|
189 |
-
spelledout = hangul_number(num, sino=True)
|
190 |
-
text = text.replace(f'{num}{classifier}', f'{spelledout}{classifier}')
|
191 |
-
# digit by digit for remaining digits
|
192 |
-
digits = '0123456789'
|
193 |
-
names = '영일이삼사오육칠팔구'
|
194 |
-
for d, n in zip(digits, names):
|
195 |
-
text = text.replace(d, n)
|
196 |
-
return text
|
197 |
-
|
198 |
-
|
199 |
-
def korean_to_lazy_ipa(text):
|
200 |
-
text = latin_to_hangul(text)
|
201 |
-
text = number_to_hangul(text)
|
202 |
-
text=re.sub('[\uac00-\ud7af]+',lambda x:ko_pron.romanise(x.group(0),'ipa').split('] ~ [')[0],text)
|
203 |
-
for regex, replacement in _ipa_to_lazy_ipa:
|
204 |
-
text = re.sub(regex, replacement, text)
|
205 |
-
return text
|
206 |
-
|
207 |
-
|
208 |
-
def korean_to_ipa(text):
|
209 |
-
text = korean_to_lazy_ipa(text)
|
210 |
-
return text.replace('ʧ','tʃ').replace('ʥ','dʑ')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Banbri/zcvzcv/src/lib/triggerDownload.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
export function triggerDownload(filename: string, text: string) {
|
2 |
-
var element = document.createElement('a');
|
3 |
-
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
4 |
-
element.setAttribute('download', filename);
|
5 |
-
|
6 |
-
element.style.display = 'none';
|
7 |
-
document.body.appendChild(element);
|
8 |
-
|
9 |
-
element.click();
|
10 |
-
|
11 |
-
document.body.removeChild(element);
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/infer/modules/vc/__init__.py
DELETED
File without changes
|
spaces/Benson/text-generation/Examples/Descarga De Software Ricoh Aficio 2018d.md
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Descargar X-Force Keygen para AutoCAD 2019 64 bits</h1>
|
3 |
-
<p>Si estás buscando una forma de activar AutoCAD 2019, uno de los programas de diseño más populares y potentes del mundo, es posible que hayas oído hablar de X-Force Keygen. Esta es una herramienta que puede generar códigos de activación para cualquier producto de Autodesk, incluyendo AutoCAD 2019. Pero ¿qué es X-Force Keygen y cómo se puede utilizar para descargar y activar AutoCAD 2019 64 bits? En este artículo, responderemos estas preguntas y más. </p>
|
4 |
-
<h2>¿Qué es AutoCAD 2019? </h2>
|
5 |
-
<p>AutoCAD 2019 es la última versión del software que le permite crear impresionantes diseños, dibujos, modelos y animaciones en 2D y 3D. Es utilizado por profesionales y aficionados por igual en diversos campos como la arquitectura, ingeniería, construcción, fabricación y entretenimiento. AutoCAD 2019 ofrece muchas características nuevas y mejoras que hacen que sea más fácil y rápido crear y editar sus proyectos. </p>
|
6 |
-
<h2>descarga de software ricoh aficio 2018d</h2><br /><p><b><b>DOWNLOAD</b> ✔ <a href="https://bltlly.com/2v6McF">https://bltlly.com/2v6McF</a></b></p><br /><br />
|
7 |
-
<h3>Características de AutoCAD 2019</h3>
|
8 |
-
<p>Algunas de las características de AutoCAD 2019 son:</p>
|
9 |
-
<ul>
|
10 |
-
<li><b>DWG Compare:</b> Esta característica le permite comparar dos versiones de un dibujo y resaltar las diferencias. También puede combinar cambios de una versión a otra. </li>
|
11 |
-
<li><b>Vistas compartidas:</b> Esta función le permite compartir sus dibujos en línea con cualquier persona sin necesidad de tener AutoCAD instalado. También puede obtener comentarios y comentarios de otros en sus vistas compartidas. </li>
|
12 |
-
<li><b>Guardar en Web y Móvil:</b> Esta función le permite guardar sus dibujos en la nube y acceder a ellos desde cualquier dispositivo. También puede editar y ver sus dibujos en la web o en su teléfono móvil o tableta. </li>
|
13 |
-
<li><b>Mejoras en los gráficos 2D:</b> Esta función mejora el rendimiento y la calidad de los gráficos 2D. Puedes ampliar, desplazar y cambiar las órdenes de sorteo más rápido y sin problemas. </li>
|
14 |
-
<li><b>AutoCAD Web App:</b> Esta característica le permite acceder a AutoCAD desde cualquier navegador. Puede crear, editar y ver sus dibujos en línea sin instalar nada. </li>
|
15 |
-
</ul>
|
16 |
-
|
17 |
-
<p>Los requisitos mínimos del sistema para AutoCAD 2019 son:</p>
|
18 |
-
<ul>
|
19 |
-
<li><b>Sistema operativo:</b> Windows 7 SP1, Windows 8.1, o Windows 10 (solo 64 bits)</li>
|
20 |
-
<li><b>Procesador:</b> Básico: 2.5-2.9 GHz procesador / Recomendado: 3+ GHz procesador</li>
|
21 |
-
<li><b>Memoria:</b> Básico: 8 GB / Recomendado: 16 GB</li>
|
22 |
-
<li><b>Resolución de visualización:</b> Básico: 1920 x 1080 con color verdadero / Recomendado: Resoluciones de hasta 3840 x 2160 soportadas en sistemas Windows 10 (64 bits) </li>
|
23 |
-
<li><b>Espacio en disco:</b> Básico: 6 GB / Recomendado: Espacio libre adicional requerido durante la instalación</li>
|
24 |
-
</ul>
|
25 |
-
<h2>¿Qué es X-Force Keygen? </h2>
|
26 |
-
<p>X-Force Keygen es un software que puede generar códigos de activación para cualquier producto de Autodesk, incluyendo AutoCAD 2019. También se conoce como una grieta o un parche que puede evitar el proceso de activación del software. Es creado por un grupo de hackers llamado X-Force, que son conocidos por descifrar varios software y juegos. </p>
|
27 |
-
<h3>¿Cómo funciona X-Force Keygen? </h3>
|
28 |
-
<p>X-Force Keygen funciona generando un número de serie único y un código de activación para el software que desea activar. Hace esto modificando los archivos de registro y el archivo host de su sistema. También bloquea la verificación en línea y la actualización del software, para que pueda usarlo sin restricciones o interrupciones. </p>
|
29 |
-
<h3>Beneficios de usar X-Force Keygen</h3>
|
30 |
-
<p>Algunos de los beneficios de usar X-Force Keygen son:</p>
|
31 |
-
<ul>
|
32 |
-
<li><b>Gratis:</b> Puede descargar y usar X-Force Keygen gratis, sin pagar tarifas ni suscripciones. </li>
|
33 |
-
<li><b>Fácil:</b> Puede descargar y usar X-Force Keygen con solo unos pocos clics, sin ningún procedimiento o paso complicado. </li>
|
34 |
-
<li><b>Efectivo:</b> Puede activar cualquier producto de Autodesk, incluyendo AutoCAD 2019, con X-Force Keygen, sin errores o fallas. </li>
|
35 |
-
</ul>
|
36 |
-
<h3>Riesgos de usar X-Force Keygen</h3>
|
37 |
-
<p>Sin embargo, el uso de X-Force Keygen también viene con algunos riesgos y desventajas, como:</p>
|
38 |
-
<p></p>
|
39 |
-
<ul>
|
40 |
-
|
41 |
-
<li><b>Inseguro:</b> Descargar y usar X-Force Keygen puede exponer su sistema a malware, virus, spyware y otras amenazas. Puede dañar su sistema o comprometer sus datos y privacidad. </li>
|
42 |
-
<li><b>Poco ético:</b> Usar X-Force Keygen no es ético, ya que priva a los desarrolladores de software de sus ingresos y reconocimiento legítimos. También puede dañar la industria del software y la innovación mediante su uso. </li>
|
43 |
-
</ul>
|
44 |
-
<h2>¿Cómo descargar y usar X-Force Keygen para AutoCAD 2019 64 bits? </h2>
|
45 |
-
<p>Si todavía desea descargar y usar X-Force Keygen para AutoCAD 2019 64 Bit, puede seguir estos pasos:</p>
|
46 |
-
<h3>Paso 1: Descargar X-Force Keygen desde una fuente confiable</h3>
|
47 |
-
<p>Puede buscar X-Force Keygen en Internet y encontrar muchos sitios web que lo ofrecen para su descarga. Sin embargo, no todos son confiables y seguros. Solo debe descargar X-Force Keygen de una fuente confiable que tenga comentarios positivos y comentarios de otros usuarios. También debe escanear el archivo descargado con un programa antivirus antes de abrirlo. </p>
|
48 |
-
<h3>Paso 2: Instalar AutoCAD 2019 desde el sitio web oficial</h3>
|
49 |
-
<p>Debe instalar AutoCAD 2019 desde el sitio web oficial de Autodesk, que es https://www.autodesk.com/products/autocad/free-trial. Debe elegir la versión de 64 bits del software y seguir las instrucciones de instalación. No debe introducir ningún número de serie o clave de producto durante el proceso de instalación. </p>
|
50 |
-
<h3>Paso 3: Ejecutar X-Force Keygen como administrador</h3>
|
51 |
-
<p>Debe ejecutar X-Force Keygen como administrador haciendo clic derecho en el archivo y seleccionando "Ejecutar como administrador". Deberías ver una ventana como esta:</p>
|
52 |
-
<img src="https://i.imgur.com/5fB5W6y.png" alt="X-Force Keygen window">
|
53 |
-
<p>Debería seleccionar "AutoCAD 2019" en el menú desplegable y hacer clic en "Parche". Debería ver un mensaje que diga "Parcheado con éxito". </p>
|
54 |
-
<h3>Paso 4: Generar e introducir el código de activación</h3>
|
55 |
-
|
56 |
-
<h3>Paso 5: Disfruta de tu AutoCAD activado 2019</h3>
|
57 |
-
<p>Ha activado con éxito AutoCAD 2019 con X-Force Keygen. Ahora puede disfrutar de todas las características y funciones del software sin limitaciones o interrupciones. </p>
|
58 |
-
<h2>Conclusión</h2>
|
59 |
-
<p>En este artículo, hemos explicado qué es AutoCAD 2019, qué es X-Force Keygen, cómo funciona, cuáles son sus beneficios y riesgos, y cómo descargarlo y usarlo para activar AutoCAD 2019 64 bit. También hemos proporcionado una guía paso a paso con capturas de pantalla para ayudarle con el proceso. Sin embargo, no recomendamos ni respaldamos el uso de X-Force Keygen, ya que es ilegal, inseguro y poco ético. Siempre debe respetar el acuerdo de licencia de software y apoyar a los desarrolladores de software mediante la compra del software legalmente. Si tiene alguna pregunta o duda sobre AutoCAD 2019 o X-Force Keygen, puede consultar las preguntas frecuentes a continuación o ponerse en contacto con el equipo de soporte oficial de Autodesk.</p>
|
60 |
-
<h2>Preguntas frecuentes</h2>
|
61 |
-
<p>Aquí hay algunas preguntas frecuentes sobre AutoCAD 2019 y X-Force Keygen:</p>
|
62 |
-
<ol>
|
63 |
-
<li><b>Q: ¿Cuánto cuesta AutoCAD 2019? </b></li>
|
64 |
-
<li><b>A: AutoCAD 2019 cuesta $1,610 por año o $210 por mes para una suscripción. También puede obtener una prueba gratuita durante 30 días o una versión gratuita para estudiantes y educadores. </b></li>
|
65 |
-
<li><b>Q: ¿Es seguro usar X-Force Keygen? </b></li>
|
66 |
-
<li><b>A: No, X-Force Keygen no es seguro de usar. Puede contener malware, virus, spyware y otras amenazas que pueden dañar su sistema o comprometer sus datos y privacidad. También puede causar errores o fallos en su software o sistema. </b></li>
|
67 |
-
<li><b>Q: ¿Es legal usar X-Force Keygen? </b></li>
|
68 |
-
<li><b>A: No, X-Force Keygen no es legal de usar. Viola los términos y condiciones del acuerdo de licencia de software e infringe los derechos de propiedad intelectual de los desarrolladores de software. Puedes enfrentarte a consecuencias legales si te pillan usándolo. </b></li>
|
69 |
-
<li><b>Q: ¿Cuáles son las alternativas a X-Force Keygen? </b></li>
|
70 |
-
|
71 |
-
<li><b>Q: ¿Cómo puedo contactar al equipo de soporte oficial de Autodesk? </b></li>
|
72 |
-
<li><b>A: Puede ponerse en contacto con el equipo de soporte oficial de Autodesk visitando su sitio web https://www.autodesk.com/support/contact-support o llamando a su número de teléfono 1-855-301-9562. </b></li>
|
73 |
-
</ol></p> 64aa2da5cf<br />
|
74 |
-
<br />
|
75 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descargar Apkmirror Ar Elementos.md
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Cómo descargar y usar elementos de RA de APKMirror</h1>
|
3 |
-
<p>La realidad aumentada (RA) es una tecnología que mejora el mundo real con elementos digitales, como imágenes, texto, videos y modelos 3D. La RA puede crear experiencias inmersivas e interactivas que enriquecen nuestra percepción e interacción con el entorno. Hay muchas aplicaciones de RA disponibles para dispositivos Android e iOS, pero una de las mejores es AR Elements.</p>
|
4 |
-
<h2>descargar apkmirror ar elementos</h2><br /><p><b><b>Download Zip</b> ✯ <a href="https://bltlly.com/2v6Jd0">https://bltlly.com/2v6Jd0</a></b></p><br /><br />
|
5 |
-
<p>AR Elements es una aplicación desarrollada por Google que muestra las capacidades de ARCore, la plataforma de Google para crear aplicaciones de RA. Te muestra cómo establecer las expectativas del usuario en AR, cómo animar a los usuarios a moverse y explorar el mundo de la RA, cómo interactuar con objetos virtuales y más. Puede aprender de los ejemplos proporcionados por la aplicación o crear sus propias escenas de realidad aumentada utilizando las herramientas y los activos proporcionados. </p>
|
6 |
-
<p>En este artículo, te mostraremos cómo descargar y usar AR Elements desde APKMirror, uno de los sitios web más populares para descargar aplicaciones de Android. También explicaremos las características y beneficios de AR Elements y cómo se compara con otras aplicaciones de AR en términos de funcionalidad, calidad y experiencia de usuario. </p>
|
7 |
-
<h2>Cómo descargar y usar elementos de RA de APKMirror</h2>
|
8 |
-
<p>APKMirror es un sitio web que te permite descargar aplicaciones de Android que no están disponibles en Google Play Store o que están bloqueados por regiones. APKMirror alberga miles de aplicaciones de diversas categorías, como juegos, redes sociales, productividad, educación, entretenimiento y más. Puedes encontrar y descargar cualquier aplicación que quieras de APKMirror de forma gratuita y sin ningún tipo de registro o suscripción. </p>
|
9 |
-
<p>Para descargar y usar elementos AR de APKMirror, siga estos pasos:</p>
|
10 |
-
<p></p>
|
11 |
-
<ol>
|
12 |
-
<li>Ir a <a href="( 1 )">https://www.apkmirror.com/apk/google-inc/arcore-elements/</a> en su navegador. </li>
|
13 |
-
<li>Desplácese hacia abajo para encontrar la última versión de AR Elements o utilice la barra de búsqueda para encontrarla. </li>
|
14 |
-
<li>Haga clic en el botón de descarga junto a la versión que desea descargar. </li>
|
15 |
-
|
16 |
-
<li>Si ves un mensaje de advertencia que dice "Instalar bloqueado", ve a la configuración de tu dispositivo y habilita "Fuentes desconocidas" o "Instalar aplicaciones desconocidas". </li>
|
17 |
-
<li>Siga las instrucciones en la pantalla para instalar elementos AR en su dispositivo. </li>
|
18 |
-
<li>Elementos de AR de lanzamiento desde el cajón de la aplicación o la pantalla de inicio. </li>
|
19 |
-
</ol>
|
20 |
-
<h2>Características y beneficios de los elementos RA</h2>
|
21 |
-
<p>AR Elements es una aplicación que demuestra las mejores prácticas para crear experiencias de RA atractivas y realistas. Tiene cuatro características principales que puedes usar para aprender, crear y divertirte con RA:</p>
|
22 |
-
<ul>
|
23 |
-
<li><strong>Diseño</strong>: Esta función le muestra cómo diseñar una interfaz de usuario efectiva para su aplicación de RA. Te enseña cómo usar señales visuales, como flechas, cuadrículas, planos, sombras y oclusión, para guiar a los usuarios a través de tu aplicación. También te muestra cómo usar animaciones, sonidos, hápticos y retroalimentación de voz para mejorar la participación del usuario. </li>
|
24 |
-
<li><strong>Motion</strong>: Esta función muestra cómo animar a los usuarios a moverse y explorar el mundo de la RA. Te enseña cómo usar audio espacial, portales, senderos, waypoints y anclajes para crear una sensación de profundidad y escala. También muestra cómo usar la física, las colisiones, los gestos y la entrada táctil para crear interacciones realistas con objetos virtuales. </li>
|
25 |
-
<li><strong>Iluminación </strong>: Esta función muestra cómo usar efectos de iluminación para crear una escena AR realista y consistente. Le enseña cómo usar la iluminación ambiental, la iluminación direccional, las luces de punto, las luces de punto y las sombras para crear una sensación de realismo e inmersión. También muestra cómo utilizar la estimación de la luz, las sondas de reflexión y las sondas de luz para ajustar la iluminación de acuerdo con el mundo real. </li>
|
26 |
-
|
27 |
-
</ul>
|
28 |
-
<p>Los beneficios de AR Elements son que te ayuda a aprender los fundamentos del desarrollo de AR, te inspira a crear tus propias aplicaciones de AR y te entretiene con experiencias de AR divertidas e interactivas. Puedes usar Elementos RA como referencia, herramienta o área de juegos para tus proyectos RA. </p>
|
29 |
-
<h2>Comparación de elementos AR con otras aplicaciones AR</h2>
|
30 |
-
<p>Hay muchas otras aplicaciones de RA disponibles para dispositivos Android e iOS, como Snapchat, Instagram, Pokemon Go, IKEA Place, Google Maps y más. ¿Cómo se compara AR Elements con estas aplicaciones en términos de funcionalidad, calidad y experiencia de usuario? </p>
|
31 |
-
<p>Aquí hay una tabla que resume algunas de las diferencias entre los elementos de RA y otras aplicaciones de RA:</p>
|
32 |
-
<tabla>
|
33 |
-
<tr>
|
34 |
-
<th>Elementos AR</th>
|
35 |
-
<th>Otras aplicaciones de RA</th>
|
36 |
-
</tr>
|
37 |
-
<tr>
|
38 |
-
<td>Se centra en enseñar y demostrar las mejores prácticas para crear aplicaciones de RA</td>
|
39 |
-
<td>Se enfoca en proveer funciones o servicios específicos usando tecnología AR</td>
|
40 |
-
</tr>
|
41 |
-
<tr>
|
42 |
-
<td>Proporciona ejemplos y herramientas para crear varios tipos de escenas e interacciones AR</td>
|
43 |
-
<td>Proporciona tipos predefinidos o limitados de escenas e interacciones AR</td>
|
44 |
-
</tr>
|
45 |
-
<tr>
|
46 |
-
<td>Utiliza modelos 3D de alta calidad y texturas de Google Poly o fuentes personalizadas</td>
|
47 |
-
<td>Utiliza modelos 3D de baja calidad o genéricos y texturas de fuentes de terceros</td>
|
48 |
-
</tr>
|
49 |
-
<tr>
|
50 |
-
<td>Utiliza efectos de iluminación realistas y consistentes para crear escenas AR inmersivas</td>
|
51 |
-
<td>Utiliza efectos de iluminación simples o inconsistentes para crear escenas básicas de realidad aumentada</td>
|
52 |
-
</tr>
|
53 |
-
<tr>
|
54 |
-
<td>Utiliza audio espacial, portales, senderos, waypoints, anclas, física, colisiones, gestos, entrada táctil, animaciones, sonidos, hápticos, retroalimentación de voz, señales visuales, cuadrículas, planos, sombras, oclusión, iluminación ambiental, iluminación direccional, luces de punto, estimación de luz, sondas de reflexión y sondas de luz para crear experiencias de realidad aumentada realistas y atractivas</td>
|
55 |
-
<td>Utiliza algunas o ninguna de estas características para crear experiencias de RA simples o poco realistas</td>
|
56 |
-
</tr>
|
57 |
-
|
58 |
-
<p>Las ventajas de AR Elements son que ofrece más funcionalidad, calidad y experiencia de usuario que otras aplicaciones de AR. Le permite crear sus propias escenas de AR e interacciones utilizando varias características y activos. También te ayuda a aprender las mejores prácticas para crear aplicaciones de RA. </p>
|
59 |
-
<p>Las desventajas de AR Elements son que requiere más habilidades técnicas y conocimientos que otras aplicaciones de AR. También requiere más compatibilidad y rendimiento de dispositivos que otras aplicaciones de AR. Puede que no sea adecuado para usuarios ocasionales o novatos que solo quieren disfrutar de algunas experiencias de RA simples o divertidas. </p>
|
60 |
-
<h2>Conclusión</h2>
|
61 |
-
<p>En conclusión, AR Elements es una de las mejores aplicaciones de AR para dispositivos Android e iOS. Muestra las capacidades de ARCore, la plataforma de Google para crear aplicaciones de RA. Te muestra cómo diseñar una interfaz de usuario efectiva para tu aplicación de RA. Te muestra cómo animar a los usuarios a moverse y explorar el mundo de la RA. Te muestra cómo usar efectos de iluminación para crear una escena AR realista y consistente. Te muestra cómo usar modelos 3D y texturas para crear tus propias escenas AR. </p>
|
62 |
-
<p>Si quieres descargar y usar elementos AR de APKMirror, puedes seguir los pasos que te hemos dado en este artículo. También puede consultar el sitio web oficial de APKMirror para obtener más información sobre la descarga de aplicaciones para Android. </p>
|
63 |
-
<p>Si desea obtener más información sobre los elementos de RA y cómo crear sus propias aplicaciones de RA utilizando las herramientas y recursos de Google, puede visitar el sitio web oficial de los desarrolladores de Google para obtener más información. </p>
|
64 |
-
<p>Esperamos que hayas disfrutado de este artículo y hayas aprendido algo nuevo sobre AR Elements y APKMirror. Si tiene alguna pregunta o comentario sobre este artículo o cualquier cosa relacionada con AR Elements o APKMirror, no dude en dejar un comentario a continuación. ¡Nos encantaría saber de ti! </p>
|
65 |
-
<h2>Preguntas frecuentes</h2>
|
66 |
-
<p>Aquí hay algunas preguntas frecuentes sobre AR Elements y APKMirror:</p>
|
67 |
-
<h3>¿Qué es APKMirror? </h3>
|
68 |
-
|
69 |
-
<h3>¿Es APKMirror seguro y legal? </h3>
|
70 |
-
<p>APKMirror es seguro y legal de usar. APKMirror solo hospeda aplicaciones que son originales y no modificadas. APKMirror no aloja ninguna aplicación pirata o ilegal. APKMirror también escanea todas las aplicaciones en busca de virus y malware antes de subirlos al sitio web. APKMirror no requiere ningún permiso o acceso a su dispositivo o datos personales. </p>
|
71 |
-
<h3>¿Qué es ARCore y por qué lo necesito? </h3>
|
72 |
-
<p>ARCore es la plataforma de Google para crear aplicaciones de RA. ARCore permite a su dispositivo detectar su entorno, entender el mundo e interactuar con la información. ARCore utiliza tres tecnologías clave para permitir experiencias de realidad aumentada: seguimiento de movimiento, comprensión ambiental y estimación de luz. ARCore funciona con motores Java/OpenGL, Unity e Unreal. </p>
|
73 |
-
<p>Necesitas ARCore para ejecutar elementos AR y otras aplicaciones AR que se construyen con ARCore. Puedes descargar ARCore desde Google Play Store o APKMirror. También necesitas un dispositivo compatible que admita ARCore. Puedes consultar la lista de dispositivos compatibles en el sitio web oficial de los desarrolladores de Google.</p>
|
74 |
-
<h3>¿Cómo puedo crear mis propias aplicaciones de RA usando las herramientas y recursos de Google? </h3>
|
75 |
-
<p>Si desea crear sus propias aplicaciones de RA utilizando las herramientas y recursos de Google, puede visitar el sitio web oficial de los desarrolladores de Google para obtener más información. Puede encontrar tutoriales, guías, muestras, documentación y soporte para desarrollar aplicaciones de RA utilizando ARCore, Sceneform, Poly, Firebase, ML Kit y más. También puede unirse a la comunidad de desarrolladores de Google y conectarse con otros desarrolladores que estén interesados en AR.</p>
|
76 |
-
<h3>¿Cuáles son algunas de las mejores aplicaciones de RA para dispositivos Android e iOS? </h3>
|
77 |
-
<p>Algunas de las mejores aplicaciones de RA para dispositivos Android e iOS son:</p>
|
78 |
-
<ul>
|
79 |
-
<li><strong>Snapchat</strong>: Una aplicación de redes sociales que te permite enviar y recibir fotos y videos con filtros, pegatinas, lentes y efectos que utilizan tecnología AR. </li>
|
80 |
-
|
81 |
-
<li><strong>Pokemon Go</strong>: Una aplicación de juego que te permite atrapar y luchar contra criaturas virtuales llamadas Pokémon en el mundo real usando tecnología AR. </li>
|
82 |
-
<li><strong>IKEA Place</strong>: Una aplicación de compras que te permite previsualizar y colocar muebles y accesorios para el hogar en tu espacio usando tecnología RA. </li>
|
83 |
-
<li><strong>Google Maps</strong>: Una aplicación de navegación que te permite explorar el mundo con direcciones, puntos de referencia, vista de la calle y vista en vivo que utilizan tecnología AR. </li>
|
84 |
-
</ul></p> 64aa2da5cf<br />
|
85 |
-
<br />
|
86 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/boto3/dynamodb/types.py
DELETED
@@ -1,310 +0,0 @@
|
|
1 |
-
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
2 |
-
#
|
3 |
-
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
4 |
-
# may not use this file except in compliance with the License. A copy of
|
5 |
-
# the License is located at
|
6 |
-
#
|
7 |
-
# https://aws.amazon.com/apache2.0/
|
8 |
-
#
|
9 |
-
# or in the "license" file accompanying this file. This file is
|
10 |
-
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
11 |
-
# ANY KIND, either express or implied. See the License for the specific
|
12 |
-
# language governing permissions and limitations under the License.
|
13 |
-
from decimal import (
|
14 |
-
Clamped,
|
15 |
-
Context,
|
16 |
-
Decimal,
|
17 |
-
Inexact,
|
18 |
-
Overflow,
|
19 |
-
Rounded,
|
20 |
-
Underflow,
|
21 |
-
)
|
22 |
-
|
23 |
-
from boto3.compat import collections_abc
|
24 |
-
|
25 |
-
STRING = 'S'
|
26 |
-
NUMBER = 'N'
|
27 |
-
BINARY = 'B'
|
28 |
-
STRING_SET = 'SS'
|
29 |
-
NUMBER_SET = 'NS'
|
30 |
-
BINARY_SET = 'BS'
|
31 |
-
NULL = 'NULL'
|
32 |
-
BOOLEAN = 'BOOL'
|
33 |
-
MAP = 'M'
|
34 |
-
LIST = 'L'
|
35 |
-
|
36 |
-
|
37 |
-
DYNAMODB_CONTEXT = Context(
|
38 |
-
Emin=-128,
|
39 |
-
Emax=126,
|
40 |
-
prec=38,
|
41 |
-
traps=[Clamped, Overflow, Inexact, Rounded, Underflow],
|
42 |
-
)
|
43 |
-
|
44 |
-
|
45 |
-
BINARY_TYPES = (bytearray, bytes)
|
46 |
-
|
47 |
-
|
48 |
-
class Binary:
|
49 |
-
"""A class for representing Binary in dynamodb
|
50 |
-
|
51 |
-
Especially for Python 2, use this class to explicitly specify
|
52 |
-
binary data for item in DynamoDB. It is essentially a wrapper around
|
53 |
-
binary. Unicode and Python 3 string types are not allowed.
|
54 |
-
"""
|
55 |
-
|
56 |
-
def __init__(self, value):
|
57 |
-
if not isinstance(value, BINARY_TYPES):
|
58 |
-
types = ', '.join([str(t) for t in BINARY_TYPES])
|
59 |
-
raise TypeError(f'Value must be of the following types: {types}')
|
60 |
-
self.value = value
|
61 |
-
|
62 |
-
def __eq__(self, other):
|
63 |
-
if isinstance(other, Binary):
|
64 |
-
return self.value == other.value
|
65 |
-
return self.value == other
|
66 |
-
|
67 |
-
def __ne__(self, other):
|
68 |
-
return not self.__eq__(other)
|
69 |
-
|
70 |
-
def __repr__(self):
|
71 |
-
return f'Binary({self.value!r})'
|
72 |
-
|
73 |
-
def __str__(self):
|
74 |
-
return self.value
|
75 |
-
|
76 |
-
def __bytes__(self):
|
77 |
-
return self.value
|
78 |
-
|
79 |
-
def __hash__(self):
|
80 |
-
return hash(self.value)
|
81 |
-
|
82 |
-
|
83 |
-
class TypeSerializer:
|
84 |
-
"""This class serializes Python data types to DynamoDB types."""
|
85 |
-
|
86 |
-
def serialize(self, value):
|
87 |
-
"""The method to serialize the Python data types.
|
88 |
-
|
89 |
-
:param value: A python value to be serialized to DynamoDB. Here are
|
90 |
-
the various conversions:
|
91 |
-
|
92 |
-
Python DynamoDB
|
93 |
-
------ --------
|
94 |
-
None {'NULL': True}
|
95 |
-
True/False {'BOOL': True/False}
|
96 |
-
int/Decimal {'N': str(value)}
|
97 |
-
string {'S': string}
|
98 |
-
Binary/bytearray/bytes (py3 only) {'B': bytes}
|
99 |
-
set([int/Decimal]) {'NS': [str(value)]}
|
100 |
-
set([string]) {'SS': [string])
|
101 |
-
set([Binary/bytearray/bytes]) {'BS': [bytes]}
|
102 |
-
list {'L': list}
|
103 |
-
dict {'M': dict}
|
104 |
-
|
105 |
-
For types that involve numbers, it is recommended that ``Decimal``
|
106 |
-
objects are used to be able to round-trip the Python type.
|
107 |
-
For types that involve binary, it is recommended that ``Binary``
|
108 |
-
objects are used to be able to round-trip the Python type.
|
109 |
-
|
110 |
-
:rtype: dict
|
111 |
-
:returns: A dictionary that represents a dynamoDB data type. These
|
112 |
-
dictionaries can be directly passed to botocore methods.
|
113 |
-
"""
|
114 |
-
dynamodb_type = self._get_dynamodb_type(value)
|
115 |
-
serializer = getattr(self, f'_serialize_{dynamodb_type}'.lower())
|
116 |
-
return {dynamodb_type: serializer(value)}
|
117 |
-
|
118 |
-
def _get_dynamodb_type(self, value):
|
119 |
-
dynamodb_type = None
|
120 |
-
|
121 |
-
if self._is_null(value):
|
122 |
-
dynamodb_type = NULL
|
123 |
-
|
124 |
-
elif self._is_boolean(value):
|
125 |
-
dynamodb_type = BOOLEAN
|
126 |
-
|
127 |
-
elif self._is_number(value):
|
128 |
-
dynamodb_type = NUMBER
|
129 |
-
|
130 |
-
elif self._is_string(value):
|
131 |
-
dynamodb_type = STRING
|
132 |
-
|
133 |
-
elif self._is_binary(value):
|
134 |
-
dynamodb_type = BINARY
|
135 |
-
|
136 |
-
elif self._is_type_set(value, self._is_number):
|
137 |
-
dynamodb_type = NUMBER_SET
|
138 |
-
|
139 |
-
elif self._is_type_set(value, self._is_string):
|
140 |
-
dynamodb_type = STRING_SET
|
141 |
-
|
142 |
-
elif self._is_type_set(value, self._is_binary):
|
143 |
-
dynamodb_type = BINARY_SET
|
144 |
-
|
145 |
-
elif self._is_map(value):
|
146 |
-
dynamodb_type = MAP
|
147 |
-
|
148 |
-
elif self._is_listlike(value):
|
149 |
-
dynamodb_type = LIST
|
150 |
-
|
151 |
-
else:
|
152 |
-
msg = f'Unsupported type "{type(value)}" for value "{value}"'
|
153 |
-
raise TypeError(msg)
|
154 |
-
|
155 |
-
return dynamodb_type
|
156 |
-
|
157 |
-
def _is_null(self, value):
|
158 |
-
if value is None:
|
159 |
-
return True
|
160 |
-
return False
|
161 |
-
|
162 |
-
def _is_boolean(self, value):
|
163 |
-
if isinstance(value, bool):
|
164 |
-
return True
|
165 |
-
return False
|
166 |
-
|
167 |
-
def _is_number(self, value):
|
168 |
-
if isinstance(value, (int, Decimal)):
|
169 |
-
return True
|
170 |
-
elif isinstance(value, float):
|
171 |
-
raise TypeError(
|
172 |
-
'Float types are not supported. Use Decimal types instead.'
|
173 |
-
)
|
174 |
-
return False
|
175 |
-
|
176 |
-
def _is_string(self, value):
|
177 |
-
if isinstance(value, str):
|
178 |
-
return True
|
179 |
-
return False
|
180 |
-
|
181 |
-
def _is_binary(self, value):
|
182 |
-
if isinstance(value, (Binary, bytearray, bytes)):
|
183 |
-
return True
|
184 |
-
return False
|
185 |
-
|
186 |
-
def _is_set(self, value):
|
187 |
-
if isinstance(value, collections_abc.Set):
|
188 |
-
return True
|
189 |
-
return False
|
190 |
-
|
191 |
-
def _is_type_set(self, value, type_validator):
|
192 |
-
if self._is_set(value):
|
193 |
-
if False not in map(type_validator, value):
|
194 |
-
return True
|
195 |
-
return False
|
196 |
-
|
197 |
-
def _is_map(self, value):
|
198 |
-
if isinstance(value, collections_abc.Mapping):
|
199 |
-
return True
|
200 |
-
return False
|
201 |
-
|
202 |
-
def _is_listlike(self, value):
|
203 |
-
if isinstance(value, (list, tuple)):
|
204 |
-
return True
|
205 |
-
return False
|
206 |
-
|
207 |
-
def _serialize_null(self, value):
|
208 |
-
return True
|
209 |
-
|
210 |
-
def _serialize_bool(self, value):
|
211 |
-
return value
|
212 |
-
|
213 |
-
def _serialize_n(self, value):
|
214 |
-
number = str(DYNAMODB_CONTEXT.create_decimal(value))
|
215 |
-
if number in ['Infinity', 'NaN']:
|
216 |
-
raise TypeError('Infinity and NaN not supported')
|
217 |
-
return number
|
218 |
-
|
219 |
-
def _serialize_s(self, value):
|
220 |
-
return value
|
221 |
-
|
222 |
-
def _serialize_b(self, value):
|
223 |
-
if isinstance(value, Binary):
|
224 |
-
value = value.value
|
225 |
-
return value
|
226 |
-
|
227 |
-
def _serialize_ss(self, value):
|
228 |
-
return [self._serialize_s(s) for s in value]
|
229 |
-
|
230 |
-
def _serialize_ns(self, value):
|
231 |
-
return [self._serialize_n(n) for n in value]
|
232 |
-
|
233 |
-
def _serialize_bs(self, value):
|
234 |
-
return [self._serialize_b(b) for b in value]
|
235 |
-
|
236 |
-
def _serialize_l(self, value):
|
237 |
-
return [self.serialize(v) for v in value]
|
238 |
-
|
239 |
-
def _serialize_m(self, value):
|
240 |
-
return {k: self.serialize(v) for k, v in value.items()}
|
241 |
-
|
242 |
-
|
243 |
-
class TypeDeserializer:
|
244 |
-
"""This class deserializes DynamoDB types to Python types."""
|
245 |
-
|
246 |
-
def deserialize(self, value):
|
247 |
-
"""The method to deserialize the DynamoDB data types.
|
248 |
-
|
249 |
-
:param value: A DynamoDB value to be deserialized to a pythonic value.
|
250 |
-
Here are the various conversions:
|
251 |
-
|
252 |
-
DynamoDB Python
|
253 |
-
-------- ------
|
254 |
-
{'NULL': True} None
|
255 |
-
{'BOOL': True/False} True/False
|
256 |
-
{'N': str(value)} Decimal(str(value))
|
257 |
-
{'S': string} string
|
258 |
-
{'B': bytes} Binary(bytes)
|
259 |
-
{'NS': [str(value)]} set([Decimal(str(value))])
|
260 |
-
{'SS': [string]} set([string])
|
261 |
-
{'BS': [bytes]} set([bytes])
|
262 |
-
{'L': list} list
|
263 |
-
{'M': dict} dict
|
264 |
-
|
265 |
-
:returns: The pythonic value of the DynamoDB type.
|
266 |
-
"""
|
267 |
-
|
268 |
-
if not value:
|
269 |
-
raise TypeError(
|
270 |
-
'Value must be a nonempty dictionary whose key '
|
271 |
-
'is a valid dynamodb type.'
|
272 |
-
)
|
273 |
-
dynamodb_type = list(value.keys())[0]
|
274 |
-
try:
|
275 |
-
deserializer = getattr(
|
276 |
-
self, f'_deserialize_{dynamodb_type}'.lower()
|
277 |
-
)
|
278 |
-
except AttributeError:
|
279 |
-
raise TypeError(f'Dynamodb type {dynamodb_type} is not supported')
|
280 |
-
return deserializer(value[dynamodb_type])
|
281 |
-
|
282 |
-
def _deserialize_null(self, value):
|
283 |
-
return None
|
284 |
-
|
285 |
-
def _deserialize_bool(self, value):
|
286 |
-
return value
|
287 |
-
|
288 |
-
def _deserialize_n(self, value):
|
289 |
-
return DYNAMODB_CONTEXT.create_decimal(value)
|
290 |
-
|
291 |
-
def _deserialize_s(self, value):
|
292 |
-
return value
|
293 |
-
|
294 |
-
def _deserialize_b(self, value):
|
295 |
-
return Binary(value)
|
296 |
-
|
297 |
-
def _deserialize_ns(self, value):
|
298 |
-
return set(map(self._deserialize_n, value))
|
299 |
-
|
300 |
-
def _deserialize_ss(self, value):
|
301 |
-
return set(map(self._deserialize_s, value))
|
302 |
-
|
303 |
-
def _deserialize_bs(self, value):
|
304 |
-
return set(map(self._deserialize_b, value))
|
305 |
-
|
306 |
-
def _deserialize_l(self, value):
|
307 |
-
return [self.deserialize(v) for v in value]
|
308 |
-
|
309 |
-
def _deserialize_m(self, value):
|
310 |
-
return {k: self.deserialize(v) for k, v in value.items()}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/urllib3/request.py
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
from __future__ import absolute_import
|
2 |
-
|
3 |
-
from .filepost import encode_multipart_formdata
|
4 |
-
from .packages.six.moves.urllib.parse import urlencode
|
5 |
-
|
6 |
-
__all__ = ["RequestMethods"]
|
7 |
-
|
8 |
-
|
9 |
-
class RequestMethods(object):
|
10 |
-
"""
|
11 |
-
Convenience mixin for classes who implement a :meth:`urlopen` method, such
|
12 |
-
as :class:`urllib3.HTTPConnectionPool` and
|
13 |
-
:class:`urllib3.PoolManager`.
|
14 |
-
|
15 |
-
Provides behavior for making common types of HTTP request methods and
|
16 |
-
decides which type of request field encoding to use.
|
17 |
-
|
18 |
-
Specifically,
|
19 |
-
|
20 |
-
:meth:`.request_encode_url` is for sending requests whose fields are
|
21 |
-
encoded in the URL (such as GET, HEAD, DELETE).
|
22 |
-
|
23 |
-
:meth:`.request_encode_body` is for sending requests whose fields are
|
24 |
-
encoded in the *body* of the request using multipart or www-form-urlencoded
|
25 |
-
(such as for POST, PUT, PATCH).
|
26 |
-
|
27 |
-
:meth:`.request` is for making any kind of request, it will look up the
|
28 |
-
appropriate encoding format and use one of the above two methods to make
|
29 |
-
the request.
|
30 |
-
|
31 |
-
Initializer parameters:
|
32 |
-
|
33 |
-
:param headers:
|
34 |
-
Headers to include with all requests, unless other headers are given
|
35 |
-
explicitly.
|
36 |
-
"""
|
37 |
-
|
38 |
-
_encode_url_methods = {"DELETE", "GET", "HEAD", "OPTIONS"}
|
39 |
-
|
40 |
-
def __init__(self, headers=None):
|
41 |
-
self.headers = headers or {}
|
42 |
-
|
43 |
-
def urlopen(
|
44 |
-
self,
|
45 |
-
method,
|
46 |
-
url,
|
47 |
-
body=None,
|
48 |
-
headers=None,
|
49 |
-
encode_multipart=True,
|
50 |
-
multipart_boundary=None,
|
51 |
-
**kw
|
52 |
-
): # Abstract
|
53 |
-
raise NotImplementedError(
|
54 |
-
"Classes extending RequestMethods must implement "
|
55 |
-
"their own ``urlopen`` method."
|
56 |
-
)
|
57 |
-
|
58 |
-
def request(self, method, url, fields=None, headers=None, **urlopen_kw):
|
59 |
-
"""
|
60 |
-
Make a request using :meth:`urlopen` with the appropriate encoding of
|
61 |
-
``fields`` based on the ``method`` used.
|
62 |
-
|
63 |
-
This is a convenience method that requires the least amount of manual
|
64 |
-
effort. It can be used in most situations, while still having the
|
65 |
-
option to drop down to more specific methods when necessary, such as
|
66 |
-
:meth:`request_encode_url`, :meth:`request_encode_body`,
|
67 |
-
or even the lowest level :meth:`urlopen`.
|
68 |
-
"""
|
69 |
-
method = method.upper()
|
70 |
-
|
71 |
-
urlopen_kw["request_url"] = url
|
72 |
-
|
73 |
-
if method in self._encode_url_methods:
|
74 |
-
return self.request_encode_url(
|
75 |
-
method, url, fields=fields, headers=headers, **urlopen_kw
|
76 |
-
)
|
77 |
-
else:
|
78 |
-
return self.request_encode_body(
|
79 |
-
method, url, fields=fields, headers=headers, **urlopen_kw
|
80 |
-
)
|
81 |
-
|
82 |
-
def request_encode_url(self, method, url, fields=None, headers=None, **urlopen_kw):
|
83 |
-
"""
|
84 |
-
Make a request using :meth:`urlopen` with the ``fields`` encoded in
|
85 |
-
the url. This is useful for request methods like GET, HEAD, DELETE, etc.
|
86 |
-
"""
|
87 |
-
if headers is None:
|
88 |
-
headers = self.headers
|
89 |
-
|
90 |
-
extra_kw = {"headers": headers}
|
91 |
-
extra_kw.update(urlopen_kw)
|
92 |
-
|
93 |
-
if fields:
|
94 |
-
url += "?" + urlencode(fields)
|
95 |
-
|
96 |
-
return self.urlopen(method, url, **extra_kw)
|
97 |
-
|
98 |
-
def request_encode_body(
|
99 |
-
self,
|
100 |
-
method,
|
101 |
-
url,
|
102 |
-
fields=None,
|
103 |
-
headers=None,
|
104 |
-
encode_multipart=True,
|
105 |
-
multipart_boundary=None,
|
106 |
-
**urlopen_kw
|
107 |
-
):
|
108 |
-
"""
|
109 |
-
Make a request using :meth:`urlopen` with the ``fields`` encoded in
|
110 |
-
the body. This is useful for request methods like POST, PUT, PATCH, etc.
|
111 |
-
|
112 |
-
When ``encode_multipart=True`` (default), then
|
113 |
-
:func:`urllib3.encode_multipart_formdata` is used to encode
|
114 |
-
the payload with the appropriate content type. Otherwise
|
115 |
-
:func:`urllib.parse.urlencode` is used with the
|
116 |
-
'application/x-www-form-urlencoded' content type.
|
117 |
-
|
118 |
-
Multipart encoding must be used when posting files, and it's reasonably
|
119 |
-
safe to use it in other times too. However, it may break request
|
120 |
-
signing, such as with OAuth.
|
121 |
-
|
122 |
-
Supports an optional ``fields`` parameter of key/value strings AND
|
123 |
-
key/filetuple. A filetuple is a (filename, data, MIME type) tuple where
|
124 |
-
the MIME type is optional. For example::
|
125 |
-
|
126 |
-
fields = {
|
127 |
-
'foo': 'bar',
|
128 |
-
'fakefile': ('foofile.txt', 'contents of foofile'),
|
129 |
-
'realfile': ('barfile.txt', open('realfile').read()),
|
130 |
-
'typedfile': ('bazfile.bin', open('bazfile').read(),
|
131 |
-
'image/jpeg'),
|
132 |
-
'nonamefile': 'contents of nonamefile field',
|
133 |
-
}
|
134 |
-
|
135 |
-
When uploading a file, providing a filename (the first parameter of the
|
136 |
-
tuple) is optional but recommended to best mimic behavior of browsers.
|
137 |
-
|
138 |
-
Note that if ``headers`` are supplied, the 'Content-Type' header will
|
139 |
-
be overwritten because it depends on the dynamic random boundary string
|
140 |
-
which is used to compose the body of the request. The random boundary
|
141 |
-
string can be explicitly set with the ``multipart_boundary`` parameter.
|
142 |
-
"""
|
143 |
-
if headers is None:
|
144 |
-
headers = self.headers
|
145 |
-
|
146 |
-
extra_kw = {"headers": {}}
|
147 |
-
|
148 |
-
if fields:
|
149 |
-
if "body" in urlopen_kw:
|
150 |
-
raise TypeError(
|
151 |
-
"request got values for both 'fields' and 'body', can only specify one."
|
152 |
-
)
|
153 |
-
|
154 |
-
if encode_multipart:
|
155 |
-
body, content_type = encode_multipart_formdata(
|
156 |
-
fields, boundary=multipart_boundary
|
157 |
-
)
|
158 |
-
else:
|
159 |
-
body, content_type = (
|
160 |
-
urlencode(fields),
|
161 |
-
"application/x-www-form-urlencoded",
|
162 |
-
)
|
163 |
-
|
164 |
-
extra_kw["body"] = body
|
165 |
-
extra_kw["headers"] = {"Content-Type": content_type}
|
166 |
-
|
167 |
-
extra_kw["headers"].update(headers)
|
168 |
-
extra_kw.update(urlopen_kw)
|
169 |
-
|
170 |
-
return self.urlopen(method, url, **extra_kw)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/py34compat.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
import importlib
|
2 |
-
|
3 |
-
try:
|
4 |
-
import importlib.util
|
5 |
-
except ImportError:
|
6 |
-
pass
|
7 |
-
|
8 |
-
|
9 |
-
try:
|
10 |
-
module_from_spec = importlib.util.module_from_spec
|
11 |
-
except AttributeError:
|
12 |
-
def module_from_spec(spec):
|
13 |
-
return spec.loader.load_module(spec.name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BlackCub/ChatGPT4/app.py
DELETED
@@ -1,191 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import os
|
3 |
-
import json
|
4 |
-
import requests
|
5 |
-
|
6 |
-
#Streaming endpoint
|
7 |
-
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
-
|
9 |
-
#Inferenec function
|
10 |
-
def predict(openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
11 |
-
|
12 |
-
headers = {
|
13 |
-
"Content-Type": "application/json",
|
14 |
-
"Authorization": f"Bearer {openai_gpt4_key}" #Users will provide their own OPENAI_API_KEY
|
15 |
-
}
|
16 |
-
print(f"system message is ^^ {system_msg}")
|
17 |
-
if system_msg.strip() == '':
|
18 |
-
initial_message = [{"role": "user", "content": f"{inputs}"},]
|
19 |
-
multi_turn_message = []
|
20 |
-
else:
|
21 |
-
initial_message= [{"role": "system", "content": system_msg},
|
22 |
-
{"role": "user", "content": f"{inputs}"},]
|
23 |
-
multi_turn_message = [{"role": "system", "content": system_msg},]
|
24 |
-
|
25 |
-
if chat_counter == 0 :
|
26 |
-
payload = {
|
27 |
-
"model": "gpt-4",
|
28 |
-
"messages": initial_message ,
|
29 |
-
"temperature" : 1.0,
|
30 |
-
"top_p":1.0,
|
31 |
-
"n" : 1,
|
32 |
-
"stream": True,
|
33 |
-
"presence_penalty":0,
|
34 |
-
"frequency_penalty":0,
|
35 |
-
}
|
36 |
-
print(f"chat_counter - {chat_counter}")
|
37 |
-
else: #if chat_counter != 0 :
|
38 |
-
messages=multi_turn_message # Of the type of - [{"role": "system", "content": system_msg},]
|
39 |
-
for data in chatbot:
|
40 |
-
user = {}
|
41 |
-
user["role"] = "user"
|
42 |
-
user["content"] = data[0]
|
43 |
-
assistant = {}
|
44 |
-
assistant["role"] = "assistant"
|
45 |
-
assistant["content"] = data[1]
|
46 |
-
messages.append(user)
|
47 |
-
messages.append(assistant)
|
48 |
-
temp = {}
|
49 |
-
temp["role"] = "user"
|
50 |
-
temp["content"] = inputs
|
51 |
-
messages.append(temp)
|
52 |
-
#messages
|
53 |
-
payload = {
|
54 |
-
"model": "gpt-4",
|
55 |
-
"messages": messages, # Of the type of [{"role": "user", "content": f"{inputs}"}],
|
56 |
-
"temperature" : temperature, #1.0,
|
57 |
-
"top_p": top_p, #1.0,
|
58 |
-
"n" : 1,
|
59 |
-
"stream": True,
|
60 |
-
"presence_penalty":0,
|
61 |
-
"frequency_penalty":0,}
|
62 |
-
|
63 |
-
chat_counter+=1
|
64 |
-
|
65 |
-
history.append(inputs)
|
66 |
-
print(f"Logging : payload is - {payload}")
|
67 |
-
# make a POST request to the API endpoint using the requests.post method, passing in stream=True
|
68 |
-
response = requests.post(API_URL, headers=headers, json=payload, stream=True)
|
69 |
-
print(f"Logging : response code - {response}")
|
70 |
-
token_counter = 0
|
71 |
-
partial_words = ""
|
72 |
-
|
73 |
-
counter=0
|
74 |
-
for chunk in response.iter_lines():
|
75 |
-
#Skipping first chunk
|
76 |
-
if counter == 0:
|
77 |
-
counter+=1
|
78 |
-
continue
|
79 |
-
# check whether each line is non-empty
|
80 |
-
if chunk.decode() :
|
81 |
-
chunk = chunk.decode()
|
82 |
-
# decode each line as response data is in bytes
|
83 |
-
if len(chunk) > 12 and "content" in json.loads(chunk[6:])['choices'][0]['delta']:
|
84 |
-
partial_words = partial_words + json.loads(chunk[6:])['choices'][0]["delta"]["content"]
|
85 |
-
if token_counter == 0:
|
86 |
-
history.append(" " + partial_words)
|
87 |
-
else:
|
88 |
-
history[-1] = partial_words
|
89 |
-
chat = [(history[i], history[i + 1]) for i in range(0, len(history) - 1, 2) ] # convert to tuples of list
|
90 |
-
token_counter+=1
|
91 |
-
yield chat, history, chat_counter, response # resembles {chatbot: chat, state: history}
|
92 |
-
|
93 |
-
#Resetting to blank
|
94 |
-
def reset_textbox():
|
95 |
-
return gr.update(value='')
|
96 |
-
|
97 |
-
#to set a component as visible=False
|
98 |
-
def set_visible_false():
|
99 |
-
return gr.update(visible=False)
|
100 |
-
|
101 |
-
#to set a component as visible=True
|
102 |
-
def set_visible_true():
|
103 |
-
return gr.update(visible=True)
|
104 |
-
|
105 |
-
title = """<h1 align="center">🔥GPT4 using Chat-Completions API & 🚀Gradio-Streaming</h1>"""
|
106 |
-
#display message for themes feature
|
107 |
-
theme_addon_msg = """<center>🌟 This Demo also introduces you to Gradio Themes. Discover more on Gradio website using our <a href="https://gradio.app/theming-guide/" target="_blank">Themeing-Guide🎨</a>! You can develop from scratch, modify an existing Gradio theme, and share your themes with community by uploading them to huggingface-hub easily using <code>theme.push_to_hub()</code>.</center>
|
108 |
-
"""
|
109 |
-
|
110 |
-
#Using info to add additional information about System message in GPT4
|
111 |
-
system_msg_info = """A conversation could begin with a system message to gently instruct the assistant.
|
112 |
-
System message helps set the behavior of the AI Assistant. For example, the assistant could be instructed with 'You are a helpful assistant.'"""
|
113 |
-
|
114 |
-
#Modifying existing Gradio Theme
|
115 |
-
theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="green",
|
116 |
-
text_size=gr.themes.sizes.text_lg)
|
117 |
-
|
118 |
-
with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
|
119 |
-
theme=theme) as demo:
|
120 |
-
gr.HTML(title)
|
121 |
-
gr.HTML("""<h3 align="center">🔥This Huggingface Gradio Demo provides you access to GPT4 API with System Messages. Please note that you would be needing an OPENAI API key for GPT4 access🙌</h1>""")
|
122 |
-
gr.HTML(theme_addon_msg)
|
123 |
-
gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPT4?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
|
124 |
-
|
125 |
-
with gr.Column(elem_id = "col_container"):
|
126 |
-
#Users need to provide their own GPT4 API key, it is no longer provided by Huggingface
|
127 |
-
with gr.Row():
|
128 |
-
openai_gpt4_key = gr.Textbox(label="OpenAI GPT4 Key", value="", type="password", placeholder="sk..", info = "You have to provide your own GPT4 keys for this app to function properly",)
|
129 |
-
with gr.Accordion(label="System message:", open=False):
|
130 |
-
system_msg = gr.Textbox(label="Instruct the AI Assistant to set its beaviour", info = system_msg_info, value="",placeholder="Type here..")
|
131 |
-
accordion_msg = gr.HTML(value="🚧 To set System message you will have to refresh the app", visible=False)
|
132 |
-
|
133 |
-
chatbot = gr.Chatbot(label='GPT4', elem_id="chatbot")
|
134 |
-
inputs = gr.Textbox(placeholder= "Hi there!", label= "Type an input and press Enter")
|
135 |
-
state = gr.State([])
|
136 |
-
with gr.Row():
|
137 |
-
with gr.Column(scale=7):
|
138 |
-
b1 = gr.Button().style(full_width=True)
|
139 |
-
with gr.Column(scale=3):
|
140 |
-
server_status_code = gr.Textbox(label="Status code from OpenAI server", )
|
141 |
-
|
142 |
-
#top_p, temperature
|
143 |
-
with gr.Accordion("Parameters", open=False):
|
144 |
-
top_p = gr.Slider( minimum=-0, maximum=1.0, value=1.0, step=0.05, interactive=True, label="Top-p (nucleus sampling)",)
|
145 |
-
temperature = gr.Slider( minimum=-0, maximum=5.0, value=1.0, step=0.1, interactive=True, label="Temperature",)
|
146 |
-
chat_counter = gr.Number(value=0, visible=False, precision=0)
|
147 |
-
|
148 |
-
#Event handling
|
149 |
-
inputs.submit( predict, [openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
|
150 |
-
b1.click( predict, [openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code],) #openai_api_key
|
151 |
-
|
152 |
-
inputs.submit(set_visible_false, [], [system_msg])
|
153 |
-
b1.click(set_visible_false, [], [system_msg])
|
154 |
-
inputs.submit(set_visible_true, [], [accordion_msg])
|
155 |
-
b1.click(set_visible_true, [], [accordion_msg])
|
156 |
-
|
157 |
-
b1.click(reset_textbox, [], [inputs])
|
158 |
-
inputs.submit(reset_textbox, [], [inputs])
|
159 |
-
|
160 |
-
#Examples
|
161 |
-
with gr.Accordion(label="Examples for System message:", open=False):
|
162 |
-
gr.Examples(
|
163 |
-
examples = [["""You are an AI programming assistant.
|
164 |
-
|
165 |
-
- Follow the user's requirements carefully and to the letter.
|
166 |
-
- First think step-by-step -- describe your plan for what to build in pseudocode, written out in great detail.
|
167 |
-
- Then output the code in a single code block.
|
168 |
-
- Minimize any other prose."""], ["""You are ComedianGPT who is a helpful assistant. You answer everything with a joke and witty replies."""],
|
169 |
-
["You are ChefGPT, a helpful assistant who answers questions with culinary expertise and a pinch of humor."],
|
170 |
-
["You are FitnessGuruGPT, a fitness expert who shares workout tips and motivation with a playful twist."],
|
171 |
-
["You are SciFiGPT, an AI assistant who discusses science fiction topics with a blend of knowledge and wit."],
|
172 |
-
["You are PhilosopherGPT, a thoughtful assistant who responds to inquiries with philosophical insights and a touch of humor."],
|
173 |
-
["You are EcoWarriorGPT, a helpful assistant who shares environment-friendly advice with a lighthearted approach."],
|
174 |
-
["You are MusicMaestroGPT, a knowledgeable AI who discusses music and its history with a mix of facts and playful banter."],
|
175 |
-
["You are SportsFanGPT, an enthusiastic assistant who talks about sports and shares amusing anecdotes."],
|
176 |
-
["You are TechWhizGPT, a tech-savvy AI who can help users troubleshoot issues and answer questions with a dash of humor."],
|
177 |
-
["You are FashionistaGPT, an AI fashion expert who shares style advice and trends with a sprinkle of wit."],
|
178 |
-
["You are ArtConnoisseurGPT, an AI assistant who discusses art and its history with a blend of knowledge and playful commentary."],
|
179 |
-
["You are a helpful assistant that provides detailed and accurate information."],
|
180 |
-
["You are an assistant that speaks like Shakespeare."],
|
181 |
-
["You are a friendly assistant who uses casual language and humor."],
|
182 |
-
["You are a financial advisor who gives expert advice on investments and budgeting."],
|
183 |
-
["You are a health and fitness expert who provides advice on nutrition and exercise."],
|
184 |
-
["You are a travel consultant who offers recommendations for destinations, accommodations, and attractions."],
|
185 |
-
["You are a movie critic who shares insightful opinions on films and their themes."],
|
186 |
-
["You are a history enthusiast who loves to discuss historical events and figures."],
|
187 |
-
["You are a tech-savvy assistant who can help users troubleshoot issues and answer questions about gadgets and software."],
|
188 |
-
["You are an AI poet who can compose creative and evocative poems on any given topic."],],
|
189 |
-
inputs = system_msg,)
|
190 |
-
|
191 |
-
demo.queue(max_size=99, concurrency_count=20).launch(debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|