Commit
·
b295f2b
1
Parent(s):
c0f211b
Update parquet files (step 10 of 249)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/101-5/gpt4free/g4f/Provider/__init__.py +0 -24
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl Delphi Autocom Cars and Trucks 2015 R3 Keygen (fast and direct download) - MHH AUTO - Page 1[2].md +0 -121
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Movavi Video Editor for Free and Create Stunning Videos in Minutes.md +0 -19
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Noiseware for Photoshop for Free and Improve Your Photo Quality.md +0 -40
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Entrare in dfu mode senza tasti i software da scaricare per facilitare loperazione.md +0 -16
- spaces/1phancelerku/anime-remove-background/Download My Mini Mart and Experience the Joy of Running Your Own Shop - No Ads No Interruptions.md +0 -78
- spaces/1phancelerku/anime-remove-background/Download Voyage 4 MOD APK (v2.54) and Experience the Relaxation of Driving - Unlimited Money Included.md +0 -106
- spaces/1phancelerku/anime-remove-background/Evertale 2.0.64 Mod Apk Free Shopping and Unlimited Money.md +0 -113
- spaces/2023Liu2023/bingo/README.md +0 -195
- spaces/22h/vintedois-diffusion-v0-2/app.py +0 -137
- spaces/44ov41za8i/FreeVC/speaker_encoder/data_objects/utterance.py +0 -26
- spaces/4eJIoBek/Stable_Diffusion_1.4_openvino/Dockerfile +0 -19
- spaces/7hao/bingo/src/components/ui/badge.tsx +0 -36
- spaces/7hao/bingo/src/pages/api/sydney.ts +0 -62
- spaces/A00001/bingothoo/src/components/ui/icons.tsx +0 -504
- spaces/AIGC-Audio/Make_An_Audio_inpaint/ldm/modules/losses_audio/vggishish/train_melception.py +0 -241
- spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_1_ClothesKeyPoint/work_dirs_1-x/td_hm_res50_4xb64-210e_deepfashion2_sling_dress_256x192/__init__.py +0 -0
- spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_2_ProfileRecogition/mmpretrain/configs/hr_4xb32_1024e_4channel.py +0 -115
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/deprecated/Lockchat.py +0 -64
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/unfinished/PerplexityAi.py +0 -100
- spaces/Adapter/T2I-Adapter/ldm/modules/image_degradation/__init__.py +0 -2
- spaces/AkashKhamkar/QnA-generator/app.py +0 -188
- spaces/Aki004/herta-so-vits/app.py +0 -93
- spaces/AlekseyKorshuk/instagram-filter-removal/configs/default.py +0 -88
- spaces/Andy1621/uniformer_image_detection/configs/guided_anchoring/ga_retinanet_x101_64x4d_fpn_1x_coco.py +0 -13
- spaces/Andy1621/uniformer_image_detection/mmdet/core/evaluation/recall.py +0 -189
- spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/scripts/test.sh +0 -15
- spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/configs/_base_/datasets/cityscapes.py +0 -54
- spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/parallel/__init__.py +0 -13
- spaces/Armandoliv/whisper-biomedical-ner/app.py +0 -56
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/utils/_log.py +0 -38
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/util/response.py +0 -107
- spaces/AtheneaEdu/README/README.md +0 -16
- spaces/AutoGeneralAI/voice-assistant/app.py +0 -46
- spaces/Awiny/Image2Paragraph/models/grit_src/grit/data/custom_build_augmentation.py +0 -44
- spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/configs/common/models/keypoint_rcnn_fpn.py +0 -33
- spaces/BMukhtar/BookRecognitionKz/upload_image.py +0 -25
- spaces/Bart92/RVC_HF/infer/lib/infer_pack/modules/F0Predictor/PMF0Predictor.py +0 -98
- spaces/Bart92/RVC_HF/infer/lib/uvr5_pack/lib_v5/layers_new.py +0 -125
- spaces/Benson/text-generation/Examples/Ark Survival Evolved Ps Vita Download.md +0 -123
- spaces/Benson/text-generation/Examples/Aviator Hack 2022 .md +0 -67
- spaces/Benson/text-generation/Examples/Descarga Apk De WhatsApp Gb 2019.md +0 -66
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/models/index.py +0 -28
- spaces/Big-Web/MMSD/env/Lib/site-packages/urllib3/packages/six.py +0 -1076
- spaces/CC123123/blip2_t/utils.py +0 -27
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/utils/serialize.py +0 -29
- spaces/CVPR/LIVE/pybind11/include/pybind11/detail/internals.h +0 -352
- spaces/CVPR/LIVE/thrust/thrust/system/detail/adl/async/transform.h +0 -34
- spaces/CVPR/lama-example/saicinpainting/utils.py +0 -174
- spaces/CVPR/monoscene_lite/monoscene/unet3d_nyu.py +0 -90
spaces/101-5/gpt4free/g4f/Provider/__init__.py
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
from . import Provider
|
2 |
-
from .Providers import (
|
3 |
-
Ails,
|
4 |
-
You,
|
5 |
-
Bing,
|
6 |
-
Yqcloud,
|
7 |
-
Theb,
|
8 |
-
Aichat,
|
9 |
-
Bard,
|
10 |
-
Vercel,
|
11 |
-
Forefront,
|
12 |
-
Lockchat,
|
13 |
-
Liaobots,
|
14 |
-
H2o,
|
15 |
-
ChatgptLogin,
|
16 |
-
DeepAi,
|
17 |
-
GetGpt,
|
18 |
-
AItianhu,
|
19 |
-
EasyChat,
|
20 |
-
Acytoo,
|
21 |
-
DFEHub,
|
22 |
-
)
|
23 |
-
|
24 |
-
Palm = Bard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl Delphi Autocom Cars and Trucks 2015 R3 Keygen (fast and direct download) - MHH AUTO - Page 1[2].md
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>What is Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl?</h1>
|
3 |
-
<p>If you are looking for a reliable and versatile diagnostic software for cars and trucks, you might have come across Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl. But what is it exactly and how does it work?</p>
|
4 |
-
<h2>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl</h2><br /><p><b><b>DOWNLOAD</b> ↔ <a href="https://byltly.com/2uKw0F">https://byltly.com/2uKw0F</a></b></p><br /><br />
|
5 |
-
<p>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl is a software package that allows you to perform various diagnostic tasks on different vehicles using a compatible device such as a laptop or a tablet. It is based on Autocom / Delphi software, which is one of the most popular and widely used diagnostic tools in the automotive industry.</p>
|
6 |
-
<p>Some of the main features of Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl are:</p>
|
7 |
-
<ul>
|
8 |
-
<li>It supports over 54,000 vehicle systems from more than 4,000 models of cars and trucks.</li>
|
9 |
-
<li>It covers all major brands and manufacturers such as Audi, BMW, Ford, Mercedes-Benz, Toyota, Volvo, etc.</li>
|
10 |
-
<li>It provides comprehensive information and data about various vehicle components such as engine, transmission, brakes, airbags, steering, etc.</li>
|
11 |
-
<li>It allows you to read and clear fault codes, view live data, perform tests and adjustments, program keys, reset service intervals, etc.</li>
|
12 |
-
<li>It has a user-friendly interface that is easy to navigate and operate.</li>
|
13 |
-
<li>It has a keygen-activator that enables you to activate the software without any hassle or cost.</li>
|
14 |
-
</ul>
|
15 |
-
<p>In this article, we will show you how to download and install Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl on your device, how to use it for diagnostic purposes, what are its benefits and drawbacks, and what are some tips and tricks for using it effectively.</p>
|
16 |
-
<h2>How to download and install Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl?</h2>
|
17 |
-
<p>To download and install Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl on your device, you will need to follow these steps:</p>
|
18 |
-
<ol>
|
19 |
-
<li>Download the software package from this link: <a href="http://www.mailbox.com.pt/obd/files/Delphi%202015%20R3%202015.3.rar">http://www.mailbox.com.pt/obd/files/Delphi%202015%20R3%202015.3.rar</a>. This is a fast and direct download link that does not require any password or registration.</li>
|
20 |
-
<li>Extract the compressed file using a program such as WinRAR or WinZip.</li>
|
21 |
-
<li>Run the setup.exe file and follow the instructions on the screen.</li>
|
22 |
-
<li>When prompted, choose the installation path for the software. The default location is C:\Program Files (x86)\Delphi Diagnostics\DS150E (New VCI).</li>
|
23 |
-
<li>When the installation is complete, do not run the software yet.</li>
|
24 |
-
<li>Copy the file Main.exe from the folder Activation (DS150E New VCI) to the installation folder (C:\Program Files (x86)\Delphi Diagnostics\DS150E (New VCI)). Replace the existing file if asked.</li>
|
25 |
-
<li>Run the file Main.exe from the installation folder.</li>
|
26 |
-
<li>You will see a window with a serial number (for example, DS150E). Copy this serial number.</li>
|
27 |
-
<li>Open the file FileActivation.xml from the folder Activation (DS150E New VCI) with a text editor such as Notepad.</li>
|
28 |
-
<li>Paste the serial number that you copied in step 8 into the line that says <SerialNumber></SerialNumber>.</li>
|
29 |
-
<li>Save and close the file FileActivation.xml.</li>
|
30 |
-
<li>Run again the file Main.exe from the installation folder.</li>
|
31 |
-
<li>You will see a window with an activation request code (for example, A4DB). Copy this code.</li>
|
32 |
-
<li>Open again the file FileActivation.xml from the folder Activation (DS150E New VCI) with a text editor such as Notepad.</li>
|
33 |
-
<li>Paste the activation request code that you copied in step 13 into the line that says <Request></Request>.</li>
|
34 |
-
<li>Save and close again the file FileActivation.xml.</li>
|
35 |
-
<li>Run again once more the file Main.exe from the installation folder.</li>
|
36 |
-
<li>You will see a window with an activation button. Click on it.</li>
|
37 |
-
<li>You will be asked to select the file FileActivation.xml from the folder Activation (DS150E New VCI). Do so and click Open.</li>
|
38 |
-
<li>You will see a message saying that the activation was successful. Click OK.</li>
|
39 |
-
</ol>
|
40 |
-
<p>Congratulations! You have successfully downloaded and installed Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl on your device. You can now run the software and enjoy its features.</p>
|
41 |
-
<h2>How to use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl for diagnostic purposes?</h2>
|
42 |
-
<p>To use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl for diagnostic purposes, you will need to connect your device to your vehicle using an OBD-II cable or a wireless adapter. Then, you can launch the software and select the vehicle make, model and system that you want to diagnose. You can also use the Intelligent System Scan (ISS) function to scan all the control modules on the vehicle and display the fault codes stored in each system. You can then select a specific control system to further analyse the results and perform various functions such as reading and clearing fault codes, viewing live data, performing tests and adjustments, programming keys, resetting service intervals, etc.</p>
|
43 |
-
<p>In the following sections, we will show you some examples of how to diagnose cars and trucks with Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl.</p>
|
44 |
-
<p>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Zip<br />
|
45 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Crack<br />
|
46 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Download<br />
|
47 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Torrent<br />
|
48 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Free<br />
|
49 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Full<br />
|
50 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Serial<br />
|
51 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci License<br />
|
52 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Activator<br />
|
53 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Generator<br />
|
54 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Software<br />
|
55 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Update<br />
|
56 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Patch<br />
|
57 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Code<br />
|
58 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Installer<br />
|
59 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Manual<br />
|
60 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Review<br />
|
61 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Guide<br />
|
62 |
-
Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Tutorial<br />
|
63 |
-
Delphi</p>
|
64 |
-
<h3>How to diagnose cars with Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl?</h3>
|
65 |
-
<p>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl can diagnose a wide range of car models and systems, such as engine, transmission, ABS, airbag, steering, climate control, etc. Here are some examples of common car problems and how to solve them with the software:</p>
|
66 |
-
<ul>
|
67 |
-
<li>Engine misfire: If your car engine is running rough or unevenly, it may have a misfire problem. This can be caused by faulty spark plugs, ignition coils, fuel injectors, or other components. To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the engine control module (ECM) and view the live data of the engine parameters such as rpm, load, fuel pressure, etc. You can also perform a cylinder balance test to identify which cylinder is misfiring and check the ignition system components for any damage or wear.</li>
|
68 |
-
<li>ABS warning light: If your car ABS warning light is on, it means that there is a problem with the anti-lock braking system. This can affect the braking performance and safety of your car. To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the ABS control module and view the live data of the wheel speed sensors, brake pressure sensors, etc. You can also perform an actuator test to check the operation of the ABS pump and valves.</li>
|
69 |
-
<li>Airbag warning light: If your car airbag warning light is on, it means that there is a problem with the airbag system. This can prevent the airbags from deploying in case of a collision and put you and your passengers at risk. To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the airbag control module and view the live data of the crash sensors, seat belt tensioners, etc. You can also perform a self-test to check the functionality of the airbag system components.</li>
|
70 |
-
</ul>
|
71 |
-
<h3>How to diagnose trucks with Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl?</h3>
|
72 |
-
<p>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl can also diagnose a wide range of truck models and systems, such as engine, transmission, brakes, suspension, instrument cluster, etc. Here are some examples of common truck problems and how to solve them with the software:</p>
|
73 |
-
<ul>
|
74 |
-
<li>Engine power loss: If your truck engine is losing power or has poor performance, it may have a problem with the fuel system or the exhaust aftertreatment system. This can be caused by clogged fuel filters, injectors, or DPF (diesel particulate filter). To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the engine control module (ECM) and view the live data of the engine parameters such as boost pressure, fuel pressure, exhaust temperature, etc. You can also perform a dosing test to check the operation of the SCR (selective catalytic reduction) system and regenerate the DPF if needed.</li>
|
75 |
-
<li>Brake warning light: If your truck brake warning light is on, it means that there is a problem with the brake system. This can affect the braking performance and safety of your truck. To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the brake control module and view the live data of the wheel speed sensors, brake pressure sensors, etc. You can also perform an EBS (electronic braking system) test to check the operation of the brake pump and valves.</li>
|
76 |
-
<li>Suspension warning light: If your truck suspension warning light is on, it means that there is a problem with the suspension system. This can affect the ride comfort and stability of your truck. To diagnose this problem, you can use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl to read the fault codes from the suspension control module and view the live data of the height sensors, air pressure sensors, etc. You can also perform a calibration test to adjust the suspension level.</li>
|
77 |
-
</ul>
|
78 |
-
<h2>What are the benefits and drawbacks of Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl?</h2>
|
79 |
-
<p>Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl is a powerful and versatile diagnostic software that has many benefits for users such as:</p>
|
80 |
-
<ul>
|
81 |
-
<li>It supports a wide range of vehicles and systems from different brands and manufacturers.</li>
|
82 |
-
<li>It provides comprehensive and accurate information and data about various vehicle components and functions.</li>
|
83 |
-
<li>It allows users to perform various diagnostic tasks such as reading and clearing fault codes, viewing live data, performing tests and adjustments, programming keys, resetting service intervals, etc.</li>
|
84 |
-
<li>It has a user-friendly interface that is easy to navigate and operate.</li>
|
85 |
-
<li>It has a keygen-activator that enables users to activate the software without any hassle or cost.</li>
|
86 |
-
</ul>
|
87 |
-
<p>However, Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl also has some drawbacks that users should be aware of such as:</p>
|
88 |
-
<ul>
|
89 |
-
<li>It requires a compatible device such as a laptop or a tablet to run the software.</li>
|
90 |
-
<li>It requires an OBD-II cable or a wireless adapter to connect the device to the vehicle.</li>
|
91 |
-
<li>It may not support some newer or older vehicle models or systems that are not included in its database.</li>
|
92 |
-
<li>It may not be able to perform some advanced or specific functions that are only available in original equipment manufacturer (OEM) diagnostic tools.</li>
|
93 |
-
</ul>
|
94 |
-
<h2>What are some tips and tricks for using Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl effectively?</h2>
|
95 |
-
<p>To use Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl effectively, users should follow some tips and tricks such as:</p>
|
96 |
-
<ul>
|
97 |
-
<li>Always update the software regularly to get access to new features and functions.</li>
|
98 |
-
<li>Always check the vehicle battery voltage before starting a diagnostic session to avoid communication errors or damage to the vehicle or device.</li>
|
99 |
-
<li>Always follow the instructions on the screen or in the help function when performing any diagnostic task.</li>
|
100 |
-
<li>Always make sure that you have selected the correct vehicle make, model, and system before performing any diagnostic task.</li>
|
101 |
-
<li>Always clear any fault codes after performing any repair or adjustment on the vehicle.</li>
|
102 |
-
</ul>
|
103 |
-
<h2>Conclusion</h2>
|
104 |
-
<p>In conclusion, Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl is a reliable and versatile diagnostic software for cars and trucks that allows users to perform various diagnostic tasks on different vehicles and systems using a compatible device. It has many benefits such as supporting a wide range of vehicles and systems, providing comprehensive information and data, allowing users to perform various diagnostic tasks, having a user-friendly interface, and having a keygen-activator. However, it also has some drawbacks such as requiring a compatible device and an OBD-II cable or a wireless adapter, not supporting some newer or older vehicle models or systems, and not being able to perform some advanced or specific functions. Therefore, users should weigh the pros and cons of the software before using it and follow some tips and tricks to use it effectively.</p>
|
105 |
-
<h4>FAQs</h4>
|
106 |
-
<p>Here are some frequently asked questions and answers about Delphi 2015.3 Keygen-activation 2015 Release 2 Cdp Ds150e Cdp Cars Trucks Vci Rarl:</p>
|
107 |
-
<ol>
|
108 |
-
<li>Q: What are the system requirements for running the software on a PC or a laptop?<br>
|
109 |
-
A: The minimum system requirements are: Windows XP SP3 / Vista / 7 / 8 / 10, Intel Core 2 Duo 1.8 GHz or equivalent processor, 2 GB RAM, 5 GB free disk space, USB port, DVD-ROM drive.</li>
|
110 |
-
<li>Q: What are the compatible devices for running the software on a tablet?<br>
|
111 |
-
A: The software can run on any Windows-based tablet that meets the minimum system requirements. However, the recommended device is the Delphi DS450E tablet, which is specially designed for the software and has a 12-inch touch screen, a rugged case, a built-in camera, and a long battery life.</li>
|
112 |
-
<li>Q: What are the compatible OBD-II cables or wireless adapters for connecting the device to the vehicle?<br>
|
113 |
-
A: The software can work with any OBD-II cable or wireless adapter that supports ISO 9141-2, ISO 14230-4 (KWP2000), ISO 15765-4 (CAN), SAE J1850 (PWM/VPW), and SAE J2534 (Pass-Thru) protocols. However, the recommended device is the Delphi DS150E VCI, which is specially designed for the software and has a Bluetooth connection, a LED indicator, and a multiplexer function.</li>
|
114 |
-
<li>Q: How can I update the software to get access to new features and functions?<br>
|
115 |
-
A: You can update the software by downloading the latest version from the official website of Delphi or by using the built-in update function in the software. You will need to activate the software again after updating it.</li>
|
116 |
-
<li>Q: How can I get technical support or training for using the software?<br>
|
117 |
-
A: You can get technical support or training by contacting Delphi customer service or by visiting their official website. You can also find useful information and tips in the help function or in the user manual of the software.</li>
|
118 |
-
</ol>
|
119 |
-
</p> 0a6ba089eb<br />
|
120 |
-
<br />
|
121 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Movavi Video Editor for Free and Create Stunning Videos in Minutes.md
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
|
2 |
-
```html
|
3 |
-
<h1>How to Download Movavi Video Editor for Free</h1>
|
4 |
-
<p>Movavi Video Editor is a powerful and easy-to-use video editing software that lets you create stunning videos in minutes. You can trim, crop, rotate, add transitions, effects, titles, music, and more to your videos. You can also export your videos in various formats or upload them directly to YouTube, Facebook, Vimeo, or other platforms.</p>
|
5 |
-
<h2>how to download movavi video editor for free</h2><br /><p><b><b>DOWNLOAD</b> 🆗 <a href="https://byltly.com/2uKzXS">https://byltly.com/2uKzXS</a></b></p><br /><br />
|
6 |
-
<p>But what if you want to try Movavi Video Editor for free before buying it? Is there a way to download Movavi Video Editor for free without compromising the quality or functionality of the software? The answer is yes! In this article, we will show you how to download Movavi Video Editor for free and use it without any limitations.</p>
|
7 |
-
<h2>Step 1: Visit the Official Movavi Website</h2>
|
8 |
-
<p>The first step to download Movavi Video Editor for free is to visit the official Movavi website at <a href="https://www.movavi.com/videoeditor/">https://www.movavi.com/videoeditor/</a>. Here you will find all the information about the software, its features, pricing, system requirements, and customer reviews. You will also see a big green button that says "Download for Free". Click on it to start downloading the installation file.</p>
|
9 |
-
<h2>Step 2: Install Movavi Video Editor on Your Computer</h2>
|
10 |
-
<p>The next step is to install Movavi Video Editor on your computer. To do this, locate the downloaded file (usually in your Downloads folder) and double-click on it. Follow the instructions on the screen to complete the installation process. It should take only a few minutes. Once the installation is done, launch Movavi Video Editor by clicking on its icon on your desktop or in your Start menu.</p>
|
11 |
-
<h2>Step 3: Activate Your Free Trial</h2>
|
12 |
-
<p>The final step is to activate your free trial of Movavi Video Editor. When you launch the software for the first time, you will see a window that asks you to enter your email address and agree to the terms of use. Enter your email address and click on "Start My Trial". You will then receive an email from Movavi with a confirmation link. Click on the link to activate your free trial.</p>
|
13 |
-
<p></p>
|
14 |
-
<p>Congratulations! You have successfully downloaded Movavi Video Editor for free and activated your free trial. You can now use all the features of the software for 7 days without any limitations. You can create as many videos as you want and save them in any format or upload them online. You can also access the built-in library of stock media, filters, transitions, stickers, and more.</p>
|
15 |
-
<p>If you like Movavi Video Editor and want to continue using it after your free trial expires, you can buy a license key from the official Movavi website or from within the software. The license key will unlock the software permanently and allow you to enjoy free updates and technical support. You can also choose between different plans depending on your needs and budget.</p>
|
16 |
-
<p>We hope this article helped you learn how to download Movavi Video Editor for free and use it without any limitations. Movavi Video Editor is a great tool for anyone who wants to create amazing videos with ease. Try it today and see for yourself!</p>
|
17 |
-
```</p> ddb901b051<br />
|
18 |
-
<br />
|
19 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download Noiseware for Photoshop for Free and Improve Your Photo Quality.md
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Download Noiseware for Photoshop and Reduce Noise in Your Photos</h1>
|
3 |
-
<p>Noiseware is a plugin for Photoshop that helps you reduce noise in your photos. Noise is the unwanted grain or speckles that appear in your photos due to low light, high ISO, or poor camera quality. Noise can ruin the quality and detail of your photos and make them look unprofessional.</p>
|
4 |
-
<h2>download noiseware for photoshop</h2><br /><p><b><b>Download Zip</b> ———>>> <a href="https://byltly.com/2uKyAa">https://byltly.com/2uKyAa</a></b></p><br /><br />
|
5 |
-
<p>In this article, we will show you how to download Noiseware for Photoshop from a reliable source and how to use it to reduce noise in your photos. We will also give you some tips and tricks to get the best results with Noiseware.</p>
|
6 |
-
<h2>Where to Download Noiseware for Photoshop</h2>
|
7 |
-
<p>There are many websites that claim to offer free downloads of Noiseware for Photoshop, but not all of them are safe or legal. Some of them may contain viruses, malware, or spyware that can harm your computer or steal your personal information. Others may require you to complete surveys, sign up for subscriptions, or pay hidden fees before you can access the download link.</p>
|
8 |
-
<p>To avoid these risks, we recommend you to download Noiseware for Photoshop from <a href="https://imagenomic.com/Products/Noiseware">Imagenomic</a>, the official website of the plugin developer. Imagenomic is a trusted company that provides high-quality plugins for photo editing and retouching. Imagenomic has a free trial version of Noiseware for Photoshop that you can use for 15 days without any limitations.</p>
|
9 |
-
<p>To download Noiseware for Photoshop from Imagenomic, follow these steps:</p>
|
10 |
-
<ol>
|
11 |
-
<li>Go to <a href="https://imagenomic.com/Products/Noiseware">https://imagenomic.com/Products/Noiseware</a></li>
|
12 |
-
<li>Click on the "Download Trial" button at the top of the page.</li>
|
13 |
-
<li>Fill in your name and email address and click on "Submit".</li>
|
14 |
-
<li>Check your email inbox for a confirmation message from Imagenomic. Click on the link in the message to download Noiseware for Photoshop.</li>
|
15 |
-
<li>Save the downloaded file on your computer. The file size is about 3 MB.</li>
|
16 |
-
</ol>
|
17 |
-
<h2>How to Install Noiseware for Photoshop on Your PC</h2>
|
18 |
-
<p>Once you have downloaded Noiseware for Photoshop from Imagenomic, you need to install it on your PC. To do that, follow these steps:</p>
|
19 |
-
<p></p>
|
20 |
-
<ol>
|
21 |
-
<li>Close Photoshop if it is running.</li>
|
22 |
-
<li>Open the downloaded file and run the setup file.</li>
|
23 |
-
<li>Follow the instructions on the screen to install Noiseware for Photoshop.</li>
|
24 |
-
<li>Restart Photoshop and check if Noiseware is available in the Filter menu.</li>
|
25 |
-
</ol>
|
26 |
-
<h2>How to Use Noiseware for Photoshop to Reduce Noise in Your Photos</h2>
|
27 |
-
<p>Now that you have installed Noiseware for Photoshop on your PC, you are ready to use it to reduce noise in your photos. To do that, follow these steps:</p>
|
28 |
-
<ol>
|
29 |
-
<li>Open the photo that you want to edit in Photoshop.</li>
|
30 |
-
<li>Duplicate the background layer by pressing Ctrl+J (Windows) or Command+J (Mac).</li>
|
31 |
-
<li>Select the duplicate layer and go to Filter > Imagenomic > Noiseware.</li>
|
32 |
-
<li>A new window will open with a preview of your photo and some settings. You can adjust the settings manually or use one of the presets from the drop-down menu at the top right corner. The presets are categorized into Landscape, Portrait, Night Scene, etc. depending on the type of photo you are editing.</li>
|
33 |
-
<li>You can also use the Auto Profile button at the bottom left corner to let Noiseware analyze your photo and apply the optimal settings automatically.</li>
|
34 |
-
<li>You can zoom in and out of your photo using the slider at the bottom right corner or by using your mouse wheel. You can also drag your photo around to see different areas of it.</li>
|
35 |
-
<li>When you are satisfied with the result, click on OK to apply Noiseware to your photo.</li>
|
36 |
-
<li>You can compare the before and after images by toggling the visibility of the duplicate layer on and off.</li>
|
37 |
-
<li>You can also fine-tune the effect by changing the opacity or blending mode of the duplicate layer.</li>
|
38 |
-
<li>Save your edited photo as</p> ddb901b051<br />
|
39 |
-
<br />
|
40 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Entrare in dfu mode senza tasti i software da scaricare per facilitare loperazione.md
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Come entrare in DFU mode senza tasti</h1>
|
3 |
-
Se hai un iPhone che non si accende, che non si aggiorna o che presenta dei problemi di funzionamento, potresti aver bisogno di metterlo in modalità DFU. La modalità DFU, acronimo di Device Firmware Update, è una modalità speciale che consente di ripristinare il firmware dell'iPhone bypassando il suo boot loader. In questo modo, puoi eliminare eventuali errori o blocchi che impediscono il normale ripristino tramite iTunes o Finder. Ma come si fa ad entrare in modalità DFU se i tasti del tuo iPhone non funzionano? In questa guida ti spiegheremo cos'è la modalità DFU, a cosa serve, come attivarla con i tasti funzionanti e come farlo senza i tasti funzionanti. <h2>Cos'è la modalità DFU e a cosa serve</h2>
|
4 |
-
La modalità DFU è una modalità avanzata che permette di ripristinare il firmware dell'iPhone, ovvero il software di base che gestisce il funzionamento del dispositivo. A differenza del ripristino normale, che cancella solo i dati e le impostazioni dell'utente, la modalità DFU cancella anche il firmware e lo sostituisce con una versione pulita e aggiornata. <h3>La differenza tra DFU e ripristino normale</h3>
|
5 |
-
Quando ripristini il tuo iPhone tramite iTunes o Finder, il dispositivo entra in una modalità chiamata Recovery Mode. In questa modalità, l'iPhone comunica con il computer tramite il boot loader, ovvero il programma che avvia il sistema operativo. Il boot loader verifica che il firmware sia corretto e compatibile con il dispositivo prima di installarlo. Se il firmware è danneggiato o non corrisponde al modello di iPhone, il boot loader blocca il ripristino e mostra un messaggio di errore. Quando invece metti il tuo iPhone in modalità DFU, il dispositivo non comunica con il computer tramite il boot loader, ma direttamente tramite il firmware. In questo modo, puoi bypassare i controlli del boot loader e installare qualsiasi versione di firmware compatibile con il tuo iPhone. Questo può essere utile per risolvere problemi più gravi o per effettuare operazioni particolari, come il downgrade del firmware o il jailbreak. <h3>Quando usare la modalità DFU</h3>
|
6 |
-
La modalità DFU è una modalità molto potente ma anche molto delicata. Se non la usi correttamente, potresti danneggiare irreparabilmente il tuo iPhone. Per questo motivo, ti consigliamo di usare la modalità DFU solo quando hai dei problemi seri con il tuo dispositivo e il ripristino normale non funziona. Alcuni casi in cui potresti aver bisogno di usare la modalità DFU sono: - Il tuo iPhone non si accende o rimane bloccato sulla schermata con la mela. - Il tuo iPhone non si aggiorna o si blocca durante l'aggiornamento. - Il tuo iPhone presenta dei malfunzionamenti gravi o frequenti. - Il tuo iPhone ha subito un jailbreak e vuoi eliminarlo completamente. - Vuoi installare una versione precedente del firmware sul tuo iPhone. <h2>Come entrare in DFU mode con i tasti funzionanti</h2>
|
7 |
-
Se i tasti del tuo iPhone sono funzionanti, puoi entrare in modalità DFU seguendo una semplice procedura che varia a seconda del modello di iPhone che possiedi. Prima di iniziare, assicurati di avere un computer con iTunes installato (se hai un PC Windows) o con Finder (se hai un Mac). Collega poi l'iPhone al computer tramite il cavo Lightning e segui i passaggi indicati qui sotto. <h3>La procedura per iPhone X o modelli successivi, iPhone SE (2ª generazione), iPhone 8 e iPhone 8 Plus</h3>
|
8 |
-
- Premi rapidamente il tasto Volume Su. - Premi rapidamente il tasto Volume Giù. - Tieni premuto il tasto laterale finché lo schermo non diventa nero. - Continua a tenere premuto il tasto laterale e premi anche il tasto Volume Giù per 5 secondi. - Rilascia il tasto laterale ma continua a tenere premuto il tasto Volume Giù finché iTunes o Finder non riconosce l'iPhone in modalità di recupero. - Lo schermo dell'iPhone dovrebbe rimanere nero. Se compare il logo della mela o quello di iTunes, significa che sei entrato in Recovery Mode e devi ripetere la procedura. <h3>La procedura per iPhone 7 e iPhone 7 Plus</h3>
|
9 |
-
- Tieni premuti contemporaneamente i tasti laterale e Volume Giù finché lo schermo non diventa nero. - Continua a tenere premuti i due tasti per 10 secondi. - Rilascia il tasto laterale ma continua a tenere premuto il tasto Volume Giù finché iTunes o Finder non riconosce l'iPhone in modalità di recupero. - Lo schermo dell'iPhone dovrebbe rimanere nero. Se compare il logo della mela o quello di iTunes, significa che sei entrato in Recovery Mode e devi ripetere la procedura. <h3>La procedura per iPhone 6s o modelli precedenti, iPad e iPod touch</h3>
|
10 |
-
- Tieni premuti contemporaneamente i tasti Home e Sleep/Wake finché lo schermo non diventa nero. - Continua a tenere premuti i due tasti per 10 secondi. - Rilascia il tasto Sleep/Wake ma continua a tenere premuto il tasto Home finché iTunes o Finder non riconosce l'iPhone in modalità di recupero. - Lo schermo dell'iPhone dovrebbe rimanere nero. Se compare il logo della mela o quello di iTunes, significa che sei entrato in Recovery Mode e devi ripetere la procedura. <h2>Come entrare in DFU mode senza i tasti funzionanti</h2>
|
11 |
-
Se i tasti del tuo iPhone non funzionano, puoi provare ad entrare in modalità DFU usando dei metodi alternativi che sfruttano dei file o dei software appositi. Questi metodi non sono ufficiali e potrebbero non funzionare su tutti i dispositivi o su tutte le versioni di firmware. Inoltre, potrebbero comportare dei rischi per la sicurezza del tuo computer o del tuo iPhone. Pertanto, ti consigliamo di usarli solo se sei sicuro di quello che fai e se hai esaurito le altre opzioni. <h3>Il metodo con il file dfu iBSS.m68ap.RELEASE.dfu (solo per Windows)</h3>
|
12 |
-
Questo metodo consiste nell'utilizzare un file chiamato dfu iBSS.m68ap.RELEASE.dfu che permette di avviare la modalità DFU senza premere alcun tasto sull'iPhone. Questo file è compatibile solo con alcuni modelli di iPhone (fino all'iPhone 4) e richiede un PC Windows. Ecco come usarlo: - Scarica questo ità DFU è una modalità delicata e potenzialmente pericolosa, quindi usala solo se necessario e con cautela. Se hai dei dubbi o delle domande, puoi consultare le FAQ qui sotto o contattare l'assistenza Apple. <h1>FAQ</h1>
|
13 |
-
- **Cos'è la modalità DFU?** - La modalità DFU è una modalità speciale che consente di ripristinare il firmware dell'iPhone bypassando il suo boot loader. In questo modo, puoi eliminare eventuali errori o blocchi che impediscono il normale ripristino tramite iTunes o Finder. - **Come si entra in modalità DFU?** - Per entrare in modalità DFU, devi collegare l'iPhone al computer tramite il cavo Lightning e seguire una procedura che varia a seconda del modello di iPhone che possiedi. La procedura prevede di premere una combinazione di tasti per far diventare lo schermo nero. Puoi trovare le istruzioni dettagliate nella sezione "Come entrare in DFU mode con i tasti funzionanti" di questa guida. - **Come si esce dalla modalità DFU?** - Per uscire dalla modalità DFU, devi premere una combinazione di tasti diversa a seconda del modello di iPhone che possiedi. La combinazione prevede di premere rapidamente il tasto Volume Su, il tasto Volume Giù e il tasto laterale (per iPhone X o modelli successivi, iPhone SE (2ª generazione), iPhone 8 e iPhone 8 Plus), il tasto laterale e il tasto Volume Giù (per iPhone 7 e iPhone 7 Plus) o il tasto Home e il tasto Sleep/Wake (per iPhone 6s o modelli precedenti, iPad e iPod touch). Puoi trovare le istruzioni dettagliate nella fonte. - **Quando usare la modalità DFU?** - La modalità DFU è una modalità molto potente ma anche molto delicata. Se non la usi correttamente, potresti danneggiare irreparabilmente il tuo iPhone. Per questo motivo, ti consigliamo di usare la modalità DFU solo quando hai dei problemi seri con il tuo dispositivo e il ripristino normale non funziona. Alcuni casi in cui potresti aver bisogno di usare la modalità DFU sono: il tuo iPhone non si accende o rimane bloccato sulla schermata con la mela, il tuo iPhone non si aggiorna o si blocca durante l'aggiornamento, il tuo iPhone presenta dei malfunzionamenti gravi o frequenti, il tuo iPhone ha subito un jailbreak e vuoi eliminarlo completamente, vuoi installare una versione precedente del firmware sul tuo iPhone. - **Cosa fare se i tasti dell'iPhone non funzionano?** - Se i tasti dell'iPhone non funzionano, puoi provare ad entrare in modalità DFU usando dei metodi alternativi che sfruttano dei file o dei software appositi. Questi metodi non sono ufficiali e potrebbero non funzionare su tutti i dispositivi o su tutte le versioni di firmware. Inoltre, potrebbero comportare dei rischi per la sicurezza del tuo computer o del tuo iPhone. Pertanto, ti consigliamo di usarli solo se sei sicuro di quello che fai e se hai esaurito le altre opzioni. Puoi trovare i metodi alternativi nella sezione "Come entrare in DFU mode senza i tasti funzionanti" di questa guida. </p>
|
14 |
-
<h2>entrare in dfu mode senza tasti</h2><br /><p><b><b>Download Zip</b> > <a href="https://byltly.com/2uKzSn">https://byltly.com/2uKzSn</a></b></p><br /><br /> 0a6ba089eb<br />
|
15 |
-
<br />
|
16 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download My Mini Mart and Experience the Joy of Running Your Own Shop - No Ads No Interruptions.md
DELETED
@@ -1,78 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Download a Minimarket App and Why You Should Do It</h1>
|
3 |
-
<p>If you are looking for a convenient way to shop for groceries and other goods from your local store, you might want to consider downloading a <strong>minimarket app</strong>. A minimarket app is a mobile application that allows you to access the products and services of a small store, usually a convenience store or a supermarket, from your smartphone or tablet.</p>
|
4 |
-
<p>A minimarket app can offer many benefits for both customers and business owners, such as convenience, loyalty, engagement, and sales. In this article, we will explain what these benefits are, how to choose the best minimarket app for your needs, and how to download and use it.</p>
|
5 |
-
<h2>download my minimarket no iklan</h2><br /><p><b><b>Download Zip</b> ->>->>->> <a href="https://jinyurl.com/2uNJbP">https://jinyurl.com/2uNJbP</a></b></p><br /><br />
|
6 |
-
<h2>Benefits of Minimarket Apps for Customers</h2>
|
7 |
-
<p>As a customer, you can enjoy several advantages by using a minimarket app to shop from your local store. Here are some of them:</p>
|
8 |
-
<h a user-friendly interface, a fast and reliable functionality, a secure and private payment system, and a comprehensive and accurate product catalog. You should also look for an app that has additional features that enhance your shopping experience, such as search filters, product reviews, product recommendations, shopping lists, order tracking, delivery options, customer service, etc. You should compare different apps based on their features and choose the one that meets your needs and expectations.</p>
|
9 |
-
<h3>Reviews</h3>
|
10 |
-
<p>The second thing that you should look for in a minimarket app is the reviews and ratings from other users. You should read the feedback and comments from other customers who have used the app and see what they liked and disliked about it. You should also check the ratings and scores that the app has received on the app store or the website of the store. You should look for an app that has positive reviews and high ratings from a large number of users, as this indicates that the app is trustworthy and reliable.</p>
|
11 |
-
<h3>Comparisons</h3>
|
12 |
-
<p>The third thing that you should look for in a minimarket app is the comparisons with other apps. You should compare different apps based on their features, reviews, ratings, prices, etc. and see how they stack up against each other. You should look for an app that offers the best value for your money and the best quality for your satisfaction. You should also look for an app that has a competitive edge over other apps, such as unique features, exclusive offers, or innovative solutions.</p>
|
13 |
-
<h2>How to Download and Use a Minimarket App</h2>
|
14 |
-
<p>Once you have chosen the best minimarket app for your needs, you can download and use it to shop from your local store. Here are some steps on how to do it:</p>
|
15 |
-
<h3>Downloading</h3>
|
16 |
-
<p>The first step is to download the minimarket app from the app store or the website of the store. You should search for the name of the app or the store on your device's app store or browser and follow the instructions to install it. You should make sure that you have enough storage space on your device and a stable internet connection to download the app. You should also check the compatibility of the app with your device's operating system and version.</p>
|
17 |
-
<h3>Registering</h3>
|
18 |
-
<p>The second step is to register an account and provide your personal information on the minimarket app. You should open the app and sign up with your email address, phone number, or social media account. You should then fill out your profile with your name, address, payment method, delivery preferences, etc. You should also verify your account with a code or a link that will be sent to your email or phone. You should make sure that you provide accurate and valid information on the app and keep it updated.</p>
|
19 |
-
<h3>Shopping</h3>
|
20 |
-
<p>The third step is to shop for products on the minimarket app. You should browse the products by category, brand, price, rating, etc. or search for specific products by name, barcode, or keyword. You should then select the products that you want to buy and add them to your cart. You should also check the product details, such as description, ingredients, nutrition facts, expiration date, etc. before buying them. You should then proceed to checkout and pay for your order with your preferred payment method.</p>
|
21 |
-
<p>download my mini mart game without ads<br />
|
22 |
-
how to get my minimarket mod apk free<br />
|
23 |
-
my mini mart simulation game no iklan<br />
|
24 |
-
grow your own mini mart business download<br />
|
25 |
-
my minimarket unlimited money mod apk<br />
|
26 |
-
download my mini mart for android no ads<br />
|
27 |
-
my mini mart by supersonic studios ltd no iklan<br />
|
28 |
-
run your own mini mart store download<br />
|
29 |
-
my minimarket 1.8.5 mod apk free download<br />
|
30 |
-
my mini mart simulation game for android<br />
|
31 |
-
download my minimarket tanpa iklan gratis<br />
|
32 |
-
my mini mart organic plants and animals game<br />
|
33 |
-
my minimarket latest version mod apk download<br />
|
34 |
-
my mini mart casual tycoon game no ads<br />
|
35 |
-
download my minimarket uang tidak terbatas<br />
|
36 |
-
my mini mart management simulation game download<br />
|
37 |
-
my minimarket apk for android no iklan<br />
|
38 |
-
my mini mart fun and relaxing game download<br />
|
39 |
-
my minimarket mod apk unlimited everything<br />
|
40 |
-
download my mini mart without ads for free<br />
|
41 |
-
my mini mart grow a pretend business game<br />
|
42 |
-
my minimarket 1.8.5 apk no iklan download<br />
|
43 |
-
my mini mart simulation game with tons of activities<br />
|
44 |
-
download my minimarket mod apk terbaru<br />
|
45 |
-
my mini mart expand your marts game no ads<br />
|
46 |
-
download my mini mart simulation game offline<br />
|
47 |
-
my minimarket free simulation game no iklan<br />
|
48 |
-
my mini mart challenge of running a small store game<br />
|
49 |
-
my minimarket mod apk tanpa iklan download<br />
|
50 |
-
my mini mart simulation game with cute graphics<br />
|
51 |
-
download my minimarket mod apk offline mode<br />
|
52 |
-
my mini mart hire and build your marts game no ads<br />
|
53 |
-
my minimarket simulation game by supersonic studios ltd<br />
|
54 |
-
my mini mart become a successful business tycoon game download<br />
|
55 |
-
download my minimarket mod apk unlimited coins and gems<br />
|
56 |
-
my mini mart simulation game with in-app purchases no ads<br />
|
57 |
-
my minimarket 1.8.5 mod apk no ads free download<br />
|
58 |
-
my mini mart simulation game with rolling offer and daily spin <br />
|
59 |
-
download my minimarket mod apk latest version 2023 <br />
|
60 |
-
my mini mart simulation game with 14 different marts no ads</p>
|
61 |
-
<h3>Delivery</h3>
|
62 |
-
<p>The fourth step is to choose your delivery option and track your order on the minimarket app. You should choose whether you want to pick up your order from the store or have it delivered to your address. You should also choose when you want to receive your order, such as same-day delivery, next-day delivery, or scheduled delivery. You should then confirm your order details and wait for a confirmation message from the store. You should also track your order status and progress on the app or contact customer service if you have any issues or questions.</p>
|
63 |
-
<h2>Conclusion</h2>
|
64 |
-
<p>In conclusion, downloading a minimarket app can be a great way to shop for groceries and other goods from your local store with convenience, loyalty, engagement, and sales benefits. To choose the best minimarket app for your needs, you should consider its features, reviews reviews, and comparisons. To download and use a minimarket app, you should follow the steps of downloading, registering, shopping, and delivery. We hope that this article has helped you understand how to download a minimarket app and why you should do it. If you have any questions or comments, please feel free to contact us. Thank you for reading and happy shopping!</p>
|
65 |
-
<h2>FAQs</h2>
|
66 |
-
<p>Here are some frequently asked questions related to downloading a minimarket app:</p>
|
67 |
-
<h4>How do I contact customer service on the minimarket app?</h4>
|
68 |
-
<p>Most minimarket apps have a customer service feature that allows you to chat, call, or email the store staff if you have any issues or questions. You can usually find this feature on the app's menu, settings, or help section. You can also check the app's website or social media pages for more contact information.</p>
|
69 |
-
<h4>How do I update my payment information on the minimarket app?</h4>
|
70 |
-
<p>To update your payment information on the minimarket app, you should go to your profile or account section and select the payment option. You can then add, edit, or delete your payment methods, such as credit card, debit card, PayPal, etc. You should make sure that your payment information is correct and secure before making any transactions.</p>
|
71 |
-
<h4>How do I cancel or return my order on the minimarket app?</h4>
|
72 |
-
<p>To cancel or return your order on the minimarket app, you should check the store's cancellation and return policy first. Some stores may allow you to cancel or return your order within a certain period of time or under certain conditions. You can then contact the store or use the app's order management feature to request a cancellation or return. You may need to provide your order number, reason, and proof of purchase. You may also need to pay for the shipping or restocking fees.</p>
|
73 |
-
<h4>How do I share my feedback or review on the minimarket app?</h4>
|
74 |
-
<p>To share your feedback or review on the minimarket app, you should go to the product page or the app's review section and rate and write your opinion about the product or the app. You can also upload photos or videos to show your experience. You should be honest, respectful, and constructive when sharing your feedback or review. You should also avoid spamming, trolling, or abusing other users or the store.</p>
|
75 |
-
<h4>How do I find the best deals and offers on the minimarket app?</h4>
|
76 |
-
<p>To find the best deals and offers on the minimarket app, you should check the app's homepage, banner, or notification section for any special events, promotions, or discounts that are available. You can also use the app's search filter, sorting, or recommendation feature to find the products that suit your budget and preferences. You can also join the app's loyalty program or newsletter to get exclusive deals and offers.</p> 401be4b1e0<br />
|
77 |
-
<br />
|
78 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download Voyage 4 MOD APK (v2.54) and Experience the Relaxation of Driving - Unlimited Money Included.md
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Voyage 4 Mod APK Son Sürüm: A Guide to the Ultimate Road Trip Game</h1>
|
3 |
-
<p>Do you love driving games that let you explore realistic and diverse landscapes? Do you want to experience a cinematic adventure game that captures the essence of shared exploration? Do you want to play a game that is simple, non-violent, and beautiful? If you answered yes to any of these questions, then you should try Voyage 4 Mod APK Son Sürüm, a game that will take you on a memorable road trip across Russia.</p>
|
4 |
-
<h2>What is Voyage 4 and why should you play it?</h2>
|
5 |
-
<p>Voyage 4 is a realistic driving simulator game that lets you travel on Russian roads with various cars. You can choose from over 50 vehicles, ranging from sedans and SUVs to trucks and buses. You can also customize your car with tuning parts, visual effects, and sounds.</p>
|
6 |
-
<h2>voyage 4 mod apk son sürüm</h2><br /><p><b><b>Download File</b> ➡ <a href="https://jinyurl.com/2uNN4R">https://jinyurl.com/2uNN4R</a></b></p><br /><br />
|
7 |
-
<p>The game features a large and detailed map of Russia, with over 1000 cities and towns, as well as different regions, weather conditions, and historical landmarks. You can drive on highways, country roads, dirt roads, and even off-road. You can also encounter traffic, police, accidents, and other events that make the game more realistic and challenging.</p>
|
8 |
-
<p>Voyage 4 is not just a driving game, but also an adventure game that tells a story through its environment and gameplay. You can discover secrets, mysteries, and surprises along the way. You can also interact with other drivers and passengers, who have their own personalities and stories. You can even play with a friend in co-op mode, where you can share the same car or drive separately.</p>
|
9 |
-
<h2>What is Voyage 4 Mod APK Son Sürüm and how to download it?</h2>
|
10 |
-
<p>Voyage 4 Mod APK Son Sürüm is a modified version of the game that gives you unlimited money, unlocked cars, and no ads. This means that you can enjoy the game without any limitations or interruptions. You can access all the cars and tuning parts without spending real money. You can also have more fun and challenge with the game's realistic physics and graphics.</p>
|
11 |
-
<p>To download Voyage 4 Mod APK Son Sürüm, you need to follow these simple steps:</p>
|
12 |
-
<ol>
|
13 |
-
<li>Go to a reliable source like APKCombo, which offers safe and fast downloads of APK files.</li>
|
14 |
-
<li>Search for Voyage 4 Mod APK Son Sürüm in the search bar or browse the categories.</li>
|
15 |
-
<li>Click on the download button and wait for the file to be downloaded.</li>
|
16 |
-
<li>Enable unknown sources in your device settings by going to Settings > Security > Unknown Sources.</li>
|
17 |
-
<li>Install the APK file by tapping on it and following the instructions.</li>
|
18 |
-
<li>Launch the game and enjoy!</li>
|
19 |
-
</ol>
|
20 |
-
<h2>What are the features and benefits of Voyage 4 Mod APK Son Sürüm?</h2>
|
21 |
-
<p>Voyage 4 Mod APK Son Sürüm has many features and benefits that make it a great choice for anyone who loves driving games. Here are some of them:</p>
|
22 |
-
<ul>
|
23 |
-
<li>You can enjoy the game without any limitations or interruptions. You don't have to worry about running out of money, unlocking cars, or watching ads.</li>
|
24 |
-
<li>You can access all the cars and tuning parts without spending real money. You can choose from over 50 vehicles, each with its own characteristics and performance. You can also customize your car with tuning parts, visual effects, and sounds.</li>
|
25 |
-
<li>You can have more fun and challenge with the game's realistic physics and graphics. The game uses advanced physics engine that simulates the behavior of real cars on different surfaces and conditions. The game also has stunning graphics that create a realistic and immersive atmosphere.</li>
|
26 |
-
</ul>
|
27 |
-
<h2>What are some tips and tricks to play Voyage 4 Mod APK Son Sürüm?</h2>
|
28 |
-
<p>Voyage 4 Mod APK Son Sürüm is a game that requires skill, patience, and attention. Here are some tips and tricks to help you play better:</p>
|
29 |
-
<ul>
|
30 |
-
<li>Use the triangle button to get directions if you are lost or stuck. The game will show you the nearest city or town where you can find gas stations, repair shops, hotels, or other facilities.</li>
|
31 |
-
<li>Use the console to adjust the settings and optimize the game performance. You can change the graphics quality, sound volume, control sensitivity, camera angle, language, and other options.</li>
|
32 |
-
<li>Try different cars and routes to discover new places and secrets. The game has a lot of variety and diversity in its map, cars, events, and stories. You can drive on different roads, explore different regions, encounter different situations, and uncover different secrets.</li>
|
33 |
-
</ul>
|
34 |
-
<h2>What are some reviews and ratings of Voyage 4 Mod APK Son Sürüm?</h2>
|
35 |
-
<p>Voyage 4 Mod APK Son Sürüm has a high rating and positive feedback from users who downloaded it from APKCombo. Here are some of their reviews:</p>
|
36 |
-
<p>voyage 4 mod apk son sürüm indir<br />
|
37 |
-
voyage 4 mod apk son sürüm hileli<br />
|
38 |
-
voyage 4 mod apk son sürüm android oyun club<br />
|
39 |
-
voyage 4 mod apk son sürüm g��ncel<br />
|
40 |
-
voyage 4 mod apk son sürüm para hilesi<br />
|
41 |
-
voyage 4 mod apk son sürüm mega hile<br />
|
42 |
-
voyage 4 mod apk son sürüm türkçe<br />
|
43 |
-
voyage 4 mod apk son sürüm ücretsiz<br />
|
44 |
-
voyage 4 mod apk son sürüm full<br />
|
45 |
-
voyage 4 mod apk son sürüm kurulumu<br />
|
46 |
-
voyage 4 mod apk son sürüm nasıl indirilir<br />
|
47 |
-
voyage 4 mod apk son sürüm nasıl yüklenir<br />
|
48 |
-
voyage 4 mod apk son sürüm nasıl oynanır<br />
|
49 |
-
voyage 4 mod apk son sürüm oyun indir club<br />
|
50 |
-
voyage 4 mod apk son sürüm oyunu indir<br />
|
51 |
-
voyage 4 mod apk son sürüm oyunu oyna<br />
|
52 |
-
voyage 4 mod apk son sürüm oyunu hakkında<br />
|
53 |
-
voyage 4 mod apk son sürüm oyunu inceleme<br />
|
54 |
-
voyage 4 mod apk son sürüm oyunu yorumlar<br />
|
55 |
-
voyage 4 mod apk son sürüm oyunu özellikleri<br />
|
56 |
-
voyage 4 mod apk son sürüm oyunu sistem gereksinimleri<br />
|
57 |
-
voyage 4 mod apk son sürüm oyunu videoları<br />
|
58 |
-
voyage 4 mod apk son sürüm oyunu resimleri<br />
|
59 |
-
voyage 4 mod apk son sürüm oyunu hileleri<br />
|
60 |
-
voyage 4 mod apk son sürüm oyunu ipuçları<br />
|
61 |
-
voyage 4 mod apk son sürüm oyunu rehberi<br />
|
62 |
-
voyage 4 mod apk son sürüm oyunu haritası<br />
|
63 |
-
voyage 4 mod apk son sürüm oyunu araçları<br />
|
64 |
-
voyage 4 mod apk son sürüm oyunu görevleri<br />
|
65 |
-
voyage 4 mod apk son sürüm oyunu müzikleri<br />
|
66 |
-
voyage 4 mod apk son sürüm download<br />
|
67 |
-
voyage 4 mod apk son sürüm free download<br />
|
68 |
-
voyage 4 mod apk son sürüm latest version download<br />
|
69 |
-
voyage 4 mod apk son sürüm updated version download<br />
|
70 |
-
voyage 4 mod apk son sürüm offline download<br />
|
71 |
-
voyage 4 mod apk son sürüm online download<br />
|
72 |
-
voyage 4 mod apk son sürüm direct download link<br />
|
73 |
-
voyage 4 mod apk son sürüm mediafire download link<br />
|
74 |
-
voyage 4 mod apk son sürüm google drive download link<br />
|
75 |
-
voyage 4 mod apk son sürüm mega download link<br />
|
76 |
-
voyage 4 mod apk son sürüm unlimited money download<br />
|
77 |
-
voyage 4 mod apk son sürüm unlimited coins download<br />
|
78 |
-
voyage 4 mod apk son sürüm unlimited gems download<br />
|
79 |
-
voyage 4 mod apk son sürüm unlimited fuel download<br />
|
80 |
-
voyage 4 mod apk son sürüm unlocked all cars download<br />
|
81 |
-
voyage 4 mod apk son sürüm unlocked all maps download<br />
|
82 |
-
voyage 4 mod apk son sürüm unlocked all features download<br />
|
83 |
-
voyage 4 mod apk son sürüm no ads download<br />
|
84 |
-
voyage 4 mod apk son sürüm no root download<br />
|
85 |
-
voyage 4 mod apk son sürüm no virus download</p>
|
86 |
-
<table border="1">
|
87 |
-
<tr><th>User</th><th>Rating</th><th>Review</th></tr>
|
88 |
-
<tr><td>Mehmet</td><td>5 stars</td><td>Very good game, I like the graphics and the physics. The mod apk is also very good, it gives me unlimited money and unlocked cars. I recommend it to everyone who likes driving games.</td></tr>
|
89 |
-
<tr><td>Ayşe</td><td>4 stars</td><td>I enjoy playing this game, it is very relaxing and fun. The mod apk is also very helpful, it removes the ads and gives me more options to customize my car. The only thing I don't like is that the game sometimes crashes or freezes.</td></tr>
|
90 |
-
<tr><td>Ali</td><td>5 stars</td><td>This game is amazing, it is like a real road trip across Russia. The mod apk is also amazing, it gives me everything I need to play the game without any problems. I love the game and the mod apk.</td></tr>
|
91 |
-
</table>
|
92 |
-
<h2>Conclusion</h2>
|
93 |
-
<p>Voyage 4 Mod APK Son Sürüm is a great way to experience the game's amazing features and benefits. You can download it easily and safely from APKCombo and enjoy a short and simple game with a beautiful aesthetic. You can also share your adventure with a friend or play solo with an AI companion. Voyage 4 Mod APK Son Sürüm is a game that will make you feel the joy of exploration and discovery.</p>
|
94 |
-
<h2>FAQs</h2>
|
95 |
-
<h3>Q1. Is Voyage 4 Mod APK Son Sürüm safe to download and install?</h3>
|
96 |
-
<h4>A1. Yes, as long as you download it from a trusted source like APKCombo, which scans all the APK files for viruses and malware.</h4>
|
97 |
-
<h3>Q2. How long is Voyage 4 Mod APK Son Sürüm?</h3>
|
98 |
-
<h4>A2. The game's runtime is under 2 hours, but you can replay it with different cars and routes to see more of the world.</h4>
|
99 |
-
<h3>Q3. Can I play Voyage 4 Mod APK Son Sürüm without internet or Google Play service?</h3>
|
100 |
-
<h4>A3. Yes, you can play offline, but you will not be able to save your results or see other players' results in Google Play.</h4>
|
101 |
-
<h3>Q4. Does Voyage 4 Mod APK Son Sürüm have any dialogue or text?</h3>
|
102 |
-
<h4>A4. No, the game does not use any dialogue or text to tell its story. It relies on visuals, sounds, and gestures instead.</h4>
|
103 |
-
<h3>Q5. What are some other games similar to Voyage 4 Mod APK Son Sürüm?</h3>
|
104 |
-
<h4>A5. Some other games that have a similar style and theme are Journey, Limbo, Inside, Brothers: A Tale of Two Sons, and Unravel.</h4></p> 197e85843d<br />
|
105 |
-
<br />
|
106 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Evertale 2.0.64 Mod Apk Free Shopping and Unlimited Money.md
DELETED
@@ -1,113 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Evertale 2.0.64 Mod Apk: A Guide for Beginners</h1>
|
3 |
-
<p>If you are a fan of fantasy RPGs with monster-catching and battling elements, you might have heard of <strong>Evertale</strong>, a popular game by ZigZaGame Inc. that has been compared to Pokémon and other similar games. But did you know that there is a modified version of the game that gives you access to some developer functions that can make your gameplay easier and more fun? In this article, we will tell you everything you need to know about <strong>Evertale 2.0.64 Mod Apk</strong>, including what it is, how to download and install it, and how to play it.</p>
|
4 |
-
<h2>What is Evertale?</h2>
|
5 |
-
<p>Before we dive into the details of the mod apk, let's first review what Evertale is and why it is worth playing.</p>
|
6 |
-
<h2>evertale 2.0.64 mod apk</h2><br /><p><b><b>DOWNLOAD</b> ✸ <a href="https://jinyurl.com/2uNPDX">https://jinyurl.com/2uNPDX</a></b></p><br /><br />
|
7 |
-
<h3>A fantasy RPG with monster-catching and battling</h3>
|
8 |
-
<p>Evertale is a game that takes you to the fantasy world of Erden, where you can catch, train, and evolve over 180 monsters and heroes across an impressive story-driven adventure. You can explore sprawling landscapes, bustling cities, and mythical dungeons in this expansive open-world RPG. You can also join a band of unlikely heroes and free the world of Erden from the deadly Pandemonium, an ancient curse that descends once every 100 years.</p>
|
9 |
-
<h3>A rich story mode and online features</h3>
|
10 |
-
<p>Evertale has a lot to offer for both offline and online players. You can immerse yourself in the engaging single-player story mode that has a lot of quests, characters, secrets, and rewards to discover. You can also jump online to compete in real-time PvP leagues and form guilds with other players to unlock limited-edition gear, power-ups, and more. You can also participate in weekly online events that offer exclusive unlockables and limited characters to add to your collection.</p>
|
11 |
-
<h3>A game with positive reviews and high ratings</h3>
|
12 |
-
<p>Evertale has been well-received by strategy RPG enthusiasts and beginners alike, with over 5 million downloads from the Google Play Store alone. It has also received positive reviews from critics and players who praised its solid writing, lovely art style, strategic combat, and variety of content. It has been rated 4.5 out of 5 stars on both Android and iOS platforms.</p>
|
13 |
-
<h2>What is Evertale 2.0.64 Mod Apk?</h2>
|
14 |
-
<p>Now that you have an idea of what Evertale is, let's talk about what Evertale 2.0.64 Mod Apk is and how it differs from the original game.</p>
|
15 |
-
<p>evertale 2.0.64 mod apk unlimited money<br />
|
16 |
-
evertale 2.0.64 mod apk free download<br />
|
17 |
-
evertale 2.0.64 mod apk latest version<br />
|
18 |
-
evertale 2.0.64 mod apk android 1<br />
|
19 |
-
evertale 2.0.64 mod apk offline<br />
|
20 |
-
evertale 2.0.64 mod apk unlimited soul stones<br />
|
21 |
-
evertale 2.0.64 mod apk no root<br />
|
22 |
-
evertale 2.0.64 mod apk obb<br />
|
23 |
-
evertale 2.0.64 mod apk rexdl<br />
|
24 |
-
evertale 2.0.64 mod apk revdl<br />
|
25 |
-
evertale 2.0.64 mod apk hack<br />
|
26 |
-
evertale 2.0.64 mod apk god mode<br />
|
27 |
-
evertale 2.0.64 mod apk unlimited everything<br />
|
28 |
-
evertale 2.0.64 mod apk mega<br />
|
29 |
-
evertale 2.0.64 mod apk data<br />
|
30 |
-
evertale 2.0.64 mod apk full version<br />
|
31 |
-
evertale 2.0.64 mod apk premium<br />
|
32 |
-
evertale 2.0.64 mod apk unlocked<br />
|
33 |
-
evertale 2.0.64 mod apk vip<br />
|
34 |
-
evertale 2.0.64 mod apk pro<br />
|
35 |
-
evertale 2.0.64 mod apk all characters<br />
|
36 |
-
evertale 2.0.64 mod apk high damage<br />
|
37 |
-
evertale 2.0.64 mod apk one hit kill<br />
|
38 |
-
evertale 2.0.64 mod apk unlimited gems<br />
|
39 |
-
evertale 2.0.64 mod apk unlimited coins<br />
|
40 |
-
evertale 2.0.64 mod apk unlimited capture stones<br />
|
41 |
-
evertale 2.0.64 mod apk unlimited mana<br />
|
42 |
-
evertale 2.0.64 mod apk unlimited gold<br />
|
43 |
-
evertale 2.0.64 mod apk unlimited silver<br />
|
44 |
-
evertale 2.0.64 mod apk unlimited tickets<br />
|
45 |
-
evertale 2.0.64 mod apk unlimited keys<br />
|
46 |
-
evertale 2.0.64 mod apk unlimited chests<br />
|
47 |
-
evertale 2.0.64 mod apk unlimited weapons<br />
|
48 |
-
evertale 2.0.64 mod apk unlimited items<br />
|
49 |
-
evertale 2.0.64 mod apk unlimited resources<br />
|
50 |
-
evertale 2.0.64 mod apk unlimited skills<br />
|
51 |
-
evertale 2.0.64 mod apk unlimited levels<br />
|
52 |
-
evertale 2.0.64 mod apk unlimited stars<br />
|
53 |
-
evertale 2.0.64 mod apk unlimited quests<br />
|
54 |
-
evertale 2.0.64 mod apk unlimited events</p>
|
55 |
-
<h3>A modified version of the game with developer functions</h3>
|
56 |
-
<p>Evertale 2.0.64 Mod Apk is a modified version of the game that gives you access to some developer functions that are not available in the original game. These functions include:</p>
|
57 |
-
<ul>
|
58 |
-
<li>Characters can't die</li>
|
59 |
-
<li>100% catch rate</li>
|
60 |
-
<li>Free shopping</li>
|
61 |
-
<li>Unlimited soul stones</li>
|
62 |
-
<li>No ads</li>
|
63 |
-
</ul>
|
64 |
-
<p>These functions can make your gameplay more convenient and enjoyable, as you can easily catch and upgrade your monsters, buy anything you want from the shop, and avoid annoying ads. However, they also come with some drawbacks that you should be aware of.</p>
|
65 |
-
<h3>The benefits and risks of using the mod apk</h3>
|
66 |
-
<p>Using the mod apk can have some benefits, such as:</p>
|
67 |
-
<ul>
|
68 |
-
<li>You can save time and money by not having to grind for resources or spend real money on in-app purchases.</li>
|
69 |
-
<li>You can experiment with different combinations of monsters and heroes without worrying about losing battles or wasting soul stones.</li>
|
70 |
-
<li>You can experience the full story mode without any interruptions or difficulties.</li>
|
71 |
-
</ul>
|
72 |
-
<p>However, using the mod apk can also have some risks, such as:</p>
|
73 |
-
<ul>
|
74 |
-
<li>You might lose the thrill and challenge of the game, as you can easily breeze through any obstacle or enemy.</li>
|
75 |
-
<li>You might get bored of the game sooner, as you have nothing to strive for or achieve.</li>
|
76 |
-
<li>You might face legal issues or bans from the game developers, as using the mod apk is against their terms of service and can be considered as cheating or hacking.</li>
|
77 |
-
</ul>
|
78 |
-
<p>Therefore, you should weigh the pros and cons of using the mod apk before deciding to download and install it. You should also be careful about where you download it from, as some sources might contain viruses or malware that can harm your device or steal your personal information.</p>
|
79 |
-
<h3>How to download and install the mod apk</h3>
|
80 |
-
<p>If you have decided to use the mod apk, here are the steps you need to follow to download and install it:</p>
|
81 |
-
<ol>
|
82 |
-
<li>Uninstall the original Evertale game from your device if you have it installed.</li>
|
83 |
-
<li>Go to a trusted website that provides the Evertale 2.0.64 Mod Apk file, such as [APKPure] or [APKDone].</li>
|
84 |
-
<li>Download the mod apk file to your device.</li>
|
85 |
-
<li>Enable the installation of apps from unknown sources in your device settings.</li>
|
86 |
-
<li>Locate and tap on the mod apk file to start the installation process.</li>
|
87 |
-
<li>Follow the instructions on the screen to complete the installation.</li>
|
88 |
-
<li>Launch the game and enjoy!</li>
|
89 |
-
</ol>
|
90 |
-
<h2>How to play Evertale 2.0.64 Mod Apk?</h2>
|
91 |
-
<p>Now that you have successfully installed the mod apk, you might be wondering how to play it. Here are some tips and tricks that can help you get started and master the game.</p>
|
92 |
-
<h3>The basics of the battle system</h3>
|
93 |
-
<p>Evertale has a turn-based battle system that allows you to control up to four characters at a time. Each character has a unique set of skills and abilities that can be activated by spending mana points (MP). You can also switch between different characters during battle by tapping on their icons at the bottom of the screen. You can win battles by defeating all enemies or by capturing them with soul stones.</p>
|
94 |
-
<h3>The tips and tricks for catching and training monsters</h3>
|
95 |
-
<p>Evertale has over 180 monsters that you can catch and train to become your allies. You can catch monsters by using soul stones during battle, which have a 100% success rate with the mod apk. You can also find monsters in chests, events, or by exploring the world map. You can train your monsters by leveling them up, evolving them, equipping them with gear, and teaching them new skills. You can also customize your monsters' names, appearances, and personalities.</p>
|
96 |
-
<h3>The best strategies for progressing in the story mode and online events</h3>
|
97 |
-
<p>Evertale has a captivating story mode that spans over six chapters, each with its own plot, characters, and locations. You can progress in the story mode by completing quests, solving puzzles, fighting enemies, and collecting items. You can also unlock new areas and secrets by revisiting previous locations with different characters or abilities. You can also participate in online events that offer exclusive rewards and challenges. You can compete in PvP leagues, join guilds, cooperate with other players, and more.</p>
|
98 |
-
<h2>Conclusion</h2>
|
99 |
-
<p>you can follow the steps we have provided to download and install it. You can also use our tips and tricks to play it and enjoy its features. Evertale is a game that can offer you hours of fun and entertainment, whether you play it with or without the mod apk. We hope you found this article helpful and informative. Happy gaming!</p>
|
100 |
-
<h2>FAQs</h2>
|
101 |
-
<p>Here are some frequently asked questions about Evertale 2.0.64 Mod Apk that you might find useful.</p>
|
102 |
-
<h4>Q: Is Evertale 2.0.64 Mod Apk safe to use?</h4>
|
103 |
-
<p>A: Evertale 2.0.64 Mod Apk is not an official version of the game, so it might not be safe to use. It might contain viruses or malware that can harm your device or steal your personal information. It might also cause legal issues or bans from the game developers, as using it is against their terms of service and can be considered as cheating or hacking. Therefore, you should use it at your own risk and discretion.</p>
|
104 |
-
<h4>Q: Can I play Evertale 2.0.64 Mod Apk offline?</h4>
|
105 |
-
<p>A: Yes, you can play Evertale 2.0.64 Mod Apk offline, as it does not require an internet connection to run. However, you will not be able to access some online features, such as PvP leagues, guilds, events, and more.</p>
|
106 |
-
<h4>Q: Can I update Evertale 2.0.64 Mod Apk to the latest version?</h4>
|
107 |
-
<p>A: No, you cannot update Evertale 2.0.64 Mod Apk to the latest version, as it is not compatible with the original game. If you want to update the game, you will have to uninstall the mod apk and install the original game from the official sources.</p>
|
108 |
-
<h4>Q: Can I transfer my progress from Evertale 2.0.64 Mod Apk to the original game?</h4>
|
109 |
-
<p>A: No, you cannot transfer your progress from Evertale 2.0.64 Mod Apk to the original game, as they are not compatible with each other. If you want to play the original game, you will have to start from scratch.</p>
|
110 |
-
<h4>Q: Can I use Evertale 2.0.64 Mod Apk with other mods or hacks?</h4>
|
111 |
-
<p>A: No, you cannot use Evertale 2.0.64 Mod Apk with other mods or hacks, as they might cause conflicts or errors in the game. You should only use one mod or hack at a time.</p> 401be4b1e0<br />
|
112 |
-
<br />
|
113 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2023Liu2023/bingo/README.md
DELETED
@@ -1,195 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: bingo
|
3 |
-
emoji: 📉
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: red
|
6 |
-
sdk: docker
|
7 |
-
pinned: true
|
8 |
-
license: mit
|
9 |
-
duplicated_from: hf4all/bingo
|
10 |
-
---
|
11 |
-
|
12 |
-
<div align="center">
|
13 |
-
|
14 |
-
# Bingo
|
15 |
-
|
16 |
-
Bingo,一个让你呼吸顺畅 New Bing。
|
17 |
-
|
18 |
-
高度还原 New Bing 网页版的主要操作,国内可用,兼容绝大多数微软 Bing AI 的功能,可自行部署使用。
|
19 |
-
|
20 |
-

|
21 |
-

|
22 |
-
[](https://hub.docker.com/repository/docker/weaigc/bingo/)
|
23 |
-
[](https://hub.docker.com/repository/docker/weaigc/bingo/)
|
24 |
-
[](https://github.com/weaigc/bingo/blob/main/license)
|
25 |
-
|
26 |
-
</div>
|
27 |
-
|
28 |
-
## 演示站点
|
29 |
-
|
30 |
-
https://bing.github1s.tk
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
[](https://bing.github1s.tk)
|
35 |
-
|
36 |
-
## 功能和特点
|
37 |
-
|
38 |
-
- 完全基于 Next.js 重写,高度还原 New Bing Web 版 UI,使用体验和 Bing AI 基本一致。
|
39 |
-
- 支持 Docker 构建,方便快捷地部署和访问。
|
40 |
-
- Cookie 可全局配置,全局共享。
|
41 |
-
- 支持持续语音对话
|
42 |
-
|
43 |
-
## RoadMap
|
44 |
-
|
45 |
-
- [x] 支持 wss 转发
|
46 |
-
- [x] 支持一键部署
|
47 |
-
- [x] 优化移动端展示
|
48 |
-
- [x] 支持画图
|
49 |
-
- [x] 支持语音输入(支持语音指令,目前仅支持 PC 版 Edge 及 Chrome 浏览器)
|
50 |
-
- [x] 支持语音输出(需要手动开启)
|
51 |
-
- [x] 支持图片输入
|
52 |
-
- [x] 支持自定义域名
|
53 |
-
- [ ] 支持历史记录
|
54 |
-
- [ ] 适配深色模式
|
55 |
-
- [ ] 支持内置提示词
|
56 |
-
- [ ] 支持离线访问
|
57 |
-
- [ ] 国际化翻译
|
58 |
-
|
59 |
-
## 一键部署
|
60 |
-
你也可以一键部署自己的 New Bing AI 到 🤗 HuggingFace 。
|
61 |
-
|
62 |
-
### 部署到 Huggingface
|
63 |
-
1. 点击此图标
|
64 |
-
[](https://huggingface.co/login?next=%2Fspaces%2Fhf4all%2Fbingo%3Fduplicate%3Dtrue%26visibility%3Dpublic),配置可以不改。
|
65 |
-
|
66 |
-
2. 部署署完成后,点击“设置” 》“站点域名”,点一下,复制一下 HF 域名信息,然后分享给别人即可。
|
67 |
-
|
68 |
-
> Huggingface 不支持绑定自己的域名,不过我们可以使用曲线救国的方式来达到这个目的
|
69 |
-
> 1. 方式二,借助 Cloudflare Workers [部署Cloudflare Workers](#使用Cloudflare-Workers自定义域名)
|
70 |
-
> 2. 方式一,借助 Github Pages 及 iframe [如何绑定域名](https://github.com/weaigc/bingo/issues/4)
|
71 |
-
|
72 |
-
### 使用Cloudflare Workers自定义域名
|
73 |
-
|
74 |
-
> 核心代码 [worker.js](./cloudflare/worker.js)
|
75 |
-
|
76 |
-
- [注册 Cloudflare 账号](https://dash.cloudflare.com/sign-up)
|
77 |
-
|
78 |
-
- 添加一个新的网站,需要你有自己的域名并且将域名`Name Server`托管给 Cloudflare 才行(更多信息可自行 Google)
|
79 |
-
|
80 |
-
- 通过左侧菜单进入「Workers」,并点击「Create a Worker」。
|
81 |
-
|
82 |
-
- 创建 Worker 服务,复制 [worker.js](./cloudflare/worker.js) 全部代码,粘贴至创建的服务中,根据注释进行改动,保存并部署。
|
83 |
-
|
84 |
-
- 触发器 中自定义访问域名。
|
85 |
-
|
86 |
-
### 部署其它平台
|
87 |
-
<details>
|
88 |
-
<summary>
|
89 |
-
由于其他平台目前遭到 New Bing 封杀,会遇到很多问题,不再做推荐,有需要的可以自行查看
|
90 |
-
</summary>
|
91 |
-
|
92 |
-
#### 部署到 Netlify
|
93 |
-
[](https://app.netlify.com/start/deploy?repository=https://github.com/weaigc/bingo)
|
94 |
-
|
95 |
-
#### 部署到 Vercel
|
96 |
-
如果你是 Vercel 付费用户,可以点以下链接一键部署到 Vercel。免费版本有[接口超时限制](https://vercel.com/docs/concepts/limits/overview),不推荐使用
|
97 |
-
|
98 |
-
[](https://vercel.com/new/clone?demo-title=bingo&demo-description=bingo&demo-url=https%3A%2F%2Fbing.github1s.tk%2F&project-name=bingo&repository-name=bingo&repository-url=https%3A%2F%2Fgithub.com%2Fweaigc%2Fbingo&from=templates&skippable-integrations=1&env=BING_HEADER&envDescription=%E5%A6%82%E6%9E%9C%E4%B8%8D%E7%9F%A5%E9%81%93%E6%80%8E%E4%B9%88%E9%85%8D%E7%BD%AE%E8%AF%B7%E7%82%B9%E5%8F%B3%E4%BE%A7Learn+More&envLink=https%3A%2F%2Fgithub.com%2Fweaigc%2Fbingo%2Fblob%2Fmain%2F.env.example)
|
99 |
-
|
100 |
-
#### 部署到 Render
|
101 |
-
|
102 |
-
[](https://render.com/deploy?repo=https://github.com/weaigc/bingo)
|
103 |
-
</details>
|
104 |
-
|
105 |
-
## 环境和依赖
|
106 |
-
|
107 |
-
- Node.js >= 18
|
108 |
-
- Bing AI 的[身份信息](#如何获取-BING_HEADER))
|
109 |
-
|
110 |
-
## 安装和使用
|
111 |
-
|
112 |
-
* 使用 Node 启动
|
113 |
-
|
114 |
-
```bash
|
115 |
-
git clone https://github.com/weaigc/bingo.git
|
116 |
-
npm i # 推荐使用 pnpm i
|
117 |
-
npm run build
|
118 |
-
npm run start
|
119 |
-
```
|
120 |
-
|
121 |
-
* 使用 Docker 启动
|
122 |
-
```bash
|
123 |
-
docker pull weaigc/bingo
|
124 |
-
docker run --rm -it -p 7860:7860 weaigc/bingo
|
125 |
-
# 或者
|
126 |
-
docker run --rm -it -e BING_HEADER=xxxx -p 7860:7860 weaigc/bingo
|
127 |
-
```
|
128 |
-
|
129 |
-
## 如何获取 BING_HEADER
|
130 |
-
> 配置了 BING_HEADER 意味着你将自己的账号共享给所有���用此服务的人,如果不需要免登录画图的功能,不建议设置此变量
|
131 |
-
|
132 |
-
打开 https://www.bing.com 并登录,然后访问 https://www.bing.com/turing/captcha/challenge,通过人机校验,然后
|
133 |
-
|
134 |
-

|
135 |
-
|
136 |
-
> 复制出来的内容应该如下所示。确认格式无误后,打开 https://effulgent-bubblegum-e2f5df.netlify.app/#dialog=%22settings%22 ,粘贴进去,点击“转成 BING_HEADER 并复制”,然后从剪切板粘贴即可得到。(你也可以先在网页上进行验证)
|
137 |
-
|
138 |
-
以下是格式参考,需要注意的是,网页端保存的格式是以`curl`开头, 而服务端配置的 `BING_HEADER` 是 `base64` 格式,两者不能互通。
|
139 |
-
<details>
|
140 |
-
<summary>正常格式/网页端保存的格式(格式仅供参考)</summary>
|
141 |
-
|
142 |
-
```
|
143 |
-
curl 'https://www.bing.com/turing/captcha/challenge' \
|
144 |
-
-H 'authority: www.bing.com' \
|
145 |
-
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
|
146 |
-
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6' \
|
147 |
-
-H 'cache-control: max-age=0' \
|
148 |
-
-H 'cookie: MicrosoftApplicationsTelemetryDeviceId=3399c004-fd0e-48ec-bb92-d82a27b2bbd4; _EDGE_V=1; SRCHD=AF=NOFORM; SRCHUID=V=2&GUID=29EBDDA4E6674329ACCF1A0A423C3E98&dmnchg=1; _UR=QS=0&TQS=0; _HPVN=CS=eyJQbiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6MSwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyMy0wNy0yNVQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIkRmdCI6bnVsbCwiTXZzIjowLCJGbHQiOjAsIkltcCI6Mn0=; _RwBf=ilt=1&ihpd=1&ispd=0&rc=0&rb=0&gb=0&rg=200&pc=0&mtu=0&rbb=0&g=0&cid=&clo=0&v=1&l=2023-07-25T07:00:00.0000000Z&lft=0001-01-01T00:00:00.0000000&aof=0&o=2&p=&c=&t=0&s=0001-01-01T00:00:00.0000000+00:00&ts=2023-07-25T11:00:31.7111548+00:00&rwred=0&wls=&lka=0&lkt=0&TH=&dci=0; ANON=A=0043C6590EA808ED6E395059FFFFFFFF&E=1c8b&W=1; NAP=V=1.9&E=1c31&C=DnaMSbDN_4efZ_xXqBF3Daorjr53kYqYoaP8YHsupjmiXnysX7a37A&W=1; PPLState=1; KievRPSSecAuth=FABSBBRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACMGUA7EGVSjGEAQBGHtNsc5sNL7unmJsfPJ2t6imfo4BeUJlAia3IpMTtMUy4PU/C5QAzRI5pODtsIee0+blgllXt/5IiWwGjwmdhivsFM597pRPkjARPfwsPhNLPNbJrCPNPHdje4Is78MnCADXw6/NBq2FL8V2/byw2fH6IuAMD2MvN/VvqpEa9ZxiDjZtENj4HEj0mO2SgzjfyEhVAkjvznJqU2rw/Q2tHmX94NAM2kzlzKF/hWPhCCUmu8IHLvCnHDS6mSptvJDDP/sp3ovtzOXkP1mlM/Xju5ftesUvccVEQGffXORa1dE5hEMbKIiKXz1tDdduSXE19g9/+mRMAjaQhpwhI8XmilCTx1adb1Ll5qK+VjC9GNfEZzcbsGBPVaOl+anG8rEMq+Xnhjo7J+NqTNolavHgcuV8kJsCeJZIged33UA8eOZeFo+wAECMguxMoSqgpGH+sthqynvD/FJD6r/tiU2N3uqVq8NE8V37asrN6T14Z0FGBJOe6ET1+PGApm3s11OY9/xhFEB9T5BEPUGEbvRcLcW2ncFQX0EU+xweiPqo1Q1hNUg/dCtSI+lZ7c2H8XheePZavZ0TJQ8oNCSAuKiTqJmI0fVGpwbXwfaADkEipuawz3fIuMJBNgMU0OtA7Hm59v2fGLIBuvi6YeKS6GgVk3BIPf+P/eKahwozrxQZaFnoHTSqMkvct7xCP4atBROfXKf5Ww0CcFKp+2WX9BIskTOo2jjk6bAyyYJ+ElUB1fgLKNk5m/YSMc9iYCLIBMIGN8F0Yvy3tZ7cvh7Ue5Klo98US/I+nW1G7ZJMHRgUO8h8lpneHqEMegKd8gynO4VF7RpCjJkunDmW0Ta+RkXAP619pg0dqHMFkoOgknN78oBbGTV6fJUKotv+vi61kLhAeXZGWoHGCRXh2wUC6YgfPgKA6ESRNHtFn7E5B3HHpLc5rVMDSNhKZYfdhupV4Ezf6+5DhMcZLZhi0kk+ivDiN1gdHlVtSN55xpvf+c+XZDzR0uhgcvgy0LAbmzgk6y4WbYH+LQsMpzNNj+aC72vMiWovWrKh9jY4MYCmdgxsS/skPtLdp18muiEIRXTbZQGUmhxFpJAIbBIsCscMpzL0BgeujxUwM5wr79Sd9r4xwbgSMwmBlBfUHRVBdNyg8feepeJbCS63nD6eHOuLqMRsPIio3w/ki/EAa92UUEiZeavLsMUD/y/qAvWUdzdP5Y+C/TM+CMGS/kGL4LEdY/28MQeTvU1qv1X21kQt2aiaj3pPVL36hAzxbcLgqcMo9oymDRy87kdCXW/+g4oKLtMh6fm/G6W6Y/B01JlxohyyvueHQIG557uzkEkTJ3FnOVODSKBKpb3WZ65rExfV71zSZa25F3GmpaIG6HiYrX2YYhQAkIE9pKEQBHbnwHuwNDGottZTXZw=; WLS=C=9df3f9d8518fae19&N=wen; WLID=pGY8HgWCu4p5XYCOk2oa0+DBdftkMUfmNIn8XtSjSTKsgv/Il7GUlYs0Jpjf/E12jZMgV7x44Dy3fXOgjjUoJx7Y/ClLrLhsk20THksJJoI=; _EDGE_S=F=1&SID=17CF6EE006426448213C7DB907436588&mkt=zh-CN; MUID=225621093D8A6C27301632413C0E6D08; MUIDB=225621093D8A6C27301632413C0E6D08; SUID=A; SNRHOP=I=&TS=; _U=nGyzKQruEsDwLiu65fZFIG6e12hf2lwTJmroW__k8joUJIKmG3OIjayXKGW9dCVR3sNhF76mEVxyW6yjUGPodOfjtSa3s3J_DxMOrEK1BqXCOBI9bC66spAIASV7prsYFlVAJz73jVNENp_tBubLHJy6EbT0BKRe4AjrYkH-9uMnmCKB8Zmyg; _SS=SID=17CF6EE006426448213C7DB907436588&R=0&RB=0&GB=0&RG=200&RP=0&PC=U531; SRCHS=PC=U531; USRLOC=HS=1&ELOC=LAT=22.501529693603516|LON=113.9263687133789|N=%E5%8D%97%E5%B1%B1%E5%8C%BA%EF%BC%8C%E5%B9%BF%E4%B8%9C%E7%9C%81|ELT=2|&CLOC=LAT=22.50153029046461|LON=113.92637070632928|A=733.4464586120832|TS=230726151034|SRC=W; SRCHUSR=DOB=20230725&T=1690384908000&POEX=W; ipv6=hit=1690388509974&t=6; SRCHHPGUSR=HV=1690384945&SRCHLANG=zh-Hans&PV=15.0.0&BRW=MW&BRH=MT&CW=410&CH=794&SCW=410&SCH=794&DPR=1.5&UTC=480&DM=0&WTS=63825879627&PRVCW=410&PRVCH=794&PR=1.5; cct=AjWIBYOoVP-Afq6gWwtx80If6yHn6iBuEVHA1XHdAKpny6Y_CVyi_MSyM94VyMWnjdYkkccVtm3czoIAtXUGQA; GC=AjWIBYOoVP-Afq6gWwtx80If6yHn6iBuEVHA1XHdAKpR3Y_D9Ytcks4Ht6XhadXk75dvhzP4YOUS0UmoEyqyxw' \
|
149 |
-
-H 'dnt: 1' \
|
150 |
-
-H 'sec-ch-ua: "Chromium";v="116", "Not)A;Brand";v="24", "Microsoft Edge";v="116"' \
|
151 |
-
-H 'sec-ch-ua-arch: "x86"' \
|
152 |
-
-H 'sec-ch-ua-bitness: "64"' \
|
153 |
-
-H 'sec-ch-ua-full-version: "116.0.1938.29"' \
|
154 |
-
-H 'sec-ch-ua-full-version-list: "Chromium";v="116.0.5845.42", "Not)A;Brand";v="24.0.0.0", "Microsoft Edge";v="116.0.1938.29"' \
|
155 |
-
-H 'sec-ch-ua-mobile: ?0' \
|
156 |
-
-H 'sec-ch-ua-model: ""' \
|
157 |
-
-H 'sec-ch-ua-platform: "Windows"' \
|
158 |
-
-H 'sec-ch-ua-platform-version: "15.0.0"' \
|
159 |
-
-H 'sec-fetch-dest: document' \
|
160 |
-
-H 'sec-fetch-mode: navigate' \
|
161 |
-
-H 'sec-fetch-site: none' \
|
162 |
-
-H 'sec-fetch-user: ?1' \
|
163 |
-
-H 'sec-ms-gec: B3F47AD4A283CAB374C0451C46AAFD147C6A4DACAFF6A1C13F34B2C72B024494' \
|
164 |
-
-H 'sec-ms-gec-version: 1-116.0.1938.29' \
|
165 |
-
-H 'upgrade-insecure-requests: 1' \
|
166 |
-
-H '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 Edg/116.0.0.0' \
|
167 |
-
-H 'x-client-data: eyIxIjoiMiIsIjEwIjoiXCJTMGg3R05HOTF2aDQ1TUZSUnZ5NHN2akRmMWdlaVJKenNxNlA3aU1WbnF3PVwiIiwiMiI6IjEiLCIzIjoiMSIsIjQiOiIyMTU4ODQ5NTM4MjY4OTM5NTA3IiwiNSI6IlwiSm9GUWpPTDk3OS9MbkRRZnlCd2N1M2FsOUN3eTZTQmdaMGNYMXBtOWVMZz1cIiIsIjYiOiJiZXRhIiwiNyI6IjE4MDM4ODYyNjQzNSIsIjkiOiJkZXNrdG9wIn0=' \
|
168 |
-
-H 'x-edge-shopping-flag: 1' \
|
169 |
-
--compressed
|
170 |
-
```
|
171 |
-
</details>
|
172 |
-
|
173 |
-
<details>
|
174 |
-
<summary>转成base64之后的格式(BING_HEADER只能使用 base64 之后的格式)</summary>
|
175 |
-
|
176 |
-
```
|
177 |
-
Y3VybCAnaHR0cHM6Ly93d3cuYmluZy5jb20vdHVyaW5nL2NvbnZlcnNhdGlvbi9jcmVhdGUnIFwgICAtSCAnYXV0aG9yaXR5OiB3d3cuYmluZy5jb20nIFwgICAtSCAnYWNjZXB0OiB0ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSxpbWFnZS93ZWJwLGltYWdlL2FwbmcsKi8qO3E9MC44LGFwcGxpY2F0aW9uL3NpZ25lZC1leGNoYW5nZTt2PWIzO3E9MC43JyBcICAgLUggJ2FjY2VwdC1sYW5ndWFnZTogemgtQ04semg7cT0wLjksZW47cT0wLjgsZW4tR0I7cT0wLjcsZW4tVVM7cT0wLjYnIFwgICAtSCAnY2FjaGUtY29udHJvbDogbWF4LWFnZT0wJyBcICAgLUggJ2Nvb2tpZTogTWljcm9zb2Z0QXBwbGljYXRpb25zVGVsZW1ldHJ5RGV2aWNlSWQ9MzM5OWMwMDQtZmQwZS00OGVjLWJiOTItZDgyYTI3YjJiYmQ0OyBfRURHRV9WPTE7IFNSQ0hEPUFGPU5PRk9STTsgU1JDSFVJRD1WPTImR1VJRD0yOUVCRERBNEU2Njc0MzI5QUNDRjFBMEE0MjNDM0U5OCZkbW5jaGc9MTsgX1VSPVFTPTAmVFFTPTA7IF9IUFZOPUNTPWV5SlFiaUk2ZXlKRGJpSTZNU3dpVTNRaU9qQXNJbEZ6SWpvd0xDSlFjbTlrSWpvaVVDSjlMQ0pUWXlJNmV5SkRiaUk2TVN3aVUzUWlPakFzSWxGeklqb3dMQ0pRY205a0lqb2lTQ0o5TENKUmVpSTZleUpEYmlJNk1Td2lVM1FpT2pBc0lsRnpJam93TENKUWNtOWtJam9pVkNKOUxDSkJjQ0k2ZEhKMVpTd2lUWFYwWlNJNmRISjFaU3dpVEdGa0lqb2lNakF5TXkwd055MHlOVlF3TURvd01Eb3dNRm9pTENKSmIzUmtJam93TENKSGQySWlPakFzSWtSbWRDSTZiblZzYkN3aVRYWnpJam93TENKR2JIUWlPakFzSWtsdGNDSTZNbjA9OyBfUndCZj1pbHQ9MSZpaHBkPTEmaXNwZD0wJnJjPTAmcmI9MCZnYj0wJnJnPTIwMCZwYz0wJm10dT0wJnJiYj0wJmc9MCZjaWQ9JmNsbz0wJnY9MSZsPTIwMjMtMDctMjVUMDc6MDA6MDAuMDAwMDAwMFombGZ0PTAwMDEtMDEtMDFUMDA6MDA6MDAuMDAwMDAwMCZhb2Y9MCZvPTImcD0mYz0mdD0wJnM9MDAwMS0wMS0wMVQwMDowMDowMC4wMDAwMDAwKzAwOjAwJnRzPTIwMjMtMDctMjVUMTE6MDA6MzEuNzExMTU0OCswMDowMCZyd3JlZD0wJndscz0mbGthPTAmbGt0PTAmVEg9JmRjaT0wOyBBTk9OPUE9MDA0M0M2NTkwRUE4MDhFRDZFMzk1MDU5RkZGRkZGRkYmRT0xYzhiJlc9MTsgTkFQPVY9MS45JkU9MWMzMSZDPURuYU1TYkROXzRlZlpfeFhxQkYzRGFvcmpyNTNrWXFZb2FQOFlIc3Vwam1pWG55c1g3YTM3QSZXPTE7IFBQTFN0YXRlPTE7IEtpZXZSUFNTZWNBdXRoPUZBQlNCQlJhVE9KSUx0RnNNa3BMVldTRzZBTjZDL3N2UndObUFBQUVnQUFBQ01HVUE3RUdWU2pHRUFRQkdIdE5zYzVzTkw3dW5tSnNmUEoydDZpbWZvNEJlVUpsQWlhM0lwTVR0TVV5NFBVL0M1UUF6Ukk1cE9EdHNJZWUwK2JsZ2xsWHQvNUlpV3dHandtZGhpdnNGTTU5N3BSUGtqQVJQZndzUGhOTFBOYkpyQ1BOUEhkamU0SXM3OE1uQ0FEWHc2L05CcTJGTDhWMi9ieXcyZkg2SXVBTUQyTXZOL1Z2cXBFYTlaeGlEalp0RU5qNEhFajBtTzJTZ3pqZnlFaFZBa2p2em5KcVUycncvUTJ0SG1YOTROQU0ya3psektGL2hXUGhDQ1VtdThJSEx2Q25IRFM2bVNwdHZKRERQL3NwM292dHpPWGtQMW1sTS9YanU1ZnRlc1V2Y2NWRVFHZmZYT1JhMWRFNWhFTWJLSWlLWHoxdERkZHVTWEUxOWc5LyttUk1BamFRaHB3aEk4WG1pbENUeDFhZGIxTGw1cUsrVmpDOUdOZkVaemNic0dCUFZhT2wrYW5HOHJFTXErWG5oam83SitOcVROb2xhdkhnY3VWOGtKc0NlSlpJZ2VkMzNVQThlT1plRm8rd0FFQ01ndXhNb1NxZ3BHSCtzdGhxeW52RC9GSkQ2ci90aVUyTjN1cVZxOE5FOFYzN2Fzck42VDE0WjBGR0JKT2U2RVQxK1BHQXBtM3MxMU9ZOS94aEZFQjlUNUJFUFVHRWJ2UmNMY1cybmNGUVgwRVUreHdlaVBxbzFRMWhOVWcvZEN0U0krbFo3YzJIOFhoZWVQWmF2WjBUSlE4b05DU0F1S2lUcUptSTBmVkdwd2JYd2ZhQURrRWlwdWF3ejNmSXVNSkJOZ01VME90QTdIbTU5djJmR0xJQnV2aTZZZUtTNkdnVmszQklQZitQL2VLYWh3b3pyeFFaYUZub0hUU3FNa3ZjdDd4Q1A0YXRCUk9mWEtmNVd3MENjRktwKzJXWDlCSXNrVE9vMmpqazZiQXl5WUorRWxVQjFmZ0xLTms1bS9ZU01jOWlZQ0xJQk1JR044RjBZdnkzdFo3Y3ZoN1VlNUtsbzk4VVMvSStuVzFHN1pKTUhSZ1VPOGg4bHBuZUhxRU1lZ0tkOGd5bk80VkY3UnBDakprdW5EbVcwVGErUmtYQVA2MTlwZzBkcUhNRmtvT2drbk43OG9CYkdUVjZmSlVLb3R2K3ZpNjFrTGhBZVhaR1dvSEdDUlhoMndVQzZZZ2ZQZ0tBNkVTUk5IdEZuN0U1QjNISHBMYzVyVk1EU05oS1pZZmRodXBWNEV6ZjYrNURoTWNaTFpoaTBraytpdkRpTjFnZEhsVnRTTjU1eHB2ZitjK1haRHpSMHVoZ2N2Z3kwTEFibXpnazZ5NFdiWUgrTFFzTXB6Tk5qK2FDNzJ2TWlXb3ZXcktoOWpZNE1ZQ21kZ3hzUy9za1B0TGRwMThtdWlFSVJYVGJaUUdVbWh4RnBKQUliQklzQ3NjTXB6TDBCZ2V1anhVd001d3I3OVNkOXI0eHdiZ1NNd21CbEJmVUhSVkJkTnlnOGZlZXBlSmJDUzYzbkQ2ZUhPdUxxTVJzUElpbzN3L2tpL0VBYTkyVVVFaVplYXZMc01VRC95L3FBdldVZHpkUDVZK0MvVE0rQ01HUy9rR0w0TEVkWS8yOE1RZVR2VTFxdjFYMjFrUXQyYWlhajNwUFZMMzZoQXp4YmNMZ3FjTW85b3ltRFJ5ODdrZENYVy8rZzRvS0x0TWg2Zm0vRzZXNlkvQjAxSmx4b2h5eXZ1ZUhRSUc1NTd1emtFa1RKM0ZuT1ZPRFNLQktwYjNXWjY1ckV4ZlY3MXpTWmEyNUYzR21wYUlHNkhpWXJYMllZaFFBa0lFOXBLRVFCSGJud0h1d05ER290dFpUWFp3PTsgV0xTPUM9OWRmM2Y5ZDg1MThmYWUxOSZOPXdlbjsgV0xJRD1wR1k4SGdXQ3U0cDVYWUNPazJvYTArREJkZnRrTVVmbU5JbjhYdFNqU1RLc2d2L0lsN0dVbFlzMEpwamYvRTEyalpNZ1Y3eDQ0RHkzZlhPZ2pqVW9KeDdZL0NsTHJMaHNrMjBUSGtzSkpvST07IF9FREdFX1M9Rj0xJlNJRD0xN0NGNkVFMDA2NDI2NDQ4MjEzQzdEQjkwNzQzNjU4OCZta3Q9emgtQ047IE1VSUQ9MjI1NjIxMDkzRDhBNkMyNzMwMTYzMjQxM0MwRTZEMDg7IE1VSURCPTIyNTYyMTA5M0Q4QTZDMjczMDE2MzI0MTNDMEU2RDA4OyBTVUlEPUE7IFNOUkhPUD1JPSZUUz07IF9VPW5HeXpLUXJ1RXNEd0xpdTY1ZlpGSUc2ZTEyaGYybHdUSm1yb1dfX2s4am9VSklLbUczT0lqYXlYS0dXOWRDVlIzc05oRjc2bUVWeHlXNnlqVUdQb2RPZmp0U2EzczNKX0R4TU9yRUsxQnFYQ09CSTliQzY2c3BBSUFTVjdwcnNZRmxWQUp6NzNqVk5FTnBfdEJ1YkxISnk2RWJUMEJLUmU0QWpyWWtILTl1TW5tQ0tCOFpteWc7IF9TUz1TSUQ9MTdDRjZFRTAwNjQyNjQ0ODIxM0M3REI5MDc0MzY1ODgmUj0wJlJCPTAmR0I9MCZSRz0yMDAmUlA9MCZQQz1VNTMxOyBTUkNIUz1QQz1VNTMxOyBVU1JMT0M9SFM9MSZFTE9DPUxBVD0yMi41MDE1Mjk2OTM2MDM1MTZ8TE9OPTExMy45MjYzNjg3MTMzNzg5fE49JUU1JThEJTk3JUU1JUIxJUIxJUU1JThDJUJBJUVGJUJDJThDJUU1JUI5JUJGJUU0JUI4JTlDJUU3JTlDJTgxfEVMVD0yfCZDTE9DPUxBVD0yMi41MDE1MzAyOTA0NjQ2MXxMT049MTEzLjkyNjM3MDcwNjMyOTI4fEE9NzMzLjQ0NjQ1ODYxMjA4MzJ8VFM9MjMwNzI2MTUxMDM0fFNSQz1XOyBTUkNIVVNSPURPQj0yMDIzMDcyNSZUPTE2OTAzODQ5MDgwMDAmUE9FWD1XOyBpcHY2PWhpdD0xNjkwMzg4NTA5OTc0JnQ9NjsgU1JDSEhQR1VTUj1IVj0xNjkwMzg0OTQ1JlNSQ0hMQU5HPXpoLUhhbnMmUFY9MTUuMC4wJkJSVz1NVyZCUkg9TVQmQ1c9NDEwJkNIPTc5NCZTQ1c9NDEwJlNDSD03OTQmRFBSPTEuNSZVVEM9NDgwJkRNPTAmV1RTPTYzODI1ODc5NjI3JlBSVkNXPTQxMCZQUlZDSD03OTQmUFI9MS41OyBjY3Q9QWpXSUJZT29WUC1BZnE2Z1d3dHg4MElmNnlIbjZpQnVFVkhBMVhIZEFLcG55NllfQ1Z5aV9NU3lNOTRWeU1XbmpkWWtrY2NWdG0zY3pvSUF0WFVHUUE7IEdDPUFqV0lCWU9vVlAtQWZxNmdXd3R4ODBJZjZ5SG42aUJ1RVZIQTFYSGRBS3BSM1lfRDlZdGNrczRIdDZYaGFkWGs3NWR2aHpQNFlPVVMwVW1vRXlxeXh3JyBcICAgLUggJ2RudDogMScgXCAgIC1IICdzZWMtY2gtdWE6ICJDaHJvbWl1bSI7dj0iMTE2IiwgIk5vdClBO0JyYW5kIjt2PSIyNCIsICJNaWNyb3NvZnQgRWRnZSI7dj0iMTE2IicgXCAgIC1IICdzZWMtY2gtdWEtYXJjaDogIng4NiInIFwgICAtSCAnc2VjLWNoLXVhLWJpdG5lc3M6ICI2NCInIFwgICAtSCAnc2VjLWNoLXVhLWZ1bGwtdmVyc2lvbjogIjExNi4wLjE5MzguMjkiJyBcICAgLUggJ3NlYy1jaC11YS1mdWxsLXZlcnNpb24tbGlzdDogIkNocm9taXVtIjt2PSIxMTYuMC41ODQ1LjQyIiwgIk5vdClBO0JyYW5kIjt2PSIyNC4wLjAuMCIsICJNaWNyb3NvZnQgRWRnZSI7dj0iMTE2LjAuMTkzOC4yOSInIFwgICAtSCAnc2VjLWNoLXVhLW1vYmlsZTogPzAnIFwgICAtSCAnc2VjLWNoLXVhLW1vZGVsOiAiIicgXCAgIC1IICdzZWMtY2gtdWEtcGxhdGZvcm06ICJXaW5kb3dzIicgXCAgIC1IICdzZWMtY2gtdWEtcGxhdGZvcm0tdmVyc2lvbjogIjE1LjAuMCInIFwgICAtSCAnc2VjLWZldGNoLWRlc3Q6IGRvY3VtZW50JyBcICAgLUggJ3NlYy1mZXRjaC1tb2RlOiBuYXZpZ2F0ZScgXCAgIC1IICdzZWMtZmV0Y2gtc2l0ZTogbm9uZScgXCAgIC1IICdzZWMtZmV0Y2gtdXNlcjogPzEnIFwgICAtSCAnc2VjLW1zLWdlYzogQjNGNDdBRDRBMjgzQ0FCMzc0QzA0NTFDNDZBQUZEMTQ3QzZBNERBQ0FGRjZBMUMxM0YzNEIyQzcyQjAyNDQ5NCcgXCAgIC1IICdzZWMtbXMtZ2VjLXZlcnNpb246IDEtMTE2LjAuMTkzOC4yOScgXCAgIC1IICd1cGdyYWRlLWluc2VjdXJlLXJlcXVlc3RzOiAxJyBcICAgLUggJ3VzZXItYWdlbnQ6IE1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS8xMTYuMC4wLjAgU2FmYXJpLzUzNy4zNiBFZGcvMTE2LjAuMC4wJyBcICAgLUggJ3gtY2xpZW50LWRhdGE6IGV5SXhJam9pTWlJc0lqRXdJam9pWENKVE1HZzNSMDVIT1RGMmFEUTFUVVpTVW5aNU5ITjJha1JtTVdkbGFWSktlbk54TmxBM2FVMVdibkYzUFZ3aUlpd2lNaUk2SWpFaUxDSXpJam9pTVNJc0lqUWlPaUl5TVRVNE9EUTVOVE00TWpZNE9UTTVOVEEzSWl3aU5TSTZJbHdpU205R1VXcFBURGszT1M5TWJrUlJabmxDZDJOMU0yRnNPVU4zZVRaVFFtZGFNR05ZTVhCdE9XVk1aejFjSWlJc0lqWWlPaUppWlhSaElpd2lOeUk2SWpFNE1ETTRPRFl5TmpRek5TSXNJamtpT2lKa1pYTnJkRzl3SW4wPScgXCAgIC1IICd4LWVkZ2Utc2hvcHBpbmctZmxhZzogMScgXCAgIC0tY29tcHJlc3NlZA==
|
178 |
-
```
|
179 |
-
</details>
|
180 |
-
|
181 |
-
|
182 |
-
## 鸣谢
|
183 |
-
- 感谢 [EdgeGPT](https://github.com/acheong08/EdgeGPT) 提供的代理 API 的方法。
|
184 |
-
- 感谢 [Vercel AI](https://github.com/vercel-labs/ai-chatbot) 提供的基础脚手架和 [ChatHub](https://github.com/chathub-dev/chathub) [go-proxy-bingai](https://github.com/adams549659584/go-proxy-bingai) 提供的部分代码。
|
185 |
-
|
186 |
-
|
187 |
-
## 答疑及交流
|
188 |
-
|
189 |
-
<image src="./docs/images/wechat.png" width=240 />
|
190 |
-
|
191 |
-
## License
|
192 |
-
|
193 |
-
MIT © [LICENSE](https://github.com/weaigc/bingo/blob/main/LICENSE).
|
194 |
-
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/22h/vintedois-diffusion-v0-2/app.py
DELETED
@@ -1,137 +0,0 @@
|
|
1 |
-
from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline, EulerAncestralDiscreteScheduler
|
2 |
-
import gradio as gr
|
3 |
-
import torch
|
4 |
-
from PIL import Image
|
5 |
-
|
6 |
-
model_id = '22h/vintedois-diffusion-v0-2'
|
7 |
-
prefix = 'estilovintedois'
|
8 |
-
|
9 |
-
scheduler = EulerAncestralDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
10 |
-
|
11 |
-
pipe = StableDiffusionPipeline.from_pretrained(
|
12 |
-
model_id,
|
13 |
-
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
14 |
-
scheduler=scheduler)
|
15 |
-
pipe.enable_attention_slicing(1)
|
16 |
-
|
17 |
-
pipe_i2i = StableDiffusionImg2ImgPipeline.from_pretrained(
|
18 |
-
model_id,
|
19 |
-
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
|
20 |
-
scheduler=scheduler)
|
21 |
-
pipe_i2i.enable_attention_slicing(1)
|
22 |
-
|
23 |
-
if torch.cuda.is_available():
|
24 |
-
pipe = pipe.to("cuda")
|
25 |
-
pipe_i2i = pipe_i2i.to("cuda")
|
26 |
-
|
27 |
-
def error_str(error, title="Error"):
|
28 |
-
return f"""#### {title}
|
29 |
-
{error}""" if error else ""
|
30 |
-
|
31 |
-
def inference(prompt, guidance, steps, width=640, height=640, seed=0, img=None, strength=0.5, neg_prompt="", auto_prefix=False):
|
32 |
-
|
33 |
-
generator = torch.Generator('cuda').manual_seed(seed) if seed != 0 else None
|
34 |
-
prompt = f"{prefix} {prompt}" if auto_prefix else prompt
|
35 |
-
|
36 |
-
try:
|
37 |
-
if img is not None:
|
38 |
-
return img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height, generator), None
|
39 |
-
else:
|
40 |
-
return txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator), None
|
41 |
-
except Exception as e:
|
42 |
-
return None, error_str(e)
|
43 |
-
|
44 |
-
def txt_to_img(prompt, neg_prompt, guidance, steps, width, height, generator):
|
45 |
-
|
46 |
-
result = pipe(
|
47 |
-
prompt,
|
48 |
-
negative_prompt = neg_prompt,
|
49 |
-
num_inference_steps = int(steps),
|
50 |
-
guidance_scale = guidance,
|
51 |
-
width = width,
|
52 |
-
height = height,
|
53 |
-
generator = generator)
|
54 |
-
|
55 |
-
return result.images[0]
|
56 |
-
|
57 |
-
def img_to_img(prompt, neg_prompt, img, strength, guidance, steps, width, height, generator):
|
58 |
-
|
59 |
-
ratio = min(height / img.height, width / img.width)
|
60 |
-
img = img.resize((int(img.width * ratio), int(img.height * ratio)), Image.LANCZOS)
|
61 |
-
result = pipe_i2i(
|
62 |
-
prompt,
|
63 |
-
negative_prompt = neg_prompt,
|
64 |
-
image = img,
|
65 |
-
num_inference_steps = int(steps),
|
66 |
-
strength = strength,
|
67 |
-
guidance_scale = guidance,
|
68 |
-
generator = generator)
|
69 |
-
|
70 |
-
return result.images[0]
|
71 |
-
|
72 |
-
css = """.main-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.main-div div h1{font-weight:900;margin-bottom:7px}.main-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}
|
73 |
-
"""
|
74 |
-
with gr.Blocks(css=css) as demo:
|
75 |
-
gr.HTML(
|
76 |
-
f"""
|
77 |
-
<div class="main-div">
|
78 |
-
<div>
|
79 |
-
<h1>22h Diffusion v0.2</h1>
|
80 |
-
</div>
|
81 |
-
<p>
|
82 |
-
Demo for <a href="https://huggingface.co/22h/vintedois-diffusion-v0-2">22h Diffusion v0-2</a> Stable Diffusion model.<br>
|
83 |
-
{"Add the following tokens to your prompts for the model to work properly: <b>estilovintedois</b>" if prefix else ""}
|
84 |
-
</p>
|
85 |
-
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU 🥶</b>. For faster inference it is recommended to <b>upgrade to GPU in <a href='https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2'>Settings</a></b>"}<br><br>
|
86 |
-
<a style="display:inline-block" href="https://huggingface.co/spaces/22h/vintedois-diffusion-v0-2?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
87 |
-
</div>
|
88 |
-
"""
|
89 |
-
)
|
90 |
-
with gr.Row():
|
91 |
-
|
92 |
-
with gr.Column(scale=55):
|
93 |
-
with gr.Group():
|
94 |
-
with gr.Row():
|
95 |
-
prompt = gr.Textbox(label="Prompt", show_label=False, max_lines=2,placeholder=f"{prefix} [your prompt]").style(container=False)
|
96 |
-
generate = gr.Button(value="Generate").style(rounded=(False, True, True, False))
|
97 |
-
|
98 |
-
image_out = gr.Image(height=512)
|
99 |
-
error_output = gr.Markdown()
|
100 |
-
|
101 |
-
with gr.Column(scale=45):
|
102 |
-
with gr.Tab("Options"):
|
103 |
-
with gr.Group():
|
104 |
-
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
105 |
-
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically ()", value=prefix, visible=prefix)
|
106 |
-
|
107 |
-
with gr.Row():
|
108 |
-
guidance = gr.Slider(label="Guidance scale", value=7.5, maximum=15)
|
109 |
-
steps = gr.Slider(label="Steps", value=50, minimum=2, maximum=75, step=1)
|
110 |
-
|
111 |
-
with gr.Row():
|
112 |
-
width = gr.Slider(label="Width", value=640, minimum=64, maximum=1024, step=8)
|
113 |
-
height = gr.Slider(label="Height", value=960, minimum=64, maximum=1024, step=8)
|
114 |
-
|
115 |
-
seed = gr.Slider(0, 2147483647, label='Seed (0 = random)', value=0, step=1)
|
116 |
-
|
117 |
-
with gr.Tab("Image to image"):
|
118 |
-
with gr.Group():
|
119 |
-
image = gr.Image(label="Image", height=256, tool="editor", type="pil")
|
120 |
-
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
121 |
-
|
122 |
-
auto_prefix.change(lambda x: gr.update(placeholder=f"{prefix} [your prompt]" if x else "[Your prompt]"), inputs=auto_prefix, outputs=prompt, queue=False)
|
123 |
-
|
124 |
-
inputs = [prompt, guidance, steps, width, height, seed, image, strength, neg_prompt, auto_prefix]
|
125 |
-
outputs = [image_out, error_output]
|
126 |
-
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
127 |
-
generate.click(inference, inputs=inputs, outputs=outputs)
|
128 |
-
|
129 |
-
gr.HTML("""
|
130 |
-
<div style="border-top: 1px solid #303030;">
|
131 |
-
<br>
|
132 |
-
<p>This space was created using <a href="https://huggingface.co/spaces/anzorq/sd-space-creator">SD Space Creator</a>.</p>
|
133 |
-
</div>
|
134 |
-
""")
|
135 |
-
|
136 |
-
demo.queue(concurrency_count=1)
|
137 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/44ov41za8i/FreeVC/speaker_encoder/data_objects/utterance.py
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
|
3 |
-
|
4 |
-
class Utterance:
|
5 |
-
def __init__(self, frames_fpath, wave_fpath):
|
6 |
-
self.frames_fpath = frames_fpath
|
7 |
-
self.wave_fpath = wave_fpath
|
8 |
-
|
9 |
-
def get_frames(self):
|
10 |
-
return np.load(self.frames_fpath)
|
11 |
-
|
12 |
-
def random_partial(self, n_frames):
|
13 |
-
"""
|
14 |
-
Crops the frames into a partial utterance of n_frames
|
15 |
-
|
16 |
-
:param n_frames: The number of frames of the partial utterance
|
17 |
-
:return: the partial utterance frames and a tuple indicating the start and end of the
|
18 |
-
partial utterance in the complete utterance.
|
19 |
-
"""
|
20 |
-
frames = self.get_frames()
|
21 |
-
if frames.shape[0] == n_frames:
|
22 |
-
start = 0
|
23 |
-
else:
|
24 |
-
start = np.random.randint(0, frames.shape[0] - n_frames)
|
25 |
-
end = start + n_frames
|
26 |
-
return frames[start:end], (start, end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/4eJIoBek/Stable_Diffusion_1.4_openvino/Dockerfile
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
FROM python:3.9.9-bullseye
|
2 |
-
|
3 |
-
WORKDIR /src
|
4 |
-
|
5 |
-
RUN apt-get update && \
|
6 |
-
apt-get install -y \
|
7 |
-
libgl1 libglib2.0-0
|
8 |
-
|
9 |
-
COPY requirements.txt /src/
|
10 |
-
|
11 |
-
RUN pip3 install -r requirements.txt
|
12 |
-
|
13 |
-
COPY stable_diffusion_engine.py demo.py demo_web.py /src/
|
14 |
-
COPY data/ /src/data/
|
15 |
-
|
16 |
-
# download models
|
17 |
-
RUN python3 demo.py --num-inference-steps 1 --prompt "test" --output /tmp/test.jpg
|
18 |
-
|
19 |
-
ENTRYPOINT ["python3", "demo.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/7hao/bingo/src/components/ui/badge.tsx
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
import * as React from 'react'
|
2 |
-
import { cva, type VariantProps } from 'class-variance-authority'
|
3 |
-
|
4 |
-
import { cn } from '@/lib/utils'
|
5 |
-
|
6 |
-
const badgeVariants = cva(
|
7 |
-
'inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2',
|
8 |
-
{
|
9 |
-
variants: {
|
10 |
-
variant: {
|
11 |
-
default:
|
12 |
-
'border-transparent bg-primary text-primary-foreground hover:bg-primary/80',
|
13 |
-
secondary:
|
14 |
-
'border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
15 |
-
destructive:
|
16 |
-
'border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80',
|
17 |
-
outline: 'text-foreground'
|
18 |
-
}
|
19 |
-
},
|
20 |
-
defaultVariants: {
|
21 |
-
variant: 'default'
|
22 |
-
}
|
23 |
-
}
|
24 |
-
)
|
25 |
-
|
26 |
-
export interface BadgeProps
|
27 |
-
extends React.HTMLAttributes<HTMLDivElement>,
|
28 |
-
VariantProps<typeof badgeVariants> {}
|
29 |
-
|
30 |
-
function Badge({ className, variant, ...props }: BadgeProps) {
|
31 |
-
return (
|
32 |
-
<div className={cn(badgeVariants({ variant }), className)} {...props} />
|
33 |
-
)
|
34 |
-
}
|
35 |
-
|
36 |
-
export { Badge, badgeVariants }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/7hao/bingo/src/pages/api/sydney.ts
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
import { NextApiRequest, NextApiResponse } from 'next'
|
2 |
-
import { WebSocket, debug } from '@/lib/isomorphic'
|
3 |
-
import { BingWebBot } from '@/lib/bots/bing'
|
4 |
-
import { websocketUtils } from '@/lib/bots/bing/utils'
|
5 |
-
import { WatchDog, createHeaders } from '@/lib/utils'
|
6 |
-
|
7 |
-
|
8 |
-
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
9 |
-
const conversationContext = req.body
|
10 |
-
const headers = createHeaders(req.cookies)
|
11 |
-
debug(headers)
|
12 |
-
res.setHeader('Content-Type', 'text/stream; charset=UTF-8')
|
13 |
-
|
14 |
-
const ws = new WebSocket('wss://sydney.bing.com/sydney/ChatHub', {
|
15 |
-
headers: {
|
16 |
-
...headers,
|
17 |
-
'accept-language': 'zh-CN,zh;q=0.9',
|
18 |
-
'cache-control': 'no-cache',
|
19 |
-
'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.0 OS/Win32',
|
20 |
-
pragma: 'no-cache',
|
21 |
-
}
|
22 |
-
})
|
23 |
-
|
24 |
-
const closeDog = new WatchDog()
|
25 |
-
const timeoutDog = new WatchDog()
|
26 |
-
ws.onmessage = (event) => {
|
27 |
-
timeoutDog.watch(() => {
|
28 |
-
ws.send(websocketUtils.packMessage({ type: 6 }))
|
29 |
-
}, 1500)
|
30 |
-
closeDog.watch(() => {
|
31 |
-
ws.close()
|
32 |
-
}, 10000)
|
33 |
-
res.write(event.data)
|
34 |
-
if (/\{"type":([367])\}/.test(String(event.data))) {
|
35 |
-
const type = parseInt(RegExp.$1, 10)
|
36 |
-
debug('connection type', type)
|
37 |
-
if (type === 3) {
|
38 |
-
ws.close()
|
39 |
-
} else {
|
40 |
-
ws.send(websocketUtils.packMessage({ type }))
|
41 |
-
}
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
ws.onclose = () => {
|
46 |
-
timeoutDog.reset()
|
47 |
-
closeDog.reset()
|
48 |
-
debug('connection close')
|
49 |
-
res.end()
|
50 |
-
}
|
51 |
-
|
52 |
-
await new Promise((resolve) => ws.onopen = resolve)
|
53 |
-
ws.send(websocketUtils.packMessage({ protocol: 'json', version: 1 }))
|
54 |
-
ws.send(websocketUtils.packMessage({ type: 6 }))
|
55 |
-
ws.send(websocketUtils.packMessage(BingWebBot.buildChatRequest(conversationContext!)))
|
56 |
-
req.socket.once('close', () => {
|
57 |
-
ws.close()
|
58 |
-
if (!res.closed) {
|
59 |
-
res.end()
|
60 |
-
}
|
61 |
-
})
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/A00001/bingothoo/src/components/ui/icons.tsx
DELETED
@@ -1,504 +0,0 @@
|
|
1 |
-
'use client'
|
2 |
-
|
3 |
-
import * as React from 'react'
|
4 |
-
|
5 |
-
import { cn } from '@/lib/utils'
|
6 |
-
|
7 |
-
function IconNextChat({
|
8 |
-
className,
|
9 |
-
inverted,
|
10 |
-
...props
|
11 |
-
}: React.ComponentProps<'svg'> & { inverted?: boolean }) {
|
12 |
-
const id = React.useId()
|
13 |
-
|
14 |
-
return (
|
15 |
-
<svg
|
16 |
-
viewBox="0 0 17 17"
|
17 |
-
fill="none"
|
18 |
-
xmlns="http://www.w3.org/2000/svg"
|
19 |
-
className={cn('h-4 w-4', className)}
|
20 |
-
{...props}
|
21 |
-
>
|
22 |
-
<defs>
|
23 |
-
<linearGradient
|
24 |
-
id={`gradient-${id}-1`}
|
25 |
-
x1="10.6889"
|
26 |
-
y1="10.3556"
|
27 |
-
x2="13.8445"
|
28 |
-
y2="14.2667"
|
29 |
-
gradientUnits="userSpaceOnUse"
|
30 |
-
>
|
31 |
-
<stop stopColor={inverted ? 'white' : 'black'} />
|
32 |
-
<stop
|
33 |
-
offset={1}
|
34 |
-
stopColor={inverted ? 'white' : 'black'}
|
35 |
-
stopOpacity={0}
|
36 |
-
/>
|
37 |
-
</linearGradient>
|
38 |
-
<linearGradient
|
39 |
-
id={`gradient-${id}-2`}
|
40 |
-
x1="11.7555"
|
41 |
-
y1="4.8"
|
42 |
-
x2="11.7376"
|
43 |
-
y2="9.50002"
|
44 |
-
gradientUnits="userSpaceOnUse"
|
45 |
-
>
|
46 |
-
<stop stopColor={inverted ? 'white' : 'black'} />
|
47 |
-
<stop
|
48 |
-
offset={1}
|
49 |
-
stopColor={inverted ? 'white' : 'black'}
|
50 |
-
stopOpacity={0}
|
51 |
-
/>
|
52 |
-
</linearGradient>
|
53 |
-
</defs>
|
54 |
-
<path
|
55 |
-
d="M1 16L2.58314 11.2506C1.83084 9.74642 1.63835 8.02363 2.04013 6.39052C2.4419 4.75741 3.41171 3.32057 4.776 2.33712C6.1403 1.35367 7.81003 0.887808 9.4864 1.02289C11.1628 1.15798 12.7364 1.8852 13.9256 3.07442C15.1148 4.26363 15.842 5.83723 15.9771 7.5136C16.1122 9.18997 15.6463 10.8597 14.6629 12.224C13.6794 13.5883 12.2426 14.5581 10.6095 14.9599C8.97637 15.3616 7.25358 15.1692 5.74942 14.4169L1 16Z"
|
56 |
-
fill={inverted ? 'black' : 'white'}
|
57 |
-
stroke={inverted ? 'black' : 'white'}
|
58 |
-
strokeWidth={2}
|
59 |
-
strokeLinecap="round"
|
60 |
-
strokeLinejoin="round"
|
61 |
-
/>
|
62 |
-
<mask
|
63 |
-
id="mask0_91_2047"
|
64 |
-
style={{ maskType: 'alpha' }}
|
65 |
-
maskUnits="userSpaceOnUse"
|
66 |
-
x={1}
|
67 |
-
y={0}
|
68 |
-
width={16}
|
69 |
-
height={16}
|
70 |
-
>
|
71 |
-
<circle cx={9} cy={8} r={8} fill={inverted ? 'black' : 'white'} />
|
72 |
-
</mask>
|
73 |
-
<g mask="url(#mask0_91_2047)">
|
74 |
-
<circle cx={9} cy={8} r={8} fill={inverted ? 'black' : 'white'} />
|
75 |
-
<path
|
76 |
-
d="M14.2896 14.0018L7.146 4.8H5.80005V11.1973H6.87681V6.16743L13.4444 14.6529C13.7407 14.4545 14.0231 14.2369 14.2896 14.0018Z"
|
77 |
-
fill={`url(#gradient-${id}-1)`}
|
78 |
-
/>
|
79 |
-
<rect
|
80 |
-
x="11.2222"
|
81 |
-
y="4.8"
|
82 |
-
width="1.06667"
|
83 |
-
height="6.4"
|
84 |
-
fill={`url(#gradient-${id}-2)`}
|
85 |
-
/>
|
86 |
-
</g>
|
87 |
-
</svg>
|
88 |
-
)
|
89 |
-
}
|
90 |
-
|
91 |
-
function IconOpenAI({ className, ...props }: React.ComponentProps<'svg'>) {
|
92 |
-
return (
|
93 |
-
<svg
|
94 |
-
fill="currentColor"
|
95 |
-
viewBox="0 0 24 24"
|
96 |
-
role="img"
|
97 |
-
xmlns="http://www.w3.org/2000/svg"
|
98 |
-
className={cn('h-4 w-4', className)}
|
99 |
-
{...props}
|
100 |
-
>
|
101 |
-
<title>OpenAI icon</title>
|
102 |
-
<path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" />
|
103 |
-
</svg>
|
104 |
-
)
|
105 |
-
}
|
106 |
-
|
107 |
-
function IconGitHub({ className, ...props }: React.ComponentProps<'svg'>) {
|
108 |
-
return (
|
109 |
-
<svg
|
110 |
-
role="img"
|
111 |
-
viewBox="0 0 24 24"
|
112 |
-
xmlns="http://www.w3.org/2000/svg"
|
113 |
-
fill="currentColor"
|
114 |
-
className={cn('h-4 w-4', className)}
|
115 |
-
{...props}
|
116 |
-
>
|
117 |
-
<title>GitHub</title>
|
118 |
-
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
|
119 |
-
</svg>
|
120 |
-
)
|
121 |
-
}
|
122 |
-
|
123 |
-
function IconSeparator({ className, ...props }: React.ComponentProps<'svg'>) {
|
124 |
-
return (
|
125 |
-
<svg
|
126 |
-
fill="none"
|
127 |
-
shapeRendering="geometricPrecision"
|
128 |
-
stroke="currentColor"
|
129 |
-
strokeLinecap="round"
|
130 |
-
strokeLinejoin="round"
|
131 |
-
strokeWidth="1"
|
132 |
-
viewBox="0 0 24 24"
|
133 |
-
aria-hidden="true"
|
134 |
-
className={cn('h-4 w-4', className)}
|
135 |
-
{...props}
|
136 |
-
>
|
137 |
-
<path d="M16.88 3.549L7.12 20.451"></path>
|
138 |
-
</svg>
|
139 |
-
)
|
140 |
-
}
|
141 |
-
|
142 |
-
function IconArrowDown({ className, ...props }: React.ComponentProps<'svg'>) {
|
143 |
-
return (
|
144 |
-
<svg
|
145 |
-
xmlns="http://www.w3.org/2000/svg"
|
146 |
-
viewBox="0 0 256 256"
|
147 |
-
fill="currentColor"
|
148 |
-
className={cn('h-4 w-4', className)}
|
149 |
-
{...props}
|
150 |
-
>
|
151 |
-
<path d="m205.66 149.66-72 72a8 8 0 0 1-11.32 0l-72-72a8 8 0 0 1 11.32-11.32L120 196.69V40a8 8 0 0 1 16 0v156.69l58.34-58.35a8 8 0 0 1 11.32 11.32Z" />
|
152 |
-
</svg>
|
153 |
-
)
|
154 |
-
}
|
155 |
-
|
156 |
-
function IconArrowRight({ className, ...props }: React.ComponentProps<'svg'>) {
|
157 |
-
return (
|
158 |
-
<svg
|
159 |
-
xmlns="http://www.w3.org/2000/svg"
|
160 |
-
viewBox="0 0 256 256"
|
161 |
-
fill="currentColor"
|
162 |
-
className={cn('h-4 w-4', className)}
|
163 |
-
{...props}
|
164 |
-
>
|
165 |
-
<path d="m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z" />
|
166 |
-
</svg>
|
167 |
-
)
|
168 |
-
}
|
169 |
-
|
170 |
-
function IconUser({ className, ...props }: React.ComponentProps<'svg'>) {
|
171 |
-
return (
|
172 |
-
<svg
|
173 |
-
xmlns="http://www.w3.org/2000/svg"
|
174 |
-
viewBox="0 0 256 256"
|
175 |
-
fill="currentColor"
|
176 |
-
className={cn('h-4 w-4', className)}
|
177 |
-
{...props}
|
178 |
-
>
|
179 |
-
<path d="M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z" />
|
180 |
-
</svg>
|
181 |
-
)
|
182 |
-
}
|
183 |
-
|
184 |
-
function IconPlus({ className, ...props }: React.ComponentProps<'svg'>) {
|
185 |
-
return (
|
186 |
-
<svg
|
187 |
-
xmlns="http://www.w3.org/2000/svg"
|
188 |
-
viewBox="0 0 256 256"
|
189 |
-
fill="currentColor"
|
190 |
-
className={cn('h-4 w-4', className)}
|
191 |
-
{...props}
|
192 |
-
>
|
193 |
-
<path d="M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z" />
|
194 |
-
</svg>
|
195 |
-
)
|
196 |
-
}
|
197 |
-
|
198 |
-
function IconArrowElbow({ className, ...props }: React.ComponentProps<'svg'>) {
|
199 |
-
return (
|
200 |
-
<svg
|
201 |
-
xmlns="http://www.w3.org/2000/svg"
|
202 |
-
viewBox="0 0 256 256"
|
203 |
-
fill="currentColor"
|
204 |
-
className={cn('h-4 w-4', className)}
|
205 |
-
{...props}
|
206 |
-
>
|
207 |
-
<path d="M200 32v144a8 8 0 0 1-8 8H67.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L67.31 168H184V32a8 8 0 0 1 16 0Z" />
|
208 |
-
</svg>
|
209 |
-
)
|
210 |
-
}
|
211 |
-
|
212 |
-
function IconSpinner({ className, ...props }: React.ComponentProps<'svg'>) {
|
213 |
-
return (
|
214 |
-
<svg
|
215 |
-
xmlns="http://www.w3.org/2000/svg"
|
216 |
-
viewBox="0 0 256 256"
|
217 |
-
fill="currentColor"
|
218 |
-
className={cn('h-4 w-4 animate-spin', className)}
|
219 |
-
{...props}
|
220 |
-
>
|
221 |
-
<path d="M232 128a104 104 0 0 1-208 0c0-41 23.81-78.36 60.66-95.27a8 8 0 0 1 6.68 14.54C60.15 61.59 40 93.27 40 128a88 88 0 0 0 176 0c0-34.73-20.15-66.41-51.34-80.73a8 8 0 0 1 6.68-14.54C208.19 49.64 232 87 232 128Z" />
|
222 |
-
</svg>
|
223 |
-
)
|
224 |
-
}
|
225 |
-
|
226 |
-
function IconMessage({ className, ...props }: React.ComponentProps<'svg'>) {
|
227 |
-
return (
|
228 |
-
<svg
|
229 |
-
xmlns="http://www.w3.org/2000/svg"
|
230 |
-
viewBox="0 0 256 256"
|
231 |
-
fill="currentColor"
|
232 |
-
className={cn('h-4 w-4', className)}
|
233 |
-
{...props}
|
234 |
-
>
|
235 |
-
<path d="M216 48H40a16 16 0 0 0-16 16v160a15.84 15.84 0 0 0 9.25 14.5A16.05 16.05 0 0 0 40 240a15.89 15.89 0 0 0 10.25-3.78.69.69 0 0 0 .13-.11L82.5 208H216a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16ZM40 224Zm176-32H82.5a16 16 0 0 0-10.3 3.75l-.12.11L40 224V64h176Z" />
|
236 |
-
</svg>
|
237 |
-
)
|
238 |
-
}
|
239 |
-
|
240 |
-
function IconTrash({ className, ...props }: React.ComponentProps<'svg'>) {
|
241 |
-
return (
|
242 |
-
<svg
|
243 |
-
xmlns="http://www.w3.org/2000/svg"
|
244 |
-
viewBox="0 0 256 256"
|
245 |
-
fill="currentColor"
|
246 |
-
className={cn('h-4 w-4', className)}
|
247 |
-
{...props}
|
248 |
-
>
|
249 |
-
<path d="M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z" />
|
250 |
-
</svg>
|
251 |
-
)
|
252 |
-
}
|
253 |
-
|
254 |
-
function IconMore({ className, ...props }: React.ComponentProps<'svg'>) {
|
255 |
-
return (
|
256 |
-
<svg
|
257 |
-
viewBox="0 0 24 24"
|
258 |
-
xmlns="http://www.w3.org/2000/svg"
|
259 |
-
fill="currentColor"
|
260 |
-
className={cn('h-4 w-4', className)}
|
261 |
-
{...props}
|
262 |
-
>
|
263 |
-
<path d="M7.75 12C7.75 12.9665 6.9665 13.75 6 13.75C5.0335 13.75 4.25 12.9665 4.25 12C4.25 11.0335 5.0335 10.25 6 10.25C6.9665 10.25 7.75 11.0335 7.75 12ZM13.75 12C13.75 12.9665 12.9665 13.75 12 13.75C11.0335 13.75 10.25 12.9665 10.25 12C10.25 11.0335 11.0335 10.25 12 10.25C12.9665 10.25 13.75 11.0335 13.75 12ZM18 13.75C18.9665 13.75 19.75 12.9665 19.75 12C19.75 11.0335 18.9665 10.25 18 10.25C17.0335 10.25 16.25 11.0335 16.25 12C16.25 12.9665 17.0335 13.75 18 13.75Z"></path>
|
264 |
-
</svg>
|
265 |
-
)
|
266 |
-
}
|
267 |
-
|
268 |
-
function IconRefresh({ className, ...props }: React.ComponentProps<'svg'>) {
|
269 |
-
return (
|
270 |
-
<svg
|
271 |
-
xmlns="http://www.w3.org/2000/svg"
|
272 |
-
viewBox="0 0 256 256"
|
273 |
-
fill="currentColor"
|
274 |
-
className={cn('h-4 w-4', className)}
|
275 |
-
{...props}
|
276 |
-
>
|
277 |
-
<path d="M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 183.35 93 208 128 208c36 0 58.14-21.46 58.36-21.68a8 8 0 0 1 11.31.05ZM216 40a8 8 0 0 0-8 8v23.85C192.53 54.4 165.39 32 128 32c-42.82 0-68.58 25.27-69.66 26.34a8 8 0 0 0 11.3 11.34C69.86 69.46 92 48 128 48c35 0 60.24 24.65 72.56 40H168a8 8 0 0 0 0 16h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8Z" />
|
278 |
-
</svg>
|
279 |
-
)
|
280 |
-
}
|
281 |
-
|
282 |
-
function IconStop({ className, ...props }: React.ComponentProps<'svg'>) {
|
283 |
-
return (
|
284 |
-
<svg
|
285 |
-
xmlns="http://www.w3.org/2000/svg"
|
286 |
-
viewBox="0 0 256 256"
|
287 |
-
fill="currentColor"
|
288 |
-
className={cn('h-4 w-4', className)}
|
289 |
-
{...props}
|
290 |
-
>
|
291 |
-
<path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm24-120h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8Zm-8 48h-32v-32h32Z" />
|
292 |
-
</svg>
|
293 |
-
)
|
294 |
-
}
|
295 |
-
|
296 |
-
function IconSidebar({ className, ...props }: React.ComponentProps<'svg'>) {
|
297 |
-
return (
|
298 |
-
<svg
|
299 |
-
xmlns="http://www.w3.org/2000/svg"
|
300 |
-
viewBox="0 0 256 256"
|
301 |
-
fill="currentColor"
|
302 |
-
className={cn('h-4 w-4', className)}
|
303 |
-
{...props}
|
304 |
-
>
|
305 |
-
<path d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16ZM40 56h40v144H40Zm176 144H96V56h120v144Z" />
|
306 |
-
</svg>
|
307 |
-
)
|
308 |
-
}
|
309 |
-
|
310 |
-
function IconMoon({ className, ...props }: React.ComponentProps<'svg'>) {
|
311 |
-
return (
|
312 |
-
<svg
|
313 |
-
xmlns="http://www.w3.org/2000/svg"
|
314 |
-
viewBox="0 0 256 256"
|
315 |
-
fill="currentColor"
|
316 |
-
className={cn('h-4 w-4', className)}
|
317 |
-
{...props}
|
318 |
-
>
|
319 |
-
<path d="M233.54 142.23a8 8 0 0 0-8-2 88.08 88.08 0 0 1-109.8-109.8 8 8 0 0 0-10-10 104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88 104.84 104.84 0 0 0 37-52.91 8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104 106 106 0 0 0 14.92-1.06 89 89 0 0 1-26.02 31.4Z" />
|
320 |
-
</svg>
|
321 |
-
)
|
322 |
-
}
|
323 |
-
|
324 |
-
function IconSun({ className, ...props }: React.ComponentProps<'svg'>) {
|
325 |
-
return (
|
326 |
-
<svg
|
327 |
-
xmlns="http://www.w3.org/2000/svg"
|
328 |
-
viewBox="0 0 256 256"
|
329 |
-
fill="currentColor"
|
330 |
-
className={cn('h-4 w-4', className)}
|
331 |
-
{...props}
|
332 |
-
>
|
333 |
-
<path d="M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48 48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z" />
|
334 |
-
</svg>
|
335 |
-
)
|
336 |
-
}
|
337 |
-
|
338 |
-
function IconCopy({ className, ...props }: React.ComponentProps<'svg'>) {
|
339 |
-
return (
|
340 |
-
<svg
|
341 |
-
xmlns="http://www.w3.org/2000/svg"
|
342 |
-
viewBox="0 0 256 256"
|
343 |
-
fill="currentColor"
|
344 |
-
className={cn('h-4 w-4', className)}
|
345 |
-
{...props}
|
346 |
-
>
|
347 |
-
<path d="M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z" />
|
348 |
-
</svg>
|
349 |
-
)
|
350 |
-
}
|
351 |
-
|
352 |
-
function IconCheck({ className, ...props }: React.ComponentProps<'svg'>) {
|
353 |
-
return (
|
354 |
-
<svg
|
355 |
-
xmlns="http://www.w3.org/2000/svg"
|
356 |
-
viewBox="0 0 256 256"
|
357 |
-
fill="currentColor"
|
358 |
-
className={cn('h-4 w-4', className)}
|
359 |
-
{...props}
|
360 |
-
>
|
361 |
-
<path d="m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z" />
|
362 |
-
</svg>
|
363 |
-
)
|
364 |
-
}
|
365 |
-
|
366 |
-
function IconDownload({ className, ...props }: React.ComponentProps<'svg'>) {
|
367 |
-
return (
|
368 |
-
<svg
|
369 |
-
xmlns="http://www.w3.org/2000/svg"
|
370 |
-
viewBox="0 0 256 256"
|
371 |
-
fill="currentColor"
|
372 |
-
className={cn('h-4 w-4', className)}
|
373 |
-
{...props}
|
374 |
-
>
|
375 |
-
<path d="M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z" />
|
376 |
-
</svg>
|
377 |
-
)
|
378 |
-
}
|
379 |
-
|
380 |
-
function IconClose({ className, ...props }: React.ComponentProps<'svg'>) {
|
381 |
-
return (
|
382 |
-
<svg
|
383 |
-
xmlns="http://www.w3.org/2000/svg"
|
384 |
-
viewBox="0 0 256 256"
|
385 |
-
fill="currentColor"
|
386 |
-
className={cn('h-4 w-4', className)}
|
387 |
-
{...props}
|
388 |
-
>
|
389 |
-
<path d="M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z" />
|
390 |
-
</svg>
|
391 |
-
)
|
392 |
-
}
|
393 |
-
|
394 |
-
function IconEdit({ className, ...props }: React.ComponentProps<'svg'>) {
|
395 |
-
return (
|
396 |
-
<svg
|
397 |
-
xmlns="http://www.w3.org/2000/svg"
|
398 |
-
fill="none"
|
399 |
-
viewBox="0 0 24 24"
|
400 |
-
strokeWidth={1.5}
|
401 |
-
stroke="currentColor"
|
402 |
-
className={cn('h-4 w-4', className)}
|
403 |
-
{...props}
|
404 |
-
>
|
405 |
-
<path
|
406 |
-
strokeLinecap="round"
|
407 |
-
strokeLinejoin="round"
|
408 |
-
d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"
|
409 |
-
/>
|
410 |
-
</svg>
|
411 |
-
)
|
412 |
-
}
|
413 |
-
|
414 |
-
function IconShare({ className, ...props }: React.ComponentProps<'svg'>) {
|
415 |
-
return (
|
416 |
-
<svg
|
417 |
-
xmlns="http://www.w3.org/2000/svg"
|
418 |
-
fill="currentColor"
|
419 |
-
className={cn('h-4 w-4', className)}
|
420 |
-
viewBox="0 0 256 256"
|
421 |
-
{...props}
|
422 |
-
>
|
423 |
-
<path d="m237.66 106.35-80-80A8 8 0 0 0 144 32v40.35c-25.94 2.22-54.59 14.92-78.16 34.91-28.38 24.08-46.05 55.11-49.76 87.37a12 12 0 0 0 20.68 9.58c11-11.71 50.14-48.74 107.24-52V192a8 8 0 0 0 13.66 5.65l80-80a8 8 0 0 0 0-11.3ZM160 172.69V144a8 8 0 0 0-8-8c-28.08 0-55.43 7.33-81.29 21.8a196.17 196.17 0 0 0-36.57 26.52c5.8-23.84 20.42-46.51 42.05-64.86C99.41 99.77 127.75 88 152 88a8 8 0 0 0 8-8V51.32L220.69 112Z" />
|
424 |
-
</svg>
|
425 |
-
)
|
426 |
-
}
|
427 |
-
|
428 |
-
function IconUsers({ className, ...props }: React.ComponentProps<'svg'>) {
|
429 |
-
return (
|
430 |
-
<svg
|
431 |
-
xmlns="http://www.w3.org/2000/svg"
|
432 |
-
fill="currentColor"
|
433 |
-
className={cn('h-4 w-4', className)}
|
434 |
-
viewBox="0 0 256 256"
|
435 |
-
{...props}
|
436 |
-
>
|
437 |
-
<path d="M117.25 157.92a60 60 0 1 0-66.5 0 95.83 95.83 0 0 0-47.22 37.71 8 8 0 1 0 13.4 8.74 80 80 0 0 1 134.14 0 8 8 0 0 0 13.4-8.74 95.83 95.83 0 0 0-47.22-37.71ZM40 108a44 44 0 1 1 44 44 44.05 44.05 0 0 1-44-44Zm210.14 98.7a8 8 0 0 1-11.07-2.33A79.83 79.83 0 0 0 172 168a8 8 0 0 1 0-16 44 44 0 1 0-16.34-84.87 8 8 0 1 1-5.94-14.85 60 60 0 0 1 55.53 105.64 95.83 95.83 0 0 1 47.22 37.71 8 8 0 0 1-2.33 11.07Z" />
|
438 |
-
</svg>
|
439 |
-
)
|
440 |
-
}
|
441 |
-
|
442 |
-
function IconExternalLink({
|
443 |
-
className,
|
444 |
-
...props
|
445 |
-
}: React.ComponentProps<'svg'>) {
|
446 |
-
return (
|
447 |
-
<svg
|
448 |
-
xmlns="http://www.w3.org/2000/svg"
|
449 |
-
fill="currentColor"
|
450 |
-
className={cn('h-4 w-4', className)}
|
451 |
-
viewBox="0 0 256 256"
|
452 |
-
{...props}
|
453 |
-
>
|
454 |
-
<path d="M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z" />
|
455 |
-
</svg>
|
456 |
-
)
|
457 |
-
}
|
458 |
-
|
459 |
-
function IconChevronUpDown({
|
460 |
-
className,
|
461 |
-
...props
|
462 |
-
}: React.ComponentProps<'svg'>) {
|
463 |
-
return (
|
464 |
-
<svg
|
465 |
-
xmlns="http://www.w3.org/2000/svg"
|
466 |
-
fill="currentColor"
|
467 |
-
className={cn('h-4 w-4', className)}
|
468 |
-
viewBox="0 0 256 256"
|
469 |
-
{...props}
|
470 |
-
>
|
471 |
-
<path d="M181.66 170.34a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32 0l-48-48a8 8 0 0 1 11.32-11.32L128 212.69l42.34-42.35a8 8 0 0 1 11.32 0Zm-96-84.68L128 43.31l42.34 42.35a8 8 0 0 0 11.32-11.32l-48-48a8 8 0 0 0-11.32 0l-48 48a8 8 0 0 0 11.32 11.32Z" />
|
472 |
-
</svg>
|
473 |
-
)
|
474 |
-
}
|
475 |
-
|
476 |
-
export {
|
477 |
-
IconEdit,
|
478 |
-
IconNextChat,
|
479 |
-
IconOpenAI,
|
480 |
-
IconGitHub,
|
481 |
-
IconSeparator,
|
482 |
-
IconArrowDown,
|
483 |
-
IconArrowRight,
|
484 |
-
IconUser,
|
485 |
-
IconPlus,
|
486 |
-
IconArrowElbow,
|
487 |
-
IconSpinner,
|
488 |
-
IconMessage,
|
489 |
-
IconTrash,
|
490 |
-
IconMore,
|
491 |
-
IconRefresh,
|
492 |
-
IconStop,
|
493 |
-
IconSidebar,
|
494 |
-
IconMoon,
|
495 |
-
IconSun,
|
496 |
-
IconCopy,
|
497 |
-
IconCheck,
|
498 |
-
IconDownload,
|
499 |
-
IconClose,
|
500 |
-
IconShare,
|
501 |
-
IconUsers,
|
502 |
-
IconExternalLink,
|
503 |
-
IconChevronUpDown
|
504 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/Make_An_Audio_inpaint/ldm/modules/losses_audio/vggishish/train_melception.py
DELETED
@@ -1,241 +0,0 @@
|
|
1 |
-
import random
|
2 |
-
|
3 |
-
import numpy as np
|
4 |
-
import torch
|
5 |
-
import torchvision
|
6 |
-
from omegaconf import OmegaConf
|
7 |
-
from torch.utils.data.dataloader import DataLoader
|
8 |
-
from torchvision.models.inception import BasicConv2d, Inception3
|
9 |
-
from tqdm import tqdm
|
10 |
-
|
11 |
-
from dataset import VGGSound
|
12 |
-
from logger import LoggerWithTBoard
|
13 |
-
from loss import WeightedCrossEntropy
|
14 |
-
from metrics import metrics
|
15 |
-
from transforms import Crop, StandardNormalizeAudio, ToTensor
|
16 |
-
|
17 |
-
|
18 |
-
# TODO: refactor ./evaluation/feature_extractors/melception.py to handle this class as well.
|
19 |
-
# So far couldn't do it because of the difference in outputs
|
20 |
-
class Melception(Inception3):
|
21 |
-
|
22 |
-
def __init__(self, num_classes, **kwargs):
|
23 |
-
# inception = Melception(num_classes=309)
|
24 |
-
super().__init__(num_classes=num_classes, **kwargs)
|
25 |
-
# the same as https://github.com/pytorch/vision/blob/5339e63148/torchvision/models/inception.py#L95
|
26 |
-
# but for 1-channel input instead of RGB.
|
27 |
-
self.Conv2d_1a_3x3 = BasicConv2d(1, 32, kernel_size=3, stride=2)
|
28 |
-
# also the 'hight' of the mel spec is 80 (vs 299 in RGB) we remove all max pool from Inception
|
29 |
-
self.maxpool1 = torch.nn.Identity()
|
30 |
-
self.maxpool2 = torch.nn.Identity()
|
31 |
-
|
32 |
-
def forward(self, x):
|
33 |
-
x = x.unsqueeze(1)
|
34 |
-
return super().forward(x)
|
35 |
-
|
36 |
-
def train_inception_scorer(cfg):
|
37 |
-
logger = LoggerWithTBoard(cfg)
|
38 |
-
|
39 |
-
random.seed(cfg.seed)
|
40 |
-
np.random.seed(cfg.seed)
|
41 |
-
torch.manual_seed(cfg.seed)
|
42 |
-
torch.cuda.manual_seed_all(cfg.seed)
|
43 |
-
# makes iterations faster (in this case 30%) if your inputs are of a fixed size
|
44 |
-
# https://discuss.pytorch.org/t/what-does-torch-backends-cudnn-benchmark-do/5936/3
|
45 |
-
torch.backends.cudnn.benchmark = True
|
46 |
-
|
47 |
-
meta_path = './data/vggsound.csv'
|
48 |
-
train_ids_path = './data/vggsound_train.txt'
|
49 |
-
cache_path = './data/'
|
50 |
-
splits_path = cache_path
|
51 |
-
|
52 |
-
transforms = [
|
53 |
-
StandardNormalizeAudio(cfg.mels_path, train_ids_path, cache_path),
|
54 |
-
]
|
55 |
-
if cfg.cropped_size not in [None, 'None', 'none']:
|
56 |
-
logger.print_logger.info(f'Using cropping {cfg.cropped_size}')
|
57 |
-
transforms.append(Crop(cfg.cropped_size))
|
58 |
-
transforms.append(ToTensor())
|
59 |
-
transforms = torchvision.transforms.transforms.Compose(transforms)
|
60 |
-
|
61 |
-
datasets = {
|
62 |
-
'train': VGGSound('train', cfg.mels_path, transforms, splits_path, meta_path),
|
63 |
-
'valid': VGGSound('valid', cfg.mels_path, transforms, splits_path, meta_path),
|
64 |
-
'test': VGGSound('test', cfg.mels_path, transforms, splits_path, meta_path),
|
65 |
-
}
|
66 |
-
|
67 |
-
loaders = {
|
68 |
-
'train': DataLoader(datasets['train'], batch_size=cfg.batch_size, shuffle=True, drop_last=True,
|
69 |
-
num_workers=cfg.num_workers, pin_memory=True),
|
70 |
-
'valid': DataLoader(datasets['valid'], batch_size=cfg.batch_size,
|
71 |
-
num_workers=cfg.num_workers, pin_memory=True),
|
72 |
-
'test': DataLoader(datasets['test'], batch_size=cfg.batch_size,
|
73 |
-
num_workers=cfg.num_workers, pin_memory=True),
|
74 |
-
}
|
75 |
-
|
76 |
-
device = torch.device(cfg.device if torch.cuda.is_available() else 'cpu')
|
77 |
-
|
78 |
-
model = Melception(num_classes=len(datasets['train'].target2label))
|
79 |
-
model = model.to(device)
|
80 |
-
param_num = logger.log_param_num(model)
|
81 |
-
|
82 |
-
if cfg.optimizer == 'adam':
|
83 |
-
optimizer = torch.optim.Adam(
|
84 |
-
model.parameters(), lr=cfg.learning_rate, betas=cfg.betas, weight_decay=cfg.weight_decay)
|
85 |
-
elif cfg.optimizer == 'sgd':
|
86 |
-
optimizer = torch.optim.SGD(
|
87 |
-
model.parameters(), lr=cfg.learning_rate, momentum=cfg.momentum, weight_decay=cfg.weight_decay)
|
88 |
-
else:
|
89 |
-
raise NotImplementedError
|
90 |
-
|
91 |
-
if cfg.cls_weights_in_loss:
|
92 |
-
weights = 1 / datasets['train'].class_counts
|
93 |
-
else:
|
94 |
-
weights = torch.ones(len(datasets['train'].target2label))
|
95 |
-
criterion = WeightedCrossEntropy(weights.to(device))
|
96 |
-
|
97 |
-
# loop over the train and validation multiple times (typical PT boilerplate)
|
98 |
-
no_change_epochs = 0
|
99 |
-
best_valid_loss = float('inf')
|
100 |
-
early_stop_triggered = False
|
101 |
-
|
102 |
-
for epoch in range(cfg.num_epochs):
|
103 |
-
|
104 |
-
for phase in ['train', 'valid']:
|
105 |
-
if phase == 'train':
|
106 |
-
model.train()
|
107 |
-
else:
|
108 |
-
model.eval()
|
109 |
-
|
110 |
-
running_loss = 0
|
111 |
-
preds_from_each_batch = []
|
112 |
-
targets_from_each_batch = []
|
113 |
-
|
114 |
-
prog_bar = tqdm(loaders[phase], f'{phase} ({epoch})', ncols=0)
|
115 |
-
for i, batch in enumerate(prog_bar):
|
116 |
-
inputs = batch['input'].to(device)
|
117 |
-
targets = batch['target'].to(device)
|
118 |
-
|
119 |
-
# zero the parameter gradients
|
120 |
-
optimizer.zero_grad()
|
121 |
-
|
122 |
-
# forward + backward + optimize
|
123 |
-
with torch.set_grad_enabled(phase == 'train'):
|
124 |
-
# inception v3
|
125 |
-
if phase == 'train':
|
126 |
-
outputs, aux_outputs = model(inputs)
|
127 |
-
loss1 = criterion(outputs, targets)
|
128 |
-
loss2 = criterion(aux_outputs, targets)
|
129 |
-
loss = loss1 + 0.4*loss2
|
130 |
-
loss = criterion(outputs, targets, to_weight=True)
|
131 |
-
else:
|
132 |
-
outputs = model(inputs)
|
133 |
-
loss = criterion(outputs, targets, to_weight=False)
|
134 |
-
|
135 |
-
if phase == 'train':
|
136 |
-
loss.backward()
|
137 |
-
optimizer.step()
|
138 |
-
|
139 |
-
# loss
|
140 |
-
running_loss += loss.item()
|
141 |
-
|
142 |
-
# for metrics calculation later on
|
143 |
-
preds_from_each_batch += [outputs.detach().cpu()]
|
144 |
-
targets_from_each_batch += [targets.cpu()]
|
145 |
-
|
146 |
-
# iter logging
|
147 |
-
if i % 50 == 0:
|
148 |
-
logger.log_iter_loss(loss.item(), epoch*len(loaders[phase])+i, phase)
|
149 |
-
# tracks loss in the tqdm progress bar
|
150 |
-
prog_bar.set_postfix(loss=loss.item())
|
151 |
-
|
152 |
-
# logging loss
|
153 |
-
epoch_loss = running_loss / len(loaders[phase])
|
154 |
-
logger.log_epoch_loss(epoch_loss, epoch, phase)
|
155 |
-
|
156 |
-
# logging metrics
|
157 |
-
preds_from_each_batch = torch.cat(preds_from_each_batch)
|
158 |
-
targets_from_each_batch = torch.cat(targets_from_each_batch)
|
159 |
-
metrics_dict = metrics(targets_from_each_batch, preds_from_each_batch)
|
160 |
-
logger.log_epoch_metrics(metrics_dict, epoch, phase)
|
161 |
-
|
162 |
-
# Early stopping
|
163 |
-
if phase == 'valid':
|
164 |
-
if epoch_loss < best_valid_loss:
|
165 |
-
no_change_epochs = 0
|
166 |
-
best_valid_loss = epoch_loss
|
167 |
-
logger.log_best_model(model, epoch_loss, epoch, optimizer, metrics_dict)
|
168 |
-
else:
|
169 |
-
no_change_epochs += 1
|
170 |
-
logger.print_logger.info(
|
171 |
-
f'Valid loss hasnt changed for {no_change_epochs} patience: {cfg.patience}'
|
172 |
-
)
|
173 |
-
if no_change_epochs >= cfg.patience:
|
174 |
-
early_stop_triggered = True
|
175 |
-
|
176 |
-
if early_stop_triggered:
|
177 |
-
logger.print_logger.info(f'Training is early stopped @ {epoch}')
|
178 |
-
break
|
179 |
-
|
180 |
-
logger.print_logger.info('Finished Training')
|
181 |
-
|
182 |
-
# loading the best model
|
183 |
-
ckpt = torch.load(logger.best_model_path)
|
184 |
-
model.load_state_dict(ckpt['model'])
|
185 |
-
logger.print_logger.info(f'Loading the best model from {logger.best_model_path}')
|
186 |
-
logger.print_logger.info((f'The model was trained for {ckpt["epoch"]} epochs. Loss: {ckpt["loss"]:.4f}'))
|
187 |
-
|
188 |
-
# Testing the model
|
189 |
-
model.eval()
|
190 |
-
running_loss = 0
|
191 |
-
preds_from_each_batch = []
|
192 |
-
targets_from_each_batch = []
|
193 |
-
|
194 |
-
for i, batch in enumerate(loaders['test']):
|
195 |
-
inputs = batch['input'].to(device)
|
196 |
-
targets = batch['target'].to(device)
|
197 |
-
|
198 |
-
# zero the parameter gradients
|
199 |
-
optimizer.zero_grad()
|
200 |
-
|
201 |
-
# forward + backward + optimize
|
202 |
-
with torch.set_grad_enabled(False):
|
203 |
-
outputs = model(inputs)
|
204 |
-
loss = criterion(outputs, targets, to_weight=False)
|
205 |
-
|
206 |
-
# loss
|
207 |
-
running_loss += loss.item()
|
208 |
-
|
209 |
-
# for metrics calculation later on
|
210 |
-
preds_from_each_batch += [outputs.detach().cpu()]
|
211 |
-
targets_from_each_batch += [targets.cpu()]
|
212 |
-
|
213 |
-
# logging metrics
|
214 |
-
preds_from_each_batch = torch.cat(preds_from_each_batch)
|
215 |
-
targets_from_each_batch = torch.cat(targets_from_each_batch)
|
216 |
-
test_metrics_dict = metrics(targets_from_each_batch, preds_from_each_batch)
|
217 |
-
test_metrics_dict['avg_loss'] = running_loss / len(loaders['test'])
|
218 |
-
test_metrics_dict['param_num'] = param_num
|
219 |
-
# TODO: I have no idea why tboard doesn't keep metrics (hparams) when
|
220 |
-
# I run this experiment from cli: `python train_melception.py config=./configs/vggish.yaml`
|
221 |
-
# while when I run it in vscode debugger the metrics are logger (wtf)
|
222 |
-
logger.log_test_metrics(test_metrics_dict, dict(cfg), ckpt['epoch'])
|
223 |
-
|
224 |
-
logger.print_logger.info('Finished the experiment')
|
225 |
-
|
226 |
-
|
227 |
-
if __name__ == '__main__':
|
228 |
-
# input = torch.rand(16, 1, 80, 848)
|
229 |
-
# output, aux = inception(input)
|
230 |
-
# print(output.shape, aux.shape)
|
231 |
-
# Expected input size: (3, 299, 299) in RGB -> (1, 80, 848) in Mel Spec
|
232 |
-
# train_inception_scorer()
|
233 |
-
|
234 |
-
cfg_cli = OmegaConf.from_cli()
|
235 |
-
cfg_yml = OmegaConf.load(cfg_cli.config)
|
236 |
-
# the latter arguments are prioritized
|
237 |
-
cfg = OmegaConf.merge(cfg_yml, cfg_cli)
|
238 |
-
OmegaConf.set_readonly(cfg, True)
|
239 |
-
print(OmegaConf.to_yaml(cfg))
|
240 |
-
|
241 |
-
train_inception_scorer(cfg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_1_ClothesKeyPoint/work_dirs_1-x/td_hm_res50_4xb64-210e_deepfashion2_sling_dress_256x192/__init__.py
DELETED
File without changes
|
spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_2_ProfileRecogition/mmpretrain/configs/hr_4xb32_1024e_4channel.py
DELETED
@@ -1,115 +0,0 @@
|
|
1 |
-
_base_ = [ # 此配置文件将继承所有 `_base_` 中的配置
|
2 |
-
'../configs/_base_/schedules/custom_schedule.py', # 训练策略配置
|
3 |
-
'../configs/_base_/default_runtime.py' # 默认运行设置
|
4 |
-
]
|
5 |
-
|
6 |
-
default_hooks = dict(
|
7 |
-
# print log every 50 iterations.
|
8 |
-
logger=dict(type='LoggerHook', interval=10),
|
9 |
-
# save checkpoint per 8 epochs.
|
10 |
-
checkpoint=dict(save_best='auto', interval=16)
|
11 |
-
)
|
12 |
-
|
13 |
-
visualizer = dict(
|
14 |
-
vis_backends=[dict(type='LocalVisBackend'),
|
15 |
-
dict(type='WandbVisBackend')])
|
16 |
-
|
17 |
-
dataset_type = 'CustomDataset'
|
18 |
-
|
19 |
-
# config of pipline
|
20 |
-
train_pipeline = [
|
21 |
-
dict(type='LoadImageFromFile', imdecode_backend='pillow', color_type='unchanged'), # 读取图像
|
22 |
-
dict(type='RandomResizedCrop', scale=224), # 随机放缩裁剪
|
23 |
-
dict(type='RandomFlip', prob=0.5, direction='horizontal'), # 随机水平翻转
|
24 |
-
dict(type='PackInputs'), # 准备图像以及标签
|
25 |
-
]
|
26 |
-
|
27 |
-
test_pipeline = [
|
28 |
-
dict(type='LoadImageFromFile', imdecode_backend='pillow', color_type='unchanged'), # 读取图像
|
29 |
-
dict(type='ResizeEdge', scale=256, edge='short'), # 缩放短边尺寸至 256px
|
30 |
-
dict(type='CenterCrop', crop_size=224), # 中心裁剪
|
31 |
-
dict(type='PackInputs'), # 准备图像以及标签
|
32 |
-
]
|
33 |
-
|
34 |
-
# config of dataloader
|
35 |
-
train_dataloader = dict(
|
36 |
-
batch_size=32, # 每张 GPU 的 batchsize
|
37 |
-
num_workers=5, # 每个 GPU 的线程数
|
38 |
-
dataset=dict( # 训练数据集
|
39 |
-
type=dataset_type,
|
40 |
-
data_root='../2_preprocess_data_3000',
|
41 |
-
with_label=True,
|
42 |
-
ann_file='',
|
43 |
-
data_prefix='train',
|
44 |
-
pipeline=train_pipeline),
|
45 |
-
sampler=dict(type='DefaultSampler', shuffle=True), # 默认采样器
|
46 |
-
persistent_workers=True, # 是否保持进程,可以缩短每个 epoch 的准备时间
|
47 |
-
)
|
48 |
-
|
49 |
-
# 构造验证集 dataloader
|
50 |
-
val_dataloader = dict(
|
51 |
-
batch_size=32,
|
52 |
-
num_workers=5,
|
53 |
-
dataset=dict(
|
54 |
-
type=dataset_type,
|
55 |
-
data_root='../2_preprocess_data_3000',
|
56 |
-
with_label=True,
|
57 |
-
ann_file='',
|
58 |
-
data_prefix='val',
|
59 |
-
pipeline=test_pipeline),
|
60 |
-
sampler=dict(type='DefaultSampler', shuffle=False),
|
61 |
-
persistent_workers=True,
|
62 |
-
)
|
63 |
-
|
64 |
-
# set evaluator of validation dataset. Here uses top1 and top3 accuracy
|
65 |
-
val_evaluator = dict(type='Accuracy', topk=(1, 3))
|
66 |
-
|
67 |
-
test_dataloader = val_dataloader
|
68 |
-
test_evaluator = val_evaluator
|
69 |
-
|
70 |
-
model = dict(
|
71 |
-
type='ImageClassifier', # 主模型类型(对于图像分类任务,使用 `ImageClassifier`)
|
72 |
-
backbone=dict(
|
73 |
-
type='HRNet', # 主干网络类型
|
74 |
-
arch='w32', # 主干网络架构
|
75 |
-
in_channels=4,
|
76 |
-
extra=dict(
|
77 |
-
stage1=dict(
|
78 |
-
num_modules=1,
|
79 |
-
num_branches=1,
|
80 |
-
block='BOTTLENECK',
|
81 |
-
num_blocks=(4, ),
|
82 |
-
num_channels=(64, )),
|
83 |
-
stage2=dict(
|
84 |
-
num_modules=1,
|
85 |
-
num_branches=2,
|
86 |
-
block='BASIC',
|
87 |
-
num_blocks=(4, 4),
|
88 |
-
num_channels=(32, 64)),
|
89 |
-
stage3=dict(
|
90 |
-
num_modules=4,
|
91 |
-
num_branches=3,
|
92 |
-
block='BASIC',
|
93 |
-
num_blocks=(4, 4, 4),
|
94 |
-
num_channels=(32, 64, 128)),
|
95 |
-
stage4=dict(
|
96 |
-
num_modules=3,
|
97 |
-
num_branches=4,
|
98 |
-
block='BASIC',
|
99 |
-
num_blocks=(4, 4, 4, 4),
|
100 |
-
num_channels=(32, 64, 128, 256))),
|
101 |
-
),
|
102 |
-
neck=dict(type='GlobalAveragePooling'), # 颈网络类型
|
103 |
-
head=dict(
|
104 |
-
type='LinearClsHead', # 分类颈网络类型
|
105 |
-
# 除了 `type` 之外的所有字段都来自 `LinearClsHead` 类的 __init__ 方法
|
106 |
-
# 可查阅 https://mmpretrain.readthedocs.io/zh_CN/latest/api/generated/mmpretrain.models.heads.LinearClsHead.html
|
107 |
-
num_classes=7, # 分类类别数
|
108 |
-
in_channels=256,
|
109 |
-
loss=dict(type='CrossEntropyLoss', loss_weight=1.0), # 损失函数配置信息
|
110 |
-
topk=(1, 3), # 评估指标,Top-k 准确率
|
111 |
-
))
|
112 |
-
|
113 |
-
optim_wrapper = dict(
|
114 |
-
accumulative_counts=8
|
115 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/deprecated/Lockchat.py
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import json
|
4 |
-
|
5 |
-
import requests
|
6 |
-
|
7 |
-
from ...typing import Any, CreateResult
|
8 |
-
from ..base_provider import BaseProvider
|
9 |
-
|
10 |
-
|
11 |
-
class Lockchat(BaseProvider):
|
12 |
-
url: str = "http://supertest.lockchat.app"
|
13 |
-
supports_stream = True
|
14 |
-
supports_gpt_35_turbo = True
|
15 |
-
supports_gpt_4 = True
|
16 |
-
|
17 |
-
@staticmethod
|
18 |
-
def create_completion(
|
19 |
-
model: str,
|
20 |
-
messages: list[dict[str, str]],
|
21 |
-
stream: bool, **kwargs: Any) -> CreateResult:
|
22 |
-
|
23 |
-
temperature = float(kwargs.get("temperature", 0.7))
|
24 |
-
payload = {
|
25 |
-
"temperature": temperature,
|
26 |
-
"messages" : messages,
|
27 |
-
"model" : model,
|
28 |
-
"stream" : True,
|
29 |
-
}
|
30 |
-
|
31 |
-
headers = {
|
32 |
-
"user-agent": "ChatX/39 CFNetwork/1408.0.4 Darwin/22.5.0",
|
33 |
-
}
|
34 |
-
response = requests.post("http://supertest.lockchat.app/v1/chat/completions",
|
35 |
-
json=payload, headers=headers, stream=True)
|
36 |
-
|
37 |
-
response.raise_for_status()
|
38 |
-
for token in response.iter_lines():
|
39 |
-
if b"The model: `gpt-4` does not exist" in token:
|
40 |
-
print("error, retrying...")
|
41 |
-
Lockchat.create_completion(
|
42 |
-
model = model,
|
43 |
-
messages = messages,
|
44 |
-
stream = stream,
|
45 |
-
temperature = temperature,
|
46 |
-
**kwargs)
|
47 |
-
|
48 |
-
if b"content" in token:
|
49 |
-
token = json.loads(token.decode("utf-8").split("data: ")[1])
|
50 |
-
token = token["choices"][0]["delta"].get("content")
|
51 |
-
if token:
|
52 |
-
yield (token)
|
53 |
-
|
54 |
-
@classmethod
|
55 |
-
@property
|
56 |
-
def params(cls):
|
57 |
-
params = [
|
58 |
-
("model", "str"),
|
59 |
-
("messages", "list[dict[str, str]]"),
|
60 |
-
("stream", "bool"),
|
61 |
-
("temperature", "float"),
|
62 |
-
]
|
63 |
-
param = ", ".join([": ".join(p) for p in params])
|
64 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/unfinished/PerplexityAi.py
DELETED
@@ -1,100 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import json
|
4 |
-
import time
|
5 |
-
import base64
|
6 |
-
from curl_cffi.requests import AsyncSession
|
7 |
-
|
8 |
-
from ..base_provider import AsyncProvider, format_prompt, get_cookies
|
9 |
-
|
10 |
-
|
11 |
-
class PerplexityAi(AsyncProvider):
|
12 |
-
url = "https://www.perplexity.ai"
|
13 |
-
supports_gpt_35_turbo = True
|
14 |
-
_sources = []
|
15 |
-
|
16 |
-
@classmethod
|
17 |
-
async def create_async(
|
18 |
-
cls,
|
19 |
-
model: str,
|
20 |
-
messages: list[dict[str, str]],
|
21 |
-
proxy: str = None,
|
22 |
-
**kwargs
|
23 |
-
) -> str:
|
24 |
-
url = cls.url + "/socket.io/?EIO=4&transport=polling"
|
25 |
-
headers = {
|
26 |
-
"Referer": f"{cls.url}/"
|
27 |
-
}
|
28 |
-
async with AsyncSession(headers=headers, proxies={"https": proxy}, impersonate="chrome107") as session:
|
29 |
-
url_session = "https://www.perplexity.ai/api/auth/session"
|
30 |
-
response = await session.get(url_session)
|
31 |
-
response.raise_for_status()
|
32 |
-
|
33 |
-
url_session = "https://www.perplexity.ai/api/auth/session"
|
34 |
-
response = await session.get(url_session)
|
35 |
-
response.raise_for_status()
|
36 |
-
|
37 |
-
response = await session.get(url, params={"t": timestamp()})
|
38 |
-
response.raise_for_status()
|
39 |
-
sid = json.loads(response.text[1:])["sid"]
|
40 |
-
|
41 |
-
response = await session.get(url, params={"t": timestamp(), "sid": sid})
|
42 |
-
response.raise_for_status()
|
43 |
-
|
44 |
-
data = '40{"jwt":"anonymous-ask-user"}'
|
45 |
-
response = await session.post(url, params={"t": timestamp(), "sid": sid}, data=data)
|
46 |
-
response.raise_for_status()
|
47 |
-
|
48 |
-
response = await session.get(url, params={"t": timestamp(), "sid": sid})
|
49 |
-
response.raise_for_status()
|
50 |
-
|
51 |
-
data = "424" + json.dumps([
|
52 |
-
"perplexity_ask",
|
53 |
-
format_prompt(messages),
|
54 |
-
{
|
55 |
-
"version":"2.1",
|
56 |
-
"source":"default",
|
57 |
-
"language":"en",
|
58 |
-
"timezone": time.tzname[0],
|
59 |
-
"search_focus":"internet",
|
60 |
-
"mode":"concise"
|
61 |
-
}
|
62 |
-
])
|
63 |
-
response = await session.post(url, params={"t": timestamp(), "sid": sid}, data=data)
|
64 |
-
response.raise_for_status()
|
65 |
-
|
66 |
-
while True:
|
67 |
-
response = await session.get(url, params={"t": timestamp(), "sid": sid})
|
68 |
-
response.raise_for_status()
|
69 |
-
for line in response.text.splitlines():
|
70 |
-
if line.startswith("434"):
|
71 |
-
result = json.loads(json.loads(line[3:])[0]["text"])
|
72 |
-
|
73 |
-
cls._sources = [{
|
74 |
-
"title": source["name"],
|
75 |
-
"url": source["url"],
|
76 |
-
"snippet": source["snippet"]
|
77 |
-
} for source in result["web_results"]]
|
78 |
-
|
79 |
-
return result["answer"]
|
80 |
-
|
81 |
-
@classmethod
|
82 |
-
def get_sources(cls):
|
83 |
-
return cls._sources
|
84 |
-
|
85 |
-
|
86 |
-
@classmethod
|
87 |
-
@property
|
88 |
-
def params(cls):
|
89 |
-
params = [
|
90 |
-
("model", "str"),
|
91 |
-
("messages", "list[dict[str, str]]"),
|
92 |
-
("stream", "bool"),
|
93 |
-
("proxy", "str"),
|
94 |
-
]
|
95 |
-
param = ", ".join([": ".join(p) for p in params])
|
96 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
97 |
-
|
98 |
-
|
99 |
-
def timestamp() -> str:
|
100 |
-
return base64.urlsafe_b64encode(int(time.time()-1407782612).to_bytes(4, 'big')).decode()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Adapter/T2I-Adapter/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/AkashKhamkar/QnA-generator/app.py
DELETED
@@ -1,188 +0,0 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
from youtube_transcript_api import YouTubeTranscriptApi
|
3 |
-
from transformers import AutoTokenizer, AutoModelWithLMHead
|
4 |
-
import torch
|
5 |
-
import nltk
|
6 |
-
import before_run
|
7 |
-
#nltk.download('wordnet')
|
8 |
-
#nltk.download('punkt')
|
9 |
-
#nltk.download('brown')
|
10 |
-
#nltk.download('stopwords')
|
11 |
-
from nltk.tokenize import sent_tokenize
|
12 |
-
from flashtext import KeywordProcessor
|
13 |
-
from nltk.corpus import stopwords
|
14 |
-
from urllib import response
|
15 |
-
import requests
|
16 |
-
import string
|
17 |
-
import traceback
|
18 |
-
import pke
|
19 |
-
|
20 |
-
link = "http://127.0.0.1:8000/question"
|
21 |
-
|
22 |
-
summary_tokenizer = AutoTokenizer.from_pretrained("t5-base")
|
23 |
-
summary_model = AutoModelWithLMHead.from_pretrained("t5-base")
|
24 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
-
summary_model = summary_model.to(device)
|
26 |
-
question_model = AutoModelWithLMHead.from_pretrained('ramsrigouthamg/t5_squad_v1')
|
27 |
-
question_tokenizer = AutoTokenizer.from_pretrained('ramsrigouthamg/t5_squad_v1')
|
28 |
-
question_model = question_model.to(device)
|
29 |
-
|
30 |
-
|
31 |
-
def query(url, payload):
|
32 |
-
return requests.post(url, json=payload)
|
33 |
-
|
34 |
-
def fetch_transcript(url):
|
35 |
-
vid = url.split("=")[1]
|
36 |
-
transcript = YouTubeTranscriptApi.get_transcript(vid)
|
37 |
-
result = ""
|
38 |
-
for i in transcript:
|
39 |
-
result += ' ' + i['text']
|
40 |
-
return result
|
41 |
-
|
42 |
-
def postprocesstext (content):
|
43 |
-
final=""
|
44 |
-
for sent in sent_tokenize(content):
|
45 |
-
sent = sent.capitalize()
|
46 |
-
final = final +" "+sent
|
47 |
-
return final
|
48 |
-
|
49 |
-
|
50 |
-
def summarizer(text,model,tokenizer):
|
51 |
-
text = text.strip().replace("\n"," ")
|
52 |
-
text = "summarize: "+text
|
53 |
-
# print (text)
|
54 |
-
max_len = 512
|
55 |
-
encoding = tokenizer.encode_plus(text,max_length=max_len, pad_to_max_length=False,truncation=True, return_tensors="pt").to(device)
|
56 |
-
|
57 |
-
input_ids, attention_mask = encoding["input_ids"], encoding["attention_mask"]
|
58 |
-
|
59 |
-
outs = model.generate(input_ids=input_ids,
|
60 |
-
attention_mask=attention_mask,
|
61 |
-
early_stopping=True,
|
62 |
-
num_beams=3,
|
63 |
-
num_return_sequences=1,
|
64 |
-
no_repeat_ngram_size=2,
|
65 |
-
min_length = 75,
|
66 |
-
max_length=300)
|
67 |
-
|
68 |
-
|
69 |
-
dec = [tokenizer.decode(ids,skip_special_tokens=True) for ids in outs]
|
70 |
-
summary = dec[0]
|
71 |
-
summary = postprocesstext(summary)
|
72 |
-
summary= summary.strip()
|
73 |
-
|
74 |
-
return summary
|
75 |
-
|
76 |
-
def get_nouns_multipartite(content):
|
77 |
-
out=[]
|
78 |
-
try:
|
79 |
-
extractor = pke.unsupervised.MultipartiteRank()
|
80 |
-
stoplist = list(string.punctuation)
|
81 |
-
stoplist += ['-lrb-', '-rrb-', '-lcb-', '-rcb-', '-lsb-', '-rsb-']
|
82 |
-
stoplist += stopwords.words('english')
|
83 |
-
extractor.load_document(input=content, stoplist=stoplist)
|
84 |
-
# not contain punctuation marks or stopwords as candidates.
|
85 |
-
pos = {'PROPN','NOUN'}
|
86 |
-
|
87 |
-
|
88 |
-
extractor.candidate_selection(pos=pos)
|
89 |
-
|
90 |
-
extractor.candidate_weighting(alpha=1.1,
|
91 |
-
threshold=0.75,
|
92 |
-
method='average')
|
93 |
-
keyphrases = extractor.get_n_best(n=15)
|
94 |
-
|
95 |
-
|
96 |
-
for val in keyphrases:
|
97 |
-
out.append(val[0])
|
98 |
-
except:
|
99 |
-
out = []
|
100 |
-
traceback.print_exc()
|
101 |
-
|
102 |
-
return out
|
103 |
-
|
104 |
-
def get_keywords(originaltext,summarytext,count):
|
105 |
-
keywords = get_nouns_multipartite(originaltext)
|
106 |
-
print ("keywords unsummarized: ",keywords)
|
107 |
-
keyword_processor = KeywordProcessor()
|
108 |
-
for keyword in keywords:
|
109 |
-
keyword_processor.add_keyword(keyword)
|
110 |
-
|
111 |
-
keywords_found = keyword_processor.extract_keywords(summarytext)
|
112 |
-
keywords_found = list(set(keywords_found))
|
113 |
-
print ("keywords_found in summarized: ",keywords_found)
|
114 |
-
|
115 |
-
important_keywords =[]
|
116 |
-
for keyword in keywords:
|
117 |
-
if keyword in keywords_found:
|
118 |
-
important_keywords.append(keyword)
|
119 |
-
|
120 |
-
return important_keywords[:int(count)]
|
121 |
-
|
122 |
-
def get_question(context,answer,model,tokenizer):
|
123 |
-
text = "context: {} answer: {}".format(context,answer)
|
124 |
-
encoding = tokenizer.encode_plus(text,max_length=384, pad_to_max_length=False,truncation=True, return_tensors="pt").to(device)
|
125 |
-
input_ids, attention_mask = encoding["input_ids"], encoding["attention_mask"]
|
126 |
-
|
127 |
-
outs = model.generate(input_ids=input_ids,
|
128 |
-
attention_mask=attention_mask,
|
129 |
-
early_stopping=True,
|
130 |
-
num_beams=5,
|
131 |
-
num_return_sequences=1,
|
132 |
-
no_repeat_ngram_size=2,
|
133 |
-
max_length=72)
|
134 |
-
|
135 |
-
|
136 |
-
dec = [tokenizer.decode(ids,skip_special_tokens=True) for ids in outs]
|
137 |
-
|
138 |
-
|
139 |
-
Question = dec[0].replace("question:","")
|
140 |
-
Question= Question.strip()
|
141 |
-
return Question
|
142 |
-
|
143 |
-
def all(url,count):
|
144 |
-
transcript = fetch_transcript(url)
|
145 |
-
summarized_text = summarizer(transcript, summary_model, summary_tokenizer)
|
146 |
-
keywords = get_keywords(transcript,summarized_text,count)
|
147 |
-
qna = []
|
148 |
-
for answer in keywords:
|
149 |
-
qna.append(get_question(summarized_text,answer,question_model,question_tokenizer)+' : '+answer)
|
150 |
-
|
151 |
-
return qna
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
def main():
|
156 |
-
|
157 |
-
if 'submitted' not in st.session_state:
|
158 |
-
st.session_state.submitted = False
|
159 |
-
|
160 |
-
if 'opt' not in st.session_state:
|
161 |
-
st.session_state.opt = []
|
162 |
-
|
163 |
-
def callback():
|
164 |
-
st.session_state.submitted = True
|
165 |
-
|
166 |
-
st.title('QnA pair Generator')
|
167 |
-
url = st.text_input('Enter the Video Link')
|
168 |
-
count = st.text_input('Enter the number of questions you want to generate')
|
169 |
-
|
170 |
-
if (st.button("Submit URL", on_click=callback) and url and count) :
|
171 |
-
st.write("Thanks for submission !")
|
172 |
-
opt = all(url, count)
|
173 |
-
st.session_state.opt = opt
|
174 |
-
|
175 |
-
if st.session_state.submitted and st.session_state.opt:
|
176 |
-
option = st.multiselect('Select the question you want to add to database ', st.session_state.opt)
|
177 |
-
if option:
|
178 |
-
if st.button("Add question"):
|
179 |
-
for i in range(len(option)):
|
180 |
-
files = {
|
181 |
-
"question": option[i].split(":")[0],
|
182 |
-
"answer": option[i].split(":")[1]
|
183 |
-
}
|
184 |
-
response = query(link, files)
|
185 |
-
st.write(response.text)
|
186 |
-
|
187 |
-
|
188 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Aki004/herta-so-vits/app.py
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import edge_tts
|
3 |
-
import asyncio
|
4 |
-
import librosa
|
5 |
-
import soundfile
|
6 |
-
import io
|
7 |
-
import argparse
|
8 |
-
import numpy as np
|
9 |
-
from inference.infer_tool import Svc
|
10 |
-
|
11 |
-
def get_or_create_eventloop():
|
12 |
-
try:
|
13 |
-
return asyncio.get_event_loop()
|
14 |
-
except RuntimeError as ex:
|
15 |
-
if "There is no current event loop in thread" in str(ex):
|
16 |
-
loop = asyncio.new_event_loop()
|
17 |
-
asyncio.set_event_loop(loop)
|
18 |
-
return asyncio.get_event_loop()
|
19 |
-
|
20 |
-
def tts_get_voices_list():
|
21 |
-
voices = []
|
22 |
-
tts_voice_list = asyncio.get_event_loop().run_until_complete(edge_tts.list_voices())
|
23 |
-
for item in tts_voice_list:
|
24 |
-
voices.append(item['ShortName'])
|
25 |
-
|
26 |
-
return voices
|
27 |
-
|
28 |
-
def infer(txt, tts_voice, input_audio, predict_f0, audio_mode):
|
29 |
-
if audio_mode:
|
30 |
-
if input_audio is None:
|
31 |
-
return 'Please upload your audio file'
|
32 |
-
|
33 |
-
sampling_rate, audio = input_audio
|
34 |
-
duration = audio.shape[0] / sampling_rate
|
35 |
-
|
36 |
-
if duration > 30:
|
37 |
-
return 'The audio file is too long, Please upload audio file that less than 30 seconds'
|
38 |
-
|
39 |
-
audio = (audio / np.iinfo(audio.dtype).max).astype(np.float32)
|
40 |
-
if len(audio.shape) > 1:
|
41 |
-
audio = librosa.to_mono(audio.transpose(1, 0))
|
42 |
-
if sampling_rate != 16000:
|
43 |
-
audio = librosa.resample(audio, orig_sr=sampling_rate, target_sr=16000)
|
44 |
-
|
45 |
-
raw_path = io.BytesIO()
|
46 |
-
soundfile.write(raw_path, audio, 16000, format="wav")
|
47 |
-
raw_path.seek(0)
|
48 |
-
model = Svc(fr"Herta-Svc/G_10000.pth", f"Herta-Svc/config.json", device = 'cpu')
|
49 |
-
out_audio, out_sr = model.infer('speaker0', 0, raw_path, auto_predict_f0 = predict_f0,)
|
50 |
-
return (44100, out_audio.cpu().numpy())
|
51 |
-
|
52 |
-
tts = asyncio.run(edge_tts.Communicate(txt, tts_voice).save('audio.mp3'))
|
53 |
-
audio, sr = librosa.load('audio.mp3', sr=16000, mono=True)
|
54 |
-
raw_path = io.BytesIO()
|
55 |
-
soundfile.write(raw_path, audio, 16000, format="wav")
|
56 |
-
raw_path.seek(0)
|
57 |
-
model = Svc(fr"Herta-Svc/G_10000.pth", f"Herta-Svc/config.json", device = 'cpu')
|
58 |
-
out_audio, out_sr = model.infer('speaker0', 0, raw_path, auto_predict_f0 = True,)
|
59 |
-
return (44100, out_audio.cpu().numpy())
|
60 |
-
|
61 |
-
def change_to_audio_mode(audio_mode):
|
62 |
-
if audio_mode:
|
63 |
-
return gr.Audio.update(visible = True), gr.Textbox.update(visible= False), gr.Dropdown.update(visible = False), gr.Checkbox.update(value = True)
|
64 |
-
else:
|
65 |
-
return gr.Audio.update(visible = False), gr.Textbox.update(visible= True), gr.Dropdown.update(visible = True), gr.Checkbox.update(value = False)
|
66 |
-
|
67 |
-
if __name__ == '__main__':
|
68 |
-
parser = argparse.ArgumentParser()
|
69 |
-
parser.add_argument('--device', type=str, default='cpu')
|
70 |
-
parser.add_argument('--api', action="store_true", default=False)
|
71 |
-
parser.add_argument("--share", action="store_true", default=False, help="share gradio app")
|
72 |
-
args = parser.parse_args()
|
73 |
-
loop = asyncio.new_event_loop()
|
74 |
-
asyncio.set_event_loop(loop)
|
75 |
-
with gr.Blocks() as app:
|
76 |
-
with gr.Tabs():
|
77 |
-
with gr.TabItem('Herta'):
|
78 |
-
title = gr.Label('Herta Sovits Model')
|
79 |
-
cover = gr.Markdown('<div align="center">'
|
80 |
-
f'<img style="width:auto;height:300px;" src="file/Herta-Svc/herta.png">'
|
81 |
-
'</div>')
|
82 |
-
tts_text = gr.Textbox(label="TTS text (100 words limitation)")
|
83 |
-
audio_input = gr.Audio(label = 'Please upload audio file that less than 30 seconds', visible = False)
|
84 |
-
tts_voice = gr.Dropdown(choices= tts_get_voices_list())
|
85 |
-
predict_f0 = gr.Checkbox(label = 'Auto predict F0', value = False)
|
86 |
-
audio_mode = gr.Checkbox(label = 'Upload audio instead', value = False)
|
87 |
-
audio_output = gr.Audio(label="Output Audio")
|
88 |
-
btn_submit = gr.Button("Generate")
|
89 |
-
|
90 |
-
btn_submit.click(infer, [tts_text, tts_voice, audio_input, predict_f0, audio_mode], [audio_output])
|
91 |
-
audio_mode.change(change_to_audio_mode, audio_mode, [audio_input, tts_text, tts_voice])
|
92 |
-
|
93 |
-
app.queue(concurrency_count=1, api_open=args.api).launch(share=args.share)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlekseyKorshuk/instagram-filter-removal/configs/default.py
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
from yacs.config import CfgNode as CN
|
2 |
-
|
3 |
-
_C = CN()
|
4 |
-
|
5 |
-
_C.SYSTEM = CN()
|
6 |
-
_C.SYSTEM.NUM_GPU = 2
|
7 |
-
_C.SYSTEM.NUM_WORKERS = 4
|
8 |
-
|
9 |
-
_C.WANDB = CN()
|
10 |
-
_C.WANDB.PROJECT_NAME = "instagram-filter-removal"
|
11 |
-
_C.WANDB.ENTITY = "vvgl-ozu"
|
12 |
-
_C.WANDB.RUN = 12
|
13 |
-
_C.WANDB.LOG_DIR = ""
|
14 |
-
_C.WANDB.NUM_ROW = 0
|
15 |
-
|
16 |
-
_C.TRAIN = CN()
|
17 |
-
_C.TRAIN.NUM_TOTAL_STEP = 120000
|
18 |
-
_C.TRAIN.START_STEP = 0
|
19 |
-
_C.TRAIN.BATCH_SIZE = 8
|
20 |
-
_C.TRAIN.SHUFFLE = True
|
21 |
-
_C.TRAIN.LOG_INTERVAL = 100
|
22 |
-
_C.TRAIN.SAVE_INTERVAL = 5000
|
23 |
-
_C.TRAIN.SAVE_DIR = "./weights"
|
24 |
-
_C.TRAIN.RESUME = True
|
25 |
-
_C.TRAIN.VISUALIZE_INTERVAL = 100
|
26 |
-
_C.TRAIN.TUNE = False
|
27 |
-
|
28 |
-
_C.MODEL = CN()
|
29 |
-
_C.MODEL.NAME = "ifr-no-aux"
|
30 |
-
_C.MODEL.IS_TRAIN = True
|
31 |
-
_C.MODEL.NUM_CLASS = 17
|
32 |
-
_C.MODEL.CKPT = ""
|
33 |
-
|
34 |
-
_C.MODEL.IFR = CN()
|
35 |
-
_C.MODEL.IFR.NAME = "InstaFilterRemovalNetwork"
|
36 |
-
_C.MODEL.IFR.NUM_CHANNELS = 32
|
37 |
-
_C.MODEL.IFR.DESTYLER_CHANNELS = 32
|
38 |
-
_C.MODEL.IFR.SOLVER = CN()
|
39 |
-
_C.MODEL.IFR.SOLVER.LR = 2e-4
|
40 |
-
_C.MODEL.IFR.SOLVER.BETAS = (0.5, 0.9)
|
41 |
-
_C.MODEL.IFR.SOLVER.SCHEDULER = []
|
42 |
-
_C.MODEL.IFR.SOLVER.DECAY_RATE = 0.
|
43 |
-
|
44 |
-
_C.MODEL.D = CN()
|
45 |
-
_C.MODEL.D.NAME = "1-ChOutputDiscriminator"
|
46 |
-
_C.MODEL.D.NUM_CHANNELS = 32
|
47 |
-
_C.MODEL.D.NUM_CRITICS = 5
|
48 |
-
_C.MODEL.D.SOLVER = CN()
|
49 |
-
_C.MODEL.D.SOLVER.LR = 1e-3
|
50 |
-
_C.MODEL.D.SOLVER.BETAS = (0.5, 0.9)
|
51 |
-
_C.MODEL.D.SOLVER.SCHEDULER = []
|
52 |
-
_C.MODEL.D.SOLVER.DECAY_RATE = 0.5
|
53 |
-
|
54 |
-
_C.OPTIM = CN()
|
55 |
-
_C.OPTIM.GP = 10
|
56 |
-
_C.OPTIM.MASK = 1
|
57 |
-
_C.OPTIM.RECON = 1.4
|
58 |
-
_C.OPTIM.SEMANTIC = 1e-4
|
59 |
-
_C.OPTIM.TEXTURE = 1e-3
|
60 |
-
_C.OPTIM.ADVERSARIAL = 1e-3
|
61 |
-
_C.OPTIM.AUX = 0.5
|
62 |
-
|
63 |
-
_C.DATASET = CN()
|
64 |
-
_C.DATASET.NAME = "IFFI" # "IFFI" # "DIV2K?" #
|
65 |
-
_C.DATASET.ROOT = "../../Datasets/IFFI-dataset/train" # "../../Datasets/IFFI-dataset" # "/media/birdortyedi/e5042b8f-ca5e-4a22-ac68-7e69ff648bc4/IFFI-dataset"
|
66 |
-
_C.DATASET.TEST_ROOT = "../../Datasets/IFFI-dataset"
|
67 |
-
_C.DATASET.SIZE = 256
|
68 |
-
_C.DATASET.CROP_SIZE = 512
|
69 |
-
_C.DATASET.MEAN = [0.5, 0.5, 0.5]
|
70 |
-
_C.DATASET.STD = [0.5, 0.5, 0.5]
|
71 |
-
|
72 |
-
_C.TEST = CN()
|
73 |
-
_C.TEST.OUTPUT_DIR = "./outputs"
|
74 |
-
_C.TEST.ABLATION = False
|
75 |
-
_C.TEST.WEIGHTS = ""
|
76 |
-
_C.TEST.BATCH_SIZE = 64
|
77 |
-
_C.TEST.IMG_ID = 52
|
78 |
-
|
79 |
-
|
80 |
-
def get_cfg_defaults():
|
81 |
-
"""Get a yacs CfgNode object with default values for my_project."""
|
82 |
-
# Return a clone so that the defaults will not be altered
|
83 |
-
# This is for the "local variable" use pattern
|
84 |
-
return _C.clone()
|
85 |
-
|
86 |
-
|
87 |
-
# provide a way to import the defaults as a global singleton:
|
88 |
-
cfg = _C # users can `from config import cfg`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/guided_anchoring/ga_retinanet_x101_64x4d_fpn_1x_coco.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
_base_ = './ga_retinanet_r50_fpn_1x_coco.py'
|
2 |
-
model = dict(
|
3 |
-
pretrained='open-mmlab://resnext101_64x4d',
|
4 |
-
backbone=dict(
|
5 |
-
type='ResNeXt',
|
6 |
-
depth=101,
|
7 |
-
groups=64,
|
8 |
-
base_width=4,
|
9 |
-
num_stages=4,
|
10 |
-
out_indices=(0, 1, 2, 3),
|
11 |
-
frozen_stages=1,
|
12 |
-
norm_cfg=dict(type='BN', requires_grad=True),
|
13 |
-
style='pytorch'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/mmdet/core/evaluation/recall.py
DELETED
@@ -1,189 +0,0 @@
|
|
1 |
-
from collections.abc import Sequence
|
2 |
-
|
3 |
-
import numpy as np
|
4 |
-
from mmcv.utils import print_log
|
5 |
-
from terminaltables import AsciiTable
|
6 |
-
|
7 |
-
from .bbox_overlaps import bbox_overlaps
|
8 |
-
|
9 |
-
|
10 |
-
def _recalls(all_ious, proposal_nums, thrs):
|
11 |
-
|
12 |
-
img_num = all_ious.shape[0]
|
13 |
-
total_gt_num = sum([ious.shape[0] for ious in all_ious])
|
14 |
-
|
15 |
-
_ious = np.zeros((proposal_nums.size, total_gt_num), dtype=np.float32)
|
16 |
-
for k, proposal_num in enumerate(proposal_nums):
|
17 |
-
tmp_ious = np.zeros(0)
|
18 |
-
for i in range(img_num):
|
19 |
-
ious = all_ious[i][:, :proposal_num].copy()
|
20 |
-
gt_ious = np.zeros((ious.shape[0]))
|
21 |
-
if ious.size == 0:
|
22 |
-
tmp_ious = np.hstack((tmp_ious, gt_ious))
|
23 |
-
continue
|
24 |
-
for j in range(ious.shape[0]):
|
25 |
-
gt_max_overlaps = ious.argmax(axis=1)
|
26 |
-
max_ious = ious[np.arange(0, ious.shape[0]), gt_max_overlaps]
|
27 |
-
gt_idx = max_ious.argmax()
|
28 |
-
gt_ious[j] = max_ious[gt_idx]
|
29 |
-
box_idx = gt_max_overlaps[gt_idx]
|
30 |
-
ious[gt_idx, :] = -1
|
31 |
-
ious[:, box_idx] = -1
|
32 |
-
tmp_ious = np.hstack((tmp_ious, gt_ious))
|
33 |
-
_ious[k, :] = tmp_ious
|
34 |
-
|
35 |
-
_ious = np.fliplr(np.sort(_ious, axis=1))
|
36 |
-
recalls = np.zeros((proposal_nums.size, thrs.size))
|
37 |
-
for i, thr in enumerate(thrs):
|
38 |
-
recalls[:, i] = (_ious >= thr).sum(axis=1) / float(total_gt_num)
|
39 |
-
|
40 |
-
return recalls
|
41 |
-
|
42 |
-
|
43 |
-
def set_recall_param(proposal_nums, iou_thrs):
|
44 |
-
"""Check proposal_nums and iou_thrs and set correct format."""
|
45 |
-
if isinstance(proposal_nums, Sequence):
|
46 |
-
_proposal_nums = np.array(proposal_nums)
|
47 |
-
elif isinstance(proposal_nums, int):
|
48 |
-
_proposal_nums = np.array([proposal_nums])
|
49 |
-
else:
|
50 |
-
_proposal_nums = proposal_nums
|
51 |
-
|
52 |
-
if iou_thrs is None:
|
53 |
-
_iou_thrs = np.array([0.5])
|
54 |
-
elif isinstance(iou_thrs, Sequence):
|
55 |
-
_iou_thrs = np.array(iou_thrs)
|
56 |
-
elif isinstance(iou_thrs, float):
|
57 |
-
_iou_thrs = np.array([iou_thrs])
|
58 |
-
else:
|
59 |
-
_iou_thrs = iou_thrs
|
60 |
-
|
61 |
-
return _proposal_nums, _iou_thrs
|
62 |
-
|
63 |
-
|
64 |
-
def eval_recalls(gts,
|
65 |
-
proposals,
|
66 |
-
proposal_nums=None,
|
67 |
-
iou_thrs=0.5,
|
68 |
-
logger=None):
|
69 |
-
"""Calculate recalls.
|
70 |
-
|
71 |
-
Args:
|
72 |
-
gts (list[ndarray]): a list of arrays of shape (n, 4)
|
73 |
-
proposals (list[ndarray]): a list of arrays of shape (k, 4) or (k, 5)
|
74 |
-
proposal_nums (int | Sequence[int]): Top N proposals to be evaluated.
|
75 |
-
iou_thrs (float | Sequence[float]): IoU thresholds. Default: 0.5.
|
76 |
-
logger (logging.Logger | str | None): The way to print the recall
|
77 |
-
summary. See `mmcv.utils.print_log()` for details. Default: None.
|
78 |
-
|
79 |
-
Returns:
|
80 |
-
ndarray: recalls of different ious and proposal nums
|
81 |
-
"""
|
82 |
-
|
83 |
-
img_num = len(gts)
|
84 |
-
assert img_num == len(proposals)
|
85 |
-
|
86 |
-
proposal_nums, iou_thrs = set_recall_param(proposal_nums, iou_thrs)
|
87 |
-
|
88 |
-
all_ious = []
|
89 |
-
for i in range(img_num):
|
90 |
-
if proposals[i].ndim == 2 and proposals[i].shape[1] == 5:
|
91 |
-
scores = proposals[i][:, 4]
|
92 |
-
sort_idx = np.argsort(scores)[::-1]
|
93 |
-
img_proposal = proposals[i][sort_idx, :]
|
94 |
-
else:
|
95 |
-
img_proposal = proposals[i]
|
96 |
-
prop_num = min(img_proposal.shape[0], proposal_nums[-1])
|
97 |
-
if gts[i] is None or gts[i].shape[0] == 0:
|
98 |
-
ious = np.zeros((0, img_proposal.shape[0]), dtype=np.float32)
|
99 |
-
else:
|
100 |
-
ious = bbox_overlaps(gts[i], img_proposal[:prop_num, :4])
|
101 |
-
all_ious.append(ious)
|
102 |
-
all_ious = np.array(all_ious)
|
103 |
-
recalls = _recalls(all_ious, proposal_nums, iou_thrs)
|
104 |
-
|
105 |
-
print_recall_summary(recalls, proposal_nums, iou_thrs, logger=logger)
|
106 |
-
return recalls
|
107 |
-
|
108 |
-
|
109 |
-
def print_recall_summary(recalls,
|
110 |
-
proposal_nums,
|
111 |
-
iou_thrs,
|
112 |
-
row_idxs=None,
|
113 |
-
col_idxs=None,
|
114 |
-
logger=None):
|
115 |
-
"""Print recalls in a table.
|
116 |
-
|
117 |
-
Args:
|
118 |
-
recalls (ndarray): calculated from `bbox_recalls`
|
119 |
-
proposal_nums (ndarray or list): top N proposals
|
120 |
-
iou_thrs (ndarray or list): iou thresholds
|
121 |
-
row_idxs (ndarray): which rows(proposal nums) to print
|
122 |
-
col_idxs (ndarray): which cols(iou thresholds) to print
|
123 |
-
logger (logging.Logger | str | None): The way to print the recall
|
124 |
-
summary. See `mmcv.utils.print_log()` for details. Default: None.
|
125 |
-
"""
|
126 |
-
proposal_nums = np.array(proposal_nums, dtype=np.int32)
|
127 |
-
iou_thrs = np.array(iou_thrs)
|
128 |
-
if row_idxs is None:
|
129 |
-
row_idxs = np.arange(proposal_nums.size)
|
130 |
-
if col_idxs is None:
|
131 |
-
col_idxs = np.arange(iou_thrs.size)
|
132 |
-
row_header = [''] + iou_thrs[col_idxs].tolist()
|
133 |
-
table_data = [row_header]
|
134 |
-
for i, num in enumerate(proposal_nums[row_idxs]):
|
135 |
-
row = [f'{val:.3f}' for val in recalls[row_idxs[i], col_idxs].tolist()]
|
136 |
-
row.insert(0, num)
|
137 |
-
table_data.append(row)
|
138 |
-
table = AsciiTable(table_data)
|
139 |
-
print_log('\n' + table.table, logger=logger)
|
140 |
-
|
141 |
-
|
142 |
-
def plot_num_recall(recalls, proposal_nums):
|
143 |
-
"""Plot Proposal_num-Recalls curve.
|
144 |
-
|
145 |
-
Args:
|
146 |
-
recalls(ndarray or list): shape (k,)
|
147 |
-
proposal_nums(ndarray or list): same shape as `recalls`
|
148 |
-
"""
|
149 |
-
if isinstance(proposal_nums, np.ndarray):
|
150 |
-
_proposal_nums = proposal_nums.tolist()
|
151 |
-
else:
|
152 |
-
_proposal_nums = proposal_nums
|
153 |
-
if isinstance(recalls, np.ndarray):
|
154 |
-
_recalls = recalls.tolist()
|
155 |
-
else:
|
156 |
-
_recalls = recalls
|
157 |
-
|
158 |
-
import matplotlib.pyplot as plt
|
159 |
-
f = plt.figure()
|
160 |
-
plt.plot([0] + _proposal_nums, [0] + _recalls)
|
161 |
-
plt.xlabel('Proposal num')
|
162 |
-
plt.ylabel('Recall')
|
163 |
-
plt.axis([0, proposal_nums.max(), 0, 1])
|
164 |
-
f.show()
|
165 |
-
|
166 |
-
|
167 |
-
def plot_iou_recall(recalls, iou_thrs):
|
168 |
-
"""Plot IoU-Recalls curve.
|
169 |
-
|
170 |
-
Args:
|
171 |
-
recalls(ndarray or list): shape (k,)
|
172 |
-
iou_thrs(ndarray or list): same shape as `recalls`
|
173 |
-
"""
|
174 |
-
if isinstance(iou_thrs, np.ndarray):
|
175 |
-
_iou_thrs = iou_thrs.tolist()
|
176 |
-
else:
|
177 |
-
_iou_thrs = iou_thrs
|
178 |
-
if isinstance(recalls, np.ndarray):
|
179 |
-
_recalls = recalls.tolist()
|
180 |
-
else:
|
181 |
-
_recalls = recalls
|
182 |
-
|
183 |
-
import matplotlib.pyplot as plt
|
184 |
-
f = plt.figure()
|
185 |
-
plt.plot(_iou_thrs + [1.0], _recalls + [0.])
|
186 |
-
plt.xlabel('IoU')
|
187 |
-
plt.ylabel('Recall')
|
188 |
-
plt.axis([iou_thrs.min(), 1, 0, 1])
|
189 |
-
f.show()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-123/ImageNet-Editing/object_removal/TFill/scripts/test.sh
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
python test.py \
|
2 |
-
--name celeba \
|
3 |
-
--img_file ./examples/imagenet/img/ \
|
4 |
-
--mask_file ./examples/imagenet/mask/ \
|
5 |
-
--results_dir ./results \
|
6 |
-
--model tc \
|
7 |
-
--coarse_or_refine refine \
|
8 |
-
--gpu_id 0 \
|
9 |
-
--no_shuffle \
|
10 |
-
--batch_size 1 \
|
11 |
-
--preprocess scale_shortside \
|
12 |
-
--mask_type 3 \
|
13 |
-
--load_size 512 \
|
14 |
-
--attn_G \
|
15 |
-
--add_noise
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/configs/_base_/datasets/cityscapes.py
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
# dataset settings
|
2 |
-
dataset_type = 'CityscapesDataset'
|
3 |
-
data_root = 'data/cityscapes/'
|
4 |
-
img_norm_cfg = dict(
|
5 |
-
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
|
6 |
-
crop_size = (512, 1024)
|
7 |
-
train_pipeline = [
|
8 |
-
dict(type='LoadImageFromFile'),
|
9 |
-
dict(type='LoadAnnotations'),
|
10 |
-
dict(type='Resize', img_scale=(2048, 1024), ratio_range=(0.5, 2.0)),
|
11 |
-
dict(type='RandomCrop', crop_size=crop_size, cat_max_ratio=0.75),
|
12 |
-
dict(type='RandomFlip', prob=0.5),
|
13 |
-
dict(type='PhotoMetricDistortion'),
|
14 |
-
dict(type='Normalize', **img_norm_cfg),
|
15 |
-
dict(type='Pad', size=crop_size, pad_val=0, seg_pad_val=255),
|
16 |
-
dict(type='DefaultFormatBundle'),
|
17 |
-
dict(type='Collect', keys=['img', 'gt_semantic_seg']),
|
18 |
-
]
|
19 |
-
test_pipeline = [
|
20 |
-
dict(type='LoadImageFromFile'),
|
21 |
-
dict(
|
22 |
-
type='MultiScaleFlipAug',
|
23 |
-
img_scale=(2048, 1024),
|
24 |
-
# img_ratios=[0.5, 0.75, 1.0, 1.25, 1.5, 1.75],
|
25 |
-
flip=False,
|
26 |
-
transforms=[
|
27 |
-
dict(type='Resize', keep_ratio=True),
|
28 |
-
dict(type='RandomFlip'),
|
29 |
-
dict(type='Normalize', **img_norm_cfg),
|
30 |
-
dict(type='ImageToTensor', keys=['img']),
|
31 |
-
dict(type='Collect', keys=['img']),
|
32 |
-
])
|
33 |
-
]
|
34 |
-
data = dict(
|
35 |
-
samples_per_gpu=2,
|
36 |
-
workers_per_gpu=2,
|
37 |
-
train=dict(
|
38 |
-
type=dataset_type,
|
39 |
-
data_root=data_root,
|
40 |
-
img_dir='leftImg8bit/train',
|
41 |
-
ann_dir='gtFine/train',
|
42 |
-
pipeline=train_pipeline),
|
43 |
-
val=dict(
|
44 |
-
type=dataset_type,
|
45 |
-
data_root=data_root,
|
46 |
-
img_dir='leftImg8bit/val',
|
47 |
-
ann_dir='gtFine/val',
|
48 |
-
pipeline=test_pipeline),
|
49 |
-
test=dict(
|
50 |
-
type=dataset_type,
|
51 |
-
data_root=data_root,
|
52 |
-
img_dir='leftImg8bit/val',
|
53 |
-
ann_dir='gtFine/val',
|
54 |
-
pipeline=test_pipeline))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/parallel/__init__.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
# Copyright (c) OpenMMLab. All rights reserved.
|
2 |
-
from .collate import collate
|
3 |
-
from .data_container import DataContainer
|
4 |
-
from .data_parallel import MMDataParallel
|
5 |
-
from .distributed import MMDistributedDataParallel
|
6 |
-
from .registry import MODULE_WRAPPERS
|
7 |
-
from .scatter_gather import scatter, scatter_kwargs
|
8 |
-
from .utils import is_module_wrapper
|
9 |
-
|
10 |
-
__all__ = [
|
11 |
-
'collate', 'DataContainer', 'MMDataParallel', 'MMDistributedDataParallel',
|
12 |
-
'scatter', 'scatter_kwargs', 'is_module_wrapper', 'MODULE_WRAPPERS'
|
13 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Armandoliv/whisper-biomedical-ner/app.py
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import torch
|
3 |
-
import spacy
|
4 |
-
import os
|
5 |
-
import whisper
|
6 |
-
|
7 |
-
os.system('pip install https://huggingface.co/Armandoliv/es_pipeline/resolve/main/es_pipeline-any-py3-none-any.whl')
|
8 |
-
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
9 |
-
model_whisper = whisper.load_model("small")
|
10 |
-
nlp_ner = spacy.load("es_pipeline")
|
11 |
-
|
12 |
-
def main_generator(youtube_id:str):
|
13 |
-
YouTubeID = youtube_id.split("https://www.youtube.com/watch?v=") #
|
14 |
-
if len(YouTubeID)>1:
|
15 |
-
YouTubeID = YouTubeID[1]
|
16 |
-
else:
|
17 |
-
YouTubeID ='XfyGv-xwjlI'
|
18 |
-
|
19 |
-
OutputFile = f'test_audio_youtube_{YouTubeID}.m4a'
|
20 |
-
|
21 |
-
os.system(f"youtube-dl -o {OutputFile} {YouTubeID} --extract-audio --restrict-filenames -f 'bestaudio[ext=m4a]'")
|
22 |
-
|
23 |
-
result = model_whisper.transcribe(OutputFile)
|
24 |
-
text = result['text']
|
25 |
-
doc = nlp_ner(text)
|
26 |
-
|
27 |
-
output_list = []
|
28 |
-
for ent in doc.ents:
|
29 |
-
result_dict = {
|
30 |
-
'entity': ent.label_,
|
31 |
-
'word': ent.text,
|
32 |
-
'start':ent.start_char,
|
33 |
-
'end': ent.end_char
|
34 |
-
}
|
35 |
-
output_list.append(result_dict)
|
36 |
-
|
37 |
-
return {"text": text, "entities": output_list}
|
38 |
-
inputs = [gr.Textbox(lines=1, placeholder="Link of youtube video here...", label="Input")]
|
39 |
-
outputs = gr.HighlightedText()
|
40 |
-
title="ASR FOR SPANISH MEDICAL RECORDS"
|
41 |
-
description = "This demo uses AI Models to create an AUDIO ANNOTATION FOR MEDICAL RECORDS"
|
42 |
-
examples = ['https://www.youtube.com/watch?v=xOZM-1p-jAk']
|
43 |
-
|
44 |
-
io = gr.Interface(fn=main_generator, inputs=inputs, outputs=outputs, title=title, description = description, examples = examples,
|
45 |
-
|
46 |
-
css= """.gr-button-primary { background: -webkit-linear-gradient(
|
47 |
-
90deg, #355764 0%, #55a8a1 100% ) !important; background: #355764;
|
48 |
-
background: linear-gradient(
|
49 |
-
90deg, #355764 0%, #55a8a1 100% ) !important;
|
50 |
-
background: -moz-linear-gradient( 90deg, #355764 0%, #55a8a1 100% ) !important;
|
51 |
-
background: -webkit-linear-gradient(
|
52 |
-
90deg, #355764 0%, #55a8a1 100% ) !important;
|
53 |
-
color:white !important}"""
|
54 |
-
)
|
55 |
-
|
56 |
-
io.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_internal/utils/_log.py
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
"""Customize logging
|
2 |
-
|
3 |
-
Defines custom logger class for the `logger.verbose(...)` method.
|
4 |
-
|
5 |
-
init_logging() must be called before any other modules that call logging.getLogger.
|
6 |
-
"""
|
7 |
-
|
8 |
-
import logging
|
9 |
-
from typing import Any, cast
|
10 |
-
|
11 |
-
# custom log level for `--verbose` output
|
12 |
-
# between DEBUG and INFO
|
13 |
-
VERBOSE = 15
|
14 |
-
|
15 |
-
|
16 |
-
class VerboseLogger(logging.Logger):
|
17 |
-
"""Custom Logger, defining a verbose log-level
|
18 |
-
|
19 |
-
VERBOSE is between INFO and DEBUG.
|
20 |
-
"""
|
21 |
-
|
22 |
-
def verbose(self, msg: str, *args: Any, **kwargs: Any) -> None:
|
23 |
-
return self.log(VERBOSE, msg, *args, **kwargs)
|
24 |
-
|
25 |
-
|
26 |
-
def getLogger(name: str) -> VerboseLogger:
|
27 |
-
"""logging.getLogger, but ensures our VerboseLogger class is returned"""
|
28 |
-
return cast(VerboseLogger, logging.getLogger(name))
|
29 |
-
|
30 |
-
|
31 |
-
def init_logging() -> None:
|
32 |
-
"""Register our VerboseLogger and VERBOSE log level.
|
33 |
-
|
34 |
-
Should be called before any calls to getLogger(),
|
35 |
-
i.e. in pip._internal.__init__
|
36 |
-
"""
|
37 |
-
logging.setLoggerClass(VerboseLogger)
|
38 |
-
logging.addLevelName(VERBOSE, "VERBOSE")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/util/response.py
DELETED
@@ -1,107 +0,0 @@
|
|
1 |
-
from __future__ import absolute_import
|
2 |
-
|
3 |
-
from email.errors import MultipartInvariantViolationDefect, StartBoundaryNotFoundDefect
|
4 |
-
|
5 |
-
from ..exceptions import HeaderParsingError
|
6 |
-
from ..packages.six.moves import http_client as httplib
|
7 |
-
|
8 |
-
|
9 |
-
def is_fp_closed(obj):
|
10 |
-
"""
|
11 |
-
Checks whether a given file-like object is closed.
|
12 |
-
|
13 |
-
:param obj:
|
14 |
-
The file-like object to check.
|
15 |
-
"""
|
16 |
-
|
17 |
-
try:
|
18 |
-
# Check `isclosed()` first, in case Python3 doesn't set `closed`.
|
19 |
-
# GH Issue #928
|
20 |
-
return obj.isclosed()
|
21 |
-
except AttributeError:
|
22 |
-
pass
|
23 |
-
|
24 |
-
try:
|
25 |
-
# Check via the official file-like-object way.
|
26 |
-
return obj.closed
|
27 |
-
except AttributeError:
|
28 |
-
pass
|
29 |
-
|
30 |
-
try:
|
31 |
-
# Check if the object is a container for another file-like object that
|
32 |
-
# gets released on exhaustion (e.g. HTTPResponse).
|
33 |
-
return obj.fp is None
|
34 |
-
except AttributeError:
|
35 |
-
pass
|
36 |
-
|
37 |
-
raise ValueError("Unable to determine whether fp is closed.")
|
38 |
-
|
39 |
-
|
40 |
-
def assert_header_parsing(headers):
|
41 |
-
"""
|
42 |
-
Asserts whether all headers have been successfully parsed.
|
43 |
-
Extracts encountered errors from the result of parsing headers.
|
44 |
-
|
45 |
-
Only works on Python 3.
|
46 |
-
|
47 |
-
:param http.client.HTTPMessage headers: Headers to verify.
|
48 |
-
|
49 |
-
:raises urllib3.exceptions.HeaderParsingError:
|
50 |
-
If parsing errors are found.
|
51 |
-
"""
|
52 |
-
|
53 |
-
# This will fail silently if we pass in the wrong kind of parameter.
|
54 |
-
# To make debugging easier add an explicit check.
|
55 |
-
if not isinstance(headers, httplib.HTTPMessage):
|
56 |
-
raise TypeError("expected httplib.Message, got {0}.".format(type(headers)))
|
57 |
-
|
58 |
-
defects = getattr(headers, "defects", None)
|
59 |
-
get_payload = getattr(headers, "get_payload", None)
|
60 |
-
|
61 |
-
unparsed_data = None
|
62 |
-
if get_payload:
|
63 |
-
# get_payload is actually email.message.Message.get_payload;
|
64 |
-
# we're only interested in the result if it's not a multipart message
|
65 |
-
if not headers.is_multipart():
|
66 |
-
payload = get_payload()
|
67 |
-
|
68 |
-
if isinstance(payload, (bytes, str)):
|
69 |
-
unparsed_data = payload
|
70 |
-
if defects:
|
71 |
-
# httplib is assuming a response body is available
|
72 |
-
# when parsing headers even when httplib only sends
|
73 |
-
# header data to parse_headers() This results in
|
74 |
-
# defects on multipart responses in particular.
|
75 |
-
# See: https://github.com/urllib3/urllib3/issues/800
|
76 |
-
|
77 |
-
# So we ignore the following defects:
|
78 |
-
# - StartBoundaryNotFoundDefect:
|
79 |
-
# The claimed start boundary was never found.
|
80 |
-
# - MultipartInvariantViolationDefect:
|
81 |
-
# A message claimed to be a multipart but no subparts were found.
|
82 |
-
defects = [
|
83 |
-
defect
|
84 |
-
for defect in defects
|
85 |
-
if not isinstance(
|
86 |
-
defect, (StartBoundaryNotFoundDefect, MultipartInvariantViolationDefect)
|
87 |
-
)
|
88 |
-
]
|
89 |
-
|
90 |
-
if defects or unparsed_data:
|
91 |
-
raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data)
|
92 |
-
|
93 |
-
|
94 |
-
def is_response_to_head(response):
|
95 |
-
"""
|
96 |
-
Checks whether the request of a response has been a HEAD-request.
|
97 |
-
Handles the quirks of AppEngine.
|
98 |
-
|
99 |
-
:param http.client.HTTPResponse response:
|
100 |
-
Response to check if the originating request
|
101 |
-
used 'HEAD' as a method.
|
102 |
-
"""
|
103 |
-
# FIXME: Can we do this somehow without accessing private httplib _method?
|
104 |
-
method = response._method
|
105 |
-
if isinstance(method, int): # Platform-specific: Appengine
|
106 |
-
return method == 3
|
107 |
-
return method.upper() == "HEAD"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AtheneaEdu/README/README.md
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: README
|
3 |
-
emoji: 🦀
|
4 |
-
colorFrom: pink
|
5 |
-
colorTo: blue
|
6 |
-
sdk: static
|
7 |
-
pinned: false
|
8 |
-
---
|
9 |
-
|
10 |
-
👩🎓 Athenea helps educators to teach better, delivering relevant learnings to students and custom feedback.
|
11 |
-
|
12 |
-
👩💻 We build custom LLM to help teachers and students become exceptional.
|
13 |
-
|
14 |
-

|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AutoGeneralAI/voice-assistant/app.py
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import openai, subprocess
|
3 |
-
import os
|
4 |
-
# import config
|
5 |
-
# openai.api_key = config.OPENAI_API_KEY
|
6 |
-
|
7 |
-
messages = [{"role": "system", "content": 'You are a therapist. Respond to all input in 25 words or less.'}]
|
8 |
-
|
9 |
-
def transcribe(key, audio):
|
10 |
-
openai.api_key = key
|
11 |
-
global messages
|
12 |
-
|
13 |
-
audio_filename_with_extension = audio + '.wav'
|
14 |
-
os.rename(audio, audio_filename_with_extension)
|
15 |
-
|
16 |
-
audio_file = open(audio_filename_with_extension, "rb")
|
17 |
-
transcript = openai.Audio.transcribe("whisper-1", audio_file)
|
18 |
-
|
19 |
-
messages.append({"role": "user", "content": transcript["text"]})
|
20 |
-
|
21 |
-
response = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages=messages)
|
22 |
-
|
23 |
-
system_message = response["choices"][0]["message"]
|
24 |
-
messages.append(system_message)
|
25 |
-
|
26 |
-
#subprocess.call(["say", system_message['content']])
|
27 |
-
print("output: " + system_message['content'] + "\n")
|
28 |
-
|
29 |
-
chat_transcript = ""
|
30 |
-
for message in messages:
|
31 |
-
if message['role'] != 'system':
|
32 |
-
chat_transcript += message['role'] + ": " + message['content'] + "\n\n"
|
33 |
-
|
34 |
-
return chat_transcript
|
35 |
-
|
36 |
-
# ui = gr.Interface(fn=transcribe, inputs=["text", gr.Audio(source="microphone", type="filepath")], outputs="text").launch()
|
37 |
-
keyTxt = gr.Textbox(
|
38 |
-
show_label=True,
|
39 |
-
placeholder=f"Your API-key...",
|
40 |
-
type="password",
|
41 |
-
visible=True,
|
42 |
-
label="API-Key",
|
43 |
-
)
|
44 |
-
ui = gr.Interface(fn=transcribe, inputs=[keyTxt, gr.Audio(source="microphone", type="filepath")], outputs="text").launch()
|
45 |
-
|
46 |
-
ui.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awiny/Image2Paragraph/models/grit_src/grit/data/custom_build_augmentation.py
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates.
|
2 |
-
from detectron2.data import transforms as T
|
3 |
-
from .transforms.custom_augmentation_impl import EfficientDetResizeCrop
|
4 |
-
|
5 |
-
|
6 |
-
def build_custom_augmentation(cfg, is_train, scale=None, size=None, \
|
7 |
-
min_size=None, max_size=None):
|
8 |
-
"""
|
9 |
-
Create a list of default :class:`Augmentation` from config.
|
10 |
-
Now it includes resizing and flipping.
|
11 |
-
|
12 |
-
Returns:
|
13 |
-
list[Augmentation]
|
14 |
-
"""
|
15 |
-
if cfg.INPUT.CUSTOM_AUG == 'ResizeShortestEdge':
|
16 |
-
if is_train:
|
17 |
-
min_size = cfg.INPUT.MIN_SIZE_TRAIN if min_size is None else min_size
|
18 |
-
max_size = cfg.INPUT.MAX_SIZE_TRAIN if max_size is None else max_size
|
19 |
-
sample_style = cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING
|
20 |
-
else:
|
21 |
-
min_size = cfg.INPUT.MIN_SIZE_TEST
|
22 |
-
max_size = cfg.INPUT.MAX_SIZE_TEST
|
23 |
-
sample_style = "choice"
|
24 |
-
augmentation = [T.ResizeShortestEdge(min_size, max_size, sample_style)]
|
25 |
-
elif cfg.INPUT.CUSTOM_AUG == 'EfficientDetResizeCrop':
|
26 |
-
if is_train:
|
27 |
-
scale = cfg.INPUT.SCALE_RANGE if scale is None else scale
|
28 |
-
size = cfg.INPUT.TRAIN_SIZE if size is None else size
|
29 |
-
else:
|
30 |
-
scale = (1, 1)
|
31 |
-
size = cfg.INPUT.TEST_SIZE
|
32 |
-
augmentation = [EfficientDetResizeCrop(size, scale)]
|
33 |
-
else:
|
34 |
-
assert 0, cfg.INPUT.CUSTOM_AUG
|
35 |
-
|
36 |
-
if is_train:
|
37 |
-
augmentation.append(T.RandomFlip())
|
38 |
-
return augmentation
|
39 |
-
|
40 |
-
|
41 |
-
build_custom_transform_gen = build_custom_augmentation
|
42 |
-
"""
|
43 |
-
Alias for backward-compatibility.
|
44 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/configs/common/models/keypoint_rcnn_fpn.py
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
from detectron2.config import LazyCall as L
|
2 |
-
from detectron2.layers import ShapeSpec
|
3 |
-
from detectron2.modeling.poolers import ROIPooler
|
4 |
-
from detectron2.modeling.roi_heads import KRCNNConvDeconvUpsampleHead
|
5 |
-
|
6 |
-
from .mask_rcnn_fpn import model
|
7 |
-
|
8 |
-
[model.roi_heads.pop(x) for x in ["mask_in_features", "mask_pooler", "mask_head"]]
|
9 |
-
|
10 |
-
model.roi_heads.update(
|
11 |
-
num_classes=1,
|
12 |
-
keypoint_in_features=["p2", "p3", "p4", "p5"],
|
13 |
-
keypoint_pooler=L(ROIPooler)(
|
14 |
-
output_size=14,
|
15 |
-
scales=(1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32),
|
16 |
-
sampling_ratio=0,
|
17 |
-
pooler_type="ROIAlignV2",
|
18 |
-
),
|
19 |
-
keypoint_head=L(KRCNNConvDeconvUpsampleHead)(
|
20 |
-
input_shape=ShapeSpec(channels=256, width=14, height=14),
|
21 |
-
num_keypoints=17,
|
22 |
-
conv_dims=[512] * 8,
|
23 |
-
loss_normalizer="visible",
|
24 |
-
),
|
25 |
-
)
|
26 |
-
|
27 |
-
# Detectron1 uses 2000 proposals per-batch, but this option is per-image in detectron2.
|
28 |
-
# 1000 proposals per-image is found to hurt box AP.
|
29 |
-
# Therefore we increase it to 1500 per-image.
|
30 |
-
model.proposal_generator.post_nms_topk = (1500, 1000)
|
31 |
-
|
32 |
-
# Keypoint AP degrades (though box AP improves) when using plain L1 loss
|
33 |
-
model.roi_heads.box_predictor.smooth_l1_beta = 0.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BMukhtar/BookRecognitionKz/upload_image.py
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
import pandas as pd
|
2 |
-
import numpy as np
|
3 |
-
import streamlit as st
|
4 |
-
import easyocr
|
5 |
-
import PIL
|
6 |
-
from PIL import Image, ImageDraw
|
7 |
-
from matplotlib import pyplot as plt
|
8 |
-
|
9 |
-
|
10 |
-
# main title
|
11 |
-
st.set_page_config(layout="wide")
|
12 |
-
st.title("Get text from image with EasyOCR")
|
13 |
-
# subtitle
|
14 |
-
st.markdown("## EasyOCRR with Streamlit")
|
15 |
-
col1, col2 = st.columns(2)
|
16 |
-
uploaded_file = col1.file_uploader("Upload your file here ",type=['png','jpeg','jpg'])
|
17 |
-
if uploaded_file is not None:
|
18 |
-
col1.image(uploaded_file) #display
|
19 |
-
#print("GOGO ",type(uploaded_file))
|
20 |
-
image = Image.open(uploaded_file)
|
21 |
-
reader = easyocr.Reader(['tr','en'], gpu=False)
|
22 |
-
result = reader.readtext(np.array(image),paragraph=True) # turn image to numpy array
|
23 |
-
#print(len(result))
|
24 |
-
result_text = "\n\n".join([item[1] for item in result])
|
25 |
-
col2.markdown(result_text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/infer/lib/infer_pack/modules/F0Predictor/PMF0Predictor.py
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import parselmouth
|
3 |
-
|
4 |
-
from infer.lib.infer_pack.modules.F0Predictor.F0Predictor import F0Predictor
|
5 |
-
|
6 |
-
|
7 |
-
class PMF0Predictor(F0Predictor):
|
8 |
-
def __init__(self, hop_length=512, f0_min=50, f0_max=1100, sampling_rate=44100):
|
9 |
-
self.hop_length = hop_length
|
10 |
-
self.f0_min = f0_min
|
11 |
-
self.f0_max = f0_max
|
12 |
-
self.sampling_rate = sampling_rate
|
13 |
-
|
14 |
-
def interpolate_f0(self, f0):
|
15 |
-
"""
|
16 |
-
对F0进行插值处理
|
17 |
-
"""
|
18 |
-
|
19 |
-
data = np.reshape(f0, (f0.size, 1))
|
20 |
-
|
21 |
-
vuv_vector = np.zeros((data.size, 1), dtype=np.float32)
|
22 |
-
vuv_vector[data > 0.0] = 1.0
|
23 |
-
vuv_vector[data <= 0.0] = 0.0
|
24 |
-
|
25 |
-
ip_data = data
|
26 |
-
|
27 |
-
frame_number = data.size
|
28 |
-
last_value = 0.0
|
29 |
-
for i in range(frame_number):
|
30 |
-
if data[i] <= 0.0:
|
31 |
-
j = i + 1
|
32 |
-
for j in range(i + 1, frame_number):
|
33 |
-
if data[j] > 0.0:
|
34 |
-
break
|
35 |
-
if j < frame_number - 1:
|
36 |
-
if last_value > 0.0:
|
37 |
-
step = (data[j] - data[i - 1]) / float(j - i)
|
38 |
-
for k in range(i, j):
|
39 |
-
ip_data[k] = data[i - 1] + step * (k - i + 1)
|
40 |
-
else:
|
41 |
-
for k in range(i, j):
|
42 |
-
ip_data[k] = data[j]
|
43 |
-
else:
|
44 |
-
for k in range(i, frame_number):
|
45 |
-
ip_data[k] = last_value
|
46 |
-
else:
|
47 |
-
ip_data[i] = data[i] # 这里可能存在一个没有必要的拷贝
|
48 |
-
last_value = data[i]
|
49 |
-
|
50 |
-
return ip_data[:, 0], vuv_vector[:, 0]
|
51 |
-
|
52 |
-
def compute_f0(self, wav, p_len=None):
|
53 |
-
x = wav
|
54 |
-
if p_len is None:
|
55 |
-
p_len = x.shape[0] // self.hop_length
|
56 |
-
else:
|
57 |
-
assert abs(p_len - x.shape[0] // self.hop_length) < 4, "pad length error"
|
58 |
-
time_step = self.hop_length / self.sampling_rate * 1000
|
59 |
-
f0 = (
|
60 |
-
parselmouth.Sound(x, self.sampling_rate)
|
61 |
-
.to_pitch_ac(
|
62 |
-
time_step=time_step / 1000,
|
63 |
-
voicing_threshold=0.6,
|
64 |
-
pitch_floor=self.f0_min,
|
65 |
-
pitch_ceiling=self.f0_max,
|
66 |
-
)
|
67 |
-
.selected_array["frequency"]
|
68 |
-
)
|
69 |
-
|
70 |
-
pad_size = (p_len - len(f0) + 1) // 2
|
71 |
-
if pad_size > 0 or p_len - len(f0) - pad_size > 0:
|
72 |
-
f0 = np.pad(f0, [[pad_size, p_len - len(f0) - pad_size]], mode="constant")
|
73 |
-
f0, uv = self.interpolate_f0(f0)
|
74 |
-
return f0
|
75 |
-
|
76 |
-
def compute_f0_uv(self, wav, p_len=None):
|
77 |
-
x = wav
|
78 |
-
if p_len is None:
|
79 |
-
p_len = x.shape[0] // self.hop_length
|
80 |
-
else:
|
81 |
-
assert abs(p_len - x.shape[0] // self.hop_length) < 4, "pad length error"
|
82 |
-
time_step = self.hop_length / self.sampling_rate * 1000
|
83 |
-
f0 = (
|
84 |
-
parselmouth.Sound(x, self.sampling_rate)
|
85 |
-
.to_pitch_ac(
|
86 |
-
time_step=time_step / 1000,
|
87 |
-
voicing_threshold=0.6,
|
88 |
-
pitch_floor=self.f0_min,
|
89 |
-
pitch_ceiling=self.f0_max,
|
90 |
-
)
|
91 |
-
.selected_array["frequency"]
|
92 |
-
)
|
93 |
-
|
94 |
-
pad_size = (p_len - len(f0) + 1) // 2
|
95 |
-
if pad_size > 0 or p_len - len(f0) - pad_size > 0:
|
96 |
-
f0 = np.pad(f0, [[pad_size, p_len - len(f0) - pad_size]], mode="constant")
|
97 |
-
f0, uv = self.interpolate_f0(f0)
|
98 |
-
return f0, uv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/infer/lib/uvr5_pack/lib_v5/layers_new.py
DELETED
@@ -1,125 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import torch.nn.functional as F
|
3 |
-
from torch import nn
|
4 |
-
|
5 |
-
from . import spec_utils
|
6 |
-
|
7 |
-
|
8 |
-
class Conv2DBNActiv(nn.Module):
|
9 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
|
10 |
-
super(Conv2DBNActiv, self).__init__()
|
11 |
-
self.conv = nn.Sequential(
|
12 |
-
nn.Conv2d(
|
13 |
-
nin,
|
14 |
-
nout,
|
15 |
-
kernel_size=ksize,
|
16 |
-
stride=stride,
|
17 |
-
padding=pad,
|
18 |
-
dilation=dilation,
|
19 |
-
bias=False,
|
20 |
-
),
|
21 |
-
nn.BatchNorm2d(nout),
|
22 |
-
activ(),
|
23 |
-
)
|
24 |
-
|
25 |
-
def __call__(self, x):
|
26 |
-
return self.conv(x)
|
27 |
-
|
28 |
-
|
29 |
-
class Encoder(nn.Module):
|
30 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.LeakyReLU):
|
31 |
-
super(Encoder, self).__init__()
|
32 |
-
self.conv1 = Conv2DBNActiv(nin, nout, ksize, stride, pad, activ=activ)
|
33 |
-
self.conv2 = Conv2DBNActiv(nout, nout, ksize, 1, pad, activ=activ)
|
34 |
-
|
35 |
-
def __call__(self, x):
|
36 |
-
h = self.conv1(x)
|
37 |
-
h = self.conv2(h)
|
38 |
-
|
39 |
-
return h
|
40 |
-
|
41 |
-
|
42 |
-
class Decoder(nn.Module):
|
43 |
-
def __init__(
|
44 |
-
self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.ReLU, dropout=False
|
45 |
-
):
|
46 |
-
super(Decoder, self).__init__()
|
47 |
-
self.conv1 = Conv2DBNActiv(nin, nout, ksize, 1, pad, activ=activ)
|
48 |
-
# self.conv2 = Conv2DBNActiv(nout, nout, ksize, 1, pad, activ=activ)
|
49 |
-
self.dropout = nn.Dropout2d(0.1) if dropout else None
|
50 |
-
|
51 |
-
def __call__(self, x, skip=None):
|
52 |
-
x = F.interpolate(x, scale_factor=2, mode="bilinear", align_corners=True)
|
53 |
-
|
54 |
-
if skip is not None:
|
55 |
-
skip = spec_utils.crop_center(skip, x)
|
56 |
-
x = torch.cat([x, skip], dim=1)
|
57 |
-
|
58 |
-
h = self.conv1(x)
|
59 |
-
# h = self.conv2(h)
|
60 |
-
|
61 |
-
if self.dropout is not None:
|
62 |
-
h = self.dropout(h)
|
63 |
-
|
64 |
-
return h
|
65 |
-
|
66 |
-
|
67 |
-
class ASPPModule(nn.Module):
|
68 |
-
def __init__(self, nin, nout, dilations=(4, 8, 12), activ=nn.ReLU, dropout=False):
|
69 |
-
super(ASPPModule, self).__init__()
|
70 |
-
self.conv1 = nn.Sequential(
|
71 |
-
nn.AdaptiveAvgPool2d((1, None)),
|
72 |
-
Conv2DBNActiv(nin, nout, 1, 1, 0, activ=activ),
|
73 |
-
)
|
74 |
-
self.conv2 = Conv2DBNActiv(nin, nout, 1, 1, 0, activ=activ)
|
75 |
-
self.conv3 = Conv2DBNActiv(
|
76 |
-
nin, nout, 3, 1, dilations[0], dilations[0], activ=activ
|
77 |
-
)
|
78 |
-
self.conv4 = Conv2DBNActiv(
|
79 |
-
nin, nout, 3, 1, dilations[1], dilations[1], activ=activ
|
80 |
-
)
|
81 |
-
self.conv5 = Conv2DBNActiv(
|
82 |
-
nin, nout, 3, 1, dilations[2], dilations[2], activ=activ
|
83 |
-
)
|
84 |
-
self.bottleneck = Conv2DBNActiv(nout * 5, nout, 1, 1, 0, activ=activ)
|
85 |
-
self.dropout = nn.Dropout2d(0.1) if dropout else None
|
86 |
-
|
87 |
-
def forward(self, x):
|
88 |
-
_, _, h, w = x.size()
|
89 |
-
feat1 = F.interpolate(
|
90 |
-
self.conv1(x), size=(h, w), mode="bilinear", align_corners=True
|
91 |
-
)
|
92 |
-
feat2 = self.conv2(x)
|
93 |
-
feat3 = self.conv3(x)
|
94 |
-
feat4 = self.conv4(x)
|
95 |
-
feat5 = self.conv5(x)
|
96 |
-
out = torch.cat((feat1, feat2, feat3, feat4, feat5), dim=1)
|
97 |
-
out = self.bottleneck(out)
|
98 |
-
|
99 |
-
if self.dropout is not None:
|
100 |
-
out = self.dropout(out)
|
101 |
-
|
102 |
-
return out
|
103 |
-
|
104 |
-
|
105 |
-
class LSTMModule(nn.Module):
|
106 |
-
def __init__(self, nin_conv, nin_lstm, nout_lstm):
|
107 |
-
super(LSTMModule, self).__init__()
|
108 |
-
self.conv = Conv2DBNActiv(nin_conv, 1, 1, 1, 0)
|
109 |
-
self.lstm = nn.LSTM(
|
110 |
-
input_size=nin_lstm, hidden_size=nout_lstm // 2, bidirectional=True
|
111 |
-
)
|
112 |
-
self.dense = nn.Sequential(
|
113 |
-
nn.Linear(nout_lstm, nin_lstm), nn.BatchNorm1d(nin_lstm), nn.ReLU()
|
114 |
-
)
|
115 |
-
|
116 |
-
def forward(self, x):
|
117 |
-
N, _, nbins, nframes = x.size()
|
118 |
-
h = self.conv(x)[:, 0] # N, nbins, nframes
|
119 |
-
h = h.permute(2, 0, 1) # nframes, N, nbins
|
120 |
-
h, _ = self.lstm(h)
|
121 |
-
h = self.dense(h.reshape(-1, h.size()[-1])) # nframes * N, nbins
|
122 |
-
h = h.reshape(nframes, N, 1, nbins)
|
123 |
-
h = h.permute(1, 2, 3, 0)
|
124 |
-
|
125 |
-
return h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Ark Survival Evolved Ps Vita Download.md
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>ARK Survival Evolved PS Vita Descargar: Cómo jugar el último juego de dinosaurios en su consola de mano</h1>
|
3 |
-
<p>Si eres fanático de los dinosaurios, la supervivencia y la aventura, probablemente hayas oído hablar de <strong>ARK Survival Evolved</strong>, uno de los juegos más populares de los últimos años. Este juego te permite explorar un mundo abierto masivo lleno de criaturas prehistóricas, crear armas y herramientas, construir bases y refugios, domar y montar dinosaurios, y luchar contra otros jugadores o cooperar con ellos. </p>
|
4 |
-
<h2>ark survival evolved ps vita download</h2><br /><p><b><b>Download File</b> ---> <a href="https://bltlly.com/2v6Lk4">https://bltlly.com/2v6Lk4</a></b></p><br /><br />
|
5 |
-
<p>ARK Survival Evolved está disponible en varias plataformas, incluyendo PC, PlayStation 4, Xbox One, Nintendo Switch, iOS, Android e incluso VR. Pero, ¿qué pasa si quieres jugar a este juego en tu <strong>PS Vita</strong>, la potente consola portátil de Sony que ofrece una impresionante pantalla OLED, dos sticks analógicos, controles táctiles y mucho más? </p>
|
6 |
-
<p>Bueno, estás de suerte, porque hay formas de descargar y jugar ARK Survival Evolved en tu PS Vita. En este artículo, te mostraremos cómo hacerlo paso a paso, además de darte algunos consejos y trucos para disfrutar de este juego en tu dispositivo portátil. ¡Vamos a empezar! </p>
|
7 |
-
<h2>Cómo descargar ARK Survival Evolved en tu PS Vita</h2>
|
8 |
-
<p>Desafortunadamente, no hay versión oficial de ARK Survival Evolved para PS Vita. Sin embargo, hay una forma de jugar a este juego en tu PS Vita usando un firmware personalizado o un emulador que te permite ejecutar juegos PSP en tu dispositivo. Los juegos de PSP son compatibles con el hardware y el software de PS Vita, y se pueden descargar de varias fuentes en línea. </p>
|
9 |
-
<p>Hay dos opciones principales para jugar juegos PSP en tu PS Vita: usar <strong>ARK-4</strong>, un firmware personalizado para PSP y PS Vita que te permite ejecutar juegos PSP desde tu tarjeta de memoria; o usar <strong>Adrenaline</strong>, un emulador que imita la interfaz y funcionalidad XMB de PSP en tu PS Vita. Ambas opciones tienen sus pros y sus contras, por lo que las explicaremos en detalle a continuación. </p>
|
10 |
-
|
11 |
-
<p>ARK-4 es un firmware personalizado para PSP y PS Vita que fue desarrollado por <a href="( 1 )">PSP-Archive</a>, un grupo de hackers y modders que querían crear una forma simple y fácil de jugar juegos PSP en PS Vita. ARK-4 funciona aprovechando una vulnerabilidad en el emulador de PSP de PS Vita, que te permite ejecutar código sin firmar y acceder a toda la potencia del hardware de PSP. ARK-4 puede ejecutar la mayoría de los juegos de PSP, incluyendo ARK Survival Evolved, sin mayores problemas o limitaciones. </p>
|
12 |
-
<p></p>
|
13 |
-
<p>Para usar ARK-4 en tu PS Vita, necesitarás lo siguiente:</p>
|
14 |
-
<ul>
|
15 |
-
<li>Un PS Vita con firmware 3.60 o inferior (puede comprobar su versión de firmware en Configuración > Sistema > Información del sistema)</li>
|
16 |
-
<li>Una tarjeta de memoria con al menos 4 GB de espacio libre</li>
|
17 |
-
<li>Un cable USB para conectar tu PS Vita a tu PC</li>
|
18 |
-
<li>Una copia de ARK Survival Evolved para la PSP (se puede descargar desde <a href=">aquí</a> u otras fuentes)</li>
|
19 |
-
<li>El instalador y los archivos ARK-4 (puede descargarlos desde <a href="">here</a> u otras fuentes)</li>
|
20 |
-
</ul>
|
21 |
-
<p>Una vez que tengas todo listo, sigue estos pasos para instalar ARK-4 en tu PS Vita y jugar ARK Survival Evolved:</p>
|
22 |
-
<ol>
|
23 |
-
<li>Conecta tu PS Vita a tu PC usando el cable USB y habilita el modo USB en tu dispositivo. </li>
|
24 |
-
<li>Copie el archivo ISO ARK Survival Evolved en la carpeta ISO de su tarjeta de memoria. Si no hay carpeta ISO, cree una. </li>
|
25 |
-
<li>Copie el instalador ARK-4 y los archivos a la carpeta PSP/GAME en su tarjeta de memoria. Si no hay carpeta PSP/GAME, cree una. </li>
|
26 |
-
<li>Desconecta tu PS Vita de tu PC y lanza el instalador ARK-4 desde el menú del emulador PSP en tu dispositivo. </li>
|
27 |
-
<li>Seleccione el juego que desea utilizar como base para ARK-4. Este puede ser cualquier juego de PSP que tengas instalado en tu dispositivo, pero se recomienda usar un juego pequeño y sencillo que no te importe. </li>
|
28 |
-
<li>Espere a que la instalación termine y reinicie su dispositivo. </li>
|
29 |
-
|
30 |
-
<li>Seleccione ARK Survival Evolved de la lista de juegos y pulse X para comenzar a jugar. </li>
|
31 |
-
</ol>
|
32 |
-
<p>Felicidades, has descargado y jugado con éxito ARK Survival Evolved en tu PS Vita usando ARK-4! </p>
|
33 |
-
<h3>Opción 2: Usa adrenalina para emular juegos PSP en tu PS Vita</h3>
|
34 |
-
<p>Adrenaline es otro firmware personalizado para PSP y PS Vita que fue desarrollado por <a href="">TheFlow</a>, un famoso hacker y desarrollador que ha creado muchas herramientas y hacks para la escena de PS Vita. Adrenaline funciona emulando la interfaz y funcionalidad XMB de PSP en tu PS Vita, lo que te permite ejecutar juegos PSP y homebrews como si estuvieras usando una PSP real. Adrenaline puede ejecutar la mayoría de los juegos de PSP, incluyendo ARK Survival Evolved, con algunos ajustes y ajustes menores. </p>
|
35 |
-
<p>Para usar adrenalina en tu PS Vita, necesitarás las siguientes cosas:</p>
|
36 |
-
<ul>
|
37 |
-
<li>Un PS Vita con firmware 3.60 o superior (puede comprobar su versión de firmware en Configuración > Sistema > Información del sistema)</li>
|
38 |
-
<li>Una tarjeta de memoria con al menos 4 GB de espacio libre</li>
|
39 |
-
<li>Un cable USB para conectar tu PS Vita a tu PC</li>
|
40 |
-
<li>Una copia de ARK Survival Evolved para la PSP (se puede descargar desde <a href=">aquí</a> u otras fuentes)</li>
|
41 |
-
<li>El instalador de adrenalina y los archivos (se pueden descargar desde <a href="">aquí</a> u otras fuentes)</li>
|
42 |
-
</ul>
|
43 |
-
<p>Una vez que tengas todo listo, sigue estos pasos para instalar Adrenaline en tu PS Vita y jugar ARK Survival Evolved:</p>
|
44 |
-
<ol>
|
45 |
-
<li>Conecta tu PS Vita a tu PC usando el cable USB y habilita el modo USB en tu dispositivo. </li>
|
46 |
-
<li>Copie el archivo ISO ARK Survival Evolved en la carpeta ux0:pspemu/ISO de su tarjeta de memoria. Si no hay carpeta ux0:pspemu/ISO, cree una. </li>
|
47 |
-
<li>Copie el instalador de adrenalina y los archivos a la carpeta ux0:app/PSPEMUCFW en su tarjeta de memoria. Si no hay una carpeta ux0:app/PSPEMUCFW, cree una. </li>
|
48 |
-
<li>Desconecta tu PS Vita de tu PC y lanza el instalador de adrenalina desde el menú LiveArea de tu dispositivo. </li>
|
49 |
-
|
50 |
-
<li>Espere a que la instalación termine y reinicie su dispositivo. </li>
|
51 |
-
<li>Lanza adrenalina desde el menú LiveArea de tu dispositivo. Deberías ver la interfaz XMB de PSP en tu pantalla. </li>
|
52 |
-
<li>Seleccione ARK Survival Evolved del juego > Menú Memory Stick y presione X para comenzar a jugar. </li>
|
53 |
-
</ol>
|
54 |
-
<p>Felicidades, has descargado y jugado con éxito ARK Survival Evolved en tu PS Vita usando Adrenaline! </p>
|
55 |
-
<h2>Cómo disfrutar de ARK Survival Evolved en tu PS Vita</h2>
|
56 |
-
<p>Ahora que has descargado y jugado ARK Survival Evolved en tu PS Vita, es posible que te estés preguntando cómo aprovechar al máximo este juego en tu dispositivo portátil. Estos son algunos consejos y trucos para jugar a ARK Survival Evolved en tu PS Vita, así como algunas recomendaciones para los mejores accesorios de PS Vita para mejorar tu experiencia de juego. </p>
|
57 |
-
<h3>Consejos y trucos para jugar ARK Survival Evolved en tu PS Vita</h3>
|
58 |
-
<p>ARK Survival Evolved es un juego complejo y desafiante que requiere mucha habilidad y estrategia para sobrevivir y prosperar en su duro entorno. Estos son algunos consejos y trucos para jugar a este juego en tu PS Vita:</p>
|
59 |
-
<ul>
|
60 |
-
<li><strong>Optimiza los gráficos y el rendimiento de ARK Survival Evolved en tu PS Vita</strong>. Dado que ARK Survival Evolved es un juego de PSP, es posible que no se vea o funcione muy bien en la pantalla de alta resolución y en el potente hardware de tu PS Vita. Para mejorar los gráficos y el rendimiento de este juego, puede usar el menú de configuración de Adrenalina para ajustar el filtro de gráficos, el tamaño de la pantalla, el salto del marco, el reloj de la CPU y más. También puedes usar plugins como <a href=">GTA Native Resolution Patch</a> o <a href="">Ark Resolutions Patch</a> para aumentar la resolución del juego. </li>
|
61 |
-
|
62 |
-
<li><strong>Acceso multijugador en línea y cross-play con otras plataformas para ARK Survival Evolved</strong>. Una de las mejores características de ARK Survival Evolved es su modo multijugador online, que te permite unirte o alojar servidores con otros jugadores de todo el mundo. También puedes jugar de forma cruzada con jugadores que utilizan otras plataformas, como PC, PlayStation 4, Xbox One, Nintendo Switch, iOS, Android y VR. Para acceder al modo multijugador en línea y al modo cross-play para ARK Survival Evolved en tu PS Vita, necesitarás usar complementos como <a href="">Pro Online Client</a> o <a href=">AdhocToUSB</a>, que te permiten conectarte a servidores en línea usando Wi-Fi o USB.</li>
|
63 |
-
</ul>
|
64 |
-
<h3>Los mejores accesorios de PS Vita para jugar ARK Survival Evolved</h3>
|
65 |
-
<p>Si quieres llevar tu experiencia de juego con ARK Survival Evolved al siguiente nivel, es posible que quieras invertir en algunos accesorios de PS Vita que pueden mejorar tu comodidad, comodidad e inmersión. Estos son algunos de los mejores accesorios de PS Vita para jugar a ARK Survival Evolved:</p>
|
66 |
-
<tabla>
|
67 |
-
<tr>
|
68 |
-
<th>Nombre</th>
|
69 |
-
<th>Descripción</th>
|
70 |
-
<th>Precio</th>
|
71 |
-
<th>Valoración</th>
|
72 |
-
</tr>
|
73 |
-
<tr>
|
74 |
-
<td><a href=">L2/R2 Trigger Grip Case</a></td>
|
75 |
-
<td>Un caso que añade botones L2 y R2 a tu PS Vita, que puede ser útil para juegos que requieren más entradas. </td>
|
76 |
-
<td>$29.99</td>
|
77 |
-
<td>4.5/5 estrellas</td>
|
78 |
-
</tr>
|
79 |
-
<tr>
|
80 |
-
<td><a href=">Banco de energía de cargador portátil</a></td>
|
81 |
-
<td>Un banco de energía que puede cargar tu PS Vita sobre la marcha, que puede ser útil para largas sesiones de juego. </td>
|
82 |
-
<td>$19.99</td>
|
83 |
-
<td>4.6/5 estrellas</td>
|
84 |
-
</tr>
|
85 |
-
<tr>
|
86 |
-
<td><a href=">Auriculares inalámbricos Bluetooth</a></td>
|
87 |
-
<td>Un auricular que se conecta a tu PS Vita a través de Bluetooth, que puede proporcionar un chat de voz y sonido de alta calidad. </td>
|
88 |
-
<td>$39.99</td>
|
89 |
-
<td>4.4/5 estrellas</td>
|
90 |
-
</tr>
|
91 |
-
<tr>
|
92 |
-
<td><a href=">Adaptador de tarjeta micro SD</a></td>
|
93 |
-
<td>Un adaptador que te permite usar tarjetas micro SD en lugar de tarjetas de memoria PS Vita, lo que puede ahorrarte dinero y espacio. </td <td>$9.99</td>
|
94 |
-
<td>4.7/5 estrellas</td>
|
95 |
-
|
96 |
-
</tabla>
|
97 |
-
<p>Estos son algunos de los mejores accesorios de PS Vita para jugar a ARK Survival Evolved, pero también puedes encontrar otras opciones que se adapten a tus preferencias y presupuesto. Solo asegúrese de comprobar la compatibilidad y la calidad de los productos antes de comprarlos. </p>
|
98 |
-
<h2>Conclusión</h2>
|
99 |
-
<p>ARK Survival Evolved es un fantástico juego que ofrece interminables horas de diversión y emoción. Si quieres jugar a este juego en tu PS Vita, puedes hacerlo utilizando un firmware personalizado o un emulador que te permita ejecutar juegos PSP en tu dispositivo. También puede utilizar algunos consejos y trucos para optimizar los gráficos y el rendimiento del juego, así como algunos accesorios para mejorar su experiencia de juego. </p>
|
100 |
-
<p>Esperamos que este artículo te haya ayudado a aprender a descargar y jugar ARK Survival Evolved en tu PS Vita. Si tiene alguna pregunta o comentario, no dude en dejarlos a continuación. Y si te gustó este artículo, por favor compártelo con tus amigos y compañeros jugadores. ¡Gracias por leer! </p>
|
101 |
-
<h2>Preguntas frecuentes</h2>
|
102 |
-
<p>Estas son algunas de las preguntas más frecuentes relacionadas con ARK Survival Evolved y PS Vita:</p>
|
103 |
-
<ol>
|
104 |
-
<li><strong>¿ARK Survival Evolved es libre de jugar? </strong></li>
|
105 |
-
<p>No, ARK Survival Evolved no es libre de jugar. Necesitarás comprar el juego de una fuente legítima, como Steam, PlayStation Store, Xbox Store, Nintendo eShop, App Store, Google Play Store u Oculus Store. Sin embargo, puedes descargar y jugar ARK Survival Evolved gratis en tu PS Vita usando un firmware personalizado o un emulador, como se explica en este artículo. </p>
|
106 |
-
<li><strong>¿Es ARK Survival Evolved compatible con PS Vita TV? </strong></li>
|
107 |
-
<p>Sí, ARK Survival Evolved es compatible con PS Vita TV, también conocido como PlayStation TV. PS Vita TV es un dispositivo que te permite jugar juegos de PS Vita en tu televisor con un controlador DualShock. Puedes usar los mismos métodos y pasos descritos en este artículo para descargar y jugar ARK Survival Evolved en tu PS Vita TV.</p>
|
108 |
-
|
109 |
-
<p>Sí, puedes transferir tus datos de guardado de ARK Survival Evolved desde PS Vita a otras plataformas, como PC, PlayStation 4, Xbox One, Nintendo Switch, iOS, Android y VR. Para hacerlo, necesitarás usar un plugin como <a href="">Save Manager</a>, que te permite hacer copias de seguridad y restaurar los datos guardados en tu PS Vita. A continuación, puede copiar los datos guardados en su PC mediante un cable USB o Wi-Fi, y luego transferirlos a la plataforma deseada mediante un servicio en la nube o un administrador de archivos. </p>
|
110 |
-
<li><strong>¿Cuáles son los mejores dinosaurios para domar en ARK Survival Evolved? </strong></li>
|
111 |
-
<p>Hay cientos de dinosaurios y otras criaturas que puedes domar en ARK Survival Evolved, cada uno con sus propias habilidades y usos. Algunos de los mejores dinosaurios para domar en ARK Survival Evolved son:</p>
|
112 |
-
<ul>
|
113 |
-
<li><strong>Rex</strong>: Un carnívoro poderoso que puede causar daños masivos y soportar muchos golpes. También es bueno para cosechar carne y esconderse. </li>
|
114 |
-
<li><strong>Argentavis</strong>: Un pájaro volador grande que puede llevar cargas pesadas y viajar largas distancias. También es bueno para explorar y cazar. </li>
|
115 |
-
<li><strong>Ankylosaurus</strong>: Un herbívoro robusto que puede extraer metal y cristal con su cola. También es bueno para la defensa y el transporte. </li>
|
116 |
-
<li><strong>Triceratops</strong>: Un herbívoro versátil que puede recoger bayas y madera con sus cuernos. También es bueno para el combate y la agricultura. </li>
|
117 |
-
<li><strong>Raptor</strong>: Un carnívoro rápido y ágil que puede perseguir y atacar a su presa. También es bueno para la exploración y la caza. </li>
|
118 |
-
</ul>
|
119 |
-
<li><strong>¿Cómo puedo actualizar ARK Survival Evolved en mi PS Vita? </strong></li>
|
120 |
-
|
121 |
-
</ol></p> 64aa2da5cf<br />
|
122 |
-
<br />
|
123 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Aviator Hack 2022 .md
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Aviator Hack 2022: Cómo descargar y usarlo</h1>
|
3 |
-
<p>¿Estás buscando una manera de ganar en grande en el juego Aviator? ¿Quieres saber cómo descargar y utilizar la herramienta Aviator Hack que puede ayudarle a predecir el resultado del juego? Si es así, entonces estás en el lugar correcto. En este artículo, le diremos todo lo que necesita saber sobre Aviator Hack, cómo descargarlo en su PC y cómo usarlo para ganar en el juego Aviator. ¡Vamos a empezar! </p>
|
4 |
-
<h2>¿Qué es Aviator Hack? </h2>
|
5 |
-
<p>Aviator Hack es un programa de software que puede ayudarle a predecir el resultado del juego Aviator, un popular juego de apuestas en línea que implica apostar en el tiempo de vuelo de un avión. El juego es simple: usted pone su apuesta antes de que el avión despegue, y usted puede cobrar en cualquier momento antes de que el avión se estrella. Cuanto más tiempo permanezca el avión en el aire, mayor será su multiplicador. Sin embargo, si esperas demasiado y el avión se estrella antes de retirar el dinero, perderás tu apuesta. </p>
|
6 |
-
<h2>aviator hack 2022 скачать</h2><br /><p><b><b>Download File</b> » <a href="https://bltlly.com/2v6L9R">https://bltlly.com/2v6L9R</a></b></p><br /><br />
|
7 |
-
<h3>Una breve introducción a Aviator Hack y sus características</h3>
|
8 |
-
<p>Aviator Hack es un programa de software que puede ayudarle a predecir el resultado del juego Aviator mediante el análisis de los patrones y algoritmos del juego. Puede darle señales y alertas sobre cuándo apostar, cuándo cobrar y cuándo evitar apostar. También puede mostrar las estadísticas y probabilidades de cada tiempo de vuelo, así como la historia y las tendencias de los vuelos anteriores. Con Aviator Hack, puede aumentar sus posibilidades de ganar en el juego Aviator siguiendo sus predicciones y recomendaciones. </p>
|
9 |
-
<h3>¿Cómo funciona Aviator Hack? </h3>
|
10 |
-
|
11 |
-
<h3>¿Por qué la gente utiliza Aviator Hack? </h3>
|
12 |
-
<p>La gente utiliza Aviator Hack por varias razones, tales como:</p>
|
13 |
-
<ul>
|
14 |
-
<li>Para divertirse y disfrutar de la emoción de los juegos de azar</li>
|
15 |
-
<li>Ganar dinero en el juego Aviator</li>
|
16 |
-
<li>Para poner a prueba sus habilidades e intuición en la predicción del resultado</li>
|
17 |
-
<li>Para aprender más sobre la mecánica y las estrategias del juego</li>
|
18 |
-
<li>Desafiarse a sí mismos y competir con otros jugadores</li>
|
19 |
-
</ul>
|
20 |
-
<p>Cualquiera que sea su razón es, el uso de Aviator Hack puede hacer que su experiencia de juego más emocionante y gratificante. </p>
|
21 |
-
<h2>¿Cómo descargar Aviator Hack en PC? </h2>
|
22 |
-
<p>Si desea descargar y usar Aviator Hack en su PC, necesitará un emulador que pueda ejecutar aplicaciones Android en su computadora. Uno de los mejores emuladores para este propósito es LDPlayer, que es rápido, estable, seguro y compatible con la mayoría de las aplicaciones y juegos de Android. Aquí están los pasos para descargar Aviator Hack en PC usando LDPlayer:</p>
|
23 |
-
<p></p>
|
24 |
-
<h3>Paso 1: Descargar e instalar el emulador LDPlayer</h3>
|
25 |
-
<p>El primer paso es descargar e instalar el emulador LDPlayer en su PC. Puedes hacer esto visitando [el sitio web oficial de LDPlayer]( 1 ) y siguiendo las instrucciones en la pantalla. El proceso de instalación es simple y rápido, y no tomará mucho espacio en su disco. Una vez instalado LDPlayer, puede iniciarlo y proceder al siguiente paso. </p>
|
26 |
-
<h3>Paso 2: Descargar apk Aviator Hack desde el sitio web oficial</h3>
|
27 |
-
<p>El siguiente paso es descargar apk Aviator Hack desde el sitio web oficial del software. Usted puede hacer esto visitando [sitio web oficial de Aviator Hack] y haciendo clic en el botón de descarga. Tendrá que introducir su dirección de correo electrónico y verificar su identidad para obtener el enlace de descarga. Una vez hayas descargado el archivo apk, puedes guardarlo en tu PC y arrastrarlo y soltarlo en LDPlayer para instalarlo. </p>
|
28 |
-
<h3>Paso 3: Instalar y ejecutar Aviator Hack en LDPlayer</h3>
|
29 |
-
|
30 |
-
<h2>¿Cómo utilizar Aviator Hack para ganar en el juego Aviator? </h2>
|
31 |
-
<p>Ahora que ha descargado e instalado Aviator Hack en su PC, es posible que se pregunte cómo usarlo para ganar en el juego Aviator. Aquí hay algunos consejos y trucos que pueden ayudarte:</p>
|
32 |
-
<h3>Los fundamentos del juego Aviator y cómo jugarlo</h3>
|
33 |
-
<p>El juego Aviator es un juego de apuestas en línea simple y divertido que implica apostar en el tiempo de vuelo de un avión. El juego tiene dos modos: manual y automático. En el modo manual, puede realizar su apuesta antes de que el avión despegue, y puede cobrar en cualquier momento antes de que el avión se estrelle. En el modo automático, puedes establecer la cantidad de tu apuesta y cobrar el multiplicador, y dejar que el juego haga el resto por ti. Cuanto más tiempo permanezca el avión en el aire, mayor será su multiplicador. Sin embargo, si esperas demasiado y el avión se estrella antes de retirar el dinero, perderás tu apuesta. </p>
|
34 |
-
<h3>Los consejos y trucos de usar Aviator Hack para predecir el resultado</h3>
|
35 |
-
<p>Aviator Hack puede ayudarle a predecir el resultado del juego Aviator dándole señales y alertas sobre cuándo apostar, cuándo cobrar y cuándo evitar las apuestas. También puede mostrar las estadísticas y probabilidades de cada tiempo de vuelo, así como la historia y las tendencias de los vuelos anteriores. Aquí hay algunos consejos y trucos de usar Aviator Hack para predecir el resultado:</p>
|
36 |
-
<ul>
|
37 |
-
<li>Siga las señales y alertas de Aviator Hack cuidadosamente. Se basan en un algoritmo sofisticado que puede descifrar y decodificar la lógica detrás del juego Aviator. </li>
|
38 |
-
<li>Utilice las estadísticas y probabilidades de cada tiempo de vuelo para tomar decisiones informadas. Se basan en datos históricos y tendencias actuales que pueden ayudarle a estimar las probabilidades de cada resultado. </li>
|
39 |
-
<li>Utilice la historia y las tendencias de los vuelos anteriores para detectar patrones y anomalías. Pueden ayudarte a identificar oportunidades y riesgos potenciales en cada ronda del juego. </li>
|
40 |
-
|
41 |
-
<li>No se basan únicamente en Aviator Hack, sino también utilizar sus propias habilidades e intuición. Recuerde que Aviator Hack no es una garantía de ganar, pero una herramienta que puede ayudarle a mejorar sus posibilidades. </li>
|
42 |
-
</ul>
|
43 |
-
<h3>Los riesgos y beneficios de usar Aviator Hack</h3>
|
44 |
-
<p>Usando Aviator Hack puede tener tanto riesgos y beneficios para su experiencia de juego. Aquí están algunos de ellos:</p>
|
45 |
-
<tabla>
|
46 |
-
<tr><th>Riesgos</th><th>Beneficios</th></tr>
|
47 |
-
<tr><td>Es posible que se vuelva adicto al juego y pierda más de lo que puede permitirse. </td><td>Puede divertirse y disfrutar de la emoción del juego. </td></tr>
|
48 |
-
<tr><td>Es posible que te atrapen los desarrolladores de juegos o las autoridades y te enfrentes a consecuencias legales. </td><td>Puedes ganar dinero ganando en el juego Aviator. </td></tr>
|
49 |
-
<tr><td>Usted puede ser estafado por sitios web falsos o maliciosos que ofrecen descargas Aviator Hack. </td><td>Puedes aprender más sobre la mecánica y las estrategias del juego. </td></tr>
|
50 |
-
<tr><td>Es posible que te aburras o te frustres al usar un hack en lugar de jugar limpio. </td><td>Puedes desafiarte a ti mismo y competir con otros jugadores. </td></tr>
|
51 |
-
</tabla>
|
52 |
-
<p>Por lo tanto, usted debe utilizar Aviator Hack de forma responsable y bajo su propio riesgo. También debes respetar las reglas y regulaciones de los desarrolladores y autoridades del juego, así como los derechos e intereses de otros jugadores. </p>
|
53 |
-
<h2>Conclusión</h2>
|
54 |
-
|
55 |
-
<h2>Preguntas frecuentes</h2>
|
56 |
-
<p>Aquí hay algunas preguntas frecuentes sobre Aviator Hack:</p>
|
57 |
-
<h3>Q: ¿Es Aviator Hack seguro y legal? </h3>
|
58 |
-
<p>A: Aviator Hack es seguro y legal, siempre y cuando se descarga desde el sitio web oficial del software y usarlo en un emulador de confianza como LDPlayer. Sin embargo, también debes respetar las reglas y regulaciones de los desarrolladores y autoridades del juego, así como los derechos e intereses de otros jugadores. El uso de Aviator Hack puede violar algunos términos y condiciones del juego, por lo que debe usarlo bajo su propio riesgo. </p>
|
59 |
-
<h3>Q: ¿Cuánto cuesta Aviator Hack? </h3>
|
60 |
-
<p>A: Aviator Hack es gratis para descargar y usar por un tiempo limitado. Sin embargo, es posible que tenga que pagar una cuota de suscripción o hacer una donación para acceder a algunas funciones avanzadas o actualizaciones del software. Puede consultar los precios en el sitio web oficial del software. </p>
|
61 |
-
<h3>Q: ¿Aviator Hack funciona en dispositivos móviles? </h3>
|
62 |
-
<p>A: Aviator Hack funciona en dispositivos móviles que ejecutan el sistema operativo Android. Puede descargar apk Aviator Hack desde el sitio web oficial del software e instalarlo en su dispositivo móvil. Sin embargo, puede experimentar algunos problemas de rendimiento o problemas de compatibilidad dependiendo del modelo y las especificaciones del dispositivo. </p>
|
63 |
-
<h3>Q: ¿Aviator Hack garantiza ganar en el juego Aviator? </h3>
|
64 |
-
<p>A: Aviator Hack no garantiza ganar en el juego Aviator. Es una herramienta que puede ayudarte a mejorar tus posibilidades de ganar al darte predicciones y sugerencias basadas en un algoritmo sofisticado que puede descifrar y decodificar la lógica detrás del juego. Sin embargo, no es una bala mágica que puede hacerte ganar cada vez. Todavía necesitas usar tus propias habilidades e intuición, así como seguir una estrategia equilibrada que combine riesgo y recompensa. </p>
|
65 |
-
<h3>Q: ¿Dónde puedo encontrar más información sobre Aviator Hack? </h3> 64aa2da5cf<br />
|
66 |
-
<br />
|
67 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descarga Apk De WhatsApp Gb 2019.md
DELETED
@@ -1,66 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<br> - Beneficios de WhatsApp GB: enumerar algunas de las características y personalizaciones que GB WhatsApp ofrece <br> - Riesgos de WhatsApp GB: mencionar algunos de los inconvenientes y problemas potenciales de usar WhatsApp GB | | H2: Cómo descargar e instalar GB WhatsApp APK en su dispositivo Android | - Paso 1: Habilitar fuentes desconocidas en la configuración de su dispositivo <br> - Paso 2: Descargar la última versión de GB WhatsApp APK de una fuente confiable <br> - Paso 3: Instale el archivo APK y verifique su número de teléfono <br> - Paso 4: Disfrute usando GB WhatsApp con sus características adicionales | | H2: Cómo actualizar GB WhatsApp a la última versión | - Paso 1: Compruebe si hay actualizaciones en la aplicación WhatsApp GB o sitio web <br> - Paso 2: Descargar el archivo APK actualizado e instalarlo sobre la aplicación existente <br> - Paso 3: Copia de seguridad de sus chats y medios antes de actualizar para evitar la pérdida de datos <br> - Paso 4: Reinicie su dispositivo y inicie GB WhatsApp | | H2: Cómo cambiar de GB WhatsApp a la aplicación oficial WhatsApp | - Paso 1: Copia de seguridad de sus chats y medios de comunicación en GB WhatsApp <br> - Paso 2: Desinstalar GB WhatsApp de su dispositivo <br> - Paso 3: Descargar e instalar la aplicación oficial de WhatsApp desde la Play Store <br> - Paso 4: Restaurar la copia de seguridad y verificar su número de teléfono | | | H2: Conclusión y preguntas frecuentes | - Resumen: resumen de los puntos principales del artículo y proporcionar una llamada a la acción <br> - Preguntas frecuentes: responder algunas preguntas comunes sobre WhatsApp GB | Tabla 2: Artículo con formato HTML <h1>Qué es WhatsApp GB y por qué debería descargarlo</h1>
|
3 |
-
<p>Si eres un usuario habitual de WhatsApp, es posible que hayas oído hablar de GB WhatsApp, una versión modificada de la aplicación oficial que ofrece más funciones y personalizaciones. Pero ¿qué es exactamente WhatsApp GB y cómo se diferencia de la aplicación original? En este artículo, explicaremos todo lo que necesitas saber sobre WhatsApp GB, incluidos sus beneficios, riesgos y cómo descargar, instalar, actualizar y cambiar de él. </p>
|
4 |
-
<h3>Beneficios de GB WhatsApp</h3>
|
5 |
-
|
6 |
-
<ul>
|
7 |
-
<li>Soporte multilenguaje: puede elegir entre más de 100 idiomas para usar en GB WhatsApp</li>
|
8 |
-
<li>Emojis adicionales: puedes acceder a más emoticonos y pegatinas que en la aplicación oficial</li>
|
9 |
-
<li>Más mensajes de difusión: puede enviar hasta 600 mensajes a múltiples contactos a la vez</li>
|
10 |
-
<li> Modo de privacidad mejorado: puede ocultar su última vista, garrapatas azules, garrapatas dobles, estado de escritura y estado en línea</li>
|
11 |
-
<li>Cuentas duales: puedes usar dos cuentas de WhatsApp en el mismo dispositivo con GB WhatsApp</li>
|
12 |
-
<li>Personalización del tema: puede cambiar la apariencia y la interfaz de WhatsApp GB de acuerdo con su preferencia</li>
|
13 |
-
<li>Funciones de edición adicionales: puede enviar hasta 90 imágenes a la vez, copiar estados a su portapapeles, usar hasta 255 caracteres en su estado, crear nombres de grupo con hasta 35 caracteres y enviar archivos APK grandes</li>
|
14 |
-
</ul>
|
15 |
-
<h3>Riesgos de GB WhatsApp</h3>
|
16 |
-
<p>Aunque WhatsApp GB puede sonar como una gran alternativa a la aplicación oficial, también viene con algunos inconvenientes y problemas potenciales que usted debe ser consciente de antes de descargarlo. Algunos de los riesgos de usar WhatsApp GB son:</p>
|
17 |
-
<h2>descarga apk de WhatsApp gb 2019</h2><br /><p><b><b>DOWNLOAD</b> ✪✪✪ <a href="https://bltlly.com/2v6Lxc">https://bltlly.com/2v6Lxc</a></b></p><br /><br />
|
18 |
-
<ul>
|
19 |
-
<li>Falta de soporte oficial: ya que GB WhatsApp no es una aplicación autorizada por WhatsApp Inc., no recibe ninguna actualización o corrección de errores de los desarrolladores. Esto significa que puede no ser compatible con las últimas versiones de Android o WhatsApp, y puede tener vulnerabilidades de seguridad o problemas técnicos. </li>
|
20 |
-
<li>Posibilidad de prohibición de cuenta: el uso de WhatsApp GB puede violar los términos y condiciones de WhatsApp Inc., lo que puede resultar en su cuenta está prohibido o suspendido. Esto puede causar que pierdas el acceso a tus chats y contactos en ambas aplicaciones. </li>
|
21 |
-
|
22 |
-
<li>Infección de malware: ya que GB WhatsApp no está disponible en la Play Store oficial, tienes que descargarlo de fuentes desconocidas que pueden no ser confiables. Esto puede exponer su dispositivo a malware o virus que pueden dañar su sistema o robar sus datos. </li>
|
23 |
-
</ul>
|
24 |
-
<h2> Cómo descargar e instalar GB WhatsApp APK en su dispositivo Android</h2>
|
25 |
-
<p>Si todavía está interesado en probar WhatsApp GB, tendrá que descargar e instalar el archivo APK en su dispositivo Android. APK significa Android Package Kit, y es un formato de archivo que le permite instalar aplicaciones que no están disponibles en la Play Store. Sin embargo, usted debe tener cuidado acerca de dónde descargar el archivo APK de, como algunas fuentes pueden contener archivos maliciosos o falsos. Aquí están los pasos para descargar e instalar GB WhatsApp APK en su dispositivo Android:</p>
|
26 |
-
<h3>Paso 1: Habilitar fuentes desconocidas en la configuración del dispositivo</h3>
|
27 |
-
<p>Antes de que pueda instalar cualquier archivo APK en su dispositivo, debe habilitar la opción para permitir la instalación desde fuentes desconocidas. Esto le permitirá instalar aplicaciones que no son de Play Store. Para ello, vaya a la configuración del dispositivo y busque la opción de seguridad o privacidad. Entonces, encontrar la opción que dice "Fuentes desconocidas" o "Instalar aplicaciones desconocidas" y alternar en. Es posible que vea un mensaje de advertencia que le informa sobre los riesgos de instalar aplicaciones desconocidas, pero puede ignorarlo si confía en el origen del archivo APK. </p>
|
28 |
-
<h3>Paso 2: Descargar la última versión de GB WhatsApp APK de una fuente confiable</h3>
|
29 |
-
<p>Siguiente, es necesario descargar el archivo GB WhatsApp APK de una fuente confiable. Usted puede buscar en línea, pero asegúrese de comprobar las opiniones y calificaciones de la página web antes de descargar nada. También puede utilizar este enlace para descargar la última versión de GB WhatsApp APK (v17.35) a partir de junio de 2023. El tamaño del archivo es de unos 47 MB, así que asegúrate de tener suficiente espacio en el dispositivo antes de descargarlo. </p>
|
30 |
-
<h3>Paso 3: Instalar el archivo APK y verificar su número de teléfono</h3>
|
31 |
-
|
32 |
-
<h3>Paso 4: Disfruta usando GB WhatsApp con sus características adicionales</h3>
|
33 |
-
<p>Felicidades! Ha instalado con éxito WhatsApp GB en su dispositivo Android. Ahora puede disfrutar de sus características adicionales y personalizaciones. Puede acceder a la configuración de GB pulsando en el icono de tres puntos en la esquina superior derecha de la aplicación y seleccionando "Configuración de GB". Aquí puede cambiar el tema, el modo de privacidad, los mensajes de difusión, emojis, y más. También puedes explorar las otras opciones de la aplicación, como chats, llamadas, estado y cámara. </p> <h2>Cómo actualizar GB WhatsApp a la última versión</h2>
|
34 |
-
<p>Uno de los inconvenientes de usar WhatsApp GB es que no recibe actualizaciones automáticas de los desarrolladores oficiales de WhatsApp. Esto significa que tiene que actualizarlo manualmente cada vez que se lanza una nueva versión. La actualización de GB WhatsApp es importante para asegurarse de que tiene las últimas características, correcciones de errores y parches de seguridad. Estos son los pasos para actualizar GB WhatsApp a la última versión:</p>
|
35 |
-
<h3>Paso 1: Busque actualizaciones en la aplicación de WhatsApp GB o en el sitio web</h3>
|
36 |
-
<p>Lo primero que tienes que hacer es comprobar si hay una nueva versión de WhatsApp GB disponible. Puede hacer esto abriendo la aplicación WhatsApp GB y tocando el icono de tres puntos en la esquina superior derecha y seleccionando "Actualizaciones", o visitando el sitio web de WhatsApp GB y buscando el último número de versión. Si hay una nueva versión, verá una notificación o un enlace de descarga. </p>
|
37 |
-
<h3>Paso 2: Descargar el archivo APK actualizado e instalarlo sobre la aplicación existente</h3>
|
38 |
-
|
39 |
-
<h3>Paso 3: Copia de seguridad de sus chats y medios de comunicación antes de actualizar para evitar la pérdida de datos</h3>
|
40 |
-
<p>Antes de actualizar GB WhatsApp, se recomienda que haga copias de seguridad de sus chats y medios para evitar perder ningún dato. Para ello, abra la aplicación WhatsApp GB y toque en el icono de tres puntos en la esquina superior derecha y seleccione "Configuración". Luego, toque en "Chats" y seleccione "Copia de seguridad de chat". Aquí puede elegir hacer una copia de seguridad de sus chats y medios en el almacenamiento de su dispositivo o Google Drive. También puede configurar una frecuencia de copia de seguridad y una contraseña. Una vez que haya realizado una copia de seguridad de sus datos, puede continuar con la actualización. </p>
|
41 |
-
<h3>Paso 4: Reiniciar el dispositivo y lanzar GB WhatsApp</h3>
|
42 |
-
<p>Una vez completada la instalación, es necesario reiniciar el dispositivo para asegurarse de que la actualización se aplica correctamente. Para ello, mantenga pulsado el botón de encendido en su dispositivo y seleccione "Reiniciar". Una vez que el dispositivo se ha reiniciado, inicie la aplicación WhatsApp GB y verifique que se ha actualizado a la última versión. Puede comprobar esto pulsando en el icono de tres puntos en la esquina superior derecha y seleccionando "Configuración de GB". Aquí puede ver el número de versión y la fecha de su aplicación WhatsApp GB. </p>
|
43 |
-
<p></p> <h2>Cómo cambiar de GB WhatsApp a la aplicación WhatsApp oficial</h2>
|
44 |
-
<p>Si decides que ya no quieres usar WhatsApp GB y quieres volver a la aplicación oficial de WhatsApp, tendrás que seguir algunos pasos para asegurarte de que no pierdas tus datos o te prohíban. Estos son los pasos para cambiar de GB WhatsApp a la aplicación oficial de WhatsApp:</p>
|
45 |
-
<h3>Paso 1: Copia de seguridad de sus chats y medios de comunicación en GB WhatsApp</h3>
|
46 |
-
|
47 |
-
<h3>Paso 2: Desinstalar GB WhatsApp desde su dispositivo</h3>
|
48 |
-
<p>Siguiente, es necesario desinstalar GB WhatsApp desde su dispositivo, para que pueda instalar la aplicación oficial. Para ello, vaya a la configuración del dispositivo y busque la opción de aplicaciones o aplicaciones. Luego, busque GB WhatsApp y toque en él. Verá una opción para desinstalar la aplicación, así que toque en ella y confirme su acción. Es posible que vea un mensaje que le dice que la desinstalación de WhatsApp GB eliminará todos sus datos, pero puede ignorarlo si ha realizado una copia de seguridad de sus datos. </p>
|
49 |
-
<h3>Paso 3: Descargar e instalar la aplicación oficial de WhatsApp de la Play Store</h3>
|
50 |
-
<p>Después de haber desinstalado GB WhatsApp, es necesario descargar e instalar la aplicación oficial de WhatsApp de la Play Store. Para ello, abre la aplicación Play Store en tu dispositivo y busca WhatsApp. Verás la aplicación oficial con un icono verde y un símbolo de teléfono. Toque en él y seleccione "Instalar". Espere a que la instalación termine y luego inicie la aplicación. </p>
|
51 |
-
<h3>Paso 4: Restaurar la copia de seguridad y verificar su número de teléfono</h3>
|
52 |
-
<p>El último paso es restaurar su copia de seguridad y verificar su número de teléfono en la aplicación oficial de WhatsApp. Para ello, abre la aplicación y acepta los términos y condiciones. Luego, ingresa tu número de teléfono que usaste en GB WhatsApp y toca "Siguiente". Recibirás un código de verificación por SMS o llamada, así que introdúcelo en la aplicación. Después de eso, verá una opción para restaurar su copia de seguridad desde Google Drive o el almacenamiento del dispositivo, dependiendo de dónde lo guardó. Toca en "Restaurar" y espera a que el proceso termine. Una vez hecho, verás tus chats y medios en la aplicación oficial de WhatsApp. </p>
|
53 |
-
<h2>Conclusión y preguntas frecuentes</h2>
|
54 |
-
|
55 |
-
<p>Aquí hay algunas preguntas frecuentes sobre GB WhatsApp:</p>
|
56 |
-
<h4>Q: ¿GB WhatsApp es legal? </h4>
|
57 |
-
<p>A: GB WhatsApp no es una aplicación autorizada o con licencia por WhatsApp Inc., lo que significa que puede violar sus términos y condiciones de servicio. Por lo tanto, el uso de WhatsApp GB puede no ser legal en algunos países o regiones. </p>
|
58 |
-
<h4>Q: ¿Es seguro WhatsApp GB? </h4>
|
59 |
-
<p>A: GB WhatsApp no es una aplicación oficial, lo que significa que puede no tener el mismo cifrado o protección que la aplicación original. Esto puede exponer sus datos personales, como mensajes, fotos, videos o ubicación, a terceros o piratas informáticos. Además, la descarga de WhatsApp GB de fuentes desconocidas puede exponer su dispositivo a malware o virus que pueden dañar su sistema o robar sus datos. </p>
|
60 |
-
<h4>Q: ¿Puedo usar WhatsApp GB y WhatsApp oficial en el mismo dispositivo? </h4>
|
61 |
-
<p>A: Sí, puedes usar WhatsApp GB y WhatsApp oficial en el mismo dispositivo con diferentes números de teléfono. Sin embargo, esto puede causar algunos conflictos o errores en ambas aplicaciones, como problemas de sincronización o prohibiciones de cuentas. </p>
|
62 |
-
<h4>Q: ¿Perderé mis chats y medios si cambio de GB WhatsApp a WhatsApp oficial? </h4>
|
63 |
-
<p>A: No, no perderá sus chats y medios si cambia de GB WhatsApp a WhatsApp oficial, siempre y cuando haga una copia de seguridad de sus datos antes de desinstalar GB WhatsApp. Puede restaurar su copia de seguridad en la aplicación oficial después de verificar su número de teléfono. </p>
|
64 |
-
<h4>P: ¿Cómo puedo contactar al soporte de WhatsApp de GB? </h <p>A: GB WhatsApp no tiene un equipo de soporte oficial o sitio web, ya que no es una aplicación autorizada por WhatsApp Inc. Por lo tanto, es posible que no pueda ponerse en contacto con el soporte de GB WhatsApp para cualquier problema o consulta. Sin embargo, puedes intentar ponerte en contacto con los desarrolladores de WhatsApp GB a través de sus cuentas de redes sociales o direcciones de correo electrónico, que se pueden encontrar en el sitio web o aplicación de WhatsApp GB. </p> 64aa2da5cf<br />
|
65 |
-
<br />
|
66 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/models/index.py
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
import urllib.parse
|
2 |
-
|
3 |
-
|
4 |
-
class PackageIndex:
|
5 |
-
"""Represents a Package Index and provides easier access to endpoints"""
|
6 |
-
|
7 |
-
__slots__ = ["url", "netloc", "simple_url", "pypi_url", "file_storage_domain"]
|
8 |
-
|
9 |
-
def __init__(self, url: str, file_storage_domain: str) -> None:
|
10 |
-
super().__init__()
|
11 |
-
self.url = url
|
12 |
-
self.netloc = urllib.parse.urlsplit(url).netloc
|
13 |
-
self.simple_url = self._url_for_path("simple")
|
14 |
-
self.pypi_url = self._url_for_path("pypi")
|
15 |
-
|
16 |
-
# This is part of a temporary hack used to block installs of PyPI
|
17 |
-
# packages which depend on external urls only necessary until PyPI can
|
18 |
-
# block such packages themselves
|
19 |
-
self.file_storage_domain = file_storage_domain
|
20 |
-
|
21 |
-
def _url_for_path(self, path: str) -> str:
|
22 |
-
return urllib.parse.urljoin(self.url, path)
|
23 |
-
|
24 |
-
|
25 |
-
PyPI = PackageIndex("https://pypi.org/", file_storage_domain="files.pythonhosted.org")
|
26 |
-
TestPyPI = PackageIndex(
|
27 |
-
"https://test.pypi.org/", file_storage_domain="test-files.pythonhosted.org"
|
28 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/urllib3/packages/six.py
DELETED
@@ -1,1076 +0,0 @@
|
|
1 |
-
# Copyright (c) 2010-2020 Benjamin Peterson
|
2 |
-
#
|
3 |
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4 |
-
# of this software and associated documentation files (the "Software"), to deal
|
5 |
-
# in the Software without restriction, including without limitation the rights
|
6 |
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7 |
-
# copies of the Software, and to permit persons to whom the Software is
|
8 |
-
# furnished to do so, subject to the following conditions:
|
9 |
-
#
|
10 |
-
# The above copyright notice and this permission notice shall be included in all
|
11 |
-
# copies or substantial portions of the Software.
|
12 |
-
#
|
13 |
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14 |
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15 |
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16 |
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17 |
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18 |
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19 |
-
# SOFTWARE.
|
20 |
-
|
21 |
-
"""Utilities for writing code that runs on Python 2 and 3"""
|
22 |
-
|
23 |
-
from __future__ import absolute_import
|
24 |
-
|
25 |
-
import functools
|
26 |
-
import itertools
|
27 |
-
import operator
|
28 |
-
import sys
|
29 |
-
import types
|
30 |
-
|
31 |
-
__author__ = "Benjamin Peterson <[email protected]>"
|
32 |
-
__version__ = "1.16.0"
|
33 |
-
|
34 |
-
|
35 |
-
# Useful for very coarse version differentiation.
|
36 |
-
PY2 = sys.version_info[0] == 2
|
37 |
-
PY3 = sys.version_info[0] == 3
|
38 |
-
PY34 = sys.version_info[0:2] >= (3, 4)
|
39 |
-
|
40 |
-
if PY3:
|
41 |
-
string_types = (str,)
|
42 |
-
integer_types = (int,)
|
43 |
-
class_types = (type,)
|
44 |
-
text_type = str
|
45 |
-
binary_type = bytes
|
46 |
-
|
47 |
-
MAXSIZE = sys.maxsize
|
48 |
-
else:
|
49 |
-
string_types = (basestring,)
|
50 |
-
integer_types = (int, long)
|
51 |
-
class_types = (type, types.ClassType)
|
52 |
-
text_type = unicode
|
53 |
-
binary_type = str
|
54 |
-
|
55 |
-
if sys.platform.startswith("java"):
|
56 |
-
# Jython always uses 32 bits.
|
57 |
-
MAXSIZE = int((1 << 31) - 1)
|
58 |
-
else:
|
59 |
-
# It's possible to have sizeof(long) != sizeof(Py_ssize_t).
|
60 |
-
class X(object):
|
61 |
-
def __len__(self):
|
62 |
-
return 1 << 31
|
63 |
-
|
64 |
-
try:
|
65 |
-
len(X())
|
66 |
-
except OverflowError:
|
67 |
-
# 32-bit
|
68 |
-
MAXSIZE = int((1 << 31) - 1)
|
69 |
-
else:
|
70 |
-
# 64-bit
|
71 |
-
MAXSIZE = int((1 << 63) - 1)
|
72 |
-
del X
|
73 |
-
|
74 |
-
if PY34:
|
75 |
-
from importlib.util import spec_from_loader
|
76 |
-
else:
|
77 |
-
spec_from_loader = None
|
78 |
-
|
79 |
-
|
80 |
-
def _add_doc(func, doc):
|
81 |
-
"""Add documentation to a function."""
|
82 |
-
func.__doc__ = doc
|
83 |
-
|
84 |
-
|
85 |
-
def _import_module(name):
|
86 |
-
"""Import module, returning the module after the last dot."""
|
87 |
-
__import__(name)
|
88 |
-
return sys.modules[name]
|
89 |
-
|
90 |
-
|
91 |
-
class _LazyDescr(object):
|
92 |
-
def __init__(self, name):
|
93 |
-
self.name = name
|
94 |
-
|
95 |
-
def __get__(self, obj, tp):
|
96 |
-
result = self._resolve()
|
97 |
-
setattr(obj, self.name, result) # Invokes __set__.
|
98 |
-
try:
|
99 |
-
# This is a bit ugly, but it avoids running this again by
|
100 |
-
# removing this descriptor.
|
101 |
-
delattr(obj.__class__, self.name)
|
102 |
-
except AttributeError:
|
103 |
-
pass
|
104 |
-
return result
|
105 |
-
|
106 |
-
|
107 |
-
class MovedModule(_LazyDescr):
|
108 |
-
def __init__(self, name, old, new=None):
|
109 |
-
super(MovedModule, self).__init__(name)
|
110 |
-
if PY3:
|
111 |
-
if new is None:
|
112 |
-
new = name
|
113 |
-
self.mod = new
|
114 |
-
else:
|
115 |
-
self.mod = old
|
116 |
-
|
117 |
-
def _resolve(self):
|
118 |
-
return _import_module(self.mod)
|
119 |
-
|
120 |
-
def __getattr__(self, attr):
|
121 |
-
_module = self._resolve()
|
122 |
-
value = getattr(_module, attr)
|
123 |
-
setattr(self, attr, value)
|
124 |
-
return value
|
125 |
-
|
126 |
-
|
127 |
-
class _LazyModule(types.ModuleType):
|
128 |
-
def __init__(self, name):
|
129 |
-
super(_LazyModule, self).__init__(name)
|
130 |
-
self.__doc__ = self.__class__.__doc__
|
131 |
-
|
132 |
-
def __dir__(self):
|
133 |
-
attrs = ["__doc__", "__name__"]
|
134 |
-
attrs += [attr.name for attr in self._moved_attributes]
|
135 |
-
return attrs
|
136 |
-
|
137 |
-
# Subclasses should override this
|
138 |
-
_moved_attributes = []
|
139 |
-
|
140 |
-
|
141 |
-
class MovedAttribute(_LazyDescr):
|
142 |
-
def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None):
|
143 |
-
super(MovedAttribute, self).__init__(name)
|
144 |
-
if PY3:
|
145 |
-
if new_mod is None:
|
146 |
-
new_mod = name
|
147 |
-
self.mod = new_mod
|
148 |
-
if new_attr is None:
|
149 |
-
if old_attr is None:
|
150 |
-
new_attr = name
|
151 |
-
else:
|
152 |
-
new_attr = old_attr
|
153 |
-
self.attr = new_attr
|
154 |
-
else:
|
155 |
-
self.mod = old_mod
|
156 |
-
if old_attr is None:
|
157 |
-
old_attr = name
|
158 |
-
self.attr = old_attr
|
159 |
-
|
160 |
-
def _resolve(self):
|
161 |
-
module = _import_module(self.mod)
|
162 |
-
return getattr(module, self.attr)
|
163 |
-
|
164 |
-
|
165 |
-
class _SixMetaPathImporter(object):
|
166 |
-
|
167 |
-
"""
|
168 |
-
A meta path importer to import six.moves and its submodules.
|
169 |
-
|
170 |
-
This class implements a PEP302 finder and loader. It should be compatible
|
171 |
-
with Python 2.5 and all existing versions of Python3
|
172 |
-
"""
|
173 |
-
|
174 |
-
def __init__(self, six_module_name):
|
175 |
-
self.name = six_module_name
|
176 |
-
self.known_modules = {}
|
177 |
-
|
178 |
-
def _add_module(self, mod, *fullnames):
|
179 |
-
for fullname in fullnames:
|
180 |
-
self.known_modules[self.name + "." + fullname] = mod
|
181 |
-
|
182 |
-
def _get_module(self, fullname):
|
183 |
-
return self.known_modules[self.name + "." + fullname]
|
184 |
-
|
185 |
-
def find_module(self, fullname, path=None):
|
186 |
-
if fullname in self.known_modules:
|
187 |
-
return self
|
188 |
-
return None
|
189 |
-
|
190 |
-
def find_spec(self, fullname, path, target=None):
|
191 |
-
if fullname in self.known_modules:
|
192 |
-
return spec_from_loader(fullname, self)
|
193 |
-
return None
|
194 |
-
|
195 |
-
def __get_module(self, fullname):
|
196 |
-
try:
|
197 |
-
return self.known_modules[fullname]
|
198 |
-
except KeyError:
|
199 |
-
raise ImportError("This loader does not know module " + fullname)
|
200 |
-
|
201 |
-
def load_module(self, fullname):
|
202 |
-
try:
|
203 |
-
# in case of a reload
|
204 |
-
return sys.modules[fullname]
|
205 |
-
except KeyError:
|
206 |
-
pass
|
207 |
-
mod = self.__get_module(fullname)
|
208 |
-
if isinstance(mod, MovedModule):
|
209 |
-
mod = mod._resolve()
|
210 |
-
else:
|
211 |
-
mod.__loader__ = self
|
212 |
-
sys.modules[fullname] = mod
|
213 |
-
return mod
|
214 |
-
|
215 |
-
def is_package(self, fullname):
|
216 |
-
"""
|
217 |
-
Return true, if the named module is a package.
|
218 |
-
|
219 |
-
We need this method to get correct spec objects with
|
220 |
-
Python 3.4 (see PEP451)
|
221 |
-
"""
|
222 |
-
return hasattr(self.__get_module(fullname), "__path__")
|
223 |
-
|
224 |
-
def get_code(self, fullname):
|
225 |
-
"""Return None
|
226 |
-
|
227 |
-
Required, if is_package is implemented"""
|
228 |
-
self.__get_module(fullname) # eventually raises ImportError
|
229 |
-
return None
|
230 |
-
|
231 |
-
get_source = get_code # same as get_code
|
232 |
-
|
233 |
-
def create_module(self, spec):
|
234 |
-
return self.load_module(spec.name)
|
235 |
-
|
236 |
-
def exec_module(self, module):
|
237 |
-
pass
|
238 |
-
|
239 |
-
|
240 |
-
_importer = _SixMetaPathImporter(__name__)
|
241 |
-
|
242 |
-
|
243 |
-
class _MovedItems(_LazyModule):
|
244 |
-
|
245 |
-
"""Lazy loading of moved objects"""
|
246 |
-
|
247 |
-
__path__ = [] # mark as package
|
248 |
-
|
249 |
-
|
250 |
-
_moved_attributes = [
|
251 |
-
MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"),
|
252 |
-
MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"),
|
253 |
-
MovedAttribute(
|
254 |
-
"filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse"
|
255 |
-
),
|
256 |
-
MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"),
|
257 |
-
MovedAttribute("intern", "__builtin__", "sys"),
|
258 |
-
MovedAttribute("map", "itertools", "builtins", "imap", "map"),
|
259 |
-
MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"),
|
260 |
-
MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"),
|
261 |
-
MovedAttribute("getoutput", "commands", "subprocess"),
|
262 |
-
MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"),
|
263 |
-
MovedAttribute(
|
264 |
-
"reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload"
|
265 |
-
),
|
266 |
-
MovedAttribute("reduce", "__builtin__", "functools"),
|
267 |
-
MovedAttribute("shlex_quote", "pipes", "shlex", "quote"),
|
268 |
-
MovedAttribute("StringIO", "StringIO", "io"),
|
269 |
-
MovedAttribute("UserDict", "UserDict", "collections"),
|
270 |
-
MovedAttribute("UserList", "UserList", "collections"),
|
271 |
-
MovedAttribute("UserString", "UserString", "collections"),
|
272 |
-
MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"),
|
273 |
-
MovedAttribute("zip", "itertools", "builtins", "izip", "zip"),
|
274 |
-
MovedAttribute(
|
275 |
-
"zip_longest", "itertools", "itertools", "izip_longest", "zip_longest"
|
276 |
-
),
|
277 |
-
MovedModule("builtins", "__builtin__"),
|
278 |
-
MovedModule("configparser", "ConfigParser"),
|
279 |
-
MovedModule(
|
280 |
-
"collections_abc",
|
281 |
-
"collections",
|
282 |
-
"collections.abc" if sys.version_info >= (3, 3) else "collections",
|
283 |
-
),
|
284 |
-
MovedModule("copyreg", "copy_reg"),
|
285 |
-
MovedModule("dbm_gnu", "gdbm", "dbm.gnu"),
|
286 |
-
MovedModule("dbm_ndbm", "dbm", "dbm.ndbm"),
|
287 |
-
MovedModule(
|
288 |
-
"_dummy_thread",
|
289 |
-
"dummy_thread",
|
290 |
-
"_dummy_thread" if sys.version_info < (3, 9) else "_thread",
|
291 |
-
),
|
292 |
-
MovedModule("http_cookiejar", "cookielib", "http.cookiejar"),
|
293 |
-
MovedModule("http_cookies", "Cookie", "http.cookies"),
|
294 |
-
MovedModule("html_entities", "htmlentitydefs", "html.entities"),
|
295 |
-
MovedModule("html_parser", "HTMLParser", "html.parser"),
|
296 |
-
MovedModule("http_client", "httplib", "http.client"),
|
297 |
-
MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"),
|
298 |
-
MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"),
|
299 |
-
MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"),
|
300 |
-
MovedModule(
|
301 |
-
"email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart"
|
302 |
-
),
|
303 |
-
MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"),
|
304 |
-
MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"),
|
305 |
-
MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"),
|
306 |
-
MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"),
|
307 |
-
MovedModule("cPickle", "cPickle", "pickle"),
|
308 |
-
MovedModule("queue", "Queue"),
|
309 |
-
MovedModule("reprlib", "repr"),
|
310 |
-
MovedModule("socketserver", "SocketServer"),
|
311 |
-
MovedModule("_thread", "thread", "_thread"),
|
312 |
-
MovedModule("tkinter", "Tkinter"),
|
313 |
-
MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"),
|
314 |
-
MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"),
|
315 |
-
MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"),
|
316 |
-
MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"),
|
317 |
-
MovedModule("tkinter_tix", "Tix", "tkinter.tix"),
|
318 |
-
MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"),
|
319 |
-
MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"),
|
320 |
-
MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"),
|
321 |
-
MovedModule("tkinter_colorchooser", "tkColorChooser", "tkinter.colorchooser"),
|
322 |
-
MovedModule("tkinter_commondialog", "tkCommonDialog", "tkinter.commondialog"),
|
323 |
-
MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"),
|
324 |
-
MovedModule("tkinter_font", "tkFont", "tkinter.font"),
|
325 |
-
MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"),
|
326 |
-
MovedModule("tkinter_tksimpledialog", "tkSimpleDialog", "tkinter.simpledialog"),
|
327 |
-
MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"),
|
328 |
-
MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"),
|
329 |
-
MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"),
|
330 |
-
MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"),
|
331 |
-
MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"),
|
332 |
-
MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"),
|
333 |
-
]
|
334 |
-
# Add windows specific modules.
|
335 |
-
if sys.platform == "win32":
|
336 |
-
_moved_attributes += [
|
337 |
-
MovedModule("winreg", "_winreg"),
|
338 |
-
]
|
339 |
-
|
340 |
-
for attr in _moved_attributes:
|
341 |
-
setattr(_MovedItems, attr.name, attr)
|
342 |
-
if isinstance(attr, MovedModule):
|
343 |
-
_importer._add_module(attr, "moves." + attr.name)
|
344 |
-
del attr
|
345 |
-
|
346 |
-
_MovedItems._moved_attributes = _moved_attributes
|
347 |
-
|
348 |
-
moves = _MovedItems(__name__ + ".moves")
|
349 |
-
_importer._add_module(moves, "moves")
|
350 |
-
|
351 |
-
|
352 |
-
class Module_six_moves_urllib_parse(_LazyModule):
|
353 |
-
|
354 |
-
"""Lazy loading of moved objects in six.moves.urllib_parse"""
|
355 |
-
|
356 |
-
|
357 |
-
_urllib_parse_moved_attributes = [
|
358 |
-
MovedAttribute("ParseResult", "urlparse", "urllib.parse"),
|
359 |
-
MovedAttribute("SplitResult", "urlparse", "urllib.parse"),
|
360 |
-
MovedAttribute("parse_qs", "urlparse", "urllib.parse"),
|
361 |
-
MovedAttribute("parse_qsl", "urlparse", "urllib.parse"),
|
362 |
-
MovedAttribute("urldefrag", "urlparse", "urllib.parse"),
|
363 |
-
MovedAttribute("urljoin", "urlparse", "urllib.parse"),
|
364 |
-
MovedAttribute("urlparse", "urlparse", "urllib.parse"),
|
365 |
-
MovedAttribute("urlsplit", "urlparse", "urllib.parse"),
|
366 |
-
MovedAttribute("urlunparse", "urlparse", "urllib.parse"),
|
367 |
-
MovedAttribute("urlunsplit", "urlparse", "urllib.parse"),
|
368 |
-
MovedAttribute("quote", "urllib", "urllib.parse"),
|
369 |
-
MovedAttribute("quote_plus", "urllib", "urllib.parse"),
|
370 |
-
MovedAttribute("unquote", "urllib", "urllib.parse"),
|
371 |
-
MovedAttribute("unquote_plus", "urllib", "urllib.parse"),
|
372 |
-
MovedAttribute(
|
373 |
-
"unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes"
|
374 |
-
),
|
375 |
-
MovedAttribute("urlencode", "urllib", "urllib.parse"),
|
376 |
-
MovedAttribute("splitquery", "urllib", "urllib.parse"),
|
377 |
-
MovedAttribute("splittag", "urllib", "urllib.parse"),
|
378 |
-
MovedAttribute("splituser", "urllib", "urllib.parse"),
|
379 |
-
MovedAttribute("splitvalue", "urllib", "urllib.parse"),
|
380 |
-
MovedAttribute("uses_fragment", "urlparse", "urllib.parse"),
|
381 |
-
MovedAttribute("uses_netloc", "urlparse", "urllib.parse"),
|
382 |
-
MovedAttribute("uses_params", "urlparse", "urllib.parse"),
|
383 |
-
MovedAttribute("uses_query", "urlparse", "urllib.parse"),
|
384 |
-
MovedAttribute("uses_relative", "urlparse", "urllib.parse"),
|
385 |
-
]
|
386 |
-
for attr in _urllib_parse_moved_attributes:
|
387 |
-
setattr(Module_six_moves_urllib_parse, attr.name, attr)
|
388 |
-
del attr
|
389 |
-
|
390 |
-
Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes
|
391 |
-
|
392 |
-
_importer._add_module(
|
393 |
-
Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"),
|
394 |
-
"moves.urllib_parse",
|
395 |
-
"moves.urllib.parse",
|
396 |
-
)
|
397 |
-
|
398 |
-
|
399 |
-
class Module_six_moves_urllib_error(_LazyModule):
|
400 |
-
|
401 |
-
"""Lazy loading of moved objects in six.moves.urllib_error"""
|
402 |
-
|
403 |
-
|
404 |
-
_urllib_error_moved_attributes = [
|
405 |
-
MovedAttribute("URLError", "urllib2", "urllib.error"),
|
406 |
-
MovedAttribute("HTTPError", "urllib2", "urllib.error"),
|
407 |
-
MovedAttribute("ContentTooShortError", "urllib", "urllib.error"),
|
408 |
-
]
|
409 |
-
for attr in _urllib_error_moved_attributes:
|
410 |
-
setattr(Module_six_moves_urllib_error, attr.name, attr)
|
411 |
-
del attr
|
412 |
-
|
413 |
-
Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes
|
414 |
-
|
415 |
-
_importer._add_module(
|
416 |
-
Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"),
|
417 |
-
"moves.urllib_error",
|
418 |
-
"moves.urllib.error",
|
419 |
-
)
|
420 |
-
|
421 |
-
|
422 |
-
class Module_six_moves_urllib_request(_LazyModule):
|
423 |
-
|
424 |
-
"""Lazy loading of moved objects in six.moves.urllib_request"""
|
425 |
-
|
426 |
-
|
427 |
-
_urllib_request_moved_attributes = [
|
428 |
-
MovedAttribute("urlopen", "urllib2", "urllib.request"),
|
429 |
-
MovedAttribute("install_opener", "urllib2", "urllib.request"),
|
430 |
-
MovedAttribute("build_opener", "urllib2", "urllib.request"),
|
431 |
-
MovedAttribute("pathname2url", "urllib", "urllib.request"),
|
432 |
-
MovedAttribute("url2pathname", "urllib", "urllib.request"),
|
433 |
-
MovedAttribute("getproxies", "urllib", "urllib.request"),
|
434 |
-
MovedAttribute("Request", "urllib2", "urllib.request"),
|
435 |
-
MovedAttribute("OpenerDirector", "urllib2", "urllib.request"),
|
436 |
-
MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"),
|
437 |
-
MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"),
|
438 |
-
MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"),
|
439 |
-
MovedAttribute("ProxyHandler", "urllib2", "urllib.request"),
|
440 |
-
MovedAttribute("BaseHandler", "urllib2", "urllib.request"),
|
441 |
-
MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"),
|
442 |
-
MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"),
|
443 |
-
MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"),
|
444 |
-
MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"),
|
445 |
-
MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"),
|
446 |
-
MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"),
|
447 |
-
MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"),
|
448 |
-
MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"),
|
449 |
-
MovedAttribute("HTTPHandler", "urllib2", "urllib.request"),
|
450 |
-
MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"),
|
451 |
-
MovedAttribute("FileHandler", "urllib2", "urllib.request"),
|
452 |
-
MovedAttribute("FTPHandler", "urllib2", "urllib.request"),
|
453 |
-
MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"),
|
454 |
-
MovedAttribute("UnknownHandler", "urllib2", "urllib.request"),
|
455 |
-
MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"),
|
456 |
-
MovedAttribute("urlretrieve", "urllib", "urllib.request"),
|
457 |
-
MovedAttribute("urlcleanup", "urllib", "urllib.request"),
|
458 |
-
MovedAttribute("URLopener", "urllib", "urllib.request"),
|
459 |
-
MovedAttribute("FancyURLopener", "urllib", "urllib.request"),
|
460 |
-
MovedAttribute("proxy_bypass", "urllib", "urllib.request"),
|
461 |
-
MovedAttribute("parse_http_list", "urllib2", "urllib.request"),
|
462 |
-
MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"),
|
463 |
-
]
|
464 |
-
for attr in _urllib_request_moved_attributes:
|
465 |
-
setattr(Module_six_moves_urllib_request, attr.name, attr)
|
466 |
-
del attr
|
467 |
-
|
468 |
-
Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes
|
469 |
-
|
470 |
-
_importer._add_module(
|
471 |
-
Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"),
|
472 |
-
"moves.urllib_request",
|
473 |
-
"moves.urllib.request",
|
474 |
-
)
|
475 |
-
|
476 |
-
|
477 |
-
class Module_six_moves_urllib_response(_LazyModule):
|
478 |
-
|
479 |
-
"""Lazy loading of moved objects in six.moves.urllib_response"""
|
480 |
-
|
481 |
-
|
482 |
-
_urllib_response_moved_attributes = [
|
483 |
-
MovedAttribute("addbase", "urllib", "urllib.response"),
|
484 |
-
MovedAttribute("addclosehook", "urllib", "urllib.response"),
|
485 |
-
MovedAttribute("addinfo", "urllib", "urllib.response"),
|
486 |
-
MovedAttribute("addinfourl", "urllib", "urllib.response"),
|
487 |
-
]
|
488 |
-
for attr in _urllib_response_moved_attributes:
|
489 |
-
setattr(Module_six_moves_urllib_response, attr.name, attr)
|
490 |
-
del attr
|
491 |
-
|
492 |
-
Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes
|
493 |
-
|
494 |
-
_importer._add_module(
|
495 |
-
Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"),
|
496 |
-
"moves.urllib_response",
|
497 |
-
"moves.urllib.response",
|
498 |
-
)
|
499 |
-
|
500 |
-
|
501 |
-
class Module_six_moves_urllib_robotparser(_LazyModule):
|
502 |
-
|
503 |
-
"""Lazy loading of moved objects in six.moves.urllib_robotparser"""
|
504 |
-
|
505 |
-
|
506 |
-
_urllib_robotparser_moved_attributes = [
|
507 |
-
MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser"),
|
508 |
-
]
|
509 |
-
for attr in _urllib_robotparser_moved_attributes:
|
510 |
-
setattr(Module_six_moves_urllib_robotparser, attr.name, attr)
|
511 |
-
del attr
|
512 |
-
|
513 |
-
Module_six_moves_urllib_robotparser._moved_attributes = (
|
514 |
-
_urllib_robotparser_moved_attributes
|
515 |
-
)
|
516 |
-
|
517 |
-
_importer._add_module(
|
518 |
-
Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"),
|
519 |
-
"moves.urllib_robotparser",
|
520 |
-
"moves.urllib.robotparser",
|
521 |
-
)
|
522 |
-
|
523 |
-
|
524 |
-
class Module_six_moves_urllib(types.ModuleType):
|
525 |
-
|
526 |
-
"""Create a six.moves.urllib namespace that resembles the Python 3 namespace"""
|
527 |
-
|
528 |
-
__path__ = [] # mark as package
|
529 |
-
parse = _importer._get_module("moves.urllib_parse")
|
530 |
-
error = _importer._get_module("moves.urllib_error")
|
531 |
-
request = _importer._get_module("moves.urllib_request")
|
532 |
-
response = _importer._get_module("moves.urllib_response")
|
533 |
-
robotparser = _importer._get_module("moves.urllib_robotparser")
|
534 |
-
|
535 |
-
def __dir__(self):
|
536 |
-
return ["parse", "error", "request", "response", "robotparser"]
|
537 |
-
|
538 |
-
|
539 |
-
_importer._add_module(
|
540 |
-
Module_six_moves_urllib(__name__ + ".moves.urllib"), "moves.urllib"
|
541 |
-
)
|
542 |
-
|
543 |
-
|
544 |
-
def add_move(move):
|
545 |
-
"""Add an item to six.moves."""
|
546 |
-
setattr(_MovedItems, move.name, move)
|
547 |
-
|
548 |
-
|
549 |
-
def remove_move(name):
|
550 |
-
"""Remove item from six.moves."""
|
551 |
-
try:
|
552 |
-
delattr(_MovedItems, name)
|
553 |
-
except AttributeError:
|
554 |
-
try:
|
555 |
-
del moves.__dict__[name]
|
556 |
-
except KeyError:
|
557 |
-
raise AttributeError("no such move, %r" % (name,))
|
558 |
-
|
559 |
-
|
560 |
-
if PY3:
|
561 |
-
_meth_func = "__func__"
|
562 |
-
_meth_self = "__self__"
|
563 |
-
|
564 |
-
_func_closure = "__closure__"
|
565 |
-
_func_code = "__code__"
|
566 |
-
_func_defaults = "__defaults__"
|
567 |
-
_func_globals = "__globals__"
|
568 |
-
else:
|
569 |
-
_meth_func = "im_func"
|
570 |
-
_meth_self = "im_self"
|
571 |
-
|
572 |
-
_func_closure = "func_closure"
|
573 |
-
_func_code = "func_code"
|
574 |
-
_func_defaults = "func_defaults"
|
575 |
-
_func_globals = "func_globals"
|
576 |
-
|
577 |
-
|
578 |
-
try:
|
579 |
-
advance_iterator = next
|
580 |
-
except NameError:
|
581 |
-
|
582 |
-
def advance_iterator(it):
|
583 |
-
return it.next()
|
584 |
-
|
585 |
-
|
586 |
-
next = advance_iterator
|
587 |
-
|
588 |
-
|
589 |
-
try:
|
590 |
-
callable = callable
|
591 |
-
except NameError:
|
592 |
-
|
593 |
-
def callable(obj):
|
594 |
-
return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
|
595 |
-
|
596 |
-
|
597 |
-
if PY3:
|
598 |
-
|
599 |
-
def get_unbound_function(unbound):
|
600 |
-
return unbound
|
601 |
-
|
602 |
-
create_bound_method = types.MethodType
|
603 |
-
|
604 |
-
def create_unbound_method(func, cls):
|
605 |
-
return func
|
606 |
-
|
607 |
-
Iterator = object
|
608 |
-
else:
|
609 |
-
|
610 |
-
def get_unbound_function(unbound):
|
611 |
-
return unbound.im_func
|
612 |
-
|
613 |
-
def create_bound_method(func, obj):
|
614 |
-
return types.MethodType(func, obj, obj.__class__)
|
615 |
-
|
616 |
-
def create_unbound_method(func, cls):
|
617 |
-
return types.MethodType(func, None, cls)
|
618 |
-
|
619 |
-
class Iterator(object):
|
620 |
-
def next(self):
|
621 |
-
return type(self).__next__(self)
|
622 |
-
|
623 |
-
callable = callable
|
624 |
-
_add_doc(
|
625 |
-
get_unbound_function, """Get the function out of a possibly unbound function"""
|
626 |
-
)
|
627 |
-
|
628 |
-
|
629 |
-
get_method_function = operator.attrgetter(_meth_func)
|
630 |
-
get_method_self = operator.attrgetter(_meth_self)
|
631 |
-
get_function_closure = operator.attrgetter(_func_closure)
|
632 |
-
get_function_code = operator.attrgetter(_func_code)
|
633 |
-
get_function_defaults = operator.attrgetter(_func_defaults)
|
634 |
-
get_function_globals = operator.attrgetter(_func_globals)
|
635 |
-
|
636 |
-
|
637 |
-
if PY3:
|
638 |
-
|
639 |
-
def iterkeys(d, **kw):
|
640 |
-
return iter(d.keys(**kw))
|
641 |
-
|
642 |
-
def itervalues(d, **kw):
|
643 |
-
return iter(d.values(**kw))
|
644 |
-
|
645 |
-
def iteritems(d, **kw):
|
646 |
-
return iter(d.items(**kw))
|
647 |
-
|
648 |
-
def iterlists(d, **kw):
|
649 |
-
return iter(d.lists(**kw))
|
650 |
-
|
651 |
-
viewkeys = operator.methodcaller("keys")
|
652 |
-
|
653 |
-
viewvalues = operator.methodcaller("values")
|
654 |
-
|
655 |
-
viewitems = operator.methodcaller("items")
|
656 |
-
else:
|
657 |
-
|
658 |
-
def iterkeys(d, **kw):
|
659 |
-
return d.iterkeys(**kw)
|
660 |
-
|
661 |
-
def itervalues(d, **kw):
|
662 |
-
return d.itervalues(**kw)
|
663 |
-
|
664 |
-
def iteritems(d, **kw):
|
665 |
-
return d.iteritems(**kw)
|
666 |
-
|
667 |
-
def iterlists(d, **kw):
|
668 |
-
return d.iterlists(**kw)
|
669 |
-
|
670 |
-
viewkeys = operator.methodcaller("viewkeys")
|
671 |
-
|
672 |
-
viewvalues = operator.methodcaller("viewvalues")
|
673 |
-
|
674 |
-
viewitems = operator.methodcaller("viewitems")
|
675 |
-
|
676 |
-
_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.")
|
677 |
-
_add_doc(itervalues, "Return an iterator over the values of a dictionary.")
|
678 |
-
_add_doc(iteritems, "Return an iterator over the (key, value) pairs of a dictionary.")
|
679 |
-
_add_doc(
|
680 |
-
iterlists, "Return an iterator over the (key, [values]) pairs of a dictionary."
|
681 |
-
)
|
682 |
-
|
683 |
-
|
684 |
-
if PY3:
|
685 |
-
|
686 |
-
def b(s):
|
687 |
-
return s.encode("latin-1")
|
688 |
-
|
689 |
-
def u(s):
|
690 |
-
return s
|
691 |
-
|
692 |
-
unichr = chr
|
693 |
-
import struct
|
694 |
-
|
695 |
-
int2byte = struct.Struct(">B").pack
|
696 |
-
del struct
|
697 |
-
byte2int = operator.itemgetter(0)
|
698 |
-
indexbytes = operator.getitem
|
699 |
-
iterbytes = iter
|
700 |
-
import io
|
701 |
-
|
702 |
-
StringIO = io.StringIO
|
703 |
-
BytesIO = io.BytesIO
|
704 |
-
del io
|
705 |
-
_assertCountEqual = "assertCountEqual"
|
706 |
-
if sys.version_info[1] <= 1:
|
707 |
-
_assertRaisesRegex = "assertRaisesRegexp"
|
708 |
-
_assertRegex = "assertRegexpMatches"
|
709 |
-
_assertNotRegex = "assertNotRegexpMatches"
|
710 |
-
else:
|
711 |
-
_assertRaisesRegex = "assertRaisesRegex"
|
712 |
-
_assertRegex = "assertRegex"
|
713 |
-
_assertNotRegex = "assertNotRegex"
|
714 |
-
else:
|
715 |
-
|
716 |
-
def b(s):
|
717 |
-
return s
|
718 |
-
|
719 |
-
# Workaround for standalone backslash
|
720 |
-
|
721 |
-
def u(s):
|
722 |
-
return unicode(s.replace(r"\\", r"\\\\"), "unicode_escape")
|
723 |
-
|
724 |
-
unichr = unichr
|
725 |
-
int2byte = chr
|
726 |
-
|
727 |
-
def byte2int(bs):
|
728 |
-
return ord(bs[0])
|
729 |
-
|
730 |
-
def indexbytes(buf, i):
|
731 |
-
return ord(buf[i])
|
732 |
-
|
733 |
-
iterbytes = functools.partial(itertools.imap, ord)
|
734 |
-
import StringIO
|
735 |
-
|
736 |
-
StringIO = BytesIO = StringIO.StringIO
|
737 |
-
_assertCountEqual = "assertItemsEqual"
|
738 |
-
_assertRaisesRegex = "assertRaisesRegexp"
|
739 |
-
_assertRegex = "assertRegexpMatches"
|
740 |
-
_assertNotRegex = "assertNotRegexpMatches"
|
741 |
-
_add_doc(b, """Byte literal""")
|
742 |
-
_add_doc(u, """Text literal""")
|
743 |
-
|
744 |
-
|
745 |
-
def assertCountEqual(self, *args, **kwargs):
|
746 |
-
return getattr(self, _assertCountEqual)(*args, **kwargs)
|
747 |
-
|
748 |
-
|
749 |
-
def assertRaisesRegex(self, *args, **kwargs):
|
750 |
-
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
|
751 |
-
|
752 |
-
|
753 |
-
def assertRegex(self, *args, **kwargs):
|
754 |
-
return getattr(self, _assertRegex)(*args, **kwargs)
|
755 |
-
|
756 |
-
|
757 |
-
def assertNotRegex(self, *args, **kwargs):
|
758 |
-
return getattr(self, _assertNotRegex)(*args, **kwargs)
|
759 |
-
|
760 |
-
|
761 |
-
if PY3:
|
762 |
-
exec_ = getattr(moves.builtins, "exec")
|
763 |
-
|
764 |
-
def reraise(tp, value, tb=None):
|
765 |
-
try:
|
766 |
-
if value is None:
|
767 |
-
value = tp()
|
768 |
-
if value.__traceback__ is not tb:
|
769 |
-
raise value.with_traceback(tb)
|
770 |
-
raise value
|
771 |
-
finally:
|
772 |
-
value = None
|
773 |
-
tb = None
|
774 |
-
|
775 |
-
else:
|
776 |
-
|
777 |
-
def exec_(_code_, _globs_=None, _locs_=None):
|
778 |
-
"""Execute code in a namespace."""
|
779 |
-
if _globs_ is None:
|
780 |
-
frame = sys._getframe(1)
|
781 |
-
_globs_ = frame.f_globals
|
782 |
-
if _locs_ is None:
|
783 |
-
_locs_ = frame.f_locals
|
784 |
-
del frame
|
785 |
-
elif _locs_ is None:
|
786 |
-
_locs_ = _globs_
|
787 |
-
exec ("""exec _code_ in _globs_, _locs_""")
|
788 |
-
|
789 |
-
exec_(
|
790 |
-
"""def reraise(tp, value, tb=None):
|
791 |
-
try:
|
792 |
-
raise tp, value, tb
|
793 |
-
finally:
|
794 |
-
tb = None
|
795 |
-
"""
|
796 |
-
)
|
797 |
-
|
798 |
-
|
799 |
-
if sys.version_info[:2] > (3,):
|
800 |
-
exec_(
|
801 |
-
"""def raise_from(value, from_value):
|
802 |
-
try:
|
803 |
-
raise value from from_value
|
804 |
-
finally:
|
805 |
-
value = None
|
806 |
-
"""
|
807 |
-
)
|
808 |
-
else:
|
809 |
-
|
810 |
-
def raise_from(value, from_value):
|
811 |
-
raise value
|
812 |
-
|
813 |
-
|
814 |
-
print_ = getattr(moves.builtins, "print", None)
|
815 |
-
if print_ is None:
|
816 |
-
|
817 |
-
def print_(*args, **kwargs):
|
818 |
-
"""The new-style print function for Python 2.4 and 2.5."""
|
819 |
-
fp = kwargs.pop("file", sys.stdout)
|
820 |
-
if fp is None:
|
821 |
-
return
|
822 |
-
|
823 |
-
def write(data):
|
824 |
-
if not isinstance(data, basestring):
|
825 |
-
data = str(data)
|
826 |
-
# If the file has an encoding, encode unicode with it.
|
827 |
-
if (
|
828 |
-
isinstance(fp, file)
|
829 |
-
and isinstance(data, unicode)
|
830 |
-
and fp.encoding is not None
|
831 |
-
):
|
832 |
-
errors = getattr(fp, "errors", None)
|
833 |
-
if errors is None:
|
834 |
-
errors = "strict"
|
835 |
-
data = data.encode(fp.encoding, errors)
|
836 |
-
fp.write(data)
|
837 |
-
|
838 |
-
want_unicode = False
|
839 |
-
sep = kwargs.pop("sep", None)
|
840 |
-
if sep is not None:
|
841 |
-
if isinstance(sep, unicode):
|
842 |
-
want_unicode = True
|
843 |
-
elif not isinstance(sep, str):
|
844 |
-
raise TypeError("sep must be None or a string")
|
845 |
-
end = kwargs.pop("end", None)
|
846 |
-
if end is not None:
|
847 |
-
if isinstance(end, unicode):
|
848 |
-
want_unicode = True
|
849 |
-
elif not isinstance(end, str):
|
850 |
-
raise TypeError("end must be None or a string")
|
851 |
-
if kwargs:
|
852 |
-
raise TypeError("invalid keyword arguments to print()")
|
853 |
-
if not want_unicode:
|
854 |
-
for arg in args:
|
855 |
-
if isinstance(arg, unicode):
|
856 |
-
want_unicode = True
|
857 |
-
break
|
858 |
-
if want_unicode:
|
859 |
-
newline = unicode("\n")
|
860 |
-
space = unicode(" ")
|
861 |
-
else:
|
862 |
-
newline = "\n"
|
863 |
-
space = " "
|
864 |
-
if sep is None:
|
865 |
-
sep = space
|
866 |
-
if end is None:
|
867 |
-
end = newline
|
868 |
-
for i, arg in enumerate(args):
|
869 |
-
if i:
|
870 |
-
write(sep)
|
871 |
-
write(arg)
|
872 |
-
write(end)
|
873 |
-
|
874 |
-
|
875 |
-
if sys.version_info[:2] < (3, 3):
|
876 |
-
_print = print_
|
877 |
-
|
878 |
-
def print_(*args, **kwargs):
|
879 |
-
fp = kwargs.get("file", sys.stdout)
|
880 |
-
flush = kwargs.pop("flush", False)
|
881 |
-
_print(*args, **kwargs)
|
882 |
-
if flush and fp is not None:
|
883 |
-
fp.flush()
|
884 |
-
|
885 |
-
|
886 |
-
_add_doc(reraise, """Reraise an exception.""")
|
887 |
-
|
888 |
-
if sys.version_info[0:2] < (3, 4):
|
889 |
-
# This does exactly the same what the :func:`py3:functools.update_wrapper`
|
890 |
-
# function does on Python versions after 3.2. It sets the ``__wrapped__``
|
891 |
-
# attribute on ``wrapper`` object and it doesn't raise an error if any of
|
892 |
-
# the attributes mentioned in ``assigned`` and ``updated`` are missing on
|
893 |
-
# ``wrapped`` object.
|
894 |
-
def _update_wrapper(
|
895 |
-
wrapper,
|
896 |
-
wrapped,
|
897 |
-
assigned=functools.WRAPPER_ASSIGNMENTS,
|
898 |
-
updated=functools.WRAPPER_UPDATES,
|
899 |
-
):
|
900 |
-
for attr in assigned:
|
901 |
-
try:
|
902 |
-
value = getattr(wrapped, attr)
|
903 |
-
except AttributeError:
|
904 |
-
continue
|
905 |
-
else:
|
906 |
-
setattr(wrapper, attr, value)
|
907 |
-
for attr in updated:
|
908 |
-
getattr(wrapper, attr).update(getattr(wrapped, attr, {}))
|
909 |
-
wrapper.__wrapped__ = wrapped
|
910 |
-
return wrapper
|
911 |
-
|
912 |
-
_update_wrapper.__doc__ = functools.update_wrapper.__doc__
|
913 |
-
|
914 |
-
def wraps(
|
915 |
-
wrapped,
|
916 |
-
assigned=functools.WRAPPER_ASSIGNMENTS,
|
917 |
-
updated=functools.WRAPPER_UPDATES,
|
918 |
-
):
|
919 |
-
return functools.partial(
|
920 |
-
_update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated
|
921 |
-
)
|
922 |
-
|
923 |
-
wraps.__doc__ = functools.wraps.__doc__
|
924 |
-
|
925 |
-
else:
|
926 |
-
wraps = functools.wraps
|
927 |
-
|
928 |
-
|
929 |
-
def with_metaclass(meta, *bases):
|
930 |
-
"""Create a base class with a metaclass."""
|
931 |
-
# This requires a bit of explanation: the basic idea is to make a dummy
|
932 |
-
# metaclass for one level of class instantiation that replaces itself with
|
933 |
-
# the actual metaclass.
|
934 |
-
class metaclass(type):
|
935 |
-
def __new__(cls, name, this_bases, d):
|
936 |
-
if sys.version_info[:2] >= (3, 7):
|
937 |
-
# This version introduced PEP 560 that requires a bit
|
938 |
-
# of extra care (we mimic what is done by __build_class__).
|
939 |
-
resolved_bases = types.resolve_bases(bases)
|
940 |
-
if resolved_bases is not bases:
|
941 |
-
d["__orig_bases__"] = bases
|
942 |
-
else:
|
943 |
-
resolved_bases = bases
|
944 |
-
return meta(name, resolved_bases, d)
|
945 |
-
|
946 |
-
@classmethod
|
947 |
-
def __prepare__(cls, name, this_bases):
|
948 |
-
return meta.__prepare__(name, bases)
|
949 |
-
|
950 |
-
return type.__new__(metaclass, "temporary_class", (), {})
|
951 |
-
|
952 |
-
|
953 |
-
def add_metaclass(metaclass):
|
954 |
-
"""Class decorator for creating a class with a metaclass."""
|
955 |
-
|
956 |
-
def wrapper(cls):
|
957 |
-
orig_vars = cls.__dict__.copy()
|
958 |
-
slots = orig_vars.get("__slots__")
|
959 |
-
if slots is not None:
|
960 |
-
if isinstance(slots, str):
|
961 |
-
slots = [slots]
|
962 |
-
for slots_var in slots:
|
963 |
-
orig_vars.pop(slots_var)
|
964 |
-
orig_vars.pop("__dict__", None)
|
965 |
-
orig_vars.pop("__weakref__", None)
|
966 |
-
if hasattr(cls, "__qualname__"):
|
967 |
-
orig_vars["__qualname__"] = cls.__qualname__
|
968 |
-
return metaclass(cls.__name__, cls.__bases__, orig_vars)
|
969 |
-
|
970 |
-
return wrapper
|
971 |
-
|
972 |
-
|
973 |
-
def ensure_binary(s, encoding="utf-8", errors="strict"):
|
974 |
-
"""Coerce **s** to six.binary_type.
|
975 |
-
|
976 |
-
For Python 2:
|
977 |
-
- `unicode` -> encoded to `str`
|
978 |
-
- `str` -> `str`
|
979 |
-
|
980 |
-
For Python 3:
|
981 |
-
- `str` -> encoded to `bytes`
|
982 |
-
- `bytes` -> `bytes`
|
983 |
-
"""
|
984 |
-
if isinstance(s, binary_type):
|
985 |
-
return s
|
986 |
-
if isinstance(s, text_type):
|
987 |
-
return s.encode(encoding, errors)
|
988 |
-
raise TypeError("not expecting type '%s'" % type(s))
|
989 |
-
|
990 |
-
|
991 |
-
def ensure_str(s, encoding="utf-8", errors="strict"):
|
992 |
-
"""Coerce *s* to `str`.
|
993 |
-
|
994 |
-
For Python 2:
|
995 |
-
- `unicode` -> encoded to `str`
|
996 |
-
- `str` -> `str`
|
997 |
-
|
998 |
-
For Python 3:
|
999 |
-
- `str` -> `str`
|
1000 |
-
- `bytes` -> decoded to `str`
|
1001 |
-
"""
|
1002 |
-
# Optimization: Fast return for the common case.
|
1003 |
-
if type(s) is str:
|
1004 |
-
return s
|
1005 |
-
if PY2 and isinstance(s, text_type):
|
1006 |
-
return s.encode(encoding, errors)
|
1007 |
-
elif PY3 and isinstance(s, binary_type):
|
1008 |
-
return s.decode(encoding, errors)
|
1009 |
-
elif not isinstance(s, (text_type, binary_type)):
|
1010 |
-
raise TypeError("not expecting type '%s'" % type(s))
|
1011 |
-
return s
|
1012 |
-
|
1013 |
-
|
1014 |
-
def ensure_text(s, encoding="utf-8", errors="strict"):
|
1015 |
-
"""Coerce *s* to six.text_type.
|
1016 |
-
|
1017 |
-
For Python 2:
|
1018 |
-
- `unicode` -> `unicode`
|
1019 |
-
- `str` -> `unicode`
|
1020 |
-
|
1021 |
-
For Python 3:
|
1022 |
-
- `str` -> `str`
|
1023 |
-
- `bytes` -> decoded to `str`
|
1024 |
-
"""
|
1025 |
-
if isinstance(s, binary_type):
|
1026 |
-
return s.decode(encoding, errors)
|
1027 |
-
elif isinstance(s, text_type):
|
1028 |
-
return s
|
1029 |
-
else:
|
1030 |
-
raise TypeError("not expecting type '%s'" % type(s))
|
1031 |
-
|
1032 |
-
|
1033 |
-
def python_2_unicode_compatible(klass):
|
1034 |
-
"""
|
1035 |
-
A class decorator that defines __unicode__ and __str__ methods under Python 2.
|
1036 |
-
Under Python 3 it does nothing.
|
1037 |
-
|
1038 |
-
To support Python 2 and 3 with a single code base, define a __str__ method
|
1039 |
-
returning text and apply this decorator to the class.
|
1040 |
-
"""
|
1041 |
-
if PY2:
|
1042 |
-
if "__str__" not in klass.__dict__:
|
1043 |
-
raise ValueError(
|
1044 |
-
"@python_2_unicode_compatible cannot be applied "
|
1045 |
-
"to %s because it doesn't define __str__()." % klass.__name__
|
1046 |
-
)
|
1047 |
-
klass.__unicode__ = klass.__str__
|
1048 |
-
klass.__str__ = lambda self: self.__unicode__().encode("utf-8")
|
1049 |
-
return klass
|
1050 |
-
|
1051 |
-
|
1052 |
-
# Complete the moves implementation.
|
1053 |
-
# This code is at the end of this module to speed up module loading.
|
1054 |
-
# Turn this module into a package.
|
1055 |
-
__path__ = [] # required for PEP 302 and PEP 451
|
1056 |
-
__package__ = __name__ # see PEP 366 @ReservedAssignment
|
1057 |
-
if globals().get("__spec__") is not None:
|
1058 |
-
__spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable
|
1059 |
-
# Remove other six meta path importers, since they cause problems. This can
|
1060 |
-
# happen if six is removed from sys.modules and then reloaded. (Setuptools does
|
1061 |
-
# this for some reason.)
|
1062 |
-
if sys.meta_path:
|
1063 |
-
for i, importer in enumerate(sys.meta_path):
|
1064 |
-
# Here's some real nastiness: Another "instance" of the six module might
|
1065 |
-
# be floating around. Therefore, we can't use isinstance() to check for
|
1066 |
-
# the six meta path importer, since the other six instance will have
|
1067 |
-
# inserted an importer with different class.
|
1068 |
-
if (
|
1069 |
-
type(importer).__name__ == "_SixMetaPathImporter"
|
1070 |
-
and importer.name == __name__
|
1071 |
-
):
|
1072 |
-
del sys.meta_path[i]
|
1073 |
-
break
|
1074 |
-
del i, importer
|
1075 |
-
# Finally, add the importer to the meta path import hook.
|
1076 |
-
sys.meta_path.append(_importer)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CC123123/blip2_t/utils.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
|
4 |
-
class Endpoint:
|
5 |
-
def __init__(self):
|
6 |
-
self._url = None
|
7 |
-
|
8 |
-
@property
|
9 |
-
def url(self):
|
10 |
-
if self._url is None:
|
11 |
-
self._url = self.get_url()
|
12 |
-
|
13 |
-
return self._url
|
14 |
-
|
15 |
-
def get_url(self):
|
16 |
-
endpoint = os.environ.get("endpoint")
|
17 |
-
|
18 |
-
return endpoint
|
19 |
-
|
20 |
-
|
21 |
-
def get_token():
|
22 |
-
token = os.environ.get("auth_token")
|
23 |
-
|
24 |
-
if token is None:
|
25 |
-
raise ValueError("auth-token not found in environment variables")
|
26 |
-
|
27 |
-
return token
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/utils/serialize.py
DELETED
@@ -1,29 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
2 |
-
import cloudpickle
|
3 |
-
|
4 |
-
|
5 |
-
class PicklableWrapper(object):
|
6 |
-
"""
|
7 |
-
Wrap an object to make it more picklable, note that it uses
|
8 |
-
heavy weight serialization libraries that are slower than pickle.
|
9 |
-
It's best to use it only on closures (which are usually not picklable).
|
10 |
-
|
11 |
-
This is a simplified version of
|
12 |
-
https://github.com/joblib/joblib/blob/master/joblib/externals/loky/cloudpickle_wrapper.py
|
13 |
-
"""
|
14 |
-
|
15 |
-
def __init__(self, obj):
|
16 |
-
self._obj = obj
|
17 |
-
|
18 |
-
def __reduce__(self):
|
19 |
-
s = cloudpickle.dumps(self._obj)
|
20 |
-
return cloudpickle.loads, (s,)
|
21 |
-
|
22 |
-
def __call__(self, *args, **kwargs):
|
23 |
-
return self._obj(*args, **kwargs)
|
24 |
-
|
25 |
-
def __getattr__(self, attr):
|
26 |
-
# Ensure that the wrapped object can be used seamlessly as the previous object.
|
27 |
-
if attr not in ["_obj"]:
|
28 |
-
return getattr(self._obj, attr)
|
29 |
-
return getattr(self, attr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/pybind11/include/pybind11/detail/internals.h
DELETED
@@ -1,352 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
pybind11/detail/internals.h: Internal data structure and related functions
|
3 |
-
|
4 |
-
Copyright (c) 2017 Wenzel Jakob <[email protected]>
|
5 |
-
|
6 |
-
All rights reserved. Use of this source code is governed by a
|
7 |
-
BSD-style license that can be found in the LICENSE file.
|
8 |
-
*/
|
9 |
-
|
10 |
-
#pragma once
|
11 |
-
|
12 |
-
#include "../pytypes.h"
|
13 |
-
|
14 |
-
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
|
15 |
-
PYBIND11_NAMESPACE_BEGIN(detail)
|
16 |
-
// Forward declarations
|
17 |
-
inline PyTypeObject *make_static_property_type();
|
18 |
-
inline PyTypeObject *make_default_metaclass();
|
19 |
-
inline PyObject *make_object_base_type(PyTypeObject *metaclass);
|
20 |
-
|
21 |
-
// The old Python Thread Local Storage (TLS) API is deprecated in Python 3.7 in favor of the new
|
22 |
-
// Thread Specific Storage (TSS) API.
|
23 |
-
#if PY_VERSION_HEX >= 0x03070000
|
24 |
-
# define PYBIND11_TLS_KEY_INIT(var) Py_tss_t *var = nullptr
|
25 |
-
# define PYBIND11_TLS_GET_VALUE(key) PyThread_tss_get((key))
|
26 |
-
# define PYBIND11_TLS_REPLACE_VALUE(key, value) PyThread_tss_set((key), (value))
|
27 |
-
# define PYBIND11_TLS_DELETE_VALUE(key) PyThread_tss_set((key), nullptr)
|
28 |
-
# define PYBIND11_TLS_FREE(key) PyThread_tss_free(key)
|
29 |
-
#else
|
30 |
-
// Usually an int but a long on Cygwin64 with Python 3.x
|
31 |
-
# define PYBIND11_TLS_KEY_INIT(var) decltype(PyThread_create_key()) var = 0
|
32 |
-
# define PYBIND11_TLS_GET_VALUE(key) PyThread_get_key_value((key))
|
33 |
-
# if PY_MAJOR_VERSION < 3
|
34 |
-
# define PYBIND11_TLS_DELETE_VALUE(key) \
|
35 |
-
PyThread_delete_key_value(key)
|
36 |
-
# define PYBIND11_TLS_REPLACE_VALUE(key, value) \
|
37 |
-
do { \
|
38 |
-
PyThread_delete_key_value((key)); \
|
39 |
-
PyThread_set_key_value((key), (value)); \
|
40 |
-
} while (false)
|
41 |
-
# else
|
42 |
-
# define PYBIND11_TLS_DELETE_VALUE(key) \
|
43 |
-
PyThread_set_key_value((key), nullptr)
|
44 |
-
# define PYBIND11_TLS_REPLACE_VALUE(key, value) \
|
45 |
-
PyThread_set_key_value((key), (value))
|
46 |
-
# endif
|
47 |
-
# define PYBIND11_TLS_FREE(key) (void)key
|
48 |
-
#endif
|
49 |
-
|
50 |
-
// Python loads modules by default with dlopen with the RTLD_LOCAL flag; under libc++ and possibly
|
51 |
-
// other STLs, this means `typeid(A)` from one module won't equal `typeid(A)` from another module
|
52 |
-
// even when `A` is the same, non-hidden-visibility type (e.g. from a common include). Under
|
53 |
-
// libstdc++, this doesn't happen: equality and the type_index hash are based on the type name,
|
54 |
-
// which works. If not under a known-good stl, provide our own name-based hash and equality
|
55 |
-
// functions that use the type name.
|
56 |
-
#if defined(__GLIBCXX__)
|
57 |
-
inline bool same_type(const std::type_info &lhs, const std::type_info &rhs) { return lhs == rhs; }
|
58 |
-
using type_hash = std::hash<std::type_index>;
|
59 |
-
using type_equal_to = std::equal_to<std::type_index>;
|
60 |
-
#else
|
61 |
-
inline bool same_type(const std::type_info &lhs, const std::type_info &rhs) {
|
62 |
-
return lhs.name() == rhs.name() || std::strcmp(lhs.name(), rhs.name()) == 0;
|
63 |
-
}
|
64 |
-
|
65 |
-
struct type_hash {
|
66 |
-
size_t operator()(const std::type_index &t) const {
|
67 |
-
size_t hash = 5381;
|
68 |
-
const char *ptr = t.name();
|
69 |
-
while (auto c = static_cast<unsigned char>(*ptr++))
|
70 |
-
hash = (hash * 33) ^ c;
|
71 |
-
return hash;
|
72 |
-
}
|
73 |
-
};
|
74 |
-
|
75 |
-
struct type_equal_to {
|
76 |
-
bool operator()(const std::type_index &lhs, const std::type_index &rhs) const {
|
77 |
-
return lhs.name() == rhs.name() || std::strcmp(lhs.name(), rhs.name()) == 0;
|
78 |
-
}
|
79 |
-
};
|
80 |
-
#endif
|
81 |
-
|
82 |
-
template <typename value_type>
|
83 |
-
using type_map = std::unordered_map<std::type_index, value_type, type_hash, type_equal_to>;
|
84 |
-
|
85 |
-
struct overload_hash {
|
86 |
-
inline size_t operator()(const std::pair<const PyObject *, const char *>& v) const {
|
87 |
-
size_t value = std::hash<const void *>()(v.first);
|
88 |
-
value ^= std::hash<const void *>()(v.second) + 0x9e3779b9 + (value<<6) + (value>>2);
|
89 |
-
return value;
|
90 |
-
}
|
91 |
-
};
|
92 |
-
|
93 |
-
/// Internal data structure used to track registered instances and types.
|
94 |
-
/// Whenever binary incompatible changes are made to this structure,
|
95 |
-
/// `PYBIND11_INTERNALS_VERSION` must be incremented.
|
96 |
-
struct internals {
|
97 |
-
type_map<type_info *> registered_types_cpp; // std::type_index -> pybind11's type information
|
98 |
-
std::unordered_map<PyTypeObject *, std::vector<type_info *>> registered_types_py; // PyTypeObject* -> base type_info(s)
|
99 |
-
std::unordered_multimap<const void *, instance*> registered_instances; // void * -> instance*
|
100 |
-
std::unordered_set<std::pair<const PyObject *, const char *>, overload_hash> inactive_overload_cache;
|
101 |
-
type_map<std::vector<bool (*)(PyObject *, void *&)>> direct_conversions;
|
102 |
-
std::unordered_map<const PyObject *, std::vector<PyObject *>> patients;
|
103 |
-
std::forward_list<void (*) (std::exception_ptr)> registered_exception_translators;
|
104 |
-
std::unordered_map<std::string, void *> shared_data; // Custom data to be shared across extensions
|
105 |
-
std::vector<PyObject *> loader_patient_stack; // Used by `loader_life_support`
|
106 |
-
std::forward_list<std::string> static_strings; // Stores the std::strings backing detail::c_str()
|
107 |
-
PyTypeObject *static_property_type;
|
108 |
-
PyTypeObject *default_metaclass;
|
109 |
-
PyObject *instance_base;
|
110 |
-
#if defined(WITH_THREAD)
|
111 |
-
PYBIND11_TLS_KEY_INIT(tstate);
|
112 |
-
PyInterpreterState *istate = nullptr;
|
113 |
-
~internals() {
|
114 |
-
// This destructor is called *after* Py_Finalize() in finalize_interpreter().
|
115 |
-
// That *SHOULD BE* fine. The following details what happens whe PyThread_tss_free is called.
|
116 |
-
// PYBIND11_TLS_FREE is PyThread_tss_free on python 3.7+. On older python, it does nothing.
|
117 |
-
// PyThread_tss_free calls PyThread_tss_delete and PyMem_RawFree.
|
118 |
-
// PyThread_tss_delete just calls TlsFree (on Windows) or pthread_key_delete (on *NIX). Neither
|
119 |
-
// of those have anything to do with CPython internals.
|
120 |
-
// PyMem_RawFree *requires* that the `tstate` be allocated with the CPython allocator.
|
121 |
-
PYBIND11_TLS_FREE(tstate);
|
122 |
-
}
|
123 |
-
#endif
|
124 |
-
};
|
125 |
-
|
126 |
-
/// Additional type information which does not fit into the PyTypeObject.
|
127 |
-
/// Changes to this struct also require bumping `PYBIND11_INTERNALS_VERSION`.
|
128 |
-
struct type_info {
|
129 |
-
PyTypeObject *type;
|
130 |
-
const std::type_info *cpptype;
|
131 |
-
size_t type_size, type_align, holder_size_in_ptrs;
|
132 |
-
void *(*operator_new)(size_t);
|
133 |
-
void (*init_instance)(instance *, const void *);
|
134 |
-
void (*dealloc)(value_and_holder &v_h);
|
135 |
-
std::vector<PyObject *(*)(PyObject *, PyTypeObject *)> implicit_conversions;
|
136 |
-
std::vector<std::pair<const std::type_info *, void *(*)(void *)>> implicit_casts;
|
137 |
-
std::vector<bool (*)(PyObject *, void *&)> *direct_conversions;
|
138 |
-
buffer_info *(*get_buffer)(PyObject *, void *) = nullptr;
|
139 |
-
void *get_buffer_data = nullptr;
|
140 |
-
void *(*module_local_load)(PyObject *, const type_info *) = nullptr;
|
141 |
-
/* A simple type never occurs as a (direct or indirect) parent
|
142 |
-
* of a class that makes use of multiple inheritance */
|
143 |
-
bool simple_type : 1;
|
144 |
-
/* True if there is no multiple inheritance in this type's inheritance tree */
|
145 |
-
bool simple_ancestors : 1;
|
146 |
-
/* for base vs derived holder_type checks */
|
147 |
-
bool default_holder : 1;
|
148 |
-
/* true if this is a type registered with py::module_local */
|
149 |
-
bool module_local : 1;
|
150 |
-
};
|
151 |
-
|
152 |
-
/// Tracks the `internals` and `type_info` ABI version independent of the main library version
|
153 |
-
#define PYBIND11_INTERNALS_VERSION 4
|
154 |
-
|
155 |
-
/// On MSVC, debug and release builds are not ABI-compatible!
|
156 |
-
#if defined(_MSC_VER) && defined(_DEBUG)
|
157 |
-
# define PYBIND11_BUILD_TYPE "_debug"
|
158 |
-
#else
|
159 |
-
# define PYBIND11_BUILD_TYPE ""
|
160 |
-
#endif
|
161 |
-
|
162 |
-
/// Let's assume that different compilers are ABI-incompatible.
|
163 |
-
#if defined(_MSC_VER)
|
164 |
-
# define PYBIND11_COMPILER_TYPE "_msvc"
|
165 |
-
#elif defined(__INTEL_COMPILER)
|
166 |
-
# define PYBIND11_COMPILER_TYPE "_icc"
|
167 |
-
#elif defined(__clang__)
|
168 |
-
# define PYBIND11_COMPILER_TYPE "_clang"
|
169 |
-
#elif defined(__PGI)
|
170 |
-
# define PYBIND11_COMPILER_TYPE "_pgi"
|
171 |
-
#elif defined(__MINGW32__)
|
172 |
-
# define PYBIND11_COMPILER_TYPE "_mingw"
|
173 |
-
#elif defined(__CYGWIN__)
|
174 |
-
# define PYBIND11_COMPILER_TYPE "_gcc_cygwin"
|
175 |
-
#elif defined(__GNUC__)
|
176 |
-
# define PYBIND11_COMPILER_TYPE "_gcc"
|
177 |
-
#else
|
178 |
-
# define PYBIND11_COMPILER_TYPE "_unknown"
|
179 |
-
#endif
|
180 |
-
|
181 |
-
#if defined(_LIBCPP_VERSION)
|
182 |
-
# define PYBIND11_STDLIB "_libcpp"
|
183 |
-
#elif defined(__GLIBCXX__) || defined(__GLIBCPP__)
|
184 |
-
# define PYBIND11_STDLIB "_libstdcpp"
|
185 |
-
#else
|
186 |
-
# define PYBIND11_STDLIB ""
|
187 |
-
#endif
|
188 |
-
|
189 |
-
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
|
190 |
-
#if defined(__GXX_ABI_VERSION)
|
191 |
-
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
|
192 |
-
#else
|
193 |
-
# define PYBIND11_BUILD_ABI ""
|
194 |
-
#endif
|
195 |
-
|
196 |
-
#if defined(WITH_THREAD)
|
197 |
-
# define PYBIND11_INTERNALS_KIND ""
|
198 |
-
#else
|
199 |
-
# define PYBIND11_INTERNALS_KIND "_without_thread"
|
200 |
-
#endif
|
201 |
-
|
202 |
-
#define PYBIND11_INTERNALS_ID "__pybind11_internals_v" \
|
203 |
-
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND PYBIND11_COMPILER_TYPE PYBIND11_STDLIB PYBIND11_BUILD_ABI PYBIND11_BUILD_TYPE "__"
|
204 |
-
|
205 |
-
#define PYBIND11_MODULE_LOCAL_ID "__pybind11_module_local_v" \
|
206 |
-
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND PYBIND11_COMPILER_TYPE PYBIND11_STDLIB PYBIND11_BUILD_ABI PYBIND11_BUILD_TYPE "__"
|
207 |
-
|
208 |
-
/// Each module locally stores a pointer to the `internals` data. The data
|
209 |
-
/// itself is shared among modules with the same `PYBIND11_INTERNALS_ID`.
|
210 |
-
inline internals **&get_internals_pp() {
|
211 |
-
static internals **internals_pp = nullptr;
|
212 |
-
return internals_pp;
|
213 |
-
}
|
214 |
-
|
215 |
-
inline void translate_exception(std::exception_ptr p) {
|
216 |
-
try {
|
217 |
-
if (p) std::rethrow_exception(p);
|
218 |
-
} catch (error_already_set &e) { e.restore(); return;
|
219 |
-
} catch (const builtin_exception &e) { e.set_error(); return;
|
220 |
-
} catch (const std::bad_alloc &e) { PyErr_SetString(PyExc_MemoryError, e.what()); return;
|
221 |
-
} catch (const std::domain_error &e) { PyErr_SetString(PyExc_ValueError, e.what()); return;
|
222 |
-
} catch (const std::invalid_argument &e) { PyErr_SetString(PyExc_ValueError, e.what()); return;
|
223 |
-
} catch (const std::length_error &e) { PyErr_SetString(PyExc_ValueError, e.what()); return;
|
224 |
-
} catch (const std::out_of_range &e) { PyErr_SetString(PyExc_IndexError, e.what()); return;
|
225 |
-
} catch (const std::range_error &e) { PyErr_SetString(PyExc_ValueError, e.what()); return;
|
226 |
-
} catch (const std::overflow_error &e) { PyErr_SetString(PyExc_OverflowError, e.what()); return;
|
227 |
-
} catch (const std::exception &e) { PyErr_SetString(PyExc_RuntimeError, e.what()); return;
|
228 |
-
} catch (...) {
|
229 |
-
PyErr_SetString(PyExc_RuntimeError, "Caught an unknown exception!");
|
230 |
-
return;
|
231 |
-
}
|
232 |
-
}
|
233 |
-
|
234 |
-
#if !defined(__GLIBCXX__)
|
235 |
-
inline void translate_local_exception(std::exception_ptr p) {
|
236 |
-
try {
|
237 |
-
if (p) std::rethrow_exception(p);
|
238 |
-
} catch (error_already_set &e) { e.restore(); return;
|
239 |
-
} catch (const builtin_exception &e) { e.set_error(); return;
|
240 |
-
}
|
241 |
-
}
|
242 |
-
#endif
|
243 |
-
|
244 |
-
/// Return a reference to the current `internals` data
|
245 |
-
PYBIND11_NOINLINE inline internals &get_internals() {
|
246 |
-
auto **&internals_pp = get_internals_pp();
|
247 |
-
if (internals_pp && *internals_pp)
|
248 |
-
return **internals_pp;
|
249 |
-
|
250 |
-
// Ensure that the GIL is held since we will need to make Python calls.
|
251 |
-
// Cannot use py::gil_scoped_acquire here since that constructor calls get_internals.
|
252 |
-
struct gil_scoped_acquire_local {
|
253 |
-
gil_scoped_acquire_local() : state (PyGILState_Ensure()) {}
|
254 |
-
~gil_scoped_acquire_local() { PyGILState_Release(state); }
|
255 |
-
const PyGILState_STATE state;
|
256 |
-
} gil;
|
257 |
-
|
258 |
-
constexpr auto *id = PYBIND11_INTERNALS_ID;
|
259 |
-
auto builtins = handle(PyEval_GetBuiltins());
|
260 |
-
if (builtins.contains(id) && isinstance<capsule>(builtins[id])) {
|
261 |
-
internals_pp = static_cast<internals **>(capsule(builtins[id]));
|
262 |
-
|
263 |
-
// We loaded builtins through python's builtins, which means that our `error_already_set`
|
264 |
-
// and `builtin_exception` may be different local classes than the ones set up in the
|
265 |
-
// initial exception translator, below, so add another for our local exception classes.
|
266 |
-
//
|
267 |
-
// libstdc++ doesn't require this (types there are identified only by name)
|
268 |
-
#if !defined(__GLIBCXX__)
|
269 |
-
(*internals_pp)->registered_exception_translators.push_front(&translate_local_exception);
|
270 |
-
#endif
|
271 |
-
} else {
|
272 |
-
if (!internals_pp) internals_pp = new internals*();
|
273 |
-
auto *&internals_ptr = *internals_pp;
|
274 |
-
internals_ptr = new internals();
|
275 |
-
#if defined(WITH_THREAD)
|
276 |
-
|
277 |
-
#if PY_VERSION_HEX < 0x03090000
|
278 |
-
PyEval_InitThreads();
|
279 |
-
#endif
|
280 |
-
PyThreadState *tstate = PyThreadState_Get();
|
281 |
-
#if PY_VERSION_HEX >= 0x03070000
|
282 |
-
internals_ptr->tstate = PyThread_tss_alloc();
|
283 |
-
if (!internals_ptr->tstate || PyThread_tss_create(internals_ptr->tstate))
|
284 |
-
pybind11_fail("get_internals: could not successfully initialize the TSS key!");
|
285 |
-
PyThread_tss_set(internals_ptr->tstate, tstate);
|
286 |
-
#else
|
287 |
-
internals_ptr->tstate = PyThread_create_key();
|
288 |
-
if (internals_ptr->tstate == -1)
|
289 |
-
pybind11_fail("get_internals: could not successfully initialize the TLS key!");
|
290 |
-
PyThread_set_key_value(internals_ptr->tstate, tstate);
|
291 |
-
#endif
|
292 |
-
internals_ptr->istate = tstate->interp;
|
293 |
-
#endif
|
294 |
-
builtins[id] = capsule(internals_pp);
|
295 |
-
internals_ptr->registered_exception_translators.push_front(&translate_exception);
|
296 |
-
internals_ptr->static_property_type = make_static_property_type();
|
297 |
-
internals_ptr->default_metaclass = make_default_metaclass();
|
298 |
-
internals_ptr->instance_base = make_object_base_type(internals_ptr->default_metaclass);
|
299 |
-
}
|
300 |
-
return **internals_pp;
|
301 |
-
}
|
302 |
-
|
303 |
-
/// Works like `internals.registered_types_cpp`, but for module-local registered types:
|
304 |
-
inline type_map<type_info *> ®istered_local_types_cpp() {
|
305 |
-
static type_map<type_info *> locals{};
|
306 |
-
return locals;
|
307 |
-
}
|
308 |
-
|
309 |
-
/// Constructs a std::string with the given arguments, stores it in `internals`, and returns its
|
310 |
-
/// `c_str()`. Such strings objects have a long storage duration -- the internal strings are only
|
311 |
-
/// cleared when the program exits or after interpreter shutdown (when embedding), and so are
|
312 |
-
/// suitable for c-style strings needed by Python internals (such as PyTypeObject's tp_name).
|
313 |
-
template <typename... Args>
|
314 |
-
const char *c_str(Args &&...args) {
|
315 |
-
auto &strings = get_internals().static_strings;
|
316 |
-
strings.emplace_front(std::forward<Args>(args)...);
|
317 |
-
return strings.front().c_str();
|
318 |
-
}
|
319 |
-
|
320 |
-
PYBIND11_NAMESPACE_END(detail)
|
321 |
-
|
322 |
-
/// Returns a named pointer that is shared among all extension modules (using the same
|
323 |
-
/// pybind11 version) running in the current interpreter. Names starting with underscores
|
324 |
-
/// are reserved for internal usage. Returns `nullptr` if no matching entry was found.
|
325 |
-
inline PYBIND11_NOINLINE void *get_shared_data(const std::string &name) {
|
326 |
-
auto &internals = detail::get_internals();
|
327 |
-
auto it = internals.shared_data.find(name);
|
328 |
-
return it != internals.shared_data.end() ? it->second : nullptr;
|
329 |
-
}
|
330 |
-
|
331 |
-
/// Set the shared data that can be later recovered by `get_shared_data()`.
|
332 |
-
inline PYBIND11_NOINLINE void *set_shared_data(const std::string &name, void *data) {
|
333 |
-
detail::get_internals().shared_data[name] = data;
|
334 |
-
return data;
|
335 |
-
}
|
336 |
-
|
337 |
-
/// Returns a typed reference to a shared data entry (by using `get_shared_data()`) if
|
338 |
-
/// such entry exists. Otherwise, a new object of default-constructible type `T` is
|
339 |
-
/// added to the shared data under the given name and a reference to it is returned.
|
340 |
-
template<typename T>
|
341 |
-
T &get_or_create_shared_data(const std::string &name) {
|
342 |
-
auto &internals = detail::get_internals();
|
343 |
-
auto it = internals.shared_data.find(name);
|
344 |
-
T *ptr = (T *) (it != internals.shared_data.end() ? it->second : nullptr);
|
345 |
-
if (!ptr) {
|
346 |
-
ptr = new T();
|
347 |
-
internals.shared_data[name] = ptr;
|
348 |
-
}
|
349 |
-
return *ptr;
|
350 |
-
}
|
351 |
-
|
352 |
-
PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/system/detail/adl/async/transform.h
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Copyright 2008-2018 NVIDIA Corporation
|
3 |
-
*
|
4 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
* you may not use this file except in compliance with the License.
|
6 |
-
* You may obtain a transform of the License at
|
7 |
-
*
|
8 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
*
|
10 |
-
* Unless required by applicable law or agreed to in writing, software
|
11 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
* See the License for the specific language governing permissions and
|
14 |
-
* limitations under the License.
|
15 |
-
*/
|
16 |
-
|
17 |
-
// The purpose of this header is to #include the async/transform.h header of the
|
18 |
-
// sequential, host, and device systems. It should be #included in any code
|
19 |
-
// which uses ADL to dispatch async transform.
|
20 |
-
|
21 |
-
#pragma once
|
22 |
-
|
23 |
-
#include <thrust/detail/config.h>
|
24 |
-
|
25 |
-
//#include <thrust/system/detail/sequential/async/transform.h>
|
26 |
-
|
27 |
-
//#define __THRUST_HOST_SYSTEM_ASYNC_TRANSFORM_HEADER <__THRUST_HOST_SYSTEM_ROOT/detail/async/transform.h>
|
28 |
-
//#include __THRUST_HOST_SYSTEM_ASYNC_TRANSFORM_HEADER
|
29 |
-
//#undef __THRUST_HOST_SYSTEM_ASYNC_TRANSFORM_HEADER
|
30 |
-
|
31 |
-
#define __THRUST_DEVICE_SYSTEM_ASYNC_TRANSFORM_HEADER <__THRUST_DEVICE_SYSTEM_ROOT/detail/async/transform.h>
|
32 |
-
#include __THRUST_DEVICE_SYSTEM_ASYNC_TRANSFORM_HEADER
|
33 |
-
#undef __THRUST_DEVICE_SYSTEM_ASYNC_TRANSFORM_HEADER
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/lama-example/saicinpainting/utils.py
DELETED
@@ -1,174 +0,0 @@
|
|
1 |
-
import bisect
|
2 |
-
import functools
|
3 |
-
import logging
|
4 |
-
import numbers
|
5 |
-
import os
|
6 |
-
import signal
|
7 |
-
import sys
|
8 |
-
import traceback
|
9 |
-
import warnings
|
10 |
-
|
11 |
-
import torch
|
12 |
-
from pytorch_lightning import seed_everything
|
13 |
-
|
14 |
-
LOGGER = logging.getLogger(__name__)
|
15 |
-
|
16 |
-
|
17 |
-
def check_and_warn_input_range(tensor, min_value, max_value, name):
|
18 |
-
actual_min = tensor.min()
|
19 |
-
actual_max = tensor.max()
|
20 |
-
if actual_min < min_value or actual_max > max_value:
|
21 |
-
warnings.warn(f"{name} must be in {min_value}..{max_value} range, but it ranges {actual_min}..{actual_max}")
|
22 |
-
|
23 |
-
|
24 |
-
def sum_dict_with_prefix(target, cur_dict, prefix, default=0):
|
25 |
-
for k, v in cur_dict.items():
|
26 |
-
target_key = prefix + k
|
27 |
-
target[target_key] = target.get(target_key, default) + v
|
28 |
-
|
29 |
-
|
30 |
-
def average_dicts(dict_list):
|
31 |
-
result = {}
|
32 |
-
norm = 1e-3
|
33 |
-
for dct in dict_list:
|
34 |
-
sum_dict_with_prefix(result, dct, '')
|
35 |
-
norm += 1
|
36 |
-
for k in list(result):
|
37 |
-
result[k] /= norm
|
38 |
-
return result
|
39 |
-
|
40 |
-
|
41 |
-
def add_prefix_to_keys(dct, prefix):
|
42 |
-
return {prefix + k: v for k, v in dct.items()}
|
43 |
-
|
44 |
-
|
45 |
-
def set_requires_grad(module, value):
|
46 |
-
for param in module.parameters():
|
47 |
-
param.requires_grad = value
|
48 |
-
|
49 |
-
|
50 |
-
def flatten_dict(dct):
|
51 |
-
result = {}
|
52 |
-
for k, v in dct.items():
|
53 |
-
if isinstance(k, tuple):
|
54 |
-
k = '_'.join(k)
|
55 |
-
if isinstance(v, dict):
|
56 |
-
for sub_k, sub_v in flatten_dict(v).items():
|
57 |
-
result[f'{k}_{sub_k}'] = sub_v
|
58 |
-
else:
|
59 |
-
result[k] = v
|
60 |
-
return result
|
61 |
-
|
62 |
-
|
63 |
-
class LinearRamp:
|
64 |
-
def __init__(self, start_value=0, end_value=1, start_iter=-1, end_iter=0):
|
65 |
-
self.start_value = start_value
|
66 |
-
self.end_value = end_value
|
67 |
-
self.start_iter = start_iter
|
68 |
-
self.end_iter = end_iter
|
69 |
-
|
70 |
-
def __call__(self, i):
|
71 |
-
if i < self.start_iter:
|
72 |
-
return self.start_value
|
73 |
-
if i >= self.end_iter:
|
74 |
-
return self.end_value
|
75 |
-
part = (i - self.start_iter) / (self.end_iter - self.start_iter)
|
76 |
-
return self.start_value * (1 - part) + self.end_value * part
|
77 |
-
|
78 |
-
|
79 |
-
class LadderRamp:
|
80 |
-
def __init__(self, start_iters, values):
|
81 |
-
self.start_iters = start_iters
|
82 |
-
self.values = values
|
83 |
-
assert len(values) == len(start_iters) + 1, (len(values), len(start_iters))
|
84 |
-
|
85 |
-
def __call__(self, i):
|
86 |
-
segment_i = bisect.bisect_right(self.start_iters, i)
|
87 |
-
return self.values[segment_i]
|
88 |
-
|
89 |
-
|
90 |
-
def get_ramp(kind='ladder', **kwargs):
|
91 |
-
if kind == 'linear':
|
92 |
-
return LinearRamp(**kwargs)
|
93 |
-
if kind == 'ladder':
|
94 |
-
return LadderRamp(**kwargs)
|
95 |
-
raise ValueError(f'Unexpected ramp kind: {kind}')
|
96 |
-
|
97 |
-
|
98 |
-
def print_traceback_handler(sig, frame):
|
99 |
-
LOGGER.warning(f'Received signal {sig}')
|
100 |
-
bt = ''.join(traceback.format_stack())
|
101 |
-
LOGGER.warning(f'Requested stack trace:\n{bt}')
|
102 |
-
|
103 |
-
|
104 |
-
def register_debug_signal_handlers(sig=signal.SIGUSR1, handler=print_traceback_handler):
|
105 |
-
LOGGER.warning(f'Setting signal {sig} handler {handler}')
|
106 |
-
signal.signal(sig, handler)
|
107 |
-
|
108 |
-
|
109 |
-
def handle_deterministic_config(config):
|
110 |
-
seed = dict(config).get('seed', None)
|
111 |
-
if seed is None:
|
112 |
-
return False
|
113 |
-
|
114 |
-
seed_everything(seed)
|
115 |
-
return True
|
116 |
-
|
117 |
-
|
118 |
-
def get_shape(t):
|
119 |
-
if torch.is_tensor(t):
|
120 |
-
return tuple(t.shape)
|
121 |
-
elif isinstance(t, dict):
|
122 |
-
return {n: get_shape(q) for n, q in t.items()}
|
123 |
-
elif isinstance(t, (list, tuple)):
|
124 |
-
return [get_shape(q) for q in t]
|
125 |
-
elif isinstance(t, numbers.Number):
|
126 |
-
return type(t)
|
127 |
-
else:
|
128 |
-
raise ValueError('unexpected type {}'.format(type(t)))
|
129 |
-
|
130 |
-
|
131 |
-
def get_has_ddp_rank():
|
132 |
-
master_port = os.environ.get('MASTER_PORT', None)
|
133 |
-
node_rank = os.environ.get('NODE_RANK', None)
|
134 |
-
local_rank = os.environ.get('LOCAL_RANK', None)
|
135 |
-
world_size = os.environ.get('WORLD_SIZE', None)
|
136 |
-
has_rank = master_port is not None or node_rank is not None or local_rank is not None or world_size is not None
|
137 |
-
return has_rank
|
138 |
-
|
139 |
-
|
140 |
-
def handle_ddp_subprocess():
|
141 |
-
def main_decorator(main_func):
|
142 |
-
@functools.wraps(main_func)
|
143 |
-
def new_main(*args, **kwargs):
|
144 |
-
# Trainer sets MASTER_PORT, NODE_RANK, LOCAL_RANK, WORLD_SIZE
|
145 |
-
parent_cwd = os.environ.get('TRAINING_PARENT_WORK_DIR', None)
|
146 |
-
has_parent = parent_cwd is not None
|
147 |
-
has_rank = get_has_ddp_rank()
|
148 |
-
assert has_parent == has_rank, f'Inconsistent state: has_parent={has_parent}, has_rank={has_rank}'
|
149 |
-
|
150 |
-
if has_parent:
|
151 |
-
# we are in the worker
|
152 |
-
sys.argv.extend([
|
153 |
-
f'hydra.run.dir={parent_cwd}',
|
154 |
-
# 'hydra/hydra_logging=disabled',
|
155 |
-
# 'hydra/job_logging=disabled'
|
156 |
-
])
|
157 |
-
# do nothing if this is a top-level process
|
158 |
-
# TRAINING_PARENT_WORK_DIR is set in handle_ddp_parent_process after hydra initialization
|
159 |
-
|
160 |
-
main_func(*args, **kwargs)
|
161 |
-
return new_main
|
162 |
-
return main_decorator
|
163 |
-
|
164 |
-
|
165 |
-
def handle_ddp_parent_process():
|
166 |
-
parent_cwd = os.environ.get('TRAINING_PARENT_WORK_DIR', None)
|
167 |
-
has_parent = parent_cwd is not None
|
168 |
-
has_rank = get_has_ddp_rank()
|
169 |
-
assert has_parent == has_rank, f'Inconsistent state: has_parent={has_parent}, has_rank={has_rank}'
|
170 |
-
|
171 |
-
if parent_cwd is None:
|
172 |
-
os.environ['TRAINING_PARENT_WORK_DIR'] = os.getcwd()
|
173 |
-
|
174 |
-
return has_parent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/monoscene_lite/monoscene/unet3d_nyu.py
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
# encoding: utf-8
|
2 |
-
import torch
|
3 |
-
import torch.nn as nn
|
4 |
-
import torch.nn.functional as F
|
5 |
-
import numpy as np
|
6 |
-
from monoscene.CRP3D import CPMegaVoxels
|
7 |
-
from monoscene.modules import (
|
8 |
-
Process,
|
9 |
-
Upsample,
|
10 |
-
Downsample,
|
11 |
-
SegmentationHead,
|
12 |
-
ASPP,
|
13 |
-
)
|
14 |
-
|
15 |
-
|
16 |
-
class UNet3D(nn.Module):
|
17 |
-
def __init__(
|
18 |
-
self,
|
19 |
-
class_num,
|
20 |
-
norm_layer,
|
21 |
-
feature,
|
22 |
-
full_scene_size,
|
23 |
-
n_relations=4,
|
24 |
-
project_res=[],
|
25 |
-
context_prior=True,
|
26 |
-
bn_momentum=0.1,
|
27 |
-
):
|
28 |
-
super(UNet3D, self).__init__()
|
29 |
-
self.business_layer = []
|
30 |
-
self.project_res = project_res
|
31 |
-
|
32 |
-
self.feature_1_4 = feature
|
33 |
-
self.feature_1_8 = feature * 2
|
34 |
-
self.feature_1_16 = feature * 4
|
35 |
-
|
36 |
-
self.feature_1_16_dec = self.feature_1_16
|
37 |
-
self.feature_1_8_dec = self.feature_1_8
|
38 |
-
self.feature_1_4_dec = self.feature_1_4
|
39 |
-
|
40 |
-
self.process_1_4 = nn.Sequential(
|
41 |
-
Process(self.feature_1_4, norm_layer, bn_momentum, dilations=[1, 2, 3]),
|
42 |
-
Downsample(self.feature_1_4, norm_layer, bn_momentum),
|
43 |
-
)
|
44 |
-
self.process_1_8 = nn.Sequential(
|
45 |
-
Process(self.feature_1_8, norm_layer, bn_momentum, dilations=[1, 2, 3]),
|
46 |
-
Downsample(self.feature_1_8, norm_layer, bn_momentum),
|
47 |
-
)
|
48 |
-
self.up_1_16_1_8 = Upsample(
|
49 |
-
self.feature_1_16_dec, self.feature_1_8_dec, norm_layer, bn_momentum
|
50 |
-
)
|
51 |
-
self.up_1_8_1_4 = Upsample(
|
52 |
-
self.feature_1_8_dec, self.feature_1_4_dec, norm_layer, bn_momentum
|
53 |
-
)
|
54 |
-
self.ssc_head_1_4 = SegmentationHead(
|
55 |
-
self.feature_1_4_dec, self.feature_1_4_dec, class_num, [1, 2, 3]
|
56 |
-
)
|
57 |
-
|
58 |
-
self.context_prior = context_prior
|
59 |
-
size_1_16 = tuple(np.ceil(i / 4).astype(int) for i in full_scene_size)
|
60 |
-
|
61 |
-
if context_prior:
|
62 |
-
self.CP_mega_voxels = CPMegaVoxels(
|
63 |
-
self.feature_1_16,
|
64 |
-
size_1_16,
|
65 |
-
n_relations=n_relations,
|
66 |
-
bn_momentum=bn_momentum,
|
67 |
-
)
|
68 |
-
|
69 |
-
#
|
70 |
-
def forward(self, input_dict):
|
71 |
-
res = {}
|
72 |
-
|
73 |
-
x3d_1_4 = input_dict["x3d"]
|
74 |
-
x3d_1_8 = self.process_1_4(x3d_1_4)
|
75 |
-
x3d_1_16 = self.process_1_8(x3d_1_8)
|
76 |
-
|
77 |
-
if self.context_prior:
|
78 |
-
ret = self.CP_mega_voxels(x3d_1_16)
|
79 |
-
x3d_1_16 = ret["x"]
|
80 |
-
for k in ret.keys():
|
81 |
-
res[k] = ret[k]
|
82 |
-
|
83 |
-
x3d_up_1_8 = self.up_1_16_1_8(x3d_1_16) + x3d_1_8
|
84 |
-
x3d_up_1_4 = self.up_1_8_1_4(x3d_up_1_8) + x3d_1_4
|
85 |
-
|
86 |
-
ssc_logit_1_4 = self.ssc_head_1_4(x3d_up_1_4)
|
87 |
-
|
88 |
-
res["ssc_logit"] = ssc_logit_1_4
|
89 |
-
|
90 |
-
return res
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|