Commit
·
6488b78
1
Parent(s):
4fbbe20
Update parquet files (step 98 of 249)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/0xSynapse/Image_captioner/README.md +0 -13
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Bartender 2022 Full Crack.md +0 -27
- spaces/1gistliPinn/ChatGPT4/Examples/Adobe Acrobat Xi Pro Free Download For Windows 8 !EXCLUSIVE!.md +0 -6
- spaces/1gistliPinn/ChatGPT4/Examples/Alan Wake (2012) PC Fitgirl Repack [Extra Quality].md +0 -6
- spaces/1gistliPinn/ChatGPT4/Examples/Basha Tamil Movie HOT Download Dvdrip 20.md +0 -7
- spaces/1gistliPinn/ChatGPT4/Examples/Dreamup 1 3 3 8 Exe Downloadl BEST.md +0 -94
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Anger of Stick 5 Mod APK How to Get Free Money and Unlock All Levels.md +0 -119
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Basketball Grand Slam APK and Compete with Legendary Players.md +0 -148
- spaces/1phancelerku/anime-remove-background/Download Hair Challenge on PC and Customize Your Hair Color and Style.md +0 -104
- spaces/2ndelement/voicevox/voicevox_engine/full_context_label.py +0 -525
- spaces/A00001/bingothoo/src/components/toaster.tsx +0 -3
- spaces/A666sxr/Genshin_TTS/mel_processing.py +0 -112
- spaces/AHzizi/WaifuVoiceGen/text/cleaners.py +0 -475
- spaces/AI-Hobbyist/Hoyo-RVC/config.py +0 -123
- spaces/AIConsultant/MusicGen/tests/losses/test_losses.py +0 -78
- spaces/AIFILMS/audioldm-text-to-audio-generation/audioldm/latent_diffusion/ddim.py +0 -377
- spaces/AIGC-Audio/AudioGPT/NeuralSeq/utils/cwt.py +0 -146
- spaces/AIGC-Audio/AudioGPT/text_to_speech/data_gen/tts/runs/binarize.py +0 -17
- spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/commons/hparams.py +0 -131
- spaces/AIGC-Audio/Make_An_Audio/ldm/modules/image_degradation/__init__.py +0 -2
- spaces/AISuperheroes/09SL-AI-Image-Music-Video-AIUIUX/Article.md +0 -51
- spaces/AbandonedMuse/UnlimitedMusicGen/audiocraft/quantization/vq.py +0 -116
- spaces/Acapellas/Extract_Vocals_Instrumentals/README.md +0 -38
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/Liaobots.py +0 -106
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/deprecated/V50.py +0 -67
- spaces/AgentVerse/agentVerse/agentverse/environments/simulation_env/rules/order/__init__.py +0 -11
- spaces/AlexZou/Deploy_Restoration/utils/utils_image.py +0 -778
- spaces/AllAideas/SegmentacionVideo/utils/constants.py +0 -4
- spaces/Amrrs/openai-whisper-live-transcribe/README.md +0 -13
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/unclip/__init__.py +0 -0
- spaces/Andy1621/uniformer_image_detection/configs/_base_/datasets/cityscapes_detection.py +0 -55
- spaces/Andy1621/uniformer_image_detection/configs/cascade_rcnn/cascade_rcnn_r101_fpn_1x_coco.py +0 -2
- spaces/Andy1621/uniformer_image_segmentation/configs/ccnet/ccnet_r50-d8_512x512_20k_voc12aug.py +0 -7
- spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r101-d16-mg124_512x1024_40k_cityscapes.py +0 -11
- spaces/Anonymous-123/ImageNet-Editing/editing_diffusion/CLIP/model-card.md +0 -120
- spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/evaluations/evaluation.py +0 -98
- spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/model/stylegan_ops/fused_bias_act.cpp +0 -21
- spaces/AnthonyTruchetPoC/persistent-docker/start_streamlit.sh +0 -9
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/resolution/legacy/resolver.py +0 -600
- spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py +0 -8
- spaces/Banbri/zcvzcv/src/app/page.tsx +0 -43
- spaces/Bart92/RVC_HF/gui_v0.py +0 -786
- spaces/Benson/text-generation/Examples/8 Ball Pool Soldi Infiniti Apk.md +0 -86
- spaces/Benson/text-generation/Examples/Amor De Mi Vida Tono De Llamada.md +0 -66
- spaces/Benson/text-generation/Examples/Annas Merge Adventure Mod Apk.md +0 -118
- spaces/Benson/text-generation/Examples/Bike Race.md +0 -134
- spaces/Benson/text-generation/Examples/Descargar Apk De Choque Royale Lite.md +0 -98
- spaces/BernardoOlisan/vqganclip/CLIP/model-card.md +0 -120
- spaces/BiTransSciencia/www/index.html +0 -753
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/urllib3/util/retry.py +0 -620
spaces/0xSynapse/Image_captioner/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Image Captioner
|
3 |
-
emoji: ⚡
|
4 |
-
colorFrom: indigo
|
5 |
-
colorTo: green
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.19.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: creativeml-openrail-m
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Bartender 2022 Full Crack.md
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Download Bartender 2022 Full Crack for Free</h1>
|
3 |
-
<p>Bartender 2022 is a software that allows you to design and print labels, barcodes, RFID tags, cards, and more. It is widely used by businesses and industries to create professional and compliant labels for various purposes. However, Bartender 2022 is not a cheap software, and you might be tempted to look for a cracked version online.</p>
|
4 |
-
<h2>download bartender 2022 full crack</h2><br /><p><b><b>Download Zip</b> ✪✪✪ <a href="https://byltly.com/2uKx88">https://byltly.com/2uKx88</a></b></p><br /><br />
|
5 |
-
<p>But before you do that, you should know that downloading Bartender 2022 full crack is not only illegal, but also risky. You could face legal consequences, damage your computer, or expose your data to hackers and malware. In this article, we will explain why you should avoid downloading Bartender 2022 full crack and what are some better alternatives.</p>
|
6 |
-
<h2>Why You Should Not Download Bartender 2022 Full Crack</h2>
|
7 |
-
<p>Downloading Bartender 2022 full crack is a bad idea for several reasons:</p>
|
8 |
-
<ul>
|
9 |
-
<li>It is **illegal**. Bartender 2022 is a copyrighted software that belongs to Seagull Scientific, Inc. By downloading a cracked version, you are violating their intellectual property rights and breaking the law. You could face fines, lawsuits, or even jail time if you are caught.</li>
|
10 |
-
<li>It is **unsafe**. Cracked software often comes with viruses, malware, spyware, or ransomware that can harm your computer and compromise your security. You could lose your data, have your identity stolen, or pay a ransom to unlock your files. You could also infect other devices on your network or online.</li>
|
11 |
-
<li>It is **unreliable**. Cracked software often has bugs, errors, glitches, or missing features that can affect its performance and functionality. You could experience crashes, freezes, corrupted files, or incorrect outputs. You could also miss out on updates, patches, support, or new features that the official version offers.</li>
|
12 |
-
<li>It is **unethical**. By downloading Bartender 2022 full crack, you are depriving the developers of their rightful income and recognition. You are also hurting the software industry and the economy as a whole. You are also disrespecting the hard work and creativity that goes into creating software.</li>
|
13 |
-
</ul>
|
14 |
-
<p>As you can see, downloading Bartender 2022 full crack is not worth the risk or the hassle. You are better off using a legitimate version of the software that is safe, legal, reliable, and ethical.</p>
|
15 |
-
<h2>What Are Some Better Alternatives to Downloading Bartender 2022 Full Crack</h2>
|
16 |
-
<p>If you want to use Bartender 2022 without breaking the law or endangering your computer, here are some better alternatives:</p>
|
17 |
-
<ul>
|
18 |
-
<li>Buy the official version. The best way to use Bartender 2022 is to buy the official version from the Seagull Scientific website or an authorized reseller. You can choose from different editions and pricing plans that suit your needs and budget. You will also get access to updates, support, documentation, and training.</li>
|
19 |
-
<li>Use the free trial. If you want to try Bartender 2022 before buying it, you can use the free trial version that is available on the Seagull Scientific website. The free trial lasts for 30 days and allows you to use all the features of Bartender 2022 without any limitations. You can also extend the trial period by contacting Seagull Scientific.</li>
|
20 |
-
<li>Use an alternative software. If you don't want to buy or use Bartender 2022 at all, you can look for an alternative software that offers similar or better features and functionality. There are many free or low-cost label design software available online that you can download or use online. Some examples are Labeljoy, ZebraDesigner, NiceLabel, Label Factory Deluxe, etc.</li>
|
21 |
-
</ul>
|
22 |
-
<p>By using these alternatives, you can enjoy the benefits of Bartender 2022 without risking your legal status or computer security.</p>
|
23 |
-
<h2>Conclusion</h2>
|
24 |
-
<p>Bartender 2022 is a powerful and versatile software that can help you create professional and compliant labels for various purposes. However, downloading Bartender 2022 full crack is not a smart or safe option. You could face legal troubles, damage your computer, or expose your data to hackers and malware.</p>
|
25 |
-
<p>Instead of downloading Bartender 2022 full crack, you should use a legitimate version of the software that is safe, legal, reliable, and ethical</p> ddb901b051<br />
|
26 |
-
<br />
|
27 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Adobe Acrobat Xi Pro Free Download For Windows 8 !EXCLUSIVE!.md
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<h2>adobe acrobat xi pro free download for windows 8</h2><br /><p><b><b>Download Zip</b> ✫✫✫ <a href="https://imgfil.com/2uy1yu">https://imgfil.com/2uy1yu</a></b></p><br /><br />
|
2 |
-
|
3 |
-
Acrobat: Commercial software; Reader: Freeware. Website. acrobat.adobe.com. Adobe Acrobat is a family of application software and Web services developed by Adobe Inc. to ... Acrobat XI Pro (for Windows and macOS); Acrobat XI Standard (for Windows only) ... "Download new and previous versions of Adobe Reader". 1fdad05405<br />
|
4 |
-
<br />
|
5 |
-
<br />
|
6 |
-
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Alan Wake (2012) PC Fitgirl Repack [Extra Quality].md
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<h2>Alan Wake (2012) PC Fitgirl Repack</h2><br /><p><b><b>DOWNLOAD</b> • <a href="https://imgfil.com/2uy0ay">https://imgfil.com/2uy0ay</a></b></p><br /><br />
|
2 |
-
|
3 |
-
TOHU (2021) PC | RePack от FitGirl · www.trackeroc.... 2 | 0. 980 MB. 0 | 313. 0. 2021-02-02 12:19. www.trackeroc.... √· Keep Out [ENG + 3] (2021) (1.0.0.6). 1fdad05405<br />
|
4 |
-
<br />
|
5 |
-
<br />
|
6 |
-
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Basha Tamil Movie HOT Download Dvdrip 20.md
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<p>download bollywood full movie bollywood movies (2018) download free bollywood movies, download.. itubego youtube downloader 1.3.1 with [latest] crack. apps full version is a world famous website to download latest softwares free download for windows, mac os, android, pc,. itubego youtube downloader 4.1.1 + crack. flixicam netflix video downloader 1.1 + patch.1 with crack download [latest] save. idle shopping mall (mod apk) start with a little coffee shop and.</p>
|
3 |
-
<h2>basha tamil movie download dvdrip 20</h2><br /><p><b><b>Download File</b> »»» <a href="https://imgfil.com/2uxYkm">https://imgfil.com/2uxYkm</a></b></p><br /><br />
|
4 |
-
<p> <p>youtube downloader 4.9.5.2023 + crack. youtube downloader 4.2023 [crack + patch] is a powerful and safe video downloader for windows. you can download any video from youtube. it is not a.. itubego youtube downloader 4.1.5 + crack.5 with crack free download is a convenient downloader application that allows you to save videos and audio for free.5 with crack and serial free download <br>.5 with crack free download <br>.5 with crack free download <br> itubego youtube downloader 4.</p>
|
5 |
-
<p>get itubego youtube downloader 4.1.1 + crack + serial number.. get itubego youtube downloader 4.1 + crack + serial number from given link. you can download itubego youtube downloader 4.1 + crack + serial number free without any charges. itubego youtube downloader 4.1 + crack + serial number is a.1 with crack + serial number free download.1 with crack + serial number is a handy application that can be used to download your favorite videos from youtube. the publisher of this app has not provided any details about this itubego youtube downloader 4.1 with crack + serial number free download at this.1 with crack free download.1 with crack is a convenient application that can be used to download your favorite videos from youtube.1 with crack is a handy application that can be used to download your favorite videos from youtube.</p> 899543212b<br />
|
6 |
-
<br />
|
7 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Dreamup 1 3 3 8 Exe Downloadl BEST.md
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Dreamup 1 3 3 8 Exe Download: How to Flash Your Dreambox with Ease</h1>
|
3 |
-
<p>If you are looking for a tool to flash your Dreambox hardware, you might want to try Dreamup 1 3 3 8 Exe Download. This is a free and easy-to-use program that allows you to load images into your Dreambox via serial. In this article, we will show you how to use Dreamup 1 3 3 8 Exe Download and what are its benefits.</p>
|
4 |
-
<h2>What is Dreamup 1 3 3 8 Exe Download?</h2>
|
5 |
-
<p>Dreamup 1 3 3 8 Exe Download is the official loader from Dream Multimedia, the company that produces Dreambox devices. Dreambox is a series of Linux-powered satellite receivers that can be customized with various software and plugins. Dreamup 1 3 3 8 Exe Download allows you to flash your Dreambox with new firmware or images, which can enhance its performance and features.</p>
|
6 |
-
<h2>Dreamup 1 3 3 8 Exe Downloadl</h2><br /><p><b><b>Download Zip</b> ››› <a href="https://imgfil.com/2uxYqU">https://imgfil.com/2uxYqU</a></b></p><br /><br />
|
7 |
-
<h2>How to Use Dreamup 1 3 3 8 Exe Download?</h2>
|
8 |
-
<p>Using Dreamup 1 3 3 8 Exe Download is very simple and takes only about 15 minutes to complete the flashing process. Here are the steps you need to follow:</p>
|
9 |
-
<ol>
|
10 |
-
<li>Download Dreamup 1 3 3 8 Exe from a reliable source and install it on your computer.</li>
|
11 |
-
<li>Connect your Dreambox to your computer via a serial cable.</li>
|
12 |
-
<li>Run Dreamup and select your Dreambox model from the drop-down menu.</li>
|
13 |
-
<li>Click on Connect and wait for the program to detect your device.</li>
|
14 |
-
<li>Click on Flash and browse for the image file you want to load into your Dreambox.</li>
|
15 |
-
<li>Click on Open and wait for the program to transfer the image to your device.</li>
|
16 |
-
<li>Once completed, the program will calculate CRC32 on STB, erase flash and flash from its memory.</li>
|
17 |
-
<li>Click on OK and disconnect your device.</li>
|
18 |
-
<li>Restart your Dreambox and enjoy the new image.</li>
|
19 |
-
</ol>
|
20 |
-
<h2>What are the Benefits of Dreamup 1 3 3 8 Exe Download?</h2>
|
21 |
-
<p>Dreamup 1 3 3 8 Exe Download has several benefits for Dreambox users, such as:</p>
|
22 |
-
<ul>
|
23 |
-
<li>It is free and easy to use.</li>
|
24 |
-
<li>It supports all models of Dreambox devices.</li>
|
25 |
-
<li>It allows you to flash your device with any image you want, whether it is official or unofficial.</li>
|
26 |
-
<li>It can fix some common problems with your device, such as boot loops or corrupted firmware.</li>
|
27 |
-
<li>It can improve the performance and functionality of your device by adding new features and plugins.</li>
|
28 |
-
</ul>
|
29 |
-
<h2>Conclusion</h2>
|
30 |
-
<p>Dreamup 1 3 3 8 Exe Download is a handy tool for anyone who owns a Dreambox device and wants to flash it with new images. It is free, easy to use and supports all models of Dreambox devices. It can help you fix some issues with your device, as well as enhance its performance and features. If you are looking for a way to flash your Dreambox with ease, you should give Dreamup 1 3 3 8 Exe Download a try.</p>
|
31 |
-
<h2>Where to Download Dreamup 1 3 3 8 Exe?</h2>
|
32 |
-
<p>If you want to download Dreamup 1 3 3 8 Exe, you need to be careful about the source you choose. There are many websites that offer this program, but some of them might be unreliable or unsafe. You should always download Dreamup 1 3 3 8 Exe from a trusted and reputable source, such as the official website of Dream Multimedia or a well-known software informer site. This way, you can avoid downloading viruses, malware or corrupted files that might damage your device or compromise your privacy.</p>
|
33 |
-
<h2>How to Update Dreamup 1 3 3 8 Exe?</h2>
|
34 |
-
<p>Dreamup 1 3 3 8 Exe is not the latest version of the program. There are newer versions available that might have some bug fixes or improvements. If you want to update Dreamup 1 3 3 8 Exe, you can check the official website of Dream Multimedia or a software informer site for the latest version of Dreamup. You can also use the built-in update feature of the program, which will automatically check for updates and download them if available. To use this feature, you need to run Dreamup and click on Help > Check for Updates.</p>
|
35 |
-
<h2>What are the Alternatives to Dreamup 1 3 3 8 Exe?</h2>
|
36 |
-
<p>Dreamup 1 3 3 8 Exe is not the only tool that can flash your Dreambox device. There are some alternatives that you might want to try, such as:</p>
|
37 |
-
<ul>
|
38 |
-
<li>Dreambox Control Center: This is a Windows-based application that allows you to manage your Dreambox device via network or serial. You can flash your device, backup and restore settings, edit channels and bouquets, upload plugins and more.</li>
|
39 |
-
<li>FlashWizard Pro: This is a multi-platform application that can flash your Dreambox device via network or USB. You can flash your device with multiple images, backup and restore settings, install addons and more.</li>
|
40 |
-
<li>DreamboxEdit: This is a Windows-based application that allows you to edit and create channel lists for your Dreambox device. You can sort channels, create bouquets, add logos and more.</li>
|
41 |
-
</ul>
|
42 |
-
<h2>Conclusion</h2>
|
43 |
-
<p>Dreamup 1 3 3 8 Exe is a useful tool for flashing your Dreambox device with new images. It is free, easy to use and supports all models of Dreambox devices. It can help you fix some issues with your device, as well as enhance its performance and features. However, you should always download it from a reliable source, update it regularly and consider some alternatives if you want more features or options. We hope this article has helped you learn more about Dreamup 1 3 3 8 Exe and how to use it.</p>
|
44 |
-
<p></p>
|
45 |
-
<h2>How to Troubleshoot Dreamup 1 3 3 8 Exe Download?</h2>
|
46 |
-
<p>Sometimes, you might encounter some problems when using Dreamup 1 3 3 8 Exe Download. For example, you might get an error message, a connection failure, a corrupted image or a bricked device. In such cases, you need to troubleshoot Dreamup 1 3 3 8 Exe Download and find out the cause of the problem. Here are some common troubleshooting tips:</p>
|
47 |
-
<ul>
|
48 |
-
<li>Make sure you have downloaded Dreamup 1 3 3 8 Exe from a reliable source and that the file is not damaged or infected.</li>
|
49 |
-
<li>Make sure you have installed the correct drivers for your Dreambox device and that they are up to date.</li>
|
50 |
-
<li>Make sure you have connected your Dreambox device to your computer properly and securely via a serial cable.</li>
|
51 |
-
<li>Make sure you have selected the right model of your Dreambox device from the drop-down menu in Dreamup.</li>
|
52 |
-
<li>Make sure you have chosen a compatible image file for your Dreambox device and that it is not corrupted or modified.</li>
|
53 |
-
<li>Make sure you have enough free space on your Dreambox device and on your computer for the flashing process.</li>
|
54 |
-
<li>Make sure you have disabled any antivirus, firewall or other security software that might interfere with the flashing process.</li>
|
55 |
-
<li>Make sure you have followed the instructions carefully and not interrupted the flashing process.</li>
|
56 |
-
</ul>
|
57 |
-
<p>If none of these tips work, you might need to contact the support team of Dream Multimedia or a professional technician for further assistance.</p>
|
58 |
-
<h2>What are the Reviews of Dreamup 1 3 3 8 Exe Download?</h2>
|
59 |
-
<p>Dreamup 1 3 3 8 Exe Download has received many positive reviews from users who have used it to flash their Dreambox devices. Here are some of the reviews from different sources:</p>
|
60 |
-
<blockquote>"Dreamup is a great tool for flashing your Dreambox. It is easy to use and works flawlessly. I have used it several times to update my device and never had any issues. Highly recommended." - User from Software Informer</blockquote>
|
61 |
-
<blockquote>"I have been using Dreamup for years and it never disappoints me. It is the best way to flash your Dreambox with any image you want. It is fast, reliable and safe. I love it." - User from SoundCloud</blockquote>
|
62 |
-
<blockquote>"Dreamup is a must-have for any Dreambox owner. It is the official loader from Dream Multimedia and it supports all models of Dreambox devices. It can fix any problem with your device and improve its performance and features. It is awesome." - User from Dreambox4U</blockquote>
|
63 |
-
<h2>Conclusion</h2>
|
64 |
-
<p>Dreamup 1 3 3 8 Exe Download is a useful tool for flashing your Dreambox device with new images. It is free, easy to use and supports all models of Dreambox devices. It can help you fix some issues with your device, as well as enhance its performance and features. However, you should always download it from a reliable source, update it regularly and consider some alternatives if you want more features or options. We hope this article has helped you learn more about Dreamup 1 3 3 8 Exe Download and how to use it.</p>
|
65 |
-
<h2>How to Choose the Best Image for Your Dreambox Device?</h2>
|
66 |
-
<p>One of the advantages of using Dreamup 1 3 3 8 Exe Download is that you can flash your Dreambox device with any image you want. However, not all images are created equal. Some images might have more features, plugins, skins or compatibility than others. Therefore, you need to choose the best image for your Dreambox device according to your preferences and needs. Here are some tips on how to choose the best image for your Dreambox device:</p>
|
67 |
-
<ul>
|
68 |
-
<li>Check the compatibility of the image with your Dreambox model. Some images might not work well or at all with certain models of Dreambox devices. You can check the compatibility of the image by reading its description, reviews or comments from other users.</li>
|
69 |
-
<li>Check the features and plugins of the image. Some images might have more features and plugins than others, such as EPG, PVR, IPTV, games, emulators, media players and more. You can check the features and plugins of the image by reading its description, reviews or comments from other users.</li>
|
70 |
-
<li>Check the skins and themes of the image. Some images might have more skins and themes than others, which can change the appearance and layout of your Dreambox device. You can check the skins and themes of the image by viewing its screenshots or videos.</li>
|
71 |
-
<li>Check the stability and performance of the image. Some images might be more stable and faster than others, which can affect the reliability and speed of your Dreambox device. You can check the stability and performance of the image by reading its description, reviews or comments from other users.</li>
|
72 |
-
<li>Check the updates and support of the image. Some images might be more updated and supported than others, which can affect the security and functionality of your Dreambox device. You can check the updates and support of the image by visiting its official website or forum.</li>
|
73 |
-
</ul>
|
74 |
-
<p>By following these tips, you can choose the best image for your Dreambox device that suits your preferences and needs.</p>
|
75 |
-
<h2>How to Backup and Restore Your Dreambox Settings?</h2>
|
76 |
-
<p>Before you use Dreamup 1 3 3 8 Exe Download to flash your Dreambox device with a new image, you might want to backup your current settings first. This way, you can restore them later if you are not satisfied with the new image or if something goes wrong during the flashing process. Here are the steps to backup and restore your Dreambox settings:</p>
|
77 |
-
<ol>
|
78 |
-
<li>Connect your Dreambox device to your computer via network or USB.</li>
|
79 |
-
<li>Run a backup tool such as Dreambox Control Center or FlashWizard Pro.</li>
|
80 |
-
<li>Select your Dreambox model from the drop-down menu.</li>
|
81 |
-
<li>Select Backup from the menu bar.</li>
|
82 |
-
<li>Select a location on your computer where you want to save your backup file.</li>
|
83 |
-
<li>Click on Start Backup and wait for the process to complete.</li>
|
84 |
-
<li>To restore your settings, run the same backup tool and select Restore from the menu bar.</li>
|
85 |
-
<li>Select your backup file from your computer.</li>
|
86 |
-
<li>Click on Start Restore and wait for the process to complete.</li>
|
87 |
-
</ol>
|
88 |
-
<p>By following these steps, you can backup and restore your Dreambox settings easily and safely.</p>
|
89 |
-
<h2>Conclusion</h2>
|
90 |
-
<p>Dreamup 1 3 3 8 Exe Download is a useful tool for flashing your Dreambox device with new images. It is free, easy to use and supports all models of Dreambox devices. It can help you fix some issues with your device, as well as enhance its performance and features. However, you should always download it from a reliable source, update it regularly and consider some alternatives if you want more features or options. You should also choose the best image for your device, backup and restore your settings before flashing and troubleshoot any problems that might occur. We hope this article has helped you learn more about Dreamup 1 3 3 8 Exe Download and how to use it.</p>
|
91 |
-
<h2>Conclusion</h2>
|
92 |
-
<p>Dreamup 1 3 3 8 Exe Download is a useful tool for flashing your Dreambox device with new images. It is free, easy to use and supports all models of Dreambox devices. It can help you fix some issues with your device, as well as enhance its performance and features. However, you should always download it from a reliable source, update it regularly and consider some alternatives if you want more features or options. You should also choose the best image for your device, backup and restore your settings before flashing and troubleshoot any problems that might occur. We hope this article has helped you learn more about Dreamup 1 3 3 8 Exe Download and how to use it.</p> 3cee63e6c2<br />
|
93 |
-
<br />
|
94 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Anger of Stick 5 Mod APK How to Get Free Money and Unlock All Levels.md
DELETED
@@ -1,119 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Download Hack Anger of Stick 5 and Enjoy Unlimited Fun</h1> | <p>Are you a fan of stickman action games? Do you love fighting zombies and enemies with your stick friends? If yes, then you must have heard of Anger of Stick 5, one of the most popular stickman games on Android and iOS devices.</p>
|
3 |
-
<p>Anger of Stick 5 is a thrilling game that lets you control a stickman hero and his allies as they fight against a strange group of enemies that have captured innocent people and turned them into zombies. You can use various weapons, skills, helicopters, robots, and more to defeat your foes and save the city.</p>
|
4 |
-
<h2>download hack anger of stick 5</h2><br /><p><b><b>Download File</b> ✺✺✺ <a href="https://urlin.us/2uST3m">https://urlin.us/2uST3m</a></b></p><br /><br />
|
5 |
-
<p>But what if you want to have more fun and excitement in this game? What if you want to unlock all the features, items, modes, and levels without spending any money or time? What if you want to become the ultimate stickman warrior and dominate every battle?</p>
|
6 |
-
<p>Well, there is a way to do that. You can download hack Anger of Stick 5 and enjoy unlimited fun in this game. In this article, we will tell you everything you need to know about hack Anger of Stick 5, including what it is, why you need it, how to download it, how to use it, and what are the risks involved. So, let's get started!</p>
|
7 |
-
<h2>What is Anger of Stick 5?</h2>
|
8 |
-
<p>Anger of Stick 5 is a stickman action game developed by J-PARK. It is available on both Android and iOS platforms. It has over 100 million downloads on Google Play Store and over 10 million downloads on App Store. It has a rating of 4.5 stars out of 5 on both platforms.</p>
|
9 |
-
<p>The game has two modes: single mode and zombie mode. In single mode, you can choose from six different stickman heroes, each with their own skills and abilities. You can also recruit up to three allies to help you in your missions. You can upgrade your weapons and skills as you progress in the game. You can also use helicopters, robots, and mechs to enhance your firepower and mobility.</p>
|
10 |
-
<p>In zombie mode, you can fight against endless waves of zombies and other enemies. You can use various weapons and items to survive as long as possible. You can also compete with other players on the leaderboard and see who can score the highest.</p>
|
11 |
-
<p>Anger of Stick 5 is a fun and addictive game that will keep you entertained for hours. However, it is not an easy game. You will face many challenges and difficulties as you play. You will need a lot of coins, gems, and energy to unlock all the features, items, modes, and levels in the game. You will also need a lot of skill and strategy to win every battle.</p>
|
12 |
-
<p>download anger of stick 5 mod apk unlimited money<br />
|
13 |
-
how to hack anger of stick 5 zombie with lucky patcher<br />
|
14 |
-
anger of stick 5 cheats codes for android<br />
|
15 |
-
download anger of stick 5 mod menu apk<br />
|
16 |
-
anger of stick 5 hack version download for pc<br />
|
17 |
-
download anger of stick 5 zombie mod apk latest version<br />
|
18 |
-
anger of stick 5 unlimited coins and gems hack<br />
|
19 |
-
how to get free diamonds in anger of stick 5<br />
|
20 |
-
download anger of stick 5 mod apk revdl<br />
|
21 |
-
anger of stick 5 hack online generator<br />
|
22 |
-
download anger of stick 5 mod apk happymod<br />
|
23 |
-
anger of stick 5 hack tool no survey no password<br />
|
24 |
-
download anger of stick 5 mod apk android 1<br />
|
25 |
-
how to unlock all characters in anger of stick 5 hack<br />
|
26 |
-
anger of stick 5 hack apk download uptodown<br />
|
27 |
-
download anger of stick 5 mod apk rexdl<br />
|
28 |
-
anger of stick 5 hack without human verification<br />
|
29 |
-
how to get unlimited health in anger of stick 5<br />
|
30 |
-
download anger of stick 5 mod apk an1.com[^1^]<br />
|
31 |
-
anger of stick 5 hack ios download<br />
|
32 |
-
download anger of stick 5 mod apk offline<br />
|
33 |
-
how to hack anger of stick 5 with game guardian<br />
|
34 |
-
anger of stick 5 cheat engine for windows<br />
|
35 |
-
download anger of stick 5 mod apk pure<br />
|
36 |
-
anger of stick 5 hack apk mediafıre link<br />
|
37 |
-
download anger of stick 5 mod apk obb<br />
|
38 |
-
how to hack anger of stick 5 with root<br />
|
39 |
-
anger of stick 5 cheat codes for ios<br />
|
40 |
-
download anger of stick 5 mod apk unlimited diamonds<br />
|
41 |
-
how to get free weapons in anger of stick 5</p>
|
42 |
-
<p>That's why you might want to download hack Anger of Stick 5 and enjoy unlimited fun in this game.</p>
|
43 |
-
<h2>Why Do You Need Hack Anger of Stick 5?</h2>
|
44 |
-
<p>Hack Anger of Stick 5 is a tool that can help you modify the game and get unlimited resources, such as coins, gems, energy, weapons, skills, helicopters, robots, mechs, and more. With hack Anger of Stick 5, you can enjoy the following benefits:</p>
|
45 |
-
<ul>
|
46 |
-
<li>You can unlock all the features, items, modes, and levels in the game without spending any money or time.</li>
|
47 |
-
<li>You can get unlimited coins and gems to buy anything you want in the game.</li>
|
48 |
-
<li>You can get unlimited energy to play as long as you want without waiting for it to recharge.</li>
|
49 |
-
<li>You can get unlimited weapons and skills to equip your stickman hero and allies with the best gear.</li>
|
50 |
-
<li>You can get unlimited helicopters, robots, and mechs to use in your missions and battles.</li>
|
51 |
-
<li>You can get unlimited health and damage to become invincible and defeat any enemy.</li>
|
52 |
-
<li>You can get unlimited fun and excitement in this game without any hassle or frustration.</li>
|
53 |
-
</ul>
|
54 |
-
<p>On the other hand, if you play without hack Anger of Stick 5, you might face the following drawbacks:</p>
|
55 |
-
<ul>
|
56 |
-
<li>You might have to spend a lot of money or time to unlock all the features, items, modes, and levels in the game.</li>
|
57 |
-
<li>You might run out of coins and gems to buy anything you want in the game.</li>
|
58 |
-
<li>You might run out of energy to play as long as you want and have to wait for it to recharge.</li>
|
59 |
-
<li>You might run out of weapons and skills to equip your stickman hero and allies with the best gear.</li>
|
60 |
-
<li>You might run out of helicopters, robots, and mechs to use in your missions and battles.</li>
|
61 |
-
<li>You might run out of health and damage to become invincible and defeat any enemy.</li>
|
62 |
-
<li>You might run out of fun and excitement in this game due to the hassle or frustration.</li>
|
63 |
-
</ul>
|
64 |
-
<p>As you can see, hack Anger of Stick 5 can make a huge difference in your gaming experience. It can make the game more enjoyable and rewarding for you. It can also save you a lot of time and money that you would otherwise spend on the game.</p>
|
65 |
-
<h2>How to Download Hack Anger of Stick 5?</h2>
|
66 |
-
<p>If you are convinced that hack Anger of Stick 5 is what you need to have more fun in this game, then you might be wondering how to download it. Well, it's not that hard. You just need to follow these simple steps:</p>
|
67 |
-
<ol>
|
68 |
-
<li>Find a reliable website that offers hack tools for Anger of Stick 5. You can search on Google or ask your friends for recommendations.</li>
|
69 |
-
<li>Choose the hack tool that suits your needs and preferences. There are different types of hack tools for Anger of Stick 5, such as mod apk files, online generators, cheat codes, etc. Each type has its own advantages and disadvantages. You should read the reviews and ratings of each hack tool before downloading it.</li>
|
70 |
-
<li>Download the hack tool from the website. Make sure that the website is safe and secure. Avoid downloading from suspicious or unknown sources that might contain viruses or malware.</li>
|
71 |
-
<li>Install the hack tool on your device. If you are using a mod apk file, you will need to enable unknown sources in your device settings before installing it. If you are using an online generator or cheat code, you will need to enter your username or email address associated with your game account before generating or activating it.</li>
|
72 |
-
<li>Launch the hack tool and enjoy unlimited fun in Anger of Stick 5!</li> <h2>How to Use Hack Anger of Stick 5?</h2>
|
73 |
-
<p>Now that you have downloaded hack Anger of Stick 5, you might be wondering how to use it. Well, it's not that hard either. You just need to follow these simple tips and tricks:</p>
|
74 |
-
<ul>
|
75 |
-
<li>If you are using a mod apk file, you will need to uninstall the original game from your device before installing the hacked version. This will prevent any conflicts or errors between the two versions.</li>
|
76 |
-
<li>If you are using an online generator or cheat code, you will need to connect your device to the internet before using it. This will ensure that the hack tool can access your game account and modify it accordingly.</li>
|
77 |
-
<li>If you are using a hack tool that requires verification or human confirmation, you will need to complete a short survey or offer before using it. This will prove that you are not a bot and prevent abuse of the hack tool.</li>
|
78 |
-
<li>Once you have launched the hack tool, you will see a user interface that will allow you to customize your game settings and preferences. You can choose how many coins, gems, energy, weapons, skills, helicopters, robots, mechs, and more you want to have in your game.</li>
|
79 |
-
<li>After you have made your choices, you can click on the start or generate button and wait for a few seconds or minutes for the hack tool to work its magic. You will see a confirmation message or notification when the hack tool has successfully modified your game account.</li>
|
80 |
-
<li>Finally, you can open your game and enjoy unlimited fun in Anger of Stick 5!</li>
|
81 |
-
</ul>
|
82 |
-
<p>That's it! You have successfully used hack Anger of Stick 5 and made the game more enjoyable and rewarding for yourself. You can now play as long as you want without any limitations or restrictions. You can now unlock all the features, items, modes, and levels in the game without any hassle or frustration. You can now become the ultimate stickman warrior and dominate every battle.</p>
|
83 |
-
<h2>What are the Risks of Using Hack Anger of Stick 5?</h2>
|
84 |
-
<p>However, before you get too excited and start using hack Anger of Stick 5, you should also be aware of the risks involved. Using hack tools for any game is not without consequences. You might face some potential dangers or problems if you use hack Anger of Stick 5. Here are some of them:</p>
|
85 |
-
<ul>
|
86 |
-
<li>You might get banned from the game or lose your game account. The developers of Anger of Stick 5 might detect that you are using hack tools and take action against you. They might suspend or terminate your game account for violating their terms of service or policies. They might also ban your device from accessing their servers or services.</li>
|
87 |
-
<li>You might get infected with viruses or malware. The website or source that offers hack tools for Anger of Stick 5 might not be trustworthy or secure. They might contain harmful or malicious files that can damage your device or steal your personal information. They might also redirect you to phishing or scam sites that can trick you into giving up your money or data.</li>
|
88 |
-
<li>You might get scammed or cheated. The website or source that offers hack tools for Anger of Stick 5 might not be reliable or honest. They might not deliver what they promise or charge you hidden fees or subscriptions. They might also ask for your personal or financial information that they can use for fraudulent purposes.</li>
|
89 |
-
</ul>
|
90 |
-
<p>As you can see, using hack Anger of Stick 5 is not without risks. You might end up losing more than what you gain if you use hack tools for this game. You might also ruin the fun and challenge of the game by making it too easy or unfair.</p>
|
91 |
-
<p>So, how can you avoid or minimize these risks? Here are some ways:</p>
|
92 |
-
<ul>
|
93 |
-
<li>You should use hack tools for Anger of Stick 5 at your own risk and discretion. You should understand the consequences and responsibilities of using hack tools for this game. You should also respect the rights and rules of the developers and other players of this game.</li>
|
94 |
-
<li>You should use hack tools for Anger of Stick 5 sparingly and moderately. You should not abuse or overuse hack tools for this game. You should also not use hack tools for this game in competitive or multiplayer modes where they can affect other players negatively.</li>
|
95 |
-
<li>You should use hack tools for Anger of Stick 5 from reputable and verified sources only. You should do some research and check the reviews and ratings of each website or source that offers hack tools for this game. You should also scan and test each file or link before downloading or using it.</li>
|
96 |
-
</ul>
|
97 |
-
<p>By following these tips, you can reduce the chances of getting into trouble or harm when using hack Anger of Stick 5. You can also enjoy the game more without compromising its quality or integrity.</p>
|
98 |
-
<h2>Conclusion</h2>
|
99 |
-
<p>In conclusion, hack Anger of Stick 5 is a tool that can help you modify the game and get unlimited resources, such as coins, gems, energy, weapons, skills, helicopters, robots, mechs, and more. It can make the game more fun and exciting for you. It can also save you a lot of time and money that you would otherwise spend on the game.</p>
|
100 |
-
<p>However, hack Anger of Stick 5 is not without risks. You might get banned from the game or lose your game account. You might get infected with viruses or malware. You might get scammed or cheated. You might also ruin the fun and challenge of the game by making it too easy or unfair.</p>
|
101 |
-
<p>Therefore, you should use hack Anger of Stick 5 at your own risk and discretion. You should understand the consequences and responsibilities of using hack tools for this game. You should also respect the rights and rules of the developers and other players of this game.</p>
|
102 |
-
<p>You should also use hack Anger of Stick 5 sparingly and moderately. You should not abuse or overuse hack tools for this game. You should also not use hack tools for this game in competitive or multiplayer modes where they can affect other players negatively.</p>
|
103 |
-
<p>Finally, you should use hack Anger of Stick 5 from reputable and verified sources only. You should do some research and check the reviews and ratings of each website or source that offers hack tools for this game. You should also scan and test each file or link before downloading or using it.</p>
|
104 |
-
<p>By following these tips, you can reduce the chances of getting into trouble or harm when using hack Anger of Stick 5. You can also enjoy the game more without compromising its quality or integrity.</p>
|
105 |
-
<p>We hope that this article has helped you learn how to download hack Anger of Stick 5 and enjoy unlimited fun in this game. If you have any questions or comments, feel free to leave them below. We would love to hear from you!</p>
|
106 |
-
<h2>FAQs</h2>
|
107 |
-
<p>Here are some frequently asked questions about hack Anger of Stick 5:</p>
|
108 |
-
<h3>Q: Is hack Anger of Stick 5 legal?</h3>
|
109 |
-
<p>A: Hack Anger of Stick 5 is not legal. It is against the terms of service and policies of the developers of Anger of Stick 5. It is also considered as cheating or hacking by other players of this game. Therefore, using hack Anger of Stick 5 can result in legal actions or penalties from the developers or other players.</p>
|
110 |
-
<h3>Q: Is hack Anger of Stick 5 safe?</h3>
|
111 |
-
<p>A: Hack Anger of Stick 5 is not safe. It can expose your device or data to viruses or malware. It can also expose your personal or financial information to phishing or scam sites. It can also expose your game account to suspension or termination. Therefore, using hack Anger of Stick 5 can result in safety issues or problems for you.</p>
|
112 |
-
<h3>Q: Is hack Anger of Stick 5 free?</h3>
|
113 |
-
<p>A: Hack Anger of Stick 5 is not free. It can cost you money or time to download or use it. It can also cost you money or time to fix any issues or problems that it might cause for your device, data, or game account. Therefore, using hack Anger of Stick 5 can result in hidden fees or subscriptions for you.</p>
|
114 |
-
<h3>Q: Is hack Anger of Stick 5 worth it?</h3>
|
115 |
-
<p>A: Hack Anger of Stick 5 is not worth it. It can ruin the fun and challenge of the game by making it too easy or unfair. It can also ruin the quality and integrity of the game by modifying it without permission or authorization. It can also ruin your reputation and relationship with other players by cheating or hacking in this game. Therefore, using hack Anger of Stick 5 can result in negative impacts or outcomes for you.</p>
|
116 |
-
<h3>Q: Is there an alternative to hack Anger of Stick 5?</h3>
|
117 |
-
<p>A: Yes, there is an alternative to hack Anger of Stick 5. You can play the game without using any hack tools and enjoy it as it is meant to be played. You can earn coins, gems, energy, weapons, skills, helicopters, robots, mechs, and more by playing the game fairly and honestly. You can also improve your skill and strategy by playing the game regularly and diligently. You can also interact with other players by playing the game cooperatively and competitively. Therefore, playing the game without using any hack tools can result in positive experiences or benefits for you.</p> 197e85843d<br />
|
118 |
-
<br />
|
119 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Basketball Grand Slam APK and Compete with Legendary Players.md
DELETED
@@ -1,148 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Basketball Grand Slam APK: A Real-Time Competitive Basketball Game</h1>
|
3 |
-
<h2>Introduction</h2>
|
4 |
-
<p>If you are a fan of basketball and want to experience the thrill of real-time competition on your mobile device, then you should check out Basketball Grand Slam APK. This is a game that lets you play with or against other players from around the world in various modes and events. You can also unlock and use legendary players with different skills and characteristics to form your own super lineup.</p>
|
5 |
-
<h2>basketball grand slam apk</h2><br /><p><b><b>Download Zip</b> ✺ <a href="https://urlin.us/2uSYVJ">https://urlin.us/2uSYVJ</a></b></p><br /><br />
|
6 |
-
<p>Some of the main features of Basketball Grand Slam APK are:</p>
|
7 |
-
<ul>
|
8 |
-
<li>Real-time synchronization technology that ensures fairness and smoothness between players.</li>
|
9 |
-
<li>Optimized operation and hand feel that allows you to control your player with ease and precision.</li>
|
10 |
-
<li>Various game modes that cater to different preferences and levels of players.</li>
|
11 |
-
<li>Legendary players that have versatile skills and unique styles.</li>
|
12 |
-
<li>Innovative hot three-point ball competition that tests your shooting accuracy and speed.</li>
|
13 |
-
</ul>
|
14 |
-
<p>To download and install Basketball Grand Slam APK, you need to follow these steps:</p>
|
15 |
-
<ol>
|
16 |
-
<li>Go to [Basketball Grand Slam APK (Android Game) - Free Download](^1^) or [Basketball Grand Slam for Android - Download the APK from Uptodown](^2^) and click on the download button.</li>
|
17 |
-
<li>Once the download is complete, open the file and follow the instructions to install the game on your device.</li>
|
18 |
-
<li>Launch the game and enjoy playing with other basketball fans.</li>
|
19 |
-
</ol>
|
20 |
-
<h2>Game Modes</h2>
|
21 |
-
<h3>3v3 Qualifying Mode</h3>
|
22 |
-
<p>This is the mode where you can compete with other players in a 3v3 format. You can either join a random team or invite your friends to form your own team. The goal is to win as many matches as possible and climb up the ranking ladder. You can also earn rewards such as coins, gems, chests, and tickets by playing this mode.</p>
|
23 |
-
<p>The benefits of playing this mode are:</p>
|
24 |
-
<ul>
|
25 |
-
<li>You can improve your skills and tactics by facing different opponents.</li>
|
26 |
-
<li>You can enjoy the cooperation and communication with your teammates.</li>
|
27 |
-
<li>You can challenge yourself and test your limits by competing with higher-ranked players.</li>
|
28 |
-
</ul>
|
29 |
-
<h3>Bullfighting Grand Prix Mode</h <h3>Bullfighting Grand Prix Mode</h3>
|
30 |
-
<p>This is the mode where you can participate in various events and tournaments that have different rules and rewards. You can choose from different difficulty levels and modes such as knockout, round robin, and ladder. You can also customize your own event and invite other players to join. The goal is to win as many matches as possible and earn trophies and prizes.</p>
|
31 |
-
<p>The challenges of playing this mode are:</p>
|
32 |
-
<ul>
|
33 |
-
<li>You need to adapt to different rules and conditions that change every event.</li>
|
34 |
-
<li>You need to face stronger and more diverse opponents that have different strategies and skills.</li>
|
35 |
-
<li>You need to manage your stamina and resources wisely as you play multiple matches in a row.</li>
|
36 |
-
</ul>
|
37 |
-
<h3>Hot Three-Point Ball Competition</h3>
|
38 |
-
<p>This is the mode where you can show off your shooting skills and compete with other players in a hot three-point ball competition. You can choose from different courts and backgrounds that have different effects on your shooting. You can also use different props and items that can enhance or hinder your performance. The goal is to score as many points as possible within the time limit and beat your opponents.</p>
|
39 |
-
<p>The skills required for playing this mode are:</p>
|
40 |
-
<ul>
|
41 |
-
<li>You need to have a good sense of timing and rhythm to release the ball at the right moment.</li>
|
42 |
-
<li>You need to have a good aim and accuracy to hit the target and avoid the obstacles.</li>
|
43 |
-
<li>You need to have a good strategy and judgment to use the props and items effectively.</li>
|
44 |
-
</ul>
|
45 |
-
<h2>Legendary Players</h2>
|
46 |
-
<h3>How to unlock legendary players?</h3>
|
47 |
-
<p>To unlock legendary players, you need to collect their cards and fragments. You can get them from various sources such as chests, events, rewards, and shops. You can also exchange them with other players or use gems to buy them. Once you have enough cards and fragments, you can activate and upgrade the legendary players in your lineup.</p>
|
48 |
-
<p>basketball grand slam game download<br />
|
49 |
-
basketball grand slam android app<br />
|
50 |
-
basketball grand slam free apk<br />
|
51 |
-
basketball grand slam latest version<br />
|
52 |
-
basketball grand slam wang lan<br />
|
53 |
-
basketball grand slam real-time competitive<br />
|
54 |
-
basketball grand slam legendary players<br />
|
55 |
-
basketball grand slam 3v3 qualifying mode<br />
|
56 |
-
basketball grand slam bullfighting grand prix mode<br />
|
57 |
-
basketball grand slam three-point ball competition<br />
|
58 |
-
basketball grand slam street basketball game<br />
|
59 |
-
basketball grand slam fan page address<br />
|
60 |
-
basketball grand slam customer service email<br />
|
61 |
-
basketball grand slam apkcombo games sports<br />
|
62 |
-
basketball grand slam uptodown android games sports<br />
|
63 |
-
basketball grand slam apk file size<br />
|
64 |
-
basketball grand slam apk install guide<br />
|
65 |
-
basketball grand slam apk update history<br />
|
66 |
-
basketball grand slam apk reviews and ratings<br />
|
67 |
-
basketball grand slam apk screenshots and videos<br />
|
68 |
-
basketball grand slam apk mod unlimited money<br />
|
69 |
-
basketball grand slam apk offline play<br />
|
70 |
-
basketball grand slam apk compatible devices<br />
|
71 |
-
basketball grand slam apk download link<br />
|
72 |
-
basketball grand slam apk mirror link<br />
|
73 |
-
basketball grand slam apk alternative apps<br />
|
74 |
-
basketball grand slam apk similar games<br />
|
75 |
-
basketball grand slam apk tips and tricks<br />
|
76 |
-
basketball grand slam apk cheats and hacks<br />
|
77 |
-
basketball grand slam apk gameplay features<br />
|
78 |
-
basketball grand slam apk system requirements<br />
|
79 |
-
basketball grand slam apk bugs and issues<br />
|
80 |
-
basketball grand slam apk feedback and suggestions<br />
|
81 |
-
basketball grand slam apk questions and answers<br />
|
82 |
-
basketball grand slam apk news and updates<br />
|
83 |
-
basketball grand slam apk release date and version number<br />
|
84 |
-
basketball grand slam apk developer information and contact details<br />
|
85 |
-
basketball grand slam apk license and terms of service<br />
|
86 |
-
basketball grand slam apk privacy policy and data usage<br />
|
87 |
-
basketball grand slam apk security and virus scan results</p>
|
88 |
-
<h3>What are the different types of legendary players?</h3>
|
89 |
-
<p>There are different types of legendary players that have different attributes and skills. They are divided into four categories: lone hero, mercury diarrhea, rebound king, and assist master. Here are some examples of each category:</p>
|
90 |
-
<h4>Lone Hero</h4>
|
91 |
-
<p>This type of legendary player is good at scoring by themselves. They have high offensive stats and skills that can help them break through the defense and make difficult shots. They are also good at creating their own space and opportunities. However, they may not be very good at passing or cooperating with their teammates. Some examples of this type are Kobe Bryant, Michael Jordan, Allen Iverson, etc.</p>
|
92 |
-
<h4>Mercury Diarrhea</h4>
|
93 |
-
<p>This type of legendary player is good at running fast and changing directions. They have high speed and agility stats and skills that can help them outrun their opponents and make quick moves. They are also good at stealing the ball and making fast breaks. However, they may not be very good at shooting or defending against bigger players. Some examples of this type are Stephen Curry, Kyrie Irving, Derrick Rose, etc.</p> <h4>Rebound King</h4>
|
94 |
-
<p>This type of legendary player is good at grabbing rebounds and controlling the boards. They have high strength and jumping stats and skills that can help them dominate the paint and secure the ball. They are also good at blocking shots and protecting the rim. However, they may not be very good at dribbling or shooting from long range. Some examples of this type are Shaquille O'Neal, Wilt Chamberlain, Dennis Rodman, etc.</p>
|
95 |
-
<h4>Assist Master</h4>
|
96 |
-
<p>This type of legendary player is good at passing and assisting their teammates. They have high vision and intelligence stats and skills that can help them find the open man and create chances. They are also good at controlling the tempo and orchestrating the offense. However, they may not be very good at scoring by themselves or defending against faster players. Some examples of this type are Magic Johnson, Steve Nash, John Stockton, etc.</p>
|
97 |
-
<h2>Tips and Tricks</h2>
|
98 |
-
<h3>How to improve your operation and hand feel?</h3>
|
99 |
-
<p>To improve your operation and hand feel, you need to practice and familiarize yourself with the game controls and mechanics. You can use the training mode to learn the basic moves and skills of each player. You can also adjust the sensitivity and feedback settings to suit your preference. You can also watch some tutorials and guides online to learn some tips and tricks from other players.</p>
|
100 |
-
<h3>How to use different skills and tactics?</h3>
|
101 |
-
<p>To use different skills and tactics, you need to know the strengths and weaknesses of each player and team. You can check the stats and attributes of each player in your lineup and choose the ones that match your style and strategy. You can also use the skill buttons to activate different skills such as crossover, dunk, block, etc. You can also use the tactic buttons to switch between different tactics such as man-to-man, zone, pick-and-roll, etc.</p>
|
102 |
-
<h3>How to cooperate with your teammates?</h3>
|
103 |
-
<p>To cooperate with your teammates, you need to communicate and coordinate with them. You can use the chat function or voice chat function to talk to your teammates and share information and ideas. You can also use the gesture function or emoji function to express your emotions and reactions. You can also use the pass button or assist button to pass the ball or assist your teammates.</p>
|
104 |
-
<h2>Conclusion</h2>
|
105 |
-
<p>Basketball Grand Slam APK is a game that allows you to enjoy the excitement and fun of basketball on your mobile device. You can play with or against other players from around the world in various modes and events. You can also unlock and use legendary players with different skills and characteristics to form your own super lineup. If you are a basketball fan, you should not miss this game.</p>
|
106 |
-
<p>So what are you waiting for? Download Basketball Grand Slam APK now and start playing with other basketball fans. You will not regret it!</p>
|
107 |
-
<h2>FAQs</h2>
|
108 |
-
<p>Here are some of the frequently asked questions about Basketball Grand Slam APK:</p>
|
109 |
-
<ul>
|
110 |
-
<li>Q1: What are the system requirements for Basketball Grand Slam APK?<br>
|
111 |
-
A1: The system requirements for Basketball Grand Slam APK are Android 4.4 or higher, 2 GB of RAM or more, 500 MB of free storage space or more, and a stable internet connection.</li>
|
112 |
-
<li>Q2: Is Basketball Grand Slam APK free to play?<br>
|
113 |
-
A2: Yes, Basketball Grand Slam APK is free to play. However, there are some optional in-app purchases that can enhance your gaming experience.</li>
|
114 |
-
<li>Q3: How to contact customer service for Basketball Grand Slam APK?<br>
|
115 |
-
A3: You can contact customer service for Basketball Grand Slam APK by sending an email to [[email protected]] or by visiting their official website [www.basketballgrandslam.com].</li>
|
116 |
-
<li>Q4: What are some of the best basketball trivia and facts?<br>
|
117 |
-
A4: Here are some of the best basketball trivia and facts:</p>
|
118 |
-
<table>
|
119 |
-
<tr><th>Trivia</th><th>Fact</th></tr>
|
120 |
-
<tr><td>The inventor of basketball was James Naismith.</td><td>He created the game in 1891 as a physical education instructor at Springfield College in Massachusetts.</td></tr>
|
121 |
-
<tr><td>The first official basketball game was played on January 20, 1892.</td><td>The game was played between two teams of nine players each at Springfield College. The final score was 1-0.</td></tr>
|
122 |
-
<tr><td>The first NBA game was played on November 1, 1946.</td><td>The game was played between the New York Knicks and the Toronto Huskies at Maple Leaf Gardens in Toronto. The final score was 68-66 in favor of the Knicks.</td></tr>
|
123 |
-
<tr><td>The shortest NBA player ever was Muggsy Bogues.</td><td>He was only 5 feet 3 inches tall and played as a point guard for 14 seasons in the NBA.</td></tr>
|
124 |
-
<tr><td>The tallest NBA player ever was Manute Bol.</td><td>He was 7 feet 7 inches tall and played as a center for 10 seasons in the NBA. He also holds the record for the most blocks per game in a season with 5.0.</td></tr>
|
125 |
-
</table>
|
126 |
-
<li>Q5: What are some of the basic basketball rules and terms?<br>
|
127 |
-
A5: Here are some of the basic basketball rules and terms:</p>
|
128 |
-
<ul>
|
129 |
-
<li>A basketball game is played between two teams of five players each on a rectangular court with a basket at each end.</li>
|
130 |
-
<li>The objective of the game is to score more points than the opposing team by shooting the ball through the basket.</li>
|
131 |
-
<li>The game is divided into four quarters of 12 minutes each (or 10 minutes in international games). There is also a halftime break of 15 minutes between the second and third quarters.</li>
|
132 |
-
<li>The game is started with a jump ball at the center circle, where one player from each team tries to tip the ball to their teammates.</li>
|
133 |
-
<li>The team that has possession of the ball is called the offense, and the team that tries to stop them from scoring is called the defense.</li>
|
134 |
-
<li>The offense can advance the ball by passing, dribbling, or shooting. The defense can try to steal the ball, block shots, or force turnovers.</li>
|
135 |
-
<li>The offense must shoot the ball within 24 seconds (or 30 seconds in international games) after gaining possession, otherwise they lose the ball. This is called the shot clock.</li>
|
136 |
-
<li>The offense must also cross the midcourt line within 8 seconds (or 10 seconds in international games) after gaining possession, otherwise they lose the ball. This is called the backcourt violation.</li>
|
137 |
-
<li>The offense cannot stay in the restricted area near the basket (also known as the paint or the key) for more than 3 seconds, otherwise they lose the ball. This is called the three-second violation.</li>
|
138 |
-
<li>The offense cannot dribble the ball with two hands at the same time, or stop dribbling and then start again, otherwise they lose the ball. This is called traveling or double dribble.</li>
|
139 |
-
<li>The defense cannot touch the ball when it is on its way down to the basket or when it is on or above the rim, otherwise they give two points to the offense. This is called goaltending.</li>
|
140 |
-
<li>The defense cannot foul the offense by hitting, pushing, holding, or tripping them, otherwise they give free throws to the offense. A free throw is an unopposed shot from the foul line worth one point. The number of free throws depends on the type and severity of the foul.</li>
|
141 |
-
<li>A foul committed during a shot attempt is called a shooting foul. If the shot goes in, the shooter gets one free throw. If not, they get two or three free throws depending on whether they were shooting from inside or outside the three-point line. This is called a three-point play or a four-point play.</li>
|
142 |
-
<li>A foul committed when the offense is not in a shooting position is called a non-shooting foul. If the defense has committed less than five fouls in a quarter (or four in international games), the offense gets the ball out of bounds. If not, they get two free throws. This is called the bonus situation.</li>
|
143 |
-
<li>A foul committed when the ball is not in play is called a technical foul. The offense gets one free throw and the ball out of bounds. A technical foul can also be given for unsportsmanlike conduct, such as arguing with the referee, taunting the opponent, or fighting.</li>
|
144 |
-
<li>A foul committed intentionally to stop the clock or prevent a scoring opportunity is called an intentional foul. The offense gets two free throws and the ball out of bounds.</li>
|
145 |
-
<li>A foul committed with excessive or unnecessary force is called a flagrant foul. The offense gets two free throws and the ball out of bounds. A flagrant foul can also result in an ejection or a suspension for the offender.</li>
|
146 |
-
</ul></p> 197e85843d<br />
|
147 |
-
<br />
|
148 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download Hair Challenge on PC and Customize Your Hair Color and Style.md
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Hair Challenge Game Download for PC</h1>
|
3 |
-
<p>Do you love playing with your hair and creating different styles? Do you enjoy running games that test your reflexes and skills? If you answered yes to both questions, then you should definitely try hair challenge game, a fun and popular hair runner game that lets you grow and style your hair as you race.</p>
|
4 |
-
<p>Hair challenge game is available for both mobile devices and PCs, but if you want to have the best gaming experience, you should download it for your PC. Why? Because you will get better graphics, performance, and controls than on your phone or tablet. Plus, you will be able to enjoy the game on a bigger screen and immerse yourself in the colorful and exciting world of hair challenge.</p>
|
5 |
-
<h2>hair challenge game download for pc</h2><br /><p><b><b>Download File</b> ✅ <a href="https://jinyurl.com/2uNQks">https://jinyurl.com/2uNQks</a></b></p><br /><br />
|
6 |
-
<p>So, how do you download hair challenge game for your PC? It's actually very easy and simple. Just follow these steps:</p>
|
7 |
-
<h2>How to Download Hair Challenge Game for PC</h2>
|
8 |
-
<h3>Install a Games Launcher</h3>
|
9 |
-
<p>A games launcher is a program that allows you to access, buy, download, install, and play games on your PC. There are many games launchers out there, but one of the most popular and reliable ones is the Epic Games Launcher, which is also the official distributor of hair challenge game.</p>
|
10 |
-
<p>To install the Epic Games Launcher, you need to visit its website and click on the "Get Epic Games" button at the top right corner of the page. This will download a setup file that you need to run on your PC. Follow the instructions on the screen to complete the installation process.</p>
|
11 |
-
<h3>Create an Account</h3>
|
12 |
-
<p>Once you have installed the Epic Games Launcher, you need to create an account or sign in with an existing one. You can create an Epic Games account using your email address or phone number, or you can use your Google, Facebook, or console accounts to sign up.</p>
|
13 |
-
<p>Creating an account is free and easy, and it will allow you to access all the features of the Epic Games Launcher, such as browsing the store, downloading games, managing your library, connecting with friends, etc.</p>
|
14 |
-
<h3>Select and Purchase the Game</h3>
|
15 |
-
<p>Now that you have an account and a launcher installed, you can start <p>Now that you have an account and a launcher installed, you can start looking for the game you want to play. In this case, hair challenge game. To do that, you need to open the Epic Games Launcher and click on the "Store" tab at the top of the window. This will take you to the online store where you can browse and buy games.</p>
|
16 |
-
<p>To find hair challenge game, you can use the search bar at the top right corner of the store page, or you can scroll down and look for it in the "Free Games" section. Yes, you read that right. Hair challenge game is currently free to download and play on your PC, so you don't have to pay anything to enjoy it.</p>
|
17 |
-
<p>Once you find the game, click on it to go to its product page. There, you will see a brief description of the game, some screenshots and videos, and the system requirements. You will also see a big blue button that says "Get". Click on it to add the game to your library.</p>
|
18 |
-
<p>hair challenge game download for pc free<br />
|
19 |
-
hair challenge game download for pc windows 10<br />
|
20 |
-
hair challenge game download for pc online<br />
|
21 |
-
hair challenge game download for pc bluestacks<br />
|
22 |
-
hair challenge game download for pc emulator<br />
|
23 |
-
hair challenge game download for pc full version<br />
|
24 |
-
hair challenge game download for pc windows 7<br />
|
25 |
-
hair challenge game download for pc nox player<br />
|
26 |
-
hair challenge game download for pc apk<br />
|
27 |
-
hair challenge game download for pc mumu player<br />
|
28 |
-
hair challenge game download for pc mac<br />
|
29 |
-
hair challenge game download for pc laptop<br />
|
30 |
-
hair challenge game download for pc offline<br />
|
31 |
-
hair challenge game download for pc without emulator<br />
|
32 |
-
hair challenge game download for pc latest version<br />
|
33 |
-
hair challenge game download for pc windows 8<br />
|
34 |
-
hair challenge game download for pc rollic games<br />
|
35 |
-
hair challenge game download for pc softonic<br />
|
36 |
-
hair challenge game download for pc xapk<br />
|
37 |
-
hair challenge game download for pc browser<br />
|
38 |
-
hair challenge game download for pc windows 11<br />
|
39 |
-
hair challenge game download for pc android<br />
|
40 |
-
hair challenge game download for pc uptodown<br />
|
41 |
-
hair challenge game download for pc appsonwindows<br />
|
42 |
-
hair challenge game download for pc new scientist<br />
|
43 |
-
hair challenge game download for pc action runner<br />
|
44 |
-
hair challenge game download for pc mod apk<br />
|
45 |
-
hair challenge game download for pc steam<br />
|
46 |
-
hair challenge game download for pc review<br />
|
47 |
-
hair challenge game download for pc gameplay<br />
|
48 |
-
hair challenge game download for pc cheats<br />
|
49 |
-
hair challenge game download for pc tips and tricks<br />
|
50 |
-
hair challenge game download for pc hack<br />
|
51 |
-
hair challenge game download for pc unlimited money<br />
|
52 |
-
hair challenge game download for pc best characters<br />
|
53 |
-
hair challenge game download for pc hairstyles and colors<br />
|
54 |
-
hair challenge game download for pc how to play<br />
|
55 |
-
hair challenge game download for pc requirements and specifications<br />
|
56 |
-
hair challenge game download for pc features and benefits<br />
|
57 |
-
hair challenge game download for pc fun and addictive<br />
|
58 |
-
hair challenge game download for pc high heels and accessories<br />
|
59 |
-
hair challenge game download for pc obstacles and challenges<br />
|
60 |
-
hair challenge game download for pc levels and stages<br />
|
61 |
-
hair challenge game download for pc updates and improvements<br />
|
62 |
-
hair challenge game download for pc bugs and issues<br />
|
63 |
-
hair challenge game download for pc ratings and reviews<br />
|
64 |
-
hair challenge game download for pc alternatives and competitors<br />
|
65 |
-
hair challenge game download for pc pros and cons</p>
|
66 |
-
<h3>Install and Play the Game</h3>
|
67 |
-
<p>After you have added the game to your library, you are ready to download and install it on your PC. To do that, you need to go to the "Library" tab at the top of the Epic Games Launcher window. There, you will see a list of all the games you own or have access to.</p>
|
68 |
-
<p>Find hair challenge game in your library and click on it. This will open a new window where you can see more details about the game, such as its size, version, and update status. You will also see a button that says "Install". Click on it to start downloading and installing the game on your PC.</p>
|
69 |
-
<p>The download and installation process may take some time depending on your internet speed and PC performance. You can check the progress of the download and installation in the same window, or in the "Downloads" section of the launcher. You can also pause or resume the download at any time.</p>
|
70 |
-
<p>Once the download and installation are complete, you can start playing hair challenge game on your PC. To do that, just click on the "Launch" button in the same window where you installed the game, or in your library. This will open the game and let you enjoy it.</p>
|
71 |
-
<h2>Tips and Tricks for Playing Hair Challenge Game</h2>
|
72 |
-
<p>Hair challenge game is a fun and easy game to play, but it can also be challenging and addictive. Here are some tips and tricks to help you get better at it and have more fun:</p>
|
73 |
-
<h3>Avoid Obstacles</h3>
|
74 |
-
<p>The main goal of hair challenge game is to grow your hair as long as possible while running through different levels. However, there are many obstacles that can cut or damage your hair along the way, such as scissors, blades, flames, lasers, etc. You need to avoid these obstacles by moving left or right, jumping over them, or ducking under them.</p>
|
75 |
-
<p>To move left or right, you can use the arrow keys on your keyboard, or drag your mouse left or right. To jump or duck, you can use the spacebar on your keyboard, or click with your mouse. Be careful not to hit any obstacles or walls, as this will reduce your hair length and score.</p>
|
76 |
-
<h3>Collect Hair Extensions</h3>
|
77 |
-
<p>Another way to grow your hair longer is to collect hair extensions that are scattered throughout the levels. These are weaves of different colors and lengths that will add more volume and beauty to your hair. You can collect them by running over them or jumping to reach them.</p>
|
78 |
-
<p>Some hair extensions are hidden or hard to reach, so you need to be observant and creative to find them. Some hair extensions also have special effects, such as rainbow colors, sparkles, or stars. Try to collect as many hair extensions as you can to make your hair longer and more fabulous.</p>
|
79 |
-
<h3>Customize Your Character</h3>
|
80 |
-
<p>Hair challenge game is not only about growing your hair, but also about styling it and expressing yourself. You can customize your character by unlocking and choosing different characters, hair dyes, and accessories from the hair shop.</p>
|
81 |
-
<p>To access the hair shop, you need to click on the shopping cart icon at the top right corner of the main menu screen. There, you will see a variety of options to change your appearance. You can unlock new options by spending coins that you earn by playing the game or watching ads.</p>
|
82 |
-
<p>You can change your character's skin tone, eye color, outfit, shoes, etc. You can also change your hair color by choosing from different shades or patterns. You can even mix and match different colors for different parts of your hair. You can also add accessories such as hats, glasses, earrings, etc.</p>
|
83 |
-
<p>You can preview how your character <p>You can preview how your character looks by clicking on the "Try On" button at the bottom of the hair shop screen. You can also see how your character looks in different levels by clicking on the "Change Level" button at the top of the screen. You can choose from various themes and backgrounds, such as city, beach, forest, etc.</p>
|
84 |
-
<p>Once you are happy with your character's appearance, you can click on the "Save" button to confirm your changes. You can also click on the "Random" button to generate a random look for your character. You can change your character's look anytime you want by visiting the hair shop again.</p>
|
85 |
-
<h2>Conclusion</h2>
|
86 |
-
<p>Hair challenge game is a fun and addictive game that lets you grow and style your hair as you run through different levels. It is a great way to relax and have fun, as well as to unleash your creativity and personality.</p>
|
87 |
-
<p>If you want to enjoy hair challenge game on your PC, you can easily download it for free from the Epic Games Launcher. All you need to do is install the launcher, create an account, find the game, and install it. Then, you can start playing and customizing your character.</p>
|
88 |
-
<p>Hair challenge game is a game that anyone can play and enjoy, regardless of age or gender. It is a game that will make you smile and laugh, as well as challenge and reward you. So, what are you waiting for? Download hair challenge game for your PC today and have a hair-raising adventure!</p>
|
89 |
-
<h2>FAQs</h2>
|
90 |
-
<p>Here are some frequently asked questions and answers about hair challenge game or the download process:</p>
|
91 |
-
<ul>
|
92 |
-
<li><b>Q: How much space does hair challenge game take on my PC?</b></li>
|
93 |
-
<li>A: The game requires about 200 MB of free disk space.</li>
|
94 |
-
<li><b>Q: How do I update hair challenge game on my PC?</b></li>
|
95 |
-
<li>A: The game will update automatically when you launch it from the Epic Games Launcher. You can also check for updates manually by clicking on the "Update" button in the library section of the launcher.</li>
|
96 |
-
<li><b>Q: How do I uninstall hair challenge game from my PC?</b></li>
|
97 |
-
<li>A: To uninstall the game, you need to go to the library section of the Epic Games Launcher, find the game, and click on the "Uninstall" button. You can also uninstall the game from the control panel of your PC.</li>
|
98 |
-
<li><b>Q: Is hair challenge game safe to download and play on my PC?</b></li>
|
99 |
-
<li>A: Yes, hair challenge game is safe and secure to download and play on your PC. The game is verified by Epic Games and does not contain any viruses or malware.</li>
|
100 |
-
<li><b>Q: Can I play hair challenge game offline on my PC?</b></li>
|
101 |
-
<li>A: Yes, you can play hair challenge game offline on your PC. However, you will not be able to access some features that require an internet connection, such as watching ads or connecting with friends.</li>
|
102 |
-
</ul></p> 197e85843d<br />
|
103 |
-
<br />
|
104 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2ndelement/voicevox/voicevox_engine/full_context_label.py
DELETED
@@ -1,525 +0,0 @@
|
|
1 |
-
import re
|
2 |
-
from dataclasses import dataclass
|
3 |
-
from itertools import chain
|
4 |
-
from typing import Dict, List, Optional
|
5 |
-
|
6 |
-
import pyopenjtalk
|
7 |
-
|
8 |
-
|
9 |
-
@dataclass
|
10 |
-
class Phoneme:
|
11 |
-
"""
|
12 |
-
音素(母音・子音)クラス、音素の元となるcontextを保持する
|
13 |
-
音素には、母音や子音以外にも無音(silent/pause)も含まれる
|
14 |
-
|
15 |
-
Attributes
|
16 |
-
----------
|
17 |
-
contexts: Dict[str, str]
|
18 |
-
音素の元
|
19 |
-
"""
|
20 |
-
|
21 |
-
contexts: Dict[str, str]
|
22 |
-
|
23 |
-
@classmethod
|
24 |
-
def from_label(cls, label: str):
|
25 |
-
"""
|
26 |
-
pyopenjtalk.extract_fullcontextで得られる音素の元(ラベル)から、Phonemeクラスを作成する
|
27 |
-
Parameters
|
28 |
-
----------
|
29 |
-
label : str
|
30 |
-
pyopenjtalk.extract_fullcontextで得られるラベルを渡す
|
31 |
-
|
32 |
-
Returns
|
33 |
-
-------
|
34 |
-
phoneme: Phoneme
|
35 |
-
Phonemeクラスを返す
|
36 |
-
"""
|
37 |
-
|
38 |
-
# フルコンテキストラベルの仕様は、
|
39 |
-
# http://hts.sp.nitech.ac.jp/?Download の HTS-2.3のJapanese tar.bz2 (126 MB)をダウンロードして、data/lab_format.pdfを見るとリストが見つかります。 # noqa
|
40 |
-
contexts = re.search(
|
41 |
-
r"^(?P<p1>.+?)\^(?P<p2>.+?)\-(?P<p3>.+?)\+(?P<p4>.+?)\=(?P<p5>.+?)"
|
42 |
-
r"/A\:(?P<a1>.+?)\+(?P<a2>.+?)\+(?P<a3>.+?)"
|
43 |
-
r"/B\:(?P<b1>.+?)\-(?P<b2>.+?)\_(?P<b3>.+?)"
|
44 |
-
r"/C\:(?P<c1>.+?)\_(?P<c2>.+?)\+(?P<c3>.+?)"
|
45 |
-
r"/D\:(?P<d1>.+?)\+(?P<d2>.+?)\_(?P<d3>.+?)"
|
46 |
-
r"/E\:(?P<e1>.+?)\_(?P<e2>.+?)\!(?P<e3>.+?)\_(?P<e4>.+?)\-(?P<e5>.+?)"
|
47 |
-
r"/F\:(?P<f1>.+?)\_(?P<f2>.+?)\#(?P<f3>.+?)\_(?P<f4>.+?)\@(?P<f5>.+?)\_(?P<f6>.+?)\|(?P<f7>.+?)\_(?P<f8>.+?)" # noqa
|
48 |
-
r"/G\:(?P<g1>.+?)\_(?P<g2>.+?)\%(?P<g3>.+?)\_(?P<g4>.+?)\_(?P<g5>.+?)"
|
49 |
-
r"/H\:(?P<h1>.+?)\_(?P<h2>.+?)"
|
50 |
-
r"/I\:(?P<i1>.+?)\-(?P<i2>.+?)\@(?P<i3>.+?)\+(?P<i4>.+?)\&(?P<i5>.+?)\-(?P<i6>.+?)\|(?P<i7>.+?)\+(?P<i8>.+?)" # noqa
|
51 |
-
r"/J\:(?P<j1>.+?)\_(?P<j2>.+?)"
|
52 |
-
r"/K\:(?P<k1>.+?)\+(?P<k2>.+?)\-(?P<k3>.+?)$",
|
53 |
-
label,
|
54 |
-
).groupdict()
|
55 |
-
return cls(contexts=contexts)
|
56 |
-
|
57 |
-
@property
|
58 |
-
def label(self):
|
59 |
-
"""
|
60 |
-
pyopenjtalk.extract_fullcontextで得られるラベルと等しい
|
61 |
-
Returns
|
62 |
-
-------
|
63 |
-
lebel: str
|
64 |
-
ラベルを返す
|
65 |
-
"""
|
66 |
-
return (
|
67 |
-
"{p1}^{p2}-{p3}+{p4}={p5}"
|
68 |
-
"/A:{a1}+{a2}+{a3}"
|
69 |
-
"/B:{b1}-{b2}_{b3}"
|
70 |
-
"/C:{c1}_{c2}+{c3}"
|
71 |
-
"/D:{d1}+{d2}_{d3}"
|
72 |
-
"/E:{e1}_{e2}!{e3}_{e4}-{e5}"
|
73 |
-
"/F:{f1}_{f2}#{f3}_{f4}@{f5}_{f6}|{f7}_{f8}"
|
74 |
-
"/G:{g1}_{g2}%{g3}_{g4}_{g5}"
|
75 |
-
"/H:{h1}_{h2}"
|
76 |
-
"/I:{i1}-{i2}@{i3}+{i4}&{i5}-{i6}|{i7}+{i8}"
|
77 |
-
"/J:{j1}_{j2}"
|
78 |
-
"/K:{k1}+{k2}-{k3}"
|
79 |
-
).format(**self.contexts)
|
80 |
-
|
81 |
-
@property
|
82 |
-
def phoneme(self):
|
83 |
-
"""
|
84 |
-
音素クラスの中で、発声に必要な要素を返す
|
85 |
-
Returns
|
86 |
-
-------
|
87 |
-
phoneme : str
|
88 |
-
発声に必要な要素を返す
|
89 |
-
"""
|
90 |
-
return self.contexts["p3"]
|
91 |
-
|
92 |
-
def is_pause(self):
|
93 |
-
"""
|
94 |
-
音素がポーズ(無音、silent/pause)であるかを返す
|
95 |
-
Returns
|
96 |
-
-------
|
97 |
-
is_pose : bool
|
98 |
-
音素がポーズ(無音、silent/pause)であるか(True)否か(False)
|
99 |
-
"""
|
100 |
-
return self.contexts["f1"] == "xx"
|
101 |
-
|
102 |
-
def __repr__(self):
|
103 |
-
return f"<Phoneme phoneme='{self.phoneme}'>"
|
104 |
-
|
105 |
-
|
106 |
-
@dataclass
|
107 |
-
class Mora:
|
108 |
-
"""
|
109 |
-
モーラクラス
|
110 |
-
モーラは1音素(母音や促音「っ」、撥音「ん」など)か、2音素(母音と子音の組み合わせ)で成り立つ
|
111 |
-
|
112 |
-
Attributes
|
113 |
-
----------
|
114 |
-
consonant : Optional[Phoneme]
|
115 |
-
子音
|
116 |
-
vowel : Phoneme
|
117 |
-
母音
|
118 |
-
"""
|
119 |
-
|
120 |
-
consonant: Optional[Phoneme]
|
121 |
-
vowel: Phoneme
|
122 |
-
|
123 |
-
def set_context(self, key: str, value: str):
|
124 |
-
"""
|
125 |
-
Moraクラス内に含まれるPhonemeのcontextのうち、指定されたキーの値を変更する
|
126 |
-
consonantが存在する場合は、vowelと同じようにcontextを変更する
|
127 |
-
Parameters
|
128 |
-
----------
|
129 |
-
key : str
|
130 |
-
変更したいcontextのキー
|
131 |
-
value : str
|
132 |
-
変更したいcontextの値
|
133 |
-
"""
|
134 |
-
self.vowel.contexts[key] = value
|
135 |
-
if self.consonant is not None:
|
136 |
-
self.consonant.contexts[key] = value
|
137 |
-
|
138 |
-
@property
|
139 |
-
def phonemes(self):
|
140 |
-
"""
|
141 |
-
音素群を返す
|
142 |
-
Returns
|
143 |
-
-------
|
144 |
-
phonemes : List[Phoneme]
|
145 |
-
母音しかない場合は母音のみ、子音もある場合は子音、母音の順番でPhonemeのリストを返す
|
146 |
-
"""
|
147 |
-
if self.consonant is not None:
|
148 |
-
return [self.consonant, self.vowel]
|
149 |
-
else:
|
150 |
-
return [self.vowel]
|
151 |
-
|
152 |
-
@property
|
153 |
-
def labels(self):
|
154 |
-
"""
|
155 |
-
ラベル群を返す
|
156 |
-
Returns
|
157 |
-
-------
|
158 |
-
labels : List[str]
|
159 |
-
Moraに含まれるすべてのラベルを返す
|
160 |
-
"""
|
161 |
-
return [p.label for p in self.phonemes]
|
162 |
-
|
163 |
-
|
164 |
-
@dataclass
|
165 |
-
class AccentPhrase:
|
166 |
-
"""
|
167 |
-
アクセント句クラス
|
168 |
-
同じアクセントのMoraを複数保持する
|
169 |
-
Attributes
|
170 |
-
----------
|
171 |
-
moras : List[Mora]
|
172 |
-
音韻のリスト
|
173 |
-
accent : int
|
174 |
-
アクセント
|
175 |
-
"""
|
176 |
-
|
177 |
-
moras: List[Mora]
|
178 |
-
accent: int
|
179 |
-
is_interrogative: bool
|
180 |
-
|
181 |
-
@classmethod
|
182 |
-
def from_phonemes(cls, phonemes: List[Phoneme]):
|
183 |
-
"""
|
184 |
-
PhonemeのリストからAccentPhraseクラスを作成する
|
185 |
-
Parameters
|
186 |
-
----------
|
187 |
-
phonemes : List[Phoneme]
|
188 |
-
phonemeのリストを渡す
|
189 |
-
|
190 |
-
Returns
|
191 |
-
-------
|
192 |
-
accent_phrase : AccentPhrase
|
193 |
-
AccentPhraseクラスを返す
|
194 |
-
"""
|
195 |
-
moras: List[Mora] = []
|
196 |
-
|
197 |
-
mora_phonemes: List[Phoneme] = []
|
198 |
-
for phoneme, next_phoneme in zip(phonemes, phonemes[1:] + [None]):
|
199 |
-
# workaround for Hihosiba/voicevox_engine#57
|
200 |
-
# (py)openjtalk によるアクセント句内のモーラへの附番は 49 番目まで
|
201 |
-
# 49 番目のモーラについて、続く音素のモーラ番号を単一モーラの特定に使えない
|
202 |
-
if int(phoneme.contexts["a2"]) == 49:
|
203 |
-
break
|
204 |
-
|
205 |
-
mora_phonemes.append(phoneme)
|
206 |
-
|
207 |
-
if (
|
208 |
-
next_phoneme is None
|
209 |
-
or phoneme.contexts["a2"] != next_phoneme.contexts["a2"]
|
210 |
-
):
|
211 |
-
if len(mora_phonemes) == 1:
|
212 |
-
consonant, vowel = None, mora_phonemes[0]
|
213 |
-
elif len(mora_phonemes) == 2:
|
214 |
-
consonant, vowel = mora_phonemes[0], mora_phonemes[1]
|
215 |
-
else:
|
216 |
-
raise ValueError(mora_phonemes)
|
217 |
-
mora = Mora(consonant=consonant, vowel=vowel)
|
218 |
-
moras.append(mora)
|
219 |
-
mora_phonemes = []
|
220 |
-
|
221 |
-
accent = int(moras[0].vowel.contexts["f2"])
|
222 |
-
# workaround for Hihosiba/voicevox_engine#55
|
223 |
-
# アクセント位置とするキー f2 の値がアクセント句内のモーラ数を超える場合がある
|
224 |
-
accent = accent if accent <= len(moras) else len(moras)
|
225 |
-
is_interrogative = moras[-1].vowel.contexts["f3"] == "1"
|
226 |
-
return cls(moras=moras, accent=accent, is_interrogative=is_interrogative)
|
227 |
-
|
228 |
-
def set_context(self, key: str, value: str):
|
229 |
-
"""
|
230 |
-
AccentPhraseに間接的に含まれる全てのPhonemeのcontextの、指定されたキーの値を変更する
|
231 |
-
Parameters
|
232 |
-
----------
|
233 |
-
key : str
|
234 |
-
変更したいcontextのキー
|
235 |
-
value : str
|
236 |
-
変更したいcontextの値
|
237 |
-
"""
|
238 |
-
for mora in self.moras:
|
239 |
-
mora.set_context(key, value)
|
240 |
-
|
241 |
-
@property
|
242 |
-
def phonemes(self):
|
243 |
-
"""
|
244 |
-
音素群を返す
|
245 |
-
Returns
|
246 |
-
-------
|
247 |
-
phonemes : List[Phoneme]
|
248 |
-
AccentPhraseに間接的に含まれる全てのPhonemeを返す
|
249 |
-
"""
|
250 |
-
return list(chain.from_iterable(m.phonemes for m in self.moras))
|
251 |
-
|
252 |
-
@property
|
253 |
-
def labels(self):
|
254 |
-
"""
|
255 |
-
ラベル群を返す
|
256 |
-
Returns
|
257 |
-
-------
|
258 |
-
labels : List[str]
|
259 |
-
AccentPhraseに間接的に含まれる全てのラベルを返す
|
260 |
-
"""
|
261 |
-
return [p.label for p in self.phonemes]
|
262 |
-
|
263 |
-
def merge(self, accent_phrase: "AccentPhrase"):
|
264 |
-
"""
|
265 |
-
AccentPhraseを合成する
|
266 |
-
(このクラスが保持するmorasの後ろに、引数として渡されたAccentPhraseのmorasを合成する)
|
267 |
-
Parameters
|
268 |
-
----------
|
269 |
-
accent_phrase : AccentPhrase
|
270 |
-
合成したいAccentPhraseを渡す
|
271 |
-
|
272 |
-
Returns
|
273 |
-
-------
|
274 |
-
accent_phrase : AccentPhrase
|
275 |
-
合成されたAccentPhraseを返す
|
276 |
-
"""
|
277 |
-
return AccentPhrase(
|
278 |
-
moras=self.moras + accent_phrase.moras,
|
279 |
-
accent=self.accent,
|
280 |
-
is_interrogative=accent_phrase.is_interrogative,
|
281 |
-
)
|
282 |
-
|
283 |
-
|
284 |
-
@dataclass
|
285 |
-
class BreathGroup:
|
286 |
-
"""
|
287 |
-
発声の区切りクラス
|
288 |
-
アクセントの異なるアクセント句を複数保持する
|
289 |
-
Attributes
|
290 |
-
----------
|
291 |
-
accent_phrases : List[AccentPhrase]
|
292 |
-
アクセント句のリスト
|
293 |
-
"""
|
294 |
-
|
295 |
-
accent_phrases: List[AccentPhrase]
|
296 |
-
|
297 |
-
@classmethod
|
298 |
-
def from_phonemes(cls, phonemes: List[Phoneme]):
|
299 |
-
"""
|
300 |
-
PhonemeのリストからBreathGroupクラスを作成する
|
301 |
-
Parameters
|
302 |
-
----------
|
303 |
-
phonemes : List[Phoneme]
|
304 |
-
phonemeのリストを渡す
|
305 |
-
|
306 |
-
Returns
|
307 |
-
-------
|
308 |
-
breath_group : BreathGroup
|
309 |
-
BreathGroupクラスを返す
|
310 |
-
"""
|
311 |
-
accent_phrases: List[AccentPhrase] = []
|
312 |
-
accent_phonemes: List[Phoneme] = []
|
313 |
-
for phoneme, next_phoneme in zip(phonemes, phonemes[1:] + [None]):
|
314 |
-
accent_phonemes.append(phoneme)
|
315 |
-
|
316 |
-
if (
|
317 |
-
next_phoneme is None
|
318 |
-
or phoneme.contexts["i3"] != next_phoneme.contexts["i3"]
|
319 |
-
or phoneme.contexts["f5"] != next_phoneme.contexts["f5"]
|
320 |
-
):
|
321 |
-
accent_phrase = AccentPhrase.from_phonemes(accent_phonemes)
|
322 |
-
accent_phrases.append(accent_phrase)
|
323 |
-
accent_phonemes = []
|
324 |
-
|
325 |
-
return cls(accent_phrases=accent_phrases)
|
326 |
-
|
327 |
-
def set_context(self, key: str, value: str):
|
328 |
-
"""
|
329 |
-
BreathGroupに間接的に含まれる全てのPhonemeのcontextの、指定されたキーの値を変更する
|
330 |
-
Parameters
|
331 |
-
----------
|
332 |
-
key : str
|
333 |
-
変更したいcontextのキー
|
334 |
-
value : str
|
335 |
-
変更したいcontextの値
|
336 |
-
"""
|
337 |
-
for accent_phrase in self.accent_phrases:
|
338 |
-
accent_phrase.set_context(key, value)
|
339 |
-
|
340 |
-
@property
|
341 |
-
def phonemes(self):
|
342 |
-
"""
|
343 |
-
音素群を返す
|
344 |
-
Returns
|
345 |
-
-------
|
346 |
-
phonemes : List[Phoneme]
|
347 |
-
BreathGroupに間接的に含まれる全てのPhonemeを返す
|
348 |
-
"""
|
349 |
-
return list(
|
350 |
-
chain.from_iterable(
|
351 |
-
accent_phrase.phonemes for accent_phrase in self.accent_phrases
|
352 |
-
)
|
353 |
-
)
|
354 |
-
|
355 |
-
@property
|
356 |
-
def labels(self):
|
357 |
-
"""
|
358 |
-
ラベル群を返す
|
359 |
-
Returns
|
360 |
-
-------
|
361 |
-
labels : List[str]
|
362 |
-
BreathGroupに間接的に含まれる全てのラベルを返す
|
363 |
-
"""
|
364 |
-
return [p.label for p in self.phonemes]
|
365 |
-
|
366 |
-
|
367 |
-
@dataclass
|
368 |
-
class Utterance:
|
369 |
-
"""
|
370 |
-
発声クラス
|
371 |
-
発声の区切りと無音を複数保持する
|
372 |
-
Attributes
|
373 |
-
----------
|
374 |
-
breath_groups : List[BreathGroup]
|
375 |
-
発声の区切りのリスト
|
376 |
-
pauses : List[Phoneme]
|
377 |
-
無音のリスト
|
378 |
-
"""
|
379 |
-
|
380 |
-
breath_groups: List[BreathGroup]
|
381 |
-
pauses: List[Phoneme]
|
382 |
-
|
383 |
-
@classmethod
|
384 |
-
def from_phonemes(cls, phonemes: List[Phoneme]):
|
385 |
-
"""
|
386 |
-
Phonemeの完全なリストからUtteranceクラスを作成する
|
387 |
-
Parameters
|
388 |
-
----------
|
389 |
-
phonemes : List[Phoneme]
|
390 |
-
phonemeのリストを渡す
|
391 |
-
|
392 |
-
Returns
|
393 |
-
-------
|
394 |
-
utterance : Utterance
|
395 |
-
Utteranceクラスを返す
|
396 |
-
"""
|
397 |
-
pauses: List[Phoneme] = []
|
398 |
-
|
399 |
-
breath_groups: List[BreathGroup] = []
|
400 |
-
group_phonemes: List[Phoneme] = []
|
401 |
-
for phoneme in phonemes:
|
402 |
-
if not phoneme.is_pause():
|
403 |
-
group_phonemes.append(phoneme)
|
404 |
-
|
405 |
-
else:
|
406 |
-
pauses.append(phoneme)
|
407 |
-
|
408 |
-
if len(group_phonemes) > 0:
|
409 |
-
breath_group = BreathGroup.from_phonemes(group_phonemes)
|
410 |
-
breath_groups.append(breath_group)
|
411 |
-
group_phonemes = []
|
412 |
-
|
413 |
-
return cls(breath_groups=breath_groups, pauses=pauses)
|
414 |
-
|
415 |
-
def set_context(self, key: str, value: str):
|
416 |
-
"""
|
417 |
-
Utteranceに間接的に含まれる全てのPhonemeのcontextの、指定されたキーの値を変更する
|
418 |
-
Parameters
|
419 |
-
----------
|
420 |
-
key : str
|
421 |
-
変更したいcontextのキー
|
422 |
-
value : str
|
423 |
-
変更したいcontextの値
|
424 |
-
"""
|
425 |
-
for breath_group in self.breath_groups:
|
426 |
-
breath_group.set_context(key, value)
|
427 |
-
|
428 |
-
@property
|
429 |
-
def phonemes(self):
|
430 |
-
"""
|
431 |
-
音素群を返す
|
432 |
-
Returns
|
433 |
-
-------
|
434 |
-
phonemes : List[Phoneme]
|
435 |
-
Utteranceクラスに直接的・間接的に含まれる、全てのPhonemeを返す
|
436 |
-
"""
|
437 |
-
accent_phrases = list(
|
438 |
-
chain.from_iterable(
|
439 |
-
breath_group.accent_phrases for breath_group in self.breath_groups
|
440 |
-
)
|
441 |
-
)
|
442 |
-
for prev, cent, post in zip(
|
443 |
-
[None] + accent_phrases[:-1],
|
444 |
-
accent_phrases,
|
445 |
-
accent_phrases[1:] + [None],
|
446 |
-
):
|
447 |
-
mora_num = len(cent.moras)
|
448 |
-
accent = cent.accent
|
449 |
-
|
450 |
-
if prev is not None:
|
451 |
-
prev.set_context("g1", str(mora_num))
|
452 |
-
prev.set_context("g2", str(accent))
|
453 |
-
|
454 |
-
if post is not None:
|
455 |
-
post.set_context("e1", str(mora_num))
|
456 |
-
post.set_context("e2", str(accent))
|
457 |
-
|
458 |
-
cent.set_context("f1", str(mora_num))
|
459 |
-
cent.set_context("f2", str(accent))
|
460 |
-
for i_mora, mora in enumerate(cent.moras):
|
461 |
-
mora.set_context("a1", str(i_mora - accent + 1))
|
462 |
-
mora.set_context("a2", str(i_mora + 1))
|
463 |
-
mora.set_context("a3", str(mora_num - i_mora))
|
464 |
-
|
465 |
-
for prev, cent, post in zip(
|
466 |
-
[None] + self.breath_groups[:-1],
|
467 |
-
self.breath_groups,
|
468 |
-
self.breath_groups[1:] + [None],
|
469 |
-
):
|
470 |
-
accent_phrase_num = len(cent.accent_phrases)
|
471 |
-
|
472 |
-
if prev is not None:
|
473 |
-
prev.set_context("j1", str(accent_phrase_num))
|
474 |
-
|
475 |
-
if post is not None:
|
476 |
-
post.set_context("h1", str(accent_phrase_num))
|
477 |
-
|
478 |
-
cent.set_context("i1", str(accent_phrase_num))
|
479 |
-
cent.set_context(
|
480 |
-
"i5", str(accent_phrases.index(cent.accent_phrases[0]) + 1)
|
481 |
-
)
|
482 |
-
cent.set_context(
|
483 |
-
"i6",
|
484 |
-
str(len(accent_phrases) - accent_phrases.index(cent.accent_phrases[0])),
|
485 |
-
)
|
486 |
-
|
487 |
-
self.set_context(
|
488 |
-
"k2",
|
489 |
-
str(
|
490 |
-
sum(
|
491 |
-
[
|
492 |
-
len(breath_group.accent_phrases)
|
493 |
-
for breath_group in self.breath_groups
|
494 |
-
]
|
495 |
-
)
|
496 |
-
),
|
497 |
-
)
|
498 |
-
|
499 |
-
phonemes: List[Phoneme] = []
|
500 |
-
for i in range(len(self.pauses)):
|
501 |
-
if self.pauses[i] is not None:
|
502 |
-
phonemes += [self.pauses[i]]
|
503 |
-
|
504 |
-
if i < len(self.pauses) - 1:
|
505 |
-
phonemes += self.breath_groups[i].phonemes
|
506 |
-
|
507 |
-
return phonemes
|
508 |
-
|
509 |
-
@property
|
510 |
-
def labels(self):
|
511 |
-
"""
|
512 |
-
ラベル群を返す
|
513 |
-
Returns
|
514 |
-
-------
|
515 |
-
labels : List[str]
|
516 |
-
Utteranceクラスに直接的・間接的に含まれる全てのラベルを返す
|
517 |
-
"""
|
518 |
-
return [p.label for p in self.phonemes]
|
519 |
-
|
520 |
-
|
521 |
-
def extract_full_context_label(text: str):
|
522 |
-
labels = pyopenjtalk.extract_fullcontext(text)
|
523 |
-
phonemes = [Phoneme.from_label(label=label) for label in labels]
|
524 |
-
utterance = Utterance.from_phonemes(phonemes)
|
525 |
-
return utterance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/A00001/bingothoo/src/components/toaster.tsx
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
'use client'
|
2 |
-
|
3 |
-
export { Toaster } from 'react-hot-toast'
|
|
|
|
|
|
|
|
spaces/A666sxr/Genshin_TTS/mel_processing.py
DELETED
@@ -1,112 +0,0 @@
|
|
1 |
-
import math
|
2 |
-
import os
|
3 |
-
import random
|
4 |
-
import torch
|
5 |
-
from torch import nn
|
6 |
-
import torch.nn.functional as F
|
7 |
-
import torch.utils.data
|
8 |
-
import numpy as np
|
9 |
-
import librosa
|
10 |
-
import librosa.util as librosa_util
|
11 |
-
from librosa.util import normalize, pad_center, tiny
|
12 |
-
from scipy.signal import get_window
|
13 |
-
from scipy.io.wavfile import read
|
14 |
-
from librosa.filters import mel as librosa_mel_fn
|
15 |
-
|
16 |
-
MAX_WAV_VALUE = 32768.0
|
17 |
-
|
18 |
-
|
19 |
-
def dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
|
20 |
-
"""
|
21 |
-
PARAMS
|
22 |
-
------
|
23 |
-
C: compression factor
|
24 |
-
"""
|
25 |
-
return torch.log(torch.clamp(x, min=clip_val) * C)
|
26 |
-
|
27 |
-
|
28 |
-
def dynamic_range_decompression_torch(x, C=1):
|
29 |
-
"""
|
30 |
-
PARAMS
|
31 |
-
------
|
32 |
-
C: compression factor used to compress
|
33 |
-
"""
|
34 |
-
return torch.exp(x) / C
|
35 |
-
|
36 |
-
|
37 |
-
def spectral_normalize_torch(magnitudes):
|
38 |
-
output = dynamic_range_compression_torch(magnitudes)
|
39 |
-
return output
|
40 |
-
|
41 |
-
|
42 |
-
def spectral_de_normalize_torch(magnitudes):
|
43 |
-
output = dynamic_range_decompression_torch(magnitudes)
|
44 |
-
return output
|
45 |
-
|
46 |
-
|
47 |
-
mel_basis = {}
|
48 |
-
hann_window = {}
|
49 |
-
|
50 |
-
|
51 |
-
def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, center=False):
|
52 |
-
if torch.min(y) < -1.:
|
53 |
-
print('min value is ', torch.min(y))
|
54 |
-
if torch.max(y) > 1.:
|
55 |
-
print('max value is ', torch.max(y))
|
56 |
-
|
57 |
-
global hann_window
|
58 |
-
dtype_device = str(y.dtype) + '_' + str(y.device)
|
59 |
-
wnsize_dtype_device = str(win_size) + '_' + dtype_device
|
60 |
-
if wnsize_dtype_device not in hann_window:
|
61 |
-
hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
|
62 |
-
|
63 |
-
y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
|
64 |
-
y = y.squeeze(1)
|
65 |
-
|
66 |
-
spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
|
67 |
-
center=center, pad_mode='reflect', normalized=False, onesided=True)
|
68 |
-
|
69 |
-
spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
|
70 |
-
return spec
|
71 |
-
|
72 |
-
|
73 |
-
def spec_to_mel_torch(spec, n_fft, num_mels, sampling_rate, fmin, fmax):
|
74 |
-
global mel_basis
|
75 |
-
dtype_device = str(spec.dtype) + '_' + str(spec.device)
|
76 |
-
fmax_dtype_device = str(fmax) + '_' + dtype_device
|
77 |
-
if fmax_dtype_device not in mel_basis:
|
78 |
-
mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
|
79 |
-
mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=spec.dtype, device=spec.device)
|
80 |
-
spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
|
81 |
-
spec = spectral_normalize_torch(spec)
|
82 |
-
return spec
|
83 |
-
|
84 |
-
|
85 |
-
def mel_spectrogram_torch(y, n_fft, num_mels, sampling_rate, hop_size, win_size, fmin, fmax, center=False):
|
86 |
-
if torch.min(y) < -1.:
|
87 |
-
print('min value is ', torch.min(y))
|
88 |
-
if torch.max(y) > 1.:
|
89 |
-
print('max value is ', torch.max(y))
|
90 |
-
|
91 |
-
global mel_basis, hann_window
|
92 |
-
dtype_device = str(y.dtype) + '_' + str(y.device)
|
93 |
-
fmax_dtype_device = str(fmax) + '_' + dtype_device
|
94 |
-
wnsize_dtype_device = str(win_size) + '_' + dtype_device
|
95 |
-
if fmax_dtype_device not in mel_basis:
|
96 |
-
mel = librosa_mel_fn(sampling_rate, n_fft, num_mels, fmin, fmax)
|
97 |
-
mel_basis[fmax_dtype_device] = torch.from_numpy(mel).to(dtype=y.dtype, device=y.device)
|
98 |
-
if wnsize_dtype_device not in hann_window:
|
99 |
-
hann_window[wnsize_dtype_device] = torch.hann_window(win_size).to(dtype=y.dtype, device=y.device)
|
100 |
-
|
101 |
-
y = torch.nn.functional.pad(y.unsqueeze(1), (int((n_fft-hop_size)/2), int((n_fft-hop_size)/2)), mode='reflect')
|
102 |
-
y = y.squeeze(1)
|
103 |
-
|
104 |
-
spec = torch.stft(y, n_fft, hop_length=hop_size, win_length=win_size, window=hann_window[wnsize_dtype_device],
|
105 |
-
center=center, pad_mode='reflect', normalized=False, onesided=True)
|
106 |
-
|
107 |
-
spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
|
108 |
-
|
109 |
-
spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
|
110 |
-
spec = spectral_normalize_torch(spec)
|
111 |
-
|
112 |
-
return spec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AHzizi/WaifuVoiceGen/text/cleaners.py
DELETED
@@ -1,475 +0,0 @@
|
|
1 |
-
""" from https://github.com/keithito/tacotron """
|
2 |
-
|
3 |
-
'''
|
4 |
-
Cleaners are transformations that run over the input text at both training and eval time.
|
5 |
-
|
6 |
-
Cleaners can be selected by passing a comma-delimited list of cleaner names as the "cleaners"
|
7 |
-
hyperparameter. Some cleaners are English-specific. You'll typically want to use:
|
8 |
-
1. "english_cleaners" for English text
|
9 |
-
2. "transliteration_cleaners" for non-English text that can be transliterated to ASCII using
|
10 |
-
the Unidecode library (https://pypi.python.org/pypi/Unidecode)
|
11 |
-
3. "basic_cleaners" if you do not want to transliterate (in this case, you should also update
|
12 |
-
the symbols in symbols.py to match your data).
|
13 |
-
'''
|
14 |
-
|
15 |
-
import re
|
16 |
-
from unidecode import unidecode
|
17 |
-
import pyopenjtalk
|
18 |
-
from jamo import h2j, j2hcj
|
19 |
-
from pypinyin import lazy_pinyin, BOPOMOFO
|
20 |
-
import jieba, cn2an
|
21 |
-
|
22 |
-
|
23 |
-
# This is a list of Korean classifiers preceded by pure Korean numerals.
|
24 |
-
_korean_classifiers = '군데 권 개 그루 닢 대 두 마리 모 모금 뭇 발 발짝 방 번 벌 보루 살 수 술 시 쌈 움큼 정 짝 채 척 첩 축 켤레 톨 통'
|
25 |
-
|
26 |
-
# Regular expression matching whitespace:
|
27 |
-
_whitespace_re = re.compile(r'\s+')
|
28 |
-
|
29 |
-
# Regular expression matching Japanese without punctuation marks:
|
30 |
-
_japanese_characters = re.compile(r'[A-Za-z\d\u3005\u3040-\u30ff\u4e00-\u9fff\uff11-\uff19\uff21-\uff3a\uff41-\uff5a\uff66-\uff9d]')
|
31 |
-
|
32 |
-
# Regular expression matching non-Japanese characters or punctuation marks:
|
33 |
-
_japanese_marks = re.compile(r'[^A-Za-z\d\u3005\u3040-\u30ff\u4e00-\u9fff\uff11-\uff19\uff21-\uff3a\uff41-\uff5a\uff66-\uff9d]')
|
34 |
-
|
35 |
-
# List of (regular expression, replacement) pairs for abbreviations:
|
36 |
-
_abbreviations = [(re.compile('\\b%s\\.' % x[0], re.IGNORECASE), x[1]) for x in [
|
37 |
-
('mrs', 'misess'),
|
38 |
-
('mr', 'mister'),
|
39 |
-
('dr', 'doctor'),
|
40 |
-
('st', 'saint'),
|
41 |
-
('co', 'company'),
|
42 |
-
('jr', 'junior'),
|
43 |
-
('maj', 'major'),
|
44 |
-
('gen', 'general'),
|
45 |
-
('drs', 'doctors'),
|
46 |
-
('rev', 'reverend'),
|
47 |
-
('lt', 'lieutenant'),
|
48 |
-
('hon', 'honorable'),
|
49 |
-
('sgt', 'sergeant'),
|
50 |
-
('capt', 'captain'),
|
51 |
-
('esq', 'esquire'),
|
52 |
-
('ltd', 'limited'),
|
53 |
-
('col', 'colonel'),
|
54 |
-
('ft', 'fort'),
|
55 |
-
]]
|
56 |
-
|
57 |
-
# List of (hangul, hangul divided) pairs:
|
58 |
-
_hangul_divided = [(re.compile('%s' % x[0]), x[1]) for x in [
|
59 |
-
('ㄳ', 'ㄱㅅ'),
|
60 |
-
('ㄵ', 'ㄴㅈ'),
|
61 |
-
('ㄶ', 'ㄴㅎ'),
|
62 |
-
('ㄺ', 'ㄹㄱ'),
|
63 |
-
('ㄻ', 'ㄹㅁ'),
|
64 |
-
('ㄼ', 'ㄹㅂ'),
|
65 |
-
('ㄽ', 'ㄹㅅ'),
|
66 |
-
('ㄾ', 'ㄹㅌ'),
|
67 |
-
('ㄿ', 'ㄹㅍ'),
|
68 |
-
('ㅀ', 'ㄹㅎ'),
|
69 |
-
('ㅄ', 'ㅂㅅ'),
|
70 |
-
('ㅘ', 'ㅗㅏ'),
|
71 |
-
('ㅙ', 'ㅗㅐ'),
|
72 |
-
('ㅚ', 'ㅗㅣ'),
|
73 |
-
('ㅝ', 'ㅜㅓ'),
|
74 |
-
('ㅞ', 'ㅜㅔ'),
|
75 |
-
('ㅟ', 'ㅜㅣ'),
|
76 |
-
('ㅢ', 'ㅡㅣ'),
|
77 |
-
('ㅑ', 'ㅣㅏ'),
|
78 |
-
('ㅒ', 'ㅣㅐ'),
|
79 |
-
('ㅕ', 'ㅣㅓ'),
|
80 |
-
('ㅖ', 'ㅣㅔ'),
|
81 |
-
('ㅛ', 'ㅣㅗ'),
|
82 |
-
('ㅠ', 'ㅣㅜ')
|
83 |
-
]]
|
84 |
-
|
85 |
-
# List of (Latin alphabet, hangul) pairs:
|
86 |
-
_latin_to_hangul = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [
|
87 |
-
('a', '에이'),
|
88 |
-
('b', '비'),
|
89 |
-
('c', '시'),
|
90 |
-
('d', '디'),
|
91 |
-
('e', '이'),
|
92 |
-
('f', '에프'),
|
93 |
-
('g', '지'),
|
94 |
-
('h', '에이치'),
|
95 |
-
('i', '아이'),
|
96 |
-
('j', '제이'),
|
97 |
-
('k', '케이'),
|
98 |
-
('l', '엘'),
|
99 |
-
('m', '엠'),
|
100 |
-
('n', '엔'),
|
101 |
-
('o', '오'),
|
102 |
-
('p', '피'),
|
103 |
-
('q', '큐'),
|
104 |
-
('r', '아르'),
|
105 |
-
('s', '에스'),
|
106 |
-
('t', '티'),
|
107 |
-
('u', '유'),
|
108 |
-
('v', '브이'),
|
109 |
-
('w', '더블유'),
|
110 |
-
('x', '엑스'),
|
111 |
-
('y', '와이'),
|
112 |
-
('z', '제트')
|
113 |
-
]]
|
114 |
-
|
115 |
-
# List of (Latin alphabet, bopomofo) pairs:
|
116 |
-
_latin_to_bopomofo = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [
|
117 |
-
('a', 'ㄟˉ'),
|
118 |
-
('b', 'ㄅㄧˋ'),
|
119 |
-
('c', 'ㄙㄧˉ'),
|
120 |
-
('d', 'ㄉㄧˋ'),
|
121 |
-
('e', 'ㄧˋ'),
|
122 |
-
('f', 'ㄝˊㄈㄨˋ'),
|
123 |
-
('g', 'ㄐㄧˋ'),
|
124 |
-
('h', 'ㄝˇㄑㄩˋ'),
|
125 |
-
('i', 'ㄞˋ'),
|
126 |
-
('j', 'ㄐㄟˋ'),
|
127 |
-
('k', 'ㄎㄟˋ'),
|
128 |
-
('l', 'ㄝˊㄛˋ'),
|
129 |
-
('m', 'ㄝˊㄇㄨˋ'),
|
130 |
-
('n', 'ㄣˉ'),
|
131 |
-
('o', 'ㄡˉ'),
|
132 |
-
('p', 'ㄆㄧˉ'),
|
133 |
-
('q', 'ㄎㄧㄡˉ'),
|
134 |
-
('r', 'ㄚˋ'),
|
135 |
-
('s', 'ㄝˊㄙˋ'),
|
136 |
-
('t', 'ㄊㄧˋ'),
|
137 |
-
('u', 'ㄧㄡˉ'),
|
138 |
-
('v', 'ㄨㄧˉ'),
|
139 |
-
('w', 'ㄉㄚˋㄅㄨˋㄌㄧㄡˋ'),
|
140 |
-
('x', 'ㄝˉㄎㄨˋㄙˋ'),
|
141 |
-
('y', 'ㄨㄞˋ'),
|
142 |
-
('z', 'ㄗㄟˋ')
|
143 |
-
]]
|
144 |
-
|
145 |
-
|
146 |
-
# List of (bopomofo, romaji) pairs:
|
147 |
-
_bopomofo_to_romaji = [(re.compile('%s' % x[0], re.IGNORECASE), x[1]) for x in [
|
148 |
-
('ㄅㄛ', 'p⁼wo'),
|
149 |
-
('ㄆㄛ', 'pʰwo'),
|
150 |
-
('ㄇㄛ', 'mwo'),
|
151 |
-
('ㄈㄛ', 'fwo'),
|
152 |
-
('ㄅ', 'p⁼'),
|
153 |
-
('ㄆ', 'pʰ'),
|
154 |
-
('ㄇ', 'm'),
|
155 |
-
('ㄈ', 'f'),
|
156 |
-
('ㄉ', 't⁼'),
|
157 |
-
('ㄊ', 'tʰ'),
|
158 |
-
('ㄋ', 'n'),
|
159 |
-
('ㄌ', 'l'),
|
160 |
-
('ㄍ', 'k⁼'),
|
161 |
-
('ㄎ', 'kʰ'),
|
162 |
-
('ㄏ', 'h'),
|
163 |
-
('ㄐ', 'ʧ⁼'),
|
164 |
-
('ㄑ', 'ʧʰ'),
|
165 |
-
('ㄒ', 'ʃ'),
|
166 |
-
('ㄓ', 'ʦ`⁼'),
|
167 |
-
('ㄔ', 'ʦ`ʰ'),
|
168 |
-
('ㄕ', 's`'),
|
169 |
-
('ㄖ', 'ɹ`'),
|
170 |
-
('ㄗ', 'ʦ⁼'),
|
171 |
-
('ㄘ', 'ʦʰ'),
|
172 |
-
('ㄙ', 's'),
|
173 |
-
('ㄚ', 'a'),
|
174 |
-
('ㄛ', 'o'),
|
175 |
-
('ㄜ', 'ə'),
|
176 |
-
('ㄝ', 'e'),
|
177 |
-
('ㄞ', 'ai'),
|
178 |
-
('ㄟ', 'ei'),
|
179 |
-
('ㄠ', 'au'),
|
180 |
-
('ㄡ', 'ou'),
|
181 |
-
('ㄧㄢ', 'yeNN'),
|
182 |
-
('ㄢ', 'aNN'),
|
183 |
-
('ㄧㄣ', 'iNN'),
|
184 |
-
('ㄣ', 'əNN'),
|
185 |
-
('ㄤ', 'aNg'),
|
186 |
-
('ㄧㄥ', 'iNg'),
|
187 |
-
('ㄨㄥ', 'uNg'),
|
188 |
-
('ㄩㄥ', 'yuNg'),
|
189 |
-
('ㄥ', 'əNg'),
|
190 |
-
('ㄦ', 'əɻ'),
|
191 |
-
('ㄧ', 'i'),
|
192 |
-
('ㄨ', 'u'),
|
193 |
-
('ㄩ', 'ɥ'),
|
194 |
-
('ˉ', '→'),
|
195 |
-
('ˊ', '↑'),
|
196 |
-
('ˇ', '↓↑'),
|
197 |
-
('ˋ', '↓'),
|
198 |
-
('˙', ''),
|
199 |
-
(',', ','),
|
200 |
-
('。', '.'),
|
201 |
-
('!', '!'),
|
202 |
-
('?', '?'),
|
203 |
-
('—', '-')
|
204 |
-
]]
|
205 |
-
|
206 |
-
|
207 |
-
def expand_abbreviations(text):
|
208 |
-
for regex, replacement in _abbreviations:
|
209 |
-
text = re.sub(regex, replacement, text)
|
210 |
-
return text
|
211 |
-
|
212 |
-
|
213 |
-
def lowercase(text):
|
214 |
-
return text.lower()
|
215 |
-
|
216 |
-
|
217 |
-
def collapse_whitespace(text):
|
218 |
-
return re.sub(_whitespace_re, ' ', text)
|
219 |
-
|
220 |
-
|
221 |
-
def convert_to_ascii(text):
|
222 |
-
return unidecode(text)
|
223 |
-
|
224 |
-
|
225 |
-
def japanese_to_romaji_with_accent(text):
|
226 |
-
'''Reference https://r9y9.github.io/ttslearn/latest/notebooks/ch10_Recipe-Tacotron.html'''
|
227 |
-
sentences = re.split(_japanese_marks, text)
|
228 |
-
marks = re.findall(_japanese_marks, text)
|
229 |
-
text = ''
|
230 |
-
for i, sentence in enumerate(sentences):
|
231 |
-
if re.match(_japanese_characters, sentence):
|
232 |
-
if text!='':
|
233 |
-
text+=' '
|
234 |
-
labels = pyopenjtalk.extract_fullcontext(sentence)
|
235 |
-
for n, label in enumerate(labels):
|
236 |
-
phoneme = re.search(r'\-([^\+]*)\+', label).group(1)
|
237 |
-
if phoneme not in ['sil','pau']:
|
238 |
-
text += phoneme.replace('ch','ʧ').replace('sh','ʃ').replace('cl','Q')
|
239 |
-
else:
|
240 |
-
continue
|
241 |
-
n_moras = int(re.search(r'/F:(\d+)_', label).group(1))
|
242 |
-
a1 = int(re.search(r"/A:(\-?[0-9]+)\+", label).group(1))
|
243 |
-
a2 = int(re.search(r"\+(\d+)\+", label).group(1))
|
244 |
-
a3 = int(re.search(r"\+(\d+)/", label).group(1))
|
245 |
-
if re.search(r'\-([^\+]*)\+', labels[n + 1]).group(1) in ['sil','pau']:
|
246 |
-
a2_next=-1
|
247 |
-
else:
|
248 |
-
a2_next = int(re.search(r"\+(\d+)\+", labels[n + 1]).group(1))
|
249 |
-
# Accent phrase boundary
|
250 |
-
if a3 == 1 and a2_next == 1:
|
251 |
-
text += ' '
|
252 |
-
# Falling
|
253 |
-
elif a1 == 0 and a2_next == a2 + 1 and a2 != n_moras:
|
254 |
-
text += '↓'
|
255 |
-
# Rising
|
256 |
-
elif a2 == 1 and a2_next == 2:
|
257 |
-
text += '↑'
|
258 |
-
if i<len(marks):
|
259 |
-
text += unidecode(marks[i]).replace(' ','')
|
260 |
-
return text
|
261 |
-
|
262 |
-
|
263 |
-
def latin_to_hangul(text):
|
264 |
-
for regex, replacement in _latin_to_hangul:
|
265 |
-
text = re.sub(regex, replacement, text)
|
266 |
-
return text
|
267 |
-
|
268 |
-
|
269 |
-
def divide_hangul(text):
|
270 |
-
for regex, replacement in _hangul_divided:
|
271 |
-
text = re.sub(regex, replacement, text)
|
272 |
-
return text
|
273 |
-
|
274 |
-
|
275 |
-
def hangul_number(num, sino=True):
|
276 |
-
'''Reference https://github.com/Kyubyong/g2pK'''
|
277 |
-
num = re.sub(',', '', num)
|
278 |
-
|
279 |
-
if num == '0':
|
280 |
-
return '영'
|
281 |
-
if not sino and num == '20':
|
282 |
-
return '스무'
|
283 |
-
|
284 |
-
digits = '123456789'
|
285 |
-
names = '일이삼사오육칠팔구'
|
286 |
-
digit2name = {d: n for d, n in zip(digits, names)}
|
287 |
-
|
288 |
-
modifiers = '한 두 세 네 다섯 여섯 일곱 여덟 아홉'
|
289 |
-
decimals = '열 스물 서른 마흔 쉰 예순 일흔 여든 아흔'
|
290 |
-
digit2mod = {d: mod for d, mod in zip(digits, modifiers.split())}
|
291 |
-
digit2dec = {d: dec for d, dec in zip(digits, decimals.split())}
|
292 |
-
|
293 |
-
spelledout = []
|
294 |
-
for i, digit in enumerate(num):
|
295 |
-
i = len(num) - i - 1
|
296 |
-
if sino:
|
297 |
-
if i == 0:
|
298 |
-
name = digit2name.get(digit, '')
|
299 |
-
elif i == 1:
|
300 |
-
name = digit2name.get(digit, '') + '십'
|
301 |
-
name = name.replace('일십', '십')
|
302 |
-
else:
|
303 |
-
if i == 0:
|
304 |
-
name = digit2mod.get(digit, '')
|
305 |
-
elif i == 1:
|
306 |
-
name = digit2dec.get(digit, '')
|
307 |
-
if digit == '0':
|
308 |
-
if i % 4 == 0:
|
309 |
-
last_three = spelledout[-min(3, len(spelledout)):]
|
310 |
-
if ''.join(last_three) == '':
|
311 |
-
spelledout.append('')
|
312 |
-
continue
|
313 |
-
else:
|
314 |
-
spelledout.append('')
|
315 |
-
continue
|
316 |
-
if i == 2:
|
317 |
-
name = digit2name.get(digit, '') + '백'
|
318 |
-
name = name.replace('일백', '백')
|
319 |
-
elif i == 3:
|
320 |
-
name = digit2name.get(digit, '') + '천'
|
321 |
-
name = name.replace('일천', '천')
|
322 |
-
elif i == 4:
|
323 |
-
name = digit2name.get(digit, '') + '만'
|
324 |
-
name = name.replace('일만', '만')
|
325 |
-
elif i == 5:
|
326 |
-
name = digit2name.get(digit, '') + '십'
|
327 |
-
name = name.replace('일십', '십')
|
328 |
-
elif i == 6:
|
329 |
-
name = digit2name.get(digit, '') + '백'
|
330 |
-
name = name.replace('일백', '백')
|
331 |
-
elif i == 7:
|
332 |
-
name = digit2name.get(digit, '') + '천'
|
333 |
-
name = name.replace('일천', '천')
|
334 |
-
elif i == 8:
|
335 |
-
name = digit2name.get(digit, '') + '억'
|
336 |
-
elif i == 9:
|
337 |
-
name = digit2name.get(digit, '') + '십'
|
338 |
-
elif i == 10:
|
339 |
-
name = digit2name.get(digit, '') + '백'
|
340 |
-
elif i == 11:
|
341 |
-
name = digit2name.get(digit, '') + '천'
|
342 |
-
elif i == 12:
|
343 |
-
name = digit2name.get(digit, '') + '조'
|
344 |
-
elif i == 13:
|
345 |
-
name = digit2name.get(digit, '') + '십'
|
346 |
-
elif i == 14:
|
347 |
-
name = digit2name.get(digit, '') + '백'
|
348 |
-
elif i == 15:
|
349 |
-
name = digit2name.get(digit, '') + '천'
|
350 |
-
spelledout.append(name)
|
351 |
-
return ''.join(elem for elem in spelledout)
|
352 |
-
|
353 |
-
|
354 |
-
def number_to_hangul(text):
|
355 |
-
'''Reference https://github.com/Kyubyong/g2pK'''
|
356 |
-
tokens = set(re.findall(r'(\d[\d,]*)([\uac00-\ud71f]+)', text))
|
357 |
-
for token in tokens:
|
358 |
-
num, classifier = token
|
359 |
-
if classifier[:2] in _korean_classifiers or classifier[0] in _korean_classifiers:
|
360 |
-
spelledout = hangul_number(num, sino=False)
|
361 |
-
else:
|
362 |
-
spelledout = hangul_number(num, sino=True)
|
363 |
-
text = text.replace(f'{num}{classifier}', f'{spelledout}{classifier}')
|
364 |
-
# digit by digit for remaining digits
|
365 |
-
digits = '0123456789'
|
366 |
-
names = '영일이삼사오육칠팔구'
|
367 |
-
for d, n in zip(digits, names):
|
368 |
-
text = text.replace(d, n)
|
369 |
-
return text
|
370 |
-
|
371 |
-
|
372 |
-
def number_to_chinese(text):
|
373 |
-
numbers = re.findall(r'\d+(?:\.?\d+)?', text)
|
374 |
-
for number in numbers:
|
375 |
-
text = text.replace(number, cn2an.an2cn(number),1)
|
376 |
-
return text
|
377 |
-
|
378 |
-
|
379 |
-
def chinese_to_bopomofo(text):
|
380 |
-
text=text.replace('、',',').replace(';',',').replace(':',',')
|
381 |
-
words=jieba.lcut(text,cut_all=False)
|
382 |
-
text=''
|
383 |
-
for word in words:
|
384 |
-
bopomofos=lazy_pinyin(word,BOPOMOFO)
|
385 |
-
if not re.search('[\u4e00-\u9fff]',word):
|
386 |
-
text+=word
|
387 |
-
continue
|
388 |
-
for i in range(len(bopomofos)):
|
389 |
-
if re.match('[\u3105-\u3129]',bopomofos[i][-1]):
|
390 |
-
bopomofos[i]+='ˉ'
|
391 |
-
if text!='':
|
392 |
-
text+=' '
|
393 |
-
text+=''.join(bopomofos)
|
394 |
-
return text
|
395 |
-
|
396 |
-
|
397 |
-
def latin_to_bopomofo(text):
|
398 |
-
for regex, replacement in _latin_to_bopomofo:
|
399 |
-
text = re.sub(regex, replacement, text)
|
400 |
-
return text
|
401 |
-
|
402 |
-
|
403 |
-
def bopomofo_to_romaji(text):
|
404 |
-
for regex, replacement in _bopomofo_to_romaji:
|
405 |
-
text = re.sub(regex, replacement, text)
|
406 |
-
return text
|
407 |
-
|
408 |
-
|
409 |
-
def basic_cleaners(text):
|
410 |
-
'''Basic pipeline that lowercases and collapses whitespace without transliteration.'''
|
411 |
-
text = lowercase(text)
|
412 |
-
text = collapse_whitespace(text)
|
413 |
-
return text
|
414 |
-
|
415 |
-
|
416 |
-
def transliteration_cleaners(text):
|
417 |
-
'''Pipeline for non-English text that transliterates to ASCII.'''
|
418 |
-
text = convert_to_ascii(text)
|
419 |
-
text = lowercase(text)
|
420 |
-
text = collapse_whitespace(text)
|
421 |
-
return text
|
422 |
-
|
423 |
-
|
424 |
-
def japanese_cleaners(text):
|
425 |
-
text=japanese_to_romaji_with_accent(text)
|
426 |
-
if re.match('[A-Za-z]',text[-1]):
|
427 |
-
text += '.'
|
428 |
-
return text
|
429 |
-
|
430 |
-
|
431 |
-
def japanese_cleaners2(text):
|
432 |
-
return japanese_cleaners(text).replace('ts','ʦ').replace('...','…')
|
433 |
-
|
434 |
-
|
435 |
-
def korean_cleaners(text):
|
436 |
-
'''Pipeline for Korean text'''
|
437 |
-
text = latin_to_hangul(text)
|
438 |
-
text = number_to_hangul(text)
|
439 |
-
text = j2hcj(h2j(text))
|
440 |
-
text = divide_hangul(text)
|
441 |
-
if re.match('[\u3131-\u3163]',text[-1]):
|
442 |
-
text += '.'
|
443 |
-
return text
|
444 |
-
|
445 |
-
|
446 |
-
def chinese_cleaners(text):
|
447 |
-
'''Pipeline for Chinese text'''
|
448 |
-
text=number_to_chinese(text)
|
449 |
-
text=chinese_to_bopomofo(text)
|
450 |
-
text=latin_to_bopomofo(text)
|
451 |
-
if re.match('[ˉˊˇˋ˙]',text[-1]):
|
452 |
-
text += '。'
|
453 |
-
return text
|
454 |
-
|
455 |
-
|
456 |
-
def zh_ja_mixture_cleaners(text):
|
457 |
-
chinese_texts=re.findall(r'\[ZH\].*?\[ZH\]',text)
|
458 |
-
japanese_texts=re.findall(r'\[JA\].*?\[JA\]',text)
|
459 |
-
for chinese_text in chinese_texts:
|
460 |
-
cleaned_text=number_to_chinese(chinese_text[4:-4])
|
461 |
-
cleaned_text=chinese_to_bopomofo(cleaned_text)
|
462 |
-
cleaned_text=latin_to_bopomofo(cleaned_text)
|
463 |
-
cleaned_text=bopomofo_to_romaji(cleaned_text)
|
464 |
-
cleaned_text=re.sub('i[aoe]',lambda x:'y'+x.group(0)[1:],cleaned_text)
|
465 |
-
cleaned_text=re.sub('u[aoəe]',lambda x:'w'+x.group(0)[1:],cleaned_text)
|
466 |
-
cleaned_text=re.sub('([ʦsɹ]`[⁼ʰ]?)([→↓↑]+)',lambda x:x.group(1)+'ɹ`'+x.group(2),cleaned_text).replace('ɻ','ɹ`')
|
467 |
-
cleaned_text=re.sub('([ʦs][⁼ʰ]?)([→↓↑]+)',lambda x:x.group(1)+'ɹ'+x.group(2),cleaned_text)
|
468 |
-
text = text.replace(chinese_text,cleaned_text+' ',1)
|
469 |
-
for japanese_text in japanese_texts:
|
470 |
-
cleaned_text=japanese_to_romaji_with_accent(japanese_text[4:-4]).replace('ts','ʦ').replace('u','ɯ').replace('...','…')
|
471 |
-
text = text.replace(japanese_text,cleaned_text+' ',1)
|
472 |
-
text=text[:-1]
|
473 |
-
if len(text) and re.match('[A-Za-zɯɹəɥ→↓↑]',text[-1]):
|
474 |
-
text += '.'
|
475 |
-
return text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AI-Hobbyist/Hoyo-RVC/config.py
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
import argparse
|
2 |
-
import torch
|
3 |
-
from multiprocessing import cpu_count
|
4 |
-
|
5 |
-
|
6 |
-
def config_file_change_fp32():
|
7 |
-
for config_file in ["32k.json", "40k.json", "48k.json"]:
|
8 |
-
with open(f"configs/{config_file}", "r") as f:
|
9 |
-
strr = f.read().replace("true", "false")
|
10 |
-
with open(f"configs/{config_file}", "w") as f:
|
11 |
-
f.write(strr)
|
12 |
-
with open("trainset_preprocess_pipeline_print.py", "r") as f:
|
13 |
-
strr = f.read().replace("3.7", "3.0")
|
14 |
-
with open("trainset_preprocess_pipeline_print.py", "w") as f:
|
15 |
-
f.write(strr)
|
16 |
-
|
17 |
-
|
18 |
-
class Config:
|
19 |
-
def __init__(self):
|
20 |
-
self.device = "cuda:0"
|
21 |
-
self.is_half = True
|
22 |
-
self.n_cpu = 0
|
23 |
-
self.gpu_name = None
|
24 |
-
self.gpu_mem = None
|
25 |
-
(
|
26 |
-
self.python_cmd,
|
27 |
-
self.listen_port,
|
28 |
-
self.iscolab,
|
29 |
-
self.noparallel,
|
30 |
-
self.noautoopen,
|
31 |
-
) = self.arg_parse()
|
32 |
-
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
|
33 |
-
|
34 |
-
@staticmethod
|
35 |
-
def arg_parse() -> tuple:
|
36 |
-
parser = argparse.ArgumentParser()
|
37 |
-
parser.add_argument("--port", type=int, default=7865, help="Listen port")
|
38 |
-
parser.add_argument(
|
39 |
-
"--pycmd", type=str, default="python", help="Python command"
|
40 |
-
)
|
41 |
-
parser.add_argument("--colab", action="store_true", help="Launch in colab")
|
42 |
-
parser.add_argument(
|
43 |
-
"--noparallel", action="store_true", help="Disable parallel processing"
|
44 |
-
)
|
45 |
-
parser.add_argument(
|
46 |
-
"--noautoopen",
|
47 |
-
action="store_true",
|
48 |
-
help="Do not open in browser automatically",
|
49 |
-
)
|
50 |
-
cmd_opts = parser.parse_args()
|
51 |
-
|
52 |
-
cmd_opts.port = cmd_opts.port if 0 <= cmd_opts.port <= 65535 else 7865
|
53 |
-
|
54 |
-
return (
|
55 |
-
cmd_opts.pycmd,
|
56 |
-
cmd_opts.port,
|
57 |
-
cmd_opts.colab,
|
58 |
-
cmd_opts.noparallel,
|
59 |
-
cmd_opts.noautoopen,
|
60 |
-
)
|
61 |
-
|
62 |
-
def device_config(self) -> tuple:
|
63 |
-
if torch.cuda.is_available():
|
64 |
-
i_device = int(self.device.split(":")[-1])
|
65 |
-
self.gpu_name = torch.cuda.get_device_name(i_device)
|
66 |
-
if (
|
67 |
-
("16" in self.gpu_name and "V100" not in self.gpu_name.upper())
|
68 |
-
or "P40" in self.gpu_name.upper()
|
69 |
-
or "1060" in self.gpu_name
|
70 |
-
or "1070" in self.gpu_name
|
71 |
-
or "1080" in self.gpu_name
|
72 |
-
):
|
73 |
-
print("16系/10系显卡和P40强制单精度")
|
74 |
-
self.is_half = False
|
75 |
-
config_file_change_fp32()
|
76 |
-
else:
|
77 |
-
self.gpu_name = None
|
78 |
-
self.gpu_mem = int(
|
79 |
-
torch.cuda.get_device_properties(i_device).total_memory
|
80 |
-
/ 1024
|
81 |
-
/ 1024
|
82 |
-
/ 1024
|
83 |
-
+ 0.4
|
84 |
-
)
|
85 |
-
if self.gpu_mem <= 4:
|
86 |
-
with open("trainset_preprocess_pipeline_print.py", "r") as f:
|
87 |
-
strr = f.read().replace("3.7", "3.0")
|
88 |
-
with open("trainset_preprocess_pipeline_print.py", "w") as f:
|
89 |
-
f.write(strr)
|
90 |
-
elif torch.backends.mps.is_available():
|
91 |
-
print("没有发现支持的N卡, 使用MPS进行推理")
|
92 |
-
self.device = "mps"
|
93 |
-
self.is_half = False
|
94 |
-
config_file_change_fp32()
|
95 |
-
else:
|
96 |
-
print("没有发现支持的N卡, 使用CPU进行推理")
|
97 |
-
self.device = "cpu"
|
98 |
-
self.is_half = False
|
99 |
-
config_file_change_fp32()
|
100 |
-
|
101 |
-
if self.n_cpu == 0:
|
102 |
-
self.n_cpu = cpu_count()
|
103 |
-
|
104 |
-
if self.is_half:
|
105 |
-
# 6G显存配置
|
106 |
-
x_pad = 3
|
107 |
-
x_query = 10
|
108 |
-
x_center = 60
|
109 |
-
x_max = 65
|
110 |
-
else:
|
111 |
-
# 5G显存配置
|
112 |
-
x_pad = 1
|
113 |
-
x_query = 6
|
114 |
-
x_center = 38
|
115 |
-
x_max = 41
|
116 |
-
|
117 |
-
if self.gpu_mem != None and self.gpu_mem <= 4:
|
118 |
-
x_pad = 1
|
119 |
-
x_query = 5
|
120 |
-
x_center = 30
|
121 |
-
x_max = 32
|
122 |
-
|
123 |
-
return x_pad, x_query, x_center, x_max
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIConsultant/MusicGen/tests/losses/test_losses.py
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2 |
-
# All rights reserved.
|
3 |
-
#
|
4 |
-
# This source code is licensed under the license found in the
|
5 |
-
# LICENSE file in the root directory of this source tree.
|
6 |
-
|
7 |
-
import random
|
8 |
-
|
9 |
-
import torch
|
10 |
-
|
11 |
-
from audiocraft.losses import (
|
12 |
-
MelSpectrogramL1Loss,
|
13 |
-
MultiScaleMelSpectrogramLoss,
|
14 |
-
MRSTFTLoss,
|
15 |
-
SISNR,
|
16 |
-
STFTLoss,
|
17 |
-
)
|
18 |
-
|
19 |
-
|
20 |
-
def test_mel_l1_loss():
|
21 |
-
N, C, T = 2, 2, random.randrange(1000, 100_000)
|
22 |
-
t1 = torch.randn(N, C, T)
|
23 |
-
t2 = torch.randn(N, C, T)
|
24 |
-
|
25 |
-
mel_l1 = MelSpectrogramL1Loss(sample_rate=22_050)
|
26 |
-
loss = mel_l1(t1, t2)
|
27 |
-
loss_same = mel_l1(t1, t1)
|
28 |
-
|
29 |
-
assert isinstance(loss, torch.Tensor)
|
30 |
-
assert isinstance(loss_same, torch.Tensor)
|
31 |
-
assert loss_same.item() == 0.0
|
32 |
-
|
33 |
-
|
34 |
-
def test_msspec_loss():
|
35 |
-
N, C, T = 2, 2, random.randrange(1000, 100_000)
|
36 |
-
t1 = torch.randn(N, C, T)
|
37 |
-
t2 = torch.randn(N, C, T)
|
38 |
-
|
39 |
-
msspec = MultiScaleMelSpectrogramLoss(sample_rate=22_050)
|
40 |
-
loss = msspec(t1, t2)
|
41 |
-
loss_same = msspec(t1, t1)
|
42 |
-
|
43 |
-
assert isinstance(loss, torch.Tensor)
|
44 |
-
assert isinstance(loss_same, torch.Tensor)
|
45 |
-
assert loss_same.item() == 0.0
|
46 |
-
|
47 |
-
|
48 |
-
def test_mrstft_loss():
|
49 |
-
N, C, T = 2, 2, random.randrange(1000, 100_000)
|
50 |
-
t1 = torch.randn(N, C, T)
|
51 |
-
t2 = torch.randn(N, C, T)
|
52 |
-
|
53 |
-
mrstft = MRSTFTLoss()
|
54 |
-
loss = mrstft(t1, t2)
|
55 |
-
|
56 |
-
assert isinstance(loss, torch.Tensor)
|
57 |
-
|
58 |
-
|
59 |
-
def test_sisnr_loss():
|
60 |
-
N, C, T = 2, 2, random.randrange(1000, 100_000)
|
61 |
-
t1 = torch.randn(N, C, T)
|
62 |
-
t2 = torch.randn(N, C, T)
|
63 |
-
|
64 |
-
sisnr = SISNR()
|
65 |
-
loss = sisnr(t1, t2)
|
66 |
-
|
67 |
-
assert isinstance(loss, torch.Tensor)
|
68 |
-
|
69 |
-
|
70 |
-
def test_stft_loss():
|
71 |
-
N, C, T = 2, 2, random.randrange(1000, 100_000)
|
72 |
-
t1 = torch.randn(N, C, T)
|
73 |
-
t2 = torch.randn(N, C, T)
|
74 |
-
|
75 |
-
mrstft = STFTLoss()
|
76 |
-
loss = mrstft(t1, t2)
|
77 |
-
|
78 |
-
assert isinstance(loss, torch.Tensor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIFILMS/audioldm-text-to-audio-generation/audioldm/latent_diffusion/ddim.py
DELETED
@@ -1,377 +0,0 @@
|
|
1 |
-
"""SAMPLING ONLY."""
|
2 |
-
|
3 |
-
import torch
|
4 |
-
import numpy as np
|
5 |
-
from tqdm import tqdm
|
6 |
-
|
7 |
-
from audioldm.latent_diffusion.util import (
|
8 |
-
make_ddim_sampling_parameters,
|
9 |
-
make_ddim_timesteps,
|
10 |
-
noise_like,
|
11 |
-
extract_into_tensor,
|
12 |
-
)
|
13 |
-
import gradio as gr
|
14 |
-
|
15 |
-
class DDIMSampler(object):
|
16 |
-
def __init__(self, model, schedule="linear", **kwargs):
|
17 |
-
super().__init__()
|
18 |
-
self.model = model
|
19 |
-
self.ddpm_num_timesteps = model.num_timesteps
|
20 |
-
self.schedule = schedule
|
21 |
-
|
22 |
-
def register_buffer(self, name, attr):
|
23 |
-
if type(attr) == torch.Tensor:
|
24 |
-
if attr.device != torch.device("cuda"):
|
25 |
-
attr = attr.to(torch.device("cuda"))
|
26 |
-
setattr(self, name, attr)
|
27 |
-
|
28 |
-
def make_schedule(
|
29 |
-
self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0.0, verbose=True
|
30 |
-
):
|
31 |
-
self.ddim_timesteps = make_ddim_timesteps(
|
32 |
-
ddim_discr_method=ddim_discretize,
|
33 |
-
num_ddim_timesteps=ddim_num_steps,
|
34 |
-
num_ddpm_timesteps=self.ddpm_num_timesteps,
|
35 |
-
verbose=verbose,
|
36 |
-
)
|
37 |
-
alphas_cumprod = self.model.alphas_cumprod
|
38 |
-
assert (
|
39 |
-
alphas_cumprod.shape[0] == self.ddpm_num_timesteps
|
40 |
-
), "alphas have to be defined for each timestep"
|
41 |
-
to_torch = lambda x: x.clone().detach().to(torch.float32).to(self.model.device)
|
42 |
-
|
43 |
-
self.register_buffer("betas", to_torch(self.model.betas))
|
44 |
-
self.register_buffer("alphas_cumprod", to_torch(alphas_cumprod))
|
45 |
-
self.register_buffer(
|
46 |
-
"alphas_cumprod_prev", to_torch(self.model.alphas_cumprod_prev)
|
47 |
-
)
|
48 |
-
|
49 |
-
# calculations for diffusion q(x_t | x_{t-1}) and others
|
50 |
-
self.register_buffer(
|
51 |
-
"sqrt_alphas_cumprod", to_torch(np.sqrt(alphas_cumprod.cpu()))
|
52 |
-
)
|
53 |
-
self.register_buffer(
|
54 |
-
"sqrt_one_minus_alphas_cumprod",
|
55 |
-
to_torch(np.sqrt(1.0 - alphas_cumprod.cpu())),
|
56 |
-
)
|
57 |
-
self.register_buffer(
|
58 |
-
"log_one_minus_alphas_cumprod", to_torch(np.log(1.0 - alphas_cumprod.cpu()))
|
59 |
-
)
|
60 |
-
self.register_buffer(
|
61 |
-
"sqrt_recip_alphas_cumprod", to_torch(np.sqrt(1.0 / alphas_cumprod.cpu()))
|
62 |
-
)
|
63 |
-
self.register_buffer(
|
64 |
-
"sqrt_recipm1_alphas_cumprod",
|
65 |
-
to_torch(np.sqrt(1.0 / alphas_cumprod.cpu() - 1)),
|
66 |
-
)
|
67 |
-
|
68 |
-
# ddim sampling parameters
|
69 |
-
ddim_sigmas, ddim_alphas, ddim_alphas_prev = make_ddim_sampling_parameters(
|
70 |
-
alphacums=alphas_cumprod.cpu(),
|
71 |
-
ddim_timesteps=self.ddim_timesteps,
|
72 |
-
eta=ddim_eta,
|
73 |
-
verbose=verbose,
|
74 |
-
)
|
75 |
-
self.register_buffer("ddim_sigmas", ddim_sigmas)
|
76 |
-
self.register_buffer("ddim_alphas", ddim_alphas)
|
77 |
-
self.register_buffer("ddim_alphas_prev", ddim_alphas_prev)
|
78 |
-
self.register_buffer("ddim_sqrt_one_minus_alphas", np.sqrt(1.0 - ddim_alphas))
|
79 |
-
sigmas_for_original_sampling_steps = ddim_eta * torch.sqrt(
|
80 |
-
(1 - self.alphas_cumprod_prev)
|
81 |
-
/ (1 - self.alphas_cumprod)
|
82 |
-
* (1 - self.alphas_cumprod / self.alphas_cumprod_prev)
|
83 |
-
)
|
84 |
-
self.register_buffer(
|
85 |
-
"ddim_sigmas_for_original_num_steps", sigmas_for_original_sampling_steps
|
86 |
-
)
|
87 |
-
|
88 |
-
@torch.no_grad()
|
89 |
-
def sample(
|
90 |
-
self,
|
91 |
-
S,
|
92 |
-
batch_size,
|
93 |
-
shape,
|
94 |
-
conditioning=None,
|
95 |
-
callback=None,
|
96 |
-
normals_sequence=None,
|
97 |
-
img_callback=None,
|
98 |
-
quantize_x0=False,
|
99 |
-
eta=0.0,
|
100 |
-
mask=None,
|
101 |
-
x0=None,
|
102 |
-
temperature=1.0,
|
103 |
-
noise_dropout=0.0,
|
104 |
-
score_corrector=None,
|
105 |
-
corrector_kwargs=None,
|
106 |
-
verbose=True,
|
107 |
-
x_T=None,
|
108 |
-
log_every_t=100,
|
109 |
-
unconditional_guidance_scale=1.0,
|
110 |
-
unconditional_conditioning=None,
|
111 |
-
# this has to come in the same format as the conditioning, # e.g. as encoded tokens, ...
|
112 |
-
**kwargs,
|
113 |
-
):
|
114 |
-
if conditioning is not None:
|
115 |
-
if isinstance(conditioning, dict):
|
116 |
-
cbs = conditioning[list(conditioning.keys())[0]].shape[0]
|
117 |
-
if cbs != batch_size:
|
118 |
-
print(
|
119 |
-
f"Warning: Got {cbs} conditionings but batch-size is {batch_size}"
|
120 |
-
)
|
121 |
-
else:
|
122 |
-
if conditioning.shape[0] != batch_size:
|
123 |
-
print(
|
124 |
-
f"Warning: Got {conditioning.shape[0]} conditionings but batch-size is {batch_size}"
|
125 |
-
)
|
126 |
-
|
127 |
-
self.make_schedule(ddim_num_steps=S, ddim_eta=eta, verbose=verbose)
|
128 |
-
# sampling
|
129 |
-
C, H, W = shape
|
130 |
-
size = (batch_size, C, H, W)
|
131 |
-
samples, intermediates = self.ddim_sampling(
|
132 |
-
conditioning,
|
133 |
-
size,
|
134 |
-
callback=callback,
|
135 |
-
img_callback=img_callback,
|
136 |
-
quantize_denoised=quantize_x0,
|
137 |
-
mask=mask,
|
138 |
-
x0=x0,
|
139 |
-
ddim_use_original_steps=False,
|
140 |
-
noise_dropout=noise_dropout,
|
141 |
-
temperature=temperature,
|
142 |
-
score_corrector=score_corrector,
|
143 |
-
corrector_kwargs=corrector_kwargs,
|
144 |
-
x_T=x_T,
|
145 |
-
log_every_t=log_every_t,
|
146 |
-
unconditional_guidance_scale=unconditional_guidance_scale,
|
147 |
-
unconditional_conditioning=unconditional_conditioning,
|
148 |
-
)
|
149 |
-
return samples, intermediates
|
150 |
-
|
151 |
-
@torch.no_grad()
|
152 |
-
def ddim_sampling(
|
153 |
-
self,
|
154 |
-
cond,
|
155 |
-
shape,
|
156 |
-
x_T=None,
|
157 |
-
ddim_use_original_steps=False,
|
158 |
-
callback=None,
|
159 |
-
timesteps=None,
|
160 |
-
quantize_denoised=False,
|
161 |
-
mask=None,
|
162 |
-
x0=None,
|
163 |
-
img_callback=None,
|
164 |
-
log_every_t=100,
|
165 |
-
temperature=1.0,
|
166 |
-
noise_dropout=0.0,
|
167 |
-
score_corrector=None,
|
168 |
-
corrector_kwargs=None,
|
169 |
-
unconditional_guidance_scale=1.0,
|
170 |
-
unconditional_conditioning=None,
|
171 |
-
):
|
172 |
-
device = self.model.betas.device
|
173 |
-
b = shape[0]
|
174 |
-
if x_T is None:
|
175 |
-
img = torch.randn(shape, device=device)
|
176 |
-
else:
|
177 |
-
img = x_T
|
178 |
-
|
179 |
-
if timesteps is None:
|
180 |
-
timesteps = (
|
181 |
-
self.ddpm_num_timesteps
|
182 |
-
if ddim_use_original_steps
|
183 |
-
else self.ddim_timesteps
|
184 |
-
)
|
185 |
-
elif timesteps is not None and not ddim_use_original_steps:
|
186 |
-
subset_end = (
|
187 |
-
int(
|
188 |
-
min(timesteps / self.ddim_timesteps.shape[0], 1)
|
189 |
-
* self.ddim_timesteps.shape[0]
|
190 |
-
)
|
191 |
-
- 1
|
192 |
-
)
|
193 |
-
timesteps = self.ddim_timesteps[:subset_end]
|
194 |
-
|
195 |
-
intermediates = {"x_inter": [img], "pred_x0": [img]}
|
196 |
-
time_range = (
|
197 |
-
reversed(range(0, timesteps))
|
198 |
-
if ddim_use_original_steps
|
199 |
-
else np.flip(timesteps)
|
200 |
-
)
|
201 |
-
total_steps = timesteps if ddim_use_original_steps else timesteps.shape[0]
|
202 |
-
# print(f"Running DDIM Sampling with {total_steps} timesteps")
|
203 |
-
|
204 |
-
# iterator = gr.Progress().tqdm(time_range, desc="DDIM Sampler", total=total_steps)
|
205 |
-
iterator = tqdm(time_range, desc="DDIM Sampler", total=total_steps)
|
206 |
-
|
207 |
-
for i, step in enumerate(iterator):
|
208 |
-
index = total_steps - i - 1
|
209 |
-
ts = torch.full((b,), step, device=device, dtype=torch.long)
|
210 |
-
if mask is not None:
|
211 |
-
assert x0 is not None
|
212 |
-
img_orig = self.model.q_sample(
|
213 |
-
x0, ts
|
214 |
-
) # TODO deterministic forward pass?
|
215 |
-
img = (
|
216 |
-
img_orig * mask + (1.0 - mask) * img
|
217 |
-
) # In the first sampling step, img is pure gaussian noise
|
218 |
-
|
219 |
-
outs = self.p_sample_ddim(
|
220 |
-
img,
|
221 |
-
cond,
|
222 |
-
ts,
|
223 |
-
index=index,
|
224 |
-
use_original_steps=ddim_use_original_steps,
|
225 |
-
quantize_denoised=quantize_denoised,
|
226 |
-
temperature=temperature,
|
227 |
-
noise_dropout=noise_dropout,
|
228 |
-
score_corrector=score_corrector,
|
229 |
-
corrector_kwargs=corrector_kwargs,
|
230 |
-
unconditional_guidance_scale=unconditional_guidance_scale,
|
231 |
-
unconditional_conditioning=unconditional_conditioning,
|
232 |
-
)
|
233 |
-
img, pred_x0 = outs
|
234 |
-
if callback:
|
235 |
-
callback(i)
|
236 |
-
if img_callback:
|
237 |
-
img_callback(pred_x0, i)
|
238 |
-
|
239 |
-
if index % log_every_t == 0 or index == total_steps - 1:
|
240 |
-
intermediates["x_inter"].append(img)
|
241 |
-
intermediates["pred_x0"].append(pred_x0)
|
242 |
-
|
243 |
-
return img, intermediates
|
244 |
-
|
245 |
-
@torch.no_grad()
|
246 |
-
def stochastic_encode(self, x0, t, use_original_steps=False, noise=None):
|
247 |
-
# fast, but does not allow for exact reconstruction
|
248 |
-
# t serves as an index to gather the correct alphas
|
249 |
-
if use_original_steps:
|
250 |
-
sqrt_alphas_cumprod = self.sqrt_alphas_cumprod
|
251 |
-
sqrt_one_minus_alphas_cumprod = self.sqrt_one_minus_alphas_cumprod
|
252 |
-
else:
|
253 |
-
sqrt_alphas_cumprod = torch.sqrt(self.ddim_alphas)
|
254 |
-
sqrt_one_minus_alphas_cumprod = self.ddim_sqrt_one_minus_alphas
|
255 |
-
|
256 |
-
if noise is None:
|
257 |
-
noise = torch.randn_like(x0)
|
258 |
-
|
259 |
-
return (
|
260 |
-
extract_into_tensor(sqrt_alphas_cumprod, t, x0.shape) * x0
|
261 |
-
+ extract_into_tensor(sqrt_one_minus_alphas_cumprod, t, x0.shape) * noise
|
262 |
-
)
|
263 |
-
|
264 |
-
@torch.no_grad()
|
265 |
-
def decode(
|
266 |
-
self,
|
267 |
-
x_latent,
|
268 |
-
cond,
|
269 |
-
t_start,
|
270 |
-
unconditional_guidance_scale=1.0,
|
271 |
-
unconditional_conditioning=None,
|
272 |
-
use_original_steps=False,
|
273 |
-
):
|
274 |
-
|
275 |
-
timesteps = (
|
276 |
-
np.arange(self.ddpm_num_timesteps)
|
277 |
-
if use_original_steps
|
278 |
-
else self.ddim_timesteps
|
279 |
-
)
|
280 |
-
timesteps = timesteps[:t_start]
|
281 |
-
|
282 |
-
time_range = np.flip(timesteps)
|
283 |
-
total_steps = timesteps.shape[0]
|
284 |
-
# print(f"Running DDIM Sampling with {total_steps} timesteps")
|
285 |
-
|
286 |
-
# iterator = gr.Progress().tqdm(time_range, desc="Decoding image", total=total_steps)
|
287 |
-
iterator = tqdm(time_range, desc="Decoding image", total=total_steps)
|
288 |
-
x_dec = x_latent
|
289 |
-
|
290 |
-
for i, step in enumerate(iterator):
|
291 |
-
index = total_steps - i - 1
|
292 |
-
ts = torch.full(
|
293 |
-
(x_latent.shape[0],), step, device=x_latent.device, dtype=torch.long
|
294 |
-
)
|
295 |
-
x_dec, _ = self.p_sample_ddim(
|
296 |
-
x_dec,
|
297 |
-
cond,
|
298 |
-
ts,
|
299 |
-
index=index,
|
300 |
-
use_original_steps=use_original_steps,
|
301 |
-
unconditional_guidance_scale=unconditional_guidance_scale,
|
302 |
-
unconditional_conditioning=unconditional_conditioning,
|
303 |
-
)
|
304 |
-
return x_dec
|
305 |
-
|
306 |
-
@torch.no_grad()
|
307 |
-
def p_sample_ddim(
|
308 |
-
self,
|
309 |
-
x,
|
310 |
-
c,
|
311 |
-
t,
|
312 |
-
index,
|
313 |
-
repeat_noise=False,
|
314 |
-
use_original_steps=False,
|
315 |
-
quantize_denoised=False,
|
316 |
-
temperature=1.0,
|
317 |
-
noise_dropout=0.0,
|
318 |
-
score_corrector=None,
|
319 |
-
corrector_kwargs=None,
|
320 |
-
unconditional_guidance_scale=1.0,
|
321 |
-
unconditional_conditioning=None,
|
322 |
-
):
|
323 |
-
b, *_, device = *x.shape, x.device
|
324 |
-
|
325 |
-
if unconditional_conditioning is None or unconditional_guidance_scale == 1.0:
|
326 |
-
e_t = self.model.apply_model(x, t, c)
|
327 |
-
else:
|
328 |
-
x_in = torch.cat([x] * 2)
|
329 |
-
t_in = torch.cat([t] * 2)
|
330 |
-
c_in = torch.cat([unconditional_conditioning, c])
|
331 |
-
e_t_uncond, e_t = self.model.apply_model(x_in, t_in, c_in).chunk(2)
|
332 |
-
# When unconditional_guidance_scale == 1: only e_t
|
333 |
-
# When unconditional_guidance_scale == 0: only unconditional
|
334 |
-
# When unconditional_guidance_scale > 1: add more unconditional guidance
|
335 |
-
e_t = e_t_uncond + unconditional_guidance_scale * (e_t - e_t_uncond)
|
336 |
-
|
337 |
-
if score_corrector is not None:
|
338 |
-
assert self.model.parameterization == "eps"
|
339 |
-
e_t = score_corrector.modify_score(
|
340 |
-
self.model, e_t, x, t, c, **corrector_kwargs
|
341 |
-
)
|
342 |
-
|
343 |
-
alphas = self.model.alphas_cumprod if use_original_steps else self.ddim_alphas
|
344 |
-
alphas_prev = (
|
345 |
-
self.model.alphas_cumprod_prev
|
346 |
-
if use_original_steps
|
347 |
-
else self.ddim_alphas_prev
|
348 |
-
)
|
349 |
-
sqrt_one_minus_alphas = (
|
350 |
-
self.model.sqrt_one_minus_alphas_cumprod
|
351 |
-
if use_original_steps
|
352 |
-
else self.ddim_sqrt_one_minus_alphas
|
353 |
-
)
|
354 |
-
sigmas = (
|
355 |
-
self.model.ddim_sigmas_for_original_num_steps
|
356 |
-
if use_original_steps
|
357 |
-
else self.ddim_sigmas
|
358 |
-
)
|
359 |
-
# select parameters corresponding to the currently considered timestep
|
360 |
-
a_t = torch.full((b, 1, 1, 1), alphas[index], device=device)
|
361 |
-
a_prev = torch.full((b, 1, 1, 1), alphas_prev[index], device=device)
|
362 |
-
sigma_t = torch.full((b, 1, 1, 1), sigmas[index], device=device)
|
363 |
-
sqrt_one_minus_at = torch.full(
|
364 |
-
(b, 1, 1, 1), sqrt_one_minus_alphas[index], device=device
|
365 |
-
)
|
366 |
-
|
367 |
-
# current prediction for x_0
|
368 |
-
pred_x0 = (x - sqrt_one_minus_at * e_t) / a_t.sqrt()
|
369 |
-
if quantize_denoised:
|
370 |
-
pred_x0, _, *_ = self.model.first_stage_model.quantize(pred_x0)
|
371 |
-
# direction pointing to x_t
|
372 |
-
dir_xt = (1.0 - a_prev - sigma_t**2).sqrt() * e_t
|
373 |
-
noise = sigma_t * noise_like(x.shape, device, repeat_noise) * temperature
|
374 |
-
if noise_dropout > 0.0:
|
375 |
-
noise = torch.nn.functional.dropout(noise, p=noise_dropout)
|
376 |
-
x_prev = a_prev.sqrt() * pred_x0 + dir_xt + noise # TODO
|
377 |
-
return x_prev, pred_x0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/NeuralSeq/utils/cwt.py
DELETED
@@ -1,146 +0,0 @@
|
|
1 |
-
import librosa
|
2 |
-
import numpy as np
|
3 |
-
from pycwt import wavelet
|
4 |
-
from scipy.interpolate import interp1d
|
5 |
-
|
6 |
-
|
7 |
-
def load_wav(wav_file, sr):
|
8 |
-
wav, _ = librosa.load(wav_file, sr=sr, mono=True)
|
9 |
-
return wav
|
10 |
-
|
11 |
-
|
12 |
-
def convert_continuos_f0(f0):
|
13 |
-
'''CONVERT F0 TO CONTINUOUS F0
|
14 |
-
Args:
|
15 |
-
f0 (ndarray): original f0 sequence with the shape (T)
|
16 |
-
Return:
|
17 |
-
(ndarray): continuous f0 with the shape (T)
|
18 |
-
'''
|
19 |
-
# get uv information as binary
|
20 |
-
f0 = np.copy(f0)
|
21 |
-
uv = np.float32(f0 != 0)
|
22 |
-
|
23 |
-
# get start and end of f0
|
24 |
-
if (f0 == 0).all():
|
25 |
-
print("| all of the f0 values are 0.")
|
26 |
-
return uv, f0
|
27 |
-
start_f0 = f0[f0 != 0][0]
|
28 |
-
end_f0 = f0[f0 != 0][-1]
|
29 |
-
|
30 |
-
# padding start and end of f0 sequence
|
31 |
-
start_idx = np.where(f0 == start_f0)[0][0]
|
32 |
-
end_idx = np.where(f0 == end_f0)[0][-1]
|
33 |
-
f0[:start_idx] = start_f0
|
34 |
-
f0[end_idx:] = end_f0
|
35 |
-
|
36 |
-
# get non-zero frame index
|
37 |
-
nz_frames = np.where(f0 != 0)[0]
|
38 |
-
|
39 |
-
# perform linear interpolation
|
40 |
-
f = interp1d(nz_frames, f0[nz_frames])
|
41 |
-
cont_f0 = f(np.arange(0, f0.shape[0]))
|
42 |
-
|
43 |
-
return uv, cont_f0
|
44 |
-
|
45 |
-
|
46 |
-
def get_cont_lf0(f0, frame_period=5.0):
|
47 |
-
uv, cont_f0_lpf = convert_continuos_f0(f0)
|
48 |
-
# cont_f0_lpf = low_pass_filter(cont_f0_lpf, int(1.0 / (frame_period * 0.001)), cutoff=20)
|
49 |
-
cont_lf0_lpf = np.log(cont_f0_lpf)
|
50 |
-
return uv, cont_lf0_lpf
|
51 |
-
|
52 |
-
|
53 |
-
def get_lf0_cwt(lf0):
|
54 |
-
'''
|
55 |
-
input:
|
56 |
-
signal of shape (N)
|
57 |
-
output:
|
58 |
-
Wavelet_lf0 of shape(10, N), scales of shape(10)
|
59 |
-
'''
|
60 |
-
mother = wavelet.MexicanHat()
|
61 |
-
dt = 0.005
|
62 |
-
dj = 1
|
63 |
-
s0 = dt * 2
|
64 |
-
J = 9
|
65 |
-
|
66 |
-
Wavelet_lf0, scales, _, _, _, _ = wavelet.cwt(np.squeeze(lf0), dt, dj, s0, J, mother)
|
67 |
-
# Wavelet.shape => (J + 1, len(lf0))
|
68 |
-
Wavelet_lf0 = np.real(Wavelet_lf0).T
|
69 |
-
return Wavelet_lf0, scales
|
70 |
-
|
71 |
-
|
72 |
-
def norm_scale(Wavelet_lf0):
|
73 |
-
Wavelet_lf0_norm = np.zeros((Wavelet_lf0.shape[0], Wavelet_lf0.shape[1]))
|
74 |
-
mean = Wavelet_lf0.mean(0)[None, :]
|
75 |
-
std = Wavelet_lf0.std(0)[None, :]
|
76 |
-
Wavelet_lf0_norm = (Wavelet_lf0 - mean) / std
|
77 |
-
return Wavelet_lf0_norm, mean, std
|
78 |
-
|
79 |
-
|
80 |
-
def normalize_cwt_lf0(f0, mean, std):
|
81 |
-
uv, cont_lf0_lpf = get_cont_lf0(f0)
|
82 |
-
cont_lf0_norm = (cont_lf0_lpf - mean) / std
|
83 |
-
Wavelet_lf0, scales = get_lf0_cwt(cont_lf0_norm)
|
84 |
-
Wavelet_lf0_norm, _, _ = norm_scale(Wavelet_lf0)
|
85 |
-
|
86 |
-
return Wavelet_lf0_norm
|
87 |
-
|
88 |
-
|
89 |
-
def get_lf0_cwt_norm(f0s, mean, std):
|
90 |
-
uvs = list()
|
91 |
-
cont_lf0_lpfs = list()
|
92 |
-
cont_lf0_lpf_norms = list()
|
93 |
-
Wavelet_lf0s = list()
|
94 |
-
Wavelet_lf0s_norm = list()
|
95 |
-
scaless = list()
|
96 |
-
|
97 |
-
means = list()
|
98 |
-
stds = list()
|
99 |
-
for f0 in f0s:
|
100 |
-
uv, cont_lf0_lpf = get_cont_lf0(f0)
|
101 |
-
cont_lf0_lpf_norm = (cont_lf0_lpf - mean) / std
|
102 |
-
|
103 |
-
Wavelet_lf0, scales = get_lf0_cwt(cont_lf0_lpf_norm) # [560,10]
|
104 |
-
Wavelet_lf0_norm, mean_scale, std_scale = norm_scale(Wavelet_lf0) # [560,10],[1,10],[1,10]
|
105 |
-
|
106 |
-
Wavelet_lf0s_norm.append(Wavelet_lf0_norm)
|
107 |
-
uvs.append(uv)
|
108 |
-
cont_lf0_lpfs.append(cont_lf0_lpf)
|
109 |
-
cont_lf0_lpf_norms.append(cont_lf0_lpf_norm)
|
110 |
-
Wavelet_lf0s.append(Wavelet_lf0)
|
111 |
-
scaless.append(scales)
|
112 |
-
means.append(mean_scale)
|
113 |
-
stds.append(std_scale)
|
114 |
-
|
115 |
-
return Wavelet_lf0s_norm, scaless, means, stds
|
116 |
-
|
117 |
-
|
118 |
-
def inverse_cwt_torch(Wavelet_lf0, scales):
|
119 |
-
import torch
|
120 |
-
b = ((torch.arange(0, len(scales)).float().to(Wavelet_lf0.device)[None, None, :] + 1 + 2.5) ** (-2.5))
|
121 |
-
lf0_rec = Wavelet_lf0 * b
|
122 |
-
lf0_rec_sum = lf0_rec.sum(-1)
|
123 |
-
lf0_rec_sum = (lf0_rec_sum - lf0_rec_sum.mean(-1, keepdim=True)) / lf0_rec_sum.std(-1, keepdim=True)
|
124 |
-
return lf0_rec_sum
|
125 |
-
|
126 |
-
|
127 |
-
def inverse_cwt(Wavelet_lf0, scales):
|
128 |
-
b = ((np.arange(0, len(scales))[None, None, :] + 1 + 2.5) ** (-2.5))
|
129 |
-
lf0_rec = Wavelet_lf0 * b
|
130 |
-
lf0_rec_sum = lf0_rec.sum(-1)
|
131 |
-
lf0_rec_sum = (lf0_rec_sum - lf0_rec_sum.mean(-1, keepdims=True)) / lf0_rec_sum.std(-1, keepdims=True)
|
132 |
-
return lf0_rec_sum
|
133 |
-
|
134 |
-
|
135 |
-
def cwt2f0(cwt_spec, mean, std, cwt_scales):
|
136 |
-
assert len(mean.shape) == 1 and len(std.shape) == 1 and len(cwt_spec.shape) == 3
|
137 |
-
import torch
|
138 |
-
if isinstance(cwt_spec, torch.Tensor):
|
139 |
-
f0 = inverse_cwt_torch(cwt_spec, cwt_scales)
|
140 |
-
f0 = f0 * std[:, None] + mean[:, None]
|
141 |
-
f0 = f0.exp() # [B, T]
|
142 |
-
else:
|
143 |
-
f0 = inverse_cwt(cwt_spec, cwt_scales)
|
144 |
-
f0 = f0 * std[:, None] + mean[:, None]
|
145 |
-
f0 = np.exp(f0) # [B, T]
|
146 |
-
return f0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/text_to_speech/data_gen/tts/runs/binarize.py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
import utils.commons.single_thread_env # NOQA
|
2 |
-
from text_to_speech.utils.commons.hparams import hparams, set_hparams
|
3 |
-
import importlib
|
4 |
-
|
5 |
-
|
6 |
-
def binarize():
|
7 |
-
binarizer_cls = hparams.get("binarizer_cls", 'data_gen.tts.base_binarizer.BaseBinarizer')
|
8 |
-
pkg = ".".join(binarizer_cls.split(".")[:-1])
|
9 |
-
cls_name = binarizer_cls.split(".")[-1]
|
10 |
-
binarizer_cls = getattr(importlib.import_module(pkg), cls_name)
|
11 |
-
print("| Binarizer: ", binarizer_cls)
|
12 |
-
binarizer_cls().process()
|
13 |
-
|
14 |
-
|
15 |
-
if __name__ == '__main__':
|
16 |
-
set_hparams()
|
17 |
-
binarize()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/text_to_speech/utils/commons/hparams.py
DELETED
@@ -1,131 +0,0 @@
|
|
1 |
-
import argparse
|
2 |
-
import os
|
3 |
-
import yaml
|
4 |
-
|
5 |
-
from text_to_speech.utils.os_utils import remove_file
|
6 |
-
|
7 |
-
global_print_hparams = True
|
8 |
-
hparams = {}
|
9 |
-
|
10 |
-
|
11 |
-
class Args:
|
12 |
-
def __init__(self, **kwargs):
|
13 |
-
for k, v in kwargs.items():
|
14 |
-
self.__setattr__(k, v)
|
15 |
-
|
16 |
-
|
17 |
-
def override_config(old_config: dict, new_config: dict):
|
18 |
-
for k, v in new_config.items():
|
19 |
-
if isinstance(v, dict) and k in old_config:
|
20 |
-
override_config(old_config[k], new_config[k])
|
21 |
-
else:
|
22 |
-
old_config[k] = v
|
23 |
-
|
24 |
-
|
25 |
-
def set_hparams(config='', exp_name='', hparams_str='', print_hparams=True, global_hparams=True):
|
26 |
-
if config == '' and exp_name == '':
|
27 |
-
parser = argparse.ArgumentParser(description='')
|
28 |
-
parser.add_argument('--config', type=str, default='',
|
29 |
-
help='location of the data corpus')
|
30 |
-
parser.add_argument('--exp_name', type=str, default='', help='exp_name')
|
31 |
-
parser.add_argument('-hp', '--hparams', type=str, default='',
|
32 |
-
help='location of the data corpus')
|
33 |
-
parser.add_argument('--infer', action='store_true', help='infer')
|
34 |
-
parser.add_argument('--validate', action='store_true', help='validate')
|
35 |
-
parser.add_argument('--reset', action='store_true', help='reset hparams')
|
36 |
-
parser.add_argument('--remove', action='store_true', help='remove old ckpt')
|
37 |
-
parser.add_argument('--debug', action='store_true', help='debug')
|
38 |
-
args, unknown = parser.parse_known_args()
|
39 |
-
print("| Unknow hparams: ", unknown)
|
40 |
-
else:
|
41 |
-
args = Args(config=config, exp_name=exp_name, hparams=hparams_str,
|
42 |
-
infer=False, validate=False, reset=False, debug=False, remove=False)
|
43 |
-
global hparams
|
44 |
-
assert args.config != '' or args.exp_name != ''
|
45 |
-
if args.config != '':
|
46 |
-
assert os.path.exists(args.config)
|
47 |
-
|
48 |
-
config_chains = []
|
49 |
-
loaded_config = set()
|
50 |
-
|
51 |
-
def load_config(config_fn):
|
52 |
-
# deep first inheritance and avoid the second visit of one node
|
53 |
-
if not os.path.exists(config_fn):
|
54 |
-
return {}
|
55 |
-
with open(config_fn) as f:
|
56 |
-
hparams_ = yaml.safe_load(f)
|
57 |
-
loaded_config.add(config_fn)
|
58 |
-
if 'base_config' in hparams_:
|
59 |
-
ret_hparams = {}
|
60 |
-
if not isinstance(hparams_['base_config'], list):
|
61 |
-
hparams_['base_config'] = [hparams_['base_config']]
|
62 |
-
for c in hparams_['base_config']:
|
63 |
-
if c.startswith('.'):
|
64 |
-
c = f'{os.path.dirname(config_fn)}/{c}'
|
65 |
-
c = os.path.normpath(c)
|
66 |
-
if c not in loaded_config:
|
67 |
-
override_config(ret_hparams, load_config(c))
|
68 |
-
override_config(ret_hparams, hparams_)
|
69 |
-
else:
|
70 |
-
ret_hparams = hparams_
|
71 |
-
config_chains.append(config_fn)
|
72 |
-
return ret_hparams
|
73 |
-
|
74 |
-
saved_hparams = {}
|
75 |
-
args_work_dir = ''
|
76 |
-
if args.exp_name != '':
|
77 |
-
args_work_dir = f'checkpoints/{args.exp_name}'
|
78 |
-
ckpt_config_path = f'{args_work_dir}/config.yaml'
|
79 |
-
if os.path.exists(ckpt_config_path):
|
80 |
-
with open(ckpt_config_path) as f:
|
81 |
-
saved_hparams_ = yaml.safe_load(f)
|
82 |
-
if saved_hparams_ is not None:
|
83 |
-
saved_hparams.update(saved_hparams_)
|
84 |
-
hparams_ = {}
|
85 |
-
if args.config != '':
|
86 |
-
hparams_.update(load_config(args.config))
|
87 |
-
if not args.reset:
|
88 |
-
hparams_.update(saved_hparams)
|
89 |
-
hparams_['work_dir'] = args_work_dir
|
90 |
-
|
91 |
-
# Support config overriding in command line. Support list type config overriding.
|
92 |
-
# Examples: --hparams="a=1,b.c=2,d=[1 1 1]"
|
93 |
-
if args.hparams != "":
|
94 |
-
for new_hparam in args.hparams.split(","):
|
95 |
-
k, v = new_hparam.split("=")
|
96 |
-
v = v.strip("\'\" ")
|
97 |
-
config_node = hparams_
|
98 |
-
for k_ in k.split(".")[:-1]:
|
99 |
-
config_node = config_node[k_]
|
100 |
-
k = k.split(".")[-1]
|
101 |
-
if v in ['True', 'False'] or type(config_node[k]) in [bool, list, dict]:
|
102 |
-
if type(config_node[k]) == list:
|
103 |
-
v = v.replace(" ", ",")
|
104 |
-
config_node[k] = eval(v)
|
105 |
-
else:
|
106 |
-
config_node[k] = type(config_node[k])(v)
|
107 |
-
if args_work_dir != '' and args.remove:
|
108 |
-
answer = input("REMOVE old checkpoint? Y/N [Default: N]: ")
|
109 |
-
if answer.lower() == "y":
|
110 |
-
remove_file(args_work_dir)
|
111 |
-
if args_work_dir != '' and (not os.path.exists(ckpt_config_path) or args.reset) and not args.infer:
|
112 |
-
os.makedirs(hparams_['work_dir'], exist_ok=True)
|
113 |
-
with open(ckpt_config_path, 'w') as f:
|
114 |
-
yaml.safe_dump(hparams_, f)
|
115 |
-
|
116 |
-
hparams_['infer'] = args.infer
|
117 |
-
hparams_['debug'] = args.debug
|
118 |
-
hparams_['validate'] = args.validate
|
119 |
-
hparams_['exp_name'] = args.exp_name
|
120 |
-
global global_print_hparams
|
121 |
-
if global_hparams:
|
122 |
-
hparams.clear()
|
123 |
-
hparams.update(hparams_)
|
124 |
-
if print_hparams and global_print_hparams and global_hparams:
|
125 |
-
print('| Hparams chains: ', config_chains)
|
126 |
-
print('| Hparams: ')
|
127 |
-
for i, (k, v) in enumerate(sorted(hparams_.items())):
|
128 |
-
print(f"\033[;33;m{k}\033[0m: {v}, ", end="\n" if i % 5 == 4 else "")
|
129 |
-
print("")
|
130 |
-
global_print_hparams = False
|
131 |
-
return hparams_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/Make_An_Audio/ldm/modules/image_degradation/__init__.py
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
from ldm.modules.image_degradation.bsrgan import degradation_bsrgan_variant as degradation_fn_bsr
|
2 |
-
from ldm.modules.image_degradation.bsrgan_light import degradation_bsrgan_variant as degradation_fn_bsr_light
|
|
|
|
|
|
spaces/AISuperheroes/09SL-AI-Image-Music-Video-AIUIUX/Article.md
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
|
2 |
-
# Image Generation for Art, Marketing, Ideation, Design, and Use in Business
|
3 |
-
|
4 |
-
A number of multiple AI pipeline element strategies have evolved on the open market which allow you to generate images using a combination of image prompts and word prompts. This brief analysis gives an idea of the prompting capabilities as well as image rendering techniques that are used in the strategy to generate art from human understanding of images and text used to describe a scene.
|
5 |
-
|
6 |
-
First a top five list on state of the art generators both free and paid is worth consideration.
|
7 |
-
|
8 |
-
1) Midjourney - a Discord server based chatboat AI that allows /imagine prompts which can generate multiple images at a time. This is best at parallel creation, high accuracy even photo real creations.
|
9 |
-
2) Artbreeder - A multiple capability tool which now features a Collager which assists in starting image composition. By far the most innovative approach which does great to combine the right partial elements in a scene.
|
10 |
-
3) Dreamstudio - A Huggingface derived art program in beta which uses stable diffusion to create highly accurate art and images.
|
11 |
-
4) Nightcafe - A credit based creation AI app that can do generation of video dives into an AI art piece which can produce some of the best experiences in Video.
|
12 |
-
5) RunwayML - a quintessential tool in processing morph audio and video tracks which rival most high end video edit tools.
|
13 |
-
|
14 |
-
These 5 tools make up some of the best AI pipeline programs that are cloud based that allow anyone to begin easily building their portfolio of art.
|
15 |
-
|
16 |
-
The prompting capabilities often involve having a set of text based prompts to get started. Most also feature a starter image which could be an example of what you would like to create.
|
17 |
-
|
18 |
-
URL Links:
|
19 |
-
1) Collager: https://www.artbreeder.com/beta/collage
|
20 |
-
2) NightCafe: https://creator.nightcafe.studio/explore
|
21 |
-
3) Midjourney: https://www.midjourney.com/app/users/779773261440614430/
|
22 |
-
4) Dreamstudio: https://beta.dreamstudio.ai/dream
|
23 |
-
5) RunwayML: https://app.runwayml.com/
|
24 |
-
|
25 |
-
## Getting Started and Organizing Your AI Pipeline and Process
|
26 |
-
|
27 |
-
Any great strategy has a number of steps that combine all capabilities at your disposal. It is useful to note how you can easily fir these together into a process that works for you.
|
28 |
-
|
29 |
-
The techniques worth noted are listed below. Consider how you will use them will make your pipeline easier and more automated to allow you to spend the majority of your time curating what you have made, and ideating what you want to create next.
|
30 |
-
|
31 |
-
1) Source materials: Since prompting requires text and text examples can quickly help you compose good input, its worth considering and documenting some effective prompts. Nightcafe with its integration into email, sends you a copy of your creation plus the prompting text so one option is to use your email account to keep a record of which prompts work for which outputs.
|
32 |
-
2) Source materials: Discord since its a public chat format allows you to easily see what others are using for prompts in bulk. There are a number of chat channels designed for people new to the platform and often you can copy and paste if you see very effective prompts with material you are looking for.
|
33 |
-
3) Source materials: Collager is unique in its ability to add additive parts and then dial in the percent of AI you would like with that. This allows you to add a few image elements which help start out your generation.
|
34 |
-
4) Source materials: Since images and prompts are going to be your mainstay for inputs its worth considering an open standard for storing and retrieving these from anywhere. Github is a good place since markdown language can involve text in table or list format and includes a capability to reference uploaded images within markdown. This is also a good form for portability since you can later fork and download your repository with a few clicks from anywhere.
|
35 |
-
5) Source materials: Google drive is integrated into the Artbreeder Collager workflow which allows you easily expand your work and even compose albums of the ones you like to place in Google photo albums. The portfolio you save on different sites have different degrees of ease when aggregating your collections. Collager for instance allows right click save for instant saving of your creation. Dreamstudio features a history. Midjourney features a profile site for you to store and review creations even triggering Upscales which important to use to get the highest resolution output for your creations.
|
36 |
-
|
37 |
-
## Social Media integration
|
38 |
-
|
39 |
-
Depending on your target "safe for work" exports of your work, it is sometimes important to know your accepted social media outlets that you can integrate. Cloud based interactions are the key to successful audiences if you want to scale and share your process with others.
|
40 |
-
|
41 |
-
The key social media outlets supported for these tools are here in a sorted link list which start with public open source first:
|
42 |
-
|
43 |
-
1) Github - Github is open at most companies and allow creation of a free space to share your content.
|
44 |
-
2) LinkedIn - LinkedIn is acceptable use at nearly every company.
|
45 |
-
3) Twitter - Twitter is supported as a social media outlet at most companies yet can also be used with security restrictions which might limit posting but allow read access.
|
46 |
-
4) Facebook - Meta's Facebook is a good outlet since it allows creation of large folios of your images along with stories. This venue however is locked down at many organizations.
|
47 |
-
5) Instagram - Instagram is supported as an output channel for many tools yet has decreased in popularity due to high frequency of ads and pay for likes models. While it can still be one of the best places for domain specific arrangements of images it is likely locked down in most secure organizations.
|
48 |
-
6) Youtube - For video uploads with automated captioning and long term storage of short and long form video this is an essential for any creation you compose as video. It is also useful to review and compose playlists of videos here for yourself that speed up your learning - Spend some time at Youtube university and keep a record of keyword searches there sometimes along with your playlists to accelerate learning.
|
49 |
-
7) Gmail - With the baility to move email in and out its useful to create and wrap up details within email. Most email policies come with a content limitation (for example no files larger than 25MB. For this reason get used to creating pproject wrap up archives with winzip or compression software. With the convenience of keyword searching you can usually use this as a base.
|
50 |
-
8) Last a worth mention is Huggingface.com. Like github as you become more sophisticated in your public open source capabilities, HuggingFace can allow you to wrap up using one of three software development kits which are gadio, streamlit, and HTML5 each with unique AI and UI integration components and features. If you want to create your own AI pipelines this one also has the open source code and models ready to go to help you on your journey.
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AbandonedMuse/UnlimitedMusicGen/audiocraft/quantization/vq.py
DELETED
@@ -1,116 +0,0 @@
|
|
1 |
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2 |
-
# All rights reserved.
|
3 |
-
#
|
4 |
-
# This source code is licensed under the license found in the
|
5 |
-
# LICENSE file in the root directory of this source tree.
|
6 |
-
|
7 |
-
import math
|
8 |
-
import typing as tp
|
9 |
-
|
10 |
-
import torch
|
11 |
-
|
12 |
-
from .base import BaseQuantizer, QuantizedResult
|
13 |
-
from .core_vq import ResidualVectorQuantization
|
14 |
-
|
15 |
-
|
16 |
-
class ResidualVectorQuantizer(BaseQuantizer):
|
17 |
-
"""Residual Vector Quantizer.
|
18 |
-
|
19 |
-
Args:
|
20 |
-
dimension (int): Dimension of the codebooks.
|
21 |
-
n_q (int): Number of residual vector quantizers used.
|
22 |
-
q_dropout (bool): Random quantizer drop out at train time.
|
23 |
-
bins (int): Codebook size.
|
24 |
-
decay (float): Decay for exponential moving average over the codebooks.
|
25 |
-
kmeans_init (bool): Whether to use kmeans to initialize the codebooks.
|
26 |
-
kmeans_iters (int): Number of iterations used for kmeans initialization.
|
27 |
-
threshold_ema_dead_code (int): Threshold for dead code expiration. Replace any codes
|
28 |
-
that have an exponential moving average cluster size less than the specified threshold with
|
29 |
-
randomly selected vector from the current batch.
|
30 |
-
orthogonal_reg_weight (float): Orthogonal regularization weights.
|
31 |
-
orthogonal_reg_active_codes_only (bool): Apply orthogonal regularization only on active codes.
|
32 |
-
orthogonal_reg_max_codes (optional int): Maximum number of codes to consider.
|
33 |
-
for orthogonal regulariation.
|
34 |
-
"""
|
35 |
-
def __init__(
|
36 |
-
self,
|
37 |
-
dimension: int = 256,
|
38 |
-
n_q: int = 8,
|
39 |
-
q_dropout: bool = False,
|
40 |
-
bins: int = 1024,
|
41 |
-
decay: float = 0.99,
|
42 |
-
kmeans_init: bool = True,
|
43 |
-
kmeans_iters: int = 10,
|
44 |
-
threshold_ema_dead_code: int = 2,
|
45 |
-
orthogonal_reg_weight: float = 0.0,
|
46 |
-
orthogonal_reg_active_codes_only: bool = False,
|
47 |
-
orthogonal_reg_max_codes: tp.Optional[int] = None,
|
48 |
-
):
|
49 |
-
super().__init__()
|
50 |
-
self.max_n_q = n_q
|
51 |
-
self.n_q = n_q
|
52 |
-
self.q_dropout = q_dropout
|
53 |
-
self.dimension = dimension
|
54 |
-
self.bins = bins
|
55 |
-
self.decay = decay
|
56 |
-
self.kmeans_init = kmeans_init
|
57 |
-
self.kmeans_iters = kmeans_iters
|
58 |
-
self.threshold_ema_dead_code = threshold_ema_dead_code
|
59 |
-
self.orthogonal_reg_weight = orthogonal_reg_weight
|
60 |
-
self.orthogonal_reg_active_codes_only = orthogonal_reg_active_codes_only
|
61 |
-
self.orthogonal_reg_max_codes = orthogonal_reg_max_codes
|
62 |
-
self.vq = ResidualVectorQuantization(
|
63 |
-
dim=self.dimension,
|
64 |
-
codebook_size=self.bins,
|
65 |
-
num_quantizers=self.n_q,
|
66 |
-
decay=self.decay,
|
67 |
-
kmeans_init=self.kmeans_init,
|
68 |
-
kmeans_iters=self.kmeans_iters,
|
69 |
-
threshold_ema_dead_code=self.threshold_ema_dead_code,
|
70 |
-
orthogonal_reg_weight=self.orthogonal_reg_weight,
|
71 |
-
orthogonal_reg_active_codes_only=self.orthogonal_reg_active_codes_only,
|
72 |
-
orthogonal_reg_max_codes=self.orthogonal_reg_max_codes,
|
73 |
-
channels_last=False
|
74 |
-
)
|
75 |
-
|
76 |
-
def forward(self, x: torch.Tensor, frame_rate: int):
|
77 |
-
n_q = self.n_q
|
78 |
-
if self.training and self.q_dropout:
|
79 |
-
n_q = int(torch.randint(1, self.n_q + 1, (1,)).item())
|
80 |
-
bw_per_q = math.log2(self.bins) * frame_rate / 1000
|
81 |
-
quantized, codes, commit_loss = self.vq(x, n_q=n_q)
|
82 |
-
codes = codes.transpose(0, 1)
|
83 |
-
# codes is [B, K, T], with T frames, K nb of codebooks.
|
84 |
-
bw = torch.tensor(n_q * bw_per_q).to(x)
|
85 |
-
return QuantizedResult(quantized, codes, bw, penalty=torch.mean(commit_loss))
|
86 |
-
|
87 |
-
def encode(self, x: torch.Tensor) -> torch.Tensor:
|
88 |
-
"""Encode a given input tensor with the specified frame rate at the given bandwidth.
|
89 |
-
The RVQ encode method sets the appropriate number of quantizer to use
|
90 |
-
and returns indices for each quantizer.
|
91 |
-
"""
|
92 |
-
n_q = self.n_q
|
93 |
-
codes = self.vq.encode(x, n_q=n_q)
|
94 |
-
codes = codes.transpose(0, 1)
|
95 |
-
# codes is [B, K, T], with T frames, K nb of codebooks.
|
96 |
-
return codes
|
97 |
-
|
98 |
-
def decode(self, codes: torch.Tensor) -> torch.Tensor:
|
99 |
-
"""Decode the given codes to the quantized representation.
|
100 |
-
"""
|
101 |
-
# codes is [B, K, T], with T frames, K nb of codebooks, vq.decode expects [K, B, T].
|
102 |
-
codes = codes.transpose(0, 1)
|
103 |
-
quantized = self.vq.decode(codes)
|
104 |
-
return quantized
|
105 |
-
|
106 |
-
@property
|
107 |
-
def total_codebooks(self):
|
108 |
-
return self.max_n_q
|
109 |
-
|
110 |
-
@property
|
111 |
-
def num_codebooks(self):
|
112 |
-
return self.n_q
|
113 |
-
|
114 |
-
def set_num_codebooks(self, n: int):
|
115 |
-
assert n > 0 and n <= self.max_n_q
|
116 |
-
self.n_q = n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Acapellas/Extract_Vocals_Instrumentals/README.md
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Extract Acapellas & Instrumentals
|
3 |
-
emoji: null
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: gray
|
6 |
-
sdk: gradio
|
7 |
-
app_file: app.py
|
8 |
-
pinned: False
|
9 |
-
duplicated_from: Thafx/Demucs_v4_2s_HT
|
10 |
-
---
|
11 |
-
|
12 |
-
# Configuration
|
13 |
-
|
14 |
-
`title`: _string_
|
15 |
-
Display title for the Space
|
16 |
-
|
17 |
-
`emoji`: _string_
|
18 |
-
Space emoji (emoji-only character allowed)
|
19 |
-
|
20 |
-
`colorFrom`: _string_
|
21 |
-
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
22 |
-
|
23 |
-
`colorTo`: _string_
|
24 |
-
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
25 |
-
|
26 |
-
`sdk`: _string_
|
27 |
-
Can be either `gradio` or `streamlit`
|
28 |
-
|
29 |
-
`sdk_version` : _string_
|
30 |
-
Only applicable for `streamlit` SDK.
|
31 |
-
See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions.
|
32 |
-
|
33 |
-
`app_file`: _string_
|
34 |
-
Path to your main application file (which contains either `gradio` or `streamlit` Python code).
|
35 |
-
Path is relative to the root of the repository.
|
36 |
-
|
37 |
-
`pinned`: _boolean_
|
38 |
-
Whether the Space stays on top of your list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Liaobots.py
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import uuid
|
4 |
-
|
5 |
-
from aiohttp import ClientSession
|
6 |
-
|
7 |
-
from ..typing import AsyncGenerator
|
8 |
-
from .base_provider import AsyncGeneratorProvider
|
9 |
-
|
10 |
-
models = {
|
11 |
-
"gpt-4": {
|
12 |
-
"id": "gpt-4",
|
13 |
-
"name": "GPT-4",
|
14 |
-
"maxLength": 24000,
|
15 |
-
"tokenLimit": 8000,
|
16 |
-
},
|
17 |
-
"gpt-3.5-turbo": {
|
18 |
-
"id": "gpt-3.5-turbo",
|
19 |
-
"name": "GPT-3.5",
|
20 |
-
"maxLength": 12000,
|
21 |
-
"tokenLimit": 4000,
|
22 |
-
},
|
23 |
-
"gpt-3.5-turbo-16k": {
|
24 |
-
"id": "gpt-3.5-turbo-16k",
|
25 |
-
"name": "GPT-3.5-16k",
|
26 |
-
"maxLength": 48000,
|
27 |
-
"tokenLimit": 16000,
|
28 |
-
},
|
29 |
-
}
|
30 |
-
|
31 |
-
class Liaobots(AsyncGeneratorProvider):
|
32 |
-
url = "https://liaobots.site"
|
33 |
-
working = True
|
34 |
-
supports_gpt_35_turbo = True
|
35 |
-
supports_gpt_4 = True
|
36 |
-
_auth_code = None
|
37 |
-
|
38 |
-
@classmethod
|
39 |
-
async def create_async_generator(
|
40 |
-
cls,
|
41 |
-
model: str,
|
42 |
-
messages: list[dict[str, str]],
|
43 |
-
auth: str = None,
|
44 |
-
proxy: str = None,
|
45 |
-
**kwargs
|
46 |
-
) -> AsyncGenerator:
|
47 |
-
model = model if model in models else "gpt-3.5-turbo"
|
48 |
-
headers = {
|
49 |
-
"authority": "liaobots.com",
|
50 |
-
"content-type": "application/json",
|
51 |
-
"origin": cls.url,
|
52 |
-
"referer": cls.url + "/",
|
53 |
-
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36",
|
54 |
-
}
|
55 |
-
async with ClientSession(
|
56 |
-
headers=headers
|
57 |
-
) as session:
|
58 |
-
cls._auth_code = auth if isinstance(auth, str) else cls._auth_code
|
59 |
-
if not cls._auth_code:
|
60 |
-
async with session.post(
|
61 |
-
"https://liaobots.work/recaptcha/api/login",
|
62 |
-
proxy=proxy,
|
63 |
-
data={"token": "abcdefghijklmnopqrst"},
|
64 |
-
verify_ssl=False
|
65 |
-
) as response:
|
66 |
-
response.raise_for_status()
|
67 |
-
async with session.post(
|
68 |
-
"https://liaobots.work/api/user",
|
69 |
-
proxy=proxy,
|
70 |
-
json={"authcode": ""},
|
71 |
-
verify_ssl=False
|
72 |
-
) as response:
|
73 |
-
response.raise_for_status()
|
74 |
-
cls._auth_code = (await response.json(content_type=None))["authCode"]
|
75 |
-
data = {
|
76 |
-
"conversationId": str(uuid.uuid4()),
|
77 |
-
"model": models[model],
|
78 |
-
"messages": messages,
|
79 |
-
"key": "",
|
80 |
-
"prompt": "You are ChatGPT, a large language model trained by OpenAI. Follow the user's instructions carefully.",
|
81 |
-
}
|
82 |
-
async with session.post(
|
83 |
-
"https://liaobots.work/api/chat",
|
84 |
-
proxy=proxy,
|
85 |
-
json=data,
|
86 |
-
headers={"x-auth-code": cls._auth_code},
|
87 |
-
verify_ssl=False
|
88 |
-
) as response:
|
89 |
-
response.raise_for_status()
|
90 |
-
async for stream in response.content.iter_any():
|
91 |
-
if stream:
|
92 |
-
yield stream.decode()
|
93 |
-
|
94 |
-
|
95 |
-
@classmethod
|
96 |
-
@property
|
97 |
-
def params(cls):
|
98 |
-
params = [
|
99 |
-
("model", "str"),
|
100 |
-
("messages", "list[dict[str, str]]"),
|
101 |
-
("stream", "bool"),
|
102 |
-
("proxy", "str"),
|
103 |
-
("auth", "str"),
|
104 |
-
]
|
105 |
-
param = ", ".join([": ".join(p) for p in params])
|
106 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/deprecated/V50.py
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import uuid
|
4 |
-
|
5 |
-
import requests
|
6 |
-
|
7 |
-
from ...typing import Any, CreateResult
|
8 |
-
from ..base_provider import BaseProvider
|
9 |
-
|
10 |
-
|
11 |
-
class V50(BaseProvider):
|
12 |
-
url = 'https://p5.v50.ltd'
|
13 |
-
supports_gpt_35_turbo = True
|
14 |
-
supports_stream = False
|
15 |
-
needs_auth = False
|
16 |
-
working = False
|
17 |
-
|
18 |
-
@staticmethod
|
19 |
-
def create_completion(
|
20 |
-
model: str,
|
21 |
-
messages: list[dict[str, str]],
|
22 |
-
stream: bool, **kwargs: Any) -> CreateResult:
|
23 |
-
|
24 |
-
conversation = "\n".join(f"{message['role']}: {message['content']}" for message in messages)
|
25 |
-
conversation += "\nassistant: "
|
26 |
-
|
27 |
-
payload = {
|
28 |
-
"prompt" : conversation,
|
29 |
-
"options" : {},
|
30 |
-
"systemMessage" : ".",
|
31 |
-
"temperature" : kwargs.get("temperature", 0.4),
|
32 |
-
"top_p" : kwargs.get("top_p", 0.4),
|
33 |
-
"model" : model,
|
34 |
-
"user" : str(uuid.uuid4())
|
35 |
-
}
|
36 |
-
|
37 |
-
headers = {
|
38 |
-
'authority' : 'p5.v50.ltd',
|
39 |
-
'accept' : 'application/json, text/plain, */*',
|
40 |
-
'accept-language' : 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7',
|
41 |
-
'content-type' : 'application/json',
|
42 |
-
'origin' : 'https://p5.v50.ltd',
|
43 |
-
'referer' : 'https://p5.v50.ltd/',
|
44 |
-
'sec-ch-ua-platform': '"Windows"',
|
45 |
-
'sec-fetch-dest' : 'empty',
|
46 |
-
'sec-fetch-mode' : 'cors',
|
47 |
-
'sec-fetch-site' : 'same-origin',
|
48 |
-
'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'
|
49 |
-
}
|
50 |
-
response = requests.post("https://p5.v50.ltd/api/chat-process",
|
51 |
-
json=payload, headers=headers, proxies=kwargs['proxy'] if 'proxy' in kwargs else {})
|
52 |
-
|
53 |
-
if "https://fk1.v50.ltd" not in response.text:
|
54 |
-
yield response.text
|
55 |
-
|
56 |
-
@classmethod
|
57 |
-
@property
|
58 |
-
def params(cls):
|
59 |
-
params = [
|
60 |
-
("model", "str"),
|
61 |
-
("messages", "list[dict[str, str]]"),
|
62 |
-
("stream", "bool"),
|
63 |
-
("temperature", "float"),
|
64 |
-
("top_p", "int"),
|
65 |
-
]
|
66 |
-
param = ", ".join([": ".join(p) for p in params])
|
67 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/agentverse/environments/simulation_env/rules/order/__init__.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
from agentverse.registry import Registry
|
2 |
-
order_registry = Registry(name="OrderRegistry")
|
3 |
-
|
4 |
-
from .base import BaseOrder
|
5 |
-
from .sequential import SequentialOrder
|
6 |
-
from .random import RandomOrder
|
7 |
-
from .concurrent import ConcurrentOrder
|
8 |
-
from .classroom import ClassroomOrder
|
9 |
-
from .prisoner import PrisonerOrder
|
10 |
-
from .sde_team import SdeTeamOrder
|
11 |
-
from .sde_team_given_tests import SdeTeamGivenTestsOrder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlexZou/Deploy_Restoration/utils/utils_image.py
DELETED
@@ -1,778 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import math
|
3 |
-
import random
|
4 |
-
import numpy as np
|
5 |
-
import torch
|
6 |
-
import cv2
|
7 |
-
from torchvision.utils import make_grid
|
8 |
-
from datetime import datetime
|
9 |
-
# import torchvision.transforms as transforms
|
10 |
-
import matplotlib.pyplot as plt
|
11 |
-
|
12 |
-
'''
|
13 |
-
modified by Kai Zhang (github: https://github.com/cszn)
|
14 |
-
03/03/2019
|
15 |
-
https://github.com/twhui/SRGAN-pyTorch
|
16 |
-
https://github.com/xinntao/BasicSR
|
17 |
-
'''
|
18 |
-
|
19 |
-
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP']
|
20 |
-
|
21 |
-
|
22 |
-
def is_image_file(filename):
|
23 |
-
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS)
|
24 |
-
|
25 |
-
|
26 |
-
def get_timestamp():
|
27 |
-
return datetime.now().strftime('%y%m%d-%H%M%S')
|
28 |
-
|
29 |
-
|
30 |
-
def imshow(x, title=None, cbar=False, figsize=None):
|
31 |
-
plt.figure(figsize=figsize)
|
32 |
-
plt.imshow(np.squeeze(x), interpolation='nearest', cmap='gray')
|
33 |
-
if title:
|
34 |
-
plt.title(title)
|
35 |
-
if cbar:
|
36 |
-
plt.colorbar()
|
37 |
-
plt.show()
|
38 |
-
|
39 |
-
|
40 |
-
'''
|
41 |
-
# =======================================
|
42 |
-
# get image pathes of files
|
43 |
-
# =======================================
|
44 |
-
'''
|
45 |
-
|
46 |
-
|
47 |
-
def get_image_paths(dataroot):
|
48 |
-
paths = None # return None if dataroot is None
|
49 |
-
if dataroot is not None:
|
50 |
-
paths = sorted(_get_paths_from_images(dataroot))
|
51 |
-
return paths
|
52 |
-
|
53 |
-
|
54 |
-
def _get_paths_from_images(path):
|
55 |
-
assert os.path.isdir(path), '{:s} is not a valid directory'.format(path)
|
56 |
-
images = []
|
57 |
-
for dirpath, _, fnames in sorted(os.walk(path)):
|
58 |
-
for fname in sorted(fnames):
|
59 |
-
if is_image_file(fname):
|
60 |
-
img_path = os.path.join(dirpath, fname)
|
61 |
-
images.append(img_path)
|
62 |
-
assert images, '{:s} has no valid image file'.format(path)
|
63 |
-
return images
|
64 |
-
|
65 |
-
|
66 |
-
'''
|
67 |
-
# =======================================
|
68 |
-
# makedir
|
69 |
-
# =======================================
|
70 |
-
'''
|
71 |
-
|
72 |
-
|
73 |
-
def mkdir(path):
|
74 |
-
if not os.path.exists(path):
|
75 |
-
os.makedirs(path)
|
76 |
-
|
77 |
-
|
78 |
-
def mkdirs(paths):
|
79 |
-
if isinstance(paths, str):
|
80 |
-
mkdir(paths)
|
81 |
-
else:
|
82 |
-
for path in paths:
|
83 |
-
mkdir(path)
|
84 |
-
|
85 |
-
|
86 |
-
def mkdir_and_rename(path):
|
87 |
-
if os.path.exists(path):
|
88 |
-
new_name = path + '_archived_' + get_timestamp()
|
89 |
-
print('Path already exists. Rename it to [{:s}]'.format(new_name))
|
90 |
-
os.rename(path, new_name)
|
91 |
-
os.makedirs(path)
|
92 |
-
|
93 |
-
|
94 |
-
'''
|
95 |
-
# =======================================
|
96 |
-
# read image from path
|
97 |
-
# Note: opencv is fast
|
98 |
-
# but read BGR numpy image
|
99 |
-
# =======================================
|
100 |
-
'''
|
101 |
-
|
102 |
-
|
103 |
-
# ----------------------------------------
|
104 |
-
# get single image of size HxWxn_channles (BGR)
|
105 |
-
# ----------------------------------------
|
106 |
-
def read_img(path):
|
107 |
-
# read image by cv2
|
108 |
-
# return: Numpy float32, HWC, BGR, [0,1]
|
109 |
-
img = cv2.imread(path, cv2.IMREAD_UNCHANGED) # cv2.IMREAD_GRAYSCALE
|
110 |
-
img = img.astype(np.float32) / 255.
|
111 |
-
if img.ndim == 2:
|
112 |
-
img = np.expand_dims(img, axis=2)
|
113 |
-
# some images have 4 channels
|
114 |
-
if img.shape[2] > 3:
|
115 |
-
img = img[:, :, :3]
|
116 |
-
return img
|
117 |
-
|
118 |
-
|
119 |
-
# ----------------------------------------
|
120 |
-
# get uint8 image of size HxWxn_channles (RGB)
|
121 |
-
# ----------------------------------------
|
122 |
-
def imread_uint(path, n_channels=3):
|
123 |
-
# input: path
|
124 |
-
# output: HxWx3(RGB or GGG), or HxWx1 (G)
|
125 |
-
if n_channels == 1:
|
126 |
-
img = cv2.imread(path, 0) # cv2.IMREAD_GRAYSCALE
|
127 |
-
img = np.expand_dims(img, axis=2) # HxWx1
|
128 |
-
elif n_channels == 3:
|
129 |
-
img = cv2.imread(path, cv2.IMREAD_UNCHANGED) # BGR or G
|
130 |
-
if img.ndim == 2:
|
131 |
-
img = cv2.cvtColor(img, cv2.COLOR_GRAY2RGB) # GGG
|
132 |
-
else:
|
133 |
-
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) # RGB
|
134 |
-
return img
|
135 |
-
|
136 |
-
|
137 |
-
def imsave(img, img_path):
|
138 |
-
img = np.squeeze(img)
|
139 |
-
if img.ndim == 3:
|
140 |
-
img = img[:, :, [2, 1, 0]]
|
141 |
-
cv2.imwrite(img_path, img)
|
142 |
-
|
143 |
-
|
144 |
-
'''
|
145 |
-
# =======================================
|
146 |
-
# numpy(single) <---> numpy(uint)
|
147 |
-
# numpy(single) <---> tensor
|
148 |
-
# numpy(uint) <---> tensor
|
149 |
-
# =======================================
|
150 |
-
'''
|
151 |
-
|
152 |
-
|
153 |
-
# --------------------------------
|
154 |
-
# numpy(single) <---> numpy(uint)
|
155 |
-
# --------------------------------
|
156 |
-
|
157 |
-
|
158 |
-
def uint2single(img):
|
159 |
-
|
160 |
-
return np.float32(img/255.)
|
161 |
-
|
162 |
-
|
163 |
-
def uint2single1(img):
|
164 |
-
|
165 |
-
return np.float32(np.squeeze(img)/255.)
|
166 |
-
|
167 |
-
|
168 |
-
def single2uint(img):
|
169 |
-
|
170 |
-
return np.uint8((img.clip(0, 1)*255.).round())
|
171 |
-
|
172 |
-
|
173 |
-
def uint162single(img):
|
174 |
-
|
175 |
-
return np.float32(img/65535.)
|
176 |
-
|
177 |
-
|
178 |
-
def single2uint16(img):
|
179 |
-
|
180 |
-
return np.uint8((img.clip(0, 1)*65535.).round())
|
181 |
-
|
182 |
-
|
183 |
-
# --------------------------------
|
184 |
-
# numpy(uint) <---> tensor
|
185 |
-
# uint (HxWxn_channels (RGB) or G)
|
186 |
-
# --------------------------------
|
187 |
-
|
188 |
-
|
189 |
-
# convert uint (HxWxn_channels) to 4-dimensional torch tensor
|
190 |
-
def uint2tensor4(img):
|
191 |
-
if img.ndim == 2:
|
192 |
-
img = np.expand_dims(img, axis=2)
|
193 |
-
return torch.from_numpy(np.ascontiguousarray(img)).permute(2, 0, 1).float().div(255.).unsqueeze(0)
|
194 |
-
|
195 |
-
|
196 |
-
# convert uint (HxWxn_channels) to 3-dimensional torch tensor
|
197 |
-
def uint2tensor3(img):
|
198 |
-
if img.ndim == 2:
|
199 |
-
img = np.expand_dims(img, axis=2)
|
200 |
-
return torch.from_numpy(np.ascontiguousarray(img)).permute(2, 0, 1).float().div(255.)
|
201 |
-
|
202 |
-
|
203 |
-
# convert torch tensor to uint
|
204 |
-
def tensor2uint(img):
|
205 |
-
img = img.data.squeeze().float().clamp_(0, 1).cpu().numpy()
|
206 |
-
if img.ndim == 3:
|
207 |
-
img = np.transpose(img, (1, 2, 0))
|
208 |
-
return np.uint8((img*255.0).round())
|
209 |
-
|
210 |
-
|
211 |
-
# --------------------------------
|
212 |
-
# numpy(single) <---> tensor
|
213 |
-
# single (HxWxn_channels (RGB) or G)
|
214 |
-
# --------------------------------
|
215 |
-
|
216 |
-
|
217 |
-
# convert single (HxWxn_channels) to 4-dimensional torch tensor
|
218 |
-
def single2tensor4(img):
|
219 |
-
return torch.from_numpy(np.ascontiguousarray(img)).permute(2, 0, 1).float().unsqueeze(0)
|
220 |
-
|
221 |
-
|
222 |
-
# convert single (HxWxn_channels) to 3-dimensional torch tensor
|
223 |
-
def single2tensor3(img):
|
224 |
-
return torch.from_numpy(np.ascontiguousarray(img)).permute(2, 0, 1).float()
|
225 |
-
|
226 |
-
|
227 |
-
# convert torch tensor to single
|
228 |
-
def tensor2single(img):
|
229 |
-
img = img.data.squeeze().float().clamp_(0, 1).cpu().numpy()
|
230 |
-
if img.ndim == 3:
|
231 |
-
img = np.transpose(img, (1, 2, 0))
|
232 |
-
|
233 |
-
return img
|
234 |
-
|
235 |
-
def tensor2single3(img):
|
236 |
-
img = img.data.squeeze().float().clamp_(0, 1).cpu().numpy()
|
237 |
-
if img.ndim == 3:
|
238 |
-
img = np.transpose(img, (1, 2, 0))
|
239 |
-
elif img.ndim == 2:
|
240 |
-
img = np.expand_dims(img, axis=2)
|
241 |
-
return img
|
242 |
-
|
243 |
-
|
244 |
-
# from skimage.io import imread, imsave
|
245 |
-
def tensor2img(tensor, out_type=np.uint8, min_max=(0, 1)):
|
246 |
-
'''
|
247 |
-
Converts a torch Tensor into an image Numpy array of BGR channel order
|
248 |
-
Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel order
|
249 |
-
Output: 3D(H,W,C) or 2D(H,W), [0,255], np.uint8 (default)
|
250 |
-
'''
|
251 |
-
tensor = tensor.squeeze().float().cpu().clamp_(*min_max) # squeeze first, then clamp
|
252 |
-
tensor = (tensor - min_max[0]) / (min_max[1] - min_max[0]) # to range [0,1]
|
253 |
-
n_dim = tensor.dim()
|
254 |
-
if n_dim == 4:
|
255 |
-
n_img = len(tensor)
|
256 |
-
img_np = make_grid(tensor, nrow=int(math.sqrt(n_img)), normalize=False).numpy()
|
257 |
-
img_np = np.transpose(img_np[[2, 1, 0], :, :], (1, 2, 0)) # HWC, BGR
|
258 |
-
elif n_dim == 3:
|
259 |
-
img_np = tensor.numpy()
|
260 |
-
img_np = np.transpose(img_np[[2, 1, 0], :, :], (1, 2, 0)) # HWC, BGR
|
261 |
-
elif n_dim == 2:
|
262 |
-
img_np = tensor.numpy()
|
263 |
-
else:
|
264 |
-
raise TypeError(
|
265 |
-
'Only support 4D, 3D and 2D tensor. But received with dimension: {:d}'.format(n_dim))
|
266 |
-
if out_type == np.uint8:
|
267 |
-
img_np = (img_np * 255.0).round()
|
268 |
-
# Important. Unlike matlab, numpy.uint8() WILL NOT round by default.
|
269 |
-
return img_np.astype(out_type)
|
270 |
-
|
271 |
-
|
272 |
-
'''
|
273 |
-
# =======================================
|
274 |
-
# image processing process on numpy image
|
275 |
-
# augment(img_list, hflip=True, rot=True):
|
276 |
-
# =======================================
|
277 |
-
'''
|
278 |
-
|
279 |
-
|
280 |
-
def augment_img(img, mode=0):
|
281 |
-
if mode == 0:
|
282 |
-
return img
|
283 |
-
elif mode == 1:
|
284 |
-
return np.flipud(np.rot90(img))
|
285 |
-
elif mode == 2:
|
286 |
-
return np.flipud(img)
|
287 |
-
elif mode == 3:
|
288 |
-
return np.rot90(img, k=3)
|
289 |
-
elif mode == 4:
|
290 |
-
return np.flipud(np.rot90(img, k=2))
|
291 |
-
elif mode == 5:
|
292 |
-
return np.rot90(img)
|
293 |
-
elif mode == 6:
|
294 |
-
return np.rot90(img, k=2)
|
295 |
-
elif mode == 7:
|
296 |
-
return np.flipud(np.rot90(img, k=3))
|
297 |
-
|
298 |
-
|
299 |
-
def augment_img_np3(img, mode=0):
|
300 |
-
if mode == 0:
|
301 |
-
return img
|
302 |
-
elif mode == 1:
|
303 |
-
return img.transpose(1, 0, 2)
|
304 |
-
elif mode == 2:
|
305 |
-
return img[::-1, :, :]
|
306 |
-
elif mode == 3:
|
307 |
-
img = img[::-1, :, :]
|
308 |
-
img = img.transpose(1, 0, 2)
|
309 |
-
return img
|
310 |
-
elif mode == 4:
|
311 |
-
return img[:, ::-1, :]
|
312 |
-
elif mode == 5:
|
313 |
-
img = img[:, ::-1, :]
|
314 |
-
img = img.transpose(1, 0, 2)
|
315 |
-
return img
|
316 |
-
elif mode == 6:
|
317 |
-
img = img[:, ::-1, :]
|
318 |
-
img = img[::-1, :, :]
|
319 |
-
return img
|
320 |
-
elif mode == 7:
|
321 |
-
img = img[:, ::-1, :]
|
322 |
-
img = img[::-1, :, :]
|
323 |
-
img = img.transpose(1, 0, 2)
|
324 |
-
return img
|
325 |
-
|
326 |
-
|
327 |
-
def augment_img_tensor(img, mode=0):
|
328 |
-
img_size = img.size()
|
329 |
-
img_np = img.data.cpu().numpy()
|
330 |
-
if len(img_size) == 3:
|
331 |
-
img_np = np.transpose(img_np, (1, 2, 0))
|
332 |
-
elif len(img_size) == 4:
|
333 |
-
img_np = np.transpose(img_np, (2, 3, 1, 0))
|
334 |
-
img_np = augment_img(img_np, mode=mode)
|
335 |
-
img_tensor = torch.from_numpy(np.ascontiguousarray(img_np))
|
336 |
-
if len(img_size) == 3:
|
337 |
-
img_tensor = img_tensor.permute(2, 0, 1)
|
338 |
-
elif len(img_size) == 4:
|
339 |
-
img_tensor = img_tensor.permute(3, 2, 0, 1)
|
340 |
-
|
341 |
-
return img_tensor.type_as(img)
|
342 |
-
|
343 |
-
|
344 |
-
def augment_imgs(img_list, hflip=True, rot=True):
|
345 |
-
# horizontal flip OR rotate
|
346 |
-
hflip = hflip and random.random() < 0.5
|
347 |
-
vflip = rot and random.random() < 0.5
|
348 |
-
rot90 = rot and random.random() < 0.5
|
349 |
-
|
350 |
-
def _augment(img):
|
351 |
-
if hflip:
|
352 |
-
img = img[:, ::-1, :]
|
353 |
-
if vflip:
|
354 |
-
img = img[::-1, :, :]
|
355 |
-
if rot90:
|
356 |
-
img = img.transpose(1, 0, 2)
|
357 |
-
return img
|
358 |
-
|
359 |
-
return [_augment(img) for img in img_list]
|
360 |
-
|
361 |
-
|
362 |
-
'''
|
363 |
-
# =======================================
|
364 |
-
# image processing process on numpy image
|
365 |
-
# channel_convert(in_c, tar_type, img_list):
|
366 |
-
# rgb2ycbcr(img, only_y=True):
|
367 |
-
# bgr2ycbcr(img, only_y=True):
|
368 |
-
# ycbcr2rgb(img):
|
369 |
-
# modcrop(img_in, scale):
|
370 |
-
# =======================================
|
371 |
-
'''
|
372 |
-
|
373 |
-
|
374 |
-
def rgb2ycbcr(img, only_y=True):
|
375 |
-
'''same as matlab rgb2ycbcr
|
376 |
-
only_y: only return Y channel
|
377 |
-
Input:
|
378 |
-
uint8, [0, 255]
|
379 |
-
float, [0, 1]
|
380 |
-
'''
|
381 |
-
in_img_type = img.dtype
|
382 |
-
img.astype(np.float32)
|
383 |
-
if in_img_type != np.uint8:
|
384 |
-
img *= 255.
|
385 |
-
# convert
|
386 |
-
if only_y:
|
387 |
-
rlt = np.dot(img, [65.481, 128.553, 24.966]) / 255.0 + 16.0
|
388 |
-
else:
|
389 |
-
rlt = np.matmul(img, [[65.481, -37.797, 112.0], [128.553, -74.203, -93.786],
|
390 |
-
[24.966, 112.0, -18.214]]) / 255.0 + [16, 128, 128]
|
391 |
-
if in_img_type == np.uint8:
|
392 |
-
rlt = rlt.round()
|
393 |
-
else:
|
394 |
-
rlt /= 255.
|
395 |
-
return rlt.astype(in_img_type)
|
396 |
-
|
397 |
-
|
398 |
-
def ycbcr2rgb(img):
|
399 |
-
'''same as matlab ycbcr2rgb
|
400 |
-
Input:
|
401 |
-
uint8, [0, 255]
|
402 |
-
float, [0, 1]
|
403 |
-
'''
|
404 |
-
in_img_type = img.dtype
|
405 |
-
img.astype(np.float32)
|
406 |
-
if in_img_type != np.uint8:
|
407 |
-
img *= 255.
|
408 |
-
# convert
|
409 |
-
rlt = np.matmul(img, [[0.00456621, 0.00456621, 0.00456621], [0, -0.00153632, 0.00791071],
|
410 |
-
[0.00625893, -0.00318811, 0]]) * 255.0 + [-222.921, 135.576, -276.836]
|
411 |
-
if in_img_type == np.uint8:
|
412 |
-
rlt = rlt.round()
|
413 |
-
else:
|
414 |
-
rlt /= 255.
|
415 |
-
return rlt.astype(in_img_type)
|
416 |
-
|
417 |
-
|
418 |
-
def bgr2ycbcr(img, only_y=True):
|
419 |
-
'''bgr version of rgb2ycbcr
|
420 |
-
only_y: only return Y channel
|
421 |
-
Input:
|
422 |
-
uint8, [0, 255]
|
423 |
-
float, [0, 1]
|
424 |
-
'''
|
425 |
-
in_img_type = img.dtype
|
426 |
-
img.astype(np.float32)
|
427 |
-
if in_img_type != np.uint8:
|
428 |
-
img *= 255.
|
429 |
-
# convert
|
430 |
-
if only_y:
|
431 |
-
rlt = np.dot(img, [24.966, 128.553, 65.481]) / 255.0 + 16.0
|
432 |
-
else:
|
433 |
-
rlt = np.matmul(img, [[24.966, 112.0, -18.214], [128.553, -74.203, -93.786],
|
434 |
-
[65.481, -37.797, 112.0]]) / 255.0 + [16, 128, 128]
|
435 |
-
if in_img_type == np.uint8:
|
436 |
-
rlt = rlt.round()
|
437 |
-
else:
|
438 |
-
rlt /= 255.
|
439 |
-
return rlt.astype(in_img_type)
|
440 |
-
|
441 |
-
|
442 |
-
def modcrop(img_in, scale):
|
443 |
-
# img_in: Numpy, HWC or HW
|
444 |
-
img = np.copy(img_in)
|
445 |
-
if img.ndim == 2:
|
446 |
-
H, W = img.shape
|
447 |
-
H_r, W_r = H % scale, W % scale
|
448 |
-
img = img[:H - H_r, :W - W_r]
|
449 |
-
elif img.ndim == 3:
|
450 |
-
H, W, C = img.shape
|
451 |
-
H_r, W_r = H % scale, W % scale
|
452 |
-
img = img[:H - H_r, :W - W_r, :]
|
453 |
-
else:
|
454 |
-
raise ValueError('Wrong img ndim: [{:d}].'.format(img.ndim))
|
455 |
-
return img
|
456 |
-
|
457 |
-
|
458 |
-
def shave(img_in, border=0):
|
459 |
-
# img_in: Numpy, HWC or HW
|
460 |
-
img = np.copy(img_in)
|
461 |
-
h, w = img.shape[:2]
|
462 |
-
img = img[border:h-border, border:w-border]
|
463 |
-
return img
|
464 |
-
|
465 |
-
|
466 |
-
def channel_convert(in_c, tar_type, img_list):
|
467 |
-
# conversion among BGR, gray and y
|
468 |
-
if in_c == 3 and tar_type == 'gray': # BGR to gray
|
469 |
-
gray_list = [cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) for img in img_list]
|
470 |
-
return [np.expand_dims(img, axis=2) for img in gray_list]
|
471 |
-
elif in_c == 3 and tar_type == 'y': # BGR to y
|
472 |
-
y_list = [bgr2ycbcr(img, only_y=True) for img in img_list]
|
473 |
-
return [np.expand_dims(img, axis=2) for img in y_list]
|
474 |
-
elif in_c == 1 and tar_type == 'RGB': # gray/y to BGR
|
475 |
-
return [cv2.cvtColor(img, cv2.COLOR_GRAY2BGR) for img in img_list]
|
476 |
-
else:
|
477 |
-
return img_list
|
478 |
-
|
479 |
-
|
480 |
-
'''
|
481 |
-
# =======================================
|
482 |
-
# metric, PSNR and SSIM
|
483 |
-
# =======================================
|
484 |
-
'''
|
485 |
-
|
486 |
-
|
487 |
-
# ----------
|
488 |
-
# PSNR
|
489 |
-
# ----------
|
490 |
-
def calculate_psnr(img1, img2, border=0):
|
491 |
-
# img1 and img2 have range [0, 255]
|
492 |
-
if not img1.shape == img2.shape:
|
493 |
-
raise ValueError('Input images must have the same dimensions.')
|
494 |
-
h, w = img1.shape[:2]
|
495 |
-
img1 = img1[border:h-border, border:w-border]
|
496 |
-
img2 = img2[border:h-border, border:w-border]
|
497 |
-
|
498 |
-
img1 = img1.astype(np.float64)
|
499 |
-
img2 = img2.astype(np.float64)
|
500 |
-
mse = np.mean((img1 - img2)**2)
|
501 |
-
if mse == 0:
|
502 |
-
return float('inf')
|
503 |
-
return 20 * math.log10(255.0 / math.sqrt(mse))
|
504 |
-
|
505 |
-
|
506 |
-
# ----------
|
507 |
-
# SSIM
|
508 |
-
# ----------
|
509 |
-
def calculate_ssim(img1, img2, border=0):
|
510 |
-
'''calculate SSIM
|
511 |
-
the same outputs as MATLAB's
|
512 |
-
img1, img2: [0, 255]
|
513 |
-
'''
|
514 |
-
if not img1.shape == img2.shape:
|
515 |
-
raise ValueError('Input images must have the same dimensions.')
|
516 |
-
h, w = img1.shape[:2]
|
517 |
-
img1 = img1[border:h-border, border:w-border]
|
518 |
-
img2 = img2[border:h-border, border:w-border]
|
519 |
-
|
520 |
-
if img1.ndim == 2:
|
521 |
-
return ssim(img1, img2)
|
522 |
-
elif img1.ndim == 3:
|
523 |
-
if img1.shape[2] == 3:
|
524 |
-
ssims = []
|
525 |
-
for i in range(3):
|
526 |
-
ssims.append(ssim(img1, img2))
|
527 |
-
return np.array(ssims).mean()
|
528 |
-
elif img1.shape[2] == 1:
|
529 |
-
return ssim(np.squeeze(img1), np.squeeze(img2))
|
530 |
-
else:
|
531 |
-
raise ValueError('Wrong input image dimensions.')
|
532 |
-
|
533 |
-
|
534 |
-
def ssim(img1, img2):
|
535 |
-
C1 = (0.01 * 255)**2
|
536 |
-
C2 = (0.03 * 255)**2
|
537 |
-
|
538 |
-
img1 = img1.astype(np.float64)
|
539 |
-
img2 = img2.astype(np.float64)
|
540 |
-
kernel = cv2.getGaussianKernel(11, 1.5)
|
541 |
-
window = np.outer(kernel, kernel.transpose())
|
542 |
-
|
543 |
-
mu1 = cv2.filter2D(img1, -1, window)[5:-5, 5:-5] # valid
|
544 |
-
mu2 = cv2.filter2D(img2, -1, window)[5:-5, 5:-5]
|
545 |
-
mu1_sq = mu1**2
|
546 |
-
mu2_sq = mu2**2
|
547 |
-
mu1_mu2 = mu1 * mu2
|
548 |
-
sigma1_sq = cv2.filter2D(img1**2, -1, window)[5:-5, 5:-5] - mu1_sq
|
549 |
-
sigma2_sq = cv2.filter2D(img2**2, -1, window)[5:-5, 5:-5] - mu2_sq
|
550 |
-
sigma12 = cv2.filter2D(img1 * img2, -1, window)[5:-5, 5:-5] - mu1_mu2
|
551 |
-
|
552 |
-
ssim_map = ((2 * mu1_mu2 + C1) * (2 * sigma12 + C2)) / ((mu1_sq + mu2_sq + C1) *
|
553 |
-
(sigma1_sq + sigma2_sq + C2))
|
554 |
-
return ssim_map.mean()
|
555 |
-
|
556 |
-
|
557 |
-
'''
|
558 |
-
# =======================================
|
559 |
-
# pytorch version of matlab imresize
|
560 |
-
# =======================================
|
561 |
-
'''
|
562 |
-
|
563 |
-
|
564 |
-
# matlab 'imresize' function, now only support 'bicubic'
|
565 |
-
def cubic(x):
|
566 |
-
absx = torch.abs(x)
|
567 |
-
absx2 = absx**2
|
568 |
-
absx3 = absx**3
|
569 |
-
return (1.5*absx3 - 2.5*absx2 + 1) * ((absx <= 1).type_as(absx)) + \
|
570 |
-
(-0.5*absx3 + 2.5*absx2 - 4*absx + 2) * (((absx > 1)*(absx <= 2)).type_as(absx))
|
571 |
-
|
572 |
-
|
573 |
-
def calculate_weights_indices(in_length, out_length, scale, kernel, kernel_width, antialiasing):
|
574 |
-
if (scale < 1) and (antialiasing):
|
575 |
-
# Use a modified kernel to simultaneously interpolate and antialias- larger kernel width
|
576 |
-
kernel_width = kernel_width / scale
|
577 |
-
|
578 |
-
# Output-space coordinates
|
579 |
-
x = torch.linspace(1, out_length, out_length)
|
580 |
-
|
581 |
-
# Input-space coordinates. Calculate the inverse mapping such that 0.5
|
582 |
-
# in output space maps to 0.5 in input space, and 0.5+scale in output
|
583 |
-
# space maps to 1.5 in input space.
|
584 |
-
u = x / scale + 0.5 * (1 - 1 / scale)
|
585 |
-
|
586 |
-
# What is the left-most pixel that can be involved in the computation?
|
587 |
-
left = torch.floor(u - kernel_width / 2)
|
588 |
-
|
589 |
-
# What is the maximum number of pixels that can be involved in the
|
590 |
-
# computation? Note: it's OK to use an extra pixel here; if the
|
591 |
-
# corresponding weights are all zero, it will be eliminated at the end
|
592 |
-
# of this function.
|
593 |
-
P = math.ceil(kernel_width) + 2
|
594 |
-
|
595 |
-
# The indices of the input pixels involved in computing the k-th output
|
596 |
-
# pixel are in row k of the indices matrix.
|
597 |
-
indices = left.view(out_length, 1).expand(out_length, P) + torch.linspace(0, P - 1, P).view(
|
598 |
-
1, P).expand(out_length, P)
|
599 |
-
|
600 |
-
# The weights used to compute the k-th output pixel are in row k of the
|
601 |
-
# weights matrix.
|
602 |
-
distance_to_center = u.view(out_length, 1).expand(out_length, P) - indices
|
603 |
-
# apply cubic kernel
|
604 |
-
if (scale < 1) and (antialiasing):
|
605 |
-
weights = scale * cubic(distance_to_center * scale)
|
606 |
-
else:
|
607 |
-
weights = cubic(distance_to_center)
|
608 |
-
# Normalize the weights matrix so that each row sums to 1.
|
609 |
-
weights_sum = torch.sum(weights, 1).view(out_length, 1)
|
610 |
-
weights = weights / weights_sum.expand(out_length, P)
|
611 |
-
|
612 |
-
# If a column in weights is all zero, get rid of it. only consider the first and last column.
|
613 |
-
weights_zero_tmp = torch.sum((weights == 0), 0)
|
614 |
-
if not math.isclose(weights_zero_tmp[0], 0, rel_tol=1e-6):
|
615 |
-
indices = indices.narrow(1, 1, P - 2)
|
616 |
-
weights = weights.narrow(1, 1, P - 2)
|
617 |
-
if not math.isclose(weights_zero_tmp[-1], 0, rel_tol=1e-6):
|
618 |
-
indices = indices.narrow(1, 0, P - 2)
|
619 |
-
weights = weights.narrow(1, 0, P - 2)
|
620 |
-
weights = weights.contiguous()
|
621 |
-
indices = indices.contiguous()
|
622 |
-
sym_len_s = -indices.min() + 1
|
623 |
-
sym_len_e = indices.max() - in_length
|
624 |
-
indices = indices + sym_len_s - 1
|
625 |
-
return weights, indices, int(sym_len_s), int(sym_len_e)
|
626 |
-
|
627 |
-
|
628 |
-
# --------------------------------
|
629 |
-
# imresize for tensor image
|
630 |
-
# --------------------------------
|
631 |
-
def imresize(img, scale, antialiasing=True):
|
632 |
-
# Now the scale should be the same for H and W
|
633 |
-
# input: img: pytorch tensor, CHW or HW [0,1]
|
634 |
-
# output: CHW or HW [0,1] w/o round
|
635 |
-
need_squeeze = True if img.dim() == 2 else False
|
636 |
-
if need_squeeze:
|
637 |
-
img.unsqueeze_(0)
|
638 |
-
in_C, in_H, in_W = img.size()
|
639 |
-
out_C, out_H, out_W = in_C, math.ceil(in_H * scale), math.ceil(in_W * scale)
|
640 |
-
kernel_width = 4
|
641 |
-
kernel = 'cubic'
|
642 |
-
|
643 |
-
# Return the desired dimension order for performing the resize. The
|
644 |
-
# strategy is to perform the resize first along the dimension with the
|
645 |
-
# smallest scale factor.
|
646 |
-
# Now we do not support this.
|
647 |
-
|
648 |
-
# get weights and indices
|
649 |
-
weights_H, indices_H, sym_len_Hs, sym_len_He = calculate_weights_indices(
|
650 |
-
in_H, out_H, scale, kernel, kernel_width, antialiasing)
|
651 |
-
weights_W, indices_W, sym_len_Ws, sym_len_We = calculate_weights_indices(
|
652 |
-
in_W, out_W, scale, kernel, kernel_width, antialiasing)
|
653 |
-
# process H dimension
|
654 |
-
# symmetric copying
|
655 |
-
img_aug = torch.FloatTensor(in_C, in_H + sym_len_Hs + sym_len_He, in_W)
|
656 |
-
img_aug.narrow(1, sym_len_Hs, in_H).copy_(img)
|
657 |
-
|
658 |
-
sym_patch = img[:, :sym_len_Hs, :]
|
659 |
-
inv_idx = torch.arange(sym_patch.size(1) - 1, -1, -1).long()
|
660 |
-
sym_patch_inv = sym_patch.index_select(1, inv_idx)
|
661 |
-
img_aug.narrow(1, 0, sym_len_Hs).copy_(sym_patch_inv)
|
662 |
-
|
663 |
-
sym_patch = img[:, -sym_len_He:, :]
|
664 |
-
inv_idx = torch.arange(sym_patch.size(1) - 1, -1, -1).long()
|
665 |
-
sym_patch_inv = sym_patch.index_select(1, inv_idx)
|
666 |
-
img_aug.narrow(1, sym_len_Hs + in_H, sym_len_He).copy_(sym_patch_inv)
|
667 |
-
|
668 |
-
out_1 = torch.FloatTensor(in_C, out_H, in_W)
|
669 |
-
kernel_width = weights_H.size(1)
|
670 |
-
for i in range(out_H):
|
671 |
-
idx = int(indices_H[i][0])
|
672 |
-
for j in range(out_C):
|
673 |
-
out_1[j, i, :] = img_aug[j, idx:idx + kernel_width, :].transpose(0, 1).mv(weights_H[i])
|
674 |
-
|
675 |
-
# process W dimension
|
676 |
-
# symmetric copying
|
677 |
-
out_1_aug = torch.FloatTensor(in_C, out_H, in_W + sym_len_Ws + sym_len_We)
|
678 |
-
out_1_aug.narrow(2, sym_len_Ws, in_W).copy_(out_1)
|
679 |
-
|
680 |
-
sym_patch = out_1[:, :, :sym_len_Ws]
|
681 |
-
inv_idx = torch.arange(sym_patch.size(2) - 1, -1, -1).long()
|
682 |
-
sym_patch_inv = sym_patch.index_select(2, inv_idx)
|
683 |
-
out_1_aug.narrow(2, 0, sym_len_Ws).copy_(sym_patch_inv)
|
684 |
-
|
685 |
-
sym_patch = out_1[:, :, -sym_len_We:]
|
686 |
-
inv_idx = torch.arange(sym_patch.size(2) - 1, -1, -1).long()
|
687 |
-
sym_patch_inv = sym_patch.index_select(2, inv_idx)
|
688 |
-
out_1_aug.narrow(2, sym_len_Ws + in_W, sym_len_We).copy_(sym_patch_inv)
|
689 |
-
|
690 |
-
out_2 = torch.FloatTensor(in_C, out_H, out_W)
|
691 |
-
kernel_width = weights_W.size(1)
|
692 |
-
for i in range(out_W):
|
693 |
-
idx = int(indices_W[i][0])
|
694 |
-
for j in range(out_C):
|
695 |
-
out_2[j, :, i] = out_1_aug[j, :, idx:idx + kernel_width].mv(weights_W[i])
|
696 |
-
if need_squeeze:
|
697 |
-
out_2.squeeze_()
|
698 |
-
return out_2
|
699 |
-
|
700 |
-
|
701 |
-
# --------------------------------
|
702 |
-
# imresize for numpy image
|
703 |
-
# --------------------------------
|
704 |
-
def imresize_np(img, scale, antialiasing=True):
|
705 |
-
# Now the scale should be the same for H and W
|
706 |
-
# input: img: Numpy, HWC or HW [0,1]
|
707 |
-
# output: HWC or HW [0,1] w/o round
|
708 |
-
img = torch.from_numpy(img)
|
709 |
-
need_squeeze = True if img.dim() == 2 else False
|
710 |
-
if need_squeeze:
|
711 |
-
img.unsqueeze_(2)
|
712 |
-
|
713 |
-
in_H, in_W, in_C = img.size()
|
714 |
-
out_C, out_H, out_W = in_C, math.ceil(in_H * scale), math.ceil(in_W * scale)
|
715 |
-
kernel_width = 4
|
716 |
-
kernel = 'cubic'
|
717 |
-
|
718 |
-
# Return the desired dimension order for performing the resize. The
|
719 |
-
# strategy is to perform the resize first along the dimension with the
|
720 |
-
# smallest scale factor.
|
721 |
-
# Now we do not support this.
|
722 |
-
|
723 |
-
# get weights and indices
|
724 |
-
weights_H, indices_H, sym_len_Hs, sym_len_He = calculate_weights_indices(
|
725 |
-
in_H, out_H, scale, kernel, kernel_width, antialiasing)
|
726 |
-
weights_W, indices_W, sym_len_Ws, sym_len_We = calculate_weights_indices(
|
727 |
-
in_W, out_W, scale, kernel, kernel_width, antialiasing)
|
728 |
-
# process H dimension
|
729 |
-
# symmetric copying
|
730 |
-
img_aug = torch.FloatTensor(in_H + sym_len_Hs + sym_len_He, in_W, in_C)
|
731 |
-
img_aug.narrow(0, sym_len_Hs, in_H).copy_(img)
|
732 |
-
|
733 |
-
sym_patch = img[:sym_len_Hs, :, :]
|
734 |
-
inv_idx = torch.arange(sym_patch.size(0) - 1, -1, -1).long()
|
735 |
-
sym_patch_inv = sym_patch.index_select(0, inv_idx)
|
736 |
-
img_aug.narrow(0, 0, sym_len_Hs).copy_(sym_patch_inv)
|
737 |
-
|
738 |
-
sym_patch = img[-sym_len_He:, :, :]
|
739 |
-
inv_idx = torch.arange(sym_patch.size(0) - 1, -1, -1).long()
|
740 |
-
sym_patch_inv = sym_patch.index_select(0, inv_idx)
|
741 |
-
img_aug.narrow(0, sym_len_Hs + in_H, sym_len_He).copy_(sym_patch_inv)
|
742 |
-
|
743 |
-
out_1 = torch.FloatTensor(out_H, in_W, in_C)
|
744 |
-
kernel_width = weights_H.size(1)
|
745 |
-
for i in range(out_H):
|
746 |
-
idx = int(indices_H[i][0])
|
747 |
-
for j in range(out_C):
|
748 |
-
out_1[i, :, j] = img_aug[idx:idx + kernel_width, :, j].transpose(0, 1).mv(weights_H[i])
|
749 |
-
|
750 |
-
# process W dimension
|
751 |
-
# symmetric copying
|
752 |
-
out_1_aug = torch.FloatTensor(out_H, in_W + sym_len_Ws + sym_len_We, in_C)
|
753 |
-
out_1_aug.narrow(1, sym_len_Ws, in_W).copy_(out_1)
|
754 |
-
|
755 |
-
sym_patch = out_1[:, :sym_len_Ws, :]
|
756 |
-
inv_idx = torch.arange(sym_patch.size(1) - 1, -1, -1).long()
|
757 |
-
sym_patch_inv = sym_patch.index_select(1, inv_idx)
|
758 |
-
out_1_aug.narrow(1, 0, sym_len_Ws).copy_(sym_patch_inv)
|
759 |
-
|
760 |
-
sym_patch = out_1[:, -sym_len_We:, :]
|
761 |
-
inv_idx = torch.arange(sym_patch.size(1) - 1, -1, -1).long()
|
762 |
-
sym_patch_inv = sym_patch.index_select(1, inv_idx)
|
763 |
-
out_1_aug.narrow(1, sym_len_Ws + in_W, sym_len_We).copy_(sym_patch_inv)
|
764 |
-
|
765 |
-
out_2 = torch.FloatTensor(out_H, out_W, in_C)
|
766 |
-
kernel_width = weights_W.size(1)
|
767 |
-
for i in range(out_W):
|
768 |
-
idx = int(indices_W[i][0])
|
769 |
-
for j in range(out_C):
|
770 |
-
out_2[:, i, j] = out_1_aug[:, idx:idx + kernel_width, j].mv(weights_W[i])
|
771 |
-
if need_squeeze:
|
772 |
-
out_2.squeeze_()
|
773 |
-
|
774 |
-
return out_2.numpy()
|
775 |
-
|
776 |
-
|
777 |
-
if __name__ == '__main__':
|
778 |
-
img = imread_uint('test.bmp',3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AllAideas/SegmentacionVideo/utils/constants.py
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
MAX_SEQ_LENGTH = 20
|
2 |
-
NUM_FEATURES = 1024
|
3 |
-
IMG_SIZE = 128
|
4 |
-
CLASS_VOCAB = ['CricketShot', 'PlayingCello', 'Punch', 'ShavingBeard', 'TennisSwing']
|
|
|
|
|
|
|
|
|
|
spaces/Amrrs/openai-whisper-live-transcribe/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Openai Whisper Live Transcribe
|
3 |
-
emoji: 🎙
|
4 |
-
colorFrom: yellow
|
5 |
-
colorTo: gray
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.3.1
|
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/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/pipelines/unclip/__init__.py
DELETED
File without changes
|
spaces/Andy1621/uniformer_image_detection/configs/_base_/datasets/cityscapes_detection.py
DELETED
@@ -1,55 +0,0 @@
|
|
1 |
-
dataset_type = 'CityscapesDataset'
|
2 |
-
data_root = 'data/cityscapes/'
|
3 |
-
img_norm_cfg = dict(
|
4 |
-
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
|
5 |
-
train_pipeline = [
|
6 |
-
dict(type='LoadImageFromFile'),
|
7 |
-
dict(type='LoadAnnotations', with_bbox=True),
|
8 |
-
dict(
|
9 |
-
type='Resize', img_scale=[(2048, 800), (2048, 1024)], keep_ratio=True),
|
10 |
-
dict(type='RandomFlip', flip_ratio=0.5),
|
11 |
-
dict(type='Normalize', **img_norm_cfg),
|
12 |
-
dict(type='Pad', size_divisor=32),
|
13 |
-
dict(type='DefaultFormatBundle'),
|
14 |
-
dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels']),
|
15 |
-
]
|
16 |
-
test_pipeline = [
|
17 |
-
dict(type='LoadImageFromFile'),
|
18 |
-
dict(
|
19 |
-
type='MultiScaleFlipAug',
|
20 |
-
img_scale=(2048, 1024),
|
21 |
-
flip=False,
|
22 |
-
transforms=[
|
23 |
-
dict(type='Resize', keep_ratio=True),
|
24 |
-
dict(type='RandomFlip'),
|
25 |
-
dict(type='Normalize', **img_norm_cfg),
|
26 |
-
dict(type='Pad', size_divisor=32),
|
27 |
-
dict(type='ImageToTensor', keys=['img']),
|
28 |
-
dict(type='Collect', keys=['img']),
|
29 |
-
])
|
30 |
-
]
|
31 |
-
data = dict(
|
32 |
-
samples_per_gpu=1,
|
33 |
-
workers_per_gpu=2,
|
34 |
-
train=dict(
|
35 |
-
type='RepeatDataset',
|
36 |
-
times=8,
|
37 |
-
dataset=dict(
|
38 |
-
type=dataset_type,
|
39 |
-
ann_file=data_root +
|
40 |
-
'annotations/instancesonly_filtered_gtFine_train.json',
|
41 |
-
img_prefix=data_root + 'leftImg8bit/train/',
|
42 |
-
pipeline=train_pipeline)),
|
43 |
-
val=dict(
|
44 |
-
type=dataset_type,
|
45 |
-
ann_file=data_root +
|
46 |
-
'annotations/instancesonly_filtered_gtFine_val.json',
|
47 |
-
img_prefix=data_root + 'leftImg8bit/val/',
|
48 |
-
pipeline=test_pipeline),
|
49 |
-
test=dict(
|
50 |
-
type=dataset_type,
|
51 |
-
ann_file=data_root +
|
52 |
-
'annotations/instancesonly_filtered_gtFine_test.json',
|
53 |
-
img_prefix=data_root + 'leftImg8bit/test/',
|
54 |
-
pipeline=test_pipeline))
|
55 |
-
evaluation = dict(interval=1, metric='bbox')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/cascade_rcnn/cascade_rcnn_r101_fpn_1x_coco.py
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
_base_ = './cascade_rcnn_r50_fpn_1x_coco.py'
|
2 |
-
model = dict(pretrained='torchvision://resnet101', backbone=dict(depth=101))
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/ccnet/ccnet_r50-d8_512x512_20k_voc12aug.py
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
_base_ = [
|
2 |
-
'../_base_/models/ccnet_r50-d8.py',
|
3 |
-
'../_base_/datasets/pascal_voc12_aug.py', '../_base_/default_runtime.py',
|
4 |
-
'../_base_/schedules/schedule_20k.py'
|
5 |
-
]
|
6 |
-
model = dict(
|
7 |
-
decode_head=dict(num_classes=21), auxiliary_head=dict(num_classes=21))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3plus/deeplabv3plus_r101-d16-mg124_512x1024_40k_cityscapes.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
_base_ = './deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py'
|
2 |
-
model = dict(
|
3 |
-
pretrained='open-mmlab://resnet101_v1c',
|
4 |
-
backbone=dict(
|
5 |
-
depth=101,
|
6 |
-
dilations=(1, 1, 1, 2),
|
7 |
-
strides=(1, 2, 2, 1),
|
8 |
-
multi_grid=(1, 2, 4)),
|
9 |
-
decode_head=dict(
|
10 |
-
dilations=(1, 6, 12, 18),
|
11 |
-
sampler=dict(type='OHEMPixelSampler', min_kept=100000)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-123/ImageNet-Editing/editing_diffusion/CLIP/model-card.md
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
# Model Card: CLIP
|
2 |
-
|
3 |
-
Inspired by [Model Cards for Model Reporting (Mitchell et al.)](https://arxiv.org/abs/1810.03993) and [Lessons from Archives (Jo & Gebru)](https://arxiv.org/pdf/1912.10389.pdf), we’re providing some accompanying information about the multimodal model.
|
4 |
-
|
5 |
-
## Model Details
|
6 |
-
|
7 |
-
The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within.
|
8 |
-
|
9 |
-
### Model Date
|
10 |
-
|
11 |
-
January 2021
|
12 |
-
|
13 |
-
### Model Type
|
14 |
-
|
15 |
-
The base model uses a ResNet50 with several modifications as an image encoder and uses a masked self-attention Transformer as a text encoder. These encoders are trained to maximize the similarity of (image, text) pairs via a contrastive loss. There is also a variant of the model where the ResNet image encoder is replaced with a Vision Transformer.
|
16 |
-
|
17 |
-
### Model Versions
|
18 |
-
|
19 |
-
Initially, we’ve released one CLIP model based on the Vision Transformer architecture equivalent to ViT-B/32, along with the RN50 model, using the architecture equivalent to ResNet-50.
|
20 |
-
|
21 |
-
As part of the staged release process, we have also released the RN101 model, as well as RN50x4, a RN50 scaled up 4x according to the [EfficientNet](https://arxiv.org/abs/1905.11946) scaling rule. In July 2021, we additionally released the RN50x16 and ViT-B/16 models.
|
22 |
-
|
23 |
-
Please see the paper linked below for further details about their specification.
|
24 |
-
|
25 |
-
### Documents
|
26 |
-
|
27 |
-
- [Blog Post](https://openai.com/blog/clip/)
|
28 |
-
- [CLIP Paper](https://arxiv.org/abs/2103.00020)
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
## Model Use
|
33 |
-
|
34 |
-
### Intended Use
|
35 |
-
|
36 |
-
The model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such models - the CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis.
|
37 |
-
|
38 |
-
#### Primary intended uses
|
39 |
-
|
40 |
-
The primary intended users of these models are AI researchers.
|
41 |
-
|
42 |
-
We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of computer vision models.
|
43 |
-
|
44 |
-
### Out-of-Scope Use Cases
|
45 |
-
|
46 |
-
**Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful.
|
47 |
-
|
48 |
-
Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.
|
49 |
-
|
50 |
-
Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
## Data
|
55 |
-
|
56 |
-
The model was trained on publicly available image-caption data. This was done through a combination of crawling a handful of websites and using commonly-used pre-existing image datasets such as [YFCC100M](http://projects.dfki.uni-kl.de/yfcc100m/). A large portion of the data comes from our crawling of the internet. This means that the data is more representative of people and societies most connected to the internet which tend to skew towards more developed nations, and younger, male users.
|
57 |
-
|
58 |
-
### Data Mission Statement
|
59 |
-
|
60 |
-
Our goal with building this dataset was to test out robustness and generalizability in computer vision tasks. As a result, the focus was on gathering large quantities of data from different publicly-available internet data sources. The data was gathered in a mostly non-interventionist manner. However, we only crawled websites that had policies against excessively violent and adult images and allowed us to filter out such content. We do not intend for this dataset to be used as the basis for any commercial or deployed model and will not be releasing the dataset.
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
## Performance and Limitations
|
65 |
-
|
66 |
-
### Performance
|
67 |
-
|
68 |
-
We have evaluated the performance of CLIP on a wide range of benchmarks across a variety of computer vision datasets such as OCR to texture recognition to fine-grained classification. The paper describes model performance on the following datasets:
|
69 |
-
|
70 |
-
- Food101
|
71 |
-
- CIFAR10
|
72 |
-
- CIFAR100
|
73 |
-
- Birdsnap
|
74 |
-
- SUN397
|
75 |
-
- Stanford Cars
|
76 |
-
- FGVC Aircraft
|
77 |
-
- VOC2007
|
78 |
-
- DTD
|
79 |
-
- Oxford-IIIT Pet dataset
|
80 |
-
- Caltech101
|
81 |
-
- Flowers102
|
82 |
-
- MNIST
|
83 |
-
- SVHN
|
84 |
-
- IIIT5K
|
85 |
-
- Hateful Memes
|
86 |
-
- SST-2
|
87 |
-
- UCF101
|
88 |
-
- Kinetics700
|
89 |
-
- Country211
|
90 |
-
- CLEVR Counting
|
91 |
-
- KITTI Distance
|
92 |
-
- STL-10
|
93 |
-
- RareAct
|
94 |
-
- Flickr30
|
95 |
-
- MSCOCO
|
96 |
-
- ImageNet
|
97 |
-
- ImageNet-A
|
98 |
-
- ImageNet-R
|
99 |
-
- ImageNet Sketch
|
100 |
-
- ObjectNet (ImageNet Overlap)
|
101 |
-
- Youtube-BB
|
102 |
-
- ImageNet-Vid
|
103 |
-
|
104 |
-
## Limitations
|
105 |
-
|
106 |
-
CLIP and our analysis of it have a number of limitations. CLIP currently struggles with respect to certain tasks such as fine grained classification and counting objects. CLIP also poses issues with regards to fairness and bias which we discuss in the paper and briefly in the next section. Additionally, our approach to testing CLIP also has an important limitation- in many cases we have used linear probes to evaluate the performance of CLIP and there is evidence suggesting that linear probes can underestimate model performance.
|
107 |
-
|
108 |
-
### Bias and Fairness
|
109 |
-
|
110 |
-
We find that the performance of CLIP - and the specific biases it exhibits - can depend significantly on class design and the choices one makes for categories to include and exclude. We tested the risk of certain kinds of denigration with CLIP by classifying images of people from [Fairface](https://arxiv.org/abs/1908.04913) into crime-related and non-human animal categories. We found significant disparities with respect to race and gender. Additionally, we found that these disparities could shift based on how the classes were constructed. (Details captured in the Broader Impacts Section in the paper).
|
111 |
-
|
112 |
-
We also tested the performance of CLIP on gender, race and age classification using the Fairface dataset (We default to using race categories as they are constructed in the Fairface dataset.) in order to assess quality of performance across different demographics. We found accuracy >96% across all races for gender classification with ‘Middle Eastern’ having the highest accuracy (98.4%) and ‘White’ having the lowest (96.5%). Additionally, CLIP averaged ~93% for racial classification and ~63% for age classification. Our use of evaluations to test for gender, race and age classification as well as denigration harms is simply to evaluate performance of the model across people and surface potential risks and not to demonstrate an endorsement/enthusiasm for such tasks.
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
## Feedback
|
117 |
-
|
118 |
-
### Where to send questions or comments about the model
|
119 |
-
|
120 |
-
Please use [this Google Form](https://forms.gle/Uv7afRH5dvY34ZEs9)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/evaluations/evaluation.py
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import glob
|
3 |
-
import shutil
|
4 |
-
import lpips
|
5 |
-
import numpy as np
|
6 |
-
import argparse
|
7 |
-
from PIL import Image
|
8 |
-
from skimage.metrics import structural_similarity as ssim
|
9 |
-
from skimage.metrics import peak_signal_noise_ratio as psnr
|
10 |
-
from dataloader.image_folder import make_dataset
|
11 |
-
from util import util
|
12 |
-
import torch
|
13 |
-
|
14 |
-
parser = argparse.ArgumentParser(description='Image quality evaluations on the dataset')
|
15 |
-
parser.add_argument('--gt_path', type=str, default='../results/', help='path to original gt data')
|
16 |
-
parser.add_argument('--g_path', type=str, default='../results.', help='path to the generated data')
|
17 |
-
parser.add_argument('--save_path', type=str, default=None, help='path to save the best results')
|
18 |
-
parser.add_argument('--center', action='store_true', help='only calculate the center masked regions for the image quality')
|
19 |
-
parser.add_argument('--num_test', type=int, default=0, help='how many examples to load for testing')
|
20 |
-
|
21 |
-
args = parser.parse_args()
|
22 |
-
lpips_alex = lpips.LPIPS(net='alex')
|
23 |
-
|
24 |
-
|
25 |
-
def calculate_score(img_gt, img_test):
|
26 |
-
"""
|
27 |
-
function to calculate the image quality score
|
28 |
-
:param img_gt: original image
|
29 |
-
:param img_test: generated image
|
30 |
-
:return: mae, ssim, psnr
|
31 |
-
"""
|
32 |
-
|
33 |
-
l1loss = np.mean(np.abs(img_gt-img_test))
|
34 |
-
|
35 |
-
psnr_score = psnr(img_gt, img_test, data_range=1)
|
36 |
-
|
37 |
-
ssim_score = ssim(img_gt, img_test, multichannel=True, data_range=1, win_size=11)
|
38 |
-
|
39 |
-
lpips_dis = lpips_alex(torch.from_numpy(img_gt).permute(2, 0, 1), torch.from_numpy(img_test).permute(2, 0, 1), normalize=True)
|
40 |
-
|
41 |
-
return l1loss, ssim_score, psnr_score, lpips_dis.data.numpy().item()
|
42 |
-
|
43 |
-
|
44 |
-
if __name__ == '__main__':
|
45 |
-
gt_paths, gt_size = make_dataset(args.gt_path)
|
46 |
-
g_paths, g_size = make_dataset(args.g_path)
|
47 |
-
|
48 |
-
l1losses = []
|
49 |
-
ssims = []
|
50 |
-
psnrs = []
|
51 |
-
lpipses = []
|
52 |
-
|
53 |
-
size = args.num_test if args.num_test > 0 else gt_size
|
54 |
-
|
55 |
-
for i in range(size):
|
56 |
-
gt_img = Image.open(gt_paths[i + 0*2000]).resize([256, 256]).convert('RGB')
|
57 |
-
gt_numpy = np.array(gt_img).astype(np.float32) / 255.0
|
58 |
-
if args.center:
|
59 |
-
gt_numpy = gt_numpy[64:192, 64:192, :]
|
60 |
-
|
61 |
-
l1loss_sample = 1000
|
62 |
-
ssim_sample = 0
|
63 |
-
psnr_sample = 0
|
64 |
-
lpips_sample = 1000
|
65 |
-
|
66 |
-
name = gt_paths[i + 0*2000].split('/')[-1].split(".")[0] + "*"
|
67 |
-
g_paths = sorted(glob.glob(os.path.join(args.g_path, name)))
|
68 |
-
num_files = len(g_paths)
|
69 |
-
|
70 |
-
for j in range(num_files):
|
71 |
-
index = j
|
72 |
-
try:
|
73 |
-
g_img = Image.open(g_paths[j]).resize([256, 256]).convert('RGB')
|
74 |
-
g_numpy = np.array(g_img).astype(np.float32) / 255.0
|
75 |
-
if args.center:
|
76 |
-
g_numpy = g_numpy[64:192, 64:192, :]
|
77 |
-
l1loss, ssim_score, psnr_score, lpips_score = calculate_score(gt_numpy, g_numpy)
|
78 |
-
if l1loss - ssim_score - psnr_score + lpips_score < l1loss_sample - ssim_sample - psnr_sample + lpips_sample:
|
79 |
-
l1loss_sample, ssim_sample, psnr_sample, lpips_sample = l1loss, ssim_score, psnr_score, lpips_score
|
80 |
-
best_index = index
|
81 |
-
except:
|
82 |
-
print(g_paths[index])
|
83 |
-
|
84 |
-
if l1loss_sample != 1000 and ssim_sample !=0 and psnr_sample != 0:
|
85 |
-
print(g_paths[best_index])
|
86 |
-
print(l1loss_sample, ssim_sample, psnr_sample, lpips_sample)
|
87 |
-
l1losses.append(l1loss_sample)
|
88 |
-
ssims.append(ssim_sample)
|
89 |
-
psnrs.append(psnr_sample)
|
90 |
-
lpipses.append(lpips_sample)
|
91 |
-
|
92 |
-
if args.save_path is not None:
|
93 |
-
util.mkdir(args.save_path)
|
94 |
-
shutil.copy(g_paths[best_index], args.save_path)
|
95 |
-
|
96 |
-
print('{:>10},{:>10},{:>10},{:>10}'.format('l1loss', 'SSIM', 'PSNR', 'LPIPS'))
|
97 |
-
print('{:10.4f},{:10.4f},{:10.4f},{:10.4f}'.format(np.mean(l1losses), np.mean(ssims), np.mean(psnrs), np.mean(lpipses)))
|
98 |
-
print('{:10.4f},{:10.4f},{:10.4f},{:10.4f}'.format(np.var(l1losses), np.var(ssims), np.var(psnrs), np.var(lpipses)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/model/stylegan_ops/fused_bias_act.cpp
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
#include <torch/extension.h>
|
2 |
-
|
3 |
-
|
4 |
-
torch::Tensor fused_bias_act_op(const torch::Tensor& input, const torch::Tensor& bias, const torch::Tensor& refer,
|
5 |
-
int act, int grad, float alpha, float scale);
|
6 |
-
|
7 |
-
#define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
|
8 |
-
#define CHECK_CONTIGUOUS(x) TORCH_CHECK(x.is_contiguous(), #x " must be contiguous")
|
9 |
-
#define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)
|
10 |
-
|
11 |
-
torch::Tensor fused_bias_act(const torch::Tensor& input, const torch::Tensor& bias, const torch::Tensor& refer,
|
12 |
-
int act, int grad, float alpha, float scale) {
|
13 |
-
CHECK_CUDA(input);
|
14 |
-
CHECK_CUDA(bias);
|
15 |
-
|
16 |
-
return fused_bias_act_op(input, bias, refer, act, grad, alpha, scale);
|
17 |
-
}
|
18 |
-
|
19 |
-
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
|
20 |
-
m.def("fused_bias_act", &fused_bias_act, "fused bias act (CUDA)");
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AnthonyTruchetPoC/persistent-docker/start_streamlit.sh
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
#!/bin/bash
|
2 |
-
set -e
|
3 |
-
|
4 |
-
mkdir -p $APP_DATA $HF_HOME
|
5 |
-
|
6 |
-
streamlit run \
|
7 |
-
--server.enableXsrfProtection=true \
|
8 |
-
--server.fileWatcherType=auto \
|
9 |
-
$APP_CODE/apps/streamlit_demo.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/resolution/legacy/resolver.py
DELETED
@@ -1,600 +0,0 @@
|
|
1 |
-
"""Dependency Resolution
|
2 |
-
|
3 |
-
The dependency resolution in pip is performed as follows:
|
4 |
-
|
5 |
-
for top-level requirements:
|
6 |
-
a. only one spec allowed per project, regardless of conflicts or not.
|
7 |
-
otherwise a "double requirement" exception is raised
|
8 |
-
b. they override sub-dependency requirements.
|
9 |
-
for sub-dependencies
|
10 |
-
a. "first found, wins" (where the order is breadth first)
|
11 |
-
"""
|
12 |
-
|
13 |
-
# The following comment should be removed at some point in the future.
|
14 |
-
# mypy: strict-optional=False
|
15 |
-
|
16 |
-
import logging
|
17 |
-
import sys
|
18 |
-
from collections import defaultdict
|
19 |
-
from itertools import chain
|
20 |
-
from typing import DefaultDict, Iterable, List, Optional, Set, Tuple
|
21 |
-
|
22 |
-
from pip._vendor.packaging import specifiers
|
23 |
-
from pip._vendor.packaging.requirements import Requirement
|
24 |
-
|
25 |
-
from pip._internal.cache import WheelCache
|
26 |
-
from pip._internal.exceptions import (
|
27 |
-
BestVersionAlreadyInstalled,
|
28 |
-
DistributionNotFound,
|
29 |
-
HashError,
|
30 |
-
HashErrors,
|
31 |
-
InstallationError,
|
32 |
-
NoneMetadataError,
|
33 |
-
UnsupportedPythonVersion,
|
34 |
-
)
|
35 |
-
from pip._internal.index.package_finder import PackageFinder
|
36 |
-
from pip._internal.metadata import BaseDistribution
|
37 |
-
from pip._internal.models.link import Link
|
38 |
-
from pip._internal.models.wheel import Wheel
|
39 |
-
from pip._internal.operations.prepare import RequirementPreparer
|
40 |
-
from pip._internal.req.req_install import (
|
41 |
-
InstallRequirement,
|
42 |
-
check_invalid_constraint_type,
|
43 |
-
)
|
44 |
-
from pip._internal.req.req_set import RequirementSet
|
45 |
-
from pip._internal.resolution.base import BaseResolver, InstallRequirementProvider
|
46 |
-
from pip._internal.utils import compatibility_tags
|
47 |
-
from pip._internal.utils.compatibility_tags import get_supported
|
48 |
-
from pip._internal.utils.direct_url_helpers import direct_url_from_link
|
49 |
-
from pip._internal.utils.logging import indent_log
|
50 |
-
from pip._internal.utils.misc import normalize_version_info
|
51 |
-
from pip._internal.utils.packaging import check_requires_python
|
52 |
-
|
53 |
-
logger = logging.getLogger(__name__)
|
54 |
-
|
55 |
-
DiscoveredDependencies = DefaultDict[str, List[InstallRequirement]]
|
56 |
-
|
57 |
-
|
58 |
-
def _check_dist_requires_python(
|
59 |
-
dist: BaseDistribution,
|
60 |
-
version_info: Tuple[int, int, int],
|
61 |
-
ignore_requires_python: bool = False,
|
62 |
-
) -> None:
|
63 |
-
"""
|
64 |
-
Check whether the given Python version is compatible with a distribution's
|
65 |
-
"Requires-Python" value.
|
66 |
-
|
67 |
-
:param version_info: A 3-tuple of ints representing the Python
|
68 |
-
major-minor-micro version to check.
|
69 |
-
:param ignore_requires_python: Whether to ignore the "Requires-Python"
|
70 |
-
value if the given Python version isn't compatible.
|
71 |
-
|
72 |
-
:raises UnsupportedPythonVersion: When the given Python version isn't
|
73 |
-
compatible.
|
74 |
-
"""
|
75 |
-
# This idiosyncratically converts the SpecifierSet to str and let
|
76 |
-
# check_requires_python then parse it again into SpecifierSet. But this
|
77 |
-
# is the legacy resolver so I'm just not going to bother refactoring.
|
78 |
-
try:
|
79 |
-
requires_python = str(dist.requires_python)
|
80 |
-
except FileNotFoundError as e:
|
81 |
-
raise NoneMetadataError(dist, str(e))
|
82 |
-
try:
|
83 |
-
is_compatible = check_requires_python(
|
84 |
-
requires_python,
|
85 |
-
version_info=version_info,
|
86 |
-
)
|
87 |
-
except specifiers.InvalidSpecifier as exc:
|
88 |
-
logger.warning(
|
89 |
-
"Package %r has an invalid Requires-Python: %s", dist.raw_name, exc
|
90 |
-
)
|
91 |
-
return
|
92 |
-
|
93 |
-
if is_compatible:
|
94 |
-
return
|
95 |
-
|
96 |
-
version = ".".join(map(str, version_info))
|
97 |
-
if ignore_requires_python:
|
98 |
-
logger.debug(
|
99 |
-
"Ignoring failed Requires-Python check for package %r: %s not in %r",
|
100 |
-
dist.raw_name,
|
101 |
-
version,
|
102 |
-
requires_python,
|
103 |
-
)
|
104 |
-
return
|
105 |
-
|
106 |
-
raise UnsupportedPythonVersion(
|
107 |
-
"Package {!r} requires a different Python: {} not in {!r}".format(
|
108 |
-
dist.raw_name, version, requires_python
|
109 |
-
)
|
110 |
-
)
|
111 |
-
|
112 |
-
|
113 |
-
class Resolver(BaseResolver):
|
114 |
-
"""Resolves which packages need to be installed/uninstalled to perform \
|
115 |
-
the requested operation without breaking the requirements of any package.
|
116 |
-
"""
|
117 |
-
|
118 |
-
_allowed_strategies = {"eager", "only-if-needed", "to-satisfy-only"}
|
119 |
-
|
120 |
-
def __init__(
|
121 |
-
self,
|
122 |
-
preparer: RequirementPreparer,
|
123 |
-
finder: PackageFinder,
|
124 |
-
wheel_cache: Optional[WheelCache],
|
125 |
-
make_install_req: InstallRequirementProvider,
|
126 |
-
use_user_site: bool,
|
127 |
-
ignore_dependencies: bool,
|
128 |
-
ignore_installed: bool,
|
129 |
-
ignore_requires_python: bool,
|
130 |
-
force_reinstall: bool,
|
131 |
-
upgrade_strategy: str,
|
132 |
-
py_version_info: Optional[Tuple[int, ...]] = None,
|
133 |
-
) -> None:
|
134 |
-
super().__init__()
|
135 |
-
assert upgrade_strategy in self._allowed_strategies
|
136 |
-
|
137 |
-
if py_version_info is None:
|
138 |
-
py_version_info = sys.version_info[:3]
|
139 |
-
else:
|
140 |
-
py_version_info = normalize_version_info(py_version_info)
|
141 |
-
|
142 |
-
self._py_version_info = py_version_info
|
143 |
-
|
144 |
-
self.preparer = preparer
|
145 |
-
self.finder = finder
|
146 |
-
self.wheel_cache = wheel_cache
|
147 |
-
|
148 |
-
self.upgrade_strategy = upgrade_strategy
|
149 |
-
self.force_reinstall = force_reinstall
|
150 |
-
self.ignore_dependencies = ignore_dependencies
|
151 |
-
self.ignore_installed = ignore_installed
|
152 |
-
self.ignore_requires_python = ignore_requires_python
|
153 |
-
self.use_user_site = use_user_site
|
154 |
-
self._make_install_req = make_install_req
|
155 |
-
|
156 |
-
self._discovered_dependencies: DiscoveredDependencies = defaultdict(list)
|
157 |
-
|
158 |
-
def resolve(
|
159 |
-
self, root_reqs: List[InstallRequirement], check_supported_wheels: bool
|
160 |
-
) -> RequirementSet:
|
161 |
-
"""Resolve what operations need to be done
|
162 |
-
|
163 |
-
As a side-effect of this method, the packages (and their dependencies)
|
164 |
-
are downloaded, unpacked and prepared for installation. This
|
165 |
-
preparation is done by ``pip.operations.prepare``.
|
166 |
-
|
167 |
-
Once PyPI has static dependency metadata available, it would be
|
168 |
-
possible to move the preparation to become a step separated from
|
169 |
-
dependency resolution.
|
170 |
-
"""
|
171 |
-
requirement_set = RequirementSet(check_supported_wheels=check_supported_wheels)
|
172 |
-
for req in root_reqs:
|
173 |
-
if req.constraint:
|
174 |
-
check_invalid_constraint_type(req)
|
175 |
-
self._add_requirement_to_set(requirement_set, req)
|
176 |
-
|
177 |
-
# Actually prepare the files, and collect any exceptions. Most hash
|
178 |
-
# exceptions cannot be checked ahead of time, because
|
179 |
-
# _populate_link() needs to be called before we can make decisions
|
180 |
-
# based on link type.
|
181 |
-
discovered_reqs: List[InstallRequirement] = []
|
182 |
-
hash_errors = HashErrors()
|
183 |
-
for req in chain(requirement_set.all_requirements, discovered_reqs):
|
184 |
-
try:
|
185 |
-
discovered_reqs.extend(self._resolve_one(requirement_set, req))
|
186 |
-
except HashError as exc:
|
187 |
-
exc.req = req
|
188 |
-
hash_errors.append(exc)
|
189 |
-
|
190 |
-
if hash_errors:
|
191 |
-
raise hash_errors
|
192 |
-
|
193 |
-
return requirement_set
|
194 |
-
|
195 |
-
def _add_requirement_to_set(
|
196 |
-
self,
|
197 |
-
requirement_set: RequirementSet,
|
198 |
-
install_req: InstallRequirement,
|
199 |
-
parent_req_name: Optional[str] = None,
|
200 |
-
extras_requested: Optional[Iterable[str]] = None,
|
201 |
-
) -> Tuple[List[InstallRequirement], Optional[InstallRequirement]]:
|
202 |
-
"""Add install_req as a requirement to install.
|
203 |
-
|
204 |
-
:param parent_req_name: The name of the requirement that needed this
|
205 |
-
added. The name is used because when multiple unnamed requirements
|
206 |
-
resolve to the same name, we could otherwise end up with dependency
|
207 |
-
links that point outside the Requirements set. parent_req must
|
208 |
-
already be added. Note that None implies that this is a user
|
209 |
-
supplied requirement, vs an inferred one.
|
210 |
-
:param extras_requested: an iterable of extras used to evaluate the
|
211 |
-
environment markers.
|
212 |
-
:return: Additional requirements to scan. That is either [] if
|
213 |
-
the requirement is not applicable, or [install_req] if the
|
214 |
-
requirement is applicable and has just been added.
|
215 |
-
"""
|
216 |
-
# If the markers do not match, ignore this requirement.
|
217 |
-
if not install_req.match_markers(extras_requested):
|
218 |
-
logger.info(
|
219 |
-
"Ignoring %s: markers '%s' don't match your environment",
|
220 |
-
install_req.name,
|
221 |
-
install_req.markers,
|
222 |
-
)
|
223 |
-
return [], None
|
224 |
-
|
225 |
-
# If the wheel is not supported, raise an error.
|
226 |
-
# Should check this after filtering out based on environment markers to
|
227 |
-
# allow specifying different wheels based on the environment/OS, in a
|
228 |
-
# single requirements file.
|
229 |
-
if install_req.link and install_req.link.is_wheel:
|
230 |
-
wheel = Wheel(install_req.link.filename)
|
231 |
-
tags = compatibility_tags.get_supported()
|
232 |
-
if requirement_set.check_supported_wheels and not wheel.supported(tags):
|
233 |
-
raise InstallationError(
|
234 |
-
"{} is not a supported wheel on this platform.".format(
|
235 |
-
wheel.filename
|
236 |
-
)
|
237 |
-
)
|
238 |
-
|
239 |
-
# This next bit is really a sanity check.
|
240 |
-
assert (
|
241 |
-
not install_req.user_supplied or parent_req_name is None
|
242 |
-
), "a user supplied req shouldn't have a parent"
|
243 |
-
|
244 |
-
# Unnamed requirements are scanned again and the requirement won't be
|
245 |
-
# added as a dependency until after scanning.
|
246 |
-
if not install_req.name:
|
247 |
-
requirement_set.add_unnamed_requirement(install_req)
|
248 |
-
return [install_req], None
|
249 |
-
|
250 |
-
try:
|
251 |
-
existing_req: Optional[
|
252 |
-
InstallRequirement
|
253 |
-
] = requirement_set.get_requirement(install_req.name)
|
254 |
-
except KeyError:
|
255 |
-
existing_req = None
|
256 |
-
|
257 |
-
has_conflicting_requirement = (
|
258 |
-
parent_req_name is None
|
259 |
-
and existing_req
|
260 |
-
and not existing_req.constraint
|
261 |
-
and existing_req.extras == install_req.extras
|
262 |
-
and existing_req.req
|
263 |
-
and install_req.req
|
264 |
-
and existing_req.req.specifier != install_req.req.specifier
|
265 |
-
)
|
266 |
-
if has_conflicting_requirement:
|
267 |
-
raise InstallationError(
|
268 |
-
"Double requirement given: {} (already in {}, name={!r})".format(
|
269 |
-
install_req, existing_req, install_req.name
|
270 |
-
)
|
271 |
-
)
|
272 |
-
|
273 |
-
# When no existing requirement exists, add the requirement as a
|
274 |
-
# dependency and it will be scanned again after.
|
275 |
-
if not existing_req:
|
276 |
-
requirement_set.add_named_requirement(install_req)
|
277 |
-
# We'd want to rescan this requirement later
|
278 |
-
return [install_req], install_req
|
279 |
-
|
280 |
-
# Assume there's no need to scan, and that we've already
|
281 |
-
# encountered this for scanning.
|
282 |
-
if install_req.constraint or not existing_req.constraint:
|
283 |
-
return [], existing_req
|
284 |
-
|
285 |
-
does_not_satisfy_constraint = install_req.link and not (
|
286 |
-
existing_req.link and install_req.link.path == existing_req.link.path
|
287 |
-
)
|
288 |
-
if does_not_satisfy_constraint:
|
289 |
-
raise InstallationError(
|
290 |
-
"Could not satisfy constraints for '{}': "
|
291 |
-
"installation from path or url cannot be "
|
292 |
-
"constrained to a version".format(install_req.name)
|
293 |
-
)
|
294 |
-
# If we're now installing a constraint, mark the existing
|
295 |
-
# object for real installation.
|
296 |
-
existing_req.constraint = False
|
297 |
-
# If we're now installing a user supplied requirement,
|
298 |
-
# mark the existing object as such.
|
299 |
-
if install_req.user_supplied:
|
300 |
-
existing_req.user_supplied = True
|
301 |
-
existing_req.extras = tuple(
|
302 |
-
sorted(set(existing_req.extras) | set(install_req.extras))
|
303 |
-
)
|
304 |
-
logger.debug(
|
305 |
-
"Setting %s extras to: %s",
|
306 |
-
existing_req,
|
307 |
-
existing_req.extras,
|
308 |
-
)
|
309 |
-
# Return the existing requirement for addition to the parent and
|
310 |
-
# scanning again.
|
311 |
-
return [existing_req], existing_req
|
312 |
-
|
313 |
-
def _is_upgrade_allowed(self, req: InstallRequirement) -> bool:
|
314 |
-
if self.upgrade_strategy == "to-satisfy-only":
|
315 |
-
return False
|
316 |
-
elif self.upgrade_strategy == "eager":
|
317 |
-
return True
|
318 |
-
else:
|
319 |
-
assert self.upgrade_strategy == "only-if-needed"
|
320 |
-
return req.user_supplied or req.constraint
|
321 |
-
|
322 |
-
def _set_req_to_reinstall(self, req: InstallRequirement) -> None:
|
323 |
-
"""
|
324 |
-
Set a requirement to be installed.
|
325 |
-
"""
|
326 |
-
# Don't uninstall the conflict if doing a user install and the
|
327 |
-
# conflict is not a user install.
|
328 |
-
if not self.use_user_site or req.satisfied_by.in_usersite:
|
329 |
-
req.should_reinstall = True
|
330 |
-
req.satisfied_by = None
|
331 |
-
|
332 |
-
def _check_skip_installed(
|
333 |
-
self, req_to_install: InstallRequirement
|
334 |
-
) -> Optional[str]:
|
335 |
-
"""Check if req_to_install should be skipped.
|
336 |
-
|
337 |
-
This will check if the req is installed, and whether we should upgrade
|
338 |
-
or reinstall it, taking into account all the relevant user options.
|
339 |
-
|
340 |
-
After calling this req_to_install will only have satisfied_by set to
|
341 |
-
None if the req_to_install is to be upgraded/reinstalled etc. Any
|
342 |
-
other value will be a dist recording the current thing installed that
|
343 |
-
satisfies the requirement.
|
344 |
-
|
345 |
-
Note that for vcs urls and the like we can't assess skipping in this
|
346 |
-
routine - we simply identify that we need to pull the thing down,
|
347 |
-
then later on it is pulled down and introspected to assess upgrade/
|
348 |
-
reinstalls etc.
|
349 |
-
|
350 |
-
:return: A text reason for why it was skipped, or None.
|
351 |
-
"""
|
352 |
-
if self.ignore_installed:
|
353 |
-
return None
|
354 |
-
|
355 |
-
req_to_install.check_if_exists(self.use_user_site)
|
356 |
-
if not req_to_install.satisfied_by:
|
357 |
-
return None
|
358 |
-
|
359 |
-
if self.force_reinstall:
|
360 |
-
self._set_req_to_reinstall(req_to_install)
|
361 |
-
return None
|
362 |
-
|
363 |
-
if not self._is_upgrade_allowed(req_to_install):
|
364 |
-
if self.upgrade_strategy == "only-if-needed":
|
365 |
-
return "already satisfied, skipping upgrade"
|
366 |
-
return "already satisfied"
|
367 |
-
|
368 |
-
# Check for the possibility of an upgrade. For link-based
|
369 |
-
# requirements we have to pull the tree down and inspect to assess
|
370 |
-
# the version #, so it's handled way down.
|
371 |
-
if not req_to_install.link:
|
372 |
-
try:
|
373 |
-
self.finder.find_requirement(req_to_install, upgrade=True)
|
374 |
-
except BestVersionAlreadyInstalled:
|
375 |
-
# Then the best version is installed.
|
376 |
-
return "already up-to-date"
|
377 |
-
except DistributionNotFound:
|
378 |
-
# No distribution found, so we squash the error. It will
|
379 |
-
# be raised later when we re-try later to do the install.
|
380 |
-
# Why don't we just raise here?
|
381 |
-
pass
|
382 |
-
|
383 |
-
self._set_req_to_reinstall(req_to_install)
|
384 |
-
return None
|
385 |
-
|
386 |
-
def _find_requirement_link(self, req: InstallRequirement) -> Optional[Link]:
|
387 |
-
upgrade = self._is_upgrade_allowed(req)
|
388 |
-
best_candidate = self.finder.find_requirement(req, upgrade)
|
389 |
-
if not best_candidate:
|
390 |
-
return None
|
391 |
-
|
392 |
-
# Log a warning per PEP 592 if necessary before returning.
|
393 |
-
link = best_candidate.link
|
394 |
-
if link.is_yanked:
|
395 |
-
reason = link.yanked_reason or "<none given>"
|
396 |
-
msg = (
|
397 |
-
# Mark this as a unicode string to prevent
|
398 |
-
# "UnicodeEncodeError: 'ascii' codec can't encode character"
|
399 |
-
# in Python 2 when the reason contains non-ascii characters.
|
400 |
-
"The candidate selected for download or install is a "
|
401 |
-
"yanked version: {candidate}\n"
|
402 |
-
"Reason for being yanked: {reason}"
|
403 |
-
).format(candidate=best_candidate, reason=reason)
|
404 |
-
logger.warning(msg)
|
405 |
-
|
406 |
-
return link
|
407 |
-
|
408 |
-
def _populate_link(self, req: InstallRequirement) -> None:
|
409 |
-
"""Ensure that if a link can be found for this, that it is found.
|
410 |
-
|
411 |
-
Note that req.link may still be None - if the requirement is already
|
412 |
-
installed and not needed to be upgraded based on the return value of
|
413 |
-
_is_upgrade_allowed().
|
414 |
-
|
415 |
-
If preparer.require_hashes is True, don't use the wheel cache, because
|
416 |
-
cached wheels, always built locally, have different hashes than the
|
417 |
-
files downloaded from the index server and thus throw false hash
|
418 |
-
mismatches. Furthermore, cached wheels at present have undeterministic
|
419 |
-
contents due to file modification times.
|
420 |
-
"""
|
421 |
-
if req.link is None:
|
422 |
-
req.link = self._find_requirement_link(req)
|
423 |
-
|
424 |
-
if self.wheel_cache is None or self.preparer.require_hashes:
|
425 |
-
return
|
426 |
-
cache_entry = self.wheel_cache.get_cache_entry(
|
427 |
-
link=req.link,
|
428 |
-
package_name=req.name,
|
429 |
-
supported_tags=get_supported(),
|
430 |
-
)
|
431 |
-
if cache_entry is not None:
|
432 |
-
logger.debug("Using cached wheel link: %s", cache_entry.link)
|
433 |
-
if req.link is req.original_link and cache_entry.persistent:
|
434 |
-
req.cached_wheel_source_link = req.link
|
435 |
-
if cache_entry.origin is not None:
|
436 |
-
req.download_info = cache_entry.origin
|
437 |
-
else:
|
438 |
-
# Legacy cache entry that does not have origin.json.
|
439 |
-
# download_info may miss the archive_info.hashes field.
|
440 |
-
req.download_info = direct_url_from_link(
|
441 |
-
req.link, link_is_in_wheel_cache=cache_entry.persistent
|
442 |
-
)
|
443 |
-
req.link = cache_entry.link
|
444 |
-
|
445 |
-
def _get_dist_for(self, req: InstallRequirement) -> BaseDistribution:
|
446 |
-
"""Takes a InstallRequirement and returns a single AbstractDist \
|
447 |
-
representing a prepared variant of the same.
|
448 |
-
"""
|
449 |
-
if req.editable:
|
450 |
-
return self.preparer.prepare_editable_requirement(req)
|
451 |
-
|
452 |
-
# satisfied_by is only evaluated by calling _check_skip_installed,
|
453 |
-
# so it must be None here.
|
454 |
-
assert req.satisfied_by is None
|
455 |
-
skip_reason = self._check_skip_installed(req)
|
456 |
-
|
457 |
-
if req.satisfied_by:
|
458 |
-
return self.preparer.prepare_installed_requirement(req, skip_reason)
|
459 |
-
|
460 |
-
# We eagerly populate the link, since that's our "legacy" behavior.
|
461 |
-
self._populate_link(req)
|
462 |
-
dist = self.preparer.prepare_linked_requirement(req)
|
463 |
-
|
464 |
-
# NOTE
|
465 |
-
# The following portion is for determining if a certain package is
|
466 |
-
# going to be re-installed/upgraded or not and reporting to the user.
|
467 |
-
# This should probably get cleaned up in a future refactor.
|
468 |
-
|
469 |
-
# req.req is only avail after unpack for URL
|
470 |
-
# pkgs repeat check_if_exists to uninstall-on-upgrade
|
471 |
-
# (#14)
|
472 |
-
if not self.ignore_installed:
|
473 |
-
req.check_if_exists(self.use_user_site)
|
474 |
-
|
475 |
-
if req.satisfied_by:
|
476 |
-
should_modify = (
|
477 |
-
self.upgrade_strategy != "to-satisfy-only"
|
478 |
-
or self.force_reinstall
|
479 |
-
or self.ignore_installed
|
480 |
-
or req.link.scheme == "file"
|
481 |
-
)
|
482 |
-
if should_modify:
|
483 |
-
self._set_req_to_reinstall(req)
|
484 |
-
else:
|
485 |
-
logger.info(
|
486 |
-
"Requirement already satisfied (use --upgrade to upgrade): %s",
|
487 |
-
req,
|
488 |
-
)
|
489 |
-
return dist
|
490 |
-
|
491 |
-
def _resolve_one(
|
492 |
-
self,
|
493 |
-
requirement_set: RequirementSet,
|
494 |
-
req_to_install: InstallRequirement,
|
495 |
-
) -> List[InstallRequirement]:
|
496 |
-
"""Prepare a single requirements file.
|
497 |
-
|
498 |
-
:return: A list of additional InstallRequirements to also install.
|
499 |
-
"""
|
500 |
-
# Tell user what we are doing for this requirement:
|
501 |
-
# obtain (editable), skipping, processing (local url), collecting
|
502 |
-
# (remote url or package name)
|
503 |
-
if req_to_install.constraint or req_to_install.prepared:
|
504 |
-
return []
|
505 |
-
|
506 |
-
req_to_install.prepared = True
|
507 |
-
|
508 |
-
# Parse and return dependencies
|
509 |
-
dist = self._get_dist_for(req_to_install)
|
510 |
-
# This will raise UnsupportedPythonVersion if the given Python
|
511 |
-
# version isn't compatible with the distribution's Requires-Python.
|
512 |
-
_check_dist_requires_python(
|
513 |
-
dist,
|
514 |
-
version_info=self._py_version_info,
|
515 |
-
ignore_requires_python=self.ignore_requires_python,
|
516 |
-
)
|
517 |
-
|
518 |
-
more_reqs: List[InstallRequirement] = []
|
519 |
-
|
520 |
-
def add_req(subreq: Requirement, extras_requested: Iterable[str]) -> None:
|
521 |
-
# This idiosyncratically converts the Requirement to str and let
|
522 |
-
# make_install_req then parse it again into Requirement. But this is
|
523 |
-
# the legacy resolver so I'm just not going to bother refactoring.
|
524 |
-
sub_install_req = self._make_install_req(str(subreq), req_to_install)
|
525 |
-
parent_req_name = req_to_install.name
|
526 |
-
to_scan_again, add_to_parent = self._add_requirement_to_set(
|
527 |
-
requirement_set,
|
528 |
-
sub_install_req,
|
529 |
-
parent_req_name=parent_req_name,
|
530 |
-
extras_requested=extras_requested,
|
531 |
-
)
|
532 |
-
if parent_req_name and add_to_parent:
|
533 |
-
self._discovered_dependencies[parent_req_name].append(add_to_parent)
|
534 |
-
more_reqs.extend(to_scan_again)
|
535 |
-
|
536 |
-
with indent_log():
|
537 |
-
# We add req_to_install before its dependencies, so that we
|
538 |
-
# can refer to it when adding dependencies.
|
539 |
-
if not requirement_set.has_requirement(req_to_install.name):
|
540 |
-
# 'unnamed' requirements will get added here
|
541 |
-
# 'unnamed' requirements can only come from being directly
|
542 |
-
# provided by the user.
|
543 |
-
assert req_to_install.user_supplied
|
544 |
-
self._add_requirement_to_set(
|
545 |
-
requirement_set, req_to_install, parent_req_name=None
|
546 |
-
)
|
547 |
-
|
548 |
-
if not self.ignore_dependencies:
|
549 |
-
if req_to_install.extras:
|
550 |
-
logger.debug(
|
551 |
-
"Installing extra requirements: %r",
|
552 |
-
",".join(req_to_install.extras),
|
553 |
-
)
|
554 |
-
missing_requested = sorted(
|
555 |
-
set(req_to_install.extras) - set(dist.iter_provided_extras())
|
556 |
-
)
|
557 |
-
for missing in missing_requested:
|
558 |
-
logger.warning(
|
559 |
-
"%s %s does not provide the extra '%s'",
|
560 |
-
dist.raw_name,
|
561 |
-
dist.version,
|
562 |
-
missing,
|
563 |
-
)
|
564 |
-
|
565 |
-
available_requested = sorted(
|
566 |
-
set(dist.iter_provided_extras()) & set(req_to_install.extras)
|
567 |
-
)
|
568 |
-
for subreq in dist.iter_dependencies(available_requested):
|
569 |
-
add_req(subreq, extras_requested=available_requested)
|
570 |
-
|
571 |
-
return more_reqs
|
572 |
-
|
573 |
-
def get_installation_order(
|
574 |
-
self, req_set: RequirementSet
|
575 |
-
) -> List[InstallRequirement]:
|
576 |
-
"""Create the installation order.
|
577 |
-
|
578 |
-
The installation order is topological - requirements are installed
|
579 |
-
before the requiring thing. We break cycles at an arbitrary point,
|
580 |
-
and make no other guarantees.
|
581 |
-
"""
|
582 |
-
# The current implementation, which we may change at any point
|
583 |
-
# installs the user specified things in the order given, except when
|
584 |
-
# dependencies must come earlier to achieve topological order.
|
585 |
-
order = []
|
586 |
-
ordered_reqs: Set[InstallRequirement] = set()
|
587 |
-
|
588 |
-
def schedule(req: InstallRequirement) -> None:
|
589 |
-
if req.satisfied_by or req in ordered_reqs:
|
590 |
-
return
|
591 |
-
if req.constraint:
|
592 |
-
return
|
593 |
-
ordered_reqs.add(req)
|
594 |
-
for dep in self._discovered_dependencies[req.name]:
|
595 |
-
schedule(dep)
|
596 |
-
order.append(req)
|
597 |
-
|
598 |
-
for install_req in req_set.requirements.values():
|
599 |
-
schedule(install_req)
|
600 |
-
return order
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
from ..common.optim import SGD as optimizer
|
2 |
-
from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier
|
3 |
-
from ..common.data.coco_panoptic_separated import dataloader
|
4 |
-
from ..common.models.panoptic_fpn import model
|
5 |
-
from ..common.train import train
|
6 |
-
|
7 |
-
model.backbone.bottom_up.freeze_at = 2
|
8 |
-
train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Banbri/zcvzcv/src/app/page.tsx
DELETED
@@ -1,43 +0,0 @@
|
|
1 |
-
"use server"
|
2 |
-
|
3 |
-
import Head from "next/head"
|
4 |
-
|
5 |
-
import Main from "./main"
|
6 |
-
import { TooltipProvider } from "@/components/ui/tooltip"
|
7 |
-
import Script from "next/script"
|
8 |
-
// import { Maintenance } from "./interface/maintenance"
|
9 |
-
|
10 |
-
// https://nextjs.org/docs/pages/building-your-application/optimizing/fonts
|
11 |
-
|
12 |
-
export default async function IndexPage({ params: { ownerId } }: { params: { ownerId: string }}) {
|
13 |
-
return (
|
14 |
-
<>
|
15 |
-
<Head>
|
16 |
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
17 |
-
<link rel="preconnect" href="https://fonts.googleapis.com" crossOrigin="anonymous" />
|
18 |
-
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86" />
|
19 |
-
</Head>
|
20 |
-
<main className={
|
21 |
-
`light fixed inset-0 w-screen h-screen flex flex-col items-center
|
22 |
-
bg-zinc-50 text-stone-900 overflow-y-scroll
|
23 |
-
`}>
|
24 |
-
<TooltipProvider delayDuration={100}>
|
25 |
-
|
26 |
-
<Main />
|
27 |
-
{/* <Maintenance /> */}
|
28 |
-
|
29 |
-
</TooltipProvider>
|
30 |
-
<Script src="https://www.googletagmanager.com/gtag/js?id=GTM-WH4MGSHS" />
|
31 |
-
<Script id="google-analytics">
|
32 |
-
{`
|
33 |
-
window.dataLayer = window.dataLayer || [];
|
34 |
-
function gtag(){dataLayer.push(arguments);}
|
35 |
-
gtag('js', new Date());
|
36 |
-
|
37 |
-
gtag('config', 'GTM-WH4MGSHS');
|
38 |
-
`}
|
39 |
-
</Script>
|
40 |
-
</main>
|
41 |
-
</>
|
42 |
-
)
|
43 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/gui_v0.py
DELETED
@@ -1,786 +0,0 @@
|
|
1 |
-
import os, sys, traceback, re
|
2 |
-
|
3 |
-
import json
|
4 |
-
|
5 |
-
now_dir = os.getcwd()
|
6 |
-
sys.path.append(now_dir)
|
7 |
-
from configs.config import Config
|
8 |
-
|
9 |
-
Config = Config()
|
10 |
-
import PySimpleGUI as sg
|
11 |
-
import sounddevice as sd
|
12 |
-
import noisereduce as nr
|
13 |
-
import numpy as np
|
14 |
-
from fairseq import checkpoint_utils
|
15 |
-
import librosa, torch, pyworld, faiss, time, threading
|
16 |
-
import torch.nn.functional as F
|
17 |
-
import torchaudio.transforms as tat
|
18 |
-
import scipy.signal as signal
|
19 |
-
import torchcrepe
|
20 |
-
|
21 |
-
# import matplotlib.pyplot as plt
|
22 |
-
from lib.infer_pack.models import (
|
23 |
-
SynthesizerTrnMs256NSFsid,
|
24 |
-
SynthesizerTrnMs256NSFsid_nono,
|
25 |
-
SynthesizerTrnMs768NSFsid,
|
26 |
-
SynthesizerTrnMs768NSFsid_nono,
|
27 |
-
)
|
28 |
-
from i18n import I18nAuto
|
29 |
-
|
30 |
-
i18n = I18nAuto()
|
31 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
32 |
-
current_dir = os.getcwd()
|
33 |
-
|
34 |
-
|
35 |
-
class RVC:
|
36 |
-
def __init__(
|
37 |
-
self, key, f0_method, hubert_path, pth_path, index_path, npy_path, index_rate
|
38 |
-
) -> None:
|
39 |
-
"""
|
40 |
-
初始化
|
41 |
-
"""
|
42 |
-
try:
|
43 |
-
self.f0_up_key = key
|
44 |
-
self.time_step = 160 / 16000 * 1000
|
45 |
-
self.f0_min = 50
|
46 |
-
self.f0_max = 1100
|
47 |
-
self.f0_mel_min = 1127 * np.log(1 + self.f0_min / 700)
|
48 |
-
self.f0_mel_max = 1127 * np.log(1 + self.f0_max / 700)
|
49 |
-
self.f0_method = f0_method
|
50 |
-
self.sr = 16000
|
51 |
-
self.window = 160
|
52 |
-
|
53 |
-
# Get Torch Device
|
54 |
-
if torch.cuda.is_available():
|
55 |
-
self.torch_device = torch.device(
|
56 |
-
f"cuda:{0 % torch.cuda.device_count()}"
|
57 |
-
)
|
58 |
-
elif torch.backends.mps.is_available():
|
59 |
-
self.torch_device = torch.device("mps")
|
60 |
-
else:
|
61 |
-
self.torch_device = torch.device("cpu")
|
62 |
-
|
63 |
-
if index_rate != 0:
|
64 |
-
self.index = faiss.read_index(index_path)
|
65 |
-
# self.big_npy = np.load(npy_path)
|
66 |
-
self.big_npy = self.index.reconstruct_n(0, self.index.ntotal)
|
67 |
-
print("index search enabled")
|
68 |
-
self.index_rate = index_rate
|
69 |
-
model_path = hubert_path
|
70 |
-
print("load model(s) from {}".format(model_path))
|
71 |
-
models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task(
|
72 |
-
[model_path],
|
73 |
-
suffix="",
|
74 |
-
)
|
75 |
-
self.model = models[0]
|
76 |
-
self.model = self.model.to(device)
|
77 |
-
if Config.is_half:
|
78 |
-
self.model = self.model.half()
|
79 |
-
else:
|
80 |
-
self.model = self.model.float()
|
81 |
-
self.model.eval()
|
82 |
-
cpt = torch.load(pth_path, map_location="cpu")
|
83 |
-
self.tgt_sr = cpt["config"][-1]
|
84 |
-
cpt["config"][-3] = cpt["weight"]["emb_g.weight"].shape[0] # n_spk
|
85 |
-
self.if_f0 = cpt.get("f0", 1)
|
86 |
-
self.version = cpt.get("version", "v1")
|
87 |
-
if self.version == "v1":
|
88 |
-
if self.if_f0 == 1:
|
89 |
-
self.net_g = SynthesizerTrnMs256NSFsid(
|
90 |
-
*cpt["config"], is_half=Config.is_half
|
91 |
-
)
|
92 |
-
else:
|
93 |
-
self.net_g = SynthesizerTrnMs256NSFsid_nono(*cpt["config"])
|
94 |
-
elif self.version == "v2":
|
95 |
-
if self.if_f0 == 1:
|
96 |
-
self.net_g = SynthesizerTrnMs768NSFsid(
|
97 |
-
*cpt["config"], is_half=Config.is_half
|
98 |
-
)
|
99 |
-
else:
|
100 |
-
self.net_g = SynthesizerTrnMs768NSFsid_nono(*cpt["config"])
|
101 |
-
del self.net_g.enc_q
|
102 |
-
print(self.net_g.load_state_dict(cpt["weight"], strict=False))
|
103 |
-
self.net_g.eval().to(device)
|
104 |
-
if Config.is_half:
|
105 |
-
self.net_g = self.net_g.half()
|
106 |
-
else:
|
107 |
-
self.net_g = self.net_g.float()
|
108 |
-
except:
|
109 |
-
print(traceback.format_exc())
|
110 |
-
|
111 |
-
def get_regular_crepe_computation(self, x, f0_min, f0_max, model="full"):
|
112 |
-
batch_size = 512
|
113 |
-
# Compute pitch using first gpu
|
114 |
-
audio = torch.tensor(np.copy(x))[None].float()
|
115 |
-
f0, pd = torchcrepe.predict(
|
116 |
-
audio,
|
117 |
-
self.sr,
|
118 |
-
self.window,
|
119 |
-
f0_min,
|
120 |
-
f0_max,
|
121 |
-
model,
|
122 |
-
batch_size=batch_size,
|
123 |
-
device=self.torch_device,
|
124 |
-
return_periodicity=True,
|
125 |
-
)
|
126 |
-
pd = torchcrepe.filter.median(pd, 3)
|
127 |
-
f0 = torchcrepe.filter.mean(f0, 3)
|
128 |
-
f0[pd < 0.1] = 0
|
129 |
-
f0 = f0[0].cpu().numpy()
|
130 |
-
return f0
|
131 |
-
|
132 |
-
def get_harvest_computation(self, x, f0_min, f0_max):
|
133 |
-
f0, t = pyworld.harvest(
|
134 |
-
x.astype(np.double),
|
135 |
-
fs=self.sr,
|
136 |
-
f0_ceil=f0_max,
|
137 |
-
f0_floor=f0_min,
|
138 |
-
frame_period=10,
|
139 |
-
)
|
140 |
-
f0 = pyworld.stonemask(x.astype(np.double), f0, t, self.sr)
|
141 |
-
f0 = signal.medfilt(f0, 3)
|
142 |
-
return f0
|
143 |
-
|
144 |
-
def get_f0(self, x, f0_up_key, inp_f0=None):
|
145 |
-
# Calculate Padding and f0 details here
|
146 |
-
p_len = x.shape[0] // 512 # For Now This probs doesn't work
|
147 |
-
x_pad = 1
|
148 |
-
f0_min = 50
|
149 |
-
f0_max = 1100
|
150 |
-
f0_mel_min = 1127 * np.log(1 + f0_min / 700)
|
151 |
-
f0_mel_max = 1127 * np.log(1 + f0_max / 700)
|
152 |
-
|
153 |
-
f0 = 0
|
154 |
-
# Here, check f0_methods and get their computations
|
155 |
-
if self.f0_method == "harvest":
|
156 |
-
f0 = self.get_harvest_computation(x, f0_min, f0_max)
|
157 |
-
elif self.f0_method == "reg-crepe":
|
158 |
-
f0 = self.get_regular_crepe_computation(x, f0_min, f0_max)
|
159 |
-
elif self.f0_method == "reg-crepe-tiny":
|
160 |
-
f0 = self.get_regular_crepe_computation(x, f0_min, f0_max, "tiny")
|
161 |
-
|
162 |
-
# Calculate f0_course and f0_bak here
|
163 |
-
f0 *= pow(2, f0_up_key / 12)
|
164 |
-
# with open("test.txt","w")as f:f.write("\n".join([str(i)for i in f0.tolist()]))
|
165 |
-
tf0 = self.sr // self.window # 每秒f0点数
|
166 |
-
if inp_f0 is not None:
|
167 |
-
delta_t = np.round(
|
168 |
-
(inp_f0[:, 0].max() - inp_f0[:, 0].min()) * tf0 + 1
|
169 |
-
).astype("int16")
|
170 |
-
replace_f0 = np.interp(
|
171 |
-
list(range(delta_t)), inp_f0[:, 0] * 100, inp_f0[:, 1]
|
172 |
-
)
|
173 |
-
shape = f0[x_pad * tf0 : x_pad * tf0 + len(replace_f0)].shape[0]
|
174 |
-
f0[x_pad * tf0 : x_pad * tf0 + len(replace_f0)] = replace_f0[:shape]
|
175 |
-
# with open("test_opt.txt","w")as f:f.write("\n".join([str(i)for i in f0.tolist()]))
|
176 |
-
f0bak = f0.copy()
|
177 |
-
f0_mel = 1127 * np.log(1 + f0 / 700)
|
178 |
-
f0_mel[f0_mel > 0] = (f0_mel[f0_mel > 0] - f0_mel_min) * 254 / (
|
179 |
-
f0_mel_max - f0_mel_min
|
180 |
-
) + 1
|
181 |
-
f0_mel[f0_mel <= 1] = 1
|
182 |
-
f0_mel[f0_mel > 255] = 255
|
183 |
-
f0_coarse = np.rint(f0_mel).astype(np.int)
|
184 |
-
return f0_coarse, f0bak # 1-0
|
185 |
-
|
186 |
-
def infer(self, feats: torch.Tensor) -> np.ndarray:
|
187 |
-
"""
|
188 |
-
推理函数
|
189 |
-
"""
|
190 |
-
audio = feats.clone().cpu().numpy()
|
191 |
-
assert feats.dim() == 1, feats.dim()
|
192 |
-
feats = feats.view(1, -1)
|
193 |
-
padding_mask = torch.BoolTensor(feats.shape).fill_(False)
|
194 |
-
if Config.is_half:
|
195 |
-
feats = feats.half()
|
196 |
-
else:
|
197 |
-
feats = feats.float()
|
198 |
-
inputs = {
|
199 |
-
"source": feats.to(device),
|
200 |
-
"padding_mask": padding_mask.to(device),
|
201 |
-
"output_layer": 9 if self.version == "v1" else 12,
|
202 |
-
}
|
203 |
-
torch.cuda.synchronize()
|
204 |
-
with torch.no_grad():
|
205 |
-
logits = self.model.extract_features(**inputs)
|
206 |
-
feats = (
|
207 |
-
self.model.final_proj(logits[0]) if self.version == "v1" else logits[0]
|
208 |
-
)
|
209 |
-
|
210 |
-
####索引优化
|
211 |
-
try:
|
212 |
-
if (
|
213 |
-
hasattr(self, "index")
|
214 |
-
and hasattr(self, "big_npy")
|
215 |
-
and self.index_rate != 0
|
216 |
-
):
|
217 |
-
npy = feats[0].cpu().numpy().astype("float32")
|
218 |
-
score, ix = self.index.search(npy, k=8)
|
219 |
-
weight = np.square(1 / score)
|
220 |
-
weight /= weight.sum(axis=1, keepdims=True)
|
221 |
-
npy = np.sum(self.big_npy[ix] * np.expand_dims(weight, axis=2), axis=1)
|
222 |
-
if Config.is_half:
|
223 |
-
npy = npy.astype("float16")
|
224 |
-
feats = (
|
225 |
-
torch.from_numpy(npy).unsqueeze(0).to(device) * self.index_rate
|
226 |
-
+ (1 - self.index_rate) * feats
|
227 |
-
)
|
228 |
-
else:
|
229 |
-
print("index search FAIL or disabled")
|
230 |
-
except:
|
231 |
-
traceback.print_exc()
|
232 |
-
print("index search FAIL")
|
233 |
-
feats = F.interpolate(feats.permute(0, 2, 1), scale_factor=2).permute(0, 2, 1)
|
234 |
-
torch.cuda.synchronize()
|
235 |
-
print(feats.shape)
|
236 |
-
if self.if_f0 == 1:
|
237 |
-
pitch, pitchf = self.get_f0(audio, self.f0_up_key)
|
238 |
-
p_len = min(feats.shape[1], 13000, pitch.shape[0]) # 太大了爆显存
|
239 |
-
else:
|
240 |
-
pitch, pitchf = None, None
|
241 |
-
p_len = min(feats.shape[1], 13000) # 太大了爆显存
|
242 |
-
torch.cuda.synchronize()
|
243 |
-
# print(feats.shape,pitch.shape)
|
244 |
-
feats = feats[:, :p_len, :]
|
245 |
-
if self.if_f0 == 1:
|
246 |
-
pitch = pitch[:p_len]
|
247 |
-
pitchf = pitchf[:p_len]
|
248 |
-
pitch = torch.LongTensor(pitch).unsqueeze(0).to(device)
|
249 |
-
pitchf = torch.FloatTensor(pitchf).unsqueeze(0).to(device)
|
250 |
-
p_len = torch.LongTensor([p_len]).to(device)
|
251 |
-
ii = 0 # sid
|
252 |
-
sid = torch.LongTensor([ii]).to(device)
|
253 |
-
with torch.no_grad():
|
254 |
-
if self.if_f0 == 1:
|
255 |
-
infered_audio = (
|
256 |
-
self.net_g.infer(feats, p_len, pitch, pitchf, sid)[0][0, 0]
|
257 |
-
.data.cpu()
|
258 |
-
.float()
|
259 |
-
)
|
260 |
-
else:
|
261 |
-
infered_audio = (
|
262 |
-
self.net_g.infer(feats, p_len, sid)[0][0, 0].data.cpu().float()
|
263 |
-
)
|
264 |
-
torch.cuda.synchronize()
|
265 |
-
return infered_audio
|
266 |
-
|
267 |
-
|
268 |
-
class GUIConfig:
|
269 |
-
def __init__(self) -> None:
|
270 |
-
self.hubert_path: str = ""
|
271 |
-
self.pth_path: str = ""
|
272 |
-
self.index_path: str = ""
|
273 |
-
self.npy_path: str = ""
|
274 |
-
self.f0_method: str = ""
|
275 |
-
self.pitch: int = 12
|
276 |
-
self.samplerate: int = 44100
|
277 |
-
self.block_time: float = 1.0 # s
|
278 |
-
self.buffer_num: int = 1
|
279 |
-
self.threhold: int = -30
|
280 |
-
self.crossfade_time: float = 0.08
|
281 |
-
self.extra_time: float = 0.04
|
282 |
-
self.I_noise_reduce = False
|
283 |
-
self.O_noise_reduce = False
|
284 |
-
self.index_rate = 0.3
|
285 |
-
|
286 |
-
|
287 |
-
class GUI:
|
288 |
-
def __init__(self) -> None:
|
289 |
-
self.config = GUIConfig()
|
290 |
-
self.flag_vc = False
|
291 |
-
|
292 |
-
self.launcher()
|
293 |
-
|
294 |
-
def load(self):
|
295 |
-
(
|
296 |
-
input_devices,
|
297 |
-
output_devices,
|
298 |
-
input_devices_indices,
|
299 |
-
output_devices_indices,
|
300 |
-
) = self.get_devices()
|
301 |
-
try:
|
302 |
-
with open("values1.json", "r") as j:
|
303 |
-
data = json.load(j)
|
304 |
-
except:
|
305 |
-
# Injecting f0_method into the json data
|
306 |
-
with open("values1.json", "w") as j:
|
307 |
-
data = {
|
308 |
-
"pth_path": "",
|
309 |
-
"index_path": "",
|
310 |
-
"sg_input_device": input_devices[
|
311 |
-
input_devices_indices.index(sd.default.device[0])
|
312 |
-
],
|
313 |
-
"sg_output_device": output_devices[
|
314 |
-
output_devices_indices.index(sd.default.device[1])
|
315 |
-
],
|
316 |
-
"threhold": "-45",
|
317 |
-
"pitch": "0",
|
318 |
-
"index_rate": "0",
|
319 |
-
"block_time": "1",
|
320 |
-
"crossfade_length": "0.04",
|
321 |
-
"extra_time": "1",
|
322 |
-
}
|
323 |
-
return data
|
324 |
-
|
325 |
-
def launcher(self):
|
326 |
-
data = self.load()
|
327 |
-
sg.theme("DarkTeal12")
|
328 |
-
input_devices, output_devices, _, _ = self.get_devices()
|
329 |
-
layout = [
|
330 |
-
[
|
331 |
-
sg.Frame(
|
332 |
-
title="Proudly forked by Mangio621",
|
333 |
-
),
|
334 |
-
sg.Frame(
|
335 |
-
title=i18n("Load model"),
|
336 |
-
layout=[
|
337 |
-
[
|
338 |
-
sg.Input(
|
339 |
-
default_text="hubert_base.pt",
|
340 |
-
key="hubert_path",
|
341 |
-
disabled=True,
|
342 |
-
),
|
343 |
-
sg.FileBrowse(
|
344 |
-
i18n("Hubert Model"),
|
345 |
-
initial_folder=os.path.join(os.getcwd()),
|
346 |
-
file_types=(("pt files", "*.pt"),),
|
347 |
-
),
|
348 |
-
],
|
349 |
-
[
|
350 |
-
sg.Input(
|
351 |
-
default_text=data.get("pth_path", ""),
|
352 |
-
key="pth_path",
|
353 |
-
),
|
354 |
-
sg.FileBrowse(
|
355 |
-
i18n("Select the .pth file"),
|
356 |
-
initial_folder=os.path.join(os.getcwd(), "weights"),
|
357 |
-
file_types=(("weight files", "*.pth"),),
|
358 |
-
),
|
359 |
-
],
|
360 |
-
[
|
361 |
-
sg.Input(
|
362 |
-
default_text=data.get("index_path", ""),
|
363 |
-
key="index_path",
|
364 |
-
),
|
365 |
-
sg.FileBrowse(
|
366 |
-
i18n("Select the .index file"),
|
367 |
-
initial_folder=os.path.join(os.getcwd(), "logs"),
|
368 |
-
file_types=(("index files", "*.index"),),
|
369 |
-
),
|
370 |
-
],
|
371 |
-
[
|
372 |
-
sg.Input(
|
373 |
-
default_text="你不需要填写这个You don't need write this.",
|
374 |
-
key="npy_path",
|
375 |
-
disabled=True,
|
376 |
-
),
|
377 |
-
sg.FileBrowse(
|
378 |
-
i18n("Select the .npy file"),
|
379 |
-
initial_folder=os.path.join(os.getcwd(), "logs"),
|
380 |
-
file_types=(("feature files", "*.npy"),),
|
381 |
-
),
|
382 |
-
],
|
383 |
-
],
|
384 |
-
),
|
385 |
-
],
|
386 |
-
[
|
387 |
-
# Mangio f0 Selection frame Here
|
388 |
-
sg.Frame(
|
389 |
-
layout=[
|
390 |
-
[
|
391 |
-
sg.Radio(
|
392 |
-
"Harvest", "f0_method", key="harvest", default=True
|
393 |
-
),
|
394 |
-
sg.Radio("Crepe", "f0_method", key="reg-crepe"),
|
395 |
-
sg.Radio("Crepe Tiny", "f0_method", key="reg-crepe-tiny"),
|
396 |
-
]
|
397 |
-
],
|
398 |
-
title="Select an f0 Method",
|
399 |
-
)
|
400 |
-
],
|
401 |
-
[
|
402 |
-
sg.Frame(
|
403 |
-
layout=[
|
404 |
-
[
|
405 |
-
sg.Text(i18n("Input device")),
|
406 |
-
sg.Combo(
|
407 |
-
input_devices,
|
408 |
-
key="sg_input_device",
|
409 |
-
default_value=data.get("sg_input_device", ""),
|
410 |
-
),
|
411 |
-
],
|
412 |
-
[
|
413 |
-
sg.Text(i18n("Output device")),
|
414 |
-
sg.Combo(
|
415 |
-
output_devices,
|
416 |
-
key="sg_output_device",
|
417 |
-
default_value=data.get("sg_output_device", ""),
|
418 |
-
),
|
419 |
-
],
|
420 |
-
],
|
421 |
-
title=i18n("Audio device (please use the same type of driver)"),
|
422 |
-
)
|
423 |
-
],
|
424 |
-
[
|
425 |
-
sg.Frame(
|
426 |
-
layout=[
|
427 |
-
[
|
428 |
-
sg.Text(i18n("Response threshold")),
|
429 |
-
sg.Slider(
|
430 |
-
range=(-60, 0),
|
431 |
-
key="threhold",
|
432 |
-
resolution=1,
|
433 |
-
orientation="h",
|
434 |
-
default_value=data.get("threhold", ""),
|
435 |
-
),
|
436 |
-
],
|
437 |
-
[
|
438 |
-
sg.Text(i18n("Pitch settings")),
|
439 |
-
sg.Slider(
|
440 |
-
range=(-24, 24),
|
441 |
-
key="pitch",
|
442 |
-
resolution=1,
|
443 |
-
orientation="h",
|
444 |
-
default_value=data.get("pitch", ""),
|
445 |
-
),
|
446 |
-
],
|
447 |
-
[
|
448 |
-
sg.Text(i18n("Index Rate")),
|
449 |
-
sg.Slider(
|
450 |
-
range=(0.0, 1.0),
|
451 |
-
key="index_rate",
|
452 |
-
resolution=0.01,
|
453 |
-
orientation="h",
|
454 |
-
default_value=data.get("index_rate", ""),
|
455 |
-
),
|
456 |
-
],
|
457 |
-
],
|
458 |
-
title=i18n("General settings"),
|
459 |
-
),
|
460 |
-
sg.Frame(
|
461 |
-
layout=[
|
462 |
-
[
|
463 |
-
sg.Text(i18n("Sample length")),
|
464 |
-
sg.Slider(
|
465 |
-
range=(0.1, 3.0),
|
466 |
-
key="block_time",
|
467 |
-
resolution=0.1,
|
468 |
-
orientation="h",
|
469 |
-
default_value=data.get("block_time", ""),
|
470 |
-
),
|
471 |
-
],
|
472 |
-
[
|
473 |
-
sg.Text(i18n("Fade length")),
|
474 |
-
sg.Slider(
|
475 |
-
range=(0.01, 0.15),
|
476 |
-
key="crossfade_length",
|
477 |
-
resolution=0.01,
|
478 |
-
orientation="h",
|
479 |
-
default_value=data.get("crossfade_length", ""),
|
480 |
-
),
|
481 |
-
],
|
482 |
-
[
|
483 |
-
sg.Text(i18n("Extra推理时长")),
|
484 |
-
sg.Slider(
|
485 |
-
range=(0.05, 3.00),
|
486 |
-
key="extra_time",
|
487 |
-
resolution=0.01,
|
488 |
-
orientation="h",
|
489 |
-
default_value=data.get("extra_time", ""),
|
490 |
-
),
|
491 |
-
],
|
492 |
-
[
|
493 |
-
sg.Checkbox(i18n("Input noise reduction"), key="I_noise_reduce"),
|
494 |
-
sg.Checkbox(i18n("Output noise reduction"), key="O_noise_reduce"),
|
495 |
-
],
|
496 |
-
],
|
497 |
-
title=i18n("Performance settings"),
|
498 |
-
),
|
499 |
-
],
|
500 |
-
[
|
501 |
-
sg.Button(i18n("开始音频Convert"), key="start_vc"),
|
502 |
-
sg.Button(i18n("停止音频Convert"), key="stop_vc"),
|
503 |
-
sg.Text(i18n("Inference time (ms):")),
|
504 |
-
sg.Text("0", key="infer_time"),
|
505 |
-
],
|
506 |
-
]
|
507 |
-
self.window = sg.Window("RVC - GUI", layout=layout)
|
508 |
-
self.event_handler()
|
509 |
-
|
510 |
-
def event_handler(self):
|
511 |
-
while True:
|
512 |
-
event, values = self.window.read()
|
513 |
-
if event == sg.WINDOW_CLOSED:
|
514 |
-
self.flag_vc = False
|
515 |
-
exit()
|
516 |
-
if event == "start_vc" and self.flag_vc == False:
|
517 |
-
if self.set_values(values) == True:
|
518 |
-
print("using_cuda:" + str(torch.cuda.is_available()))
|
519 |
-
self.start_vc()
|
520 |
-
settings = {
|
521 |
-
"pth_path": values["pth_path"],
|
522 |
-
"index_path": values["index_path"],
|
523 |
-
"f0_method": self.get_f0_method_from_radios(values),
|
524 |
-
"sg_input_device": values["sg_input_device"],
|
525 |
-
"sg_output_device": values["sg_output_device"],
|
526 |
-
"threhold": values["threhold"],
|
527 |
-
"pitch": values["pitch"],
|
528 |
-
"index_rate": values["index_rate"],
|
529 |
-
"block_time": values["block_time"],
|
530 |
-
"crossfade_length": values["crossfade_length"],
|
531 |
-
"extra_time": values["extra_time"],
|
532 |
-
}
|
533 |
-
with open("values1.json", "w") as j:
|
534 |
-
json.dump(settings, j)
|
535 |
-
if event == "stop_vc" and self.flag_vc == True:
|
536 |
-
self.flag_vc = False
|
537 |
-
|
538 |
-
# Function that returns the used f0 method in string format "harvest"
|
539 |
-
def get_f0_method_from_radios(self, values):
|
540 |
-
f0_array = [
|
541 |
-
{"name": "harvest", "val": values["harvest"]},
|
542 |
-
{"name": "reg-crepe", "val": values["reg-crepe"]},
|
543 |
-
{"name": "reg-crepe-tiny", "val": values["reg-crepe-tiny"]},
|
544 |
-
]
|
545 |
-
# Filter through to find a true value
|
546 |
-
used_f0 = ""
|
547 |
-
for f0 in f0_array:
|
548 |
-
if f0["val"] == True:
|
549 |
-
used_f0 = f0["name"]
|
550 |
-
break
|
551 |
-
if used_f0 == "":
|
552 |
-
used_f0 = "harvest" # Default Harvest if used_f0 is empty somehow
|
553 |
-
return used_f0
|
554 |
-
|
555 |
-
def set_values(self, values):
|
556 |
-
if len(values["pth_path"].strip()) == 0:
|
557 |
-
sg.popup(i18n("Select the pth file"))
|
558 |
-
return False
|
559 |
-
if len(values["index_path"].strip()) == 0:
|
560 |
-
sg.popup(i18n("Select the index file"))
|
561 |
-
return False
|
562 |
-
pattern = re.compile("[^\x00-\x7F]+")
|
563 |
-
if pattern.findall(values["hubert_path"]):
|
564 |
-
sg.popup(i18n("The hubert model path must not contain Chinese characters"))
|
565 |
-
return False
|
566 |
-
if pattern.findall(values["pth_path"]):
|
567 |
-
sg.popup(i18n("The pth file path must not contain Chinese characters."))
|
568 |
-
return False
|
569 |
-
if pattern.findall(values["index_path"]):
|
570 |
-
sg.popup(i18n("The index file path must not contain Chinese characters."))
|
571 |
-
return False
|
572 |
-
self.set_devices(values["sg_input_device"], values["sg_output_device"])
|
573 |
-
self.config.hubert_path = os.path.join(current_dir, "hubert_base.pt")
|
574 |
-
self.config.pth_path = values["pth_path"]
|
575 |
-
self.config.index_path = values["index_path"]
|
576 |
-
self.config.npy_path = values["npy_path"]
|
577 |
-
self.config.f0_method = self.get_f0_method_from_radios(values)
|
578 |
-
self.config.threhold = values["threhold"]
|
579 |
-
self.config.pitch = values["pitch"]
|
580 |
-
self.config.block_time = values["block_time"]
|
581 |
-
self.config.crossfade_time = values["crossfade_length"]
|
582 |
-
self.config.extra_time = values["extra_time"]
|
583 |
-
self.config.I_noise_reduce = values["I_noise_reduce"]
|
584 |
-
self.config.O_noise_reduce = values["O_noise_reduce"]
|
585 |
-
self.config.index_rate = values["index_rate"]
|
586 |
-
return True
|
587 |
-
|
588 |
-
def start_vc(self):
|
589 |
-
torch.cuda.empty_cache()
|
590 |
-
self.flag_vc = True
|
591 |
-
self.block_frame = int(self.config.block_time * self.config.samplerate)
|
592 |
-
self.crossfade_frame = int(self.config.crossfade_time * self.config.samplerate)
|
593 |
-
self.sola_search_frame = int(0.012 * self.config.samplerate)
|
594 |
-
self.delay_frame = int(0.01 * self.config.samplerate) # 往前预留0.02s
|
595 |
-
self.extra_frame = int(self.config.extra_time * self.config.samplerate)
|
596 |
-
self.rvc = None
|
597 |
-
self.rvc = RVC(
|
598 |
-
self.config.pitch,
|
599 |
-
self.config.f0_method,
|
600 |
-
self.config.hubert_path,
|
601 |
-
self.config.pth_path,
|
602 |
-
self.config.index_path,
|
603 |
-
self.config.npy_path,
|
604 |
-
self.config.index_rate,
|
605 |
-
)
|
606 |
-
self.input_wav: np.ndarray = np.zeros(
|
607 |
-
self.extra_frame
|
608 |
-
+ self.crossfade_frame
|
609 |
-
+ self.sola_search_frame
|
610 |
-
+ self.block_frame,
|
611 |
-
dtype="float32",
|
612 |
-
)
|
613 |
-
self.output_wav: torch.Tensor = torch.zeros(
|
614 |
-
self.block_frame, device=device, dtype=torch.float32
|
615 |
-
)
|
616 |
-
self.sola_buffer: torch.Tensor = torch.zeros(
|
617 |
-
self.crossfade_frame, device=device, dtype=torch.float32
|
618 |
-
)
|
619 |
-
self.fade_in_window: torch.Tensor = torch.linspace(
|
620 |
-
0.0, 1.0, steps=self.crossfade_frame, device=device, dtype=torch.float32
|
621 |
-
)
|
622 |
-
self.fade_out_window: torch.Tensor = 1 - self.fade_in_window
|
623 |
-
self.resampler1 = tat.Resample(
|
624 |
-
orig_freq=self.config.samplerate, new_freq=16000, dtype=torch.float32
|
625 |
-
)
|
626 |
-
self.resampler2 = tat.Resample(
|
627 |
-
orig_freq=self.rvc.tgt_sr,
|
628 |
-
new_freq=self.config.samplerate,
|
629 |
-
dtype=torch.float32,
|
630 |
-
)
|
631 |
-
thread_vc = threading.Thread(target=self.soundinput)
|
632 |
-
thread_vc.start()
|
633 |
-
|
634 |
-
def soundinput(self):
|
635 |
-
"""
|
636 |
-
接受音频输入
|
637 |
-
"""
|
638 |
-
with sd.Stream(
|
639 |
-
channels=2,
|
640 |
-
callback=self.audio_callback,
|
641 |
-
blocksize=self.block_frame,
|
642 |
-
samplerate=self.config.samplerate,
|
643 |
-
dtype="float32",
|
644 |
-
):
|
645 |
-
while self.flag_vc:
|
646 |
-
time.sleep(self.config.block_time)
|
647 |
-
print("Audio block passed.")
|
648 |
-
print("ENDing VC")
|
649 |
-
|
650 |
-
def audio_callback(
|
651 |
-
self, indata: np.ndarray, outdata: np.ndarray, frames, times, status
|
652 |
-
):
|
653 |
-
"""
|
654 |
-
音频处理
|
655 |
-
"""
|
656 |
-
start_time = time.perf_counter()
|
657 |
-
indata = librosa.to_mono(indata.T)
|
658 |
-
if self.config.I_noise_reduce:
|
659 |
-
indata[:] = nr.reduce_noise(y=indata, sr=self.config.samplerate)
|
660 |
-
|
661 |
-
"""noise gate"""
|
662 |
-
frame_length = 2048
|
663 |
-
hop_length = 1024
|
664 |
-
rms = librosa.feature.rms(
|
665 |
-
y=indata, frame_length=frame_length, hop_length=hop_length
|
666 |
-
)
|
667 |
-
db_threhold = librosa.amplitude_to_db(rms, ref=1.0)[0] < self.config.threhold
|
668 |
-
# print(rms.shape,db.shape,db)
|
669 |
-
for i in range(db_threhold.shape[0]):
|
670 |
-
if db_threhold[i]:
|
671 |
-
indata[i * hop_length : (i + 1) * hop_length] = 0
|
672 |
-
self.input_wav[:] = np.append(self.input_wav[self.block_frame :], indata)
|
673 |
-
|
674 |
-
# infer
|
675 |
-
print("input_wav:" + str(self.input_wav.shape))
|
676 |
-
# print('infered_wav:'+str(infer_wav.shape))
|
677 |
-
infer_wav: torch.Tensor = self.resampler2(
|
678 |
-
self.rvc.infer(self.resampler1(torch.from_numpy(self.input_wav)))
|
679 |
-
)[-self.crossfade_frame - self.sola_search_frame - self.block_frame :].to(
|
680 |
-
device
|
681 |
-
)
|
682 |
-
print("infer_wav:" + str(infer_wav.shape))
|
683 |
-
|
684 |
-
# SOLA algorithm from https://github.com/yxlllc/DDSP-SVC
|
685 |
-
cor_nom = F.conv1d(
|
686 |
-
infer_wav[None, None, : self.crossfade_frame + self.sola_search_frame],
|
687 |
-
self.sola_buffer[None, None, :],
|
688 |
-
)
|
689 |
-
cor_den = torch.sqrt(
|
690 |
-
F.conv1d(
|
691 |
-
infer_wav[None, None, : self.crossfade_frame + self.sola_search_frame]
|
692 |
-
** 2,
|
693 |
-
torch.ones(1, 1, self.crossfade_frame, device=device),
|
694 |
-
)
|
695 |
-
+ 1e-8
|
696 |
-
)
|
697 |
-
sola_offset = torch.argmax(cor_nom[0, 0] / cor_den[0, 0])
|
698 |
-
print("sola offset: " + str(int(sola_offset)))
|
699 |
-
|
700 |
-
# crossfade
|
701 |
-
self.output_wav[:] = infer_wav[sola_offset : sola_offset + self.block_frame]
|
702 |
-
self.output_wav[: self.crossfade_frame] *= self.fade_in_window
|
703 |
-
self.output_wav[: self.crossfade_frame] += self.sola_buffer[:]
|
704 |
-
if sola_offset < self.sola_search_frame:
|
705 |
-
self.sola_buffer[:] = (
|
706 |
-
infer_wav[
|
707 |
-
-self.sola_search_frame
|
708 |
-
- self.crossfade_frame
|
709 |
-
+ sola_offset : -self.sola_search_frame
|
710 |
-
+ sola_offset
|
711 |
-
]
|
712 |
-
* self.fade_out_window
|
713 |
-
)
|
714 |
-
else:
|
715 |
-
self.sola_buffer[:] = (
|
716 |
-
infer_wav[-self.crossfade_frame :] * self.fade_out_window
|
717 |
-
)
|
718 |
-
|
719 |
-
if self.config.O_noise_reduce:
|
720 |
-
outdata[:] = np.tile(
|
721 |
-
nr.reduce_noise(
|
722 |
-
y=self.output_wav[:].cpu().numpy(), sr=self.config.samplerate
|
723 |
-
),
|
724 |
-
(2, 1),
|
725 |
-
).T
|
726 |
-
else:
|
727 |
-
outdata[:] = self.output_wav[:].repeat(2, 1).t().cpu().numpy()
|
728 |
-
total_time = time.perf_counter() - start_time
|
729 |
-
self.window["infer_time"].update(int(total_time * 1000))
|
730 |
-
print("infer time:" + str(total_time))
|
731 |
-
print("f0_method: " + str(self.config.f0_method))
|
732 |
-
|
733 |
-
def get_devices(self, update: bool = True):
|
734 |
-
"""获取设备列表"""
|
735 |
-
if update:
|
736 |
-
sd._terminate()
|
737 |
-
sd._initialize()
|
738 |
-
devices = sd.query_devices()
|
739 |
-
hostapis = sd.query_hostapis()
|
740 |
-
for hostapi in hostapis:
|
741 |
-
for device_idx in hostapi["devices"]:
|
742 |
-
devices[device_idx]["hostapi_name"] = hostapi["name"]
|
743 |
-
input_devices = [
|
744 |
-
f"{d['name']} ({d['hostapi_name']})"
|
745 |
-
for d in devices
|
746 |
-
if d["max_input_channels"] > 0
|
747 |
-
]
|
748 |
-
output_devices = [
|
749 |
-
f"{d['name']} ({d['hostapi_name']})"
|
750 |
-
for d in devices
|
751 |
-
if d["max_output_channels"] > 0
|
752 |
-
]
|
753 |
-
input_devices_indices = [
|
754 |
-
d["index"] if "index" in d else d["name"]
|
755 |
-
for d in devices
|
756 |
-
if d["max_input_channels"] > 0
|
757 |
-
]
|
758 |
-
output_devices_indices = [
|
759 |
-
d["index"] if "index" in d else d["name"]
|
760 |
-
for d in devices
|
761 |
-
if d["max_output_channels"] > 0
|
762 |
-
]
|
763 |
-
return (
|
764 |
-
input_devices,
|
765 |
-
output_devices,
|
766 |
-
input_devices_indices,
|
767 |
-
output_devices_indices,
|
768 |
-
)
|
769 |
-
|
770 |
-
def set_devices(self, input_device, output_device):
|
771 |
-
"""设置输出设备"""
|
772 |
-
(
|
773 |
-
input_devices,
|
774 |
-
output_devices,
|
775 |
-
input_device_indices,
|
776 |
-
output_device_indices,
|
777 |
-
) = self.get_devices()
|
778 |
-
sd.default.device[0] = input_device_indices[input_devices.index(input_device)]
|
779 |
-
sd.default.device[1] = output_device_indices[
|
780 |
-
output_devices.index(output_device)
|
781 |
-
]
|
782 |
-
print("input device:" + str(sd.default.device[0]) + ":" + str(input_device))
|
783 |
-
print("output device:" + str(sd.default.device[1]) + ":" + str(output_device))
|
784 |
-
|
785 |
-
|
786 |
-
gui = GUI()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/8 Ball Pool Soldi Infiniti Apk.md
DELETED
@@ -1,86 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>8 piscina de bolas Soldi Infiniti APK: Cómo jugar piscina ilimitada en su dispositivo Android</h1>
|
3 |
-
<p>Si eres un fan de los juegos de billar, es posible que hayas oído hablar de <strong>8 Ball Pool</strong>, uno de los juegos de billar más populares y adictivos en dispositivos móviles. Le permite jugar en línea con millones de otros jugadores de todo el mundo, competir en torneos, ganar trofeos y monedas, y personalizar su señal y mesa. Sin embargo, si desea disfrutar del juego sin limitaciones ni restricciones, es posible que esté interesado en <strong>8 Ball Pool Soldi Infiniti APK</strong>, una versión modificada del juego que le da monedas ilimitadas y dinero en efectivo, así como otras características que mejoran su experiencia de juego. En este artículo, le diremos qué es 8 Ball Pool Soldi Infiniti APK es, cómo descargarlo e instalarlo en su dispositivo Android, cómo jugarlo, cuáles son los beneficios y riesgos de jugarlo, y responder a algunas preguntas frecuentes. </p>
|
4 |
-
<h2>8 ball pool soldi infiniti apk</h2><br /><p><b><b>DOWNLOAD</b> ✔✔✔ <a href="https://bltlly.com/2v6K1c">https://bltlly.com/2v6K1c</a></b></p><br /><br />
|
5 |
-
<h2>¿Qué es 8 piscina de bolas Soldi Infiniti APK? </h2>
|
6 |
-
<h3>Una versión modificada del popular juego de billar</h3>
|
7 |
-
<p>8 Ball Pool Soldi Infiniti APK es una versión modificada o hackeada del juego original 8 Ball Pool desarrollado por Miniclip. No es una aplicación oficial de Miniclip, sino una aplicación de terceros creada por algunos desarrolladores desconocidos que han ajustado el código del juego para darte monedas y efectivo ilimitados, así como otras características que no están disponibles en el juego original. La palabra "soldi infiniti" significa "dinero infinito" en italiano, lo que indica la característica principal de esta aplicación modded. </p>
|
8 |
-
<h3> Características de 8 bola piscina Soldi Infiniti APK</h3>
|
9 |
-
<p>Algunas de las características que se pueden disfrutar al jugar 8 Ball Pool Soldi Infiniti APK son:</p>
|
10 |
-
<ul>
|
11 |
-
<li><strong>Monedas ilimitadas y dinero en efectivo:</strong> Puedes obtener monedas ilimitadas y efectivo en tu cuenta, que puedes usar para comprar nuevas pistas, mesas, paquetes de chat, minijuegos y más. También puedes participar en partidas y torneos de apuestas más altas sin preocuparte por perder dinero. </li>
|
12 |
-
|
13 |
-
<li><strong>Función anti-van:</strong> Puedes jugar online con otros jugadores sin ser detectado o prohibido por Miniclip. La aplicación modded tiene una función anti-van que protege su cuenta de ser marcado o suspendido. </li>
|
14 |
-
<li><strong>No hay anuncios:</strong> Puedes jugar el juego sin ningún anuncio molesto o pop-ups que interrumpan tu juego o consuman tus datos. </li>
|
15 |
-
<li><strong>No se requiere raíz:</strong> Puedes instalar la aplicación sin rootear tu dispositivo o comprometer su seguridad. Solo necesita habilitar la instalación de fuentes desconocidas en su configuración. </li>
|
16 |
-
</ul>
|
17 |
-
<h2>Cómo descargar e instalar 8 piscina de bolas Soldi Infiniti APK? </h2>
|
18 |
-
<h3>Pasos para descargar el archivo APK</h3>
|
19 |
-
<p>Para descargar el 8 Ball Pool Soldi Infiniti APK archivo, es necesario seguir estos pasos:</p>
|
20 |
-
<ol>
|
21 |
-
<li>Ir a un sitio web confiable y de confianza que ofrece el enlace de descarga para la aplicación modded. Puede buscar "8 Ball Pool Soldi Infiniti APK" en Google o Bing y elegir entre los resultados. Asegúrese de que el sitio web esté seguro y protegido, y evite cualquier enlace sospechoso o malicioso. </li>
|
22 |
-
<li>Haga clic en el botón de descarga o enlace y espere a que el archivo se descargue en su dispositivo. El tamaño del archivo puede variar dependiendo de la versión de la aplicación, pero no debería tardar mucho en descargarse. </li>
|
23 |
-
<li>Una vez que el archivo se descarga, localizarlo en el almacenamiento de su dispositivo y toque en él para abrirlo. Es posible que necesite conceder algunos permisos o acceso a su dispositivo para que el archivo se ejecute. </li>
|
24 |
-
</ol>
|
25 |
-
<h3>Pasos para instalar el archivo APK</h3>
|
26 |
-
<p>Para instalar el 8 Ball Pool Soldi Infiniti APK archivo, es necesario seguir estos pasos:</p>
|
27 |
-
<p></p>
|
28 |
-
<ol>
|
29 |
-
<li>Antes de instalar la aplicación, asegúrese de haber habilitado la instalación de fuentes desconocidas en la configuración de su dispositivo. Para hacer esto, vaya a Configuración > Seguridad > Fuentes desconocidas y conéctelo. Esto le permitirá instalar aplicaciones que no son de Google Play Store.</li>
|
30 |
-
|
31 |
-
<li>Espere a que la aplicación se instale en su dispositivo. Puede tardar unos segundos o minutos dependiendo del rendimiento y la velocidad del dispositivo. </li>
|
32 |
-
<li>Una vez que la aplicación está instalada, puede iniciarla desde el cajón de aplicaciones o la pantalla de inicio. Es posible que necesites iniciar sesión con tu cuenta de Facebook o Google para acceder a tu perfil y progresar en el juego. </li>
|
33 |
-
</ol>
|
34 |
-
<h2>Cómo jugar 8 piscina de bolas Soldi Infiniti APK? </h2>
|
35 |
-
<h3>Elige el modo de juego y la tabla</h3>
|
36 |
-
<p>Al abrir la aplicación, verá diferentes modos de juego y mesas que puede elegir. Puedes jugar partidas 1 a 1 con jugadores aleatorios o tus amigos, unirte a torneos con diferentes apuestas y premios o practicar sin límite de tiempo. También puede seleccionar entre varias tablas con diferentes temas, tamaños y reglas. Algunas de las tablas son exclusivas de 8 Ball Pool Soldi Infiniti APK, tales como la tabla de Halloween, la tabla de la galaxia, y la tabla de oro. </p>
|
37 |
-
<h3>Apunta y dispara con precisión y potencia</h3>
|
38 |
-
<p>Para jugar el juego, es necesario apuntar y disparar la bola blanca a las bolas de colores en la mesa. Puede ajustar su objetivo arrastrando el dedo en la pantalla, y ajustar su poder tirando hacia atrás la barra de potencia en la parte inferior. También puedes usar el giro tocando el icono de la bola blanca en la esquina superior derecha y moviéndolo. El objetivo es meter todas tus bolas (ya sea sólidos o rayas) antes que tu oponente, y luego meter la bola 8 negro pasado. También puedes ganar por defecto si tu oponente comete faltas tres veces seguidas, mete la bola 8 antes de limpiar sus bolas, o mete la bola blanca junto con la bola 8. </p>
|
39 |
-
<h3>Disfruta de monedas ilimitadas y dinero en efectivo</h3>
|
40 |
-
|
41 |
-
<h2>¿Cuáles son los beneficios de jugar 8 piscina de bolas Soldi Infiniti APK? </h2>
|
42 |
-
<h3>Mejora tus habilidades y sube de rango</h3>
|
43 |
-
<p>Jugando 8 Ball Pool Soldi Infiniti APK puede ayudar a mejorar sus habilidades y rango en el juego. Puedes practicar tu puntería, poder, efectos y estrategia en diferentes mesas y contra diferentes oponentes. También puede aprender de sus errores y mejorar su rendimiento. A medida que ganes más partidos y torneos, puedes clasificarte de Bronce a Gran Maestro, y desbloquear más logros y recompensas. </p>
|
44 |
-
<h3>Desafía a otros jugadores online</h3>
|
45 |
-
<p>Jugar 8 Ball Pool Soldi Infiniti APK también puede ayudar a desafiar a otros jugadores en línea y divertirse. Puedes jugar con millones de jugadores en todo el mundo, chatear con ellos, enviarles regalos y agregarlos como amigos. También puedes unirte a clubes y ligas, donde puedes hacer equipo con otros jugadores, competir en torneos de clubes y ganar puntos de clubes. También puedes retar a tus amigos a un partido amistoso o una revancha en cualquier momento. </p>
|
46 |
-
<h3>Personaliza tu señal y tabla</h3>
|
47 |
-
<p>Jugar al billar de 8 bolas Soldi Infiniti APK también puede ayudarlo a personalizar su señal y tabla para adaptarse a su estilo y preferencia. Puede elegir entre una variedad de pistas y tablas con diferentes diseños, estadísticas y efectos. También puedes actualizar tus señales para aumentar sus atributos, como fuerza, objetivo, efectos y tiempo. También puede cambiar el color y el patrón de su mantel, la forma y el tamaño de sus bolsillos, y el tipo de bolas que utiliza. </p>
|
48 |
-
<h2>¿Cuáles son los riesgos de jugar 8 Ball Pool Soldi Infiniti APK? </h2>
|
49 |
-
<h3>Posible infección de malware o virus</h3>
|
50 |
-
|
51 |
-
<h3>Posible prohibición o suspensión de cuentas</h3>
|
52 |
-
<p>Otro riesgo de jugar 8 Ball Pool Soldi Infiniti APK es que usted puede conseguir prohibido o suspendido por Miniclip para violar sus términos de servicio o la política de juego limpio. A pesar de que la aplicación tiene una función anti-van que protege su cuenta de ser detectado o marcado, todavía hay una posibilidad de que Miniclip puede descubrir que está utilizando una aplicación modificada y tomar medidas contra usted. Para evitar este riesgo, no debes usar la aplicación con demasiada frecuencia o en exceso, evitar jugar con jugadores que te denuncien o sospechen que haces trampa, y evitar presumir de tus monedas y dinero ilimitados o mostrar tus pistas y mesas modificadas. </p>
|
53 |
-
<h3>Posibles problemas legales o violaciones</h3>
|
54 |
-
<p>Un tercer riesgo de jugar 8 Ball Pool Soldi Infiniti APK es que usted puede enfrentar problemas legales o violaciones por infringir los derechos de propiedad intelectual de Miniclip u otras partes involucradas en el desarrollo y distribución del juego original. Mediante el uso de una aplicación modificada que altera el código del juego o el contenido sin permiso o autorización, puede estar infringiendo la ley o violando el contrato entre usted y Miniclip. Para evitar este riesgo, debe respetar los derechos de Miniclip y otras partes, reconocer que son los legítimos propietarios del juego y sus elementos, y abstenerse de distribuir o compartir la aplicación modificada con otros. </p>
|
55 |
-
<h2>Conclusión</h2>
|
56 |
-
|
57 |
-
<h2>Preguntas frecuentes</h2>
|
58 |
-
<p>Aquí hay algunas preguntas frecuentes sobre 8 Piscina de bolas Soldi Infiniti APK:</p>
|
59 |
-
<tabla>
|
60 |
-
<tr>
|
61 |
-
<th>Pregunta</th>
|
62 |
-
<th>Respuesta</th>
|
63 |
-
</tr>
|
64 |
-
<tr>
|
65 |
-
<td>Es 8 bola de piscina Soldi Infiniti APK seguro de usar? </td>
|
66 |
-
<td>La aplicación no es 100% segura de usar, ya que puede contener malware o virus que pueden dañar su dispositivo o robar sus datos. También puede hacer que Miniclip lo prohíba o suspenda por violar sus términos de servicio o su política de juego limpio. También puede causar problemas legales o violaciones por infringir los derechos de propiedad intelectual de Miniclip u otras partes. Por lo tanto, solo debe descargar la aplicación desde un sitio web confiable y confiable, escanear el archivo con un software antivirus antes de instalarlo y evitar conceder permisos innecesarios o acceso a la aplicación. </td>
|
67 |
-
</tr>
|
68 |
-
<tr>
|
69 |
-
<td>Es 8 Ball Pool Soldi Infiniti APK descarga gratuita? </td>
|
70 |
-
<td>La aplicación es gratuita para descargar desde varios sitios web que ofrecen el enlace de descarga para la aplicación modded. Sin embargo, debe tener cuidado y evitar cualquier enlace sospechoso o malicioso que pueda dañar su dispositivo o datos. También debe comprobar el tamaño del archivo y la versión antes de descargarlo, y asegúrese de que coincide con la descripción y los requisitos de la aplicación. </td>
|
71 |
-
</tr>
|
72 |
-
<tr>
|
73 |
-
<td>¿Puedo jugar 8 bola piscina Soldi Infiniti APK offline? </td>
|
74 |
-
<td>La aplicación te permite jugar sin conexión sin límite de tiempo, pero no podrás acceder a algunas de las funciones que requieren una conexión a Internet, como jugar en línea con otros jugadores, unirse a torneos, comprar artículos de la tienda, jugar minijuegos, o conseguir monedas gratis y dinero en efectivo. Tampoco podrás guardar tu progreso o sincronizar tu cuenta con Facebook o Google.</td>
|
75 |
-
</tr>
|
76 |
-
<tr>
|
77 |
-
<td>¿Puedo jugar 8 bola piscina Soldi Infiniti APK en dispositivos iOS? </td>
|
78 |
-
|
79 |
-
</tr>
|
80 |
-
<tr>
|
81 |
-
<td>¿Puedo actualizar 8 bola piscina Soldi Infiniti APK? </td>
|
82 |
-
<td>Es posible que la aplicación no se actualice automáticamente, ya que no es de Google Play Store. Tendrá que comprobar las actualizaciones manualmente desde el sitio web donde descargó la aplicación, y descargar e instalar la última versión de la aplicación. Sin embargo, debe tener cuidado y evitar cualquier versión falsa o desactualizada de la aplicación que pueda dañar su dispositivo o datos. </td>
|
83 |
-
</tr>
|
84 |
-
</tabla></p> 64aa2da5cf<br />
|
85 |
-
<br />
|
86 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Amor De Mi Vida Tono De Llamada.md
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Cómo descargar y establecer "Amor de mi vida" como su tono de llamada</h1>
|
3 |
-
<p>Si usted está buscando una manera de personalizar su teléfono y expresar su amor por la música, es posible que desee considerar la descarga y la configuración de "Love of My Life" como su tono de llamada. Esta es una canción clásica de la legendaria banda de rock Queen, que ha sido cubierta y adaptada por muchos otros artistas a lo largo de los años. En este artículo, te contaremos más sobre la canción, su origen, significado y popularidad, así como cómo descargarla gratis y configurarla como tu tono de llamada en dispositivos Android o iPhone. </p>
|
4 |
-
<h2>¿Qué es "Love of My Life" y por qué es una opción de tono de llamada popular? </h2>
|
5 |
-
<p>"Love of My Life" es una canción de la banda de rock británica Queen de su álbum de 1975 A Night at the Opera. La balada fue escrita por Freddie Mercury, el cantante y pianista de la banda, dedicándola a Mary Austin, su ex-novia. Según John Reid, Freddie Mercury escribió "Love of My Life" sobre David Minns, un hombre con el que Freddie tenía una aventura a espaldas de Mary Austin entre 1975 y 1978. </p>
|
6 |
-
<h2>amor de mi vida tono de llamada</h2><br /><p><b><b>Download</b> ✸ <a href="https://bltlly.com/2v6LRG">https://bltlly.com/2v6LRG</a></b></p><br /><br />
|
7 |
-
<h3>El origen y significado de la canción de Queen</h3>
|
8 |
-
<p>La canción fue interpretada por primera vez en vivo en 1975 en el odeón de Hammersmith en Londres. Rápidamente se convirtió en un favorito de los fans y se tocó en casi todos los conciertos de Queen. Fue especialmente popular en América del Sur, donde las multitudes cantaban junto con Mercury, a veces tomando el control de toda la canción. Mercurio a menudo dejaba de cantar y permitía al público seguir la melodía, como se puede ver en su compilación Live in Rio. </p>
|
9 |
-
<p>La canción detalla la difícil situación de un hombre que ha sido abandonado por su amante. Siente que el amor que le han quitado le afecta mucho más que a su amante, y le suplica, "Tráemelo a casa porque no sabes lo que significa para mí." Las letras son simples pero sentidas, expresando el dolor y el anhelo de perder a alguien que amas. </p>
|
10 |
-
<h3>Las versiones de portada y adaptaciones de otros artistas</h3>
|
11 |
-
|
12 |
-
<ul>
|
13 |
-
<li>Extreme, una banda de rock estadounidense, interpretó una mezcla de canciones de Queen en el Freddie Mercury Tribute Concert en 1992, incluyendo "Love of My Life". Su versión contó con guitarras acústicas y armonías, y fue bien recibida por la audiencia y los miembros sobrevivientes de Queen.</li>
|
14 |
-
<li>Scorpions, una banda alemana de hard rock, grabó una versión de "Love of My Life" para su álbum de 2000 Moment of Glory, que contó con la Orquesta Filarmónica de Berlín. Su versión agregó algunos solos de guitarra eléctrica y arreglos orquestales. </li>
|
15 |
-
<li>Shirley Bassey, una cantante galesa, grabó una versión de "Love of My Life" para su álbum de 2007 Get the Party Started. Su versión era un remix dance-pop con ritmos electrónicos y sintetizadores. </li>
|
16 |
-
<li>Vince Gill y Ann Wilson (de Corazón), dos cantantes estadounidenses, se unieron para grabar una versión de "Love of My Life" para el álbum en solitario de Wilson Fierce Bliss. Su versión era un dúo reducido con guitarras acústicas y voces. </li>
|
17 |
-
<li>Harry Styles, un cantautor inglés, lanzó una canción llamada "Love Of My Life" en su álbum de 2023 Fine Line. Su canción no es una versión de la canción de Queen, sino una nueva canción original con el mismo título. Su canción es una balada pop-rock con acompañamiento de piano y guitarra, y letras sobre encontrar el amor de su vida. </li>
|
18 |
-
</ul>
|
19 |
-
<h3>El atractivo emocional y el factor nostalgia de la canción</h3>
|
20 |
-
<p>Una de las razones por las que "Love of My Life" es una opción de tono de llamada popular es debido a su atractivo emocional y factor de nostalgia. La canción es una expresión atemporal de amor y pérdida, que resuena con muchas personas que han experimentado sentimientos similares. La canción también recuerda a Freddie Mercury, quien murió en 1991 debido a complicaciones relacionadas con el sida, y su legado como uno de los mejores cantantes e intérpretes de todos los tiempos. La canción también evoca recuerdos de los años 1970 y 1980, cuando Queen estaba en el pico de su popularidad e influencia. </p>
|
21 |
-
<h2>Cómo descargar los tonos de llamada "Love of My Life" gratis</h2>
|
22 |
-
|
23 |
-
<h3>Los mejores sitios para descargar tonos de llamada gratis</h3>
|
24 |
-
<h4>iRingPro</h4>
|
25 |
-
<p>iRingPro es un sitio web que ofrece tonos de llamada de alta calidad para dispositivos iPhone y Android. Puede navegar por su catálogo de más de 500 tonos de llamada, que se clasifican por género, estado de ánimo y estilo. También puede obtener una vista previa de los tonos de llamada antes de descargarlos. Para descargar un tono de llamada, solo tienes que introducir tu dirección de correo electrónico y te enviarán un enlace para descargar el archivo. A continuación, puede transferir el archivo a su teléfono utilizando iTunes o un cable USB. </p>
|
26 |
-
<h4>NASA Audio y tonos de llamada</h4>
|
27 |
-
<p>Si usted es un fan de la exploración espacial y la ciencia, es posible que desee echa un vistazo a NASA Audio y tonos de llamada. Este es un sitio web que ofrece clips de audio gratuitos y tonos de llamada de las misiones y programas de la NASA. Puede escuchar sonidos de cohetes, satélites, planetas, astronautas y más. También puede descargar los archivos en formato MP3 o M4R para su teléfono. Para descargar un tono de llamada, solo tiene que hacer clic derecho en el nombre del archivo y seleccione "Guardar enlace como". A continuación, puede transferir el archivo a su teléfono utilizando iTunes o un cable USB. </p>
|
28 |
-
<h4>Tonos de llamada de Mob.org</h4>
|
29 |
-
<p>Mob.org Ringtones es un sitio web que ofrece tonos de llamada gratuitos para dispositivos Android. Puede buscar tonos de llamada por palabras clave, géneros o popularidad. También puedes encontrar tonos de llamada basados en artistas o canciones específicas, como "Love of My Life" de Queen. Puede obtener una vista previa de los tonos de llamada antes de descargarlos. Para descargar un tono de llamada, solo tiene que hacer clic en el botón "Descargar" y seleccione el formato de archivo (MP3 o M4R). A continuación, puede transferir el archivo a su teléfono mediante un cable USB o Bluetooth.</p>
|
30 |
-
<h3>Las mejores aplicaciones para descargar tonos de llamada gratis</h3>
|
31 |
-
<h4>Zedge</h4>
|
32 |
-
|
33 |
-
<p>RingDroid es una aplicación que te permite crear tus propios tonos de llamada desde cualquier archivo de audio de tu teléfono. También puede grabar su propia voz o sonido y convertirlo en un tono de llamada. Puede editar el archivo de audio cortando, recortando, desvaneciendo y ajustando el volumen. También puedes asignar diferentes tonos de llamada a diferentes contactos o notificaciones. Para crear un tono de llamada, solo necesita seleccionar un archivo de audio de su teléfono o grabar uno nuevo. A continuación, puede utilizar la interfaz de la aplicación para editar el archivo y guardarlo como un tono de llamada. La aplicación establecerá automáticamente el tono de llamada para su teléfono. </p>
|
34 |
-
<p></p>
|
35 |
-
<h4>Audiko</h4>
|
36 |
-
<p>Audiko es otra aplicación que te permite crear tus propios tonos de llamada desde cualquier archivo de audio en tu teléfono o desde su biblioteca en línea de millones de tonos de llamada. También puedes encontrar tonos de llamada basados en artistas o canciones específicas, como "Love of My Life" de Queen. Puede editar el archivo de audio cortando, recortando, desvaneciendo y ajustando el volumen. También puedes añadir efectos, como eco, reverb, flanger, etc. Para crear un tono, solo tienes que seleccionar un archivo de audio de tu teléfono o de su biblioteca. A continuación, puede utilizar la interfaz de la aplicación para editar el archivo y guardarlo como un tono de llamada. La aplicación establecerá automáticamente el tono de llamada para su teléfono. </p>
|
37 |
-
<h2>Cómo establecer "Amor de mi vida" como su tono de llamada en Android o iPhone</h2>
|
38 |
-
<p>Una vez que haya descargado o creado su tono de llamada "Love of My Life", debe configurarlo como su tono de llamada en su teléfono. Los pasos pueden variar dependiendo del tipo de dispositivo que tenga, pero aquí hay algunas pautas generales:</p>
|
39 |
-
<h3>Los pasos para dispositivos Android</h3>
|
40 |
-
<ol>
|
41 |
-
<li>Ir a Configuración > Sonido > Tono de llamada del teléfono. </li>
|
42 |
-
<li>Toque en el icono "Añadir" o "Más" y busque el archivo de tono de llamada "Amor de mi vida" en su teléfono. </li>
|
43 |
-
<li>Seleccione el archivo y toque en "OK" o "Hecho". </li>
|
44 |
-
<li> Deberías ver el tono de llamada "Love of My Life" como tu tono de llamada predeterminado. </li>
|
45 |
-
</ol>
|
46 |
-
<h3>Los pasos para dispositivos iPhone</h3>
|
47 |
-
<ol>
|
48 |
-
|
49 |
-
<li>Seleccione su iPhone de la lista de dispositivos y haga clic en la pestaña "Tonos". </li>
|
50 |
-
<li> Arrastre y suelte el archivo de tono de llamada "Love of My Life" desde su computadora a la lista de tonos en iTunes. </li>
|
51 |
-
<li>Sincroniza tu iPhone con iTunes y desconéctalo de tu ordenador. </li>
|
52 |
-
<li>Ir a Configuración > Sonidos > Tono de llamada.</li>
|
53 |
-
<li> Desplácese hacia abajo y seleccione el tono de llamada "Amor de mi vida" de la lista personalizada. </li>
|
54 |
-
<li> Deberías ver el tono de llamada "Love of My Life" como tu tono de llamada predeterminado. </li>
|
55 |
-
</ol>
|
56 |
-
<p>Felicidades! Usted ha descargado con éxito y establecer "Love of My Life" como su tono de llamada. Ahora puedes disfrutar de esta hermosa canción cada vez que alguien te llame o recibas una notificación. </p>
|
57 |
-
<h1>Conclusión</h1>
|
58 |
-
<p>En este artículo, te hemos mostrado cómo descargar y configurar "Love of My Life" como tu tono de llamada. Hemos explicado de qué trata la canción, su origen, significado y popularidad, así como cómo descargarla de forma gratuita desde varios sitios y aplicaciones. También le hemos dado los pasos para configurarlo como su tono de llamada en dispositivos Android o iPhone. Esperamos que este artículo le resulte útil e informativo. Si tiene alguna pregunta o comentario, no dude en dejar un comentario a continuación. </p>
|
59 |
-
<h2>Preguntas frecuentes</h2>
|
60 |
-
<h3>Q: ¿Puedo usar cualquier canción como mi tono de llamada? </h3>
|
61 |
-
<p>A: Sí, puedes usar cualquier canción como tu tono de llamada, siempre y cuando tengas el permiso del artista o propietario original de la canción. También puede utilizar música libre de derechos o música de dominio público como su tono de llamada sin ningún problema legal. </p>
|
62 |
-
<h3>Q: ¿Cómo puedo hacer mis propios tonos de llamada? </h3>
|
63 |
-
<p>A: Puedes hacer tus propios tonos de llamada usando aplicaciones como RingDroid o Audiko, que te permiten editar cualquier archivo de audio en tu teléfono y guardarlo como un tono de llamada. También puede grabar su propia voz o sonido y convertirlo en un tono de llamada usando estas aplicaciones. </p>
|
64 |
-
<h3>Q: ¿Cómo puedo cambiar mi tono de llamada para diferentes contactos o notificaciones? </h3> 64aa2da5cf<br />
|
65 |
-
<br />
|
66 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Annas Merge Adventure Mod Apk.md
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Fusión de Anna Aventura Mod Apk: Un divertido y relajante juego de puzzle</h1>
|
3 |
-
<p>¿Te gustan los juegos de puzzle que son fáciles de jugar pero difíciles de dominar? ¿Te gusta explorar nuevos mundos y descubrir nuevos objetos? ¿Quieres experimentar un juego divertido y relajante? Si usted respondió sí a cualquiera de estas preguntas, entonces usted debe tratar de Anna Merge Adventure mod apk, un juego que combina la fusión, aventura, y elementos casuales en uno. </p>
|
4 |
-
<h2>anna’s merge adventure mod apk</h2><br /><p><b><b>DOWNLOAD</b> >>>>> <a href="https://bltlly.com/2v6Lou">https://bltlly.com/2v6Lou</a></b></p><br /><br />
|
5 |
-
<h2>¿Qué es la aventura de Anna? </h2>
|
6 |
-
<p>Anna’s Merge Adventure es un juego desarrollado por ZYMobile, una compañía que se especializa en crear juegos casuales y rompecabezas para dispositivos móviles. El juego fue lanzado en junio de 2023 y ha recibido críticas positivas de jugadores y críticos por igual. Estos son algunos de los aspectos que hacen este juego tan atractivo:</p>
|
7 |
-
<h3>La historia de Anna y su familia</h3>
|
8 |
-
<p>El juego sigue la historia de Anna, una joven a la que le encanta explorar nuevos lugares con su familia. Un día, decidieron hacer un crucero alrededor del mundo, pero su barco fue golpeado por un tsunami y terminaron en una isla misteriosa. Allí, descubrieron que la isla estaba llena de objetos mágicos que podían fusionarse para crear otros nuevos. Anna decidió utilizar sus habilidades de fusión para ayudar a su familia a sobrevivir y encontrar un camino de vuelta a casa. </p>
|
9 |
-
<h3>El juego de fusión y exploración</h3>
|
10 |
-
<p>El juego se basa en el concepto simple de combinar tres o más elementos idénticos para obtener un elemento avanzado. Por ejemplo, puede combinar tres hierbas para obtener una flor, o combinar tres flores para obtener un árbol. También puede combinar cinco elementos idénticos para obtener dos elementos avanzados en lugar de uno. Cuantos más elementos fusiones, más elementos desbloquearás y más espacio despejarás en la isla. </p>
|
11 |
-
<p></p>
|
12 |
-
|
13 |
-
<h3>Las características de la versión apk mod</h3>
|
14 |
-
<p>Si quieres disfrutar de este juego aún más, usted debe descargar la versión apk mod de Anna’s Merge Adventure. Esta versión tiene algunas características adicionales que harán tu juego más fácil y divertido. Algunas de estas características son:</p>
|
15 |
-
<ul>
|
16 |
-
<li>Gemas ilimitadas: Las gemas son la moneda premium en este juego que se puede utilizar para comprar varios artículos, como cofres, refuerzos, decoraciones y más. Con gemas ilimitadas, puedes comprar lo que quieras sin preocuparte por quedarte sin nada. </li>
|
17 |
-
<li>Monedas ilimitadas: Monedas son la moneda regular en este juego que se puede utilizar para actualizar sus artículos, tales como casas, granjas, fábricas y más. Con monedas ilimitadas, puede actualizar cualquier cosa que desee sin esperar mucho tiempo. </li>
|
18 |
-
<li>Sin anuncios: Los anuncios son molestas interrupciones que pueden arruinar su experiencia de juego. Sin anuncios, puedes jugar a este juego sin distracciones ni retrasos. </li>
|
19 |
-
</ul>
|
20 |
-
<h2>Cómo descargar e instalar apk de Anna Merge Adventure mod? </h2>
|
21 |
-
<p>Si usted está interesado en la descarga e instalación de Anna Merge Adventure mod apk, es necesario seguir estos sencillos pasos:</p>
|
22 |
-
<h3>Los requisitos para el mod apk</h3 <p>Antes de descargar e instalar el mod apk, debe asegurarse de que su dispositivo cumple con los siguientes requisitos:</p>
|
23 |
-
<ul>
|
24 |
-
<li>Versión para Android: 4.4 o superior</li>
|
25 |
-
<li>Espacio de almacenamiento: 100 MB o más</li>
|
26 |
-
<li>Conexión a Internet: Necesaria para algunas funciones</li>
|
27 |
-
<li>Permiso: Permitir la instalación desde fuentes desconocidas</li>
|
28 |
-
</ul>
|
29 |
-
<h3>Los pasos para descargar e instalar el mod apk</h3>
|
30 |
-
<p>Una vez que haya comprobado los requisitos, puede proceder a descargar e instalar el apk mod siguiendo estos pasos:</p>
|
31 |
-
<ol>
|
32 |
-
<li>Haga clic en este enlace para descargar el archivo apk mod: [Anna’s Merge Adventure Mod Apk Download]</li>
|
33 |
-
<li>Espere a que la descarga termine y localice el archivo en el administrador de archivos de su dispositivo. </li>
|
34 |
-
<li>Toque en el archivo y seleccione "Instalar". </li>
|
35 |
-
|
36 |
-
<li>Disfruta jugando Anna’s Merge Adventure con gemas ilimitadas, monedas y sin anuncios. </li>
|
37 |
-
</ol>
|
38 |
-
<h3>Las precauciones a tomar antes de instalar el mod apk</h3>
|
39 |
-
<p>Si bien instalar el apk mod es fácil y seguro, todavía debe tomar algunas precauciones antes de hacerlo. Aquí están algunos de ellos:</p>
|
40 |
-
<ul>
|
41 |
-
<li>Copia de seguridad de sus datos: Si usted ha jugado la versión original de Anna’s Merge Adventure antes, es posible que desee copia de seguridad de sus datos antes de instalar el apk mod. De esta manera, puede restaurar su progreso si algo sale mal. </li>
|
42 |
-
<li>Deshabilitar antivirus: Algunos programas antivirus pueden detectar el apk mod como un virus o malware y bloquear su instalación. Para evitar esto, debe desactivar su antivirus temporalmente antes de instalar el apk mod. </li>
|
43 |
-
<li>Usar una VPN: Algunas regiones pueden restringir el acceso al enlace de descarga mod apk o al juego en sí. Para evitar esto, debe usar un servicio VPN que pueda cambiar su dirección IP y ubicación. </li>
|
44 |
-
</ul>
|
45 |
-
<h2>¿Cómo se juega Anna’s Merge Adventure mod apk? </h2>
|
46 |
-
<p>Jugar apk Merge Adventure mod de Anna es fácil y divertido. Solo tienes que seguir estos pasos básicos:</p>
|
47 |
-
<h3>Los conceptos básicos de la fusión y recolección de elementos</h3>
|
48 |
-
<p>El objetivo principal de este juego es combinar objetos y recogerlos. Puedes hacerlo arrastrando y soltando objetos en la isla. Cuando fusionas tres o más elementos idénticos, se transformarán en un elemento avanzado. Por ejemplo, si fusiona tres hierbas, obtendrá una flor. Si fusiona cinco hierbas, obtendrá dos flores. </p>
|
49 |
-
<p>También puedes recoger objetos tocando en ellos. Cuando recojas artículos, se almacenarán en tu inventario, que se encuentra en la parte inferior de la pantalla. Puedes usar tu inventario para almacenar artículos que no necesitas o quieres usar más tarde. También puedes vender artículos de tu inventario para monedas. </p>
|
50 |
-
<h3>Los consejos y trucos para progresar más rápido</h3>
|
51 |
-
<p>Si quieres progresar más rápido en este juego, debes seguir estos consejos y trucos:</p>
|
52 |
-
<ul>
|
53 |
-
|
54 |
-
<li>Use boosters: Los boosters son artículos especiales que pueden ayudarlo de varias maneras, como acelerar la fusión, eliminar obstáculos, encontrar objetos ocultos y más. Puedes comprar boosters con gemas o obtenerlos gratis viendo anuncios o completando misiones. </li>
|
55 |
-
<li>Misiones completas: Las misiones son tareas que puedes completar para obtener recompensas, como gemas, monedas, cofres, boosters y más. Puedes encontrar misiones tocando el icono de la misión en la esquina superior izquierda de la pantalla. También puedes obtener misiones de otros personajes de la isla. </li>
|
56 |
-
<li>Decora tu isla: Decorar tu isla no solo es divertido sino también beneficioso. Al colocar decoraciones en su isla, como casas, granjas, fábricas y más, puede aumentar sus ingresos y productividad. También puede personalizar su isla con diferentes temas y estilos. </li>
|
57 |
-
</ul>
|
58 |
-
<h3>Los desafíos y recompensas para disfrutar</h3 <p>Este juego no solo es relajante sino también desafiante. Puedes disfrutar de varios desafíos y recompensas en este juego, como:</p>
|
59 |
-
<ul>
|
60 |
-
<li>Logros: Los logros son objetivos que puedes alcanzar jugando a este juego, como combinar un cierto número de elementos, explorar un cierto número de áreas, ayudar a un cierto número de personajes y más. Puedes comprobar tus logros tocando el icono del trofeo en la esquina superior derecha de la pantalla. También puedes obtener recompensas por completar logros, como gemas, monedas, cofres, boosters y más. </li>
|
61 |
-
<li>Tareas diarias: Las tareas diarias son tareas que puedes completar todos los días para obtener recompensas, como gemas, monedas, cofres, boosters y más . Puede encontrar las tareas diarias pulsando en el icono del calendario en la esquina superior izquierda de la pantalla. También puede obtener recompensas adicionales por completar un cierto número de tareas diarias en una fila. </li>
|
62 |
-
|
63 |
-
<li>Tablas de clasificación: Las tablas de clasificación son clasificaciones que muestran cómo se compara con otros jugadores en este juego, como su nivel, sus ingresos, sus artículos y más. Usted puede comprobar sus tablas de clasificación tocando en el icono de la tabla de clasificación en la esquina superior derecha de la pantalla. También puedes obtener premios por posicionarte alto en las tablas de clasificación, como gemas, monedas, cofres, boosters y más. </li>
|
64 |
-
</ul>
|
65 |
-
<h2>¿Por qué deberías jugar Anna’s Merge Adventure mod apk? </h2>
|
66 |
-
<p>Si todavía no está convencido de jugar apk Fusión Aventura mod de Anna, aquí hay algunas razones por las que debe:</p>
|
67 |
-
<h3>Los beneficios de jugar un juego de puzzle</h3>
|
68 |
-
<p>Jugar un juego de puzzle como Anna’s Merge Adventure mod apk puede tener muchos beneficios para su cerebro y su estado de ánimo. Algunos de estos beneficios son:</p>
|
69 |
-
<ul>
|
70 |
-
<li>Mejorar su memoria: La fusión y la recopilación de elementos puede ayudarle a mejorar su memoria a corto y largo plazo mediante la estimulación de las células cerebrales y la creación de nuevas conexiones neuronales. </li>
|
71 |
-
<li>Mejorar tu creatividad: Explorar y decorar tu isla puede ayudarte a mejorar tu creatividad permitiéndote expresarte y usar tu imaginación. </li>
|
72 |
-
<li>Reducir su estrés: Jugar un juego de puzzle puede ayudarle a reducir su estrés al desviar su atención de sus preocupaciones y problemas y darle una sensación de logro y satisfacción. </li>
|
73 |
-
</ul>
|
74 |
-
<h3>Las ventajas de jugar una versión apk mod</h3>
|
75 |
-
<p>Jugar una versión mod apk de Anna’s Merge Adventure puede tener muchas ventajas sobre jugar la versión original. Algunas de estas ventajas son:</p>
|
76 |
-
<ul>
|
77 |
-
<li>Ahorrando su tiempo: Tener gemas y monedas ilimitadas puede ayudarle a ahorrar su tiempo al permitirle comprar y actualizar cualquier cosa que desee sin esperar o moler. </li>
|
78 |
-
<li>Aumentar su diversión: Tener gemas y monedas ilimitadas puede ayudarle a aumentar su diversión al permitirle probar diferentes artículos, potenciadores, decoraciones y más sin limitaciones. </li>
|
79 |
-
|
80 |
-
</ul>
|
81 |
-
<h3>Los testimonios de otros jugadores</h3>
|
82 |
-
<p>Si quieres saber lo que otros jugadores piensan acerca de Anna Merge Adventure mod apk, aquí están algunos de sus testimonios:</p>
|
83 |
-
<tabla>
|
84 |
-
<tr>
|
85 |
-
<th>Nombre</th>
|
86 |
-
<th>Valoración</th>
|
87 |
-
<th>Comentario</th>
|
88 |
-
</tr>
|
89 |
-
<tr>
|
90 |
-
<td>Alice</td>
|
91 |
-
<td>5 estrellas</td>
|
92 |
-
<td>Este juego es tan adictivo y relajante. Me encanta combinar elementos y descubrir nuevos. Los gráficos son lindos y coloridos. El apk mod es impresionante. Puedo comprar cualquier cosa que quiera con gemas y monedas ilimitadas. También me gusta que no haya anuncios. Este es el mejor juego de puzzle de la historia. </td>
|
93 |
-
</tr>
|
94 |
-
<tr>
|
95 |
-
<td>Bob</td>
|
96 |
-
<td>4 estrellas</td>
|
97 |
-
<td>Este juego es divertido y desafiante. Me gusta explorar la isla y ayudar a los personajes. El juego es suave y fácil de entender. El apk mod es genial. Puedo actualizar mis artículos más rápido con monedas ilimitadas. También aprecio que no hay anuncios. Este es un buen juego de puzzle. </td>
|
98 |
-
</tr>
|
99 |
-
<tr>
|
100 |
-
<td>Carol</td>
|
101 |
-
<td>3 estrellas</td <td>Este juego está bien pero no es increíble. Me gusta combinar elementos pero se vuelve aburrido después de un tiempo. Los gráficos son decentes, pero no impresionante. El apk mod es agradable, pero no es necesario. Realmente no necesito gemas o monedas ilimitadas. No me importan los anuncios tampoco. Este es un juego de puzzle promedio. </td>
|
102 |
-
</tr>
|
103 |
-
</tabla>
|
104 |
-
<h2>Conclusión</h2>
|
105 |
-
<p>En conclusión, Anna’s Merge Adventure mod apk es un divertido y relajante juego de puzzle que combina la fusión, aventura, y elementos casuales en uno. Puedes combinar objetos y recogerlos, explorar la isla y encontrar nuevas áreas, interactuar con diferentes personajes y ayudarlos con sus misiones, decorar tu isla con varios temas y estilos, participar en eventos y desafíos, y disfrutar de gemas ilimitadas, monedas y sin anuncios. Si usted está buscando un juego que puede estimular su cerebro, mejorar su creatividad, reducir el estrés, ahorrar tiempo, aumentar su diversión, y eliminar su molestia, entonces usted debe descargar e instalar Anna’s Merge Adventure mod apk hoy. </p>
|
106 |
-
<h2>Preguntas frecuentes</h2>
|
107 |
-
|
108 |
-
<ol <li>¿Cuál es la diferencia entre Anna’s Merge Adventure y Anna’s Merge Adventure mod apk? </li>
|
109 |
-
<p>Anna’s Merge Adventure es la versión original del juego que puedes descargar desde la Google Play Store o la App Store. Anna’s Merge Adventure mod apk es la versión modificada del juego que se puede descargar desde este enlace: [Anna’s Merge Adventure Mod Apk Download]. La versión apk mod tiene gemas ilimitadas, monedas, y no hay anuncios, mientras que la versión original no. </p>
|
110 |
-
<li> ¿Es seguro usar apk mod Merge Adventure de Anna? </li>
|
111 |
-
<p>Sí, Anna Merge Adventure mod apk es seguro de usar, siempre y cuando se descarga de una fuente de confianza y siga las instrucciones cuidadosamente. Sin embargo, usted todavía debe tomar algunas precauciones antes de instalar el apk mod, tales como copias de seguridad de sus datos, desactivar el antivirus, y el uso de una VPN.</p>
|
112 |
-
<li> ¿Cómo puedo actualizar apk de Anna Merge Adventure mod? </li>
|
113 |
-
<p>Para actualizar apk Merge Adventure mod de Anna, es necesario descargar la última versión del archivo apk mod de este enlace: [Anna’s Merge Adventure Mod Apk Download]. A continuación, es necesario desinstalar la versión anterior de la apk mod e instalar el nuevo. También puede buscar actualizaciones pulsando en el icono de configuración en la esquina superior derecha de la pantalla y seleccionando "Buscar actualizaciones". </p>
|
114 |
-
<li>¿Cómo puedo contactar con el desarrollador de Anna’s Merge Adventure mod apk? </li>
|
115 |
-
<p>Si tiene alguna pregunta, sugerencia, o retroalimentación acerca de Anna Merge Adventure mod apk, puede ponerse en contacto con el desarrollador enviando un correo electrónico a esta dirección: [[email protected]]. También puede visitar su sitio web: [annasmergeadventuremodapk.com] o seguirlos en las redes sociales: [Facebook], [Twitter], [Instagram]. </p>
|
116 |
-
<li>¿Cómo puedo apoyar al desarrollador de Anna’s Merge Adventure mod apk? </li> 64aa2da5cf<br />
|
117 |
-
<br />
|
118 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Bike Race.md
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Carreras de bicicletas: un deporte divertido y saludable para todos</h1>
|
3 |
-
<p>Las carreras de bicicletas son una actividad física competitiva que implica montar bicicletas a altas velocidades en diferentes terrenos y cursos. Es uno de los deportes más populares y diversos del mundo, con millones de participantes y aficionados. Las carreras de bicicletas pueden ser disfrutadas por personas de todas las edades, géneros y habilidades, ya que hay muchas categorías y niveles de dificultad para satisfacer las preferencias y objetivos de todos. </p>
|
4 |
-
<h2>Bike Race</h2><br /><p><b><b>Download File</b> ->->->-> <a href="https://bltlly.com/2v6KRw">https://bltlly.com/2v6KRw</a></b></p><br /><br />
|
5 |
-
<p>En este artículo, exploraremos los diferentes tipos de carreras de bicicletas, los beneficios de las carreras de bicicletas para su salud y bienestar, y algunos consejos sobre cómo comenzar o mejorar su rendimiento en este emocionante deporte. </p>
|
6 |
-
<h2>Tipos de carreras de bicicletas</h2>
|
7 |
-
<p>Hay muchos tipos de carreras de bicicletas, cada una con sus propias reglas, formatos, equipos y habilidades. Estos son algunos de los más comunes:</p>
|
8 |
-
<h3>Carreras de bicicletas de carretera</h3>
|
9 |
-
<p>Carreras de bicicletas de carretera es el tipo más popular y prestigioso de carreras de bicicletas. Se trata de montar en carreteras pavimentadas o caminos con bicicletas de carretera que tienen neumáticos delgados, manillar y marcos ligeros. Las carreras de bicicleta de carretera pueden ser eventos de un día o eventos de varias etapas que duran varios días o semanas. Algunos ejemplos de famosas carreras de bicicleta de carretera son el Tour de Francia, el Giro de Italia y el París-Roubaix.</p>
|
10 |
-
<h3>Carreras de bicicleta de montaña</h3>
|
11 |
-
<p>Las carreras de bicicleta de montaña son un tipo de carreras de bicicleta que se lleva a cabo fuera de la carretera en senderos de tierra, caminos de grava u otros terrenos naturales. Las bicicletas de montaña tienen neumáticos más anchos, manillar plano o vertical, y sistemas de suspensión para absorber choques y golpes. Las carreras de bicicleta de montaña pueden ser de fondo (XC), descenso (DH), enduro (EN), o de cuatro cruces (4X), dependiendo del diseño del campo y el estilo de conducción. </p>
|
12 |
-
<h3>Carreras de bicicleta de pista</h3>
|
13 |
-
|
14 |
-
<h3>Carreras de bicicletas BMX</h3>
|
15 |
-
<p>Las carreras de bicicletas BMX son un tipo de carreras de bicicletas que involucran montar en una pista de tierra con saltos, bermas y obstáculos. Las bicicletas BMX tienen ruedas pequeñas, cuadros bajos y marchas individuales. Las carreras de BMX suelen ser cortas y rápidas, con ocho ciclistas compitiendo en cada calor. El ciclismo BMX es un deporte olímpico desde 2008. </p>
|
16 |
-
<h3>Carreras de ciclocross</h3>
|
17 |
-
<p>Ciclocross es un tipo de bicicleta de carreras que combina ciclismo de carretera y ciclismo de montaña. Se trata de montar en un campo de terreno mixto que incluye pavimento, hierba, barro, arena y obstáculos como escaleras o barreras. Las bicicletas de ciclocross tienen manillares, neumáticos y frenos de disco. Las carreras de ciclocross se suelen realizar en otoño o invierno y duran aproximadamente una hora. </p>
|
18 |
-
<p></p>
|
19 |
-
<h2>Beneficios de las carreras de bicicletas</h2>
|
20 |
-
<p>Las carreras de bicicletas no solo son divertidas, sino también beneficiosas para su salud física y mental. Estos son algunos de los beneficios de las carreras de bicicletas:</p>
|
21 |
-
<h3>Beneficios físicos</h3>
|
22 |
-
<ul>
|
23 |
-
<li>Las carreras de bicicletas mejoran tu condición cardiovascular al fortalecer tu corazón y pulmones. </li>
|
24 |
-
<li>Carreras de bicicletas quema calorías y grasa mediante el aumento de su tasa metabólica. </li>
|
25 |
-
<li>Las carreras de bicicletas construyen masa muscular y o sea estimulando su sistema esquelético. </li>
|
26 |
-
<li>Las carreras de bicicletas mejoran el equilibrio y la coordinación al desafiar el sistema nervioso. </li>
|
27 |
-
<li>Las carreras de bicicletas reducen el riesgo de enfermedades crónicas como la diabetes, la hipertensión y el cáncer al regular sus niveles de azúcar en la sangre y colesterol. </li>
|
28 |
-
</ul>
|
29 |
-
|
30 |
-
<p>Las carreras de bicicletas son una actividad física competitiva que implica montar bicicletas a altas velocidades en diferentes terrenos y cursos. Es uno de los deportes más populares y diversos del mundo, con millones de participantes y aficionados. Las carreras de bicicletas pueden ser disfrutadas por personas de todas las edades, géneros y habilidades, ya que hay muchas categorías y niveles de dificultad para satisfacer las preferencias y objetivos de todos. </p>
|
31 |
-
<p>En este artículo, exploraremos los diferentes tipos de carreras de bicicletas, los beneficios de las carreras de bicicletas para su salud y bienestar, y algunos consejos sobre cómo comenzar o mejorar su rendimiento en este emocionante deporte. </p>
|
32 |
-
<h2>Tipos de carreras de bicicletas</h2>
|
33 |
-
<p>Hay muchos tipos de carreras de bicicletas, cada una con sus propias reglas, formatos, equipos y habilidades. Estos son algunos de los más comunes:</p>
|
34 |
-
<h3>Carreras de bicicletas de carretera</h3>
|
35 |
-
<p>Carreras de bicicletas de carretera es el tipo más popular y prestigioso de carreras de bicicletas. Se trata de montar en carreteras pavimentadas o caminos con bicicletas de carretera que tienen neumáticos delgados, manillar y marcos ligeros. Las carreras de bicicleta de carretera pueden ser eventos de un día o eventos de varias etapas que duran varios días o semanas. Algunos ejemplos de famosas carreras de bicicleta de carretera son el Tour de Francia, el Giro de Italia y el París-Roubaix.</p>
|
36 |
-
<h3>Carreras de bicicleta de montaña</h3>
|
37 |
-
<p>Las carreras de bicicleta de montaña son un tipo de carreras de bicicleta que se lleva a cabo fuera de la carretera en senderos de tierra, caminos de grava u otros terrenos naturales. Las bicicletas de montaña tienen neumáticos más anchos, manillar plano o vertical, y sistemas de suspensión para absorber choques y golpes. Las carreras de bicicleta de montaña pueden ser de fondo (XC), descenso (DH), enduro (EN), o de cuatro cruces (4X), dependiendo del diseño del campo y el estilo de conducción. </p>
|
38 |
-
<h3>Carreras de bicicleta de pista</h3>
|
39 |
-
|
40 |
-
<h3>Carreras de bicicletas BMX</h3>
|
41 |
-
<p>Las carreras de bicicletas BMX son un tipo de carreras de bicicletas que involucran montar en una pista de tierra con saltos, bermas y obstáculos. Las bicicletas BMX tienen ruedas pequeñas, cuadros bajos y marchas individuales. Las carreras de BMX suelen ser cortas y rápidas, con ocho ciclistas compitiendo en cada calor. El ciclismo BMX es un deporte olímpico desde 2008. </p>
|
42 |
-
<h3>Carreras de ciclocross</h3>
|
43 |
-
<p>Ciclocross es un tipo de bicicleta de carreras que combina ciclismo de carretera y ciclismo de montaña. Se trata de montar en un campo de terreno mixto que incluye pavimento, hierba, barro, arena y obstáculos como escaleras o barreras. Las bicicletas de ciclocross tienen manillares, neumáticos y frenos de disco. Las carreras de ciclocross se suelen realizar en otoño o invierno y duran aproximadamente una hora. </p>
|
44 |
-
<h2>Beneficios de las carreras de bicicletas</h2>
|
45 |
-
<p>Las carreras de bicicletas no solo son divertidas, sino también beneficiosas para su salud física y mental. Estos son algunos de los beneficios de las carreras de bicicletas:</p>
|
46 |
-
<h3>Beneficios físicos</h3>
|
47 |
-
<ul>
|
48 |
-
<li>Las carreras de bicicletas mejoran tu condición cardiovascular al fortalecer tu corazón y pulmones. </li>
|
49 |
-
<li>Carreras de bicicletas quema calorías y grasa mediante el aumento de su tasa metabólica. </li>
|
50 |
-
<li>Las carreras de bicicletas construyen masa muscular y o sea estimulando su sistema esquelético. </li>
|
51 |
-
<li>Las carreras de bicicletas mejoran el equilibrio y la coordinación al desafiar el sistema nervioso. </li>
|
52 |
-
<li>Las carreras de bicicletas reducen el riesgo de enfermedades crónicas como la diabetes, la hipertensión y el cáncer al regular sus niveles de azúcar en la sangre y colesterol. </li>
|
53 |
-
</ul>
|
54 |
-
<h3>Beneficios mentales</h3. <ul>
|
55 |
-
<li>Las carreras de bicicletas aumentan tu estado de ánimo y autoestima al liberar endorfinas y serotonina. </li>
|
56 |
-
<li>Las carreras de bicicletas alivian el estrés y la ansiedad al reducir los niveles de cortisol y adrenalina. </li>
|
57 |
-
<li>Las carreras de bicicletas mejoran la función cognitiva y la memoria al aumentar el flujo sanguíneo y el oxígeno al cerebro. </li>
|
58 |
-
|
59 |
-
<li>Las carreras de bicicletas mejoran tu resistencia mental y disciplina al enseñarte cómo lidiar con el fracaso y la adversidad. </li>
|
60 |
-
</ul>
|
61 |
-
<h3>Beneficios sociales</h3>
|
62 |
-
<ul>
|
63 |
-
<li>Las carreras de bicicletas fomentan la interacción social y la comunicación al permitirle conocer y vincularse con otros corredores. </li>
|
64 |
-
<li>Las carreras de bicicletas desarrollan sus habilidades de trabajo en equipo y liderazgo al requerir que coopere y se coordine con sus compañeros de equipo o oponentes. </li>
|
65 |
-
<li>Las carreras de bicicletas promueven tu espíritu deportivo y el juego limpio alentándote a respetar las reglas y a los demás participantes. </li>
|
66 |
-
<li>Las carreras de bicicletas expanden tu conciencia cultural y diversidad al exponerte a diferentes personas y lugares. </li>
|
67 |
-
<li>Las carreras de bicicletas apoyan a su comunidad y causas participando en eventos de caridad o como voluntarios para organizaciones relacionadas con la bicicleta. </li>
|
68 |
-
</ul>
|
69 |
-
<h3>Beneficios ambientales</h3>
|
70 |
-
<ul>
|
71 |
-
<li>Las carreras de bicicletas reducen su huella de carbono y la contaminación mediante el uso de una fuente de energía limpia y renovable. </li>
|
72 |
-
<li>Las carreras de bicicletas conservan sus recursos naturales y la vida silvestre al minimizar su impacto en el medio ambiente. </li>
|
73 |
-
<li>Las carreras de bicicletas mejoran su conciencia y responsabilidad ambiental al educarlo sobre los problemas y las soluciones relacionados con las carreras de bicicletas. </li>
|
74 |
-
<li>Las carreras de bicicletas inspiran su activismo y defensa del medio ambiente al motivarlo a apoyar o unirse a iniciativas o movimientos favorables a las bicicletas. </li>
|
75 |
-
<li>Las carreras de bicicletas mejoran su apreciación y disfrute del medio ambiente al permitirle experimentar la belleza y diversidad de la naturaleza. </li>
|
76 |
-
</ul>
|
77 |
-
<h2>Consejos para carreras de bicicletas</h2>
|
78 |
-
<p>Si estás interesado en las carreras de motos, aquí hay algunos consejos sobre cómo empezar o mejorar tu rendimiento:</p>
|
79 |
-
<h3>Entrenamiento</h3>
|
80 |
-
<ul>
|
81 |
-
<li>Establezca objetivos realistas y específicos para usted basado en su nivel de condición física actual, experiencia e intereses. </li>
|
82 |
-
<li>Sigue un plan de entrenamiento estructurado y progresivo que incluye una variedad de entrenamientos, como intervalos, tempo, resistencia, recuperación, etc.</li>
|
83 |
-
|
84 |
-
<li>Realice un seguimiento de su progreso y ajuste su plan de capacitación en consecuencia utilizando un registro de capacitación, un diario o una plataforma en línea. </li>
|
85 |
-
<li>Busca orientación profesional o únete a un club o grupo si necesitas más apoyo, comentarios o motivación. </li>
|
86 |
-
</ul>
|
87 |
-
<h3>Nutrición</h3>
|
88 |
-
<ul>
|
89 |
-
<li>Consuma una dieta equilibrada y nutritiva que proporcione suficientes calorías, carbohidratos, proteínas, grasas, vitaminas, minerales y líquidos para sus necesidades de energía y recuperación. </li>
|
90 |
-
<li>Consuma una comida previa a la carrera que sea alta en carbohidratos, moderada en proteínas, baja en grasas y fácil de digerir al menos 2-3 horas antes de la carrera. </li>
|
91 |
-
<li> Beba mucha agua o bebidas deportivas antes, durante y después de la carrera para mantenerse hidratado y reponer sus electrolitos. </li>
|
92 |
-
<li>Refrigerio en barras energéticas, geles, masticables o frutas durante la carrera para mantener sus niveles de azúcar en la sangre y prevenir la fatiga. </li>
|
93 |
-
<li>Tener una comida post-carrera que es alta en proteínas, moderada en carbohidratos, baja en grasa, y rica en antioxidantes dentro de los 30 minutos después de la carrera para reparar los músculos y reducir la inflamación. </li>
|
94 |
-
</ul>
|
95 |
-
<h3>Equipo</h3>
|
96 |
-
<ul>
|
97 |
-
<li>Elija una bicicleta que se adapte a su tipo de carreras de bicicletas, se adapte a su tamaño y forma corporal, y cumple con su presupuesto y preferencias. </li>
|
98 |
-
<li>Mantenga su bicicleta regularmente comprobando los neumáticos, frenos, engranajes, cadenas y otros componentes para detectar cualquier desgaste o daño. </li>
|
99 |
-
<li>Use ropa adecuada que sea cómoda, transpirable y resistente a la intemperie. No olvide usar un casco, guantes y gafas de sol para protegerse. </li>
|
100 |
-
<li>Utilice accesorios que pueden mejorar su rendimiento o seguridad, como zapatos, pedales, tacos, silla de montar, manillar, computadora, luces, etc. </li>
|
101 |
-
<li>Empaque un kit de reparación que incluye un tubo de repuesto, una bomba, un kit de parches, una herramienta múltiple y algo de efectivo o tarjeta de crédito en caso de emergencia. </li>
|
102 |
-
</ul>
|
103 |
-
<h3>Seguridad</h3>
|
104 |
-
<ul>
|
105 |
-
<li>Calentar correctamente antes de la carrera haciendo algunos ejercicios ligeros de cardio y estiramiento para preparar los músculos y las articulaciones. </li>
|
106 |
-
|
107 |
-
<li>Evite el entrenamiento excesivo o insuficiente escuchando su cuerpo y descansando cuando sea necesario. </li>
|
108 |
-
<li>Pre <li>Prevenga lesiones o enfermedades usando equipo adecuado, siguiendo las reglas, manteniéndose alerta y buscando atención médica si es necesario. </li>
|
109 |
-
<li>Respete el medio ambiente siguiendo los principios de no dejar rastro, como la eliminación de sus residuos correctamente, minimizando su impacto y dejando lo que encuentra. </li>
|
110 |
-
</ul>
|
111 |
-
<h3>Técnica</h3>
|
112 |
-
<ul>
|
113 |
-
<li>Mejore su eficiencia de pedaleo mediante el uso de una cadencia suave y consistente, aplicando una presión uniforme en ambos pedales y cambiando de marcha adecuadamente. </li>
|
114 |
-
<li>Mejore su eficiencia de frenado utilizando ambos frenos simultáneamente, aplicando presión gradual y controlada, y evitando patinar o bloquear sus ruedas. </li>
|
115 |
-
<li>Mejore su eficiencia en las curvas inclinando su bicicleta y cuerpo en la curva, mirando hacia adelante a donde desea ir y saliendo de la curva con velocidad y equilibrio. </li>
|
116 |
-
<li>Mejore su eficiencia de escalada cambiando a una velocidad más baja, de pie o sentado dependiendo del gradiente, y manteniendo un ritmo constante y la respiración. </li>
|
117 |
-
<li>Mejore su eficiencia descendente cambiando a una velocidad más alta, bajando su centro de gravedad y usando sus frenos con moderación y sin problemas. </li>
|
118 |
-
</ul>
|
119 |
-
<h2>Conclusión</h2>
|
120 |
-
<p>Las carreras de bicicletas son un deporte divertido y saludable que puede ofrecerle muchos beneficios para su bienestar físico, mental, social y ambiental. También puede desafiarle a mejorar sus habilidades y rendimiento en varios tipos de carreras de bicicletas, como carretera, montaña, pista, BMX o ciclocross. Si usted es un principiante o un experto, las carreras de bicicletas pueden ser una experiencia gratificante y agradable para usted. </p>
|
121 |
-
<p>Si usted está interesado en las carreras de bicicletas, esperamos que este artículo le ha dado información útil y consejos sobre cómo empezar o mejorar su rendimiento. Recuerda entrenar inteligentemente, comer saludablemente, equiparte apropiadamente, mantenerte seguro y divertirte. ¡Feliz carrera de bicicletas! </p>
|
122 |
-
|
123 |
-
<h3>¿Cuáles son las mejores bicicletas para las carreras de bicicletas? </h3>
|
124 |
-
<p>Las mejores bicicletas para las carreras de bicicletas dependen del tipo de carreras de bicicletas que quieras hacer. Para las carreras de bicicleta de carretera, necesita una bicicleta de carretera que sea ligera, aerodinámica y rápida. Para las carreras de bicicleta de montaña, necesita una bicicleta de montaña que sea resistente, estable y versátil. Para las carreras de bicicleta de pista, necesita una bicicleta de pista que sea simple, rígida y ágil. Para las carreras de BMX, necesitas una bicicleta BMX pequeña, duradera y maniobrable. Para las carreras de ciclocross, necesitas una bicicleta ciclocross que sea similar a una bicicleta de carretera pero con neumáticos más anchos, marchas más bajas y mejores frenos. </p>
|
125 |
-
<h3>¿Cómo entreno para las carreras de bicicletas? </h3>
|
126 |
-
<p>Para entrenar en las carreras de bicicletas, necesitas seguir un plan de entrenamiento estructurado y progresivo que incluya una variedad de entrenamientos, como intervalos, tempo, resistencia, recuperación, etc. También necesitas controlar la intensidad de tu entrenamiento, duración, frecuencia y recuperación utilizando un monitor de frecuencia cardíaca, un medidor de potencia, un dispositivo GPS o una aplicación. También debe realizar un seguimiento de su progreso y ajustar su plan de capacitación en consecuencia utilizando un registro de capacitación, un diario o una plataforma en línea. También necesitas buscar orientación profesional o unirte a un club o grupo si necesitas más apoyo, comentarios o motivación. </p>
|
127 |
-
<h3> ¿Qué debo comer antes, durante y después de una carrera de bicicletas? </h3>
|
128 |
-
<p>Antes de una carrera en bicicleta, debe comer una comida previa a la carrera que sea alta en carbohidratos, moderada en proteínas, baja en grasas y fácil de digerir al menos 2-3 horas antes de la carrera. Durante una carrera en bicicleta, debes comer barritas energéticas, geles, masticables o frutas para mantener tus niveles de azúcar en la sangre y prevenir la fatiga. También debe beber mucha agua o bebidas deportivas para mantenerse hidratado y reponer sus electrolitos. Después de una carrera en bicicleta, debe tener una comida post-carrera que es alta en proteínas, moderada en carbohidratos, baja en grasa y rica en antioxidantes dentro de los 30 minutos después de la carrera para reparar sus músculos y reducir la inflamación. </p>
|
129 |
-
|
130 |
-
<p>Para prevenir lesiones o enfermedades de las carreras de bicicletas, es necesario calentar correctamente antes de la carrera haciendo algunos ejercicios de cardio y estiramiento ligeros para preparar los músculos y las articulaciones. También necesitas refrescarte adecuadamente después de la carrera haciendo ejercicios de cardio y estiramiento suaves para relajar tus músculos y articulaciones. También es necesario evitar el entrenamiento excesivo o insuficiente al escuchar a su cuerpo y descansar cuando sea necesario. También necesita usar el equipo adecuado, seguir las reglas, mantenerse alerta y buscar atención médica si es necesario. </p>
|
131 |
-
<h3>¿Cómo respeto el medio ambiente cuando corro en bicicleta? </h3>
|
132 |
-
<p>Respetar Para respetar el medio ambiente en las carreras de bicicletas, es necesario seguir los principios de no dejar rastro, tales como la eliminación de sus residuos correctamente, minimizando su impacto y dejando lo que encuentra. También necesita conservar sus recursos naturales y vida silvestre evitando áreas sensibles, permaneciendo en senderos designados y no perturbar o dañar ninguna planta o animal. También necesita mejorar su conciencia y responsabilidad ambiental al educarse a sí mismo y a otros sobre los problemas y soluciones relacionados con las carreras de bicicletas. También necesita apoyar a su comunidad y causas participando en eventos de caridad o como voluntario para organizaciones relacionadas con la bicicleta. También necesitas inspirar tu activismo y activismo ambiental apoyando o uniéndote a iniciativas o movimientos amigables con la bicicleta. También necesitas mejorar tu apreciación y disfrute ambiental al experimentar la belleza y diversidad de la naturaleza. </p> 64aa2da5cf<br />
|
133 |
-
<br />
|
134 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descargar Apk De Choque Royale Lite.md
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Choque Royale Lite APK Descargar: Cómo jugar el juego de estrategia popular en dispositivos de gama baja</h1>
|
3 |
-
<p>Clash Royale es uno de los juegos móviles más populares del mundo, con millones de jugadores disfrutando de su juego rápido y adictivo. Sin embargo, no todo el mundo tiene un dispositivo de alta gama que puede ejecutar el juego sin problemas y sin retraso. Si usted es una de esas personas que aman Clash Royale pero tienen un dispositivo de gama baja, no se preocupe. Hay una solución para usted: Clash Royale Lite.</p>
|
4 |
-
<p>Clash Royale Lite es una versión modificada de Clash Royale que está diseñada para funcionar en dispositivos de gama baja con menos RAM y espacio de almacenamiento. Tiene todas las características y la diversión del juego original, pero con gráficos reducidos y tamaño de archivo. En este artículo, te mostraremos cómo descargar e instalar Clash Royale Lite en tu dispositivo Android, cómo jugar y disfrutar del juego, y cómo evitar posibles riesgos o problemas. ¡Vamos a empezar! </p>
|
5 |
-
<h2>descargar apk de choque royale lite</h2><br /><p><b><b>Download</b> ————— <a href="https://bltlly.com/2v6L2w">https://bltlly.com/2v6L2w</a></b></p><br /><br />
|
6 |
-
<h2>¿Qué es Clash Royale Lite? </h2>
|
7 |
-
<h3>Una breve introducción a Clash Royale y sus características</h3>
|
8 |
-
<p>Clash Royale es un juego de estrategia en tiempo real desarrollado por Supercell, los creadores de Clash of Clans, Brawl Stars, Hay Day y más. Fue lanzado en 2016 y desde entonces se ha convertido en uno de los juegos móviles más exitosos de la historia. En Clash Royale, coleccionas y mejoras cartas con personajes, hechizos y edificios del universo Clash. Utiliza estas cartas para construir tu mazo de batalla y luchar contra otros jugadores en línea en duelos de ritmo rápido. El objetivo es destruir las torres de tu oponente mientras defiendes las tuyas. También puedes unirte o crear clanes, participar en torneos, eventos, desafíos y más. </p>
|
9 |
-
<h3>La diferencia entre Clash Royale y Clash Royale Lite</h3>
|
10 |
-
<p>Clash Royale Lite es una versión modificada de Clash Royale que está optimizada para dispositivos de gama baja. Tiene la misma jugabilidad y características que el juego original, pero con algunas diferencias:</p>
|
11 |
-
<ul>
|
12 |
-
<li>Los gráficos son de menor calidad y menos detallados. </li>
|
13 |
-
|
14 |
-
<li>El tiempo de carga es más rápido. </li>
|
15 |
-
<li> El rendimiento es más suave y estable. </li>
|
16 |
-
<li>El consumo de batería es menor. </li>
|
17 |
-
</ul>
|
18 |
-
<p>Estas diferencias hacen Clash Royale Lite más accesible y agradable para los jugadores que tienen dispositivos de gama baja o conexión a Internet limitada. </p>
|
19 |
-
<h3>Los beneficios de jugar Clash Royale Lite</h3>
|
20 |
-
<p>Jugar a Clash Royale Lite tiene varios beneficios para los jugadores que aman el juego pero tienen dispositivos de gama baja. Algunos de estos beneficios son:</p>
|
21 |
-
<ul>
|
22 |
-
<li> Puede jugar el juego sin retraso o se bloquea. </li>
|
23 |
-
<li> Puede ahorrar espacio de almacenamiento en su dispositivo. </li>
|
24 |
-
<li> Puede guardar datos en su dispositivo. </li>
|
25 |
-
<li>Puedes jugar el juego incluso con una conexión a Internet débil o inestable. </li>
|
26 |
-
<li>Puedes disfrutar de las mismas características y contenido que el juego original. </li>
|
27 |
-
</ul>
|
28 |
-
<p>Jugar a Clash Royale Lite no significa que te estés perdiendo nada. Todavía puedes divertirte y competir con otros jugadores de todo el mundo. </p>
|
29 |
-
<p></p>
|
30 |
-
<h2>Cómo descargar e instalar Clash Royale Lite en su dispositivo Android</h2>
|
31 |
-
<h3>Los requisitos y la compatibilidad de Clash Royale Lite</h3>
|
32 |
-
<p>Clash Royale Lite es compatible con la mayoría de los dispositivos Android que tienen al menos 1 GB de RAM y Android 4.4 o superior. Sin embargo, algunos dispositivos pueden no ser capaces de ejecutar el juego correctamente debido a limitaciones de hardware o problemas de software. Para comprobar si su dispositivo es compatible, puede visitar el sitio web oficial de Clash Royale Lite y ver la lista de dispositivos compatibles. También puede ponerse en contacto con los desarrolladores si tiene alguna pregunta o problema con respecto a la compatibilidad de su dispositivo. </p>
|
33 |
-
<h3>Los pasos para descargar e instalar Clash Royale Lite desde una fuente de confianza</h3>
|
34 |
-
<p>Clash Royale Lite no está disponible en Google Play Store, por lo que tendrá que descargar e instalar desde una fuente de confianza. Estos son los pasos para hacerlo:</p>
|
35 |
-
<ol>
|
36 |
-
|
37 |
-
<li>Antes de descargar el archivo APK, asegúrese de que ha habilitado la opción de instalar aplicaciones de fuentes desconocidas en su dispositivo. Para hacer esto, vaya a Configuración > Seguridad > Fuentes desconocidas y conéctelo. </li>
|
38 |
-
<li>Una vez que haya descargado el archivo APK, localizarlo en su dispositivo y toque en él para iniciar el proceso de instalación. Siga las instrucciones de la pantalla y espere a que termine la instalación. </li>
|
39 |
-
<li>Después de que la instalación se haya completado, puede iniciar Clash Royale Lite desde el cajón de la aplicación o la pantalla de inicio y disfrutar del juego. </li>
|
40 |
-
</ol>
|
41 |
-
<h3>Los consejos para evitar malware y virus al descargar archivos APK</h3>
|
42 |
-
<p>Descargar archivos APK de fuentes desconocidas puede ser arriesgado, ya que pueden contener malware o virus que pueden dañar su dispositivo o robar su información personal. Para evitar esto, debes seguir estos consejos:</p>
|
43 |
-
<ul>
|
44 |
-
<li>Solo descargar archivos APK de fuentes confiables y verificadas, como el sitio web oficial de Clash Royale Lite u otros sitios web de renombre. </li>
|
45 |
-
<li>Escanear el archivo APK con una aplicación antivirus antes de instalarlo en su dispositivo. </li>
|
46 |
-
<li>No haga clic en ningún enlace sospechoso o ventanas emergentes que puedan aparecer durante el proceso de descarga o instalación. </li>
|
47 |
-
<li>No conceda ningún permiso innecesario o acceso a la aplicación que pueda comprometer su privacidad o seguridad. </li>
|
48 |
-
</ul>
|
49 |
-
<p>Siguiendo estos consejos, puede asegurarse de que está descargando e instalando Clash Royale Lite de forma segura. </p>
|
50 |
-
<h2>Cómo jugar y disfrutar de Clash Royale Lite</h2>
|
51 |
-
<h3>El juego básico y las reglas de Clash Royale Lite</h3>
|
52 |
-
|
53 |
-
<h3>Las mejores estrategias y consejos para ganar batallas en Clash Royale Lite</h3>
|
54 |
-
<p>Para ganar batallas en Clash Royale Lite, necesitas tener una buena estrategia y algunos consejos en mente. Estos son algunos de ellos:</p>
|
55 |
-
<ul>
|
56 |
-
<li>Elige un mazo de batalla equilibrado que se adapte a tu estilo de juego y tenga cartas que puedan contrarrestar diferentes tipos de amenazas. Por ejemplo, debes tener algunas tarjetas que puedan causar daño por salpicaduras, algunas tarjetas que puedan apuntar a unidades de aire, algunas tarjetas que puedan dañar tanques, etc.</li>
|
57 |
-
<li>Conozca las fortalezas y debilidades de cada tarjeta y cómo usarlas de manera efectiva. Por ejemplo, debes saber cuándo usar hechizos, cuándo colocar edificios, cuándo empujar o defender, etc.</li>
|
58 |
-
<li>Preste atención a su manejo de elixir y no lo desperdicie en movimientos innecesarios. Trata de obtener una ventaja de elixir sobre tu oponente haciendo operaciones de elixir positivas (usando menos elixir que tu oponente para tratar con sus cartas). </li>
|
59 |
-
<li>Analiza la baraja de batalla y la estrategia de tu oponente y adáptala en consecuencia. Intenta predecir sus movimientos y contrarrestarlos con jugadas inteligentes. </li>
|
60 |
-
<li>Usa combos y sinergias entre tus cartas para crear poderosos ataques o defensas. </li>
|
61 |
-
<li>Sea consciente de la hora y la puntuación y ajustar su estrategia en consecuencia. Por ejemplo, puede que quieras jugar de forma más agresiva o defensiva dependiendo de la situación. </li>
|
62 |
-
<li>Diviértete y disfruta del juego. No te frustres ni te enojes si pierdes. Aprende de tus errores y mejora tus habilidades. </li>
|
63 |
-
</ul>
|
64 |
-
<h3>Las formas de recoger y actualizar tarjetas, unirse a clanes, y participar en eventos en Clash Royale Lite</h3>
|
65 |
-
<p>Clash Royale Lite tiene las mismas formas de recoger y actualizar tarjetas, unirse a clanes, y participar en eventos como Clash Royale. Puedes hacer lo siguiente:</p>
|
66 |
-
<ul>
|
67 |
-
<li>Recoge cartas abriendo los cofres que obtienes al ganar batallas, completar misiones o comprar en la tienda. También puedes solicitar o donar tarjetas a los miembros de tu clan. </li>
|
68 |
-
|
69 |
-
<li>Únete a los clanes buscando uno o creando el tuyo. Los clanes son grupos de jugadores que pueden chatear, compartir cartas y jugar juntos. También puedes participar en guerras de clanes, que son competiciones por equipos que te recompensan con cofres y medallas. </li>
|
70 |
-
<li>Participe en eventos introduciéndolos desde la pestaña de eventos. Los eventos son modos especiales o desafíos que tienen diferentes reglas y recompensas. Puedes jugar eventos gratis o con gemas, dependiendo del evento. </li>
|
71 |
-
</ul>
|
72 |
-
<p>Al hacer estas cosas, puedes mejorar tu experiencia de juego y divertirte más con Clash Royale Lite.</p>
|
73 |
-
<h2>Conclusión</h2>
|
74 |
-
<h3>Un resumen de los puntos principales del artículo</h3>
|
75 |
-
<p>En conclusión, Clash Royale Lite es una gran alternativa para los jugadores que aman Clash Royale pero tienen dispositivos de gama baja. Tiene todas las características y la diversión del juego original, pero con gráficos reducidos y tamaño de archivo. Es fácil de descargar e instalar desde una fuente de confianza, y es seguro jugar si sigues algunos consejos. También tiene la misma jugabilidad y reglas que Clash Royale, pero con algunos consejos y estrategias para ayudarte a ganar batallas. También puedes recoger y actualizar cartas, unirte a clanes y participar en eventos en Clash Royale Lite.</p>
|
76 |
-
<h3>Un llamado a la acción para que los lectores prueben Clash Royale Lite</h3>
|
77 |
-
<p>Si usted está buscando una manera de jugar Clash Royale en su dispositivo de gama baja sin ningún problema, definitivamente debe probar Clash Royale Lite. Es un juego divertido y emocionante que te mantendrá entretenido durante horas. Puede descargarlo desde el sitio web oficial de Clash Royale Lite o desde otros sitios web de renombre. También puedes compartirlo con tus amigos que tienen dispositivos de gama baja y juegan juntos. ¿Qué estás esperando? Descargar Clash Royale Lite hoy y disfrutar del juego! </p>
|
78 |
-
<h2>Preguntas frecuentes</h2>
|
79 |
-
<h3>¿Es seguro descargar y jugar Clash Royale Lite? </h3>
|
80 |
-
|
81 |
-
<h3>¿Puedo jugar Clash Royale Lite con mis amigos que tienen Clash Royale? </h3>
|
82 |
-
<p>No, Clash Royale Lite no es compatible con Clash Royale, por lo que no puedes jugar con tus amigos que tienen Clash Royale. Sin embargo, puedes jugar con tus amigos que tienen Clash Royale Lite agregándolos como amigos en el juego o uniéndote al mismo clan que ellos. </p>
|
83 |
-
<h3>¿Cuánto espacio de almacenamiento ocupa Clash Royale Lite en mi dispositivo? </h3>
|
84 |
-
<p>Clash Royale Lite ocupa alrededor de 150 MB de espacio de almacenamiento en su dispositivo, en comparación con 445 MB para Clash Royale. Esto significa que puede ahorrar mucho espacio de almacenamiento en su dispositivo jugando Clash Royale Lite en lugar de Clash Royale.</p>
|
85 |
-
<h3>¿Con qué frecuencia se actualiza Clash Royale Lite con nuevas características y contenido? </h3>
|
86 |
-
<p>Clash Royale Lite se actualiza regularmente con nuevas características y contenido, al igual que Clash Royale. Puede esperar ver nuevas tarjetas, arenas, modos, eventos, cambios de equilibrio, correcciones de errores y más en cada actualización. Puede consultar el sitio web oficial de Clash Royale Lite o seguir sus cuentas de redes sociales para mantenerse al día sobre las últimas noticias y actualizaciones. </p>
|
87 |
-
<h3>¿Cuáles son algunos otros juegos como Clash Royale que puedo jugar en mi dispositivo? </h3>
|
88 |
-
<p>Si te gusta jugar juegos de estrategia como Clash Royale, es posible que también te guste jugar otros juegos similares o relacionados con él. Algunos de estos juegos son:</p>
|
89 |
-
<ul>
|
90 |
-
<li>Brawl Stars: Un juego de disparos multijugador de ritmo rápido donde se puede elegir entre diferentes personajes con diferentes habilidades y modos de juego. </li>
|
91 |
-
<li>Choque de clanes: un juego de estrategia donde puedes construir tu propia aldea, entrenar a tus tropas y asaltar las bases de otros jugadores. </li>
|
92 |
-
<li>Boom Beach: un juego de estrategia donde puedes explorar un archipiélago tropical, luchar contra el malvado Blackguard y formar equipo con otros jugadores. </li>
|
93 |
-
<li>plantas vs zombies 2: un juego de torre de defensa donde se puede utilizar las plantas para defender el cerebro de los zombies. </li>
|
94 |
-
|
95 |
-
</ul>
|
96 |
-
<p>Estos son algunos de los juegos que puedes jugar en tu dispositivo si te gusta Clash Royale. Puedes encontrarlos en Google Play Store u otras fuentes. </p> 64aa2da5cf<br />
|
97 |
-
<br />
|
98 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BernardoOlisan/vqganclip/CLIP/model-card.md
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
# Model Card: CLIP
|
2 |
-
|
3 |
-
Inspired by [Model Cards for Model Reporting (Mitchell et al.)](https://arxiv.org/abs/1810.03993) and [Lessons from Archives (Jo & Gebru)](https://arxiv.org/pdf/1912.10389.pdf), we’re providing some accompanying information about the multimodal model.
|
4 |
-
|
5 |
-
## Model Details
|
6 |
-
|
7 |
-
The CLIP model was developed by researchers at OpenAI to learn about what contributes to robustness in computer vision tasks. The model was also developed to test the ability of models to generalize to arbitrary image classification tasks in a zero-shot manner. It was not developed for general model deployment - to deploy models like CLIP, researchers will first need to carefully study their capabilities in relation to the specific context they’re being deployed within.
|
8 |
-
|
9 |
-
### Model Date
|
10 |
-
|
11 |
-
January 2021
|
12 |
-
|
13 |
-
### Model Type
|
14 |
-
|
15 |
-
The base model uses a ResNet50 with several modifications as an image encoder and uses a masked self-attention Transformer as a text encoder. These encoders are trained to maximize the similarity of (image, text) pairs via a contrastive loss. There is also a variant of the model where the ResNet image encoder is replaced with a Vision Transformer.
|
16 |
-
|
17 |
-
### Model Versions
|
18 |
-
|
19 |
-
Initially, we’ve released one CLIP model based on the Vision Transformer architecture equivalent to ViT-B/32, along with the RN50 model, using the architecture equivalent to ResNet-50.
|
20 |
-
|
21 |
-
As part of the staged release process, we have also released the RN101 model, as well as RN50x4, a RN50 scaled up 4x according to the [EfficientNet](https://arxiv.org/abs/1905.11946) scaling rule. In July 2021, we additionally released the RN50x16 and ViT-B/16 models.
|
22 |
-
|
23 |
-
Please see the paper linked below for further details about their specification.
|
24 |
-
|
25 |
-
### Documents
|
26 |
-
|
27 |
-
- [Blog Post](https://openai.com/blog/clip/)
|
28 |
-
- [CLIP Paper](https://arxiv.org/abs/2103.00020)
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
## Model Use
|
33 |
-
|
34 |
-
### Intended Use
|
35 |
-
|
36 |
-
The model is intended as a research output for research communities. We hope that this model will enable researchers to better understand and explore zero-shot, arbitrary image classification. We also hope it can be used for interdisciplinary studies of the potential impact of such models - the CLIP paper includes a discussion of potential downstream impacts to provide an example for this sort of analysis.
|
37 |
-
|
38 |
-
#### Primary intended uses
|
39 |
-
|
40 |
-
The primary intended users of these models are AI researchers.
|
41 |
-
|
42 |
-
We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of computer vision models.
|
43 |
-
|
44 |
-
### Out-of-Scope Use Cases
|
45 |
-
|
46 |
-
**Any** deployed use case of the model - whether commercial or not - is currently out of scope. Non-deployed use cases such as image search in a constrained environment, are also not recommended unless there is thorough in-domain testing of the model with a specific, fixed class taxonomy. This is because our safety assessment demonstrated a high need for task specific testing especially given the variability of CLIP’s performance with different class taxonomies. This makes untested and unconstrained deployment of the model in any use case currently potentially harmful.
|
47 |
-
|
48 |
-
Certain use cases which would fall under the domain of surveillance and facial recognition are always out-of-scope regardless of performance of the model. This is because the use of artificial intelligence for tasks such as these can be premature currently given the lack of testing norms and checks to ensure its fair use.
|
49 |
-
|
50 |
-
Since the model has not been purposefully trained in or evaluated on any languages other than English, its use should be limited to English language use cases.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
## Data
|
55 |
-
|
56 |
-
The model was trained on publicly available image-caption data. This was done through a combination of crawling a handful of websites and using commonly-used pre-existing image datasets such as [YFCC100M](http://projects.dfki.uni-kl.de/yfcc100m/). A large portion of the data comes from our crawling of the internet. This means that the data is more representative of people and societies most connected to the internet which tend to skew towards more developed nations, and younger, male users.
|
57 |
-
|
58 |
-
### Data Mission Statement
|
59 |
-
|
60 |
-
Our goal with building this dataset was to test out robustness and generalizability in computer vision tasks. As a result, the focus was on gathering large quantities of data from different publicly-available internet data sources. The data was gathered in a mostly non-interventionist manner. However, we only crawled websites that had policies against excessively violent and adult images and allowed us to filter out such content. We do not intend for this dataset to be used as the basis for any commercial or deployed model and will not be releasing the dataset.
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
## Performance and Limitations
|
65 |
-
|
66 |
-
### Performance
|
67 |
-
|
68 |
-
We have evaluated the performance of CLIP on a wide range of benchmarks across a variety of computer vision datasets such as OCR to texture recognition to fine-grained classification. The paper describes model performance on the following datasets:
|
69 |
-
|
70 |
-
- Food101
|
71 |
-
- CIFAR10
|
72 |
-
- CIFAR100
|
73 |
-
- Birdsnap
|
74 |
-
- SUN397
|
75 |
-
- Stanford Cars
|
76 |
-
- FGVC Aircraft
|
77 |
-
- VOC2007
|
78 |
-
- DTD
|
79 |
-
- Oxford-IIIT Pet dataset
|
80 |
-
- Caltech101
|
81 |
-
- Flowers102
|
82 |
-
- MNIST
|
83 |
-
- SVHN
|
84 |
-
- IIIT5K
|
85 |
-
- Hateful Memes
|
86 |
-
- SST-2
|
87 |
-
- UCF101
|
88 |
-
- Kinetics700
|
89 |
-
- Country211
|
90 |
-
- CLEVR Counting
|
91 |
-
- KITTI Distance
|
92 |
-
- STL-10
|
93 |
-
- RareAct
|
94 |
-
- Flickr30
|
95 |
-
- MSCOCO
|
96 |
-
- ImageNet
|
97 |
-
- ImageNet-A
|
98 |
-
- ImageNet-R
|
99 |
-
- ImageNet Sketch
|
100 |
-
- ObjectNet (ImageNet Overlap)
|
101 |
-
- Youtube-BB
|
102 |
-
- ImageNet-Vid
|
103 |
-
|
104 |
-
## Limitations
|
105 |
-
|
106 |
-
CLIP and our analysis of it have a number of limitations. CLIP currently struggles with respect to certain tasks such as fine grained classification and counting objects. CLIP also poses issues with regards to fairness and bias which we discuss in the paper and briefly in the next section. Additionally, our approach to testing CLIP also has an important limitation- in many cases we have used linear probes to evaluate the performance of CLIP and there is evidence suggesting that linear probes can underestimate model performance.
|
107 |
-
|
108 |
-
### Bias and Fairness
|
109 |
-
|
110 |
-
We find that the performance of CLIP - and the specific biases it exhibits - can depend significantly on class design and the choices one makes for categories to include and exclude. We tested the risk of certain kinds of denigration with CLIP by classifying images of people from [Fairface](https://arxiv.org/abs/1908.04913) into crime-related and non-human animal categories. We found significant disparities with respect to race and gender. Additionally, we found that these disparities could shift based on how the classes were constructed. (Details captured in the Broader Impacts Section in the paper).
|
111 |
-
|
112 |
-
We also tested the performance of CLIP on gender, race and age classification using the Fairface dataset (We default to using race categories as they are constructed in the Fairface dataset.) in order to assess quality of performance across different demographics. We found accuracy >96% across all races for gender classification with ‘Middle Eastern’ having the highest accuracy (98.4%) and ‘White’ having the lowest (96.5%). Additionally, CLIP averaged ~93% for racial classification and ~63% for age classification. Our use of evaluations to test for gender, race and age classification as well as denigration harms is simply to evaluate performance of the model across people and surface potential risks and not to demonstrate an endorsement/enthusiasm for such tasks.
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
## Feedback
|
117 |
-
|
118 |
-
### Where to send questions or comments about the model
|
119 |
-
|
120 |
-
Please use [this Google Form](https://forms.gle/Uv7afRH5dvY34ZEs9)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BiTransSciencia/www/index.html
DELETED
@@ -1,753 +0,0 @@
|
|
1 |
-
<!DOCTYPE html>
|
2 |
-
<html lang="en">
|
3 |
-
|
4 |
-
<head>
|
5 |
-
<meta charset="UTF-8">
|
6 |
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
-
<script type="text/javascript" src="index.js"></script>
|
9 |
-
<link rel="stylesheet" type="text/css" href="index.css">
|
10 |
-
<link href="index.js">
|
11 |
-
|
12 |
-
<script>
|
13 |
-
// check if the URL contains a hash symbol
|
14 |
-
if (window.location.hash) {
|
15 |
-
// remove the hash symbol from the URL and replace it with the updated URL
|
16 |
-
history.replaceState(null, null, window.location.href.split('#')[0]);
|
17 |
-
}
|
18 |
-
</script>
|
19 |
-
<link rel="icon" type="image/x-icon" href="datum/icon_081.svg">
|
20 |
-
<title>BiTransSciencia [081]</title>
|
21 |
-
|
22 |
-
|
23 |
-
</head>
|
24 |
-
|
25 |
-
<body>
|
26 |
-
<hr>
|
27 |
-
|
28 |
-
<!-- <object id="logo__081" title="logo__081" data="datum/logo_08.svg">
|
29 |
-
<img src="datum/logo_3600x1800__081.png" alt="logo__081">
|
30 |
-
</object> -->
|
31 |
-
|
32 |
-
<!-- <img src="datum/logo_3600x1800__081.png" onclick="openImagePopup(this.src)"> -->
|
33 |
-
|
34 |
-
<object id="logo__081">
|
35 |
-
<img src="datum/logo_3600x1800__081.png" alt="logo__081" width="360px" height="180px"
|
36 |
-
onclick="openImagePopup(this.src)">
|
37 |
-
</object>
|
38 |
-
|
39 |
-
<hr>
|
40 |
-
|
41 |
-
<p style="text-align: center;">'BiTransSciencia [081]' Evolution Tree (E.T.): <b>__0_0_0__</b></p>
|
42 |
-
|
43 |
-
<hr>
|
44 |
-
|
45 |
-
<fieldset id="fs__def">
|
46 |
-
<legend id="l__def">Definition</legend>
|
47 |
-
<p>
|
48 |
-
The 'BiTransSciencia'[numeric representation: '081'] is a 'Transmission Oriented - Pseudo based -
|
49 |
-
Closely-Opened System [__T_P_CO__.Ss]' based Data-Architectural Model for developing various
|
50 |
-
Software/Hardware Applications/Protocol using Computational Compiler/Interpretor based devices (such as
|
51 |
-
Computer).The 'BiTransSciencia' was inspired from Properties of general living organims in which, where and
|
52 |
-
how the Data is stored and accessed in these organims.
|
53 |
-
</p>
|
54 |
-
<p>
|
55 |
-
The 'BiTransSciencia' mainly focusses on two ascpects i.e. 'Data Storage' and 'Transmission of Data'
|
56 |
-
with/without manipulation of data. On the basis of these ascpects the Architecture was developed such that
|
57 |
-
the data transmits from one to another using a transmission medium; where we generally name the two
|
58 |
-
data-points(from where the data is stored) as 'Server[0]' and 'Sensor(s)[1]' where the 'Server' is basically
|
59 |
-
inspired from the functioning of 'Brain'/'CPU' and 'Sensor(s)' have been inspired from functioning of 'Sense
|
60 |
-
Organs in a living organisms & the external components of a Computer
|
61 |
-
(Mouse,Keyboard,Speakers,Monitor,etc...)' and the 'transmission-media[8]' was inspired from functionality of
|
62 |
-
'Nerves in living organisms & wires/wireless functionality in Computer Devices'.
|
63 |
-
<br>
|
64 |
-
Here the role of 'Server[0]/Sensors[1]' is to store data by itself or from 'Sensors[1]/Server[0]'
|
65 |
-
respectively via 'Transmission[8]' with/without manipulation of data. The data can only be manipulated at
|
66 |
-
'Transmission[8]' after acessing and before storing the data (if required).
|
67 |
-
</p>
|
68 |
-
<p>
|
69 |
-
'BiTransSciencia' is a cyclic process where the data gets transmitted to and from 'Server↔Sensors'
|
70 |
-
</p>
|
71 |
-
</fieldset>
|
72 |
-
<br>
|
73 |
-
<fieldset id="fs__origin">
|
74 |
-
<legend id="l__origin">Origin (Derivation of the term 'BiTransSciencia')</legend>
|
75 |
-
<p>
|
76 |
-
The term 'BiTransSciencia' is the composition of three terms: Bi-Trans-Sciencia; where 'Bi' means 'Two'(Two
|
77 |
-
Data Points), 'Trans' means 'across-Transmission(here)' and 'Sciencia' means 'Science(Knowledge)'.
|
78 |
-
<br>
|
79 |
-
So, the term 'BiTransSciencia' provides the 'Knowledge about where and how the data to be stored &
|
80 |
-
manipulated and gets transmited across the points (Server and Sensor(s))'.
|
81 |
-
</p>
|
82 |
-
<p>
|
83 |
-
The logo of 'BiTransSciencia' consists of the composition of numerics '0,8,1' which indicates
|
84 |
-
'Data-Point-0(Server),Transmission Medium,Data-Point-1(Sensor)'[from left-right] and a schematic
|
85 |
-
transmission of data from 0↔1 via 8 along a line (irrespective of Size,Color and alignments)
|
86 |
-
<br>
|
87 |
-
In the logo '0 & 1' were represented inside '8' for indication of cyclic transmission of data across 0 and 1
|
88 |
-
</p>
|
89 |
-
</fieldset>
|
90 |
-
<br>
|
91 |
-
<fieldset id="fs__terminology">
|
92 |
-
<legend id="l__terminology">Terminology in 'BiTransSciencia'</legend>
|
93 |
-
<div class="div__terminology">
|
94 |
-
<ul>
|
95 |
-
<li>
|
96 |
-
<b><i><u>UniPolySciencia</u></i></b>: Study of the Universe discovered by 'K.V.N.Aditya'(not yet
|
97 |
-
published 'E.T.: __0_0_0__'),The 'UniPolySciencia' is the composition of 'Uni:Mono Atomic
|
98 |
-
Particle','Poly: Complex Molecules' (definition is unstable* due to E.T.: __0_0_0__).
|
99 |
-
</li>
|
100 |
-
<li>
|
101 |
-
<b><i><u>BiTransSciencia [081]</u></i></b>: A Data-Architectural Model used for designing Hardware
|
102 |
-
Models and developing Software Applications which was discovered by 'K.V.N.Aditya'.
|
103 |
-
</li>
|
104 |
-
<li>
|
105 |
-
<b><i><u>System</u></i></b>: The root Molecule/Folder which consists of all the Molecules/Folders
|
106 |
-
&(or)/ Particles/Files which aids in storing and transmiting data across Data-Points with some
|
107 |
-
unique characteristics (from 'UniPolySciencia')
|
108 |
-
</li>
|
109 |
-
<li>
|
110 |
-
<b><i><u>Surrounding(s)</u></i></b>: Except the System Molecule/Folder, all other Molecules/Folders
|
111 |
-
and Particles/Files in the Universe/a Device and where the Molecules & Particles can be inherited
|
112 |
-
from and to the System. (from 'UniPolySciencia')
|
113 |
-
</li>
|
114 |
-
<li>
|
115 |
-
<b><i><u>Molecule(s)</u></i></b>: Composition of a Molecule or Composition of Particles (generally
|
116 |
-
known as 'Folders' according to Computer-Language) (from 'UniPolySciencia')
|
117 |
-
</li>
|
118 |
-
<li>
|
119 |
-
<b><i><u>Particle(s)</u></i></b>: A Mono-Component where the data is actually stored (generally
|
120 |
-
known as 'Files' according to Computer-Language) (from 'UniPolySciencia')
|
121 |
-
</li>
|
122 |
-
<li>
|
123 |
-
<b><i><u>Data/Datum</u></i></b>: A form of composition of energy which generates structure of
|
124 |
-
waves,etc... that can be used for Analyzing the Particle / to generate Particle by manipulating the
|
125 |
-
Particle (Mono-Structuared(File Transmitting without manipulating (File-Copy)) / Di-Structured(File
|
126 |
-
Transmitting with manipulating))
|
127 |
-
</li>
|
128 |
-
<li>
|
129 |
-
<b><i><u>Data-Point(s)</u></i></b>: Location/Address where the data is stored in a Particle
|
130 |
-
</li>
|
131 |
-
<li>
|
132 |
-
<b><i><u>Data-Transmission</u></i></b>: Transmitting the data from one particle to another particle
|
133 |
-
with or with-out manipulationg the data
|
134 |
-
</li>
|
135 |
-
<li>
|
136 |
-
<b><i><u>Evolution</u></i></b>: Changes occurred in the structure of the data with-in a Particle
|
137 |
-
which effects its root Molecule ('insertion','update/alteration','deletion') (from
|
138 |
-
'UniPolySciencia')
|
139 |
-
</li>
|
140 |
-
<li>
|
141 |
-
<b><i><u>Evolution-Tree</u></i></b>: Representation of the
|
142 |
-
System's/Surrounding's/Molecule's/Particle's Evolution in a structure of a tree (from
|
143 |
-
'UniPolySciencia')
|
144 |
-
</li>
|
145 |
-
</ul>
|
146 |
-
</div>
|
147 |
-
|
148 |
-
</fieldset>
|
149 |
-
|
150 |
-
<br>
|
151 |
-
|
152 |
-
<fieldset id="fs__bts_architecture_protocols">
|
153 |
-
<legend id="l__bts_architecture_protocols">'BiTransSciencia' Architecture Protocols</legend>
|
154 |
-
<div id="div__tree_081" style="text-align: center;">
|
155 |
-
<br>
|
156 |
-
<!-- <object id="tree__081" title="logo__081" type="image/svg+xml" data="svg/081_structure.svg" width="720px" height="360px"></object> -->
|
157 |
-
<img id="structure__081" src="datum/structure_081.svg" alt="structure__081"
|
158 |
-
onclick="openImagePopup(this.src)">
|
159 |
-
<pre><i><u>Schematic representation of tree structure of 'BiTransSciencia [081]'</u></i></pre>
|
160 |
-
<br>
|
161 |
-
</div>
|
162 |
-
<div>
|
163 |
-
<p>
|
164 |
-
The 'BiTransSciencia [081]' initialized by consisting of two points where the data is been stored. The
|
165 |
-
data may be originated with-in the system or from its Surroundings.Since there are two data points and
|
166 |
-
the data to be transmited from one to another, now there should be a medium to transmit the data... Here
|
167 |
-
comes the necessity of 'BiTransSciencia [081]' where '0 and 1' are the data points and '8' be the
|
168 |
-
transmitting medium. This transmiting medium transmits from one to another.
|
169 |
-
<br>
|
170 |
-
There are mainly two transmissions that can be occurred i.e. with-in the system and/or System to &/ from
|
171 |
-
Surroundings. So the Architecture gets splits into three(3) namely {'0','8','1'} such that '0' & '1'
|
172 |
-
consists of the data of the 'System' and 'Surroundings' and '8' consists of transmission protocols which
|
173 |
-
aids to transmits the data that can be accessced only from the system.
|
174 |
-
<br>
|
175 |
-
<pre>The '0'&'1' consists majority of data/interface(s)/programs that has been transmitted to/from System & Surroundings, and '8' consists majority of the System-based data/transmissions</pre>
|
176 |
-
</p>
|
177 |
-
<p>
|
178 |
-
Since '0' and '1' has two(2) kinds of data (i.e. System and Surroundings), these gets splits into
|
179 |
-
three(3) sub-divisions namely:
|
180 |
-
<p>
|
181 |
-
'0' gets splits into:
|
182 |
-
<dl>
|
183 |
-
<dt><b>'<u>10</u>'</b>:</dt>
|
184 |
-
<dd>Consists of Partial/Source data of System's Surroundings</dd>
|
185 |
-
<dt><b>'<u>88</u>'</b>:</dt>
|
186 |
-
<dd>Consists of protocols to transmit the extracted data into the System [into '/8/_0_/10/']</dd>
|
187 |
-
<dt><b>'<u>01</u>'</b>:</dt>
|
188 |
-
<dd>Consists of Partial/Source data from '/8/_0_/' that to be transmitted to its Surroundings</dd>
|
189 |
-
</dl>
|
190 |
-
<pre>The molecules/particles '10' is required if to extract partial data from its surroundings, else the data directly be stored directly into '/8/_0_/10/' via surrounding's/system transmissions</pre>
|
191 |
-
<pre>The molecules/particles '01' is required if to transmit partial data to its surroundings, else the data produced from the '/8/_0_/' can be directly accessed to its surroundings. The '01' Molecule mainly aids in data abstraction while transmitting to its surroundings...</pre>
|
192 |
-
</p>
|
193 |
-
<p>
|
194 |
-
'1' gets splits into:
|
195 |
-
<dl>
|
196 |
-
<dt><b>'<u>01</u>'</b>:</dt>
|
197 |
-
<dd>Consists of Partial/Source data of System's Surroundings</dd>
|
198 |
-
<dt><b>'<u>88</u>'</b>:</dt>
|
199 |
-
<dd>Consists of protocols to transmit the extracted data into the System [into '/8/_1_/01/']</dd>
|
200 |
-
<dt><b>'<u>10</u>'</b>:</dt>
|
201 |
-
<dd>Consists of Partial/Source data from '/8/_1_/' that to be transmitted to its Surroundings</dd>
|
202 |
-
</dl>
|
203 |
-
<pre>The molecules/particles '01' is required if to extract partial data from its surroundings, else the data directly be stored directly into '/8/_1_/01/' via surrounding's/system transmissions</pre>
|
204 |
-
<pre>The molecules/particles '10' is required if to transmit partial data to its surroundings, else the data produced from the '/8/_1_/' can be directly accessed to its surroundings. The '10' Molecule mainly aids in data abstraction while transmitting to its surroundings...</pre>
|
205 |
-
</p>
|
206 |
-
</p>
|
207 |
-
<p>
|
208 |
-
Till now, the data has been transmitted across System-Surroundings... Now, we explore how the data is
|
209 |
-
transmitted with-in the System i.e. the actual data transmission occurs in between '0' & '1' is at '8'
|
210 |
-
namely '_0_' ↔ '__8__' ↔ '_1_'.
|
211 |
-
<br>
|
212 |
-
The '_0_' molecule consists of three(3) further molecules namely '10','00','01' where the actual '0's
|
213 |
-
System data been addressed. The '10' molecule consists of data that have been extracted from
|
214 |
-
Surroundings via '/0/88/' or directly from Surroundings. The molecule '00' consists of Origin data of
|
215 |
-
'0' that has been evoluted within-it or via System transmissions. The '01' molecule consists of data
|
216 |
-
that can be accessed by its Surroundings.
|
217 |
-
<br>
|
218 |
-
The '_1_' molecule consists of three(3) further molecules namely '01','11','10' where the actual '1's
|
219 |
-
System data been addressed. The '01' molecule consists of data that have been extracted from
|
220 |
-
Surroundings via '/1/88/' or directly from Surroundings. The molecule '11' Consists of Origin data of
|
221 |
-
'1' that has been evoluted within-it or via System transmissions. The '10' molecule consists of data
|
222 |
-
that can be accessed by its Surroundings.
|
223 |
-
<br>
|
224 |
-
The '__8__' molecule consists of three(3) further molecules namely '_0_','_8_','_1_'.
|
225 |
-
<p>
|
226 |
-
The '_0_' molecule consists of three(3) further molecules namely '081','080','180'.
|
227 |
-
<p>
|
228 |
-
The '081' molecule consists of transmission protocols to transmit data from '_0_' to '_1_'
|
229 |
-
<br>
|
230 |
-
The '080' molecule consists of transmission protocols to transmit data with-in '_0_' molecule.
|
231 |
-
<br>
|
232 |
-
The '180' molecule consists of transmission protocols to transmit data from '_1_' to '_0_' on the basis
|
233 |
-
of Server request...
|
234 |
-
</p>
|
235 |
-
<br>
|
236 |
-
The '_1_' molecule consists of three(3) further molecules namely '180','181','081'.
|
237 |
-
<p>
|
238 |
-
The '180' molecule consists of transmission protocols to transmit data from '_1_' to '_0_'
|
239 |
-
<br>
|
240 |
-
The '181' molecule consists of transmission protocols to transmit data with-in '_1_' molecule.
|
241 |
-
<br>
|
242 |
-
The '081' molecule consists of transmission protocols to transmit data from '_0_' to '_1_' on the basis
|
243 |
-
of Sensor request...
|
244 |
-
</p>
|
245 |
-
<br>
|
246 |
-
The '_8_' molecule consists of three(3) further molecules namely '808','818','888'.
|
247 |
-
<p>
|
248 |
-
The '808' molecule consists of two(2) further molecules namely '0' and '8'.
|
249 |
-
<p>
|
250 |
-
The '8' molecule consists of interfaces that helps in calling the '/__8__/_0_/' protocols for
|
251 |
-
transmitting the data.
|
252 |
-
<br>
|
253 |
-
The '0' molecule consists of "input → output" log files for the respective call of the protocols
|
254 |
-
and molecule(s)/particles(s) of processed data (such like 'cached data',etc...). This is an optional
|
255 |
-
molecule.
|
256 |
-
</p>
|
257 |
-
<br>
|
258 |
-
The '818' molecule consists of two(2) further molecules namely '1' and '8'.
|
259 |
-
<p>
|
260 |
-
The '8' molecule consists of interfaces that helps in calling the '/__8__/_1_/' protocols for
|
261 |
-
transmitting the data.
|
262 |
-
<br>
|
263 |
-
The '1' molecule consists of "input → output" log files for respective call of the protocols and
|
264 |
-
molecule(s)/particles(s) of processed data (such like 'cached data',etc...). This is an optional
|
265 |
-
molecule.
|
266 |
-
</p>
|
267 |
-
<br>
|
268 |
-
The '888' molecule consists of three(3) further molecules namely '0', '8', '1'.
|
269 |
-
<p>
|
270 |
-
The '0' and '1' molecule(s) consists of protocols that aids in transmitting of data across '1' and '0'
|
271 |
-
data transmissions. These are intermediate transmitting data molecule.
|
272 |
-
<br>
|
273 |
-
The '8' molecule consists of "input ↔ transmitting ↔ output" log files for respective call of
|
274 |
-
the protocols and molecule(s)/particles(s) of processed data (such like 'cached data',etc...). This is
|
275 |
-
an optional molecule.
|
276 |
-
</p>
|
277 |
-
<br>
|
278 |
-
The '888' molecule is required to transmit across the '_0_' and '_1_' and optional to transmit within '_0_'
|
279 |
-
and '_1_'. In 'Open System', the 'interface' transmissions can be embedded within this molecule such that
|
280 |
-
either 'Server[0]' or 'Sensors[1]' can access directly without separate interfaces.(i.e. interface{'Closed
|
281 |
-
System','Closely-Opened System' : Optional; 'Open System': Recommended})
|
282 |
-
<br>
|
283 |
-
The '808' and '818' molecules are required for transmitting the data via interfaces{'Closed
|
284 |
-
System','Closely-Opened System' : Recommended; 'Open System': Optional} and Complex transmissions, for
|
285 |
-
simple
|
286 |
-
transmissions, the data can be transmitted via '/__8__/_0_/' and '/__8__/_1_/' directly, but the log files
|
287 |
-
to be generated in '808' and '818' molecules respectively.
|
288 |
-
</p>
|
289 |
-
</p>
|
290 |
-
|
291 |
-
</p>
|
292 |
-
<p>
|
293 |
-
There is no specific location where the '8' to be located since it is an intermediate point. It depends
|
294 |
-
of 'Eminencial' properties (from "'BiTransSciencia' Properties")
|
295 |
-
</p>
|
296 |
-
<br>
|
297 |
-
<!-- --- -->
|
298 |
-
<br>
|
299 |
-
<div>
|
300 |
-
There are two special particles named '.Ss' and '.et' which represents 'Evolution Tree' and
|
301 |
-
'System-Surrounding' characteristics.
|
302 |
-
<br>
|
303 |
-
<br>
|
304 |
-
<div>
|
305 |
-
|
306 |
-
   :→ The '.Ss' particle is used to represent the 'System-Surroundings'
|
307 |
-
characteristics on the basis of "'FSE' properties of '081'"(from the "'BiTransSciencia'
|
308 |
-
Properties"). The
|
309 |
-
syntax of '.Ss' is "__[F]_[S]_[E]__"; where {F,S,E} is represented based on the abbreviations of
|
310 |
-
these sub-divisional properties.
|
311 |
-
<br>
|
312 |
-
<p>
|
313 |
-
     
|
314 |
-
The molecules/particles can be outside the [081] and inside the System. These molecules/particles have
|
315 |
-
Universal access w.r.t the System and the Surroundings those may be of any of {'0','8','1'}. These are
|
316 |
-
termed as '__Ss__' molecules and '_Ss_' particles.
|
317 |
-
</p>
|
318 |
-
<p>
|
319 |
-
     There are three(3) types of '.Ss' molecules/particles i.e {_,__,#}:
|
320 |
-
<br>
|
321 |
-
<dl>
|
322 |
-
<dt>      <b>_</b> -</dt>
|
323 |
-
<dd>     
|
324 |
-
-
|
325 |
-
The molecule '_' consists of molecules/particles which are connected to any/all of the molecules/particles of the System(majority) &/( i.e. and/or) Surroundings which are 'Private' i.e. these can only be accessed by the '0' or '1' ['_' represents '2<sup>0</sup>' (where '0' describes 'Private')].
|
326 |
-
</dd>
|
327 |
-
<dt>      <b>__</b> -</dt>
|
328 |
-
<dd>     
|
329 |
-
-
|
330 |
-
The molecule '__' consists of molecules/particles which are connected to any/all of the molecules/particles of the System(majority) &/ Surroundings which are 'Public' i.e. these can be accessed by the '0' and '1' ['__' represents '2<sup>1</sup>' (where '1' describes 'Public')].
|
331 |
-
</dd>
|
332 |
-
<dt>      <b>#</b> -</dt>
|
333 |
-
<dd>     
|
334 |
-
-
|
335 |
-
The '#' represents the molecule(s)/particle(s) which are related to any/all the molecules/particles of the System &/ Surroundings and other molecules/particles which don't meet the properties of '_' and/or '__'. The molecules/particles are of superset of '_', '__' by which these can be accessed by any of the molecules/particles of the System and/or Surroundings. The '.et' is also a type of '#' molecule/particle which represents the System's Evolution-Tree but it also has its own properties i.e. it is superset of all the Molecules/Particles of the System &/ Surroundings on the basis of its specification. Note that '#' is not a specific molecule/particle, it's just a representation of the molecules/particles which are not of '_' , '__' and the 081 Molecules...
|
336 |
-
</dd>
|
337 |
-
|
338 |
-
</dl>
|
339 |
-
|
340 |
-
</p>
|
341 |
-
</div>
|
342 |
-
<br>
|
343 |
-
<div>
|
344 |
-
   :→ The '.et' particle is used to represent the evolution of the System (in
|
345 |
-
general-commonly known as 'Version'). The syntax of '.et' is "__[Stem(s)]_[Branch(s)]_[Leaf(s)]__";
|
346 |
-
where 'Stem' count represents the number of evolutions added or removed or 'altered' in the system i.e.
|
347 |
-
the evolutions that occurred in the System's root molecule, 'Branch(s)' count represents the number of
|
348 |
-
evolutions that occurred inside the System's root molecule, 'Leaf(s)' count represents the number of
|
349 |
-
evolutions that occurred inside the System's particles.For every system the "Root" is a "BlackHole".
|
350 |
-
Initially the '.et' is "__0_0_0__" while evoluting, after its initial evolution the '.et' is as
|
351 |
-
'__1_1_1__', then after it depends on the evolutions... The name of the System to be initialized within
|
352 |
-
the [.et] Particle
|
353 |
-
<p>
|
354 |
-
     The types of 'Evolution-Tree':
|
355 |
-
<br>
|
356 |
-
       i. <b><i>Balanced Evolution-Tree</i></b> :
|
357 |
-
<br>
|
358 |
-
           : This represents the initial
|
359 |
-
System
|
360 |
-
that has been Evoluted (Either by Hirerchial/Derived or via BlackHole/Neutral[The System is evoluted
|
361 |
-
by
|
362 |
-
no dependecy on surrounding Systems]).The syntax of this Evolution-Tree is as
|
363 |
-
"__[Stem(s)]_[Branch(s)]_[Leaf(s)]__"
|
364 |
-
<br>
|
365 |
-
       ii. <b><i>Pseudo Evolution Tree</i></b> :
|
366 |
-
<br>
|
367 |
-
           If a System has evoluted but if
|
368 |
-
this
|
369 |
-
has not effected the initial System, then the '.et' is represented by 'Pseudo Evolution-Tree'. This
|
370 |
-
is
|
371 |
-
only applicable for the evolutions with-in only one System. The syntax of this Evolution-Tree is
|
372 |
-
"_[Branch(s)]_[Leaf(s)]_"."__[Stem(s)]_[Branch(s)]_[Leaf(s)]__" ('.'(Single Dot) read as "pseudo
|
373 |
-
of"(here)); in
|
374 |
-
which left of "." is the System that has been evoluted of the System of the right of the ".". Here
|
375 |
-
the
|
376 |
-
Pseudo System doesn't Consists [Stem] since the [Stem] of the Pseudo System is same as its Balanced
|
377 |
-
System [right of "."].
|
378 |
-
<br>
|
379 |
-
       iii. <b><i>Hierarchical Evolution Tree</i></b> :
|
380 |
-
<br>
|
381 |
-
           If a Balanced System derives any
|
382 |
-
of
|
383 |
-
the Molecules/Particles from the surrounding System(s) [Balanced/Hierarchical], the evolution of
|
384 |
-
this
|
385 |
-
System is represented by "Hirarchial Evolution-Tree". The syntax of the Evolution-Tree is
|
386 |
-
"__[Stem(s)]_[Branch(s)]_[Leaf(s)]__"-"__[Stem(s)]_[Branch(s)]_[Leaf(s)]__"....-"__[Stem(s)]_[Branch(s)]_[Leaf(s)]__"('-'
|
387 |
-
read as "Hierarchical of"(here)); in which the left of "-" is the Balanced System[not to be Black
|
388 |
-
Holed
|
389 |
-
since Hierarchical] which derives 'n' number of surrounding Systems which are separated by "-". Here
|
390 |
-
the
|
391 |
-
Stems can be different for left and right "-" since the Systems are non-Identical.
|
392 |
-
This Evolution-Tree can be represented with-in the Particle [.et] or by only initializing the
|
393 |
-
instance
|
394 |
-
System Evolution-Tree [left of "-"] and the derived System(s) to be inside the [.et] Particle by
|
395 |
-
initializing the Hierarchical System(s) with "-" with suffix of its Hierarchical System's Name
|
396 |
-
separated by
|
397 |
-
'--' and the successive Hierarchical System(s) are separated by "\n"(new line)
|
398 |
-
</p>
|
399 |
-
<p>
|
400 |
-
     The '.et' can be initialized by:
|
401 |
-
<br>
|
402 |
-
       i. (as a Molecule): The {Molecules,Particles} will be
|
403 |
-
initiated with-in the '.et' Molecule.
|
404 |
-
<br>
|
405 |
-
       ii. (as a Particle): The '.et' Particle will be
|
406 |
-
initiated
|
407 |
-
with-in the Root/Molecule.
|
408 |
-
|
409 |
-
</p>
|
410 |
-
</div>
|
411 |
-
|
412 |
-
</div>
|
413 |
-
<br><br>
|
414 |
-
<p>
|
415 |
-
The different line-strokes represents different relations in between the molecules/particles with
|
416 |
-
respect to the data/transmission medium; i.e.
|
417 |
-
<br>
|
418 |
-
<p>The "———" represents the direct(or)indirect[while accessing with "---" type
|
419 |
-
molecules/particles] relation; "---" represents indirect relation; "..." represents about the
|
420 |
-
System-Surround relations</p>
|
421 |
-
</p>
|
422 |
-
<p>
|
423 |
-
The {Black,Gray, White, Blue, Green, Red} color-codes are used in the schematic-architecture
|
424 |
-
which indicates:
|
425 |
-
<br>
|
426 |
-
<dl>
|
427 |
-
<dt>Black -</dt>
|
428 |
-
<dd>- Representation of the Universe</dd>
|
429 |
-
<dt>Gray -</dt>
|
430 |
-
<dd>- 'Gray' is used to represent System's Molecule(s)/Particle(s) {'.et', '.Ss'} and/or 'Hierarchical
|
431 |
-
Transmission'</dd>
|
432 |
-
<dt>White -</dt>
|
433 |
-
<dd>- 'White' is used to represent data-transmission across System-Surroundings and the Boundary(s) of
|
434 |
-
the Molecule(s)/Particle(s)</dd>
|
435 |
-
<dt>Blue -</dt>
|
436 |
-
<dd>- 'Blue' is used to represent 'Server[0]' (which simulates 'Back-end' on the basis of its
|
437 |
-
wavelength)</dd>
|
438 |
-
<dt>Green -</dt>
|
439 |
-
<dd>- 'Green' is used to represent 'Transmission medium[8]' (which simulates 'intermediate of '0' and
|
440 |
-
'1'' on the basis of its wavelength)</dd>
|
441 |
-
<dt>Red -</dt>
|
442 |
-
<dd>- 'Red' is used to represent 'Sensors[1]' (which simulates 'Front-end' on the basis of its
|
443 |
-
wavelength)</dd>
|
444 |
-
</dl>
|
445 |
-
</p>
|
446 |
-
|
447 |
-
</div>
|
448 |
-
</fieldset>
|
449 |
-
|
450 |
-
<br>
|
451 |
-
|
452 |
-
<fieldset id="fs__fse">
|
453 |
-
<legend id="l__fse">'BiTransSciencia' Properties</legend>
|
454 |
-
<p>
|
455 |
-
For a System developed by 'BiTransSciencia' consists of three(3) Properties [applicable for System and
|
456 |
-
Surroundings]:
|
457 |
-
<ul>
|
458 |
-
<li>Functional Properties</li>
|
459 |
-
<li>Structural Properties</li>
|
460 |
-
<li>Eminencial Properties</li>
|
461 |
-
</ul>
|
462 |
-
These Properties are commonly called as "'FSE' Properties of '081'"
|
463 |
-
</p>
|
464 |
-
<p>
|
465 |
-
<b><u>Functional Properties</u>:</b> Functional Properties describes about the function of the System for
|
466 |
-
which it was developed for.
|
467 |
-
<br>
|
468 |
-
These are of three(3) types:
|
469 |
-
<ul>
|
470 |
-
<li>Data Oriented System</li>
|
471 |
-
<li>Transmission Oriented System</li>
|
472 |
-
<li>Data-Transmission Oriented System</li>
|
473 |
-
</ul>
|
474 |
-
<br>
|
475 |
-
<b><i>'Data Oriented System'</i>:</b>   'Data Oriented' based systems mainly focusses on the
|
476 |
-
'where to store the data' based on required conditions with minimum transmission protocols
|
477 |
-
<br>
|
478 |
-
<b><i>'Transmission Oriented System'</i></b>   'Transmission Oriented' based systems mainly
|
479 |
-
focusses on 'how to store the data' based on required conditions with minimum data with-in the system
|
480 |
-
<br>
|
481 |
-
<b><i>'Data-Transmission Oriented System'</i></b>   'Data-Transmission' based systems focusses on
|
482 |
-
both 'where and how the data to be stored' with required transmission protocols
|
483 |
-
</p>
|
484 |
-
<p>
|
485 |
-
<b><u>Structural Properties</u></b>: Structural Properties describes about the Structure of the System
|
486 |
-
based on the design of the System
|
487 |
-
<br>
|
488 |
-
These are of three(3) types:
|
489 |
-
<ul>
|
490 |
-
<li>Pseudo System</li>
|
491 |
-
<li>Neutral System</li>
|
492 |
-
<li>Balanced System</li>
|
493 |
-
</ul>
|
494 |
-
<br>
|
495 |
-
<b><i>'Pseudo System'</i>:</b>   'Pseudo System' is a system in which it transmits to or from
|
496 |
-
with-in the System or Surroundings. The nature of the system is flexible and unstable(to make system Stable and
|
497 |
-
may or may not follow all the protocols of 'BiTransSciencia [081]'. To be converted to any of the above
|
498 |
-
Properties i.e. 'Natural/Balanced' which may loose flexible characteristic). At the initial Evolution of a
|
499 |
-
System
|
500 |
-
(i.e. et: __0_0_0__) possesses 'Pseudo System' util the System is initially Evoluted (et: __1_1_1__) by
|
501 |
-
transforming to 'Neutral'/'Balanced' System(s). Some of the System(s) possess the 'Pseudo System' even after
|
502 |
-
their initial evolution based on their functonality...
|
503 |
-
<br>
|
504 |
-
<b><i>'Balanced System'</i>:</b>   'Balanced System' is a system in which it must transmits the
|
505 |
-
data with-in the System and Surroundings. The nature of the system is Stable and Dynamic
|
506 |
-
<br>
|
507 |
-
<b><i>'Neutral System'</i>:</b>   'Neutral System' is a system in which it must transmits with-in
|
508 |
-
the system and doesn't transmit to and from Surroundings. The nature of the system is Stable and Static.
|
509 |
-
|
510 |
-
</p>
|
511 |
-
<p>
|
512 |
-
<b><u>Eminencial Properties</u></b>: Eminencial Properties describes about accessing of the data and
|
513 |
-
transmission of data with respective to the Data-Points [i.e. 'Server' and 'Sensors']
|
514 |
-
<br>
|
515 |
-
These are of three(3) types:
|
516 |
-
<br>
|
517 |
-
<ul>
|
518 |
-
<li>Open System</li>
|
519 |
-
<li>Closed System</li>
|
520 |
-
<li>Closely-Opened System</li>
|
521 |
-
</ul>
|
522 |
-
<br>
|
523 |
-
<b><i>'Open System'</i>:</b>   The data in 'Server', 'Sensor' and 'Transmission of Data' can be
|
524 |
-
accessed from any of the Data-Point within the transmission medium. The '8' resides at any of the data-points or
|
525 |
-
at an individual location
|
526 |
-
<br>
|
527 |
-
<b><i>'Closed System'</i>:</b>   The data-point can only access the data with-in a data-point and
|
528 |
-
its protocols and the system protocols and system data [example: the 'Server' can only access the data with-in
|
529 |
-
'Server' , and the protocols with-in '__8__/_0_', and '__8__/_8_'].The molecule '8' gets splits and resides at
|
530 |
-
the data-points except '/8/__8__/_8_/888/' which resides at an individual location that can be accessed by the
|
531 |
-
data-points
|
532 |
-
<br>
|
533 |
-
<b><i>'Closely-Opened System'</i>:</b>   In this, any of the data-point have control over the
|
534 |
-
system in which it prescribes the manipulation of the data by a data-point.
|
535 |
-
<br>
|
536 |
-
 In 'Open-System' the folders '0' and '1' can be accessed by any of the data-point but, in 'Closed System'
|
537 |
-
&
|
538 |
-
'Closely-Opened System' the folders '0' and '1' can only be accessed by the respective data folder unless the
|
539 |
-
folder becomes the input/output of the surrounding Systems.The '8' resides as per the protocols of controlling
|
540 |
-
data-point (i.e. 'Server[0]' or 'Sensors[1]')
|
541 |
-
</p>
|
542 |
-
</fieldset>
|
543 |
-
<br>
|
544 |
-
<fieldset id="fs__download">
|
545 |
-
<legend id="l__download">Download 'BiTransSciencia [081]' Schematic Structure</legend>
|
546 |
-
<div class="div__dl">
|
547 |
-
<code>Download the below zip file to install 'BiTransSciencia [081]' Schematic Structure... The folders/files can be manipulated as per your System requriments w.r.t 'BiTransSciencia [081]' Protocols</code>
|
548 |
-
<br><br>
|
549 |
-
<a id="a__dl" href="/datum/zip__081/__0_0_0__.et--zip__BiTransSciencia.zip" download>Download 'BiTransSciencia [081]' Schematic Structure</a>
|
550 |
-
<br>
|
551 |
-
<pre>!! Thank You choosing 'BiTransSciencia [081]' Data-Architecture for evoluting your System !!</pre>
|
552 |
-
</div>
|
553 |
-
</fieldset>
|
554 |
-
<br>
|
555 |
-
<fieldset id="fs__ack">
|
556 |
-
<legend id="l__ack">Surrounding Acknowledgement(s)</legend>
|
557 |
-
|
558 |
-
<!-- <div id="div__ack">
|
559 |
-
<a title="UniPolySciencia" href="#" target="_self"><img class="img__bts_ext_rs__sq" alt="UniPolySciencia" src="svg/ico_logo__ups.svg"></a>
|
560 |
-
<a title="Inkscape" href="https://inkscape.org/" target="_blank"><img class="img__bts_ext_rs__sq" alt="Inkscape" src="svg/inkscape-flat-logo-2color-text.svg" style="background-color: white;"></a>
|
561 |
-
<a title="Anaconda" href="https://www.anaconda.com/" target="_blank"><img class="img__bts_ext_rs__rec" alt="Anaconda" src="https://upload.wikimedia.org/wikipedia/commons/e/ea/Conda_logo.svg"></a>
|
562 |
-
<a title="Python Software Foundation" href="https://www.python.org/" target="_blank"><img class="img__bts_ext_rs__rec" alt="Python Software Foundation" src="https://staging.python.org/static/community_logos/python-logo-inkscape.svg"></a>
|
563 |
-
<a title="W3C" href="https://www.w3.org/" target="_blank"><img class="img__bts_ext_rs__rec" alt="W3C" src="https://www.w3.org/Icons/WWW/w3c_home_nb-v.svg"></a>
|
564 |
-
<a title="Visual Studio Code (from 'MicroSoft')" href="https://code.visualstudio.com/" target="_blank"><img class="img__bts_ext_rs__sq" alt="Visual Studio Code (Microsoft)" src="svg/vscode.svg"></a>
|
565 |
-
<a title="git" href="https://git-scm.com/" target="_blank"><img class="img__bts_ext_rs__sq" alt="git-scm" src="https://git-scm.com/images/logos/downloads/Git-Logo-2Color.svg" style="background-color: white; width: 100px;"></a>
|
566 |
-
<a title="FileZilla" href="https://filezilla-project.org/" target="_blank"><img class="img__bts_ext_rs__sq" alt="FileZilla" src="https://upload.wikimedia.org/wikipedia/commons/0/01/FileZilla_logo.svg"></a>
|
567 |
-
<a title="SourceForge" href="https://sourceforge.net" target="_blank"><img class="img__bts_ext_rs__rec" alt="SourceForge" src="https://sourceforge.net/sflogo.php?type=18&group_id=3558441"></a>
|
568 |
-
<a title="Firefox" href="https://www.mozilla.org/" target="_blank"><img class="img__bts_ext_rs__sq" alt="Firefox" src="svg/Fx-Browser-lockup-vertical.svg" style="background-color: white; width: 100px;"></a>
|
569 |
-
<a title="Creative Commons" href="https://creativecommons.org/" target="_blank"><img class="img__bts_ext_rs__rec" alt="Creative commons" src="https://mirrors.creativecommons.org/presskit/logos/cc.logo.svg" style="background-color: white; width: 100px;"></a>
|
570 |
-
<br>
|
571 |
-
<a id="a__ack" title="Windows (by 'Microsoft')">Windows (from 'MicroSoft')</a>
|
572 |
-
|
573 |
-
</div> -->
|
574 |
-
|
575 |
-
|
576 |
-
<div id="div__ack">
|
577 |
-
<a title="UniPolySciencia" href="#" target="_self">UniPolySciencia</a>
|
578 |
-
<a title="Inkscape" href="https://inkscape.org/" target="_blank">Inkscape</a>
|
579 |
-
<a title="Anaconda" href="https://www.anaconda.com/" target="_blank">Anaconda</a>
|
580 |
-
<a title="Python Software Foundation" href="https://www.python.org/" target="_blank">Python Software
|
581 |
-
Foundation</a>
|
582 |
-
<a title="W3C" href="https://www.w3.org/" target="_blank">W3C</a>
|
583 |
-
<a title="Visual Studio Code (from 'MicroSoft')" href="https://code.visualstudio.com/"
|
584 |
-
target="_blank">Visual Studio Code (from 'MicroSoft')</a>
|
585 |
-
<a title="git" href="https://git-scm.com/" target="_blank">Git</a>
|
586 |
-
<a title="FileZilla" href="https://filezilla-project.org/" target="_blank">FileZilla</a>
|
587 |
-
<a title="SourceForge" href="https://sourceforge.net" target="_blank">SourceForge</a>
|
588 |
-
<a title="Firefox" href="https://www.mozilla.org/" target="_blank">Firefox</a>
|
589 |
-
<a title="Creative Commons" href="https://creativecommons.org/" target="_blank">creative Commons</a>
|
590 |
-
<a title="Windows (by 'Microsoft')">Windows (from 'MicroSoft')</a>
|
591 |
-
|
592 |
-
</div>
|
593 |
-
|
594 |
-
<hr>
|
595 |
-
|
596 |
-
<p id="p__ack_logo">
|
597 |
-
!! All the logos, names, trademarks and registered trademarks are property of the respective owners(if
|
598 |
-
applicable*). These were used to show gratitude for usage of the product in developing the 'BiTransSciencia
|
599 |
-
[081]'. These products are used with-out any direct affiliation of the respective product owner. Usage of
|
600 |
-
these names, trademarks and brands does not imply endorsement or affiliation. with the Organization(s)!!
|
601 |
-
</p>
|
602 |
-
|
603 |
-
</fieldset>
|
604 |
-
|
605 |
-
<br>
|
606 |
-
|
607 |
-
|
608 |
-
<fieldset id="fs__license">
|
609 |
-
<legend id="l__license">Licensed to 'K.V.N.Aditya'...</legend>
|
610 |
-
<p class="p__license">
|
611 |
-
The elements of 'UniPolySciencia' is licensed under:
|
612 |
-
<b>
|
613 |
-
<p class="p__cc" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a
|
614 |
-
class="a__cc" property="dct:title" rel="cc:attributionURL" href="#">UniPolySciencia (Icon)</a>
|
615 |
-
by <a class="a__cc" rel="cc:attributionURL dct:creator" property="cc:attributionName"
|
616 |
-
href="https://kvnaditya.users.sourceforge.net">Venkata Naga Aditya Kothapalli</a> is licensed
|
617 |
-
under <a class="a__cc" href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1"
|
618 |
-
target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-ND
|
619 |
-
4.0<img class="img__cc"
|
620 |
-
style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
621 |
-
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img
|
622 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
623 |
-
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img
|
624 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
625 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img
|
626 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
627 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a></p>
|
628 |
-
</b>
|
629 |
-
</p>
|
630 |
-
<p class="p__license" id="p_id__license">
|
631 |
-
The elements of 'BiTransSciencia' is licensed under:
|
632 |
-
<b>
|
633 |
-
<p class="p__cc" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a
|
634 |
-
class="a__cc" property="dct:title" rel="cc:attributionURL" href="#p_id__license"
|
635 |
-
onclick="a_openImagePopup('datum/logo_081.svg')">BiTransSciencia [081] (Logo)</a>
|
636 |
-
by <a class="a__cc" rel="cc:attributionURL dct:creator" property="cc:attributionName"
|
637 |
-
href="https://kvnaditya.users.sourceforge.net">Venkata Naga Aditya Kothapalli</a> is licensed
|
638 |
-
under <a class="a__cc" href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1"
|
639 |
-
target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-ND
|
640 |
-
4.0<img class="img__cc"
|
641 |
-
style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
642 |
-
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img
|
643 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
644 |
-
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img
|
645 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
646 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img
|
647 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
648 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a></p>
|
649 |
-
</b>
|
650 |
-
<b>
|
651 |
-
<p class="p__cc" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a
|
652 |
-
class="a__cc" property="dct:title" rel="cc:attributionURL" href="#p_id__license"
|
653 |
-
onclick="a_openImagePopup('datum/icon_081.svg')">BiTransSciencia [081] (Icon)</a>
|
654 |
-
by <a class="a__cc" rel="cc:attributionURL dct:creator" property="cc:attributionName"
|
655 |
-
href="https://kvnaditya.users.sourceforge.net">Venkata Naga Aditya Kothapalli</a> is licensed
|
656 |
-
under <a class="a__cc" href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1"
|
657 |
-
target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-ND
|
658 |
-
4.0<img class="img__cc"
|
659 |
-
style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
660 |
-
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img
|
661 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
662 |
-
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img
|
663 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
664 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img
|
665 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
666 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a></p>
|
667 |
-
</b>
|
668 |
-
<b>
|
669 |
-
<p class="p__cc" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a
|
670 |
-
class="a__cc" property="dct:title" rel="cc:attributionURL" href="#p_id__license"
|
671 |
-
onclick="a_openImagePopup('datum/structure_081.svg')">BiTransSciencia [081] (Tree
|
672 |
-
Structure)</a> by <a class="a__cc" rel="cc:attributionURL dct:creator"
|
673 |
-
property="cc:attributionName" href="https://kvnaditya.users.sourceforge.net">Venkata Naga Aditya
|
674 |
-
Kothapalli</a> is licensed under <a class="a__cc"
|
675 |
-
href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1" target="_blank"
|
676 |
-
rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-ND 4.0<img
|
677 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
678 |
-
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img
|
679 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
680 |
-
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img
|
681 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
682 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img
|
683 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
684 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a></p>
|
685 |
-
</b>
|
686 |
-
<b>
|
687 |
-
<p class="p__cc" xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a
|
688 |
-
class="a__cc" property="dct:title" rel="cc:attributionURL" href="#">BiTransSciencia [081]</a> by
|
689 |
-
<a class="a__cc" rel="cc:attributionURL dct:creator" property="cc:attributionName"
|
690 |
-
href="https://kvnaditya.users.sourceforge.net">Venkata Naga Aditya Kothapalli</a> is licensed
|
691 |
-
under <a class="a__cc" href="http://creativecommons.org/licenses/by-nd/4.0/?ref=chooser-v1"
|
692 |
-
target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-ND 4.0<img
|
693 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
694 |
-
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img
|
695 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
696 |
-
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img
|
697 |
-
class="img__cc" style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
698 |
-
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"></a>
|
699 |
-
</p>
|
700 |
-
</b>
|
701 |
-
</p>
|
702 |
-
<hr>
|
703 |
-
<p class="p__bts_license_usage">
|
704 |
-
The images (any format) from 'UniPolySciencia' and 'BiTransSciencia' can be used on their respective work as
|
705 |
-
per the 'Creative Commons'. These images can only be manipulated accordingly as per requirement w.r.t the
|
706 |
-
'Color', 'Font-Style', 'Alignment' without manipulating the structure of the actual image...
|
707 |
-
<br>
|
708 |
-
The 'BiTransSciencia [081]' Data-Architecture can be used for developing 'Open-Source','Closed-Source' and
|
709 |
-
'Commercial' applications without manipulating the protocols.
|
710 |
-
</p>
|
711 |
-
|
712 |
-
</fieldset>
|
713 |
-
<br>
|
714 |
-
<!--s: source-->
|
715 |
-
<fieldset id="fs__s">
|
716 |
-
<legend id="l__s">Source ↔ Resource</legend>
|
717 |
-
<s>
|
718 |
-
<div id="div__s">
|
719 |
-
The 'BiTransSciencia [081]' has discovered on the basis of general working of data-transmission in the
|
720 |
-
Universe. There is no further refference(s) has been used in this. If you think the content used in this
|
721 |
-
was
|
722 |
-
a source of your's / other liable one's, mail to <a
|
723 |
-
href="mailto:[email protected]"
|
724 |
-
target="_blank"><s>mailto:bitranssciencia@081</s></a>
|
725 |
-
</div>
|
726 |
-
</s>
|
727 |
-
|
728 |
-
</fieldset>
|
729 |
-
</body>
|
730 |
-
<footer>
|
731 |
-
<hr>
|
732 |
-
<div class="div__et" style="text-align: center;">
|
733 |
-
<p id="initial_evolution">
|
734 |
-
Initial Evolution: <b>Mon, 24 Oct 2022 02:36:02 GMT</b> (apx.)
|
735 |
-
</p>
|
736 |
-
|
737 |
-
<p id="instantaneous_evolution"></p>
|
738 |
-
<!-- <p id="initial_evolution" style="text-align: center;"></p> -->
|
739 |
-
<script>
|
740 |
-
var x = new Date(document.lastModified).toUTCString();
|
741 |
-
document.getElementById("instantaneous_evolution").innerHTML = "Instantaneous Evolution:\t" + "<b>" + x + "</b>";
|
742 |
-
/* Inital Evolution: 2022*/
|
743 |
-
</script>
|
744 |
-
</div>
|
745 |
-
<hr>
|
746 |
-
<div class="d3__KVNAditya">
|
747 |
-
Discovered Designed & Developed by "<p id="id__kvna"><a id="id__kvna_data"
|
748 |
-
href="https://kvnaditya.users.sourceforge.net" target="_blank">K.V.N.Aditya</a></p>"
|
749 |
-
</div>
|
750 |
-
<hr>
|
751 |
-
</footer>
|
752 |
-
|
753 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/urllib3/util/retry.py
DELETED
@@ -1,620 +0,0 @@
|
|
1 |
-
from __future__ import absolute_import
|
2 |
-
|
3 |
-
import email
|
4 |
-
import logging
|
5 |
-
import re
|
6 |
-
import time
|
7 |
-
import warnings
|
8 |
-
from collections import namedtuple
|
9 |
-
from itertools import takewhile
|
10 |
-
|
11 |
-
from ..exceptions import (
|
12 |
-
ConnectTimeoutError,
|
13 |
-
InvalidHeader,
|
14 |
-
MaxRetryError,
|
15 |
-
ProtocolError,
|
16 |
-
ProxyError,
|
17 |
-
ReadTimeoutError,
|
18 |
-
ResponseError,
|
19 |
-
)
|
20 |
-
from ..packages import six
|
21 |
-
|
22 |
-
log = logging.getLogger(__name__)
|
23 |
-
|
24 |
-
|
25 |
-
# Data structure for representing the metadata of requests that result in a retry.
|
26 |
-
RequestHistory = namedtuple(
|
27 |
-
"RequestHistory", ["method", "url", "error", "status", "redirect_location"]
|
28 |
-
)
|
29 |
-
|
30 |
-
|
31 |
-
# TODO: In v2 we can remove this sentinel and metaclass with deprecated options.
|
32 |
-
_Default = object()
|
33 |
-
|
34 |
-
|
35 |
-
class _RetryMeta(type):
|
36 |
-
@property
|
37 |
-
def DEFAULT_METHOD_WHITELIST(cls):
|
38 |
-
warnings.warn(
|
39 |
-
"Using 'Retry.DEFAULT_METHOD_WHITELIST' is deprecated and "
|
40 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_ALLOWED_METHODS' instead",
|
41 |
-
DeprecationWarning,
|
42 |
-
)
|
43 |
-
return cls.DEFAULT_ALLOWED_METHODS
|
44 |
-
|
45 |
-
@DEFAULT_METHOD_WHITELIST.setter
|
46 |
-
def DEFAULT_METHOD_WHITELIST(cls, value):
|
47 |
-
warnings.warn(
|
48 |
-
"Using 'Retry.DEFAULT_METHOD_WHITELIST' is deprecated and "
|
49 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_ALLOWED_METHODS' instead",
|
50 |
-
DeprecationWarning,
|
51 |
-
)
|
52 |
-
cls.DEFAULT_ALLOWED_METHODS = value
|
53 |
-
|
54 |
-
@property
|
55 |
-
def DEFAULT_REDIRECT_HEADERS_BLACKLIST(cls):
|
56 |
-
warnings.warn(
|
57 |
-
"Using 'Retry.DEFAULT_REDIRECT_HEADERS_BLACKLIST' is deprecated and "
|
58 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT' instead",
|
59 |
-
DeprecationWarning,
|
60 |
-
)
|
61 |
-
return cls.DEFAULT_REMOVE_HEADERS_ON_REDIRECT
|
62 |
-
|
63 |
-
@DEFAULT_REDIRECT_HEADERS_BLACKLIST.setter
|
64 |
-
def DEFAULT_REDIRECT_HEADERS_BLACKLIST(cls, value):
|
65 |
-
warnings.warn(
|
66 |
-
"Using 'Retry.DEFAULT_REDIRECT_HEADERS_BLACKLIST' is deprecated and "
|
67 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_REMOVE_HEADERS_ON_REDIRECT' instead",
|
68 |
-
DeprecationWarning,
|
69 |
-
)
|
70 |
-
cls.DEFAULT_REMOVE_HEADERS_ON_REDIRECT = value
|
71 |
-
|
72 |
-
@property
|
73 |
-
def BACKOFF_MAX(cls):
|
74 |
-
warnings.warn(
|
75 |
-
"Using 'Retry.BACKOFF_MAX' is deprecated and "
|
76 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_BACKOFF_MAX' instead",
|
77 |
-
DeprecationWarning,
|
78 |
-
)
|
79 |
-
return cls.DEFAULT_BACKOFF_MAX
|
80 |
-
|
81 |
-
@BACKOFF_MAX.setter
|
82 |
-
def BACKOFF_MAX(cls, value):
|
83 |
-
warnings.warn(
|
84 |
-
"Using 'Retry.BACKOFF_MAX' is deprecated and "
|
85 |
-
"will be removed in v2.0. Use 'Retry.DEFAULT_BACKOFF_MAX' instead",
|
86 |
-
DeprecationWarning,
|
87 |
-
)
|
88 |
-
cls.DEFAULT_BACKOFF_MAX = value
|
89 |
-
|
90 |
-
|
91 |
-
@six.add_metaclass(_RetryMeta)
|
92 |
-
class Retry(object):
|
93 |
-
"""Retry configuration.
|
94 |
-
|
95 |
-
Each retry attempt will create a new Retry object with updated values, so
|
96 |
-
they can be safely reused.
|
97 |
-
|
98 |
-
Retries can be defined as a default for a pool::
|
99 |
-
|
100 |
-
retries = Retry(connect=5, read=2, redirect=5)
|
101 |
-
http = PoolManager(retries=retries)
|
102 |
-
response = http.request('GET', 'http://example.com/')
|
103 |
-
|
104 |
-
Or per-request (which overrides the default for the pool)::
|
105 |
-
|
106 |
-
response = http.request('GET', 'http://example.com/', retries=Retry(10))
|
107 |
-
|
108 |
-
Retries can be disabled by passing ``False``::
|
109 |
-
|
110 |
-
response = http.request('GET', 'http://example.com/', retries=False)
|
111 |
-
|
112 |
-
Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless
|
113 |
-
retries are disabled, in which case the causing exception will be raised.
|
114 |
-
|
115 |
-
:param int total:
|
116 |
-
Total number of retries to allow. Takes precedence over other counts.
|
117 |
-
|
118 |
-
Set to ``None`` to remove this constraint and fall back on other
|
119 |
-
counts.
|
120 |
-
|
121 |
-
Set to ``0`` to fail on the first retry.
|
122 |
-
|
123 |
-
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
|
124 |
-
|
125 |
-
:param int connect:
|
126 |
-
How many connection-related errors to retry on.
|
127 |
-
|
128 |
-
These are errors raised before the request is sent to the remote server,
|
129 |
-
which we assume has not triggered the server to process the request.
|
130 |
-
|
131 |
-
Set to ``0`` to fail on the first retry of this type.
|
132 |
-
|
133 |
-
:param int read:
|
134 |
-
How many times to retry on read errors.
|
135 |
-
|
136 |
-
These errors are raised after the request was sent to the server, so the
|
137 |
-
request may have side-effects.
|
138 |
-
|
139 |
-
Set to ``0`` to fail on the first retry of this type.
|
140 |
-
|
141 |
-
:param int redirect:
|
142 |
-
How many redirects to perform. Limit this to avoid infinite redirect
|
143 |
-
loops.
|
144 |
-
|
145 |
-
A redirect is a HTTP response with a status code 301, 302, 303, 307 or
|
146 |
-
308.
|
147 |
-
|
148 |
-
Set to ``0`` to fail on the first retry of this type.
|
149 |
-
|
150 |
-
Set to ``False`` to disable and imply ``raise_on_redirect=False``.
|
151 |
-
|
152 |
-
:param int status:
|
153 |
-
How many times to retry on bad status codes.
|
154 |
-
|
155 |
-
These are retries made on responses, where status code matches
|
156 |
-
``status_forcelist``.
|
157 |
-
|
158 |
-
Set to ``0`` to fail on the first retry of this type.
|
159 |
-
|
160 |
-
:param int other:
|
161 |
-
How many times to retry on other errors.
|
162 |
-
|
163 |
-
Other errors are errors that are not connect, read, redirect or status errors.
|
164 |
-
These errors might be raised after the request was sent to the server, so the
|
165 |
-
request might have side-effects.
|
166 |
-
|
167 |
-
Set to ``0`` to fail on the first retry of this type.
|
168 |
-
|
169 |
-
If ``total`` is not set, it's a good idea to set this to 0 to account
|
170 |
-
for unexpected edge cases and avoid infinite retry loops.
|
171 |
-
|
172 |
-
:param iterable allowed_methods:
|
173 |
-
Set of uppercased HTTP method verbs that we should retry on.
|
174 |
-
|
175 |
-
By default, we only retry on methods which are considered to be
|
176 |
-
idempotent (multiple requests with the same parameters end with the
|
177 |
-
same state). See :attr:`Retry.DEFAULT_ALLOWED_METHODS`.
|
178 |
-
|
179 |
-
Set to a ``False`` value to retry on any verb.
|
180 |
-
|
181 |
-
.. warning::
|
182 |
-
|
183 |
-
Previously this parameter was named ``method_whitelist``, that
|
184 |
-
usage is deprecated in v1.26.0 and will be removed in v2.0.
|
185 |
-
|
186 |
-
:param iterable status_forcelist:
|
187 |
-
A set of integer HTTP status codes that we should force a retry on.
|
188 |
-
A retry is initiated if the request method is in ``allowed_methods``
|
189 |
-
and the response status code is in ``status_forcelist``.
|
190 |
-
|
191 |
-
By default, this is disabled with ``None``.
|
192 |
-
|
193 |
-
:param float backoff_factor:
|
194 |
-
A backoff factor to apply between attempts after the second try
|
195 |
-
(most errors are resolved immediately by a second try without a
|
196 |
-
delay). urllib3 will sleep for::
|
197 |
-
|
198 |
-
{backoff factor} * (2 ** ({number of total retries} - 1))
|
199 |
-
|
200 |
-
seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep
|
201 |
-
for [0.0s, 0.2s, 0.4s, ...] between retries. It will never be longer
|
202 |
-
than :attr:`Retry.DEFAULT_BACKOFF_MAX`.
|
203 |
-
|
204 |
-
By default, backoff is disabled (set to 0).
|
205 |
-
|
206 |
-
:param bool raise_on_redirect: Whether, if the number of redirects is
|
207 |
-
exhausted, to raise a MaxRetryError, or to return a response with a
|
208 |
-
response code in the 3xx range.
|
209 |
-
|
210 |
-
:param bool raise_on_status: Similar meaning to ``raise_on_redirect``:
|
211 |
-
whether we should raise an exception, or return a response,
|
212 |
-
if status falls in ``status_forcelist`` range and retries have
|
213 |
-
been exhausted.
|
214 |
-
|
215 |
-
:param tuple history: The history of the request encountered during
|
216 |
-
each call to :meth:`~Retry.increment`. The list is in the order
|
217 |
-
the requests occurred. Each list item is of class :class:`RequestHistory`.
|
218 |
-
|
219 |
-
:param bool respect_retry_after_header:
|
220 |
-
Whether to respect Retry-After header on status codes defined as
|
221 |
-
:attr:`Retry.RETRY_AFTER_STATUS_CODES` or not.
|
222 |
-
|
223 |
-
:param iterable remove_headers_on_redirect:
|
224 |
-
Sequence of headers to remove from the request when a response
|
225 |
-
indicating a redirect is returned before firing off the redirected
|
226 |
-
request.
|
227 |
-
"""
|
228 |
-
|
229 |
-
#: Default methods to be used for ``allowed_methods``
|
230 |
-
DEFAULT_ALLOWED_METHODS = frozenset(
|
231 |
-
["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE"]
|
232 |
-
)
|
233 |
-
|
234 |
-
#: Default status codes to be used for ``status_forcelist``
|
235 |
-
RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503])
|
236 |
-
|
237 |
-
#: Default headers to be used for ``remove_headers_on_redirect``
|
238 |
-
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(["Authorization"])
|
239 |
-
|
240 |
-
#: Maximum backoff time.
|
241 |
-
DEFAULT_BACKOFF_MAX = 120
|
242 |
-
|
243 |
-
def __init__(
|
244 |
-
self,
|
245 |
-
total=10,
|
246 |
-
connect=None,
|
247 |
-
read=None,
|
248 |
-
redirect=None,
|
249 |
-
status=None,
|
250 |
-
other=None,
|
251 |
-
allowed_methods=_Default,
|
252 |
-
status_forcelist=None,
|
253 |
-
backoff_factor=0,
|
254 |
-
raise_on_redirect=True,
|
255 |
-
raise_on_status=True,
|
256 |
-
history=None,
|
257 |
-
respect_retry_after_header=True,
|
258 |
-
remove_headers_on_redirect=_Default,
|
259 |
-
# TODO: Deprecated, remove in v2.0
|
260 |
-
method_whitelist=_Default,
|
261 |
-
):
|
262 |
-
|
263 |
-
if method_whitelist is not _Default:
|
264 |
-
if allowed_methods is not _Default:
|
265 |
-
raise ValueError(
|
266 |
-
"Using both 'allowed_methods' and "
|
267 |
-
"'method_whitelist' together is not allowed. "
|
268 |
-
"Instead only use 'allowed_methods'"
|
269 |
-
)
|
270 |
-
warnings.warn(
|
271 |
-
"Using 'method_whitelist' with Retry is deprecated and "
|
272 |
-
"will be removed in v2.0. Use 'allowed_methods' instead",
|
273 |
-
DeprecationWarning,
|
274 |
-
stacklevel=2,
|
275 |
-
)
|
276 |
-
allowed_methods = method_whitelist
|
277 |
-
if allowed_methods is _Default:
|
278 |
-
allowed_methods = self.DEFAULT_ALLOWED_METHODS
|
279 |
-
if remove_headers_on_redirect is _Default:
|
280 |
-
remove_headers_on_redirect = self.DEFAULT_REMOVE_HEADERS_ON_REDIRECT
|
281 |
-
|
282 |
-
self.total = total
|
283 |
-
self.connect = connect
|
284 |
-
self.read = read
|
285 |
-
self.status = status
|
286 |
-
self.other = other
|
287 |
-
|
288 |
-
if redirect is False or total is False:
|
289 |
-
redirect = 0
|
290 |
-
raise_on_redirect = False
|
291 |
-
|
292 |
-
self.redirect = redirect
|
293 |
-
self.status_forcelist = status_forcelist or set()
|
294 |
-
self.allowed_methods = allowed_methods
|
295 |
-
self.backoff_factor = backoff_factor
|
296 |
-
self.raise_on_redirect = raise_on_redirect
|
297 |
-
self.raise_on_status = raise_on_status
|
298 |
-
self.history = history or tuple()
|
299 |
-
self.respect_retry_after_header = respect_retry_after_header
|
300 |
-
self.remove_headers_on_redirect = frozenset(
|
301 |
-
[h.lower() for h in remove_headers_on_redirect]
|
302 |
-
)
|
303 |
-
|
304 |
-
def new(self, **kw):
|
305 |
-
params = dict(
|
306 |
-
total=self.total,
|
307 |
-
connect=self.connect,
|
308 |
-
read=self.read,
|
309 |
-
redirect=self.redirect,
|
310 |
-
status=self.status,
|
311 |
-
other=self.other,
|
312 |
-
status_forcelist=self.status_forcelist,
|
313 |
-
backoff_factor=self.backoff_factor,
|
314 |
-
raise_on_redirect=self.raise_on_redirect,
|
315 |
-
raise_on_status=self.raise_on_status,
|
316 |
-
history=self.history,
|
317 |
-
remove_headers_on_redirect=self.remove_headers_on_redirect,
|
318 |
-
respect_retry_after_header=self.respect_retry_after_header,
|
319 |
-
)
|
320 |
-
|
321 |
-
# TODO: If already given in **kw we use what's given to us
|
322 |
-
# If not given we need to figure out what to pass. We decide
|
323 |
-
# based on whether our class has the 'method_whitelist' property
|
324 |
-
# and if so we pass the deprecated 'method_whitelist' otherwise
|
325 |
-
# we use 'allowed_methods'. Remove in v2.0
|
326 |
-
if "method_whitelist" not in kw and "allowed_methods" not in kw:
|
327 |
-
if "method_whitelist" in self.__dict__:
|
328 |
-
warnings.warn(
|
329 |
-
"Using 'method_whitelist' with Retry is deprecated and "
|
330 |
-
"will be removed in v2.0. Use 'allowed_methods' instead",
|
331 |
-
DeprecationWarning,
|
332 |
-
)
|
333 |
-
params["method_whitelist"] = self.allowed_methods
|
334 |
-
else:
|
335 |
-
params["allowed_methods"] = self.allowed_methods
|
336 |
-
|
337 |
-
params.update(kw)
|
338 |
-
return type(self)(**params)
|
339 |
-
|
340 |
-
@classmethod
|
341 |
-
def from_int(cls, retries, redirect=True, default=None):
|
342 |
-
"""Backwards-compatibility for the old retries format."""
|
343 |
-
if retries is None:
|
344 |
-
retries = default if default is not None else cls.DEFAULT
|
345 |
-
|
346 |
-
if isinstance(retries, Retry):
|
347 |
-
return retries
|
348 |
-
|
349 |
-
redirect = bool(redirect) and None
|
350 |
-
new_retries = cls(retries, redirect=redirect)
|
351 |
-
log.debug("Converted retries value: %r -> %r", retries, new_retries)
|
352 |
-
return new_retries
|
353 |
-
|
354 |
-
def get_backoff_time(self):
|
355 |
-
"""Formula for computing the current backoff
|
356 |
-
|
357 |
-
:rtype: float
|
358 |
-
"""
|
359 |
-
# We want to consider only the last consecutive errors sequence (Ignore redirects).
|
360 |
-
consecutive_errors_len = len(
|
361 |
-
list(
|
362 |
-
takewhile(lambda x: x.redirect_location is None, reversed(self.history))
|
363 |
-
)
|
364 |
-
)
|
365 |
-
if consecutive_errors_len <= 1:
|
366 |
-
return 0
|
367 |
-
|
368 |
-
backoff_value = self.backoff_factor * (2 ** (consecutive_errors_len - 1))
|
369 |
-
return min(self.DEFAULT_BACKOFF_MAX, backoff_value)
|
370 |
-
|
371 |
-
def parse_retry_after(self, retry_after):
|
372 |
-
# Whitespace: https://tools.ietf.org/html/rfc7230#section-3.2.4
|
373 |
-
if re.match(r"^\s*[0-9]+\s*$", retry_after):
|
374 |
-
seconds = int(retry_after)
|
375 |
-
else:
|
376 |
-
retry_date_tuple = email.utils.parsedate_tz(retry_after)
|
377 |
-
if retry_date_tuple is None:
|
378 |
-
raise InvalidHeader("Invalid Retry-After header: %s" % retry_after)
|
379 |
-
if retry_date_tuple[9] is None: # Python 2
|
380 |
-
# Assume UTC if no timezone was specified
|
381 |
-
# On Python2.7, parsedate_tz returns None for a timezone offset
|
382 |
-
# instead of 0 if no timezone is given, where mktime_tz treats
|
383 |
-
# a None timezone offset as local time.
|
384 |
-
retry_date_tuple = retry_date_tuple[:9] + (0,) + retry_date_tuple[10:]
|
385 |
-
|
386 |
-
retry_date = email.utils.mktime_tz(retry_date_tuple)
|
387 |
-
seconds = retry_date - time.time()
|
388 |
-
|
389 |
-
if seconds < 0:
|
390 |
-
seconds = 0
|
391 |
-
|
392 |
-
return seconds
|
393 |
-
|
394 |
-
def get_retry_after(self, response):
|
395 |
-
"""Get the value of Retry-After in seconds."""
|
396 |
-
|
397 |
-
retry_after = response.headers.get("Retry-After")
|
398 |
-
|
399 |
-
if retry_after is None:
|
400 |
-
return None
|
401 |
-
|
402 |
-
return self.parse_retry_after(retry_after)
|
403 |
-
|
404 |
-
def sleep_for_retry(self, response=None):
|
405 |
-
retry_after = self.get_retry_after(response)
|
406 |
-
if retry_after:
|
407 |
-
time.sleep(retry_after)
|
408 |
-
return True
|
409 |
-
|
410 |
-
return False
|
411 |
-
|
412 |
-
def _sleep_backoff(self):
|
413 |
-
backoff = self.get_backoff_time()
|
414 |
-
if backoff <= 0:
|
415 |
-
return
|
416 |
-
time.sleep(backoff)
|
417 |
-
|
418 |
-
def sleep(self, response=None):
|
419 |
-
"""Sleep between retry attempts.
|
420 |
-
|
421 |
-
This method will respect a server's ``Retry-After`` response header
|
422 |
-
and sleep the duration of the time requested. If that is not present, it
|
423 |
-
will use an exponential backoff. By default, the backoff factor is 0 and
|
424 |
-
this method will return immediately.
|
425 |
-
"""
|
426 |
-
|
427 |
-
if self.respect_retry_after_header and response:
|
428 |
-
slept = self.sleep_for_retry(response)
|
429 |
-
if slept:
|
430 |
-
return
|
431 |
-
|
432 |
-
self._sleep_backoff()
|
433 |
-
|
434 |
-
def _is_connection_error(self, err):
|
435 |
-
"""Errors when we're fairly sure that the server did not receive the
|
436 |
-
request, so it should be safe to retry.
|
437 |
-
"""
|
438 |
-
if isinstance(err, ProxyError):
|
439 |
-
err = err.original_error
|
440 |
-
return isinstance(err, ConnectTimeoutError)
|
441 |
-
|
442 |
-
def _is_read_error(self, err):
|
443 |
-
"""Errors that occur after the request has been started, so we should
|
444 |
-
assume that the server began processing it.
|
445 |
-
"""
|
446 |
-
return isinstance(err, (ReadTimeoutError, ProtocolError))
|
447 |
-
|
448 |
-
def _is_method_retryable(self, method):
|
449 |
-
"""Checks if a given HTTP method should be retried upon, depending if
|
450 |
-
it is included in the allowed_methods
|
451 |
-
"""
|
452 |
-
# TODO: For now favor if the Retry implementation sets its own method_whitelist
|
453 |
-
# property outside of our constructor to avoid breaking custom implementations.
|
454 |
-
if "method_whitelist" in self.__dict__:
|
455 |
-
warnings.warn(
|
456 |
-
"Using 'method_whitelist' with Retry is deprecated and "
|
457 |
-
"will be removed in v2.0. Use 'allowed_methods' instead",
|
458 |
-
DeprecationWarning,
|
459 |
-
)
|
460 |
-
allowed_methods = self.method_whitelist
|
461 |
-
else:
|
462 |
-
allowed_methods = self.allowed_methods
|
463 |
-
|
464 |
-
if allowed_methods and method.upper() not in allowed_methods:
|
465 |
-
return False
|
466 |
-
return True
|
467 |
-
|
468 |
-
def is_retry(self, method, status_code, has_retry_after=False):
|
469 |
-
"""Is this method/status code retryable? (Based on allowlists and control
|
470 |
-
variables such as the number of total retries to allow, whether to
|
471 |
-
respect the Retry-After header, whether this header is present, and
|
472 |
-
whether the returned status code is on the list of status codes to
|
473 |
-
be retried upon on the presence of the aforementioned header)
|
474 |
-
"""
|
475 |
-
if not self._is_method_retryable(method):
|
476 |
-
return False
|
477 |
-
|
478 |
-
if self.status_forcelist and status_code in self.status_forcelist:
|
479 |
-
return True
|
480 |
-
|
481 |
-
return (
|
482 |
-
self.total
|
483 |
-
and self.respect_retry_after_header
|
484 |
-
and has_retry_after
|
485 |
-
and (status_code in self.RETRY_AFTER_STATUS_CODES)
|
486 |
-
)
|
487 |
-
|
488 |
-
def is_exhausted(self):
|
489 |
-
"""Are we out of retries?"""
|
490 |
-
retry_counts = (
|
491 |
-
self.total,
|
492 |
-
self.connect,
|
493 |
-
self.read,
|
494 |
-
self.redirect,
|
495 |
-
self.status,
|
496 |
-
self.other,
|
497 |
-
)
|
498 |
-
retry_counts = list(filter(None, retry_counts))
|
499 |
-
if not retry_counts:
|
500 |
-
return False
|
501 |
-
|
502 |
-
return min(retry_counts) < 0
|
503 |
-
|
504 |
-
def increment(
|
505 |
-
self,
|
506 |
-
method=None,
|
507 |
-
url=None,
|
508 |
-
response=None,
|
509 |
-
error=None,
|
510 |
-
_pool=None,
|
511 |
-
_stacktrace=None,
|
512 |
-
):
|
513 |
-
"""Return a new Retry object with incremented retry counters.
|
514 |
-
|
515 |
-
:param response: A response object, or None, if the server did not
|
516 |
-
return a response.
|
517 |
-
:type response: :class:`~urllib3.response.HTTPResponse`
|
518 |
-
:param Exception error: An error encountered during the request, or
|
519 |
-
None if the response was received successfully.
|
520 |
-
|
521 |
-
:return: A new ``Retry`` object.
|
522 |
-
"""
|
523 |
-
if self.total is False and error:
|
524 |
-
# Disabled, indicate to re-raise the error.
|
525 |
-
raise six.reraise(type(error), error, _stacktrace)
|
526 |
-
|
527 |
-
total = self.total
|
528 |
-
if total is not None:
|
529 |
-
total -= 1
|
530 |
-
|
531 |
-
connect = self.connect
|
532 |
-
read = self.read
|
533 |
-
redirect = self.redirect
|
534 |
-
status_count = self.status
|
535 |
-
other = self.other
|
536 |
-
cause = "unknown"
|
537 |
-
status = None
|
538 |
-
redirect_location = None
|
539 |
-
|
540 |
-
if error and self._is_connection_error(error):
|
541 |
-
# Connect retry?
|
542 |
-
if connect is False:
|
543 |
-
raise six.reraise(type(error), error, _stacktrace)
|
544 |
-
elif connect is not None:
|
545 |
-
connect -= 1
|
546 |
-
|
547 |
-
elif error and self._is_read_error(error):
|
548 |
-
# Read retry?
|
549 |
-
if read is False or not self._is_method_retryable(method):
|
550 |
-
raise six.reraise(type(error), error, _stacktrace)
|
551 |
-
elif read is not None:
|
552 |
-
read -= 1
|
553 |
-
|
554 |
-
elif error:
|
555 |
-
# Other retry?
|
556 |
-
if other is not None:
|
557 |
-
other -= 1
|
558 |
-
|
559 |
-
elif response and response.get_redirect_location():
|
560 |
-
# Redirect retry?
|
561 |
-
if redirect is not None:
|
562 |
-
redirect -= 1
|
563 |
-
cause = "too many redirects"
|
564 |
-
redirect_location = response.get_redirect_location()
|
565 |
-
status = response.status
|
566 |
-
|
567 |
-
else:
|
568 |
-
# Incrementing because of a server error like a 500 in
|
569 |
-
# status_forcelist and the given method is in the allowed_methods
|
570 |
-
cause = ResponseError.GENERIC_ERROR
|
571 |
-
if response and response.status:
|
572 |
-
if status_count is not None:
|
573 |
-
status_count -= 1
|
574 |
-
cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status)
|
575 |
-
status = response.status
|
576 |
-
|
577 |
-
history = self.history + (
|
578 |
-
RequestHistory(method, url, error, status, redirect_location),
|
579 |
-
)
|
580 |
-
|
581 |
-
new_retry = self.new(
|
582 |
-
total=total,
|
583 |
-
connect=connect,
|
584 |
-
read=read,
|
585 |
-
redirect=redirect,
|
586 |
-
status=status_count,
|
587 |
-
other=other,
|
588 |
-
history=history,
|
589 |
-
)
|
590 |
-
|
591 |
-
if new_retry.is_exhausted():
|
592 |
-
raise MaxRetryError(_pool, url, error or ResponseError(cause))
|
593 |
-
|
594 |
-
log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
|
595 |
-
|
596 |
-
return new_retry
|
597 |
-
|
598 |
-
def __repr__(self):
|
599 |
-
return (
|
600 |
-
"{cls.__name__}(total={self.total}, connect={self.connect}, "
|
601 |
-
"read={self.read}, redirect={self.redirect}, status={self.status})"
|
602 |
-
).format(cls=type(self), self=self)
|
603 |
-
|
604 |
-
def __getattr__(self, item):
|
605 |
-
if item == "method_whitelist":
|
606 |
-
# TODO: Remove this deprecated alias in v2.0
|
607 |
-
warnings.warn(
|
608 |
-
"Using 'method_whitelist' with Retry is deprecated and "
|
609 |
-
"will be removed in v2.0. Use 'allowed_methods' instead",
|
610 |
-
DeprecationWarning,
|
611 |
-
)
|
612 |
-
return self.allowed_methods
|
613 |
-
try:
|
614 |
-
return getattr(super(Retry, self), item)
|
615 |
-
except AttributeError:
|
616 |
-
return getattr(Retry, item)
|
617 |
-
|
618 |
-
|
619 |
-
# For backwards compatibility (equivalent to pre-v1.9):
|
620 |
-
Retry.DEFAULT = Retry(3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|