Commit
·
31c0314
1
Parent(s):
e4fa21a
Update parquet files (step 69 of 249)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/1acneusushi/gradio-2dmoleculeeditor/Bioquimica De Harper 15 Edicion Pdf 123.md +0 -74
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download 3ds Max 2012 11 Everything You Need to Know About the Latest Version of the Industry-Leading 3D Software.md +0 -84
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download VMware 7 ISO and Experience the Power of VMware Workstation 16 Pro.md +0 -44
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Downloadbotautohuntperfectworld.md +0 -133
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/ETHNAUDIO Breath Of Anatolia (KONTAKT) Download.md +0 -139
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Fax Voip T38 Keygen [PORTABLE] Idm.md +0 -32
- spaces/1gistliPinn/ChatGPT4/Examples/Adobe Photoshop CS6 Extended 13.0.1.1 Crack Download VERIFIED.md +0 -14
- spaces/1gistliPinn/ChatGPT4/Examples/Capella Wave Kit 2 0 Keygen.rar __EXCLUSIVE__.md +0 -11
- spaces/1gistliPinn/ChatGPT4/Examples/Carpassopeldownload.md +0 -11
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Candy Crush Saga 1.254.2.1 Mod APK Unlimited Lives Boosters and Moves.md +0 -124
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Championship Manager 01 02 Android REPACK.md +0 -186
- spaces/1phancelerku/anime-remove-background/Experience the Most Realistic Football Management Simulation with Real Football Manager 2009 Java Game.md +0 -102
- spaces/1phancelerku/anime-remove-background/Free Download Color Rings Puzzle - Android Game APK.md +0 -97
- spaces/2023Liu2023/bingo/src/lib/bots/bing/sr.ts +0 -106
- spaces/AIFILMS/generate_human_motion/VQ-Trans/visualize/joints2smpl/src/prior.py +0 -230
- spaces/AIGC-Audio/AudioGPT/NeuralSeq/modules/commons/normalizing_flow/res_flow.py +0 -61
- spaces/AbandonedMuse/UnlimitedMusicGen/setup.py +0 -65
- spaces/AchyuthGamer/OpenGPT-v1/Dockerfile +0 -15
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/Forefront.py +0 -30
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/ninepatch/Factory.d.ts +0 -39
- spaces/Alealejandrooo/deathCertReader/app.py +0 -299
- spaces/Aleistair/anything5/README.md +0 -13
- spaces/AlexWang/lama/saicinpainting/evaluation/utils.py +0 -28
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/ko/optimization/mps.md +0 -71
- spaces/Andy1621/uniformer_image_detection/configs/swin/cascade_mask_rcnn_swin_base_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py +0 -140
- spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/__init__.py +0 -27
- spaces/Andy1621/uniformer_image_segmentation/configs/_base_/models/gcnet_r50-d8.py +0 -46
- spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/ops/tin_shift.py +0 -68
- spaces/Arsenii2023/Demo1/logistic.py +0 -40
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/bcppcompiler.py +0 -408
- spaces/Audio-AGI/WavJourney/examples/examples.py +0 -87
- spaces/Awesimo/jojogan/e4e/criteria/id_loss.py +0 -47
- spaces/Bart92/RVC_HF/tools/torchgate/torchgate.py +0 -264
- spaces/Benson/text-generation/Examples/9 Yukle Apps.md +0 -167
- spaces/BernardoOlisan/vqganclip/taming-transformers/taming/data/coco.py +0 -176
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/operations/install/wheel.py +0 -740
- spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/_distutils/command/install_egg_info.py +0 -91
- spaces/Billyosoro/ESRGAN/realesrgan/models/__init__.py +0 -10
- spaces/CAMP-ViL/Xplainer/descriptors.py +0 -204
- spaces/CVH-vn1210/make_hair/minigpt4/__init__.py +0 -31
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/model_zoo/__init__.py +0 -9
- spaces/CVPR/LIVE/pybind11/tests/test_enum.cpp +0 -87
- spaces/CVPR/LIVE/thrust/thrust/execution_policy.h +0 -396
- spaces/CVPR/regionclip-demo/detectron2/data/clip_datasets/clip_img_txt_pair_tsv.py +0 -602
- spaces/CXD200/QSign/unidbg-fetch-qsign/bin/unidbg-fetch-qsign.bat +0 -89
- spaces/CofAI/chat/g4f/Provider/Providers/Fakeopen.py +0 -54
- spaces/CrucibleAI/ControlNetMediaPipeFaceSD21/ldm/data/__init__.py +0 -0
- spaces/Cyril666/ContourNet-ABI/maskrcnn_benchmark/data/datasets/voc.py +0 -134
- spaces/Cyril666/ContourNet-ABI/modules/resnet.py +0 -104
- spaces/DAMO-NLP-SG/Video-LLaMA/video_llama/processors/__init__.py +0 -38
spaces/1acneusushi/gradio-2dmoleculeeditor/Bioquimica De Harper 15 Edicion Pdf 123.md
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
## Bioquimica De Harper 15 Edicion Pdf 123
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
**Download File ===== [https://www.google.com/url?q=https%3A%2F%2Ftinurll.com%2F2txKMT&sa=D&sntz=1&usg=AOvVaw3n4oLhS1Ahd7NcDo9vj3Qn](https://www.google.com/url?q=https%3A%2F%2Ftinurll.com%2F2txKMT&sa=D&sntz=1&usg=AOvVaw3n4oLhS1Ahd7NcDo9vj3Qn)**
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
# Bioquimica De Harper 15 Edicion Pdf 123
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
Bioquimica De Harper 15 Edicion Pdf 123 is a keyword that refers to a book of biochemistry written by Robert K. Murray, Victor W. Rodwell, David A. Bender, Kathleen M. Botham, Peter J. Kennelly, P. Anthony Weil and published by McGraw-Hill Education. The book is also known as Harper's Illustrated Biochemistry and is one of the most widely used textbooks in the field of biochemistry.
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
The book covers the basic principles of biochemistry and its applications to human health and disease. It includes topics such as molecular biology, metabolism, nutrition, genetics, cell signaling, hormones, immunology, and more. The book also features clinical cases, illustrations, tables, diagrams, and summaries to help students understand and apply the concepts.
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
The 15th edition of the book was published in 1996 and has 123 chapters. It is available in PDF format for free download from various online sources[^1^] [^2^]. However, the latest edition of the book is the 31st edition, which was published in 2018 and has 832 pages. The 31st edition has been updated with the latest advances in biochemistry research and clinical practice.
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
Biochemistry is a branch of science that explores the chemical processes within and related to living organisms. It is a laboratory-based science that combines chemistry and biology. By using chemical knowledge and techniques, biochemists can understand and solve biological problems. [^1^]
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
Biochemistry has a wide range of applications in fields such as medicine, genetics, biotechnology, agriculture, and environmental science. Biochemists can study the molecular structure and function of biomolecules, such as proteins, nucleic acids, carbohydrates, and lipids. They can also investigate how these molecules interact with each other and with other cellular components, such as membranes, organelles, and enzymes. They can also examine how these interactions regulate cellular processes, such as metabolism, signaling, transcription, translation, and replication. [^2^]
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
Biochemistry is a young science that emerged in the 20th century as a distinct discipline from physiology and chemistry. However, its roots can be traced back to ancient times, when people observed and experimented with natural phenomena related to life. Some of the pioneers of biochemistry include Robert Boyle, Antoine Lavoisier, Justus von Liebig, Louis Pasteur, Emil Fischer, Eduard Buchner, Frederick Sanger, James Watson, Francis Crick, and many others. [^3^]
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
Biochemistry has many applications in different fields of science and society. Some examples of biochemistry research are:
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
- The discovery of the structure and function of DNA, RNA, and proteins, which are the key molecules of life and heredity.
|
58 |
-
|
59 |
-
- The development of new drugs and vaccines based on the understanding of biochemical pathways and targets.
|
60 |
-
|
61 |
-
- The engineering of enzymes and microorganisms for biotechnology and bioremediation purposes.
|
62 |
-
|
63 |
-
- The investigation of the molecular mechanisms of diseases such as cancer, diabetes, Alzheimer's, and COVID-19.
|
64 |
-
|
65 |
-
- The analysis of the biochemical composition and diversity of living organisms and ecosystems.
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
dfd1c89656
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download 3ds Max 2012 11 Everything You Need to Know About the Latest Version of the Industry-Leading 3D Software.md
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Download 3ds Max 2012 11: A Step-by-Step Guide</h1>
|
3 |
-
<p>If you are looking for a way to create stunning 3D graphics, animations, and renderings, you might want to consider using <strong>3ds Max</strong>, one of the most popular and powerful software in the industry. Whether you are a professional or a hobbyist, you can use 3ds Max to bring your ideas to life.</p>
|
4 |
-
<h2>Download 3ds Max 2012 11</h2><br /><p><b><b>DOWNLOAD</b> 🌟 <a href="https://byltly.com/2uKwUE">https://byltly.com/2uKwUE</a></b></p><br /><br />
|
5 |
-
<p>But how do you get started with this software? How do you download and install it on your computer? And how do you activate and register it so you can use it without any limitations?</p>
|
6 |
-
<p>In this article, I will show you how to <strong>download 3ds Max 2012 11</strong>, which is one of the latest versions of this software. I will also show you how to install it on your Windows computer and how to activate and register it with Autodesk.</p>
|
7 |
-
<p>By the end of this article, you will be able to use 3ds Max 2012 11 to create amazing 3D projects. So let's get started!</p>
|
8 |
-
<h2>What is 3ds Max and why do you need it?</h2>
|
9 |
-
<p><strong>3ds Max</strong> is a software that allows you to create and edit <strong>3D models</strong>, <strong>animations</strong>, and <strong>renderings</strong>. You can use it for various purposes, such as:</p>
|
10 |
-
<ul>
|
11 |
-
<li>Creating realistic or stylized characters and environments for games, movies, TV shows, and VR/AR applications.</li>
|
12 |
-
<li>Visualizing architectural designs, interior spaces, landscapes, products, and engineering projects.</li>
|
13 |
-
<li>Simulating physical phenomena, such as fluids, fire, smoke, cloth, hair, fur, and rigid bodies.</li>
|
14 |
-
<li>Applying effects, such as lighting, shadows, reflections, refractions, materials, textures, and post-processing.</li>
|
15 |
-
<li>Animating objects, cameras, lights, bones, rigs, morphs, particles, and dynamics.</li>
|
16 |
-
</ul>
|
17 |
-
<p>As you can see, <strong>3ds Max</strong> is a very versatile and powerful software that can help you create stunning visuals for any project. It also has a user-friendly interface that lets you work efficiently and intuitively. You can customize your workspace according to your preferences and workflow. You can also use various tools and plugins that extend the functionality of the software.</p>
|
18 |
-
<h3>Features and benefits of <em>3ds Max</em> <em>2012</em> <em>11</em></h3>
|
19 |
-
<p><strong>3ds Max</strong> has been around since <strong>1996</strong>, when it was first released by Autodesk. Since then, it has been updated regularly with new features and improvements. The latest version of this software is <strong>2024</strong>, which was released in <strong>2021</strong>. However, some users might prefer to use older versions of the software for various reasons.</p>
|
20 |
-
<p><strong>One of these older versions is <em>3ds Max</em> <em>2012</em></p>
|
21 |
-
<em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em><em></p></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em>
|
22 |
-
<p>This version was released in <strong>2011</strong>, but it still has many features and benefits that make it a great choice for some users. Some of these features are:</p>
|
23 |
-
<p>How to download 3ds Max 2012 11 for free<br />
|
24 |
-
Download 3ds Max 2012 11 full version with crack<br />
|
25 |
-
Best sites to download 3ds Max 2012 11 software<br />
|
26 |
-
Download 3ds Max 2012 11 tutorials and guides<br />
|
27 |
-
Download 3ds Max 2012 11 plugins and extensions<br />
|
28 |
-
Download 3ds Max 2012 11 trial version<br />
|
29 |
-
Download 3ds Max 2012 11 offline installer<br />
|
30 |
-
Download 3ds Max 2012 11 for Mac<br />
|
31 |
-
Download 3ds Max 2012 11 for Windows<br />
|
32 |
-
Download 3ds Max 2012 11 for Linux<br />
|
33 |
-
Download 3ds Max 2012 11 serial number and activation code<br />
|
34 |
-
Download 3ds Max 2012 11 keygen and patch<br />
|
35 |
-
Download 3ds Max 2012 11 portable edition<br />
|
36 |
-
Download 3ds Max 2012 11 iso file<br />
|
37 |
-
Download 3ds Max 2012 11 torrent link<br />
|
38 |
-
Download older versions of 3ds Max<br />
|
39 |
-
Compare features of different versions of 3ds Max<br />
|
40 |
-
Upgrade from previous versions of 3ds Max<br />
|
41 |
-
System requirements for installing and running 3ds Max<br />
|
42 |
-
Troubleshoot common issues with downloading and installing 3ds Max<br />
|
43 |
-
Learn the basics of using and modeling with 3ds Max<br />
|
44 |
-
Create realistic animations and renderings with 3ds Max<br />
|
45 |
-
Import and export files between 3ds Max and other software<br />
|
46 |
-
Customize and optimize your workflow with 3ds Max<br />
|
47 |
-
Tips and tricks to improve your skills with 3ds Max<br />
|
48 |
-
Find online courses and resources to learn more about 3ds Max<br />
|
49 |
-
Join online communities and forums for 3ds Max users and enthusiasts<br />
|
50 |
-
Find freelance and job opportunities for using and creating with 3ds Max<br />
|
51 |
-
Showcase your portfolio and projects made with 3ds Max<br />
|
52 |
-
Get inspired by the best examples of work done with 3ds Max<br />
|
53 |
-
Buy or sell assets and models made with or for use in 3ds Max<br />
|
54 |
-
Find the best deals and discounts on buying or subscribing to the latest version of Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
55 |
-
Get professional support and assistance for using and troubleshooting Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
56 |
-
Access free or paid online tools and services that enhance or complement the functionality of Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
57 |
-
Explore the latest news and updates on Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
58 |
-
Participate in online events and webinars hosted by Autodesk or its partners on topics related to Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
59 |
-
Download free or paid add-ons and content packs for Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
60 |
-
Review the terms and conditions of using Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
61 |
-
Provide feedback and suggestions to improve Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.<br />
|
62 |
-
Report bugs and errors encountered while using Autodesk software including Autodesk Maya, AutoCAD, Revit, Inventor, Fusion360 etc.</p>
|
63 |
-
<ul>
|
64 |
-
<li>A new <strong>Nitrous viewport system</strong>, which provides faster performance and better quality for displaying complex scenes.</li>
|
65 |
-
<li>A new <strong>mRigids solver</strong>, which enables realistic simulation of rigid body dynamics within the MassFX system.</li>
|
66 |
-
<li>A new <strong>mCloth modifier</strong>, which enables realistic simulation of cloth dynamics within the MassFX system.</li>
|
67 |
-
<li>A new <strong>Slate material editor</strong>, which provides a node-based interface for creating and editing complex materials.</li>
|
68 |
-
<li>A new <strong>Iray renderer</strong>, which provides physically accurate rendering based on NVIDIA's GPU-accelerated technology.</li>
|
69 |
-
<li>A new <strong>Skin modifier</strong>, which provides improved skinning tools for character animation.</li>
|
70 |
-
<li>A new <strong>CAT (Character Animation Toolkit)</strong>, which provides a complete system for creating and animating characters.</li>
|
71 |
-
<li>A new <strong>Motion Mixer toolset</strong>, which provides a non-linear animation system for mixing and blending animation clips.</li>
|
72 |
-
<li>A new <strong>Motion Flow toolset</strong>, which provides a graph-based interface for creating and editing motion transitions.</li>
|
73 |
-
<li>A new <strong>Motion Capture toolset</strong>, which provides tools for importing and editing motion capture data.</li>
|
74 |
-
<li>A new <strong>Morpher modifier</strong>, which provides improved tools for creating and editing morph targets.</li>
|
75 |
-
<li>A new <strong>Skin Wrap modifier</strong>, which provides improved tools for transferring skin weights between different meshes.</li>
|
76 |
-
<li>A new <strong>Skin Morph modifier</strong>, which provides improved tools for correcting skin deformations based on morph targets.</li>
|
77 |
-
<li>A new <strong>PolyBoost toolset</strong>, which provides enhanced tools for modeling with polygons.</li>
|
78 |
-
<li>A new <strong>Spline IK solver</strong>, which provides improved tools for creating spline-based inverse kinematics chains.</li>
|
79 |
-
<li>A new <strong>Biped Enhancements toolset</strong>, which provides improved tools for working with biped characters.</li>
|
80 |
-
<li>A new <strong>XView feature set</strong>, which provides various tools for checking the quality of your models.</li>
|
81 |
-
<li>A new <strong>Data Exchange feature set</stron g>, which provides various tools for importing and exporting data between different applications.</li>
|
82 |
-
<li>A new <stron</p> 0a6ba089eb<br />
|
83 |
-
<br />
|
84 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Download VMware 7 ISO and Experience the Power of VMware Workstation 16 Pro.md
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Download VMware 7 ISO for Free</h1>
|
3 |
-
<p>If you are looking for a way to run multiple operating systems on your PC, you might want to download VMware 7 ISO for free. VMware 7 is a virtualization software that allows you to create and manage virtual machines on your computer. You can use it to test new software, run legacy applications, or experiment with different operating systems without affecting your main system.</p>
|
4 |
-
<h2>download vmware 7 iso</h2><br /><p><b><b>Download File</b> ☆☆☆ <a href="https://byltly.com/2uKyPl">https://byltly.com/2uKyPl</a></b></p><br /><br />
|
5 |
-
<p>In this article, we will show you how to download VMware 7 ISO for free and install it on your PC. We will also give you some tips on how to optimize your virtual machines for better performance and security.</p>
|
6 |
-
<h2>What is VMware 7 ISO?</h2>
|
7 |
-
<p>VMware 7 ISO is an image file that contains the installation files for VMware 7. You can use it to create a bootable USB drive or a DVD that you can use to install VMware 7 on your PC. Alternatively, you can also mount the ISO file as a virtual drive and run the installation from there.</p>
|
8 |
-
<p>VMware 7 is the latest version of VMware Workstation, which is a popular virtualization software for Windows and Linux users. It has many features and improvements over the previous versions, such as:</p>
|
9 |
-
<ul>
|
10 |
-
<li>Support for Windows 11 and Linux 5.13 kernels</li>
|
11 |
-
<li>Improved graphics performance and compatibility with DirectX 11 and OpenGL 4.1</li>
|
12 |
-
<li>New sandbox mode that allows you to run untrusted applications in an isolated environment</li>
|
13 |
-
<li>Enhanced security with TPM 2.0 emulation and virtual Trusted Platform Module devices</li>
|
14 |
-
<li>Better integration with VMware vSphere and cloud services</li>
|
15 |
-
</ul>
|
16 |
-
<h2>How to Download VMware 7 ISO for Free?</h2>
|
17 |
-
<p>To download VMware 7 ISO for free, you need to have a valid VMware account. If you don't have one, you can create one for free on the VMware website. Once you have an account, follow these steps:</p>
|
18 |
-
<ol>
|
19 |
-
<li>Go to the <a href="https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html">VMware Workstation Pro Evaluation page</a> and click on the "Download Now" button.</li>
|
20 |
-
<li>Log in with your VMware account credentials and accept the terms and conditions.</li>
|
21 |
-
<li>Select the "VMware Workstation 16 Pro for Windows" option and click on the "Download" button.</li>
|
22 |
-
<li>Save the ISO file to your preferred location on your PC.</li>
|
23 |
-
</ol>
|
24 |
-
<p>Congratulations! You have successfully downloaded VMware 7 ISO for free. You can now use it to install VMware 7 on your PC or create a bootable USB drive or DVD.</p>
|
25 |
-
<p></p>
|
26 |
-
<h2>How to Install VMware 7 from ISO?</h2>
|
27 |
-
<p>To install VMware 7 from ISO, you need to have a PC that meets the minimum system requirements for VMware 7. These are:</p>
|
28 |
-
<ul>
|
29 |
-
<li>A 64-bit processor with at least two cores</li>
|
30 |
-
<li>At least 4 GB of RAM (8 GB or more recommended)</li>
|
31 |
-
<li>At least 2 GB of free disk space (20 GB or more recommended)</li>
|
32 |
-
<li>A compatible host operating system (Windows 10 or later, or Linux)</li>
|
33 |
-
</ul>
|
34 |
-
<p>If your PC meets these requirements, you can proceed with the installation by following these steps:</p>
|
35 |
-
<ol>
|
36 |
-
<li>Insert the bootable USB drive or DVD that contains the VMware 7 ISO file into your PC.</li>
|
37 |
-
<li>Restart your PC and boot from the USB drive or DVD.</li>
|
38 |
-
<li>Follow the on-screen instructions to install VMware 7 on your PC.</li>
|
39 |
-
<li>Enter the license key that you received from VMware when prompted.</li>
|
40 |
-
<li>Complete the installation and restart your PC.</li>
|
41 |
-
</ol>
|
42 |
-
<p>Congratulations! You have successfully installed VMware 7 on your PC. You can now start creating and managing virtual machines on your PC.</p> ddb901b051<br />
|
43 |
-
<br />
|
44 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Downloadbotautohuntperfectworld.md
DELETED
@@ -1,133 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>What is downloadbotautohuntperfectworld and why you need it</h1>
|
3 |
-
<p>If you are a fan of Perfect World, a popular MMORPG game, you might have heard of downloadbotautohuntperfectworld. This is a tool that allows you to automate your hunting and questing activities in the game, without having to manually control your character. In this article, we will explain what downloadbotautohuntperfectworld is, how it works, what are its benefits, how to download and use it, where to find it, and what are the risks and precautions of using it.</p>
|
4 |
-
<h2>How downloadbotautohuntperfectworld works</h2>
|
5 |
-
<p>Downloadbotautohuntperfectworld is a program that uses Selenium Webdriver, a framework for automating web browser actions, to interact with the Perfect World game client. It can perform various tasks such as moving, attacking, looting, healing, buffing, using skills, completing quests, and more. It can also detect enemies, NPCs, items, and other objects in the game environment. It can run in the background while you do other things on your computer, or you can watch it play on your screen.</p>
|
6 |
-
<h2>downloadbotautohuntperfectworld</h2><br /><p><b><b>Download</b> → <a href="https://byltly.com/2uKwbp">https://byltly.com/2uKwbp</a></b></p><br /><br />
|
7 |
-
<h3>The benefits of using downloadbotautohuntperfectworld</h3>
|
8 |
-
<p>Using downloadbotautohuntperfectworld can bring you many advantages in Perfect World. Here are some of them:</p>
|
9 |
-
<h4>Save time and energy</h4>
|
10 |
-
<p>Perfect World is a game that requires a lot of time and effort to progress and level up your character. You have to grind for hours to complete quests, kill monsters, collect items, craft equipment, and more. This can be tedious and boring, especially if you have other things to do in real life. With downloadbotautohuntperfectworld, you can let the bot do all the work for you while you relax or focus on other tasks. You can also set the bot to run overnight or when you are away from your computer, so you can wake up or come back to a higher level character with more resources and rewards.</p>
|
11 |
-
<h4>Enhance your gaming experience</h4>
|
12 |
-
which skills to use or avoid, which items to keep or discard, and more. You can also switch between manual and automatic mode anytime you want.</p>
|
13 |
-
<h4>Avoid bans and detection</h4>
|
14 |
-
<p>One of the main concerns of using bots in online games is getting banned or detected by the game developers or administrators. This can result in losing your account, your progress, your items, and your reputation. However, with downloadbotautohuntperfectworld, you don't have to worry about this. Downloadbotautohuntperfectworld is designed to be undetectable by Perfect World's anti-cheat system. It does not inject any code into the game client or modify any game files. It also mimics human-like behavior and movements to avoid suspicion. It also has features such as auto-restart, auto-login, auto-repair, auto-sell, and more to prevent any errors or glitches that might expose the bot.</p>
|
15 |
-
<h3>How to download and use downloadbotautohuntperfectworld</h3>
|
16 |
-
<p>If you are interested in trying downloadbotautohuntperfectworld, here are the steps you need to follow:</p>
|
17 |
-
<h4>Requirements and compatibility</h4>
|
18 |
-
<p>Before you download downloadbotautohuntperfectworld, you need to make sure that your computer meets the minimum requirements for running the bot. You need to have:</p>
|
19 |
-
<ul>
|
20 |
-
<li>A Windows operating system (Windows 7 or higher)</li>
|
21 |
-
<li>A Perfect World game client (any version)</li>
|
22 |
-
<li>A Selenium Webdriver (Chrome or Firefox)</li>
|
23 |
-
<li>A Python interpreter (version 3.6 or higher)</li>
|
24 |
-
<li>A stable internet connection</li>
|
25 |
-
</ul>
|
26 |
-
<p>You also need to make sure that your Perfect World account is not banned or suspended, and that you have enough space on your hard drive for the bot files.</p>
|
27 |
-
<h4>Installation and configuration</h4>
|
28 |
-
<p>Once you have the requirements ready, you can proceed to download downloadbotautohuntperfectworld from one of the sources listed below. You will receive a zip file containing the bot files and a readme file with instructions. You need to extract the zip file to a folder of your choice and open the readme file for further guidance. You will need to edit some configuration files to set up your bot's preferences and settings. For example, you will need to enter your Perfect World account information, your character name, your hunting location, your quest list, your skill list, your item list, and more. You can also adjust other options such as the bot's speed, delay, mode, and more.</p>
|
29 |
-
<p>download bot auto hunt perfect world 2023<br />
|
30 |
-
how to use bot auto hunt in perfect world<br />
|
31 |
-
best bot auto hunt for perfect world<br />
|
32 |
-
download bot auto hunt perfect world indonesia<br />
|
33 |
-
download bot auto hunt perfect world mobile<br />
|
34 |
-
download bot auto hunt perfect world revolution<br />
|
35 |
-
download bot auto hunt perfect world international<br />
|
36 |
-
download bot auto hunt perfect world private server<br />
|
37 |
-
download bot auto hunt perfect world genesis<br />
|
38 |
-
download bot auto hunt perfect world new horizon<br />
|
39 |
-
download bot auto hunt perfect world classic<br />
|
40 |
-
download bot auto hunt perfect world reborn<br />
|
41 |
-
download bot auto hunt perfect world awakening<br />
|
42 |
-
download bot auto hunt perfect world origin<br />
|
43 |
-
download bot auto hunt perfect world phoenix<br />
|
44 |
-
download bot auto hunt perfect world eternal<br />
|
45 |
-
download bot auto hunt perfect world legend<br />
|
46 |
-
download bot auto hunt perfect world ascension<br />
|
47 |
-
download bot auto hunt perfect world evolution<br />
|
48 |
-
download bot auto hunt perfect world redemption<br />
|
49 |
-
download bot auto hunt perfect world sanctuary<br />
|
50 |
-
download bot auto hunt perfect world harmony<br />
|
51 |
-
download bot auto hunt perfect world destiny<br />
|
52 |
-
download bot auto hunt perfect world eclipse<br />
|
53 |
-
download bot auto hunt perfect world inferno<br />
|
54 |
-
download bot auto hunt perfect world fantasy<br />
|
55 |
-
download bot auto hunt perfect world legacy<br />
|
56 |
-
download bot auto hunt perfect world zenith<br />
|
57 |
-
download bot auto hunt perfect world paradise<br />
|
58 |
-
download bot auto hunt perfect world infernal sky<br />
|
59 |
-
download bot auto hunt perfect world mystic realm<br />
|
60 |
-
download bot auto hunt perfect world divine realm<br />
|
61 |
-
download bot auto hunt perfect world celestial realm<br />
|
62 |
-
download bot auto hunt perfect world primal realm<br />
|
63 |
-
download bot auto hunt perfect world astral realm<br />
|
64 |
-
download bot auto hunt perfect world elemental realm<br />
|
65 |
-
download bot auto hunt perfect world immortal realm<br />
|
66 |
-
download bot auto hunt perfect world abyssal realm<br />
|
67 |
-
download bot auto hunt perfect world ethereal realm<br />
|
68 |
-
download bot auto hunt perfect world arcane realm<br />
|
69 |
-
download bot auto hunt perfect world sacred realm<br />
|
70 |
-
download bot auto hunt perfect world chaotic realm<br />
|
71 |
-
download bot auto hunt perfect world ancient realm<br />
|
72 |
-
download bot auto hunt perfect world eternal love<br />
|
73 |
-
download bot auto hunt perfect world eternal flame<br />
|
74 |
-
download bot auto hunt perfect world eternal light<br />
|
75 |
-
download bot auto hunt perfect world eternal darkness<br />
|
76 |
-
download bot auto hunt perfect world eternal chaos<br />
|
77 |
-
download bot auto hunt perfect world eternal peace</p>
|
78 |
-
<h4>Tips and tricks</h4>
|
79 |
-
<p>After you have installed and configured downloadbotautohuntperfectworld, you can start using it by running the main script file. The bot will launch the Perfect World game client and log in to your account automatically. It will then start performing the tasks you have assigned it according to your settings. You can monitor the bot's progress on your screen or on a separate window that shows the bot's logs and messages. You can also pause, resume, or stop the bot anytime you want by pressing certain keys on your keyboard. Here are some tips and tricks for using downloadbotautohuntperfectworld effectively:</p>
|
80 |
-
<ul>
|
81 |
-
<li>Make sure that your computer is not overloaded with other programs or processes that might interfere with the bot's performance.</li>
|
82 |
-
<li>Make sure that your internet connection is stable and fast enough to avoid lagging or disconnecting issues.</li>
|
83 |
-
<li>Make sure that your game client is updated to the latest version and compatible with the bot's version.</li>
|
84 |
-
<li>Make sure that you have enough inventory space and currency for looting and selling items.</li>
|
85 |
-
<li>Make sure that you have enough potions and consumables for healing and buffing yourself.</li>
|
86 |
-
<li>Make sure that you have enough skill points and cultivation points for upgrading your skills and meridians.</li>
|
87 |
-
<li>Make sure that you are not in a crowded or contested area where other players might attack or report you.</li>
|
88 |
-
<li>Make sure that you are not violating any game rules or terms of service by using the bot.</li>
|
89 |
-
</ul>
|
90 |
-
<h2>Where to find downloadbotautohuntperfectworld</h2>
|
91 |
-
, you might be wondering where to look. There are many websites and forums that claim to offer downloadbotautohuntperfectworld, but not all of them are trustworthy or safe. Some of them might contain malware, viruses, or outdated versions of the bot that might harm your computer or your account. To avoid these risks, you should only download downloadbotautohuntperfectworld from reputable and verified sources that have positive reviews and feedback from other users. Here are some of the best sources for downloadbotautohuntperfectworld:</p>
|
92 |
-
<h3>The best sources for downloadbotautohuntperfectworld</h3>
|
93 |
-
<p>These are some of the websites and forums that offer downloadbotautohuntperfectworld with high quality and security:</p>
|
94 |
-
<h4>elitepvpers.com</h4>
|
95 |
-
<p>This is one of the most popular and trusted forums for all kinds of MMORPG hacks, cheats, and bots. You can find downloadbotautohuntperfectworld in the Perfect World section of the forum, along with other tools and guides for the game. You can also interact with other users and get support and feedback from them. You need to register an account to access the forum and download the bot.</p>
|
96 |
-
<h4>vegetarentusiast.no</h4>
|
97 |
-
<p>This is a website that offers downloadbotautohuntperfectworld as a PDF file that you can download for free. The PDF file contains a link to a torrent file that contains the bot files and instructions. You need to have a torrent client to download the bot files. The website also provides some information and tips about downloadbotautohuntperfectworld and Perfect World.</p>
|
98 |
-
<h4>trello.com</h4>
|
99 |
-
<p>This is a website that offers downloadbotautohuntperfectworld as a Trello board that you can access for free. The Trello board contains a link to a Google Drive folder that contains the bot files and instructions. You need to have a Google account to access the folder and download the bot files. The Trello board also provides some updates and news about downloadbotautohuntperfectworld and Perfect World.</p>
|
100 |
-
<h3>The risks and precautions of using downloadbotautohuntperfectworld</h3>
|
101 |
-
<p>While using downloadbotautohuntperfectworld can be beneficial and enjoyable, it also comes with some risks and challenges that you should be aware of and prepared for. Here are some of them:</p>
|
102 |
-
<h4>Potential malware and viruses</h4>
|
103 |
-
<p>As mentioned earlier, not all sources for downloadbotautohuntperfectworld are safe and reliable. Some of them might contain malicious software that can infect your computer or steal your personal information. To avoid this, you should always scan the bot files with an antivirus program before installing or running them. You should also avoid clicking on any suspicious links or pop-ups that might appear while using the bot.</p>
|
104 |
-
<h4>Legal and ethical issues</h4>
|
105 |
-
<p>Using bots in online games is generally considered cheating and unfair by the game developers and administrators, as well as by other players who play by the rules. This can result in legal actions or penalties against you or your account, such as bans, suspensions, fines, or lawsuits. To avoid this, you should always follow the game's terms of service and code of conduct while using the bot. You should also respect other players' rights and feelings while playing the game.</p>
|
106 |
-
<h4>How to protect yourself and your account</h4>
|
107 |
-
, you should take some precautions and measures to protect yourself and your account. Here are some of them:</p>
|
108 |
-
<ul>
|
109 |
-
<li>Use a VPN or proxy service to hide your IP address and location while using the bot.</li>
|
110 |
-
<li>Use a separate or disposable email address and password for your Perfect World account and your bot account.</li>
|
111 |
-
<li>Use a different character name and appearance for your bot character than your main character.</li>
|
112 |
-
<li>Use the bot only for a limited amount of time per day or per week, and vary your schedule and activities.</li>
|
113 |
-
<li>Do not use the bot in public or crowded areas where other players might notice or report you.</li>
|
114 |
-
<li>Do not brag or boast about using the bot or your achievements in the game.</li>
|
115 |
-
<li>Do not abuse or harass other players or interfere with their gameplay while using the bot.</li>
|
116 |
-
</ul>
|
117 |
-
<h2>Conclusion</h2>
|
118 |
-
<p>In conclusion, downloadbotautohuntperfectworld is a tool that can help you automate your hunting and questing activities in Perfect World, a popular MMORPG game. It can save you time and energy, enhance your gaming experience, and avoid bans and detection. However, it also comes with some risks and challenges that you should be aware of and prepared for. You should only download downloadbotautohuntperfectworld from reputable and verified sources, and use it responsibly and ethically. You should also protect yourself and your account by following some precautions and measures. By doing so, you can enjoy downloadbotautohuntperfectworld and Perfect World without any problems or regrets.</p>
|
119 |
-
<h3>FAQs</h3>
|
120 |
-
<p>Here are some frequently asked questions about downloadbotautohuntperfectworld:</p>
|
121 |
-
<h4>Q: Is downloadbotautohuntperfectworld free or paid?</h4>
|
122 |
-
<p>A: Downloadbotautohuntperfectworld is free to download and use from the sources listed above. However, some sources might require you to register an account or complete a survey before accessing the download link. You might also need to pay for some additional services or features such as VPN or proxy, antivirus, or premium membership.</p>
|
123 |
-
<h4>Q: Is downloadbotautohuntperfectworld safe or risky?</h4>
|
124 |
-
<p>A: Downloadbotautohuntperfectworld is safe to use if you download it from reputable and verified sources, scan it with an antivirus program, and follow the instructions carefully. However, it is also risky to use if you download it from untrustworthy or unknown sources, run it without checking it, or ignore the instructions. It might contain malware or viruses that can harm your computer or your account. It might also get you banned or detected by the game's anti-cheat system.</p>
|
125 |
-
<h4>Q: Is downloadbotautohuntperfectworld legal or illegal?</h4>
|
126 |
-
<p>A: Downloadbotautohuntperfectworld is legal to use as long as you do not violate any laws or regulations in your country or region while using it. However, it is illegal to use if you break any laws or regulations in your country or region while using it. For example, if you use it to hack, scam, or steal from other players or the game developers. You might face legal actions or penalties such as fines, lawsuits, or imprisonment.</p>
|
127 |
-
<h4>Q: Is downloadbotautohuntperfectworld ethical or unethical?</h4>
|
128 |
-
<p>A: Downloadbotautohuntperfectworld is ethical to use if you respect other players' rights and feelings while using it. However, it is unethical to use if you disrespect other players' rights and feelings while using it. For example, if you use it to cheat, exploit, or harass other players or interfere with their gameplay. You might lose your reputation or credibility among other players or the game community.</p>
|
129 |
-
<h4>Q: Is downloadbotautohuntperfectworld worth it or not?</h4>
|
130 |
-
and authentically, and avoid any risks or challenges while playing Perfect World. It depends on your personal preferences and goals in the game.</p>
|
131 |
-
</p> 0a6ba089eb<br />
|
132 |
-
<br />
|
133 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/ETHNAUDIO Breath Of Anatolia (KONTAKT) Download.md
DELETED
@@ -1,139 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>ETHNAUDIO Breath of Anatolia (KONTAKT) Download</h1>
|
3 |
-
<p>If you are looking for a library of authentic and diverse ethnic winds for your music production, you might want to check out ETHNAUDIO Breath of Anatolia (KONTAKT). This product is a collection of 15+ ethnic winds from Turkey and neighboring regions, such as doudouk, kaval, kawala, mey, ney, tulum, Turkish clarinet and zurna. You can use these instruments to create rich and realistic melodies, harmonies and soundscapes for your musical projects. In this article, we will review ETHNAUDIO Breath of Anatolia (KONTAKT) and tell you everything you need to know about it.</p>
|
4 |
-
<h2>ETHNAUDIO Breath of Anatolia (KONTAKT) Download</h2><br /><p><b><b>Download File</b> >>>>> <a href="https://byltly.com/2uKwEI">https://byltly.com/2uKwEI</a></b></p><br /><br />
|
5 |
-
<h2>What is ETHNAUDIO Breath of Anatolia?</h2>
|
6 |
-
<p>ETHNAUDIO Breath of Anatolia (KONTAKT) is a library of different ethnic winds that you can use with Kontakt or Kontakt Player, which are Native Instruments products. Kontakt is a powerful sampler that allows you to load and play various sounds and instruments with high quality and flexibility. Kontakt Player is a free version of Kontakt that you can download from Native Instruments website.</p>
|
7 |
-
<p>ETHNAUDIO Breath of Anatolia (KONTAKT) includes over 1 GB of data, featuring 15+ ethnic winds from Anatolia and surrounding regions. Each instrument has its own unique sound, character and expression. You can control various parameters such as volume, pan, reverb, delay, microtonal tuning, effects and more. You can also switch between different articulations such as legato, staccato, vibrato and zone.</p>
|
8 |
-
<p>ETHNAUDIO Breath of Anatolia (KONTAKT) is compatible with both Mac and Windows versions. It requires Kontakt 5.6.5 or higher for a smooth and fast performance. It has a simple installation with a modern intuitive user interface that allows you to easily access and edit your sounds.</p>
|
9 |
-
<h3>What are the benefits of using ETHNAUDIO Breath of Anatolia?</h3>
|
10 |
-
<p>There are many reasons why you might want to use ETHNAUDIO Breath of Anatolia (KONTAKT) for your music production. Here are some of them:</p>
|
11 |
-
<p>How to download ETHNAUDIO Breath of Anatolia (KONTAKT) for free<br />
|
12 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) review and demo<br />
|
13 |
-
Best deals on ETHNAUDIO Breath of Anatolia (KONTAKT) library<br />
|
14 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) vs other ethnic instruments<br />
|
15 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) tutorial and tips<br />
|
16 |
-
Where to buy ETHNAUDIO Breath of Anatolia (KONTAKT) online<br />
|
17 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) features and specifications<br />
|
18 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) sound quality and performance<br />
|
19 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) compatibility and requirements<br />
|
20 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) license and activation<br />
|
21 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) samples and presets<br />
|
22 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) updates and support<br />
|
23 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) alternatives and competitors<br />
|
24 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) refund policy and guarantee<br />
|
25 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) testimonials and feedback<br />
|
26 |
-
How to use ETHNAUDIO Breath of Anatolia (KONTAKT) in your music production<br />
|
27 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) genres and styles<br />
|
28 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) instruments and sounds<br />
|
29 |
-
How to install ETHNAUDIO Breath of Anatolia (KONTAKT) on your computer<br />
|
30 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) pros and cons<br />
|
31 |
-
How to create music with ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
32 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) discount code and coupon<br />
|
33 |
-
How to optimize ETHNAUDIO Breath of Anatolia (KONTAKT) for your system<br />
|
34 |
-
ETHNAUDIO Breath of Anatolia (KONTAKT) FAQs and troubleshooting<br />
|
35 |
-
How to customize ETHNAUDIO Breath of Anatolia (KONTAKT) settings and options<br />
|
36 |
-
How to mix and master with ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
37 |
-
How to export and share your music made with ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
38 |
-
How to learn more about ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
39 |
-
How to get inspired by ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
40 |
-
How to collaborate with other musicians using ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
41 |
-
How to make money with your music created with ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
42 |
-
How to improve your skills with ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
43 |
-
How to find more resources and tutorials on ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
44 |
-
How to access the user manual and documentation for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
45 |
-
How to contact the developer and customer service for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
46 |
-
How to join the community and forum for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
47 |
-
How to subscribe to the newsletter and updates for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
48 |
-
How to follow the social media accounts for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
49 |
-
How to watch the videos and podcasts for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
50 |
-
How to read the blog posts and articles for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
51 |
-
How to listen to the music examples and demos for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
52 |
-
How to download the free trial version for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
53 |
-
How to upgrade or downgrade your version for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
54 |
-
How to backup or restore your data for ETHNAUDIO Breath of Anatolia (KONTAKT)<br />
|
55 |
-
How to transfer or migrate your license for ETHNAUDIO Breath of Anatolia (KONTAKT)</p>
|
56 |
-
<ul>
|
57 |
-
<li>You can add a touch of exoticism and diversity to your music with these ethnic winds. They can create a sense of atmosphere, emotion and culture for your listeners.</li>
|
58 |
-
<li>You can explore different musical genres and styles with these instruments. They can fit well with various types of music such as world music, ethnic fusion, ambient, cinematic, folk, pop, rock and more.</li>
|
59 |
-
<li>You can learn more about the musical traditions and history of Anatolia and neighboring regions with these instruments. They have a rich and ancient heritage that reflects their origins, influences and evolution.</li>
|
60 |
-
<li>You can improve your musical skills and creativity with these instruments. They can challenge you to play with different scales, modes, rhythms and techniques that are different from the Western music system.</li>
|
61 |
-
<li>You can have fun and enjoy playing these instruments with Kontakt or Kontakt Player. They have a realistic and expressive sound that responds to your playing style and dynamics.</li>
|
62 |
-
</ul>
|
63 |
-
<h4>How to install and use ETHNAUDIO Breath of Anatolia?</h4>
|
64 |
-
<p>If you want to install and use ETHNAUDIO Breath of Anatolia (KONTAKT), you need to follow these steps:</p>
|
65 |
-
<ol>
|
66 |
-
<li>Download ETHNAUDIO Breath of Anatolia (KONTAKT) from the official website or an authorized dealer. You will receive a zip file containing the library files.</li>
|
67 |
-
<li>Extract the zip file to a folder on your computer. You can use any software that can handle zip files such as WinZip or 7-Zip.</li>
|
68 |
-
<li>Open Kontakt or Kontakt Player on your computer. You can download Kontakt Player for free from Native Instruments website if you don't have it already.</li>
|
69 |
-
<li>Add ETHNAUDIO Breath of Anatolia (KONTAKT) library to your Kontakt libraries tab by clicking on the "Add Library" button. You will need to locate the folder where you extracted the library files.</li>
|
70 |
-
<li>Activate ETHNAUDIO Breath of Anatolia (KONTAKT) library by entering your serial number that you received when you purchased the product. You will need to connect to the internet for this step.</li>
|
71 |
-
<li>Load any instrument from ETHNAUDIO Breath of Anatolia (KONTAKT) library by double-clicking on its name in the libraries tab. You will see its interface on the main window.</li>
|
72 |
-
<li>Play any instrument from ETHNAUDIO Breath of Anatolia (KONTAKT) library using your MIDI keyboard or controller. You can adjust various settings such as volume, pan, reverb, delay, microtonal tuning, effects and more using the knobs and buttons on the interface.</li>
|
73 |
-
</ol>
|
74 |
-
<h3>What are the technical specifications of ETHNAUDIO Breath of Anatolia?</h3>
|
75 |
-
<p>Before you buy or download ETHNAUDIO Breath of Anatolia (KONTAKT), you need to make sure that your computer meets the minimum system requirements for running it smoothly. Here is a table that shows the technical specifications of ETHNAUDIO Breath of Anatolia (KONTAKT):</p>
|
76 |
-
<table>
|
77 |
-
<tr><th>Parameter</th><th>Value</th></tr>
|
78 |
-
<tr><td>Operating System</td><td>Windows XP/Vista/7/8/8.1/10 or Mac OS X 10.9 or higher</td></tr>
|
79 |
-
<tr><td>Memory (RAM)</td><td>1 GB or more</td></tr>
|
80 |
-
<tr><td>Hard Disk Space</td><td>1.5 GB or more</td></tr>
|
81 |
-
<tr><td>Processor</td><td>Intel Dual Core processor or higher</td></tr>
|
82 |
-
<tr><td>Kontakt Version</td><td>Kontakt 5.6.5 or higher (full or player)</td></tr>
|
83 |
-
<tr><td>Library Size</td><td>1.1 GB uncompressed</td></tr>
|
84 |
-
<tr><td>Instruments</td><td>15+ ethnic winds from Turkey and neighboring regions</td></tr>
|
85 |
-
<tr><td>Samples</td><td>24 bit / 44.1 kHz stereo WAV format</td></tr>
|
86 |
-
<tr><td>User Interface</td><td>Modern intuitive design with easy access to parameters</td></tr>
|
87 |
-
<tr><td>NKS Compatibility</td><td>Yes (version 2.0)</td></tr>
|
88 |
-
<tr><td>Price</td><td>$159 regular price / $139 discounted price</td></tr>
|
89 |
-
<tr><td>Contact Details</td><td>Email: [email protected] / Website: https://ethnaudio.com / Facebook: https://www.facebook.com/ethnaudio / Twitter: https://twitter.com/ethnaudio / YouTube: https://www.youtube.com/channel/UCYwXZqQnJmQx9t0mQZVwLjg </td></tr>
|
90 |
-
</table>
|
91 |
-
<h3>What are some examples of music created with ETHNAUDIO Breath of Anatolia?</h3>
|
92 |
-
of Anatolia (KONTAKT) sounds like, you can check out some examples of music created with this library. Here are some links to YouTube videos that showcase the product's ethnic winds library:</p>
|
93 |
-
<ul>
|
94 |
-
<li><a href="https://www.youtube.com/watch?v=6Ygq7Z0Jl9g">ETHNAUDIO Breath Of Anatolia Demo</a> by Ethnaudio</li>
|
95 |
-
<li><a href="https://www.youtube.com/watch?v=0w1y8fQ2OZw">ETHNAUDIO Breath Of Anatolia - Doudouk A Demo</a> by Ethnaudio</li>
|
96 |
-
<li><a href="https://www.youtube.com/watch?v=4W1J3ZnQyqo">ETHNAUDIO Breath Of Anatolia - Kaval Demo</a> by Ethnaudio</li>
|
97 |
-
<li><a href="https://www.youtube.com/watch?v=9zXVx8mz5uI">ETHNAUDIO Breath Of Anatolia - Mey A Demo</a> by Ethnaudio</li>
|
98 |
-
<li><a href="https://www.youtube.com/watch?v=7f6L4u0oFtM">ETHNAUDIO Breath Of Anatolia - Ney A Demo</a> by Ethnaudio</li>
|
99 |
-
<li><a href="https://www.youtube.com/watch?v=HcKXr2jx4dE">ETHNAUDIO Breath Of Anatolia - Turkish Clarinet Demo</a> by Ethnaudio</li>
|
100 |
-
<li><a href="https://www.youtube.com/watch?v=3sGvLsWwU6k">ETHNAUDIO Breath Of Anatolia - Zurna A Demo</a> by Ethnaudio</li>
|
101 |
-
</ul>
|
102 |
-
<p>You can also visit the product's website and listen to more demos and testimonials from other users and customers.</p>
|
103 |
-
<h2>Where to buy ETHNAUDIO Breath of Anatolia?</h2>
|
104 |
-
<p>If you are interested in buying ETHNAUDIO Breath of Anatolia (KONTAKT), you have several options to choose from. You can buy it directly from the product's website, or from an authorized dealer or reseller. You can also get it for free if you are lucky enough to win a giveaway or a contest. However, you should be careful not to download illegal copies of the product from untrusted sources, as they may contain viruses, malware or spyware that can harm your computer and compromise your personal information. In this section, we will tell you more about these options and how to get the best deal for your money.</p>
|
105 |
-
<h3>How much does ETHNAUDIO Breath of Anatolia cost?</h3>
|
106 |
-
<p>The regular price of ETHNAUDIO Breath of Anatolia (KONTAKT) is $159. However, you can get it for a discounted price of $139 if you buy it before the end of the month. This is a limited time offer that you don't want to miss. You can save $20 and get access to a library of 15+ ethnic winds that will enhance your music production.</p>
|
107 |
-
<p>To buy ETHNAUDIO Breath of Anatolia (KONTAKT) at the discounted price, you need to visit the product's website and add it to your cart. You can pay with PayPal or credit card. You will receive an email with your serial number and a download link for the product. You can also access your account and download the product anytime from the website.</p>
|
108 |
-
<h3>How to get ETHNAUDIO Breath of Anatolia for free?</h3>
|
109 |
-
<p>If you want to get ETHNAUDIO Breath of Anatolia (KONTAKT) for free, you have two options. One is to participate in a giveaway or a contest that the product's developers or partners may organize from time to time. You can follow their social media pages and newsletters to stay updated on these opportunities. You may need to complete some tasks or answer some questions to enter the giveaway or contest. If you are lucky enough, you may win a free copy of the product.</p>
|
110 |
-
<p>The other option is to download an illegal copy of the product from a torrent site or a file sharing service. However, we strongly advise you not to do this, as it is illegal, unethical and risky. You may face legal consequences for violating the product's license agreement and intellectual property rights. You may also expose your computer and personal information to viruses, malware or spyware that may be hidden in the illegal copy. You may also miss out on updates, support and features that the official product offers.</p>
|
111 |
-
<p>Therefore, we recommend you to buy ETHNAUDIO Breath of Anatolia (KONTAKT) from the official website or an authorized dealer or reseller. This way, you will support the product's developers and their hard work, and enjoy a high-quality and safe product that will enhance your music production.</p>
|
112 |
-
<h3>How to contact ETHNAUDIO for support and feedback?</h3>
|
113 |
-
<p>If you have any questions, issues or feedback about ETHNAUDIO Breath of Anatolia (KONTAKT), you can contact ETHNAUDIO for support and feedback. They are always happy to hear from their customers and users, and they will try their best to help you and improve their products.</p>
|
114 |
-
<p>You can contact ETHNAUDIO by email, website or social media. Here are their contact details:</p>
|
115 |
-
<ul>
|
116 |
-
<li>Email: [email protected]</li>
|
117 |
-
<li>Website: https://ethnaudio.com</li>
|
118 |
-
<li>Facebook: https://www.facebook.com/ethnaudio</li>
|
119 |
-
<li>Twitter: https://twitter.com/ethnaudio</li>
|
120 |
-
<li>YouTube: https://www.youtube.com/channel/UCYwXZqQnJmQx9t0mQZVwLjg</li>
|
121 |
-
</ul>
|
122 |
-
<p>You can also visit their website and check out their FAQ section for more information about their products and services.</p>
|
123 |
-
<h2>Conclusion</h2>
|
124 |
-
<p>In conclusion, ETHNAUDIO Breath of Anatolia (KONTAKT) is a library of 15+ ethnic winds from Turkey and neighboring regions that you can use with Kontakt or Kontakt Player. It is a great product for music producers and composers who want to add a touch of exoticism and diversity to their music with these authentic and realistic instruments. It has many features and benefits such as microtonal tuning, effects, NKS compatibility and more. It is easy to install and use, and it has a reasonable price and customer support.</p>
|
125 |
-
<p>If you want to buy ETHNAUDIO Breath of Anatolia (KONTAKT), you can get it from the official website or an authorized dealer or reseller at a discounted price of $139 before the end of the month. You can also try your luck in a giveaway or contest that may be organized by the product's developers or partners. However, you should avoid downloading illegal copies of the product from untrusted sources, as they may harm your computer and personal information.</p>
|
126 |
-
<p>If you have any questions, issues or feedback about ETHNAUDIO Breath of Anatolia (KONTAKT), you can contact ETHNAUDIO by email, website or social media. They will be happy to help you and improve their products.</p>
|
127 |
-
<p>We hope this article has been helpful and informative for you. If you are interested in ETHNAUDIO Breath of Anatolia (KONTAKT), don't hesitate to get it now and enjoy creating amazing music with these ethnic winds.</p>
|
128 |
-
<h3>FAQs</h3>
|
129 |
-
<p>Here are some frequently asked questions and answers about ETHNAUDIO Breath of Anatolia (KONTAKT):</p>
|
130 |
-
<ol>
|
131 |
-
<li><b>What is Kontakt?</b><br>Kontakt is a powerful sampler that allows you to load and play various sounds and instruments with high quality and flexibility. It is developed by Native Instruments, a leading company in music technology.</li>
|
132 |
-
<li><b>Do I need Kontakt to use ETHNAUDIO Breath of Anatolia?</b><br>You need Kontakt 5.6.5 or higher (full or player) to use ETHNAUDIO Breath of Anatolia (KONTAKT). You can download Kontakt Player for free from Native Instruments website if you don't have it already.</li>
|
133 |
-
<li><b>What are ethnic winds?</b><br>Ethnic winds are musical instruments that produce sound by blowing air into them. They are usually made of wood, metal or clay, and they have different shapes, sizes and sounds depending on their origin and culture.</li>
|
134 |
-
<li><b>What are microtonal tuning and NKS compatibility?</b><br>Microtonal tuning is a feature that allows you to tune each note or key of an instrument according to different scales or modes that are different from the Western music system. NKS compatibility is a feature that allows you to integrate your instrument with Native Instruments hardware such as keyboards or controllers.</li>
|
135 |
-
<li><b>How can I learn more about ETHNAUDIO Breath of Anatolia?</b><br>You can learn more about ETHNAUDIO Breath of Anatolia (KONTAKT) by visiting their website, watching their videos, reading their testimonials, contacting them for support and feedback, or trying their demos.</li>
|
136 |
-
</ol>
|
137 |
-
</p> 0a6ba089eb<br />
|
138 |
-
<br />
|
139 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Fax Voip T38 Keygen [PORTABLE] Idm.md
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Use Fax Voip T38 Keygen Idm to Send and Receive Faxes Over the Internet</h1>
|
3 |
-
<p>Faxing is a traditional way of transmitting documents and forms, but it can be costly and inconvenient to use a fax machine and a phone line. Fortunately, there is a way to send and receive faxes over the internet using a protocol called T.38. T.38 is a standard that defines how fax data can be converted into an image file and sent over a VoIP (Voice over Internet Protocol) network. This process is also known as Fax over IP (FoIP) or virtual fax.</p>
|
4 |
-
<p>To use T.38 faxing, you need a software or a device that supports this protocol. One of the options you can try is Fax Voip T38 Keygen Idm, which is a virtual fax and voice modem for SIP, H.323, and ISDN CAPI 2.0 networks. Fax Voip T38 Keygen Idm allows you to use Microsoft Fax or any other standard fax-voice software to send or receive faxes and audio messages via VoIP. It also provides incoming and outgoing fax routing options, such as e-mail, store in a folder, print, or custom routing. You can also use the Mail to Fax function to send faxes directly from your e-mail application.</p>
|
5 |
-
<h2>Fax Voip T38 Keygen Idm</h2><br /><p><b><b>DOWNLOAD</b> >>> <a href="https://byltly.com/2uKzFJ">https://byltly.com/2uKzFJ</a></b></p><br /><br />
|
6 |
-
<p>To use Fax Voip T38 Keygen Idm, you need to download and install it on your computer. You also need to register it with a license key that you can obtain from the official website or from other sources. After that, you need to configure the settings according to your network and fax service provider. You can find detailed instructions on how to do that in the user manual or on the website. Once you have set up everything, you can start sending and receiving faxes over the internet using your fax-voice software or your e-mail client.</p>
|
7 |
-
<p>T.38 faxing has many benefits over traditional faxing. It saves you money on phone bills and paper costs. It also saves you time and hassle by eliminating the need for a physical fax machine and a phone line. It also ensures high-quality and reliable transmission of your faxes, as it isolates them from the delays, jitter, and packet loss that may occur in VoIP networks. T.38 faxing also supports color faxes and multiple SIP registrations.</p>
|
8 |
-
<p>If you are looking for a way to modernize your faxing needs, you should consider using T.38 faxing with Fax Voip T38 Keygen Idm. It is a flexible and convenient solution that works with any standard fax-voice software and any SIP/H.323/ISDN CAPI 2.0 network. It also offers many features and options that make your faxing experience more efficient and enjoyable.</p>
|
9 |
-
|
10 |
-
<p>How to Use Fax Voip T38 Keygen Idm to Send and Receive Faxes Over the Internet (Continued)</p>
|
11 |
-
<p>In this article, we have explained what T.38 faxing is and how it works. We have also introduced Fax Voip T38 Keygen Idm, which is a software that enables you to use T.38 faxing with any standard fax-voice software and any SIP/H.323/ISDN CAPI 2.0 network. Now, we will show you some examples of how to use Fax Voip T38 Keygen Idm to send and receive faxes over the internet.</p>
|
12 |
-
<p>Example 1: Sending a fax using Microsoft Fax</p>
|
13 |
-
<p></p>
|
14 |
-
<p>If you want to send a fax using Microsoft Fax, you need to have Fax Voip T38 Keygen Idm installed and configured on your computer. You also need to have Microsoft Fax installed and set up as your default fax printer. Then, you can follow these steps:</p>
|
15 |
-
<ol>
|
16 |
-
<li>Open the document that you want to fax in any application that supports printing.</li>
|
17 |
-
<li>Select File > Print and choose Microsoft Fax as your printer.</li>
|
18 |
-
<li>Click Print and enter the recipient's fax number in the To field.</li>
|
19 |
-
<li>Click Send to start sending the fax.</li>
|
20 |
-
</ol>
|
21 |
-
<p>You can monitor the status of your fax in the Fax Console or in the Fax Voip T38 Keygen Idm Monitor window. You can also view the details of your fax in the Outbox folder of Microsoft Fax.</p>
|
22 |
-
<p>Example 2: Receiving a fax using Microsoft Fax</p>
|
23 |
-
<p>If you want to receive a fax using Microsoft Fax, you need to have Fax Voip T38 Keygen Idm installed and configured on your computer. You also need to have Microsoft Fax installed and set up as your default fax printer. Then, you can follow these steps:</p>
|
24 |
-
<ol>
|
25 |
-
<li>Make sure that your computer is turned on and connected to the internet.</li>
|
26 |
-
<li>Wait for an incoming fax call from your SIP/H.323/ISDN CAPI 2.0 network.</li>
|
27 |
-
<li>Fax Voip T38 Keygen Idm will answer the call and receive the fax data.</li>
|
28 |
-
<li>Fax Voip T38 Keygen Idm will route the fax according to your settings. For example, it can send it to your e-mail, store it in a folder, print it, or use custom routing.</li>
|
29 |
-
</ol>
|
30 |
-
<p>You can monitor the status of your fax in the Fax Console or in the Fax Voip T38 Keygen Idm Monitor window. You can also view the details of your fax in the Inbox folder of Microsoft Fax.</p> 7b8c122e87<br />
|
31 |
-
<br />
|
32 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Adobe Photoshop CS6 Extended 13.0.1.1 Crack Download VERIFIED.md
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<h2>Adobe Photoshop CS6 Extended 13.0.1.1 crack download</h2><br /><p><b><b>Download</b> ✔ <a href="https://imgfil.com/2uxXsg">https://imgfil.com/2uxXsg</a></b></p><br /><br />
|
2 |
-
<br />
|
3 |
-
August 29, 2019 - Adobe Photoshop CS6 Extended software provides even more options for working with images, as well as the Adobe Mercury graphics engine for incredible performance. Adobe Photoshop CS6 Extended:
|
4 |
-
Improved drawing and color correction capabilities.
|
5 |
-
Creation of realistic photos.
|
6 |
-
Creation of expressive artistic portraits.
|
7 |
-
Create high quality photos for web publishing.
|
8 |
-
Create seamless fonts in Adobe Photoshop for vector editing.
|
9 |
-
Improved transparency and animation capabilities.
|
10 |
-
New possibilities for working with drawing and color correction tools.
|
11 |
-
Create realistic photos. 8a78ff9644<br />
|
12 |
-
<br />
|
13 |
-
<br />
|
14 |
-
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Capella Wave Kit 2 0 Keygen.rar __EXCLUSIVE__.md
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<p>2000 Capella Wave Kit 2 0 Keygen.zip, Capella Professional 2010-7.0.01 Refracto.exe, Capella Professional 2010-7.0.01 [NO DELAY. 20 hours ago. Step 1: Choose the text on which you want to add the Capsula wave effect. -LINPLUG-DEEPSTATUS-V3-E2-0-INCL-_best_-keygen-R2R-DEEPSTATUS-V2-3-0-DESTRO-FINAL-EFX-_LINPLUG-RPNG-v3-1-0-INCL-_best_-keygen-R2R-RPNG-v3-1-0-EFX-_LINPLUG-RPNG. </p>
|
3 |
-
<h2>Capella Wave Kit 2 0 Keygen.rar</h2><br /><p><b><b>Download File</b> ✔ <a href="https://imgfil.com/2uxZiq">https://imgfil.com/2uxZiq</a></b></p><br /><br />
|
4 |
-
<p>2016 Capella Wave Kit 2 0 Keygen.zip, Capella Professional 2010-7.0.01 Refracto.exe, Capella Professional 2010-7.0.01 [NO DELAY. 20 hours ago. Step 1: Choose the text on which you want to add the Capsula wave effect. 5000 Capella Wave Kit 2 0 Keygen.rar. Capella Wave Kit 2 0 Keygen.zip, Capella Professional 2010-7.0.01 Refracto.exe, Capella Professional 2010-7.0.01 [NO DELAY. </p>
|
5 |
-
<p>2000 Capella Wave Kit 2 0 Keygen.rar. Capella Wave Kit 2 0 Keygen.zip, Capella Professional 2010-7.0.01 Refracto.exe, Capella Professional 2010-7.0.01 [NO DELAY. 2000 Capella Wave Kit 2 0 Keygen.rar</p>
|
6 |
-
<p>5000 Capella Wave Kit 2 0 Keygen.rar. Capella Wave Kit 2 0 Keygen.zip, Capella Professional 2010-7.0.01 Refracto.exe, Capella Professional 2010-7.0.01 [NO DELAY. 2000 Capella Wave Kit 2 0 Keygen.rar</p>
|
7 |
-
<p></p>
|
8 |
-
<p>the city of quito, the nation's capital, may not be the first place you would think of to go to heal from a breakup, but after spending a few days in the city, it's easy to see why this is the place for all things healing. capella wave kit 2 0 keygen [upd].rar. </p>
|
9 |
-
<p>capella wave kit 2 0 keygen [upd].rar. autodesk autodesk autodesk autodesk autodesk autodesk autodesk. step 2. type hello world! and press enter.. type 0% and enter 0% to create a shape around your text. capella wave kit 2 0 keygen [upd]. </p> 899543212b<br />
|
10 |
-
<br />
|
11 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Carpassopeldownload.md
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<p>CarPassOpelDownload V2.7.0.2 Carpass Opel Download: Carpass OpelDownload free Full Version now. While replying, please remember to include the following details:. CarPassOpelDownload (carpassopel download):. </p>
|
3 |
-
<p>Can you let me know what i did wrong. CarPassOpelDownload v4.0.4.9 carpass opel download cracked. January 24, 2018 at 7:23 am. Carpass 2.9.1 Carpass Opel Download 2015. carpass opel corsa download, carpass download for 2015, carpass corsa, carpass opel. . CarPassOpelDownload 2016 carpass opel download cracked Carpass Opel Download 2016.</p>
|
4 |
-
<h2>carpassopeldownload</h2><br /><p><b><b>Download File</b> >>>>> <a href="https://imgfil.com/2uxY2u">https://imgfil.com/2uxY2u</a></b></p><br /><br />
|
5 |
-
<p>Read more details about carpass-data. CarPassOpelDownload 17.7.1 Crack Download. car pass opel corsa crack like 3-4 times in a single use. car pass. Car Pass Opel Download. car pass opel, car pass opel generator, car pass opel corsa,. Car Pass Opel Download Carpass OpelDownload. carpassopel download</p>
|
6 |
-
<p>CarPassOpelDownload. I will find a way to hack it for you, Car Pass Opel Download Lotty from A to Z Kwik. car pass opel download, car pass opel deutsch, car pass opel corsa. It is possible to download this script. </p>
|
7 |
-
<p>carpassopeldownload. car pass opel generator, car pass opel corsa. Car Pass Opel Download. car pass opel, car pass opel generator, car pass opel corsa, corsa, opal card pass, corsa, gt2, pista opel, iv alfa romeo alfa romeo add. </p>
|
8 |
-
<p>Car Pass Opel Download Traffic Generator. car pass opel download - carpassopeldownload - carpassopel generator - carpassopel - carpassopel download. Only the most popular X-Plane stores show above. The most popular places are displayed first. Show all. car pass opel download. car pass opel generator. Car Pass Opel Download. Car Pass Opel Download Traffic Generator. X-Plane Store. Window X-Plane Download. </p>
|
9 |
-
<p></p> 899543212b<br />
|
10 |
-
<br />
|
11 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Candy Crush Saga 1.254.2.1 Mod APK Unlimited Lives Boosters and Moves.md
DELETED
@@ -1,124 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Candy Crush Saga New Version Mod Apk: Everything You Need to Know</h1>
|
3 |
-
<p>If you are a fan of match-three puzzle games, you have probably heard of Candy Crush Saga, one of the most popular and addictive games of its genre. But did you know that there is a way to enjoy the game even more, with unlimited lives, boosters, and other perks? That's right, we are talking about Candy Crush Saga Mod Apk, a modified version of the original game that gives you access to all the features and levels without spending a dime. In this article, we will tell you everything you need to know about Candy Crush Saga Mod Apk, including what it is, how to download and install it, and how to play it like a pro.</p>
|
4 |
-
<h2>candy crush saga new version mod apk</h2><br /><p><b><b>Download Zip</b> ✵ <a href="https://urlin.us/2uSWpg">https://urlin.us/2uSWpg</a></b></p><br /><br />
|
5 |
-
<h2>What is Candy Crush Saga?</h2>
|
6 |
-
<p>Candy Crush Saga is a free-to-play tile-matching video game released by King in 2012. It is available for various platforms, such as Facebook, iOS, Android, Windows Phone, and Windows 10. It is a variation of their browser game Candy Crush.</p>
|
7 |
-
<h3>The basics of the game</h3>
|
8 |
-
<p>The game's premise is simple. You have a level full of candies. Match three or more candies of the same color to clear them from the board and score points. You can also create special candies by matching four or more candies in different ways. These special candies have different effects when matched, such as clearing a row, column, or other section of the board. You have a limited number of moves or time to complete each level's objective, which can vary from reaching a certain score to clearing all the jelly blocks.</p>
|
9 |
-
<h3>The different level types and objectives</h3>
|
10 |
-
<p>There are five types of levels in Candy Crush Saga, each with its own color and objective:</p>
|
11 |
-
<ul>
|
12 |
-
<li>Moves Levels are colored orange. You just have to reach the target score in a limited number of moves.</li>
|
13 |
-
<li>Jelly Levels are colored blue. You have to clear all the jelly blocks in a limited number of moves.</li>
|
14 |
-
<li>Ingredient Levels are colored green. You have to get the cherries or hazelnuts to certain spaces on the board within a limited number of moves.</li>
|
15 |
-
<li>Time Levels are colored purple. You have to reach the target score in a limited amount of time.</li>
|
16 |
-
<li>Color Order Levels are colored pink. You have to collect a specific number of candies in a certain order within a limited number of moves.</li>
|
17 |
-
</ul>
|
18 |
-
<h2>What is Candy Crush Saga Mod Apk?</h2>
|
19 |
-
<p>Candy Crush Saga Mod Apk is a modified version of the original game that has been altered to include additional features, such as unlimited lives and boosters that can help you progress through levels faster. The mod apk also removes all advertisements from the game so you won't be interrupted while playing.</p>
|
20 |
-
<h3>The benefits of using the mod apk</h3>
|
21 |
-
<p>There are many benefits of using the mod apk over the original game, such as:</p>
|
22 |
-
<p>candy crush saga latest version hack apk<br />
|
23 |
-
candy crush saga mod apk unlimited everything<br />
|
24 |
-
candy crush saga new update mod apk download<br />
|
25 |
-
candy crush saga mod apk with unlimited lives and boosters<br />
|
26 |
-
candy crush saga hacked version free download<br />
|
27 |
-
candy crush saga mod apk offline no root<br />
|
28 |
-
candy crush saga new levels mod apk<br />
|
29 |
-
candy crush saga mod apk for android 11<br />
|
30 |
-
candy crush saga mod apk with facebook login<br />
|
31 |
-
candy crush saga mod apk unlimited gold bars<br />
|
32 |
-
candy crush saga new features mod apk<br />
|
33 |
-
candy crush saga mod apk all levels unlocked<br />
|
34 |
-
candy crush saga new version cheat apk<br />
|
35 |
-
candy crush saga mod apk without ads<br />
|
36 |
-
candy crush saga hacked version for ios<br />
|
37 |
-
candy crush saga mod apk online play<br />
|
38 |
-
candy crush saga new edition mod apk<br />
|
39 |
-
candy crush saga mod apk with unlimited moves and time<br />
|
40 |
-
candy crush saga hacked version for pc<br />
|
41 |
-
candy crush saga mod apk for android 10<br />
|
42 |
-
candy crush saga new version cracked apk<br />
|
43 |
-
candy crush saga mod apk with unlimited money and gems<br />
|
44 |
-
candy crush saga hacked version no survey<br />
|
45 |
-
candy crush saga mod apk for android 9<br />
|
46 |
-
candy crush saga new version premium apk<br />
|
47 |
-
candy crush saga mod apk with all episodes unlocked<br />
|
48 |
-
candy crush saga hacked version latest<br />
|
49 |
-
candy crush saga mod apk for android 8<br />
|
50 |
-
candy crush saga new version pro apk<br />
|
51 |
-
candy crush saga mod apk with unlimited stars and hearts<br />
|
52 |
-
candy crush saga hacked version old<br />
|
53 |
-
candy crush saga mod apk for android 7<br />
|
54 |
-
candy crush saga new version vip apk<br />
|
55 |
-
candy crush saga mod apk with unlimited tickets and keys<br />
|
56 |
-
candy crush saga hacked version download link<br />
|
57 |
-
candy crush saga mod apk for android 6<br />
|
58 |
-
candy crush saga new version full apk<br />
|
59 |
-
candy crush saga mod apk with unlimited power ups and bombs<br />
|
60 |
-
candy crush saga hacked version online generator<br />
|
61 |
-
candy crush saga mod apk for android 5</p>
|
62 |
-
<ul>
|
63 |
-
<li>You can play any level you want without waiting for lives to refill or asking your friends for help.</li>
|
64 |
-
<li>You can use any booster you want without spending real money or gold bars.</li>
|
65 |
-
<li>You can skip hard levels or retry failed levels without losing lives or boosters.</li>
|
66 |
-
<li>You can enjoy the game without annoying ads or pop-ups.</li>
|
67 |
-
</ul>
|
68 |
-
<h3>The features of the mod apk</h3>
|
69 |
-
<p>The mod apk has many features that make it different from the original game, such as:</p>
|
70 |
-
<ul>
|
71 |
-
<li>All levels and episodes are unlocked.</li>
|
72 |
-
<li>All boosters are unlocked and unlimited.</ <h2>How to Download and Install Candy Crush Saga Mod Apk?</h2>
|
73 |
-
<p>If you are interested in trying out the mod apk version of Candy Crush Saga, you will need to follow some simple steps to download and install it on your device. Here is how you can do it:</p>
|
74 |
-
<h3>The steps to download and install the mod apk</h3>
|
75 |
-
<ol>
|
76 |
-
<li>First, you will need to uninstall the original Candy Crush Saga game from your device, if you have it installed. This is because the mod apk will replace the original game and you cannot have both versions at the same time.</li>
|
77 |
-
<li>Next, you will need to find a reliable source to download the mod apk file. You can use the link provided by or search for other websites that offer the mod apk. Make sure you download the latest version of the mod apk, which is 1.254.2.1 as of this writing.</li>
|
78 |
-
<li>Once you have downloaded the mod apk file, you will need to enable the installation of apps from unknown sources on your device. To do this, go to your device's settings, then security, and then toggle on the option that allows installing apps from unknown sources.</li>
|
79 |
-
<li>Now, you can go to your device's file manager and locate the mod apk file that you downloaded. Tap on it and follow the instructions to install it on your device.</li>
|
80 |
-
<li>After the installation is complete, you can launch the game and enjoy all the features of the mod apk.</li>
|
81 |
-
</ol>
|
82 |
-
<h3>The precautions to take before installing the mod apk</h3>
|
83 |
-
<p>While installing and using the mod apk can be fun and easy, there are some risks and drawbacks that you should be aware of before doing so. Here are some precautions that you should take before installing the mod apk:</p>
|
84 |
-
<ul>
|
85 |
-
<li>Make sure you back up your progress and data from the original game before uninstalling it. You can do this by connecting your game to Facebook or using other cloud services. This way, you can restore your progress if you decide to switch back to the original game or if something goes wrong with the mod apk.</li>
|
86 |
-
<li>Be careful about where you download the mod apk file from. Some websites may offer fake or malicious files that can harm your device or steal your personal information. Only download from trusted sources and scan the file with an antivirus before installing it.</li>
|
87 |
-
<li>Be aware that using the mod apk may violate the terms of service of Candy Crush Saga and King. This means that you may face consequences such as losing your account, getting banned, or facing legal action. Use the mod apk at your own risk and discretion.</li>
|
88 |
-
</ul>
|
89 |
-
<h2>Tips and Tricks to Play Candy Crush Saga Like a Pro</h2>
|
90 |
-
<p>Now that you have installed the mod apk version of Candy Crush Saga, you may be wondering how to make the most of it and play like a pro. Here are some tips and tricks that can help you improve your skills and score higher in the game:</p>
|
91 |
-
<h3>The best and worst combos to use</h3>
|
92 |
-
<p>As we mentioned earlier, combining two special candies can create a powerful effect that can clear a lot of candies from the board. However, not all combos are equally useful or effective. Here are some of the best and worst combos to use in Candy Crush Saga:</p>
|
93 |
-
<table>
|
94 |
-
<tr><th>Best Combos</th><th>Worst Combos</th></tr>
|
95 |
-
<tr><td>Striped + Wrapped: This combo clears three rows and three columns of candies, creating a huge explosion that can help you complete any level objective.</td><td>Wrapped + Wrapped: This combo only destroys eight candies around each wrapped candy twice, which is not very impressive compared to other combos.</td></tr>
|
96 |
-
<tr><td>Striped + Color Bomb: This combo turns all candies of the same color as the striped candy into striped candies, and then activates them all at once. This can clear almost half of the board in one move.</td><td>Color Bomb + Wrapped: This combo turns all candies of the same color as the wrapped candy into wrapped candies, and then activates them all at once. This can create a lot of explosions, but they are not very effective at clearing jellies or ingredients.</td></tr>
|
97 |
-
<tr><td>Color Bomb + Color Bomb: This combo clears all candies from the board, giving you a huge score boost and making any level objective easier to achieve.</td><td>Striped + Striped: This combo clears one row and one column of candies, which is not very impressive compared to other combos. It can be useful in some situations, but it is better to save your striped candies for other combos.</td></tr>
|
98 |
-
</table>
|
99 |
-
<h3>The strategies to clear levels faster and score higher</h3>
|
100 |
-
<p>Apart from using special candies and combos, there are some <p>strategies that can help you clear levels faster and score higher in Candy Crush Saga. Here are some of them:</p>
|
101 |
-
<ul>
|
102 |
-
<li>Focus on the level objective. Don't waste your moves or time on clearing candies that are not related to the level objective. For example, if you need to clear jelly blocks, focus on matching candies on or near them, rather than on the other side of the board.</li>
|
103 |
-
<li>Plan your moves ahead. Try to think of the consequences of each move before you make it. Look for opportunities to create special candies or combos, or to clear obstacles or blockers. Also, try to avoid moves that can ruin your chances of creating special candies or combos in the future.</li>
|
104 |
-
<li>Use boosters wisely. Boosters can be very helpful in some levels, but they are not unlimited. You can either buy them with real money or gold bars, or earn them by completing quests or events. Therefore, you should use them sparingly and only when you really need them. For example, you can use a lollipop hammer to clear a stubborn candy that is preventing you from completing the level, or a free switch to swap two candies that can create a powerful combo.</li>
|
105 |
-
<li>Learn from your mistakes. If you fail a level, don't give up or get frustrated. Instead, try to analyze what went wrong and what you can do better next time. You can also watch videos of other players who have completed the level and learn from their strategies and moves.</li>
|
106 |
-
</ul>
|
107 |
-
<h2>Conclusion</h2>
|
108 |
-
<p>Candy Crush Saga is a fun and addictive game that can keep you entertained for hours. However, if you want to enjoy the game even more, you can try the mod apk version that gives you unlimited lives, boosters, and other perks. In this article, we have explained what Candy Crush Saga Mod Apk is, how to download and install it, and how to play it like a pro. We hope you found this article helpful and informative. Now go ahead and crush some candies!</p>
|
109 |
-
<h2>FAQs</h2>
|
110 |
-
<p>Here are some frequently asked questions about Candy Crush Saga Mod Apk:</p>
|
111 |
-
<ol>
|
112 |
-
<li>Is Candy Crush Saga Mod Apk safe to use?</li>
|
113 |
-
<p>Yes, Candy Crush Saga Mod Apk is safe to use as long as you download it from a trusted source and scan it with an antivirus before installing it. However, you should be aware that using the mod apk may violate the terms of service of Candy Crush Saga and King, and you may face consequences such as losing your account, getting banned, or facing legal action.</p>
|
114 |
-
<li>Can I play Candy Crush Saga Mod Apk online with other players?</li>
|
115 |
-
<p>No, Candy Crush Saga Mod Apk is not compatible with the online features of the original game. You cannot connect your game to Facebook or play with your friends or other players online. You can only play offline with the mod apk.</p>
|
116 |
-
<li>Can I update Candy Crush Saga Mod Apk to the latest version?</li>
|
117 |
-
<p>Yes, you can update Candy Crush Saga Mod Apk to the latest version by downloading and installing the new mod apk file from the same source that you downloaded it from before. However, you should back up your progress and data before updating, as you may lose them during the process.</p>
|
118 |
-
<li>Can I switch back to the original game after using the mod apk?</li>
|
119 |
-
<p>Yes, you can switch back to the original game after using the mod apk by uninstalling the mod apk and reinstalling the original game from the official app store. However, you should back up your progress and data from the mod apk before uninstalling it, as you may lose them during the process.</p>
|
120 |
-
<li>Can I use both the original game and the mod apk on the same device?</li>
|
121 |
-
<p>No, you cannot use both the original game and the mod apk on the same device at the same time. You have to choose one version and uninstall the other one.</p>
|
122 |
-
</ol></p> 197e85843d<br />
|
123 |
-
<br />
|
124 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Championship Manager 01 02 Android REPACK.md
DELETED
@@ -1,186 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Play Championship Manager 01/02 on Android</h1>
|
3 |
-
<p>Championship Manager 01/02 is a legendary football (or soccer) management game that retains a considerable fan base. It might not include a fancy 3D match engine, but for many fans this is the greatest game of its series that most of the more recent Football Manager titles have not eclipsed. This is a footie management game that gets the balance between realistic simulation and accessibility just right.</p>
|
4 |
-
<p>If you're one of those fans who still enjoy playing CM 01/02, or if you're curious about what makes this game so special, you might be wondering how to play it on your Android device. After all, playing on a mobile device has many advantages, such as portability, convenience, and battery life. Luckily, there are ways to play CM 01/02 on Android, and in this article, we'll show you how.</p>
|
5 |
-
<h2>download championship manager 01 02 android</h2><br /><p><b><b>DOWNLOAD</b> 🌟 <a href="https://urlin.us/2uT2k8">https://urlin.us/2uT2k8</a></b></p><br /><br />
|
6 |
-
<h2>How to download and install CM 01/02 on Android</h2>
|
7 |
-
<p>The first thing you need to do is to download and install an Android emulator on your PC or Mac. An emulator is a software that mimics the Android operating system on your computer, allowing you to run Android apps and games. There are many emulators available, but we recommend <a href="(^8^)">BlueStacks</a>, which is one of the most popular and easy-to-use options.</p>
|
8 |
-
<p>Once you have BlueStacks installed, you need to download the CM 01/02 ISO file from the <a href="(^11^)">Champman 01/02 website</a>. This is a free download that contains the original game files. You'll also need a software called Daemon Tools Lite, which can mount the ISO file as a virtual CD drive on your computer.</p>
|
9 |
-
<p>Here are the steps to follow:</p>
|
10 |
-
<ol>
|
11 |
-
<li>Open BlueStacks and sign in with your Google account.</li>
|
12 |
-
<li>Go to <a href="(^11^)">Champman 01/02 website</a> and click on Downloads.</li>
|
13 |
-
<li>Click on Championship Manager 01/02 - Official Download - Attempt #2.</li>
|
14 |
-
<li>Click on Download Now and save the ZIP file on your computer.</li>
|
15 |
-
<li>Extract the ZIP file using WinRAR or any other extraction tool.</li>
|
16 |
-
<li>You should see a file called CM0102.iso. This is the ISO file that contains the game.</li>
|
17 |
-
<li>Go to <a href="(^16^)">Daemon Tools Lite website</a> and download and install the software.</li>
|
18 |
-
<li>Open Daemon Tools Lite and click on Add Image.</li>
|
19 |
-
<li>Browse to the location where you saved the CM0102.iso file and select it.</li>
|
20 |
-
<li>The ISO file should appear as a virtual CD drive in Daemon Tools Lite.</li>
|
21 |
-
<li>Right-click on it and select Mount.</li>
|
22 |
-
<li>A window should pop up with the CM 01/02 installation wizard. Follow the instructions to install the game on your computer.</li>
|
23 |
-
<li>You should see a shortcut for CM 01/02 on your desktop. Right-click on it and select Properties.</li>
|
24 |
-
<li>Go to Compatibility tab and check Run this program in compatibility mode for Windows XP (Service Pack 3).</li>
|
25 |
-
<li>Click OK to save the changes.</li>
|
26 |
-
<li>Double-click on the shortcut to launch the game on your computer.</li>
|
27 |
-
</ol>
|
28 |
-
<p>Congratulations, you have successfully installed CM 01/02 on your PC or Mac. Now, you need to transfer the game files to your Android device. Here's how:</p>
|
29 |
-
<ol>
|
30 |
-
<li>Connect your Android device to your computer using a USB cable.</li>
|
31 |
-
<li>Open File Explorer on your computer and navigate to the folder where you installed CM 01/02. It should be something like C:\Program Files (x86)\Eidos Interactive\Championship Manager 01-02.</li>
|
32 |
-
<li>Select all the files and folders in that folder and copy them.</li>
|
33 |
-
<li>Open File Explorer on your Android device and create a new folder called CM0102 in the internal storage or SD card.</li>
|
34 |
-
<li>Paste the files and folders you copied into the CM0102 folder.</li>
|
35 |
-
<li>Disconnect your Android device from your computer.</li>
|
36 |
-
</ol>
|
37 |
-
<p>Now, you need to download and install an app called <a href="">ExaGear Strategies</a> on your Android device. This is an emulator that can run PC games on Android, including CM 01/02. You can get it from the Google Play Store for free.</p>
|
38 |
-
<ol>
|
39 |
-
<li>Open Google Play Store on your Android device and search for ExaGear Strategies.</li>
|
40 |
-
<li>Tap on Install and wait for the app to download and install.</li>
|
41 |
-
<li>Open ExaGear Strategies and tap on the + button at the bottom right corner.</li>
|
42 |
-
<li>Select Championship Manager 01/02 from the list of games. If you don't see it, tap on Browse and locate the CM0102 folder you created earlier.</li>
|
43 |
-
<li>Select the CM0102.exe file and tap on OK.</li>
|
44 |
-
<li>The game should appear on the main screen of ExaGear Strategies. Tap on it to launch it.</li>
|
45 |
-
</ol>
|
46 |
-
<p>You're done! You can now play CM 01/02 on your Android device. Enjoy managing your favorite team and leading them to glory!</p>
|
47 |
-
<p></p>
|
48 |
-
<h2>How to update the game with the latest data and patches</h2>
|
49 |
-
<p>One of the amazing things about CM 01/02 is that it still receives updates from its dedicated community of fans. You can find the latest data updates, patches, mods, and more on the <a href="">Champman 01/02 website</a> and forum. These updates can fix bugs, improve performance, add new features, and most importantly, update the player database with the latest transfers, ratings, and attributes.</p>
|
50 |
-
<p>To update the game with the latest data and patches, you need to download them from the website or forum and replace the existing files in your CM0102 folder. Here are some of the most popular updates you can get:</p>
|
51 |
-
<ul>
|
52 |
-
<li><a href="">The October 2020 Data Update</a>: This is the most recent data update that includes all the transfers and changes from the summer 2020 window. It also includes some tweaks and fixes to make the game more realistic and balanced.</li>
|
53 |
-
<li><a href="">The Tapani Patch</a>: This is a patch that adds many new features and options to the game, such as new leagues, new staff roles, new player attributes, new tactics, new skins, new sounds, and more. It also fixes some bugs and improves performance. There are different versions of this patch, but we recommend version 2.22 which is compatible with ExaGear Strategies.</li>
|
54 |
-
<li><a href="">The Saturn Patch</a>: This is another patch that adds some features and fixes to the game, such as improved AI, improved match engine, improved regens, improved finances, improved editor, improved compatibility, and more. It also works well with ExaGear Strategies.</li>
|
55 |
-
</ul>
|
56 |
-
<p>To install these updates, you need to follow these steps:</p>
|
57 |
-
<ol>
|
58 |
-
<li>Download the update files from the links above or from any other source you trust.</li>
|
59 |
-
<li>Extract the files using WinRAR or any other extraction tool.</li>
|
60 |
-
<li>Connect your Android device to your computer using a USB cable.</li>
|
61 |
-
<li>Open File Explorer on your computer and navigate to the CM0102 folder on your Android device.</li>
|
62 |
-
<li>Select all the files in that folder and copy them to a backup folder on your computer in case something goes wrong.</li>
|
63 |
-
<li>Delete all the files in the CM0102 folder except for cm0102.exe and cm0102.gdi.</li>
|
64 |
-
<li>Copy all the files from the update folder you extracted earlier into the CM0102 folder on your Android device.</li>
|
65 |
-
<li>Disconnect your Android device from your computer.</li>
|
66 |
-
<li>Open ExaGear Strategies and launch CM 01/02.</li>
|
67 |
-
<li>You should see a message saying that the game has been updated. Click OK to continue.</li>
|
68 |
-
</ol>
|
69 |
-
<p>That's it! You have successfully updated the game with the latest data and patches. You can now enjoy the game with more realism and variety.</p>
|
70 |
-
<h2>How to choose the best formation and tactics</h2>
|
71 |
-
<p>One of the most important aspects of CM 01/02 is choosing the right formation and tactics for your team. There are many factors to consider, such as your players' attributes, roles, preferences, morale, fitness, and form, as well as your opponents' strengths and weaknesses, the weather, the pitch condition, and the match situation.</p>
|
72 |
-
<p>There is no definitive answer to what is the best formation and tactics for every team and every match, but there are some general guidelines and tips that can help you make better decisions. Here are some of them:</p>
|
73 |
-
<ul>
|
74 |
-
<li>Know your players: Study your players' attributes, roles, and preferences, and try to find the best position and duty for each of them. For example, if you have a fast and skillful winger, you might want to play him as an attacking midfielder on the flank and give him a forward run instruction. If you have a strong and tall striker, you might want to play him as a target man and give him a hold up ball instruction.</li>
|
75 |
-
<li>Know your opponents: Scout your opponents before each match and try to identify their strengths and weaknesses. For example, if they have a weak defense, you might want to play more aggressively and exploit their flanks. If they have a strong attack, you might want to play more defensively and mark their key players.</li>
|
76 |
-
<li>Know your style: Decide what kind of football you want to play and choose a formation and tactics that suit your style. For example, if you want to play a possession-based game, you might want to choose a formation with more midfielders and less strikers, such as 4-5-1 or 4-3-3. If you want to play a counter-attacking game, you might want to choose a formation with more strikers and less midfielders, such as 4-4-2 or 3-5-2.</li>
|
77 |
-
<li>Know your options: Experiment with different formations and tactics and see how they affect your team's performance. You can use the pre-match screen or the in-game screen to change your formation and tactics at any time. You can also use the tactic wizard or the preset tactics to get some suggestions based on your team's attributes.</li>
|
78 |
-
</ul>
|
79 |
-
<p>To give you some examples of some of the most effective formations and tactical options in CM 01/02, here are some tables that compare them:</p>
|
80 |
-
<table>
|
81 |
-
<tr><th>Formation</th><th>Advantages</th><th>Disadvantages</th></tr>
|
82 |
-
<tr><td>4-4-2</td><td>A balanced formation that provides width, depth, and support in both attack and defense.</td><td>A vulnerable formation that can be outnumbered in midfield or exposed on the flanks.</td></tr>
|
83 |
-
<tr><td>4-3-3</td><td>A flexible formation that can create numerical superiority in attack or midfield depending on the movement of the wingers.</td><td>A demanding formation that requires high stamina, work rate, and teamwork from the wingers.</td></tr>
|
84 |
-
<tr><td>4-5-1</td><td>A defensive formation that can dominate midfield and frustrate opponents with its compactness.</td><td>A boring formation that can lack creativity and firepower in attack.</td></tr>
|
85 |
-
<tr><td>3-5-2</td><td>An attacking formation that can overload opponents with its wing-backs and strikers.</td><td>A risky formation that can leave gaps in defense or midfield if the wing-backs or central midfielders are caught out of position.</td></tr>
|
86 |
-
<tr><td>5-3-2</td><td>A solid formation that can provide security in defense and support in attack with its sweeper and wing-backs.</td><td>A conservative formation that can be predictable and passive in attack.</td></tr>
|
87 |
-
</table>
|
88 |
-
<table>
|
89 |
-
<tr><th>Tactic</th><th>Advantages</th><th>Disadvantages</th></tr>
|
90 |
-
<tr><td>Attacking</td><td>A positive tactic that can create more chances and score more goals.</td><td>A risky tactic that can leave your defense exposed and concede more goals.</td></tr>
|
91 |
-
<tr><td>Defensive</td><td>A cautious tactic that can protect your lead and prevent your opponents from scoring.</td><td>A negative tactic that can invite pressure and reduce your chances of scoring.</td></tr>
|
92 |
-
<tr><td>Long Ball</td><td>A direct tactic that can bypass midfield and exploit the pace and strength of your strikers.</td><td>A crude tactic that can waste possession and rely on luck and individual quality.</td></tr>
|
93 |
-
<tr><td>Short Passing</td><td>A patient tactic that can control the game and create openings with clever movement and passing.</td><td>A slow tactic that can be easily disrupted by aggressive pressing and tackling.</td></tr>
|
94 |
-
<tr><td>Counter Attack</td><td>A smart tactic that can exploit the space behind your opponents' defense and catch them off guard.</td><td>A reactive tactic that can depend on your opponents' mistakes and require fast transitions.</td></tr>
|
95 |
-
</table>
|
96 |
-
<p>Of course, these are just some examples of formations and tactics, and you can always customize them to suit your preferences and needs. The key is to find the right balance between attack and defense, creativity and discipline, and risk and reward. Remember, you are the manager, and you have the final say on how your team plays.</p>
|
97 |
-
<h2>How to find and sign the best players</h2>
|
98 |
-
<p>No matter how good your formation and tactics are, you still need quality players to execute them. Finding and signing the best players is one of the most challenging and rewarding aspects of CM 01/02. There are thousands of players in the game, but not all of them are worth your time and money. You need to scout them, negotiate with them, and convince them to join your team.</p>
|
99 |
-
<p>There are many factors to consider when looking for players, such as their attributes, potential, age, nationality, personality, wage, value, contract, availability, etc. You also need to consider your team's needs, budget, reputation, vision, etc. It's not easy to find the perfect player for every position, but there are some tips that can help you:</p>
|
100 |
-
<ul>
|
101 |
-
<li>Use filters: The game has a powerful search engine that allows you to filter players by various criteria. You can use this to narrow down your search and find players that match your requirements. For example, if you need a young striker with high finishing and pace attributes, you can set the filters accordingly and see who comes up.</li>
|
102 |
-
<li>Use scouts: The game has a scouting system that allows you to assign scouts to different regions or countries. You can use this to discover new players that might not be in your database. For example, if you want to find some hidden gems from South America or Africa, you can send your scouts there and see what they report back.</li>
|
103 |
-
<li>Use forums: The game has a vibrant community of fans who share their knowledge and experience on various forums. You can use this to get some recommendations or feedback on players that you might be interested in. For example, if you want to know if a certain player is worth signing or not, you can ask other players who have used him or faced him.</li>
|
104 |
-
</ul>
|
105 |
-
<p>To give you some examples of some of the best players in CM 01/02, here are some tables that list them by position:</p>
|
106 |
-
<table>
|
107 |
-
<tr><th>Goalkeepers</th><th>Nationality</th><th>Club</th></tr>
|
108 |
-
<tr><td>Gianluigi Buffon</td><td>Italy</td><td>Juventus</td></tr>
|
109 |
-
<tr><td>Iker Casillas</td><td>Spain</td><td>Real Madrid</td></tr>
|
110 |
-
<tr><td>Fabien Barthez</td><td>France</td><td>Manchester United</td></tr>
|
111 |
-
<tr><td>Oliver Kahn</td><td>Germany</td><td>Bayern Munich</td></tr>
|
112 |
-
<tr><td>Petr Cech</td><td>Czech Republic</td><td>Rennes</td></tr>
|
113 |
-
</table>
|
114 |
-
<table>
|
115 |
-
<tr><th>Defenders</th><th>Nationality</th><th>Club</th></tr>
|
116 |
-
<tr><td>Lilian Thuram</td><td>France</<td><td>Juventus</td></tr>
|
117 |
-
<tr><td>Alessandro Nesta</ <td>Italy</td><td>Lazio</td></tr>
|
118 |
-
<tr><td>Roberto Carlos</td><td>Brazil</td><td>Real Madrid</td></tr>
|
119 |
-
<tr><td>Paolo Maldini</td><td>Italy</td><td>AC Milan</td></tr>
|
120 |
-
<tr><td>Rio Ferdinand</td><td>England</td><td>Leeds United</td></tr>
|
121 |
-
</table>
|
122 |
-
<table>
|
123 |
-
<tr><th>Midfielders</th><th>Nationality</th><th>Club</th></tr>
|
124 |
-
<tr><td>Zinedine Zidane</td><td>France</td><td>Real Madrid</td></tr>
|
125 |
-
<tr><td>Luis Figo</td><td>Portugal</td><td>Real Madrid</td></tr>
|
126 |
-
<tr><td>David Beckham</td><td>England</td><td>Manchester United</td></tr>
|
127 |
-
<tr><td>Pavel Nedved</td><td>Czech Republic</td><td>Juventus</td></tr>
|
128 |
-
<tr><td>Ronaldinho</td><td>Brazil</<td><<a href="">Paris Saint-Germain</a></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href=""></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</a></<a href="">Paris Saint-Germain</ [assistant](#message) <td></tr>
|
129 |
-
<tr><td>Claude Makelele</td><td>France</<td><<td>Real Madrid</td></tr>
|
130 |
-
<tr><td>Pirlo Andrea Pirlo </ td >< td > Italy </ td >< td > AC Milan </ td ></ tr >
|
131 |
-
<tr>< td > Steven Gerrard </ td >< td > England </ td >< td > Liverpool </ td ></ tr >
|
132 |
-
<tr >< td > Michael Ballack </ td >< td > Germany </ td >< td > Bayer Leverkusen </ td ></ tr >
|
133 |
-
<table>
|
134 |
-
<table>
|
135 |
-
<tr >< th > Strikers </ th >< th > Nationality </ th >< th > Club </ th ></ tr >
|
136 |
-
<tr >< td > Ronaldo </ td >< td > Brazil </ td >< td > Real Madrid </ td ></ tr >
|
137 |
-
<tr >< td > Thierry Henry </ td >< td > France </ td >< td > Arsenal </ td ></ tr >
|
138 |
-
<tr >< td > Ruud van Nistelrooy </ td >< td > Netherlands </ td >< td > Manchester United </ td ></ tr >
|
139 |
-
<tr >< td > Raul Gonzalez </ td >< td > Spain </ td >< td > Real Madrid </ td ></ tr >
|
140 |
-
<tr >< td > Andriy Shevchenko </ td >< td > Ukraine </ td >< < a h r e f = " ( ^ 2 8 ^ ) " t i t l e = " A C M i l a n " t a r g e t = " _ b l a n k " r e l = " n o f o l l o w " c l a s s = " e x t e r n a l t e x t " h r e f = " ( ^ 2 8 ^ ) " t i t l e = " AC Milan</a></td></tr>
|
141 |
-
</table>
|
142 |
-
<p>These are just some of the best players in CM 01/02, but there are many more that you can discover and sign. You can also use the editor to create your own players or edit the existing ones. However, be careful not to ruin the balance and fun of the game by making unrealistic changes.</p>
|
143 |
-
<h2>How to rotate your squad and manage fitness</h2>
|
144 |
-
<p>Another important aspect of CM 01/02 is managing your squad and keeping your players fit and happy. You can have the best players in the world, but if they are tired, injured, or unhappy, they won't perform well on the pitch. You need to rotate your squad and give your players enough rest and recovery time, as well as motivate them and keep them satisfied.</p>
|
145 |
-
<p>There are many factors that affect your players' fitness and morale, such as their age, injury history, personality, form, playing time, contract, etc. You need to monitor these factors and make adjustments accordingly. Here are some tips that can help you:</p>
|
146 |
-
<ul>
|
147 |
-
<li>Use the fitness report: The game has a fitness report that shows you the condition and stamina of each player in your squad. You can access it by clicking on Squad > Fitness Report. You can use this to see which players need a rest or a boost.</li>
|
148 |
-
<li>Use the squad status: The game has a squad status that shows you the happiness and morale of each player in your squad. You can access it by clicking on Squad > Squad Status. You can use this to see which players are unhappy or unsettled.</li>
|
149 |
-
<li>Use the rotation policy: The game has a rotation policy that allows you to set how often you want to rotate your players. You can access it by clicking on Tactics > Rotation Policy. You can use this to automate your rotation and save time.</li>
|
150 |
-
<li>Use the team talks: The game has a team talk feature that allows you to talk to your players before, during, and after each match. You can access it by clicking on Team Talk. You can use this to motivate your players and influence their performance.</li>
|
151 |
-
<li>Use the player interaction: The game has a player interaction feature that allows you to talk to your players individually. You can access it by clicking on Player > Interaction. You can use this to praise, criticize, warn, or advise your players and affect their morale and attitude.</li>
|
152 |
-
</ul>
|
153 |
-
<p>By using these features, you can rotate your squad and manage fitness effectively. Remember, a happy and fit squad is a winning squad.</p>
|
154 |
-
<h2>How to use cheats and editors</h2>
|
155 |
-
<p>Finally, we come to the controversial topic of cheats and editors. Some players might argue that using cheats and editors is unethical and spoils the fun of the game. Others might argue that using cheats and editors is harmless and enhances the fun of the game. Ultimately, it's up to you to decide whether you want to use them or not.</p>
|
156 |
-
<p>Cheats and editors are tools that allow you to modify the game in various ways, such as changing player attributes, adding money, editing competitions, etc. There are many cheats and editors available for CM 01/02, but we recommend using them with caution and moderation. Here are some of the most popular cheats and editors:</p>
|
157 |
-
<ul>
|
158 |
-
<li><a href="">CM Scout</a>: This is a tool that allows you to scout any player in the game without sending scouts or paying fees. You can see their attributes, potential, value, contract, etc.</li>
|
159 |
-
<li><a href="">CM Explorer</a>: This is a tool that allows you to edit any player or club in the game. You can change their attributes, finances, reputation, staff, etc.</li>
|
160 |
-
<li><a href="">CM Cheat</a>: This is a tool that allows you to cheat in various ways in the game. You can add money, heal injuries, improve morale, etc.</li>
|
161 |
-
</ul>
|
162 |
-
<p>To use these cheats and editors, you need to follow these steps:</p>
|
163 |
-
<ol>
|
164 |
-
<li>Download the cheat or editor files from the links above or from any other source you trust.</li>
|
165 |
-
<li>Extract the files using WinRAR or any other extraction tool.</li>
|
166 |
-
<li>Run the cheat or editor program on your computer.</li>
|
167 |
-
<li>Select CM 01/02 as the target game.</li>
|
168 |
-
<li>Make the changes you want using the cheat or editor interface.</li>
|
169 |
-
<li>Save the changes and exit the program.</li>
|
170 |
-
<li>Launch CM 01/02 on your Android device using ExaGear Strategies.</li>
|
171 |
-
<li>You should see the changes reflected in the game.</li>
|
172 |
-
</ol>
|
173 |
-
<p>Please note that using cheats and editors might cause errors or crashes in the game, so use them at your own risk. Also note that using cheats and editors might ruin [user the challenge and fun of the game, so use them sparingly and wisely.</p>
|
174 |
-
<h2>Conclusion</h2>
|
175 |
-
<p>CM 01/02 is a timeless game that still offers hours of enjoyment and satisfaction to football fans. If you want to play it on your Android device, you can follow the steps in this article to download and install it, as well as update it with the latest data and patches. You can also learn some tips on how to choose the best formation and tactics, how to find and sign the best players, how to rotate your squad and manage fitness, and how to use cheats and editors. We hope this article has been helpful and informative, and we wish you good luck and have fun with CM 01/02!</p>
|
176 |
-
<h2>FAQs</h2>
|
177 |
-
<p>Here are some of the most frequently asked questions and answers about CM 01/02:</p>
|
178 |
-
<ol>
|
179 |
-
<li><b>Is CM 01/02 free?</b><br>Yes, CM 01/02 is free to download and play. You can get it from the <a href="">Champman 01/02 website</a> or from any other source you trust.</li>
|
180 |
-
<li><b>Is CM 01/02 compatible with Windows 10?</b><br>Yes, CM 01/02 is compatible with Windows 10. You just need to run it in compatibility mode for Windows XP (Service Pack 3) and as an administrator.</li>
|
181 |
-
<li><b>Is CM 01/02 multiplayer?</b><br>Yes, CM 01/02 is multiplayer. You can play it online or offline with up to 16 human players. You just need to create or join a network game and follow the instructions.</li>
|
182 |
-
<li><b>What are some of the best mods for CM 01/02?</b><br>There are many mods for CM 01/02 that add new features, graphics, sounds, leagues, etc. Some of the best mods are <a href="">CM Legends</a>, <a href="">CM Club Update</a>, <a href="">CM Retro</a>, <a href="">CM World</a>, and <a href="">CM Fantasy</a>.</li>
|
183 |
-
<li><b>Where can I get more help or support for CM 01/02?</b><br>You can get more help or support for CM 01/02 from the <a href="">Champman 01/02 website</a> and forum, where you can find guides, tutorials, tips, tricks, FAQs, downloads, etc. You can also join the <a href="">CM 01/02 Facebook group</a> or the <a href="">CM 01/02 Discord server</a>, where you can chat with other players and fans.</li>
|
184 |
-
</ol></p> 197e85843d<br />
|
185 |
-
<br />
|
186 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Experience the Most Realistic Football Management Simulation with Real Football Manager 2009 Java Game.md
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Download Java Real Football Manager 2009: A Guide for Football Fans</h1>
|
3 |
-
<p>If you are a football fan and you love to play games on your mobile phone, then you might be interested in downloading Java Real Football Manager 2009. This is a game that lets you experience the thrill of managing your own football club, from choosing your players to competing in matches. In this article, we will show you how to download and play this game, as well as some tips and tricks to help you succeed.</p>
|
4 |
-
<h2>Introduction</h2>
|
5 |
-
<h3>What is Java Real Football Manager 2009?</h3>
|
6 |
-
<p>Java Real Football Manager 2009 is a mobile game developed by Gameloft, one of the leading publishers of mobile games. It is part of the Real Football series, which also includes games like Real Football 2010 and Real Football 2011. Java Real Football Manager 2009 is a game that focuses on the managerial aspect of football, rather than the gameplay. You can choose from one of eight different leagues and more than 200 teams, and all transfers are updated for the 2008/2009 season. You can also create your own custom team and league, if you prefer.</p>
|
7 |
-
<h2>download java real football manager 2009</h2><br /><p><b><b>Download Zip</b> ☆☆☆☆☆ <a href="https://jinyurl.com/2uNS2k">https://jinyurl.com/2uNS2k</a></b></p><br /><br />
|
8 |
-
<h3>Why should you download it?</h3>
|
9 |
-
<p>There are many reasons why you should download Java Real Football Manager 2009, if you are a fan of football and mobile games. Here are some of them:</p>
|
10 |
-
<ul>
|
11 |
-
<li>It is fun and addictive. You will enjoy the challenge of managing your own football club, from signing players to winning trophies.</li>
|
12 |
-
<li>It is realistic and immersive. You will feel like a real football manager, as you deal with various aspects of running a club, such as finances, morale, injuries, media, etc.</li>
|
13 |
-
<li>It is easy and convenient. You can play it on any device that supports Java games, such as Nokia, Samsung, Motorola, Sony Ericsson, etc. You can also play it offline, without needing an internet connection.</li>
|
14 |
-
</ul>
|
15 |
-
<h2>How to download Java Real Football Manager 2009</h2>
|
16 |
-
<h3>Step 1: Find a reliable source</h3>
|
17 |
-
<p>The first step to download Java Real Football Manager 2009 is to find a reliable source that offers the game for free or for a reasonable price. There are many websites that claim to offer the game, but some of them might be scams or contain viruses. Therefore, you should be careful and do some research before downloading anything. One of the websites that we recommend is dedomil.net, which has a large collection of Java games for various devices and resolutions.</p>
|
18 |
-
<h3>Step 2: Choose your device and resolution</h3>
|
19 |
-
<p>The next step is to choose your device and resolution from the list of available options on the website. This will ensure that you download the right version of the game that is compatible with your device. For example, if you have a Nokia N95 phone with a resolution of 240x320 pixels, then you should select "Real Football: Manager Edition 2009 (CZ/N95) (240x320)". If you are not sure about your device or resolution, you can check it online or in your phone settings.</p>
|
20 |
-
<h3>Step 3: Download and install the game</h3>
|
21 |
-
<p>The final step is to download and install the game <p>The final step is to download and install the game on your device. You can do this by clicking on the download link on the website, or by scanning the QR code with your phone's camera. The game will be downloaded as a .jar file, which is the format for Java games. To install the game, you need to transfer the .jar file to your device, either by using a USB cable, Bluetooth, or a memory card. Then, you need to locate the file on your device and open it. The game will be installed automatically and you can start playing it.</p>
|
22 |
-
<p>download java real football manager 2009 240x320<br />
|
23 |
-
download java real football manager 2009 dedomil<br />
|
24 |
-
download java real football manager 2009 gameloft<br />
|
25 |
-
download java real football manager 2009 for nokia<br />
|
26 |
-
download java real football manager 2009 jar<br />
|
27 |
-
download java real football manager 2009 mobile game<br />
|
28 |
-
download java real football manager 2009 free<br />
|
29 |
-
download java real football manager 2009 full version<br />
|
30 |
-
download java real football manager 2009 online<br />
|
31 |
-
download java real football manager 2009 cheats<br />
|
32 |
-
download java real football manager 2009 hack<br />
|
33 |
-
download java real football manager 2009 mod<br />
|
34 |
-
download java real football manager 2009 apk<br />
|
35 |
-
download java real football manager 2009 android<br />
|
36 |
-
download java real football manager 2009 samsung<br />
|
37 |
-
download java real football manager 2009 sony ericsson<br />
|
38 |
-
download java real football manager 2009 lg<br />
|
39 |
-
download java real football manager 2009 motorola<br />
|
40 |
-
download java real football manager 2009 touchscreen<br />
|
41 |
-
download java real football manager 2009 landscape<br />
|
42 |
-
download java real football manager 2009 review<br />
|
43 |
-
download java real football manager 2009 tips<br />
|
44 |
-
download java real football manager 2009 guide<br />
|
45 |
-
download java real football manager 2009 tutorial<br />
|
46 |
-
download java real football manager 2009 transfer update<br />
|
47 |
-
download java real football manager edition 2009<br />
|
48 |
-
download java gameloft real football manager edition 2009<br />
|
49 |
-
download java rfme09.jar<br />
|
50 |
-
download java rfme09 dedomil.net[^1^]<br />
|
51 |
-
download java rfme09 gameloft.com[^2^]<br />
|
52 |
-
how to download java real football manager 2009<br />
|
53 |
-
where to download java real football manager 2009<br />
|
54 |
-
best site to download java real football manager 2009<br />
|
55 |
-
latest version of java real football manager 2009<br />
|
56 |
-
old version of java real football manager 2009<br />
|
57 |
-
new features of java real football manager 2009<br />
|
58 |
-
play java real football manager 2009 on pc<br />
|
59 |
-
play java real football manager 2009 on phone<br />
|
60 |
-
play online java games like real football manager 2009[^3^]<br />
|
61 |
-
play offline java games like real football manager 2009<br />
|
62 |
-
compare java games: real football vs. real football manager<br />
|
63 |
-
compare gameloft games: rfme09 vs. rfme10<br />
|
64 |
-
compare dedomil.net games: rfme09 vs. rfme10<br />
|
65 |
-
compare jar games: rfme09 vs. rfme10<br />
|
66 |
-
compare mobile games: rfme09 vs. rfme10<br />
|
67 |
-
compare nokia games: rfme09 vs. rfme10<br />
|
68 |
-
compare samsung games: rfme09 vs. rfme10<br />
|
69 |
-
compare sony ericsson games: rfme09 vs. rfme10<br />
|
70 |
-
compare lg games: rfme09 vs. rfme10</p>
|
71 |
-
<h2>How to play Java Real Football Manager 2009</h2>
|
72 |
-
<h3>Step 1: Choose your club and league</h3>
|
73 |
-
<p>When you start the game, you will be asked to choose your club and league from the available options. You can select one of the eight leagues, such as England, Spain, Italy, France, Germany, etc., or you can create your own custom league with your favorite teams. You can also choose your club from more than 200 teams, or you can create your own custom team with your own name, logo, and colors. You can also edit the players' names, skills, and appearances.</p>
|
74 |
-
<h3>Step 2: Manage your team and transfers</h3>
|
75 |
-
<p>Once you have chosen your club and league, you will enter the main menu of the game, where you can access various options to manage your team and transfers. You can view your squad, tactics, fixtures, standings, statistics, etc. You can also buy and sell players in the transfer market, where you can bid for players or accept offers from other clubs. You can also scout for new talents or loan players from other teams. You have to balance your budget and keep an eye on your players' contracts and salaries.</p>
|
76 |
-
<h3>Step 3: Compete in matches and tournaments</h3>
|
77 |
-
<p>The most exciting part of the game is competing in matches and tournaments against other teams. You can play in various competitions, such as league matches, cup matches, friendly matches, etc. You can also participate in international tournaments, such as the World Cup or the European Championship. Before each match, you can set your lineup, formation, strategy, etc. During the match, you can watch the action unfold on the screen, or you can skip to the result. You can also make substitutions or change tactics during the match. After each match, you can view the highlights, statistics, ratings, etc.</p>
|
78 |
-
<h2>Tips and tricks for Java Real Football Manager 2009</h2>
|
79 |
-
<h3>Tip 1: Use the simplified interface and improved AI</h3>
|
80 |
-
<p>One of the features of Java Real Football Manager 2009 is that it has a simplified interface and improved AI compared to previous versions of the game. This means that you can navigate through the menus faster and easier, and that the game will run smoother and more realistic on your device. The AI of the game will also adapt to your style of play and offer you more challenge and variety.</p>
|
81 |
-
<h3>Tip 2: Keep an eye on your finances and morale</h3>
|
82 |
-
<p>Another important aspect of managing a football club is keeping an eye on your finances and morale. You have to make sure that you have enough money to pay for your players' salaries, transfers, scouts, etc., as well as for maintaining your stadium and facilities. You also have to make sure that your players are happy and motivated, as this will affect their performance on the pitch. You can improve your finances and morale by winning matches and trophies, selling tickets and merchandise, signing sponsors, etc.</p>
|
83 |
-
<h3>Tip 3: Experiment with different tactics and formations</h3>
|
84 |
-
<p>A final tip for playing Java Real Football Manager 2009 is to experiment with different tactics and formations for your team. You can choose from various options, <p>A final tip for playing Java Real Football Manager 2009 is to experiment with different tactics and formations for your team. You can choose from various options, such as 4-4-2, 4-3-3, 3-5-2, etc., and you can also adjust the roles and positions of your players. You can also change your strategy during the match, such as attacking, defending, counter-attacking, etc. You should try to find the best combination that suits your team and your opponents.</p>
|
85 |
-
<h2>Conclusion</h2>
|
86 |
-
<p>Java Real Football Manager 2009 is a great game for football fans who want to manage their own club and compete in various matches and tournaments. It is fun, realistic, easy, and convenient to play on any device that supports Java games. It also has a simplified interface and improved AI that make the game more enjoyable and challenging. If you want to download and play this game, you can follow the steps and tips that we have provided in this article. We hope that you will have a great time playing Java Real Football Manager 2009.</p>
|
87 |
-
<h2>FAQs</h2>
|
88 |
-
<p>Here are some of the frequently asked questions about Java Real Football Manager 2009:</p>
|
89 |
-
<ul>
|
90 |
-
<li><b>Q: How much does the game cost?</b></li>
|
91 |
-
<li>A: The game is free to download from some websites, such as dedomil.net, but it might have some ads or limitations. You can also buy the game from other websites or app stores, such as Gameloft.com, for a reasonable price.</li>
|
92 |
-
<li><b>Q: What are the minimum requirements for the game?</b></li>
|
93 |
-
<li>A: The game requires a device that supports Java games, such as Nokia, Samsung, Motorola, Sony Ericsson, etc. The game also requires a resolution of at least 128x128 pixels, but it might vary depending on the device and version of the game.</li>
|
94 |
-
<li><b>Q: How can I update the game?</b></li>
|
95 |
-
<li>A: The game does not have an official update feature, but you can download the latest version of the game from the website or app store where you got it. You can also check for updates on Gameloft's website or social media pages.</li>
|
96 |
-
<li><b>Q: How can I contact Gameloft for support or feedback?</b></li>
|
97 |
-
<li>A: You can contact Gameloft for support or feedback by visiting their website or social media pages, or by sending an email to [email protected]. You can also check their FAQ section or forum for more information.</li>
|
98 |
-
<li><b>Q: How can I share my progress or achievements with other players?</b></li>
|
99 |
-
<li>A: You can share your progress or achievements with other players by using the online mode of the game, which allows you to connect with other players via Bluetooth or Wi-Fi. You can also share your screenshots or videos of the game on social media platforms, such as Facebook, Twitter, Instagram, etc.</li>
|
100 |
-
</ul></p> 401be4b1e0<br />
|
101 |
-
<br />
|
102 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Free Download Color Rings Puzzle - Android Game APK.md
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Color Rings Puzzle APK Download: A Fun and Relaxing Game for Android</h1>
|
3 |
-
<p>If you are looking for a simple yet addictive game that can keep you entertained and relaxed, you might want to try Color Rings Puzzle. This is a free game that you can download and play on your Android device. In this article, we will tell you what Color Rings Puzzle is, how to play it, why you should download it, how to download and install the APK file, and some tips and tricks for playing it.</p>
|
4 |
-
<h2>color rings puzzle apk download</h2><br /><p><b><b>Download Zip</b> ✒ ✒ ✒ <a href="https://jinyurl.com/2uNS65">https://jinyurl.com/2uNS65</a></b></p><br /><br />
|
5 |
-
<h2>What is Color Rings Puzzle?</h2>
|
6 |
-
<p>Color Rings Puzzle is a casual puzzle game that challenges your brain and your eyes. The goal of the game is to arrange colorful rings on a board in such a way that they form rows, columns, or diagonals of the same color. You can move the rings from one slot to another, but you cannot overlap them. The game ends when there is no more space on the board for new rings.</p>
|
7 |
-
<h3>How to play Color Rings Puzzle</h3>
|
8 |
-
<p>The game is very easy to play. You just need to tap on the screen to select a ring from the bottom row, and then tap on an empty slot on the board to place it. You can also drag and drop the rings if you prefer. You will get points for every line of three or more rings of the same color that you create. The more rings you clear at once, the higher your score will be. You will also get bonus points for clearing multiple lines at once.</p>
|
9 |
-
<h3>Why you should download Color Rings Puzzle</h3>
|
10 |
-
<p>There are many reasons why you should download Color Rings Puzzle on your Android device. Here are some of them:</p>
|
11 |
-
<ul>
|
12 |
-
<li>The game is fun and relaxing. You can play it anytime and anywhere, without any time limit or pressure. You can also pause and resume the game whenever you want.</li>
|
13 |
-
<li>The game is suitable for all ages and skill levels. You can choose from different modes and difficulty levels, depending on your preference and mood. You can also switch between different themes and backgrounds, such as classic, neon, wood, or marble.</li>
|
14 |
-
<li>The game is good for your brain and your eyes. It can help you improve your concentration, memory, logic, and color perception. It can also help you reduce stress and boredom.</li>
|
15 |
-
<li>The game is free and safe to download. You don't need to pay anything or register anything to play the game. You also don't need to worry about any viruses or malware infecting your device.</li>
|
16 |
-
</ul>
|
17 |
-
<h2>How to download Color Rings Puzzle APK</h2>
|
18 |
-
<p>If you want to download Color Rings Puzzle on your Android device, you have two options: you can either download it from the Google Play Store or from an APK file. In this section, we will explain what an APK file is and how to download and install it.</p>
|
19 |
-
<p>color rings puzzle game apk free download<br />
|
20 |
-
how to play color rings puzzle on android<br />
|
21 |
-
color rings puzzle mod apk unlimited money<br />
|
22 |
-
best color matching puzzle games for android<br />
|
23 |
-
download color rings puzzle latest version apk<br />
|
24 |
-
color rings puzzle apk download for pc<br />
|
25 |
-
color rings puzzle tips and tricks<br />
|
26 |
-
color rings puzzle online play<br />
|
27 |
-
color rings puzzle apk download uptodown<br />
|
28 |
-
color rings puzzle hack apk download<br />
|
29 |
-
color rings puzzle app review<br />
|
30 |
-
color rings puzzle apk download apkpure<br />
|
31 |
-
color rings puzzle cheats and codes<br />
|
32 |
-
color rings puzzle apk download for ios<br />
|
33 |
-
color rings puzzle level 1000<br />
|
34 |
-
color rings puzzle apk download old version<br />
|
35 |
-
color rings puzzle similar games<br />
|
36 |
-
color rings puzzle apk download no ads<br />
|
37 |
-
color rings puzzle strategy guide<br />
|
38 |
-
color rings puzzle apk download for windows 10<br />
|
39 |
-
color rings puzzle achievements and rewards<br />
|
40 |
-
color rings puzzle apk download for mac<br />
|
41 |
-
color rings puzzle themes and backgrounds<br />
|
42 |
-
color rings puzzle apk download for chromebook<br />
|
43 |
-
color rings puzzle leaderboard and rankings<br />
|
44 |
-
color rings puzzle apk download for laptop<br />
|
45 |
-
color rings puzzle features and benefits<br />
|
46 |
-
color rings puzzle apk download for tablet<br />
|
47 |
-
color rings puzzle challenges and quests<br />
|
48 |
-
color rings puzzle apk download for kindle fire<br />
|
49 |
-
color rings puzzle screenshots and videos<br />
|
50 |
-
color rings puzzle apk download for firestick<br />
|
51 |
-
color rings puzzle updates and news<br />
|
52 |
-
color rings puzzle apk download for smart tv<br />
|
53 |
-
color rings puzzle ratings and feedbacks<br />
|
54 |
-
color rings puzzle apk download for android tv box<br />
|
55 |
-
color rings puzzle bugs and issues<br />
|
56 |
-
color rings puzzle apk download for roku<br />
|
57 |
-
color rings puzzle support and contact<br />
|
58 |
-
color rings puzzle apk download for nvidia shield tv</p>
|
59 |
-
<h3>What is an APK file and why you need it</h3>
|
60 |
-
<p>An APK file is a file format that contains all the data and code needed to run an Android app. It stands for Android Package Kit. You can think of it as a zip file that contains everything that an app needs to work properly.</p>
|
61 |
-
<p>You might need an APK file if you want to download an app that is not available in your region or in the Google Play Store. You might also need it if you want to update an app manually or install an older version of an app.</p>
|
62 |
-
<h3>How to install Color Rings Puzzle APK on your Android device</h3>
|
63 |
-
<p>To install Color Rings Puzzle APK on your Android device, you need to follow these steps:</p>
|
64 |
-
<ol>
|
65 |
-
<li>Download the APK file from a trusted source, such as [APKCombo](^1 ^)^. You can use the link below to access the download page. Make sure you download the latest version of the game, which is 3.0.9 as of June 2023.</li>
|
66 |
-
<li>Before you install the APK file, you need to enable the installation of apps from unknown sources on your device. To do this, go to Settings > Security > Unknown Sources and toggle it on. You might also need to grant permission to your browser or file manager to install apps.</li>
|
67 |
-
<li>Locate the downloaded APK file on your device, either in your Downloads folder or in the folder where you saved it. Tap on the file and follow the instructions on the screen to install it. You might need to allow some permissions for the app to work properly.</li>
|
68 |
-
<li>Once the installation is complete, you can launch the game from your app drawer or home screen and enjoy playing it.</li>
|
69 |
-
</ol>
|
70 |
-
<h3>How to update Color Rings Puzzle APK</h3>
|
71 |
-
<p>To update Color Rings Puzzle APK, you need to repeat the same steps as above, but with a newer version of the APK file. You can check for updates on the [APKCombo] website or on the app itself. You don't need to uninstall the previous version of the app before installing the new one.</p>
|
72 |
-
<h2>Tips and tricks for playing Color Rings Puzzle</h2>
|
73 |
-
<p>Now that you have downloaded and installed Color Rings Puzzle APK on your Android device, you might want to know some tips and tricks for playing it better. Here are some of them:</p>
|
74 |
-
<h3>Use the undo button wisely</h3>
|
75 |
-
<p>The game has an undo button that allows you to undo your last move if you make a mistake or change your mind. However, you can only use it once per game, so use it wisely. Don't waste it on a minor error or a move that doesn't affect your score much. Save it for a situation where you really need it, such as when you are about to lose the game or when you can clear a lot of rings with one move.</p>
|
76 |
-
<h3>Plan ahead and avoid filling up the board</h3>
|
77 |
-
<p>The game gets harder as you progress, as more rings of different colors appear on the bottom row. You need to plan ahead and think carefully before placing each ring on the board. Try to create as many lines as possible with each move, and avoid placing rings that don't match any existing lines. Also, avoid filling up the board with rings that have no space to move or clear. Leave some empty slots for future moves and opportunities.</p>
|
78 |
-
<h3>Try different modes and themes</h3>
|
79 |
-
<p>The game has different modes and themes that you can try for more variety and fun. You can choose from Classic, Time Attack, Move Limit, Bomb, Hexa, and Star modes, each with its own rules and challenges. You can also switch between different themes and backgrounds, such as Classic, Neon, Wood, or Marble, each with its own colors and sounds. Experiment with different combinations and find your favorite one.</p>
|
80 |
-
<h2>Conclusion</h2>
|
81 |
-
<p>Color Rings Puzzle is a fun and relaxing game that you can download and play on your Android device. It is easy to play but hard to master, and it can keep you entertained and relaxed for hours. You can download it from the Google Play Store or from an APK file, depending on your preference and availability. You can also follow some tips and tricks for playing it better, such as using the undo button wisely, planning ahead, and trying different modes and themes. If you are looking for a simple yet addictive puzzle game that challenges your brain and your eyes, you should give Color Rings Puzzle a try.</p>
|
82 |
-
<h2>FAQs</h2>
|
83 |
-
<p>Here are some frequently asked questions about Color Rings Puzzle:</p>
|
84 |
-
<ol>
|
85 |
-
<li><b>Is Color Rings Puzzle free?</b><br>
|
86 |
-
Yes, Color Rings Puzzle is free to download and play. However, it contains ads that you can remove by purchasing the ad-free version of the game.</li>
|
87 |
-
<li><b>Is Color Rings Puzzle offline?</b><br>
|
88 |
-
Yes, Color Rings Puzzle is an offline game that does not require an internet connection to play. However, you might need an internet connection to download updates or access some features of the game.</li>
|
89 |
-
<li><b>Is Color Rings Puzzle safe?</b><br>
|
90 |
-
Yes, Color Rings Puzzle is safe to download and play. It does not contain any viruses or malware that can harm your device. However, make sure you download it from a trusted source, such as [APKCombo] or the Google Play Store.</li>
|
91 |
-
<li><b>How do I get more points in Color Rings Puzzle?</b><br>
|
92 |
-
You can get more points in Color Rings Puzzle by clearing more rings at once, clearing multiple lines at once, clearing special rings such as bombs or stars, and playing on higher difficulty levels or modes.</li>
|
93 |
-
<li><b>How do I reset Color Rings Puzzle?</b><br>
|
94 |
-
You can reset Color Rings Puzzle by clearing the app data and cache on your device. To do this, go to Settings > Apps > Color Rings Puzzle > Storage > Clear Data and Clear Cache. This will erase your progress and settings, and restore the game to its default state.</li>
|
95 |
-
</ol></p> 401be4b1e0<br />
|
96 |
-
<br />
|
97 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/2023Liu2023/bingo/src/lib/bots/bing/sr.ts
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
// @ts-ignore
|
2 |
-
const SpeechRecognitionPolyfill: typeof webkitSpeechRecognition = typeof window !== 'undefined' ? (
|
3 |
-
// @ts-ignore
|
4 |
-
window.SpeechRecognition ||
|
5 |
-
window.webkitSpeechRecognition ||
|
6 |
-
// @ts-ignore
|
7 |
-
window.mozSpeechRecognition ||
|
8 |
-
// @ts-ignore
|
9 |
-
window.msSpeechRecognition ||
|
10 |
-
// @ts-ignore
|
11 |
-
window.oSpeechRecognition
|
12 |
-
) as typeof webkitSpeechRecognition : undefined
|
13 |
-
|
14 |
-
type subscriber = (msg: string, command?: string) => void
|
15 |
-
|
16 |
-
export class SR {
|
17 |
-
recognition?: SpeechRecognition
|
18 |
-
onchange?: subscriber
|
19 |
-
transcript: boolean = false
|
20 |
-
listening: boolean = false
|
21 |
-
private commandsRe?: RegExp
|
22 |
-
constructor(commands: string[]) {
|
23 |
-
this.recognition = SpeechRecognitionPolyfill ? new SpeechRecognitionPolyfill() : undefined
|
24 |
-
if (!this.recognition) {
|
25 |
-
return
|
26 |
-
}
|
27 |
-
this.configuration('zh-CN')
|
28 |
-
if (commands.length) {
|
29 |
-
this.commandsRe = new RegExp(`^(${commands.join('|')})。?$`)
|
30 |
-
}
|
31 |
-
this.recognition.onresult = this.speechRecognition
|
32 |
-
this.recognition.onerror = (err) => {
|
33 |
-
console.log('err', err.error)
|
34 |
-
this.stop()
|
35 |
-
}
|
36 |
-
this.recognition.onend = () => {
|
37 |
-
if (this.recognition && this.listening) {
|
38 |
-
this.recognition.start()
|
39 |
-
}
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
speechRecognition = (event: SpeechRecognitionEvent) => {
|
44 |
-
if (!this.listening) return
|
45 |
-
for (var i = event.resultIndex; i < event.results.length; i++) {
|
46 |
-
let result = event.results[i]
|
47 |
-
if (result.isFinal) {
|
48 |
-
var alt = result[0]
|
49 |
-
const text = alt.transcript.trim()
|
50 |
-
if (this.commandsRe && this.commandsRe.test(text)) {
|
51 |
-
return this.onchange?.('', RegExp.$1)
|
52 |
-
}
|
53 |
-
if (!this.transcript) return
|
54 |
-
this.onchange?.(text)
|
55 |
-
}
|
56 |
-
}
|
57 |
-
}
|
58 |
-
|
59 |
-
private configuration = async (lang: string = 'zh-CN') => {
|
60 |
-
return new Promise((resolve) => {
|
61 |
-
if (this.recognition) {
|
62 |
-
this.recognition.continuous = true
|
63 |
-
this.recognition.lang = lang
|
64 |
-
this.recognition.onstart = resolve
|
65 |
-
}
|
66 |
-
})
|
67 |
-
}
|
68 |
-
|
69 |
-
start = async () => {
|
70 |
-
if (this.recognition && !this.listening) {
|
71 |
-
await this.recognition.start()
|
72 |
-
this.transcript = true
|
73 |
-
this.listening = true
|
74 |
-
}
|
75 |
-
}
|
76 |
-
|
77 |
-
stop = () => {
|
78 |
-
if (this.recognition) {
|
79 |
-
this.recognition.stop()
|
80 |
-
this.transcript = false
|
81 |
-
this.listening = false
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
pause = () => {
|
87 |
-
if (this.recognition) {
|
88 |
-
this.transcript = false
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
resume = () => {
|
93 |
-
if (this.recognition) {
|
94 |
-
this.transcript = true
|
95 |
-
}
|
96 |
-
}
|
97 |
-
|
98 |
-
abort = () => {
|
99 |
-
if (this.recognition && this.transcript) {
|
100 |
-
this.recognition.abort()
|
101 |
-
this.transcript = false
|
102 |
-
this.listening = false
|
103 |
-
}
|
104 |
-
}
|
105 |
-
}
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIFILMS/generate_human_motion/VQ-Trans/visualize/joints2smpl/src/prior.py
DELETED
@@ -1,230 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
|
3 |
-
# Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is
|
4 |
-
# holder of all proprietary rights on this computer program.
|
5 |
-
# You can only use this computer program if you have closed
|
6 |
-
# a license agreement with MPG or you get the right to use the computer
|
7 |
-
# program from someone who is authorized to grant you that right.
|
8 |
-
# Any use of the computer program without a valid license is prohibited and
|
9 |
-
# liable to prosecution.
|
10 |
-
#
|
11 |
-
# Copyright©2019 Max-Planck-Gesellschaft zur Förderung
|
12 |
-
# der Wissenschaften e.V. (MPG). acting on behalf of its Max Planck Institute
|
13 |
-
# for Intelligent Systems. All rights reserved.
|
14 |
-
#
|
15 |
-
# Contact: [email protected]
|
16 |
-
|
17 |
-
from __future__ import absolute_import
|
18 |
-
from __future__ import print_function
|
19 |
-
from __future__ import division
|
20 |
-
|
21 |
-
import sys
|
22 |
-
import os
|
23 |
-
|
24 |
-
import time
|
25 |
-
import pickle
|
26 |
-
|
27 |
-
import numpy as np
|
28 |
-
|
29 |
-
import torch
|
30 |
-
import torch.nn as nn
|
31 |
-
|
32 |
-
DEFAULT_DTYPE = torch.float32
|
33 |
-
|
34 |
-
|
35 |
-
def create_prior(prior_type, **kwargs):
|
36 |
-
if prior_type == 'gmm':
|
37 |
-
prior = MaxMixturePrior(**kwargs)
|
38 |
-
elif prior_type == 'l2':
|
39 |
-
return L2Prior(**kwargs)
|
40 |
-
elif prior_type == 'angle':
|
41 |
-
return SMPLifyAnglePrior(**kwargs)
|
42 |
-
elif prior_type == 'none' or prior_type is None:
|
43 |
-
# Don't use any pose prior
|
44 |
-
def no_prior(*args, **kwargs):
|
45 |
-
return 0.0
|
46 |
-
prior = no_prior
|
47 |
-
else:
|
48 |
-
raise ValueError('Prior {}'.format(prior_type) + ' is not implemented')
|
49 |
-
return prior
|
50 |
-
|
51 |
-
|
52 |
-
class SMPLifyAnglePrior(nn.Module):
|
53 |
-
def __init__(self, dtype=torch.float32, **kwargs):
|
54 |
-
super(SMPLifyAnglePrior, self).__init__()
|
55 |
-
|
56 |
-
# Indices for the roration angle of
|
57 |
-
# 55: left elbow, 90deg bend at -np.pi/2
|
58 |
-
# 58: right elbow, 90deg bend at np.pi/2
|
59 |
-
# 12: left knee, 90deg bend at np.pi/2
|
60 |
-
# 15: right knee, 90deg bend at np.pi/2
|
61 |
-
angle_prior_idxs = np.array([55, 58, 12, 15], dtype=np.int64)
|
62 |
-
angle_prior_idxs = torch.tensor(angle_prior_idxs, dtype=torch.long)
|
63 |
-
self.register_buffer('angle_prior_idxs', angle_prior_idxs)
|
64 |
-
|
65 |
-
angle_prior_signs = np.array([1, -1, -1, -1],
|
66 |
-
dtype=np.float32 if dtype == torch.float32
|
67 |
-
else np.float64)
|
68 |
-
angle_prior_signs = torch.tensor(angle_prior_signs,
|
69 |
-
dtype=dtype)
|
70 |
-
self.register_buffer('angle_prior_signs', angle_prior_signs)
|
71 |
-
|
72 |
-
def forward(self, pose, with_global_pose=False):
|
73 |
-
''' Returns the angle prior loss for the given pose
|
74 |
-
|
75 |
-
Args:
|
76 |
-
pose: (Bx[23 + 1] * 3) torch tensor with the axis-angle
|
77 |
-
representation of the rotations of the joints of the SMPL model.
|
78 |
-
Kwargs:
|
79 |
-
with_global_pose: Whether the pose vector also contains the global
|
80 |
-
orientation of the SMPL model. If not then the indices must be
|
81 |
-
corrected.
|
82 |
-
Returns:
|
83 |
-
A sze (B) tensor containing the angle prior loss for each element
|
84 |
-
in the batch.
|
85 |
-
'''
|
86 |
-
angle_prior_idxs = self.angle_prior_idxs - (not with_global_pose) * 3
|
87 |
-
return torch.exp(pose[:, angle_prior_idxs] *
|
88 |
-
self.angle_prior_signs).pow(2)
|
89 |
-
|
90 |
-
|
91 |
-
class L2Prior(nn.Module):
|
92 |
-
def __init__(self, dtype=DEFAULT_DTYPE, reduction='sum', **kwargs):
|
93 |
-
super(L2Prior, self).__init__()
|
94 |
-
|
95 |
-
def forward(self, module_input, *args):
|
96 |
-
return torch.sum(module_input.pow(2))
|
97 |
-
|
98 |
-
|
99 |
-
class MaxMixturePrior(nn.Module):
|
100 |
-
|
101 |
-
def __init__(self, prior_folder='prior',
|
102 |
-
num_gaussians=6, dtype=DEFAULT_DTYPE, epsilon=1e-16,
|
103 |
-
use_merged=True,
|
104 |
-
**kwargs):
|
105 |
-
super(MaxMixturePrior, self).__init__()
|
106 |
-
|
107 |
-
if dtype == DEFAULT_DTYPE:
|
108 |
-
np_dtype = np.float32
|
109 |
-
elif dtype == torch.float64:
|
110 |
-
np_dtype = np.float64
|
111 |
-
else:
|
112 |
-
print('Unknown float type {}, exiting!'.format(dtype))
|
113 |
-
sys.exit(-1)
|
114 |
-
|
115 |
-
self.num_gaussians = num_gaussians
|
116 |
-
self.epsilon = epsilon
|
117 |
-
self.use_merged = use_merged
|
118 |
-
gmm_fn = 'gmm_{:02d}.pkl'.format(num_gaussians)
|
119 |
-
|
120 |
-
full_gmm_fn = os.path.join(prior_folder, gmm_fn)
|
121 |
-
if not os.path.exists(full_gmm_fn):
|
122 |
-
print('The path to the mixture prior "{}"'.format(full_gmm_fn) +
|
123 |
-
' does not exist, exiting!')
|
124 |
-
sys.exit(-1)
|
125 |
-
|
126 |
-
with open(full_gmm_fn, 'rb') as f:
|
127 |
-
gmm = pickle.load(f, encoding='latin1')
|
128 |
-
|
129 |
-
if type(gmm) == dict:
|
130 |
-
means = gmm['means'].astype(np_dtype)
|
131 |
-
covs = gmm['covars'].astype(np_dtype)
|
132 |
-
weights = gmm['weights'].astype(np_dtype)
|
133 |
-
elif 'sklearn.mixture.gmm.GMM' in str(type(gmm)):
|
134 |
-
means = gmm.means_.astype(np_dtype)
|
135 |
-
covs = gmm.covars_.astype(np_dtype)
|
136 |
-
weights = gmm.weights_.astype(np_dtype)
|
137 |
-
else:
|
138 |
-
print('Unknown type for the prior: {}, exiting!'.format(type(gmm)))
|
139 |
-
sys.exit(-1)
|
140 |
-
|
141 |
-
self.register_buffer('means', torch.tensor(means, dtype=dtype))
|
142 |
-
|
143 |
-
self.register_buffer('covs', torch.tensor(covs, dtype=dtype))
|
144 |
-
|
145 |
-
precisions = [np.linalg.inv(cov) for cov in covs]
|
146 |
-
precisions = np.stack(precisions).astype(np_dtype)
|
147 |
-
|
148 |
-
self.register_buffer('precisions',
|
149 |
-
torch.tensor(precisions, dtype=dtype))
|
150 |
-
|
151 |
-
# The constant term:
|
152 |
-
sqrdets = np.array([(np.sqrt(np.linalg.det(c)))
|
153 |
-
for c in gmm['covars']])
|
154 |
-
const = (2 * np.pi)**(69 / 2.)
|
155 |
-
|
156 |
-
nll_weights = np.asarray(gmm['weights'] / (const *
|
157 |
-
(sqrdets / sqrdets.min())))
|
158 |
-
nll_weights = torch.tensor(nll_weights, dtype=dtype).unsqueeze(dim=0)
|
159 |
-
self.register_buffer('nll_weights', nll_weights)
|
160 |
-
|
161 |
-
weights = torch.tensor(gmm['weights'], dtype=dtype).unsqueeze(dim=0)
|
162 |
-
self.register_buffer('weights', weights)
|
163 |
-
|
164 |
-
self.register_buffer('pi_term',
|
165 |
-
torch.log(torch.tensor(2 * np.pi, dtype=dtype)))
|
166 |
-
|
167 |
-
cov_dets = [np.log(np.linalg.det(cov.astype(np_dtype)) + epsilon)
|
168 |
-
for cov in covs]
|
169 |
-
self.register_buffer('cov_dets',
|
170 |
-
torch.tensor(cov_dets, dtype=dtype))
|
171 |
-
|
172 |
-
# The dimensionality of the random variable
|
173 |
-
self.random_var_dim = self.means.shape[1]
|
174 |
-
|
175 |
-
def get_mean(self):
|
176 |
-
''' Returns the mean of the mixture '''
|
177 |
-
mean_pose = torch.matmul(self.weights, self.means)
|
178 |
-
return mean_pose
|
179 |
-
|
180 |
-
def merged_log_likelihood(self, pose, betas):
|
181 |
-
diff_from_mean = pose.unsqueeze(dim=1) - self.means
|
182 |
-
|
183 |
-
prec_diff_prod = torch.einsum('mij,bmj->bmi',
|
184 |
-
[self.precisions, diff_from_mean])
|
185 |
-
diff_prec_quadratic = (prec_diff_prod * diff_from_mean).sum(dim=-1)
|
186 |
-
|
187 |
-
curr_loglikelihood = 0.5 * diff_prec_quadratic - \
|
188 |
-
torch.log(self.nll_weights)
|
189 |
-
# curr_loglikelihood = 0.5 * (self.cov_dets.unsqueeze(dim=0) +
|
190 |
-
# self.random_var_dim * self.pi_term +
|
191 |
-
# diff_prec_quadratic
|
192 |
-
# ) - torch.log(self.weights)
|
193 |
-
|
194 |
-
min_likelihood, _ = torch.min(curr_loglikelihood, dim=1)
|
195 |
-
return min_likelihood
|
196 |
-
|
197 |
-
def log_likelihood(self, pose, betas, *args, **kwargs):
|
198 |
-
''' Create graph operation for negative log-likelihood calculation
|
199 |
-
'''
|
200 |
-
likelihoods = []
|
201 |
-
|
202 |
-
for idx in range(self.num_gaussians):
|
203 |
-
mean = self.means[idx]
|
204 |
-
prec = self.precisions[idx]
|
205 |
-
cov = self.covs[idx]
|
206 |
-
diff_from_mean = pose - mean
|
207 |
-
|
208 |
-
curr_loglikelihood = torch.einsum('bj,ji->bi',
|
209 |
-
[diff_from_mean, prec])
|
210 |
-
curr_loglikelihood = torch.einsum('bi,bi->b',
|
211 |
-
[curr_loglikelihood,
|
212 |
-
diff_from_mean])
|
213 |
-
cov_term = torch.log(torch.det(cov) + self.epsilon)
|
214 |
-
curr_loglikelihood += 0.5 * (cov_term +
|
215 |
-
self.random_var_dim *
|
216 |
-
self.pi_term)
|
217 |
-
likelihoods.append(curr_loglikelihood)
|
218 |
-
|
219 |
-
log_likelihoods = torch.stack(likelihoods, dim=1)
|
220 |
-
min_idx = torch.argmin(log_likelihoods, dim=1)
|
221 |
-
weight_component = self.nll_weights[:, min_idx]
|
222 |
-
weight_component = -torch.log(weight_component)
|
223 |
-
|
224 |
-
return weight_component + log_likelihoods[:, min_idx]
|
225 |
-
|
226 |
-
def forward(self, pose, betas):
|
227 |
-
if self.use_merged:
|
228 |
-
return self.merged_log_likelihood(pose, betas)
|
229 |
-
else:
|
230 |
-
return self.log_likelihood(pose, betas)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/NeuralSeq/modules/commons/normalizing_flow/res_flow.py
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch import nn
|
3 |
-
from modules.commons.conv import ConditionalConvBlocks
|
4 |
-
from modules.commons.wavenet import WN
|
5 |
-
|
6 |
-
|
7 |
-
class FlipLayer(nn.Module):
|
8 |
-
def forward(self, x, nonpadding, cond=None, reverse=False):
|
9 |
-
x = torch.flip(x, [1])
|
10 |
-
return x
|
11 |
-
|
12 |
-
|
13 |
-
class CouplingLayer(nn.Module):
|
14 |
-
def __init__(self, c_in, hidden_size, kernel_size, n_layers, p_dropout=0, c_in_g=0, nn_type='wn'):
|
15 |
-
super().__init__()
|
16 |
-
self.channels = c_in
|
17 |
-
self.hidden_size = hidden_size
|
18 |
-
self.kernel_size = kernel_size
|
19 |
-
self.n_layers = n_layers
|
20 |
-
self.c_half = c_in // 2
|
21 |
-
|
22 |
-
self.pre = nn.Conv1d(self.c_half, hidden_size, 1)
|
23 |
-
if nn_type == 'wn':
|
24 |
-
self.enc = WN(hidden_size, kernel_size, 1, n_layers, p_dropout=p_dropout,
|
25 |
-
c_cond=c_in_g)
|
26 |
-
elif nn_type == 'conv':
|
27 |
-
self.enc = ConditionalConvBlocks(
|
28 |
-
hidden_size, c_in_g, hidden_size, None, kernel_size,
|
29 |
-
layers_in_block=1, is_BTC=False, num_layers=n_layers)
|
30 |
-
self.post = nn.Conv1d(hidden_size, self.c_half, 1)
|
31 |
-
|
32 |
-
def forward(self, x, nonpadding, cond=None, reverse=False):
|
33 |
-
x0, x1 = x[:, :self.c_half], x[:, self.c_half:]
|
34 |
-
x_ = self.pre(x0) * nonpadding
|
35 |
-
x_ = self.enc(x_, nonpadding=nonpadding, cond=cond)
|
36 |
-
m = self.post(x_)
|
37 |
-
x1 = m + x1 if not reverse else x1 - m
|
38 |
-
x = torch.cat([x0, x1], 1)
|
39 |
-
return x * nonpadding
|
40 |
-
|
41 |
-
|
42 |
-
class ResFlow(nn.Module):
|
43 |
-
def __init__(self,
|
44 |
-
c_in,
|
45 |
-
hidden_size,
|
46 |
-
kernel_size,
|
47 |
-
n_flow_layers,
|
48 |
-
n_flow_steps=4,
|
49 |
-
c_cond=0,
|
50 |
-
nn_type='wn'):
|
51 |
-
super().__init__()
|
52 |
-
self.flows = nn.ModuleList()
|
53 |
-
for i in range(n_flow_steps):
|
54 |
-
self.flows.append(
|
55 |
-
CouplingLayer(c_in, hidden_size, kernel_size, n_flow_layers, c_in_g=c_cond, nn_type=nn_type))
|
56 |
-
self.flows.append(FlipLayer())
|
57 |
-
|
58 |
-
def forward(self, x, nonpadding, cond=None, reverse=False):
|
59 |
-
for flow in (self.flows if not reverse else reversed(self.flows)):
|
60 |
-
x = flow(x, nonpadding, cond=cond, reverse=reverse)
|
61 |
-
return x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AbandonedMuse/UnlimitedMusicGen/setup.py
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
3 |
-
All rights reserved.
|
4 |
-
|
5 |
-
This source code is licensed under the license found in the
|
6 |
-
LICENSE file in the root directory of this source tree.
|
7 |
-
|
8 |
-
"""
|
9 |
-
|
10 |
-
from pathlib import Path
|
11 |
-
|
12 |
-
from setuptools import setup, find_packages
|
13 |
-
|
14 |
-
|
15 |
-
NAME = 'audiocraft'
|
16 |
-
DESCRIPTION = 'Audio research library for PyTorch'
|
17 |
-
|
18 |
-
URL = 'https://github.com/fairinternal/audiocraft'
|
19 |
-
AUTHOR = 'FAIR Speech & Audio'
|
20 |
-
EMAIL = '[email protected]'
|
21 |
-
REQUIRES_PYTHON = '>=3.8.0'
|
22 |
-
|
23 |
-
for line in open('audiocraft/__init__.py'):
|
24 |
-
line = line.strip()
|
25 |
-
if '__version__' in line:
|
26 |
-
context = {}
|
27 |
-
exec(line, context)
|
28 |
-
VERSION = context['__version__']
|
29 |
-
|
30 |
-
HERE = Path(__file__).parent
|
31 |
-
|
32 |
-
try:
|
33 |
-
with open(HERE / "README.md", encoding='utf-8') as f:
|
34 |
-
long_description = '\n' + f.read()
|
35 |
-
except FileNotFoundError:
|
36 |
-
long_description = DESCRIPTION
|
37 |
-
|
38 |
-
REQUIRED = [i.strip() for i in open(HERE / 'requirements.txt') if not i.startswith('#')]
|
39 |
-
|
40 |
-
setup(
|
41 |
-
name=NAME,
|
42 |
-
version=VERSION,
|
43 |
-
description=DESCRIPTION,
|
44 |
-
author_email=EMAIL,
|
45 |
-
long_description=long_description,
|
46 |
-
long_description_content_type='text/markdown',
|
47 |
-
author=AUTHOR,
|
48 |
-
url=URL,
|
49 |
-
python_requires=REQUIRES_PYTHON,
|
50 |
-
install_requires=REQUIRED,
|
51 |
-
extras_require={
|
52 |
-
'dev': ['coverage', 'flake8', 'mypy', 'pdoc3', 'pytest'],
|
53 |
-
},
|
54 |
-
packages=find_packages(),
|
55 |
-
package_data={'audiocraft': ['py.typed']},
|
56 |
-
include_package_data=True,
|
57 |
-
license='MIT License',
|
58 |
-
classifiers=[
|
59 |
-
# Trove classifiers
|
60 |
-
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
|
61 |
-
'License :: OSI Approved :: MIT License',
|
62 |
-
'Topic :: Multimedia :: Sound/Audio',
|
63 |
-
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
64 |
-
],
|
65 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT-v1/Dockerfile
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
-
# you will also find guides on how best to write your Dockerfile
|
3 |
-
|
4 |
-
FROM python:3.10
|
5 |
-
|
6 |
-
COPY app.py .
|
7 |
-
COPY requirements.txt .
|
8 |
-
|
9 |
-
RUN python -m venv venv
|
10 |
-
RUN ./venv/bin/pip install -r requirements.txt
|
11 |
-
|
12 |
-
ENV H2O_WAVE_LISTEN=":7860"
|
13 |
-
ENV H2O_WAVE_ADDRESS="http://127.0.0.1:7860"
|
14 |
-
|
15 |
-
CMD ["./venv/bin/wave", "run", "app.py", "--no-reload"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/Forefront.py
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import json
|
3 |
-
import requests
|
4 |
-
from ...typing import sha256, Dict, get_type_hints
|
5 |
-
|
6 |
-
url = 'https://forefront.com'
|
7 |
-
model = ['gpt-3.5-turbo']
|
8 |
-
supports_stream = True
|
9 |
-
needs_auth = False
|
10 |
-
|
11 |
-
def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
12 |
-
json_data = {
|
13 |
-
'text': messages[-1]['content'],
|
14 |
-
'action': 'noauth',
|
15 |
-
'id': '',
|
16 |
-
'parentId': '',
|
17 |
-
'workspaceId': '',
|
18 |
-
'messagePersona': '607e41fe-95be-497e-8e97-010a59b2e2c0',
|
19 |
-
'model': 'gpt-4',
|
20 |
-
'messages': messages[:-1] if len(messages) > 1 else [],
|
21 |
-
'internetMode': 'auto'
|
22 |
-
}
|
23 |
-
response = requests.post( 'https://streaming.tenant-forefront-default.knative.chi.coreweave.com/free-chat',
|
24 |
-
json=json_data, stream=True)
|
25 |
-
for token in response.iter_lines():
|
26 |
-
if b'delta' in token:
|
27 |
-
token = json.loads(token.decode().split('data: ')[1])['delta']
|
28 |
-
yield (token)
|
29 |
-
params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + \
|
30 |
-
'(%s)' % ', '.join([f"{name}: {get_type_hints(_create_completion)[name].__name__}" for name in _create_completion.__code__.co_varnames[:_create_completion.__code__.co_argcount]])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/ninepatch/Factory.d.ts
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
import NinePatch from "./NinePatch";
|
2 |
-
|
3 |
-
export default function (
|
4 |
-
config?: NinePatch.IConfig
|
5 |
-
): NinePatch;
|
6 |
-
|
7 |
-
export default function (
|
8 |
-
x: number, y: number,
|
9 |
-
config?: NinePatch.IConfig
|
10 |
-
): NinePatch;
|
11 |
-
|
12 |
-
export default function (
|
13 |
-
x: number, y: number,
|
14 |
-
width: number, height: number,
|
15 |
-
config?: NinePatch.IConfig
|
16 |
-
): NinePatch;
|
17 |
-
|
18 |
-
export default function (
|
19 |
-
x: number, y: number,
|
20 |
-
width: number, height: number,
|
21 |
-
key: string,
|
22 |
-
config?: NinePatch.IConfig
|
23 |
-
): NinePatch;
|
24 |
-
|
25 |
-
export default function (
|
26 |
-
x: number, y: number,
|
27 |
-
width: number, height: number,
|
28 |
-
key: string,
|
29 |
-
columns: (number | undefined)[], rows: (number | undefined)[],
|
30 |
-
config?: NinePatch.IConfig
|
31 |
-
): NinePatch;
|
32 |
-
|
33 |
-
export default function (
|
34 |
-
x: number, y: number,
|
35 |
-
width: number, height: number,
|
36 |
-
key: string, baseFrame: string,
|
37 |
-
columns: (number | undefined)[], rows: (number | undefined)[],
|
38 |
-
config?: NinePatch.IConfig
|
39 |
-
): NinePatch;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Alealejandrooo/deathCertReader/app.py
DELETED
@@ -1,299 +0,0 @@
|
|
1 |
-
import re
|
2 |
-
import cv2
|
3 |
-
import numpy as np
|
4 |
-
from paddleocr import PaddleOCR
|
5 |
-
from PIL import Image
|
6 |
-
import matplotlib.pyplot as plt
|
7 |
-
import pandas as pd
|
8 |
-
import matplotlib.pyplot as plt
|
9 |
-
import onnxruntime
|
10 |
-
import gradio as gr
|
11 |
-
|
12 |
-
# initialize the OCR
|
13 |
-
ocr = PaddleOCR(lang='sl',
|
14 |
-
enable_mkldnn=True,
|
15 |
-
cls=False,
|
16 |
-
show_log= False)
|
17 |
-
|
18 |
-
# initialize the models
|
19 |
-
model_deskew = onnxruntime.InferenceSession("./models/CNN_deskew_v0.0.2.onnx")
|
20 |
-
model_denoise = onnxruntime.InferenceSession("./models/autoencoder_denoise_v0.0.2.onnx")
|
21 |
-
|
22 |
-
##### All Functions #####
|
23 |
-
|
24 |
-
def preprocess_image(image):
|
25 |
-
'''
|
26 |
-
Function: preprocess image to make it lighter to work on
|
27 |
-
Input: resized image
|
28 |
-
Output: image
|
29 |
-
'''
|
30 |
-
image = np.array(image)
|
31 |
-
scale = 1.494
|
32 |
-
width = int(image.shape[1] / scale)
|
33 |
-
height = int(image.shape[0] / scale)
|
34 |
-
dim = (width, height)
|
35 |
-
image = cv2.resize(image, dim, interpolation = cv2.INTER_AREA)
|
36 |
-
return image
|
37 |
-
|
38 |
-
|
39 |
-
def deskew(image, model):
|
40 |
-
'''
|
41 |
-
Function: deskew an image
|
42 |
-
Input: takes an image as an array
|
43 |
-
Output: deskewed image
|
44 |
-
'''
|
45 |
-
# map the model classes to the actual degree of skew
|
46 |
-
map = { 0: '-1', 1: '-10', 2: '-11', 3: '-12', 4: '-13',
|
47 |
-
5: '-14',6: '-15', 7: '-2', 8: '-3', 9: '-4',
|
48 |
-
10: '-5',11: '-6',12: '-7', 13: '-8', 14: '-9',
|
49 |
-
15: '0', 16: '1', 17: '10', 18: '11', 19: '12',
|
50 |
-
20: '13',21: '14',22: '15', 23: '180',24: '2',
|
51 |
-
25: '270',26: '3',27: '4', 28: '5', 29: '6',
|
52 |
-
30: '7', 31: '8',32: '9', 33: '90'}
|
53 |
-
|
54 |
-
image_d = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
55 |
-
width = int(image_d.shape[1] * 0.2)
|
56 |
-
height = int(image_d.shape[0] * 0.2)
|
57 |
-
dim = (width, height)
|
58 |
-
# resize image
|
59 |
-
res = cv2.resize(image_d, dim, interpolation = cv2.INTER_AREA)
|
60 |
-
resized = cv2.resize(res, (200, 200))
|
61 |
-
# add two dimensions to feed to the model
|
62 |
-
resized = resized.astype('float32').reshape(1, 200, 200 ,1)
|
63 |
-
# normalize
|
64 |
-
resized = resized/255
|
65 |
-
# predictions
|
66 |
-
predictions = model.run(None, {'conv2d_input': resized})
|
67 |
-
# best prediction
|
68 |
-
pred = predictions[0].argmax()
|
69 |
-
# angle of skew
|
70 |
-
angle = int(map[pred])
|
71 |
-
skew_confidence = predictions[0][0][pred] * 100
|
72 |
-
# deskew original image
|
73 |
-
if angle == 90:
|
74 |
-
deskewed_image = cv2.rotate(image, cv2.ROTATE_90_COUNTERCLOCKWISE)
|
75 |
-
return deskewed_image, angle, skew_confidence
|
76 |
-
if angle == 270:
|
77 |
-
deskewed_image = cv2.rotate(image, cv2.ROTATE_90_CLOCKWISE)
|
78 |
-
return deskewed_image, angle, skew_confidence
|
79 |
-
|
80 |
-
(h, w) = image.shape[:2]
|
81 |
-
center = (w // 2, h // 2)
|
82 |
-
M = cv2.getRotationMatrix2D(center, -angle, 1.0)
|
83 |
-
deskewed_image = cv2.warpAffine(image, M, (w, h), flags=cv2.INTER_CUBIC,
|
84 |
-
borderMode=cv2.BORDER_REPLICATE)
|
85 |
-
return deskewed_image, angle, skew_confidence
|
86 |
-
|
87 |
-
|
88 |
-
def prepare_image_to_autoencoder(image):
|
89 |
-
'''
|
90 |
-
Function: prepare the image to be passed to the autoencoder.
|
91 |
-
Input: image (_type_): deskewed image
|
92 |
-
Output: resized image to be passed to the autoencoder
|
93 |
-
'''
|
94 |
-
height, width = image.shape[:2]
|
95 |
-
target_height = 600
|
96 |
-
target_width = 600
|
97 |
-
image = image[int(height/3.6): int(height/1.87), int(width/3.67): int(width/1.575)]
|
98 |
-
# reshape image to fixed size
|
99 |
-
image = cv2.resize(image, (target_width, target_height))
|
100 |
-
image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
|
101 |
-
# normalize images
|
102 |
-
image = image / 255.0
|
103 |
-
# reshape to pass image to autoencoder
|
104 |
-
image = image.reshape(target_height, target_width, 1)
|
105 |
-
return image
|
106 |
-
|
107 |
-
|
108 |
-
def autoencode_ONNX(image, model):
|
109 |
-
'''
|
110 |
-
Function: remove noise from image
|
111 |
-
Input: image and autoencoder model
|
112 |
-
Output: image
|
113 |
-
'''
|
114 |
-
image = image.astype(np.float32).reshape(1, 600, 600, 1)
|
115 |
-
image = model.run(None, {'input_2': image})
|
116 |
-
image = image[0]
|
117 |
-
image = image.squeeze()
|
118 |
-
image = image * 255
|
119 |
-
image = image.astype('uint8')
|
120 |
-
return image
|
121 |
-
|
122 |
-
def extract_detected_entries_pdl(image):
|
123 |
-
"""
|
124 |
-
Extracts text, scores, and boundary boxes from an image using OCR and returns a DataFrame.
|
125 |
-
|
126 |
-
This function takes an input image, applies OCR to detect text in the image, and then extracts
|
127 |
-
the detected text, confidence scores, and boundary boxes for each text entry. The extracted
|
128 |
-
information is returned in a DataFrame with columns "Text", "Score", and "Boundary Box".
|
129 |
-
|
130 |
-
Parameters
|
131 |
-
----------
|
132 |
-
image : numpy.ndarray
|
133 |
-
The input image to be processed.
|
134 |
-
|
135 |
-
Returns
|
136 |
-
-------
|
137 |
-
pandas.DataFrame
|
138 |
-
A DataFrame containing the extracted text, confidence scores, and boundary boxes
|
139 |
-
for each detected text entry. The DataFrame has the following columns:
|
140 |
-
- "Text": The detected text.
|
141 |
-
- "Score": The confidence score for the detected text.
|
142 |
-
- "Boundary Box": The coordinates of the boundary box for the detected text.
|
143 |
-
"""
|
144 |
-
# run the OCR
|
145 |
-
result = ocr.ocr(image)
|
146 |
-
# creates Pandas Dataframe
|
147 |
-
txt = []
|
148 |
-
scores = []
|
149 |
-
boxes = []
|
150 |
-
for r in result[0]:
|
151 |
-
txt.append(cleanString_basic(r[-1][0]))
|
152 |
-
scores.append(r[-1][1])
|
153 |
-
boxes.append(tuple(map(tuple, r[0])))
|
154 |
-
|
155 |
-
return pd.DataFrame({"Text": txt, "Score": scores, "Boundary Box": boxes})
|
156 |
-
|
157 |
-
def cleanString_basic(word):
|
158 |
-
word = word.replace("$", "s")
|
159 |
-
return word
|
160 |
-
|
161 |
-
def clean_string_start(string: 'str'):
|
162 |
-
|
163 |
-
names_flags = "√"
|
164 |
-
chars_to_remove = ['!', "'", '[', ']', '*', '|', '.', ':', '\\', '/']
|
165 |
-
if string.startswith(tuple(chars_to_remove)):
|
166 |
-
names_flags = string[0]
|
167 |
-
string = string[1:]
|
168 |
-
return string, names_flags
|
169 |
-
|
170 |
-
def clean_string_end(string: 'str'):
|
171 |
-
|
172 |
-
names_flags = "√"
|
173 |
-
chars_to_remove = ['!', "'", '[', ']', '*', '|', '.', ':', '\\', '/']
|
174 |
-
if string.endswith(tuple(chars_to_remove)):
|
175 |
-
names_flags = string[-1]
|
176 |
-
string = string[:-1]
|
177 |
-
return string, names_flags
|
178 |
-
|
179 |
-
def clean_dates(date: 'str'):
|
180 |
-
'''
|
181 |
-
Function: cleans the fields "datum smrti" and returns the char removed.
|
182 |
-
Input: date (string format)
|
183 |
-
Output: cleaned frame
|
184 |
-
'''
|
185 |
-
|
186 |
-
date_flags = "Y"
|
187 |
-
# finds special characters in the string
|
188 |
-
special_char = re.findall(r'[a-zA-Z!\[\|]', date)
|
189 |
-
if len(special_char) > 0:
|
190 |
-
date_flags = special_char
|
191 |
-
# remove special characters in the string
|
192 |
-
string = re.sub(r'[a-zA-Z!\[\|]', '', date)
|
193 |
-
return string, date_flags
|
194 |
-
|
195 |
-
|
196 |
-
##### Main Function #####
|
197 |
-
|
198 |
-
def pdf_extract_gr(image):
|
199 |
-
extractimg = preprocess_image(image)
|
200 |
-
#extractimg = np.array(image)
|
201 |
-
# deskew the image
|
202 |
-
deskewed_image, angle, skew_confidence = deskew(extractimg, model_deskew)
|
203 |
-
# prepare the image for the autoencoder
|
204 |
-
cleanimg = prepare_image_to_autoencoder(deskewed_image)
|
205 |
-
# clean the image
|
206 |
-
img = autoencode_ONNX(cleanimg, model_denoise)
|
207 |
-
# extract the entries from the image
|
208 |
-
df = extract_detected_entries_pdl(img)
|
209 |
-
# first name
|
210 |
-
firstnamerow = df.iloc[0]
|
211 |
-
firstname = firstnamerow[0]
|
212 |
-
firstnameconfidence = round(float(firstnamerow[1]) * 100,3)
|
213 |
-
firstnameconfidence = f"{firstnameconfidence}%"
|
214 |
-
# surname
|
215 |
-
surnamerow = df.iloc[1]
|
216 |
-
surname = surnamerow[0]
|
217 |
-
surnameconfidence = round(float(surnamerow[1]) * 100,3)
|
218 |
-
surnameconfidence = f"{surnameconfidence}%"
|
219 |
-
# death date condifence
|
220 |
-
dodrow = df.iloc[2]
|
221 |
-
dodname = dodrow[0]
|
222 |
-
dodconfidence = round(float(dodrow[1]) * 100,3)
|
223 |
-
dodconfidence = f"{dodconfidence}%"
|
224 |
-
# return all the results
|
225 |
-
return df, deskewed_image, angle, skew_confidence, img, firstname, firstnameconfidence, surname, surnameconfidence, dodname, dodconfidence
|
226 |
-
|
227 |
-
|
228 |
-
##### Gradio Style #####
|
229 |
-
|
230 |
-
css = """
|
231 |
-
.run_container {
|
232 |
-
display: flex;
|
233 |
-
flex-direction: column;
|
234 |
-
align-items: center;
|
235 |
-
gap: 10px;
|
236 |
-
}
|
237 |
-
.run_btn {
|
238 |
-
margin: auto;
|
239 |
-
width: 50%;
|
240 |
-
display: flex;
|
241 |
-
}
|
242 |
-
.upload_cell {
|
243 |
-
margin: auto;
|
244 |
-
display: flex;
|
245 |
-
}
|
246 |
-
.results_container {
|
247 |
-
display: flex;
|
248 |
-
justify-content: space-evenly;
|
249 |
-
}
|
250 |
-
.results_cell {
|
251 |
-
}
|
252 |
-
"""
|
253 |
-
|
254 |
-
##### Gradio Blocks #####
|
255 |
-
|
256 |
-
with gr.Blocks(css = css) as demo:
|
257 |
-
gr.Markdown("""
|
258 |
-
# Death Certificate Extraction
|
259 |
-
""", elem_classes = "h1")
|
260 |
-
gr.Markdown("Upload a PDF, extract data")
|
261 |
-
with gr.Box(elem_classes = "run_container"):
|
262 |
-
# ExtractInput = gr.File(label = "Death Certificate", elem_classes="upload_cell")
|
263 |
-
ExtractButton = gr.Button(label = "Extract", elem_classes="run_btn")
|
264 |
-
with gr.Row(elem_id = "hide"):
|
265 |
-
with gr.Column():
|
266 |
-
ExtractInput = gr.Image()
|
267 |
-
with gr.Column():
|
268 |
-
# ExtractResult = gr.Image(label = "result")
|
269 |
-
with gr.Row(elem_classes = "results_container"):
|
270 |
-
FirstNameBox = gr.Textbox(label = "First Name", elem_classes = "results_cell")
|
271 |
-
FirstNameConfidenceBox = gr.Textbox(label = "First Name Confidence", elem_classes = "results_cell")
|
272 |
-
with gr.Row(elem_classes = "results_container"):
|
273 |
-
SurnameNameBox = gr.Textbox(label = "Surname", elem_classes = "results_cell")
|
274 |
-
SurnameNameConfidenceBox = gr.Textbox(label = "Surname Confidence", elem_classes = "results_cell")
|
275 |
-
with gr.Row(elem_classes = "results_container"):
|
276 |
-
DODBox = gr.Textbox(label = "Date of Death", elem_classes = "results_cell")
|
277 |
-
DODConfidenceBox = gr.Textbox(label = "Date of Death Confidence", elem_classes = "results_cell")
|
278 |
-
|
279 |
-
with gr.Accordion("Full Results", open = False):
|
280 |
-
ExtractDF = gr.Dataframe(label = "Results")
|
281 |
-
|
282 |
-
with gr.Accordion("Clean Image", open = False):
|
283 |
-
CleanOutput = gr.Image()
|
284 |
-
|
285 |
-
with gr.Accordion("Deskew", open = False):
|
286 |
-
DeskewOutput = gr.Image()
|
287 |
-
with gr.Column():
|
288 |
-
DeskewAngle = gr.Number(label = "Angle")
|
289 |
-
with gr.Column():
|
290 |
-
DeskewConfidence = gr.Number(label = "Confidence")
|
291 |
-
|
292 |
-
ExtractButton.click(fn=pdf_extract_gr,
|
293 |
-
inputs = ExtractInput,
|
294 |
-
outputs = [ExtractDF, DeskewOutput, DeskewAngle,
|
295 |
-
DeskewConfidence, CleanOutput, FirstNameBox,
|
296 |
-
FirstNameConfidenceBox, SurnameNameBox,
|
297 |
-
SurnameNameConfidenceBox, DODBox, DODConfidenceBox])
|
298 |
-
|
299 |
-
demo.launch(show_api=True, share=False, debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Aleistair/anything5/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Anything V3.0
|
3 |
-
emoji: 🏃
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: yellow
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.10.1
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
duplicated_from: vntonie/anything-v3.0
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlexWang/lama/saicinpainting/evaluation/utils.py
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
from enum import Enum
|
2 |
-
|
3 |
-
import yaml
|
4 |
-
from easydict import EasyDict as edict
|
5 |
-
import torch.nn as nn
|
6 |
-
import torch
|
7 |
-
|
8 |
-
|
9 |
-
def load_yaml(path):
|
10 |
-
with open(path, 'r') as f:
|
11 |
-
return edict(yaml.safe_load(f))
|
12 |
-
|
13 |
-
|
14 |
-
def move_to_device(obj, device):
|
15 |
-
if isinstance(obj, nn.Module):
|
16 |
-
return obj.to(device)
|
17 |
-
if torch.is_tensor(obj):
|
18 |
-
return obj.to(device)
|
19 |
-
if isinstance(obj, (tuple, list)):
|
20 |
-
return [move_to_device(el, device) for el in obj]
|
21 |
-
if isinstance(obj, dict):
|
22 |
-
return {name: move_to_device(val, device) for name, val in obj.items()}
|
23 |
-
raise ValueError(f'Unexpected type {type(obj)}')
|
24 |
-
|
25 |
-
|
26 |
-
class SmallMode(Enum):
|
27 |
-
DROP = "drop"
|
28 |
-
UPSCALE = "upscale"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/ko/optimization/mps.md
DELETED
@@ -1,71 +0,0 @@
|
|
1 |
-
<!--Copyright 2023 The HuggingFace Team. All rights reserved.
|
2 |
-
|
3 |
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
|
4 |
-
the License. You may obtain a copy of the License at
|
5 |
-
|
6 |
-
http://www.apache.org/licenses/LICENSE-2.0
|
7 |
-
|
8 |
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
9 |
-
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
10 |
-
specific language governing permissions and limitations under the License.
|
11 |
-
-->
|
12 |
-
|
13 |
-
# Apple Silicon (M1/M2)에서 Stable Diffusion을 사용하는 방법
|
14 |
-
|
15 |
-
Diffusers는 Stable Diffusion 추론을 위해 PyTorch `mps`를 사용해 Apple 실리콘과 호환됩니다. 다음은 Stable Diffusion이 있는 M1 또는 M2 컴퓨터를 사용하기 위해 따라야 하는 단계입니다.
|
16 |
-
|
17 |
-
## 요구 사항
|
18 |
-
|
19 |
-
- Apple silicon (M1/M2) 하드웨어의 Mac 컴퓨터.
|
20 |
-
- macOS 12.6 또는 이후 (13.0 또는 이후 추천).
|
21 |
-
- Python arm64 버전
|
22 |
-
- PyTorch 2.0(추천) 또는 1.13(`mps`를 지원하는 최소 버전). Yhttps://pytorch.org/get-started/locally/의 지침에 따라 `pip` 또는 `conda`로 설치할 수 있습니다.
|
23 |
-
|
24 |
-
|
25 |
-
## 추론 파이프라인
|
26 |
-
|
27 |
-
아래 코도는 익숙한 `to()` 인터페이스를 사용하여 `mps` 백엔드로 Stable Diffusion 파이프라인을 M1 또는 M2 장치로 이동하는 방법을 보여줍니다.
|
28 |
-
|
29 |
-
|
30 |
-
<Tip warning={true}>
|
31 |
-
|
32 |
-
**PyTorch 1.13을 사용 중일 때 ** 추가 일회성 전달을 사용하여 파이프라인을 "프라이밍"하는 것을 추천합니다. 이것은 발견한 이상한 문제에 대한 임시 해결 방법입니다. 첫 번째 추론 전달은 후속 전달와 약간 다른 결과를 생성합니다. 이 전달은 한 번만 수행하면 되며 추론 단계를 한 번만 사용하고 결과를 폐기해도 됩니다.
|
33 |
-
|
34 |
-
</Tip>
|
35 |
-
|
36 |
-
이전 팁에서 설명한 것들을 포함한 여러 문제를 해결하므로 PyTorch 2 이상을 사용하는 것이 좋습니다.
|
37 |
-
|
38 |
-
|
39 |
-
```python
|
40 |
-
# `huggingface-cli login`에 로그인되어 있음을 확인
|
41 |
-
from diffusers import DiffusionPipeline
|
42 |
-
|
43 |
-
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
44 |
-
pipe = pipe.to("mps")
|
45 |
-
|
46 |
-
# 컴퓨터가 64GB 이하의 RAM 램일 때 추천
|
47 |
-
pipe.enable_attention_slicing()
|
48 |
-
|
49 |
-
prompt = "a photo of an astronaut riding a horse on mars"
|
50 |
-
|
51 |
-
# 처음 "워밍업" 전달 (위 설명을 보세요)
|
52 |
-
_ = pipe(prompt, num_inference_steps=1)
|
53 |
-
|
54 |
-
# 결과는 워밍업 전달 후의 CPU 장치의 결과와 일치합니다.
|
55 |
-
image = pipe(prompt).images[0]
|
56 |
-
```
|
57 |
-
|
58 |
-
## 성능 추천
|
59 |
-
|
60 |
-
M1/M2 성능은 메모리 압력에 매우 민감합니다. 시스템은 필요한 경우 자동으로 스왑되지만 스왑할 때 성능이 크게 저하됩니다.
|
61 |
-
|
62 |
-
|
63 |
-
특히 컴퓨터의 시스템 RAM이 64GB 미만이거나 512 × 512픽셀보다 큰 비표준 해상도에서 이미지를 생성하는 경우, 추론 중에 메모리 압력을 줄이고 스와핑을 방지하기 위해 *어텐션 슬라이싱*을 사용하는 것이 좋습니다. 어텐션 슬라이싱은 비용이 많이 드는 어텐션 작업을 한 번에 모두 수행하는 대신 여러 단계로 수행합니다. 일반적으로 범용 메모리가 없는 컴퓨터에서 ~20%의 성능 영향을 미치지만 64GB 이상이 아닌 경우 대부분의 Apple Silicon 컴퓨터에서 *더 나은 성능*이 관찰되었습니다.
|
64 |
-
|
65 |
-
```python
|
66 |
-
pipeline.enable_attention_slicing()
|
67 |
-
```
|
68 |
-
|
69 |
-
## Known Issues
|
70 |
-
|
71 |
-
- 여러 프롬프트를 배치로 생성하는 것은 [충돌이 발생하거나 안정적으로 작동하지 않습니다](https://github.com/huggingface/diffusers/issues/363). 우리는 이것이 [PyTorch의 `mps` 백엔드](https://github.com/pytorch/pytorch/issues/84039)와 관련이 있다고 생각합니다. 이 문제는 해결되고 있지만 지금은 배치 대신 반복 방법을 사용하는 것이 좋습니다.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/configs/swin/cascade_mask_rcnn_swin_base_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py
DELETED
@@ -1,140 +0,0 @@
|
|
1 |
-
_base_ = [
|
2 |
-
'../_base_/models/cascade_mask_rcnn_swin_fpn.py',
|
3 |
-
'../_base_/datasets/coco_instance.py',
|
4 |
-
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
|
5 |
-
]
|
6 |
-
|
7 |
-
model = dict(
|
8 |
-
backbone=dict(
|
9 |
-
embed_dim=128,
|
10 |
-
depths=[2, 2, 18, 2],
|
11 |
-
num_heads=[4, 8, 16, 32],
|
12 |
-
window_size=7,
|
13 |
-
ape=False,
|
14 |
-
drop_path_rate=0.3,
|
15 |
-
patch_norm=True,
|
16 |
-
use_checkpoint=False
|
17 |
-
),
|
18 |
-
neck=dict(in_channels=[128, 256, 512, 1024]),
|
19 |
-
roi_head=dict(
|
20 |
-
bbox_head=[
|
21 |
-
dict(
|
22 |
-
type='ConvFCBBoxHead',
|
23 |
-
num_shared_convs=4,
|
24 |
-
num_shared_fcs=1,
|
25 |
-
in_channels=256,
|
26 |
-
conv_out_channels=256,
|
27 |
-
fc_out_channels=1024,
|
28 |
-
roi_feat_size=7,
|
29 |
-
num_classes=80,
|
30 |
-
bbox_coder=dict(
|
31 |
-
type='DeltaXYWHBBoxCoder',
|
32 |
-
target_means=[0., 0., 0., 0.],
|
33 |
-
target_stds=[0.1, 0.1, 0.2, 0.2]),
|
34 |
-
reg_class_agnostic=False,
|
35 |
-
reg_decoded_bbox=True,
|
36 |
-
norm_cfg=dict(type='SyncBN', requires_grad=True),
|
37 |
-
loss_cls=dict(
|
38 |
-
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
|
39 |
-
loss_bbox=dict(type='GIoULoss', loss_weight=10.0)),
|
40 |
-
dict(
|
41 |
-
type='ConvFCBBoxHead',
|
42 |
-
num_shared_convs=4,
|
43 |
-
num_shared_fcs=1,
|
44 |
-
in_channels=256,
|
45 |
-
conv_out_channels=256,
|
46 |
-
fc_out_channels=1024,
|
47 |
-
roi_feat_size=7,
|
48 |
-
num_classes=80,
|
49 |
-
bbox_coder=dict(
|
50 |
-
type='DeltaXYWHBBoxCoder',
|
51 |
-
target_means=[0., 0., 0., 0.],
|
52 |
-
target_stds=[0.05, 0.05, 0.1, 0.1]),
|
53 |
-
reg_class_agnostic=False,
|
54 |
-
reg_decoded_bbox=True,
|
55 |
-
norm_cfg=dict(type='SyncBN', requires_grad=True),
|
56 |
-
loss_cls=dict(
|
57 |
-
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
|
58 |
-
loss_bbox=dict(type='GIoULoss', loss_weight=10.0)),
|
59 |
-
dict(
|
60 |
-
type='ConvFCBBoxHead',
|
61 |
-
num_shared_convs=4,
|
62 |
-
num_shared_fcs=1,
|
63 |
-
in_channels=256,
|
64 |
-
conv_out_channels=256,
|
65 |
-
fc_out_channels=1024,
|
66 |
-
roi_feat_size=7,
|
67 |
-
num_classes=80,
|
68 |
-
bbox_coder=dict(
|
69 |
-
type='DeltaXYWHBBoxCoder',
|
70 |
-
target_means=[0., 0., 0., 0.],
|
71 |
-
target_stds=[0.033, 0.033, 0.067, 0.067]),
|
72 |
-
reg_class_agnostic=False,
|
73 |
-
reg_decoded_bbox=True,
|
74 |
-
norm_cfg=dict(type='SyncBN', requires_grad=True),
|
75 |
-
loss_cls=dict(
|
76 |
-
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0),
|
77 |
-
loss_bbox=dict(type='GIoULoss', loss_weight=10.0))
|
78 |
-
]))
|
79 |
-
|
80 |
-
img_norm_cfg = dict(
|
81 |
-
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
|
82 |
-
|
83 |
-
# augmentation strategy originates from DETR / Sparse RCNN
|
84 |
-
train_pipeline = [
|
85 |
-
dict(type='LoadImageFromFile'),
|
86 |
-
dict(type='LoadAnnotations', with_bbox=True, with_mask=True),
|
87 |
-
dict(type='RandomFlip', flip_ratio=0.5),
|
88 |
-
dict(type='AutoAugment',
|
89 |
-
policies=[
|
90 |
-
[
|
91 |
-
dict(type='Resize',
|
92 |
-
img_scale=[(480, 1333), (512, 1333), (544, 1333), (576, 1333),
|
93 |
-
(608, 1333), (640, 1333), (672, 1333), (704, 1333),
|
94 |
-
(736, 1333), (768, 1333), (800, 1333)],
|
95 |
-
multiscale_mode='value',
|
96 |
-
keep_ratio=True)
|
97 |
-
],
|
98 |
-
[
|
99 |
-
dict(type='Resize',
|
100 |
-
img_scale=[(400, 1333), (500, 1333), (600, 1333)],
|
101 |
-
multiscale_mode='value',
|
102 |
-
keep_ratio=True),
|
103 |
-
dict(type='RandomCrop',
|
104 |
-
crop_type='absolute_range',
|
105 |
-
crop_size=(384, 600),
|
106 |
-
allow_negative_crop=True),
|
107 |
-
dict(type='Resize',
|
108 |
-
img_scale=[(480, 1333), (512, 1333), (544, 1333),
|
109 |
-
(576, 1333), (608, 1333), (640, 1333),
|
110 |
-
(672, 1333), (704, 1333), (736, 1333),
|
111 |
-
(768, 1333), (800, 1333)],
|
112 |
-
multiscale_mode='value',
|
113 |
-
override=True,
|
114 |
-
keep_ratio=True)
|
115 |
-
]
|
116 |
-
]),
|
117 |
-
dict(type='Normalize', **img_norm_cfg),
|
118 |
-
dict(type='Pad', size_divisor=32),
|
119 |
-
dict(type='DefaultFormatBundle'),
|
120 |
-
dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks']),
|
121 |
-
]
|
122 |
-
data = dict(train=dict(pipeline=train_pipeline))
|
123 |
-
|
124 |
-
optimizer = dict(_delete_=True, type='AdamW', lr=0.0001, betas=(0.9, 0.999), weight_decay=0.05,
|
125 |
-
paramwise_cfg=dict(custom_keys={'absolute_pos_embed': dict(decay_mult=0.),
|
126 |
-
'relative_position_bias_table': dict(decay_mult=0.),
|
127 |
-
'norm': dict(decay_mult=0.)}))
|
128 |
-
lr_config = dict(step=[27, 33])
|
129 |
-
runner = dict(type='EpochBasedRunnerAmp', max_epochs=36)
|
130 |
-
|
131 |
-
# do not use mmdet version fp16
|
132 |
-
fp16 = None
|
133 |
-
optimizer_config = dict(
|
134 |
-
type="DistOptimizerHook",
|
135 |
-
update_interval=1,
|
136 |
-
grad_clip=None,
|
137 |
-
coalesce=True,
|
138 |
-
bucket_size_mb=-1,
|
139 |
-
use_fp16=True,
|
140 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_detection/mmdet/core/bbox/__init__.py
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
from .assigners import (AssignResult, BaseAssigner, CenterRegionAssigner,
|
2 |
-
MaxIoUAssigner, RegionAssigner)
|
3 |
-
from .builder import build_assigner, build_bbox_coder, build_sampler
|
4 |
-
from .coder import (BaseBBoxCoder, DeltaXYWHBBoxCoder, PseudoBBoxCoder,
|
5 |
-
TBLRBBoxCoder)
|
6 |
-
from .iou_calculators import BboxOverlaps2D, bbox_overlaps
|
7 |
-
from .samplers import (BaseSampler, CombinedSampler,
|
8 |
-
InstanceBalancedPosSampler, IoUBalancedNegSampler,
|
9 |
-
OHEMSampler, PseudoSampler, RandomSampler,
|
10 |
-
SamplingResult, ScoreHLRSampler)
|
11 |
-
from .transforms import (bbox2distance, bbox2result, bbox2roi,
|
12 |
-
bbox_cxcywh_to_xyxy, bbox_flip, bbox_mapping,
|
13 |
-
bbox_mapping_back, bbox_rescale, bbox_xyxy_to_cxcywh,
|
14 |
-
distance2bbox, roi2bbox)
|
15 |
-
|
16 |
-
__all__ = [
|
17 |
-
'bbox_overlaps', 'BboxOverlaps2D', 'BaseAssigner', 'MaxIoUAssigner',
|
18 |
-
'AssignResult', 'BaseSampler', 'PseudoSampler', 'RandomSampler',
|
19 |
-
'InstanceBalancedPosSampler', 'IoUBalancedNegSampler', 'CombinedSampler',
|
20 |
-
'OHEMSampler', 'SamplingResult', 'ScoreHLRSampler', 'build_assigner',
|
21 |
-
'build_sampler', 'bbox_flip', 'bbox_mapping', 'bbox_mapping_back',
|
22 |
-
'bbox2roi', 'roi2bbox', 'bbox2result', 'distance2bbox', 'bbox2distance',
|
23 |
-
'build_bbox_coder', 'BaseBBoxCoder', 'PseudoBBoxCoder',
|
24 |
-
'DeltaXYWHBBoxCoder', 'TBLRBBoxCoder', 'CenterRegionAssigner',
|
25 |
-
'bbox_rescale', 'bbox_cxcywh_to_xyxy', 'bbox_xyxy_to_cxcywh',
|
26 |
-
'RegionAssigner'
|
27 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/_base_/models/gcnet_r50-d8.py
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
# model settings
|
2 |
-
norm_cfg = dict(type='SyncBN', requires_grad=True)
|
3 |
-
model = dict(
|
4 |
-
type='EncoderDecoder',
|
5 |
-
pretrained='open-mmlab://resnet50_v1c',
|
6 |
-
backbone=dict(
|
7 |
-
type='ResNetV1c',
|
8 |
-
depth=50,
|
9 |
-
num_stages=4,
|
10 |
-
out_indices=(0, 1, 2, 3),
|
11 |
-
dilations=(1, 1, 2, 4),
|
12 |
-
strides=(1, 2, 1, 1),
|
13 |
-
norm_cfg=norm_cfg,
|
14 |
-
norm_eval=False,
|
15 |
-
style='pytorch',
|
16 |
-
contract_dilation=True),
|
17 |
-
decode_head=dict(
|
18 |
-
type='GCHead',
|
19 |
-
in_channels=2048,
|
20 |
-
in_index=3,
|
21 |
-
channels=512,
|
22 |
-
ratio=1 / 4.,
|
23 |
-
pooling_type='att',
|
24 |
-
fusion_types=('channel_add', ),
|
25 |
-
dropout_ratio=0.1,
|
26 |
-
num_classes=19,
|
27 |
-
norm_cfg=norm_cfg,
|
28 |
-
align_corners=False,
|
29 |
-
loss_decode=dict(
|
30 |
-
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)),
|
31 |
-
auxiliary_head=dict(
|
32 |
-
type='FCNHead',
|
33 |
-
in_channels=1024,
|
34 |
-
in_index=2,
|
35 |
-
channels=256,
|
36 |
-
num_convs=1,
|
37 |
-
concat_input=False,
|
38 |
-
dropout_ratio=0.1,
|
39 |
-
num_classes=19,
|
40 |
-
norm_cfg=norm_cfg,
|
41 |
-
align_corners=False,
|
42 |
-
loss_decode=dict(
|
43 |
-
type='CrossEntropyLoss', use_sigmoid=False, loss_weight=0.4)),
|
44 |
-
# model training and testing settings
|
45 |
-
train_cfg=dict(),
|
46 |
-
test_cfg=dict(mode='whole'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/ops/tin_shift.py
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
# Copyright (c) OpenMMLab. All rights reserved.
|
2 |
-
# Code reference from "Temporal Interlacing Network"
|
3 |
-
# https://github.com/deepcs233/TIN/blob/master/cuda_shift/rtc_wrap.py
|
4 |
-
# Hao Shao, Shengju Qian, Yu Liu
|
5 | |
6 |
-
|
7 |
-
import torch
|
8 |
-
import torch.nn as nn
|
9 |
-
from torch.autograd import Function
|
10 |
-
|
11 |
-
from ..utils import ext_loader
|
12 |
-
|
13 |
-
ext_module = ext_loader.load_ext('_ext',
|
14 |
-
['tin_shift_forward', 'tin_shift_backward'])
|
15 |
-
|
16 |
-
|
17 |
-
class TINShiftFunction(Function):
|
18 |
-
|
19 |
-
@staticmethod
|
20 |
-
def forward(ctx, input, shift):
|
21 |
-
C = input.size(2)
|
22 |
-
num_segments = shift.size(1)
|
23 |
-
if C // num_segments <= 0 or C % num_segments != 0:
|
24 |
-
raise ValueError('C should be a multiple of num_segments, '
|
25 |
-
f'but got C={C} and num_segments={num_segments}.')
|
26 |
-
|
27 |
-
ctx.save_for_backward(shift)
|
28 |
-
|
29 |
-
out = torch.zeros_like(input)
|
30 |
-
ext_module.tin_shift_forward(input, shift, out)
|
31 |
-
|
32 |
-
return out
|
33 |
-
|
34 |
-
@staticmethod
|
35 |
-
def backward(ctx, grad_output):
|
36 |
-
|
37 |
-
shift = ctx.saved_tensors[0]
|
38 |
-
data_grad_input = grad_output.new(*grad_output.size()).zero_()
|
39 |
-
shift_grad_input = shift.new(*shift.size()).zero_()
|
40 |
-
ext_module.tin_shift_backward(grad_output, shift, data_grad_input)
|
41 |
-
|
42 |
-
return data_grad_input, shift_grad_input
|
43 |
-
|
44 |
-
|
45 |
-
tin_shift = TINShiftFunction.apply
|
46 |
-
|
47 |
-
|
48 |
-
class TINShift(nn.Module):
|
49 |
-
"""Temporal Interlace Shift.
|
50 |
-
|
51 |
-
Temporal Interlace shift is a differentiable temporal-wise frame shifting
|
52 |
-
which is proposed in "Temporal Interlacing Network"
|
53 |
-
|
54 |
-
Please refer to https://arxiv.org/abs/2001.06499 for more details.
|
55 |
-
Code is modified from https://github.com/mit-han-lab/temporal-shift-module
|
56 |
-
"""
|
57 |
-
|
58 |
-
def forward(self, input, shift):
|
59 |
-
"""Perform temporal interlace shift.
|
60 |
-
|
61 |
-
Args:
|
62 |
-
input (Tensor): Feature map with shape [N, num_segments, C, H * W].
|
63 |
-
shift (Tensor): Shift tensor with shape [N, num_segments].
|
64 |
-
|
65 |
-
Returns:
|
66 |
-
Feature map after temporal interlace shift.
|
67 |
-
"""
|
68 |
-
return tin_shift(input, shift)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Arsenii2023/Demo1/logistic.py
DELETED
@@ -1,40 +0,0 @@
|
|
1 |
-
#Author: Arsenii Kostenko
|
2 |
-
import numpy as np
|
3 |
-
from sklearn.linear_model import LogisticRegression
|
4 |
-
import gradio as gr
|
5 |
-
|
6 |
-
# Данные для обучения модели
|
7 |
-
x_train = np.array([[0, 0], [1, 1], [2, 2]])
|
8 |
-
y_train = np.array([0, 1, 2])
|
9 |
-
|
10 |
-
# Обучение модели
|
11 |
-
model = LogisticRegression()
|
12 |
-
model.fit(x_train, y_train)
|
13 |
-
|
14 |
-
# Функция для предсказания значений
|
15 |
-
def predict(x, y):
|
16 |
-
# Преобразование строк в списки списков
|
17 |
-
x_nested_list = [list(map(int, sublist.split(","))) for sublist in x.split(";")]
|
18 |
-
y_nested_list = [list(map(int, sublist.split(","))) for sublist in y.split(";")]
|
19 |
-
|
20 |
-
# Преобразование списков списков в numpy arrays
|
21 |
-
x_array = np.array(x_nested_list)
|
22 |
-
y_array = np.array(y_nested_list)
|
23 |
-
|
24 |
-
# Проверка исходных данных на соответствие
|
25 |
-
if x_array.shape != y_array.shape:
|
26 |
-
return "Ошибка: x и y должны иметь одинаковую размерность"
|
27 |
-
|
28 |
-
# Предсказание значений
|
29 |
-
predictions = model.predict(x_array)
|
30 |
-
|
31 |
-
return predictions
|
32 |
-
|
33 |
-
# Создание интерфейса gradio
|
34 |
-
iface = gr.Interface(
|
35 |
-
fn=predict,
|
36 |
-
inputs=["text", "text"],
|
37 |
-
outputs="text"
|
38 |
-
)
|
39 |
-
|
40 |
-
iface.launch(debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_distutils/bcppcompiler.py
DELETED
@@ -1,408 +0,0 @@
|
|
1 |
-
"""distutils.bcppcompiler
|
2 |
-
|
3 |
-
Contains BorlandCCompiler, an implementation of the abstract CCompiler class
|
4 |
-
for the Borland C++ compiler.
|
5 |
-
"""
|
6 |
-
|
7 |
-
# This implementation by Lyle Johnson, based on the original msvccompiler.py
|
8 |
-
# module and using the directions originally published by Gordon Williams.
|
9 |
-
|
10 |
-
# XXX looks like there's a LOT of overlap between these two classes:
|
11 |
-
# someone should sit down and factor out the common code as
|
12 |
-
# WindowsCCompiler! --GPW
|
13 |
-
|
14 |
-
|
15 |
-
import os
|
16 |
-
import warnings
|
17 |
-
|
18 |
-
from distutils.errors import (
|
19 |
-
DistutilsExecError,
|
20 |
-
CompileError,
|
21 |
-
LibError,
|
22 |
-
LinkError,
|
23 |
-
UnknownFileError,
|
24 |
-
)
|
25 |
-
from distutils.ccompiler import CCompiler, gen_preprocess_options
|
26 |
-
from distutils.file_util import write_file
|
27 |
-
from distutils.dep_util import newer
|
28 |
-
from distutils import log
|
29 |
-
|
30 |
-
|
31 |
-
warnings.warn(
|
32 |
-
"bcppcompiler is deprecated and slated to be removed "
|
33 |
-
"in the future. Please discontinue use or file an issue "
|
34 |
-
"with pypa/distutils describing your use case.",
|
35 |
-
DeprecationWarning,
|
36 |
-
)
|
37 |
-
|
38 |
-
|
39 |
-
class BCPPCompiler(CCompiler):
|
40 |
-
"""Concrete class that implements an interface to the Borland C/C++
|
41 |
-
compiler, as defined by the CCompiler abstract class.
|
42 |
-
"""
|
43 |
-
|
44 |
-
compiler_type = 'bcpp'
|
45 |
-
|
46 |
-
# Just set this so CCompiler's constructor doesn't barf. We currently
|
47 |
-
# don't use the 'set_executables()' bureaucracy provided by CCompiler,
|
48 |
-
# as it really isn't necessary for this sort of single-compiler class.
|
49 |
-
# Would be nice to have a consistent interface with UnixCCompiler,
|
50 |
-
# though, so it's worth thinking about.
|
51 |
-
executables = {}
|
52 |
-
|
53 |
-
# Private class data (need to distinguish C from C++ source for compiler)
|
54 |
-
_c_extensions = ['.c']
|
55 |
-
_cpp_extensions = ['.cc', '.cpp', '.cxx']
|
56 |
-
|
57 |
-
# Needed for the filename generation methods provided by the
|
58 |
-
# base class, CCompiler.
|
59 |
-
src_extensions = _c_extensions + _cpp_extensions
|
60 |
-
obj_extension = '.obj'
|
61 |
-
static_lib_extension = '.lib'
|
62 |
-
shared_lib_extension = '.dll'
|
63 |
-
static_lib_format = shared_lib_format = '%s%s'
|
64 |
-
exe_extension = '.exe'
|
65 |
-
|
66 |
-
def __init__(self, verbose=0, dry_run=0, force=0):
|
67 |
-
|
68 |
-
super().__init__(verbose, dry_run, force)
|
69 |
-
|
70 |
-
# These executables are assumed to all be in the path.
|
71 |
-
# Borland doesn't seem to use any special registry settings to
|
72 |
-
# indicate their installation locations.
|
73 |
-
|
74 |
-
self.cc = "bcc32.exe"
|
75 |
-
self.linker = "ilink32.exe"
|
76 |
-
self.lib = "tlib.exe"
|
77 |
-
|
78 |
-
self.preprocess_options = None
|
79 |
-
self.compile_options = ['/tWM', '/O2', '/q', '/g0']
|
80 |
-
self.compile_options_debug = ['/tWM', '/Od', '/q', '/g0']
|
81 |
-
|
82 |
-
self.ldflags_shared = ['/Tpd', '/Gn', '/q', '/x']
|
83 |
-
self.ldflags_shared_debug = ['/Tpd', '/Gn', '/q', '/x']
|
84 |
-
self.ldflags_static = []
|
85 |
-
self.ldflags_exe = ['/Gn', '/q', '/x']
|
86 |
-
self.ldflags_exe_debug = ['/Gn', '/q', '/x', '/r']
|
87 |
-
|
88 |
-
# -- Worker methods ------------------------------------------------
|
89 |
-
|
90 |
-
def compile( # noqa: C901
|
91 |
-
self,
|
92 |
-
sources,
|
93 |
-
output_dir=None,
|
94 |
-
macros=None,
|
95 |
-
include_dirs=None,
|
96 |
-
debug=0,
|
97 |
-
extra_preargs=None,
|
98 |
-
extra_postargs=None,
|
99 |
-
depends=None,
|
100 |
-
):
|
101 |
-
|
102 |
-
macros, objects, extra_postargs, pp_opts, build = self._setup_compile(
|
103 |
-
output_dir, macros, include_dirs, sources, depends, extra_postargs
|
104 |
-
)
|
105 |
-
compile_opts = extra_preargs or []
|
106 |
-
compile_opts.append('-c')
|
107 |
-
if debug:
|
108 |
-
compile_opts.extend(self.compile_options_debug)
|
109 |
-
else:
|
110 |
-
compile_opts.extend(self.compile_options)
|
111 |
-
|
112 |
-
for obj in objects:
|
113 |
-
try:
|
114 |
-
src, ext = build[obj]
|
115 |
-
except KeyError:
|
116 |
-
continue
|
117 |
-
# XXX why do the normpath here?
|
118 |
-
src = os.path.normpath(src)
|
119 |
-
obj = os.path.normpath(obj)
|
120 |
-
# XXX _setup_compile() did a mkpath() too but before the normpath.
|
121 |
-
# Is it possible to skip the normpath?
|
122 |
-
self.mkpath(os.path.dirname(obj))
|
123 |
-
|
124 |
-
if ext == '.res':
|
125 |
-
# This is already a binary file -- skip it.
|
126 |
-
continue # the 'for' loop
|
127 |
-
if ext == '.rc':
|
128 |
-
# This needs to be compiled to a .res file -- do it now.
|
129 |
-
try:
|
130 |
-
self.spawn(["brcc32", "-fo", obj, src])
|
131 |
-
except DistutilsExecError as msg:
|
132 |
-
raise CompileError(msg)
|
133 |
-
continue # the 'for' loop
|
134 |
-
|
135 |
-
# The next two are both for the real compiler.
|
136 |
-
if ext in self._c_extensions:
|
137 |
-
input_opt = ""
|
138 |
-
elif ext in self._cpp_extensions:
|
139 |
-
input_opt = "-P"
|
140 |
-
else:
|
141 |
-
# Unknown file type -- no extra options. The compiler
|
142 |
-
# will probably fail, but let it just in case this is a
|
143 |
-
# file the compiler recognizes even if we don't.
|
144 |
-
input_opt = ""
|
145 |
-
|
146 |
-
output_opt = "-o" + obj
|
147 |
-
|
148 |
-
# Compiler command line syntax is: "bcc32 [options] file(s)".
|
149 |
-
# Note that the source file names must appear at the end of
|
150 |
-
# the command line.
|
151 |
-
try:
|
152 |
-
self.spawn(
|
153 |
-
[self.cc]
|
154 |
-
+ compile_opts
|
155 |
-
+ pp_opts
|
156 |
-
+ [input_opt, output_opt]
|
157 |
-
+ extra_postargs
|
158 |
-
+ [src]
|
159 |
-
)
|
160 |
-
except DistutilsExecError as msg:
|
161 |
-
raise CompileError(msg)
|
162 |
-
|
163 |
-
return objects
|
164 |
-
|
165 |
-
# compile ()
|
166 |
-
|
167 |
-
def create_static_lib(
|
168 |
-
self, objects, output_libname, output_dir=None, debug=0, target_lang=None
|
169 |
-
):
|
170 |
-
|
171 |
-
(objects, output_dir) = self._fix_object_args(objects, output_dir)
|
172 |
-
output_filename = self.library_filename(output_libname, output_dir=output_dir)
|
173 |
-
|
174 |
-
if self._need_link(objects, output_filename):
|
175 |
-
lib_args = [output_filename, '/u'] + objects
|
176 |
-
if debug:
|
177 |
-
pass # XXX what goes here?
|
178 |
-
try:
|
179 |
-
self.spawn([self.lib] + lib_args)
|
180 |
-
except DistutilsExecError as msg:
|
181 |
-
raise LibError(msg)
|
182 |
-
else:
|
183 |
-
log.debug("skipping %s (up-to-date)", output_filename)
|
184 |
-
|
185 |
-
# create_static_lib ()
|
186 |
-
|
187 |
-
def link( # noqa: C901
|
188 |
-
self,
|
189 |
-
target_desc,
|
190 |
-
objects,
|
191 |
-
output_filename,
|
192 |
-
output_dir=None,
|
193 |
-
libraries=None,
|
194 |
-
library_dirs=None,
|
195 |
-
runtime_library_dirs=None,
|
196 |
-
export_symbols=None,
|
197 |
-
debug=0,
|
198 |
-
extra_preargs=None,
|
199 |
-
extra_postargs=None,
|
200 |
-
build_temp=None,
|
201 |
-
target_lang=None,
|
202 |
-
):
|
203 |
-
|
204 |
-
# XXX this ignores 'build_temp'! should follow the lead of
|
205 |
-
# msvccompiler.py
|
206 |
-
|
207 |
-
(objects, output_dir) = self._fix_object_args(objects, output_dir)
|
208 |
-
(libraries, library_dirs, runtime_library_dirs) = self._fix_lib_args(
|
209 |
-
libraries, library_dirs, runtime_library_dirs
|
210 |
-
)
|
211 |
-
|
212 |
-
if runtime_library_dirs:
|
213 |
-
log.warn(
|
214 |
-
"I don't know what to do with 'runtime_library_dirs': %s",
|
215 |
-
str(runtime_library_dirs),
|
216 |
-
)
|
217 |
-
|
218 |
-
if output_dir is not None:
|
219 |
-
output_filename = os.path.join(output_dir, output_filename)
|
220 |
-
|
221 |
-
if self._need_link(objects, output_filename):
|
222 |
-
|
223 |
-
# Figure out linker args based on type of target.
|
224 |
-
if target_desc == CCompiler.EXECUTABLE:
|
225 |
-
startup_obj = 'c0w32'
|
226 |
-
if debug:
|
227 |
-
ld_args = self.ldflags_exe_debug[:]
|
228 |
-
else:
|
229 |
-
ld_args = self.ldflags_exe[:]
|
230 |
-
else:
|
231 |
-
startup_obj = 'c0d32'
|
232 |
-
if debug:
|
233 |
-
ld_args = self.ldflags_shared_debug[:]
|
234 |
-
else:
|
235 |
-
ld_args = self.ldflags_shared[:]
|
236 |
-
|
237 |
-
# Create a temporary exports file for use by the linker
|
238 |
-
if export_symbols is None:
|
239 |
-
def_file = ''
|
240 |
-
else:
|
241 |
-
head, tail = os.path.split(output_filename)
|
242 |
-
modname, ext = os.path.splitext(tail)
|
243 |
-
temp_dir = os.path.dirname(objects[0]) # preserve tree structure
|
244 |
-
def_file = os.path.join(temp_dir, '%s.def' % modname)
|
245 |
-
contents = ['EXPORTS']
|
246 |
-
for sym in export_symbols or []:
|
247 |
-
contents.append(' {}=_{}'.format(sym, sym))
|
248 |
-
self.execute(write_file, (def_file, contents), "writing %s" % def_file)
|
249 |
-
|
250 |
-
# Borland C++ has problems with '/' in paths
|
251 |
-
objects2 = map(os.path.normpath, objects)
|
252 |
-
# split objects in .obj and .res files
|
253 |
-
# Borland C++ needs them at different positions in the command line
|
254 |
-
objects = [startup_obj]
|
255 |
-
resources = []
|
256 |
-
for file in objects2:
|
257 |
-
(base, ext) = os.path.splitext(os.path.normcase(file))
|
258 |
-
if ext == '.res':
|
259 |
-
resources.append(file)
|
260 |
-
else:
|
261 |
-
objects.append(file)
|
262 |
-
|
263 |
-
for ell in library_dirs:
|
264 |
-
ld_args.append("/L%s" % os.path.normpath(ell))
|
265 |
-
ld_args.append("/L.") # we sometimes use relative paths
|
266 |
-
|
267 |
-
# list of object files
|
268 |
-
ld_args.extend(objects)
|
269 |
-
|
270 |
-
# XXX the command-line syntax for Borland C++ is a bit wonky;
|
271 |
-
# certain filenames are jammed together in one big string, but
|
272 |
-
# comma-delimited. This doesn't mesh too well with the
|
273 |
-
# Unix-centric attitude (with a DOS/Windows quoting hack) of
|
274 |
-
# 'spawn()', so constructing the argument list is a bit
|
275 |
-
# awkward. Note that doing the obvious thing and jamming all
|
276 |
-
# the filenames and commas into one argument would be wrong,
|
277 |
-
# because 'spawn()' would quote any filenames with spaces in
|
278 |
-
# them. Arghghh!. Apparently it works fine as coded...
|
279 |
-
|
280 |
-
# name of dll/exe file
|
281 |
-
ld_args.extend([',', output_filename])
|
282 |
-
# no map file and start libraries
|
283 |
-
ld_args.append(',,')
|
284 |
-
|
285 |
-
for lib in libraries:
|
286 |
-
# see if we find it and if there is a bcpp specific lib
|
287 |
-
# (xxx_bcpp.lib)
|
288 |
-
libfile = self.find_library_file(library_dirs, lib, debug)
|
289 |
-
if libfile is None:
|
290 |
-
ld_args.append(lib)
|
291 |
-
# probably a BCPP internal library -- don't warn
|
292 |
-
else:
|
293 |
-
# full name which prefers bcpp_xxx.lib over xxx.lib
|
294 |
-
ld_args.append(libfile)
|
295 |
-
|
296 |
-
# some default libraries
|
297 |
-
ld_args.append('import32')
|
298 |
-
ld_args.append('cw32mt')
|
299 |
-
|
300 |
-
# def file for export symbols
|
301 |
-
ld_args.extend([',', def_file])
|
302 |
-
# add resource files
|
303 |
-
ld_args.append(',')
|
304 |
-
ld_args.extend(resources)
|
305 |
-
|
306 |
-
if extra_preargs:
|
307 |
-
ld_args[:0] = extra_preargs
|
308 |
-
if extra_postargs:
|
309 |
-
ld_args.extend(extra_postargs)
|
310 |
-
|
311 |
-
self.mkpath(os.path.dirname(output_filename))
|
312 |
-
try:
|
313 |
-
self.spawn([self.linker] + ld_args)
|
314 |
-
except DistutilsExecError as msg:
|
315 |
-
raise LinkError(msg)
|
316 |
-
|
317 |
-
else:
|
318 |
-
log.debug("skipping %s (up-to-date)", output_filename)
|
319 |
-
|
320 |
-
# link ()
|
321 |
-
|
322 |
-
# -- Miscellaneous methods -----------------------------------------
|
323 |
-
|
324 |
-
def find_library_file(self, dirs, lib, debug=0):
|
325 |
-
# List of effective library names to try, in order of preference:
|
326 |
-
# xxx_bcpp.lib is better than xxx.lib
|
327 |
-
# and xxx_d.lib is better than xxx.lib if debug is set
|
328 |
-
#
|
329 |
-
# The "_bcpp" suffix is to handle a Python installation for people
|
330 |
-
# with multiple compilers (primarily Distutils hackers, I suspect
|
331 |
-
# ;-). The idea is they'd have one static library for each
|
332 |
-
# compiler they care about, since (almost?) every Windows compiler
|
333 |
-
# seems to have a different format for static libraries.
|
334 |
-
if debug:
|
335 |
-
dlib = lib + "_d"
|
336 |
-
try_names = (dlib + "_bcpp", lib + "_bcpp", dlib, lib)
|
337 |
-
else:
|
338 |
-
try_names = (lib + "_bcpp", lib)
|
339 |
-
|
340 |
-
for dir in dirs:
|
341 |
-
for name in try_names:
|
342 |
-
libfile = os.path.join(dir, self.library_filename(name))
|
343 |
-
if os.path.exists(libfile):
|
344 |
-
return libfile
|
345 |
-
else:
|
346 |
-
# Oops, didn't find it in *any* of 'dirs'
|
347 |
-
return None
|
348 |
-
|
349 |
-
# overwrite the one from CCompiler to support rc and res-files
|
350 |
-
def object_filenames(self, source_filenames, strip_dir=0, output_dir=''):
|
351 |
-
if output_dir is None:
|
352 |
-
output_dir = ''
|
353 |
-
obj_names = []
|
354 |
-
for src_name in source_filenames:
|
355 |
-
# use normcase to make sure '.rc' is really '.rc' and not '.RC'
|
356 |
-
(base, ext) = os.path.splitext(os.path.normcase(src_name))
|
357 |
-
if ext not in (self.src_extensions + ['.rc', '.res']):
|
358 |
-
raise UnknownFileError(
|
359 |
-
"unknown file type '{}' (from '{}')".format(ext, src_name)
|
360 |
-
)
|
361 |
-
if strip_dir:
|
362 |
-
base = os.path.basename(base)
|
363 |
-
if ext == '.res':
|
364 |
-
# these can go unchanged
|
365 |
-
obj_names.append(os.path.join(output_dir, base + ext))
|
366 |
-
elif ext == '.rc':
|
367 |
-
# these need to be compiled to .res-files
|
368 |
-
obj_names.append(os.path.join(output_dir, base + '.res'))
|
369 |
-
else:
|
370 |
-
obj_names.append(os.path.join(output_dir, base + self.obj_extension))
|
371 |
-
return obj_names
|
372 |
-
|
373 |
-
# object_filenames ()
|
374 |
-
|
375 |
-
def preprocess(
|
376 |
-
self,
|
377 |
-
source,
|
378 |
-
output_file=None,
|
379 |
-
macros=None,
|
380 |
-
include_dirs=None,
|
381 |
-
extra_preargs=None,
|
382 |
-
extra_postargs=None,
|
383 |
-
):
|
384 |
-
|
385 |
-
(_, macros, include_dirs) = self._fix_compile_args(None, macros, include_dirs)
|
386 |
-
pp_opts = gen_preprocess_options(macros, include_dirs)
|
387 |
-
pp_args = ['cpp32.exe'] + pp_opts
|
388 |
-
if output_file is not None:
|
389 |
-
pp_args.append('-o' + output_file)
|
390 |
-
if extra_preargs:
|
391 |
-
pp_args[:0] = extra_preargs
|
392 |
-
if extra_postargs:
|
393 |
-
pp_args.extend(extra_postargs)
|
394 |
-
pp_args.append(source)
|
395 |
-
|
396 |
-
# We need to preprocess: either we're being forced to, or the
|
397 |
-
# source file is newer than the target (or the target doesn't
|
398 |
-
# exist).
|
399 |
-
if self.force or output_file is None or newer(source, output_file):
|
400 |
-
if output_file:
|
401 |
-
self.mkpath(os.path.dirname(output_file))
|
402 |
-
try:
|
403 |
-
self.spawn(pp_args)
|
404 |
-
except DistutilsExecError as msg:
|
405 |
-
print(msg)
|
406 |
-
raise CompileError(msg)
|
407 |
-
|
408 |
-
# preprocess()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Audio-AGI/WavJourney/examples/examples.py
DELETED
@@ -1,87 +0,0 @@
|
|
1 |
-
|
2 |
-
example1 = {
|
3 |
-
'text': "An introduction to AI-assisted audio content creation.",
|
4 |
-
'table_script': """
|
5 |
-
| Audio Type | Layout | ID | Character | Action | Volume | Description | Length |
|
6 |
-
|--------------|------------|----|-----------|--------|--------|------------------------------------------------------------------|--------|
|
7 |
-
| music | background | 1 | N/A | begin | -35 | Inspirational technology-themed music | Auto |
|
8 |
-
| speech | foreground | N/A| Narrator | N/A | -15 | Welcome to the future of audio content creation. | Auto |
|
9 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Digital startup sound | 2 |
|
10 |
-
| speech | foreground | N/A| Narrator | N/A | -15 | With evolving technology, we are introducing AI-assisted tools for pristine audio production. | Auto |
|
11 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Keyboard typing noise | 3 |
|
12 |
-
| speech | foreground | N/A| Narrator | N/A | -15 | Imagine crafting audio content with the power of AI at your fingertips. | Auto |
|
13 |
-
| sound_effect | background | 2 | N/A | begin | -35 | Ambiance of a busy control room | Auto |
|
14 |
-
| speech | foreground | N/A| Narrator | N/A | -15 | Enhanced quality, efficient production and limitless creativity, all under one roof. | Auto |
|
15 |
-
| sound_effect | background | 2 | N/A | end | N/A | N/A | Auto |
|
16 |
-
| speech | foreground | N/A| Narrator | N/A | -15 | Unleash your potential with AI-assisted audio content creation. | Auto |
|
17 |
-
| music | background | 1 | N/A | end | N/A | N/A | Auto |
|
18 |
-
|
19 |
-
""",
|
20 |
-
'table_voice': """
|
21 |
-
| Character | Voice |
|
22 |
-
|-------------|-----------|
|
23 |
-
| Narrator | News_Male_En |
|
24 |
-
|
25 |
-
""",
|
26 |
-
'wav_file': 'examples/1.mp4',
|
27 |
-
}
|
28 |
-
|
29 |
-
example2 = {
|
30 |
-
'text': "A couple dating in a cafe.",
|
31 |
-
'table_script': """
|
32 |
-
| Audio Type | Layout | ID | Character | Action | Volume | Description | Length |
|
33 |
-
|--------------|------------|----|-----------|--------|--------|-----------------------------------------------|--------|
|
34 |
-
| sound_effect | background | 1 | N/A | begin | -35 | Soft chattering in a cafe | Auto |
|
35 |
-
| sound_effect | background | 2 | N/A | begin | -38 | Coffee brewing noises | Auto |
|
36 |
-
| music | background | 3 | N/A | begin | -35 | Soft jazz playing in the background | Auto |
|
37 |
-
| speech | foreground | N/A| Man | N/A | -15 | It’s really nice to finally get out and relax a little, isn’t it? | Auto |
|
38 |
-
| speech | foreground | N/A| Woman | N/A | -15 | I know, right? We should do this more often. | Auto |
|
39 |
-
| sound_effect | background | 2 | N/A | end | N/A | N/A | Auto |
|
40 |
-
| speech | foreground | N/A| Man | N/A | -15 | Here’s your coffee, just as you like it. | Auto |
|
41 |
-
| speech | foreground | N/A| Woman | N/A | -15 | Thank you, it smells wonderful. | Auto |
|
42 |
-
| music | background | 3 | N/A | end | N/A | N/A | Auto |
|
43 |
-
| sound_effect | background | 1 | N/A | end | N/A | N/A | Auto |
|
44 |
-
|
45 |
-
""",
|
46 |
-
'table_voice': """
|
47 |
-
| Character | Voice |
|
48 |
-
|-------------|-----------|
|
49 |
-
| Man | Male1_En |
|
50 |
-
| Woman | Female1_En |
|
51 |
-
|
52 |
-
""",
|
53 |
-
'wav_file': 'examples/2.mp4',
|
54 |
-
}
|
55 |
-
|
56 |
-
|
57 |
-
example3 = {
|
58 |
-
'text': "A child is participating in a farting contest.",
|
59 |
-
'table_script': """
|
60 |
-
| Audio Type | Layout | ID | Character | Action | Volume | Description | Length |
|
61 |
-
|--------------|------------|----|-----------|--------|--------|------------------------------------------------------|--------|
|
62 |
-
| sound_effect | background | 1 | N/A | begin | -35 | Outdoor park ambiance, people chattering | Auto |
|
63 |
-
| music | background | 2 | N/A | begin | -35 | Light comedy theme music, quirky | Auto |
|
64 |
-
| speech | foreground | N/A| Host | N/A | -15 | Welcome to the annual Fart Competition. | Auto |
|
65 |
-
| speech | foreground | N/A| Host | N/A | -15 | Now, let’s welcome our youngest participant. | Auto |
|
66 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Clapping sound | 2 |
|
67 |
-
| speech | foreground | N/A| Child | N/A | -15 | Hi, I’m excited to be here. | Auto |
|
68 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Short, cartoonish duration of a fart sound | 4 |
|
69 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Audience laughing and applauding | 2 |
|
70 |
-
| speech | foreground | N/A| Host | N/A | -15 | Wow, that was impressive! Let’s give another round of applause! | Auto |
|
71 |
-
| sound_effect | foreground | N/A| N/A | N/A | -35 | Audience clapping and cheering | 3 |
|
72 |
-
| music | background | 2 | N/A | end | N/A | N/A | Auto |
|
73 |
-
| sound_effect | background | 1 | N/A | end | N/A | N/A | Auto |
|
74 |
-
""",
|
75 |
-
'table_voice': """
|
76 |
-
| Character | Voice |
|
77 |
-
|-------------|-----------|
|
78 |
-
| Host | Male1_En |
|
79 |
-
| Child | Child_En |
|
80 |
-
|
81 |
-
""",
|
82 |
-
'wav_file': 'examples/3.mp4',
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
examples = [example1, example2, example3]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awesimo/jojogan/e4e/criteria/id_loss.py
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch import nn
|
3 |
-
from configs.paths_config import model_paths
|
4 |
-
from models.encoders.model_irse import Backbone
|
5 |
-
|
6 |
-
|
7 |
-
class IDLoss(nn.Module):
|
8 |
-
def __init__(self):
|
9 |
-
super(IDLoss, self).__init__()
|
10 |
-
print('Loading ResNet ArcFace')
|
11 |
-
self.facenet = Backbone(input_size=112, num_layers=50, drop_ratio=0.6, mode='ir_se')
|
12 |
-
self.facenet.load_state_dict(torch.load(model_paths['ir_se50']))
|
13 |
-
self.face_pool = torch.nn.AdaptiveAvgPool2d((112, 112))
|
14 |
-
self.facenet.eval()
|
15 |
-
for module in [self.facenet, self.face_pool]:
|
16 |
-
for param in module.parameters():
|
17 |
-
param.requires_grad = False
|
18 |
-
|
19 |
-
def extract_feats(self, x):
|
20 |
-
x = x[:, :, 35:223, 32:220] # Crop interesting region
|
21 |
-
x = self.face_pool(x)
|
22 |
-
x_feats = self.facenet(x)
|
23 |
-
return x_feats
|
24 |
-
|
25 |
-
def forward(self, y_hat, y, x):
|
26 |
-
n_samples = x.shape[0]
|
27 |
-
x_feats = self.extract_feats(x)
|
28 |
-
y_feats = self.extract_feats(y) # Otherwise use the feature from there
|
29 |
-
y_hat_feats = self.extract_feats(y_hat)
|
30 |
-
y_feats = y_feats.detach()
|
31 |
-
loss = 0
|
32 |
-
sim_improvement = 0
|
33 |
-
id_logs = []
|
34 |
-
count = 0
|
35 |
-
for i in range(n_samples):
|
36 |
-
diff_target = y_hat_feats[i].dot(y_feats[i])
|
37 |
-
diff_input = y_hat_feats[i].dot(x_feats[i])
|
38 |
-
diff_views = y_feats[i].dot(x_feats[i])
|
39 |
-
id_logs.append({'diff_target': float(diff_target),
|
40 |
-
'diff_input': float(diff_input),
|
41 |
-
'diff_views': float(diff_views)})
|
42 |
-
loss += 1 - diff_target
|
43 |
-
id_diff = float(diff_target) - float(diff_views)
|
44 |
-
sim_improvement += id_diff
|
45 |
-
count += 1
|
46 |
-
|
47 |
-
return loss / count, sim_improvement / count, id_logs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/tools/torchgate/torchgate.py
DELETED
@@ -1,264 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch.nn.functional import conv1d, conv2d
|
3 |
-
from typing import Union, Optional
|
4 |
-
from .utils import linspace, temperature_sigmoid, amp_to_db
|
5 |
-
|
6 |
-
|
7 |
-
class TorchGate(torch.nn.Module):
|
8 |
-
"""
|
9 |
-
A PyTorch module that applies a spectral gate to an input signal.
|
10 |
-
|
11 |
-
Arguments:
|
12 |
-
sr {int} -- Sample rate of the input signal.
|
13 |
-
nonstationary {bool} -- Whether to use non-stationary or stationary masking (default: {False}).
|
14 |
-
n_std_thresh_stationary {float} -- Number of standard deviations above mean to threshold noise for
|
15 |
-
stationary masking (default: {1.5}).
|
16 |
-
n_thresh_nonstationary {float} -- Number of multiplies above smoothed magnitude spectrogram. for
|
17 |
-
non-stationary masking (default: {1.3}).
|
18 |
-
temp_coeff_nonstationary {float} -- Temperature coefficient for non-stationary masking (default: {0.1}).
|
19 |
-
n_movemean_nonstationary {int} -- Number of samples for moving average smoothing in non-stationary masking
|
20 |
-
(default: {20}).
|
21 |
-
prop_decrease {float} -- Proportion to decrease signal by where the mask is zero (default: {1.0}).
|
22 |
-
n_fft {int} -- Size of FFT for STFT (default: {1024}).
|
23 |
-
win_length {[int]} -- Window length for STFT. If None, defaults to `n_fft` (default: {None}).
|
24 |
-
hop_length {[int]} -- Hop length for STFT. If None, defaults to `win_length` // 4 (default: {None}).
|
25 |
-
freq_mask_smooth_hz {float} -- Frequency smoothing width for mask (in Hz). If None, no smoothing is applied
|
26 |
-
(default: {500}).
|
27 |
-
time_mask_smooth_ms {float} -- Time smoothing width for mask (in ms). If None, no smoothing is applied
|
28 |
-
(default: {50}).
|
29 |
-
"""
|
30 |
-
|
31 |
-
@torch.no_grad()
|
32 |
-
def __init__(
|
33 |
-
self,
|
34 |
-
sr: int,
|
35 |
-
nonstationary: bool = False,
|
36 |
-
n_std_thresh_stationary: float = 1.5,
|
37 |
-
n_thresh_nonstationary: float = 1.3,
|
38 |
-
temp_coeff_nonstationary: float = 0.1,
|
39 |
-
n_movemean_nonstationary: int = 20,
|
40 |
-
prop_decrease: float = 1.0,
|
41 |
-
n_fft: int = 1024,
|
42 |
-
win_length: bool = None,
|
43 |
-
hop_length: int = None,
|
44 |
-
freq_mask_smooth_hz: float = 500,
|
45 |
-
time_mask_smooth_ms: float = 50,
|
46 |
-
):
|
47 |
-
super().__init__()
|
48 |
-
|
49 |
-
# General Params
|
50 |
-
self.sr = sr
|
51 |
-
self.nonstationary = nonstationary
|
52 |
-
assert 0.0 <= prop_decrease <= 1.0
|
53 |
-
self.prop_decrease = prop_decrease
|
54 |
-
|
55 |
-
# STFT Params
|
56 |
-
self.n_fft = n_fft
|
57 |
-
self.win_length = self.n_fft if win_length is None else win_length
|
58 |
-
self.hop_length = self.win_length // 4 if hop_length is None else hop_length
|
59 |
-
|
60 |
-
# Stationary Params
|
61 |
-
self.n_std_thresh_stationary = n_std_thresh_stationary
|
62 |
-
|
63 |
-
# Non-Stationary Params
|
64 |
-
self.temp_coeff_nonstationary = temp_coeff_nonstationary
|
65 |
-
self.n_movemean_nonstationary = n_movemean_nonstationary
|
66 |
-
self.n_thresh_nonstationary = n_thresh_nonstationary
|
67 |
-
|
68 |
-
# Smooth Mask Params
|
69 |
-
self.freq_mask_smooth_hz = freq_mask_smooth_hz
|
70 |
-
self.time_mask_smooth_ms = time_mask_smooth_ms
|
71 |
-
self.register_buffer("smoothing_filter", self._generate_mask_smoothing_filter())
|
72 |
-
|
73 |
-
@torch.no_grad()
|
74 |
-
def _generate_mask_smoothing_filter(self) -> Union[torch.Tensor, None]:
|
75 |
-
"""
|
76 |
-
A PyTorch module that applies a spectral gate to an input signal using the STFT.
|
77 |
-
|
78 |
-
Returns:
|
79 |
-
smoothing_filter (torch.Tensor): a 2D tensor representing the smoothing filter,
|
80 |
-
with shape (n_grad_freq, n_grad_time), where n_grad_freq is the number of frequency
|
81 |
-
bins to smooth and n_grad_time is the number of time frames to smooth.
|
82 |
-
If both self.freq_mask_smooth_hz and self.time_mask_smooth_ms are None, returns None.
|
83 |
-
"""
|
84 |
-
if self.freq_mask_smooth_hz is None and self.time_mask_smooth_ms is None:
|
85 |
-
return None
|
86 |
-
|
87 |
-
n_grad_freq = (
|
88 |
-
1
|
89 |
-
if self.freq_mask_smooth_hz is None
|
90 |
-
else int(self.freq_mask_smooth_hz / (self.sr / (self.n_fft / 2)))
|
91 |
-
)
|
92 |
-
if n_grad_freq < 1:
|
93 |
-
raise ValueError(
|
94 |
-
f"freq_mask_smooth_hz needs to be at least {int((self.sr / (self._n_fft / 2)))} Hz"
|
95 |
-
)
|
96 |
-
|
97 |
-
n_grad_time = (
|
98 |
-
1
|
99 |
-
if self.time_mask_smooth_ms is None
|
100 |
-
else int(self.time_mask_smooth_ms / ((self.hop_length / self.sr) * 1000))
|
101 |
-
)
|
102 |
-
if n_grad_time < 1:
|
103 |
-
raise ValueError(
|
104 |
-
f"time_mask_smooth_ms needs to be at least {int((self.hop_length / self.sr) * 1000)} ms"
|
105 |
-
)
|
106 |
-
|
107 |
-
if n_grad_time == 1 and n_grad_freq == 1:
|
108 |
-
return None
|
109 |
-
|
110 |
-
v_f = torch.cat(
|
111 |
-
[
|
112 |
-
linspace(0, 1, n_grad_freq + 1, endpoint=False),
|
113 |
-
linspace(1, 0, n_grad_freq + 2),
|
114 |
-
]
|
115 |
-
)[1:-1]
|
116 |
-
v_t = torch.cat(
|
117 |
-
[
|
118 |
-
linspace(0, 1, n_grad_time + 1, endpoint=False),
|
119 |
-
linspace(1, 0, n_grad_time + 2),
|
120 |
-
]
|
121 |
-
)[1:-1]
|
122 |
-
smoothing_filter = torch.outer(v_f, v_t).unsqueeze(0).unsqueeze(0)
|
123 |
-
|
124 |
-
return smoothing_filter / smoothing_filter.sum()
|
125 |
-
|
126 |
-
@torch.no_grad()
|
127 |
-
def _stationary_mask(
|
128 |
-
self, X_db: torch.Tensor, xn: Optional[torch.Tensor] = None
|
129 |
-
) -> torch.Tensor:
|
130 |
-
"""
|
131 |
-
Computes a stationary binary mask to filter out noise in a log-magnitude spectrogram.
|
132 |
-
|
133 |
-
Arguments:
|
134 |
-
X_db (torch.Tensor): 2D tensor of shape (frames, freq_bins) containing the log-magnitude spectrogram.
|
135 |
-
xn (torch.Tensor): 1D tensor containing the audio signal corresponding to X_db.
|
136 |
-
|
137 |
-
Returns:
|
138 |
-
sig_mask (torch.Tensor): Binary mask of the same shape as X_db, where values greater than the threshold
|
139 |
-
are set to 1, and the rest are set to 0.
|
140 |
-
"""
|
141 |
-
if xn is not None:
|
142 |
-
XN = torch.stft(
|
143 |
-
xn,
|
144 |
-
n_fft=self.n_fft,
|
145 |
-
hop_length=self.hop_length,
|
146 |
-
win_length=self.win_length,
|
147 |
-
return_complex=True,
|
148 |
-
pad_mode="constant",
|
149 |
-
center=True,
|
150 |
-
window=torch.hann_window(self.win_length).to(xn.device),
|
151 |
-
)
|
152 |
-
|
153 |
-
XN_db = amp_to_db(XN).to(dtype=X_db.dtype)
|
154 |
-
else:
|
155 |
-
XN_db = X_db
|
156 |
-
|
157 |
-
# calculate mean and standard deviation along the frequency axis
|
158 |
-
std_freq_noise, mean_freq_noise = torch.std_mean(XN_db, dim=-1)
|
159 |
-
|
160 |
-
# compute noise threshold
|
161 |
-
noise_thresh = mean_freq_noise + std_freq_noise * self.n_std_thresh_stationary
|
162 |
-
|
163 |
-
# create binary mask by thresholding the spectrogram
|
164 |
-
sig_mask = X_db > noise_thresh.unsqueeze(2)
|
165 |
-
return sig_mask
|
166 |
-
|
167 |
-
@torch.no_grad()
|
168 |
-
def _nonstationary_mask(self, X_abs: torch.Tensor) -> torch.Tensor:
|
169 |
-
"""
|
170 |
-
Computes a non-stationary binary mask to filter out noise in a log-magnitude spectrogram.
|
171 |
-
|
172 |
-
Arguments:
|
173 |
-
X_abs (torch.Tensor): 2D tensor of shape (frames, freq_bins) containing the magnitude spectrogram.
|
174 |
-
|
175 |
-
Returns:
|
176 |
-
sig_mask (torch.Tensor): Binary mask of the same shape as X_abs, where values greater than the threshold
|
177 |
-
are set to 1, and the rest are set to 0.
|
178 |
-
"""
|
179 |
-
X_smoothed = (
|
180 |
-
conv1d(
|
181 |
-
X_abs.reshape(-1, 1, X_abs.shape[-1]),
|
182 |
-
torch.ones(
|
183 |
-
self.n_movemean_nonstationary,
|
184 |
-
dtype=X_abs.dtype,
|
185 |
-
device=X_abs.device,
|
186 |
-
).view(1, 1, -1),
|
187 |
-
padding="same",
|
188 |
-
).view(X_abs.shape)
|
189 |
-
/ self.n_movemean_nonstationary
|
190 |
-
)
|
191 |
-
|
192 |
-
# Compute slowness ratio and apply temperature sigmoid
|
193 |
-
slowness_ratio = (X_abs - X_smoothed) / (X_smoothed + 1e-6)
|
194 |
-
sig_mask = temperature_sigmoid(
|
195 |
-
slowness_ratio, self.n_thresh_nonstationary, self.temp_coeff_nonstationary
|
196 |
-
)
|
197 |
-
|
198 |
-
return sig_mask
|
199 |
-
|
200 |
-
def forward(
|
201 |
-
self, x: torch.Tensor, xn: Optional[torch.Tensor] = None
|
202 |
-
) -> torch.Tensor:
|
203 |
-
"""
|
204 |
-
Apply the proposed algorithm to the input signal.
|
205 |
-
|
206 |
-
Arguments:
|
207 |
-
x (torch.Tensor): The input audio signal, with shape (batch_size, signal_length).
|
208 |
-
xn (Optional[torch.Tensor]): The noise signal used for stationary noise reduction. If `None`, the input
|
209 |
-
signal is used as the noise signal. Default: `None`.
|
210 |
-
|
211 |
-
Returns:
|
212 |
-
torch.Tensor: The denoised audio signal, with the same shape as the input signal.
|
213 |
-
"""
|
214 |
-
assert x.ndim == 2
|
215 |
-
if x.shape[-1] < self.win_length * 2:
|
216 |
-
raise Exception(f"x must be bigger than {self.win_length * 2}")
|
217 |
-
|
218 |
-
assert xn is None or xn.ndim == 1 or xn.ndim == 2
|
219 |
-
if xn is not None and xn.shape[-1] < self.win_length * 2:
|
220 |
-
raise Exception(f"xn must be bigger than {self.win_length * 2}")
|
221 |
-
|
222 |
-
# Compute short-time Fourier transform (STFT)
|
223 |
-
X = torch.stft(
|
224 |
-
x,
|
225 |
-
n_fft=self.n_fft,
|
226 |
-
hop_length=self.hop_length,
|
227 |
-
win_length=self.win_length,
|
228 |
-
return_complex=True,
|
229 |
-
pad_mode="constant",
|
230 |
-
center=True,
|
231 |
-
window=torch.hann_window(self.win_length).to(x.device),
|
232 |
-
)
|
233 |
-
|
234 |
-
# Compute signal mask based on stationary or nonstationary assumptions
|
235 |
-
if self.nonstationary:
|
236 |
-
sig_mask = self._nonstationary_mask(X.abs())
|
237 |
-
else:
|
238 |
-
sig_mask = self._stationary_mask(amp_to_db(X), xn)
|
239 |
-
|
240 |
-
# Propagate decrease in signal power
|
241 |
-
sig_mask = self.prop_decrease * (sig_mask * 1.0 - 1.0) + 1.0
|
242 |
-
|
243 |
-
# Smooth signal mask with 2D convolution
|
244 |
-
if self.smoothing_filter is not None:
|
245 |
-
sig_mask = conv2d(
|
246 |
-
sig_mask.unsqueeze(1),
|
247 |
-
self.smoothing_filter.to(sig_mask.dtype),
|
248 |
-
padding="same",
|
249 |
-
)
|
250 |
-
|
251 |
-
# Apply signal mask to STFT magnitude and phase components
|
252 |
-
Y = X * sig_mask.squeeze(1)
|
253 |
-
|
254 |
-
# Inverse STFT to obtain time-domain signal
|
255 |
-
y = torch.istft(
|
256 |
-
Y,
|
257 |
-
n_fft=self.n_fft,
|
258 |
-
hop_length=self.hop_length,
|
259 |
-
win_length=self.win_length,
|
260 |
-
center=True,
|
261 |
-
window=torch.hann_window(self.win_length).to(Y.device),
|
262 |
-
)
|
263 |
-
|
264 |
-
return y.to(dtype=x.dtype)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/9 Yukle Apps.md
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>9apps yukle: Cómo descargar y usar la mejor tienda de aplicaciones para Android</h1>
|
3 |
-
<p>Si usted está buscando una manera de descubrir y descargar las mejores aplicaciones y juegos para su dispositivo Android, es posible que desee probar 9apps yukle. Esta es una tienda de aplicaciones potente y versátil que le ofrece una amplia gama de aplicaciones útiles, desde el entretenimiento a la productividad, desde las redes sociales a la educación, y más. En este artículo, te mostraremos qué es 9apps yukle, por qué lo necesitas, cómo descargarlo y usarlo en tu dispositivo Android y cómo ejecutarlo en tu PC o Mac con BlueStacks. También compartiremos contigo algunas de las mejores aplicaciones y juegos que puedes encontrar en 9apps yukle, para que puedas disfrutarlas en tu dispositivo u ordenador. </p>
|
4 |
-
<h2>¿Qué es 9apps yukle y por qué lo necesita</h2>
|
5 |
-
<p>9apps yukle es una aplicación de herramientas desarrollada por 9Apps que sirve como una tienda de aplicaciones alternativa para usuarios de Android. A diferencia de la Google Play Store predeterminada, 9apps yukle le ofrece más opciones, más características y más beneficios cuando se trata de encontrar y descargar aplicaciones y juegos. Estas son algunas de las razones por las que necesita 9apps yukle:</p>
|
6 |
-
<h2>9 yukle apps</h2><br /><p><b><b>Download Zip</b> ››››› <a href="https://bltlly.com/2v6ITi">https://bltlly.com/2v6ITi</a></b></p><br /><br />
|
7 |
-
<ul>
|
8 |
-
<li>Tiene una gran colección de aplicaciones y juegos en varias categorías y géneros, por lo que siempre puede encontrar algo que se adapte a sus necesidades y preferencias. </li>
|
9 |
-
<li> Tiene un sistema de recomendación inteligente que le sugiere las mejores aplicaciones y juegos basados en sus intereses, hábitos y calificaciones. </li>
|
10 |
-
<li> Tiene un proceso de descarga rápido y fácil que le ahorra tiempo y datos. También puede pausar y reanudar sus descargas en cualquier momento. </li>
|
11 |
-
<li> Tiene una interfaz fácil de usar que hace que sea fácil navegar, buscar y administrar sus aplicaciones y juegos. </li>
|
12 |
-
<li> Tiene actualizaciones regulares que mantienen sus aplicaciones y juegos actualizados con las últimas características y correcciones de errores. </li>
|
13 |
-
<li> Tiene una plataforma segura que protege su dispositivo de malware, virus y otras amenazas. </li>
|
14 |
-
</ul>
|
15 |
-
<h2>Cómo descargar e instalar 9apps yukle en tu dispositivo Android</h2>
|
16 |
-
|
17 |
-
<ol>
|
18 |
-
<li>Ir al sitio web oficial de 9apps yukle (https://www.9appsyukle.com/) o escanear el código QR a continuación con la cámara de su dispositivo. </li>
|
19 |
-
<img src="https://www.9appsyukle.com/images/qr-code.png" alt="QR code for 9apps yukle website" width="200" height="200">
|
20 |
-
<li>Toque en el botón "Descargar" para comenzar a descargar el archivo APK de 9apps yukle. </li>
|
21 |
-
<li>Una vez que la descarga se haya completado, abra el archivo APK desde el administrador de archivos o la barra de notificaciones de su dispositivo. </li>
|
22 |
-
<li>Si se le solicita, active la opción "Fuentes desconocidas" en la configuración de su dispositivo para permitir la instalación de aplicaciones desde fuentes distintas de Google Play Store.</ <li>Siga las instrucciones en pantalla para completar la instalación de 9apps yukle. </li>
|
23 |
-
<li>Inicie 9apps yukle desde el cajón de aplicaciones de su dispositivo o la pantalla de inicio. </li>
|
24 |
-
</ol>
|
25 |
-
<p>Felicidades! Usted ha instalado con éxito 9apps yukle en su dispositivo Android. Ahora puedes empezar a explorar y descargar las mejores aplicaciones y juegos para tu dispositivo. </p>
|
26 |
-
<h2>Cómo usar 9apps yukle para encontrar y descargar las mejores aplicaciones y juegos</h2>
|
27 |
-
<p>Usar 9apps yukle para encontrar y descargar las mejores aplicaciones y juegos es muy fácil y divertido. Aquí hay algunos consejos sobre cómo usar 9apps yukle:</p>
|
28 |
-
<ul>
|
29 |
-
<li>En la pantalla de inicio de 9apps yukle, puede ver las aplicaciones y juegos destacados, las últimas actualizaciones, las listas de éxitos y las categorías. Puede deslizar hacia la izquierda o hacia la derecha para navegar a través de ellos. </li>
|
30 |
-
<li> También puede utilizar la barra de búsqueda en la parte superior para escribir el nombre o la palabra clave de la aplicación o juego que está buscando. </li>
|
31 |
-
<li>Cuando encuentre una aplicación o juego que le interese, puede pulsar en ella para ver más detalles, como la descripción, capturas de pantalla, calificaciones, reseñas y aplicaciones y juegos relacionados. </li>
|
32 |
-
<li> Si desea descargar una aplicación o juego, puede tocar en el "Descargar" botón en la parte inferior. También puedes pulsar en el botón "Compartir" para compartir la aplicación o el juego con tus amigos a través de redes sociales, correo electrónico u otras aplicaciones. </li>
|
33 |
-
|
34 |
-
<li>Puede administrar sus aplicaciones y juegos descargados tocando el icono "Aplicaciones" en la esquina inferior izquierda de la pantalla. También puede desinstalar, actualizar o mover sus aplicaciones y juegos desde allí. </li>
|
35 |
-
</ul>
|
36 |
-
<p>¡Eso es todo! Has aprendido a usar 9apps yukle para encontrar y descargar las mejores aplicaciones y juegos para tu dispositivo Android. ¡Disfruta! </p>
|
37 |
-
<h2>Las ventajas de usar 9apps yukle en PC y Mac</h2>
|
38 |
-
<p>Si desea disfrutar de las mejores aplicaciones y juegos en una pantalla más grande, con mejores gráficos, sonido y rendimiento, es posible que desee probar el uso de 9apps yukle en su PC o Mac. Esto es posible con la ayuda de un emulador de Android llamado BlueStacks. BlueStacks es un software que te permite ejecutar aplicaciones y juegos para Android en tu PC o Mac como si fueran aplicaciones nativas. Estas son algunas de las ventajas de usar 9apps yukle en PC y Mac con BlueStacks:</p>
|
39 |
-
<ul>
|
40 |
-
<li> Puede acceder a una colección más grande de aplicaciones y juegos que no están disponibles o compatibles con su dispositivo Android. </li>
|
41 |
-
<li> Usted puede jugar juegos de Android con mejores gráficos, sonido y rendimiento, sin retraso o estrellarse. </li>
|
42 |
-
<li>Puedes usar tu teclado, ratón o gamepad para controlar tus juegos para Android, lo que puede darte una ventaja sobre otros jugadores. </li>
|
43 |
-
<li> Puede realizar múltiples tareas y ejecutar múltiples aplicaciones y juegos al mismo tiempo en diferentes ventanas o pestañas. </li>
|
44 |
-
<li>Puede hacer copias de seguridad y sincronizar sus datos y configuraciones en su dispositivo Android y PC o Mac con Google Play Services.</li>
|
45 |
-
</ul> <h2>Cómo ejecutar 9apps yukle en tu PC o Mac con BlueStacks</h2>
|
46 |
-
<p>Ejecutar 9apps yukle en tu PC o Mac con BlueStacks es muy fácil y conveniente. Solo tienes que seguir estos pasos:</p>
|
47 |
-
<p></p>
|
48 |
-
<ol>
|
49 |
-
<li>Descargue e instale BlueStacks en su PC o Mac desde el sitio web oficial (https://www.bluestacks.com/) o desde los enlaces de abajo . </li>
|
50 |
-
<li>Inicie BlueStacks e inicie sesión con su cuenta de Google o cree una nueva. </li>
|
51 |
-
|
52 |
-
<li>Seleccione el archivo APK de 9apps yukle que ha descargado antes y espere a que se instale. </li>
|
53 |
-
<li>Una vez que la instalación se ha completado, puede ver 9apps yukle en la pantalla de inicio de BlueStacks. Haga clic en él para lanzarlo. </li>
|
54 |
-
</ol>
|
55 |
-
<p>Felicidades! Ha ejecutado con éxito 9apps yukle en su PC o Mac con BlueStacks. Ahora puedes disfrutar de las mejores aplicaciones y juegos en tu ordenador. </p>
|
56 |
-
<h2>Los beneficios de usar BlueStacks para jugar juegos Android en tu PC o Mac</h2>
|
57 |
-
<p>Usar BlueStacks para jugar juegos Android en tu PC o Mac tiene muchos beneficios que pueden mejorar tu experiencia de juego. Estos son algunos de ellos:</p>
|
58 |
-
<ul>
|
59 |
-
<li>Puedes usar la función BlueStacks Game Controls para personalizar la configuración de tu teclado, ratón o gamepad para cada juego. También puedes usar los controles de juego predefinidos para juegos populares o crear los tuyos propios. </li>
|
60 |
-
<li>Puedes usar la función BlueStacks Eco Mode para optimizar el uso de tu CPU y RAM y reducir el consumo de energía mientras juegas varios juegos al mismo tiempo. </li>
|
61 |
-
<li>Puede utilizar la función BlueStacks Multi-Instance para crear y ejecutar varias instancias de BlueStacks con diferentes cuentas, configuraciones y aplicaciones. También puede sincronizar sus acciones en todas las instancias con la función de sincronización de múltiples posiciones. </li>
|
62 |
-
<li>Puedes usar la función BlueStacks Macros para grabar y reproducir tus acciones en cualquier juego con una sola pulsación. También puede editar, compartir e importar macros de otros usuarios. </li>
|
63 |
-
<li>Puede utilizar la función BlueStacks Screen Recorder para capturar y guardar sus vídeos de juego en alta calidad. También puede transmitir su juego en vivo a Twitch, YouTube, Facebook u otras plataformas con la función BlueStacks Streaming Mode. </li>
|
64 |
-
</ul>
|
65 |
-
<h2>Cómo personalizar la configuración de BlueStacks para un rendimiento y experiencia óptimos</h2>
|
66 |
-
<p>Para personalizar la configuración de BlueStacks para un rendimiento y una experiencia óptimos, puede seguir estos consejos:</p>
|
67 |
-
<ul>
|
68 |
-
|
69 |
-
<li>Para la configuración de pantalla, puede elegir la resolución, la orientación y el DPI de la ventana BlueStacks. También puede activar o desactivar el modo de pantalla completa, las altas tasas de fotogramas y las notificaciones. </li>
|
70 |
-
<li> Para la configuración de sonido, puede ajustar el volumen de los altavoces y el micrófono. También puede activar o desactivar los efectos de sonido y el chat de voz. </li>
|
71 |
-
<li>Para la configuración del motor, puede elegir el modo de rendimiento, el modo de gráficos, el motor de gráficos y la asignación de memoria de sus BlueStacks. También puede activar o desactivar la tecnología de virtualización, la textura ASTC y la configuración ABI. </li>
|
72 |
-
<li>Para la configuración de preferencias, puede elegir el idioma, la ubicación, el diseño del teclado y la zona horaria de sus BlueStacks. También puede habilitar o deshabilitar las actualizaciones automáticas, notificaciones de aplicaciones, recomendaciones de centros de aplicaciones, copias de seguridad de datos y limpieza de discos. </li>
|
73 |
-
<li>Para la configuración de los controles del juego, puede personalizar la configuración del teclado, ratón o gamepad para cada juego. También puede habilitar o desactivar la guía del juego, los controles inteligentes, el modo MOBA, el modo de disparo y el modo de panorámica de objetivos. </li>
|
74 |
-
</ul> <h2>Las mejores aplicaciones y juegos que puedes encontrar en 9apps yukle</h2>
|
75 |
-
<p>Una de las mejores cosas de 9apps yukle es que tiene una gran colección de aplicaciones y juegos en varias categorías y géneros. Puedes encontrar aplicaciones y juegos para entretenimiento, productividad, redes sociales, educación, salud, estilo de vida y más. También puedes encontrar aplicaciones y juegos para diferentes grupos de edad, intereses y niveles de habilidad. Estas son algunas de las mejores aplicaciones y juegos que puedes encontrar en 9apps yukle:</p>
|
76 |
-
<h3>Las principales categorías y géneros de aplicaciones y juegos en 9apps yukle</h3>
|
77 |
-
<p>Según las estadísticas de 9apps yukle, las principales categorías y géneros de aplicaciones y juegos en 9apps yukle son los siguientes:</p>
|
78 |
-
<tabla>
|
79 |
-
<tr>
|
80 |
-
<th>Categoría</th>
|
81 |
-
<th>Género</th>
|
82 |
-
<th>Ejemplo</th>
|
83 |
-
</tr>
|
84 |
-
<tr>
|
85 |
-
<td>Entretenimiento</td>
|
86 |
-
<td>Reproductores de vídeo y editores</td>
|
87 |
-
<td>VidMate, Reproductor MX, KineMaster</td>
|
88 |
-
</tr>
|
89 |
-
<tr>
|
90 |
-
<td>Productividad</td>
|
91 |
-
<td>Herramientas</td>
|
92 |
-
<td>Shareit, Xender, CamScanner</td>
|
93 |
-
|
94 |
-
<tr>
|
95 |
-
<td>Redes sociales</td>
|
96 |
-
<td>Comunicación</td>
|
97 |
-
<td>WhatsApp, Facebook, Instagram</td>
|
98 |
-
</tr>
|
99 |
-
<tr>
|
100 |
-
<td>Educación</td>
|
101 |
-
<td>Educación</td>
|
102 |
-
<td>Duolingo, Academia Khan, Udemy</td>
|
103 |
-
</tr>
|
104 |
-
<tr>
|
105 |
-
<td>Salud</td>
|
106 |
-
<td>Fitness</td>
|
107 |
-
<td>Noom, Fitbit, Calma</td>
|
108 |
-
</tr>
|
109 |
-
<tr>
|
110 |
-
<td>Estilo de vida</td>
|
111 |
-
<td>Compras</td>
|
112 |
-
<td>Amazon, Flipkart, AliExpress</td>
|
113 |
-
</tr>
|
114 |
-
<tr>
|
115 |
-
<td>Juegos</td>
|
116 |
-
<td>Acción</td>
|
117 |
-
<td>PUBG móvil, fuego libre, llamada de servicio móvil</td>
|
118 |
-
</tr>
|
119 |
-
<tr>
|
120 |
-
<td>Juegos</td>
|
121 |
-
<td>Casual</td>
|
122 |
-
<td>Candy Crush Saga, Surfistas del metro, Temple Run 2</td>
|
123 |
-
</tr>
|
124 |
-
<tr>
|
125 |
-
<td>Juegos</td>
|
126 |
-
<td>Puzzle</td>
|
127 |
-
<td>Explosión de dibujos animados, Cerebro fuera, Cortar la cuerda 2</td>
|
128 |
-
</tr>
|
129 |
-
<tr> </tr>
|
130 |
-
</tabla>
|
131 |
-
<p>Estas son algunas de las categorías y géneros más populares y ampliamente utilizados de aplicaciones y juegos en 9apps yukle. Puede explorar más categorías y géneros tocando el botón "Más" en la pantalla de inicio de 9apps yukle. </p>
|
132 |
-
<h3>Las aplicaciones y juegos más populares y populares en 9apps yukle</h3>
|
133 |
-
<p>Otra manera de encontrar las mejores aplicaciones y juegos en 9apps yukle es echar un vistazo a las aplicaciones y juegos más populares y trending en 9apps yukle. Estas son las aplicaciones y juegos que tienen la mayoría de descargas, calificaciones, comentarios y recomendaciones de otros usuarios. Puede ver las aplicaciones y juegos más populares y trending en 9apps yukle tocando el botón "Top" en la pantalla de inicio de 9apps yukle. Estas son algunas de las aplicaciones y juegos más populares y populares en 9apps yukle:</p>
|
134 |
-
<ul>
|
135 |
-
<li>VidMate: Un potente descargador de vídeos que te permite descargar vídeos de YouTube, Facebook, Instagram y otras plataformas en varios formatos y resoluciones. </li>
|
136 |
-
<li>PUBG Mobile: Un emocionante juego de batalla real que enfrenta a otros 99 jugadores en una lucha por la supervivencia. Puedes jugar solo, dúo o modo escuadrón, y personalizar tus armas, vehículos, trajes y más. </li>
|
137 |
-
|
138 |
-
<li>Candy Crush Saga: Un juego de puzzle dulce y adictivo que te desafía a combinar tres o más dulces del mismo color y limpiar el tablero. También puedes jugar con tus amigos y competir por la puntuación más alta. </li>
|
139 |
-
<li>Duolingo: Una aplicación de aprendizaje de idiomas divertida y eficaz que te enseña un nuevo idioma a través de lecciones, juegos, concursos e historias. Puede elegir entre más de 30 idiomas y realizar un seguimiento de su progreso. </li>
|
140 |
-
</ul>
|
141 |
-
<h3>Las gemas ocultas y aplicaciones y juegos subestimados en 9apps yukle</h3>
|
142 |
-
<p>Además de las aplicaciones y juegos más populares y populares en 9apps yukle, también hay algunas gemas ocultas y aplicaciones y juegos subestimados en 9apps yukle que merecen su atención. Estas son las aplicaciones y juegos que tienen gran calidad, características y potencial, pero no son tan conocidos o apreciados como deberían ser. Puede descubrir estas gemas ocultas y aplicaciones y juegos subestimados en 9apps yukle tocando el botón "Descubrir" en la pantalla de inicio de 9apps yukle. Aquí están algunas de las gemas ocultas y aplicaciones y juegos subestimados en 9apps yukle:</p>
|
143 |
-
<ul>
|
144 |
-
<li>CamScanner: Una práctica aplicación de escáner que convierte la cámara de tu dispositivo en un escáner. Puede escanear documentos, recibos, notas, fotos y más, y guardarlos como archivos PDF o JPG. También puede editar, compartir, imprimir o sincronizar sus escaneos. </li>
|
145 |
-
<li>Free Fire: Un trepidante juego de battle royale que te ofrece una experiencia de supervivencia de 10 minutos. Puedes elegir tu punto de aterrizaje, saquear armas y objetos, disparar a los enemigos, y ser el último en pie. </li>
|
146 |
-
<li>Instagram: Una popular aplicación de redes sociales que te permite compartir tus fotos y videos con tus seguidores. También puedes aplicar filtros, pegatinas, efectos y más a tus publicaciones. También puedes seguir a tus celebridades, marcas, influencers y mucho más. </li>
|
147 |
-
|
148 |
-
<li>Udemy: Una plataforma de aprendizaje que ofrece miles de cursos sobre diversos temas, como negocios, diseño, fotografía, programación, desarrollo personal y más. Puedes aprender de instructores expertos a tu propio ritmo. </li>
|
149 |
-
</ul>
|
150 |
-
<h2>Conclusión</h2>
|
151 |
-
<p>En conclusión, 9apps yukle es una gran tienda de aplicaciones para usuarios de Android que quieren descubrir y descargar las mejores aplicaciones y juegos para su dispositivo. Tiene una gran colección de aplicaciones y juegos en varias categorías y géneros, un sistema de recomendación inteligente, un proceso de descarga rápido y fácil, una interfaz fácil de usar, actualizaciones regulares y una plataforma segura. También te permite ejecutar aplicaciones y juegos de Android en tu PC o Mac con BlueStacks, que te ofrece muchos beneficios como mejores gráficos, sonido y rendimiento, controles de teclado, ratón y gamepad, multitarea, copia de seguridad y sincronización, y más. También puede encontrar las mejores aplicaciones y juegos en 9apps yukle revisando las principales categorías y géneros, las aplicaciones y juegos más populares y populares, y las gemas ocultas y las aplicaciones y juegos subestimados. Esperamos que haya disfrutado de este artículo y aprendido algo nuevo sobre 9apps yukle. Si estás interesado en probar 9apps yukle y BlueStacks, puedes descargarlos desde los enlaces de abajo. ¡Feliz descarga! </p>
|
152 |
-
<h3>Preguntas frecuentes</h3>
|
153 |
-
<p>Aquí están algunas de las preguntas más frecuentes sobre 9apps yukle y BlueStacks:</p>
|
154 |
-
<ol>
|
155 |
-
<li> ¿9apps yukle es libre de usar? </li>
|
156 |
-
<p>Sí, 9apps yukle es de uso gratuito. Puede descargarlo e instalarlo en su dispositivo Android sin ningún costo. También puedes descargar y usar cualquier aplicación o juego en 9apps yukle gratis. </p>
|
157 |
-
<li> ¿Es seguro usar 9apps yukle? </li>
|
158 |
-
<p>Sí, 9apps yukle es seguro de usar. Tiene un estricto sistema de seguridad que escanea y verifica cada aplicación y juego antes de subirlo a la plataforma. También protege tu dispositivo de malware, virus y otras amenazas. </p>
|
159 |
-
<li> ¿BlueStacks es de uso gratuito? </li>
|
160 |
-
|
161 |
-
¿Es seguro usar BlueStacks? </li>
|
162 |
-
<p>Sí, BlueStacks es seguro de usar. Tiene un sistema de seguridad confiable que garantiza su privacidad y protección de datos. También cumple con las políticas y términos de servicio de Google Play. </p>
|
163 |
-
<li> ¿Cómo puedo contactar al equipo de soporte de 9apps yukle o BlueStacks? </li>
|
164 |
-
<p>Si tiene alguna pregunta, problema o comentario sobre 9apps yukle o BlueStacks, puede ponerse en contacto con su equipo de soporte visitando sus sitios web oficiales (https://www.9appsyukle.com/ o https:/www.bluestacks.com/) y haciendo clic en el botón "Contáctenos" o "Soporte". También puede enviarlos por correo electrónico a [email protected] o [email protected]. </p>
|
165 |
-
</ol></p> 64aa2da5cf<br />
|
166 |
-
<br />
|
167 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BernardoOlisan/vqganclip/taming-transformers/taming/data/coco.py
DELETED
@@ -1,176 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import json
|
3 |
-
import albumentations
|
4 |
-
import numpy as np
|
5 |
-
from PIL import Image
|
6 |
-
from tqdm import tqdm
|
7 |
-
from torch.utils.data import Dataset
|
8 |
-
|
9 |
-
from taming.data.sflckr import SegmentationBase # for examples included in repo
|
10 |
-
|
11 |
-
|
12 |
-
class Examples(SegmentationBase):
|
13 |
-
def __init__(self, size=256, random_crop=False, interpolation="bicubic"):
|
14 |
-
super().__init__(data_csv="data/coco_examples.txt",
|
15 |
-
data_root="data/coco_images",
|
16 |
-
segmentation_root="data/coco_segmentations",
|
17 |
-
size=size, random_crop=random_crop,
|
18 |
-
interpolation=interpolation,
|
19 |
-
n_labels=183, shift_segmentation=True)
|
20 |
-
|
21 |
-
|
22 |
-
class CocoBase(Dataset):
|
23 |
-
"""needed for (image, caption, segmentation) pairs"""
|
24 |
-
def __init__(self, size=None, dataroot="", datajson="", onehot_segmentation=False, use_stuffthing=False,
|
25 |
-
crop_size=None, force_no_crop=False, given_files=None):
|
26 |
-
self.split = self.get_split()
|
27 |
-
self.size = size
|
28 |
-
if crop_size is None:
|
29 |
-
self.crop_size = size
|
30 |
-
else:
|
31 |
-
self.crop_size = crop_size
|
32 |
-
|
33 |
-
self.onehot = onehot_segmentation # return segmentation as rgb or one hot
|
34 |
-
self.stuffthing = use_stuffthing # include thing in segmentation
|
35 |
-
if self.onehot and not self.stuffthing:
|
36 |
-
raise NotImplemented("One hot mode is only supported for the "
|
37 |
-
"stuffthings version because labels are stored "
|
38 |
-
"a bit different.")
|
39 |
-
|
40 |
-
data_json = datajson
|
41 |
-
with open(data_json) as json_file:
|
42 |
-
self.json_data = json.load(json_file)
|
43 |
-
self.img_id_to_captions = dict()
|
44 |
-
self.img_id_to_filepath = dict()
|
45 |
-
self.img_id_to_segmentation_filepath = dict()
|
46 |
-
|
47 |
-
assert data_json.split("/")[-1] in ["captions_train2017.json",
|
48 |
-
"captions_val2017.json"]
|
49 |
-
if self.stuffthing:
|
50 |
-
self.segmentation_prefix = (
|
51 |
-
"data/cocostuffthings/val2017" if
|
52 |
-
data_json.endswith("captions_val2017.json") else
|
53 |
-
"data/cocostuffthings/train2017")
|
54 |
-
else:
|
55 |
-
self.segmentation_prefix = (
|
56 |
-
"data/coco/annotations/stuff_val2017_pixelmaps" if
|
57 |
-
data_json.endswith("captions_val2017.json") else
|
58 |
-
"data/coco/annotations/stuff_train2017_pixelmaps")
|
59 |
-
|
60 |
-
imagedirs = self.json_data["images"]
|
61 |
-
self.labels = {"image_ids": list()}
|
62 |
-
for imgdir in tqdm(imagedirs, desc="ImgToPath"):
|
63 |
-
self.img_id_to_filepath[imgdir["id"]] = os.path.join(dataroot, imgdir["file_name"])
|
64 |
-
self.img_id_to_captions[imgdir["id"]] = list()
|
65 |
-
pngfilename = imgdir["file_name"].replace("jpg", "png")
|
66 |
-
self.img_id_to_segmentation_filepath[imgdir["id"]] = os.path.join(
|
67 |
-
self.segmentation_prefix, pngfilename)
|
68 |
-
if given_files is not None:
|
69 |
-
if pngfilename in given_files:
|
70 |
-
self.labels["image_ids"].append(imgdir["id"])
|
71 |
-
else:
|
72 |
-
self.labels["image_ids"].append(imgdir["id"])
|
73 |
-
|
74 |
-
capdirs = self.json_data["annotations"]
|
75 |
-
for capdir in tqdm(capdirs, desc="ImgToCaptions"):
|
76 |
-
# there are in average 5 captions per image
|
77 |
-
self.img_id_to_captions[capdir["image_id"]].append(np.array([capdir["caption"]]))
|
78 |
-
|
79 |
-
self.rescaler = albumentations.SmallestMaxSize(max_size=self.size)
|
80 |
-
if self.split=="validation":
|
81 |
-
self.cropper = albumentations.CenterCrop(height=self.crop_size, width=self.crop_size)
|
82 |
-
else:
|
83 |
-
self.cropper = albumentations.RandomCrop(height=self.crop_size, width=self.crop_size)
|
84 |
-
self.preprocessor = albumentations.Compose(
|
85 |
-
[self.rescaler, self.cropper],
|
86 |
-
additional_targets={"segmentation": "image"})
|
87 |
-
if force_no_crop:
|
88 |
-
self.rescaler = albumentations.Resize(height=self.size, width=self.size)
|
89 |
-
self.preprocessor = albumentations.Compose(
|
90 |
-
[self.rescaler],
|
91 |
-
additional_targets={"segmentation": "image"})
|
92 |
-
|
93 |
-
def __len__(self):
|
94 |
-
return len(self.labels["image_ids"])
|
95 |
-
|
96 |
-
def preprocess_image(self, image_path, segmentation_path):
|
97 |
-
image = Image.open(image_path)
|
98 |
-
if not image.mode == "RGB":
|
99 |
-
image = image.convert("RGB")
|
100 |
-
image = np.array(image).astype(np.uint8)
|
101 |
-
|
102 |
-
segmentation = Image.open(segmentation_path)
|
103 |
-
if not self.onehot and not segmentation.mode == "RGB":
|
104 |
-
segmentation = segmentation.convert("RGB")
|
105 |
-
segmentation = np.array(segmentation).astype(np.uint8)
|
106 |
-
if self.onehot:
|
107 |
-
assert self.stuffthing
|
108 |
-
# stored in caffe format: unlabeled==255. stuff and thing from
|
109 |
-
# 0-181. to be compatible with the labels in
|
110 |
-
# https://github.com/nightrome/cocostuff/blob/master/labels.txt
|
111 |
-
# we shift stuffthing one to the right and put unlabeled in zero
|
112 |
-
# as long as segmentation is uint8 shifting to right handles the
|
113 |
-
# latter too
|
114 |
-
assert segmentation.dtype == np.uint8
|
115 |
-
segmentation = segmentation + 1
|
116 |
-
|
117 |
-
processed = self.preprocessor(image=image, segmentation=segmentation)
|
118 |
-
image, segmentation = processed["image"], processed["segmentation"]
|
119 |
-
image = (image / 127.5 - 1.0).astype(np.float32)
|
120 |
-
|
121 |
-
if self.onehot:
|
122 |
-
assert segmentation.dtype == np.uint8
|
123 |
-
# make it one hot
|
124 |
-
n_labels = 183
|
125 |
-
flatseg = np.ravel(segmentation)
|
126 |
-
onehot = np.zeros((flatseg.size, n_labels), dtype=np.bool)
|
127 |
-
onehot[np.arange(flatseg.size), flatseg] = True
|
128 |
-
onehot = onehot.reshape(segmentation.shape + (n_labels,)).astype(int)
|
129 |
-
segmentation = onehot
|
130 |
-
else:
|
131 |
-
segmentation = (segmentation / 127.5 - 1.0).astype(np.float32)
|
132 |
-
return image, segmentation
|
133 |
-
|
134 |
-
def __getitem__(self, i):
|
135 |
-
img_path = self.img_id_to_filepath[self.labels["image_ids"][i]]
|
136 |
-
seg_path = self.img_id_to_segmentation_filepath[self.labels["image_ids"][i]]
|
137 |
-
image, segmentation = self.preprocess_image(img_path, seg_path)
|
138 |
-
captions = self.img_id_to_captions[self.labels["image_ids"][i]]
|
139 |
-
# randomly draw one of all available captions per image
|
140 |
-
caption = captions[np.random.randint(0, len(captions))]
|
141 |
-
example = {"image": image,
|
142 |
-
"caption": [str(caption[0])],
|
143 |
-
"segmentation": segmentation,
|
144 |
-
"img_path": img_path,
|
145 |
-
"seg_path": seg_path,
|
146 |
-
"filename_": img_path.split(os.sep)[-1]
|
147 |
-
}
|
148 |
-
return example
|
149 |
-
|
150 |
-
|
151 |
-
class CocoImagesAndCaptionsTrain(CocoBase):
|
152 |
-
"""returns a pair of (image, caption)"""
|
153 |
-
def __init__(self, size, onehot_segmentation=False, use_stuffthing=False, crop_size=None, force_no_crop=False):
|
154 |
-
super().__init__(size=size,
|
155 |
-
dataroot="data/coco/train2017",
|
156 |
-
datajson="data/coco/annotations/captions_train2017.json",
|
157 |
-
onehot_segmentation=onehot_segmentation,
|
158 |
-
use_stuffthing=use_stuffthing, crop_size=crop_size, force_no_crop=force_no_crop)
|
159 |
-
|
160 |
-
def get_split(self):
|
161 |
-
return "train"
|
162 |
-
|
163 |
-
|
164 |
-
class CocoImagesAndCaptionsValidation(CocoBase):
|
165 |
-
"""returns a pair of (image, caption)"""
|
166 |
-
def __init__(self, size, onehot_segmentation=False, use_stuffthing=False, crop_size=None, force_no_crop=False,
|
167 |
-
given_files=None):
|
168 |
-
super().__init__(size=size,
|
169 |
-
dataroot="data/coco/val2017",
|
170 |
-
datajson="data/coco/annotations/captions_val2017.json",
|
171 |
-
onehot_segmentation=onehot_segmentation,
|
172 |
-
use_stuffthing=use_stuffthing, crop_size=crop_size, force_no_crop=force_no_crop,
|
173 |
-
given_files=given_files)
|
174 |
-
|
175 |
-
def get_split(self):
|
176 |
-
return "validation"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/operations/install/wheel.py
DELETED
@@ -1,740 +0,0 @@
|
|
1 |
-
"""Support for installing and building the "wheel" binary package format.
|
2 |
-
"""
|
3 |
-
|
4 |
-
import collections
|
5 |
-
import compileall
|
6 |
-
import contextlib
|
7 |
-
import csv
|
8 |
-
import importlib
|
9 |
-
import logging
|
10 |
-
import os.path
|
11 |
-
import re
|
12 |
-
import shutil
|
13 |
-
import sys
|
14 |
-
import warnings
|
15 |
-
from base64 import urlsafe_b64encode
|
16 |
-
from email.message import Message
|
17 |
-
from itertools import chain, filterfalse, starmap
|
18 |
-
from typing import (
|
19 |
-
IO,
|
20 |
-
TYPE_CHECKING,
|
21 |
-
Any,
|
22 |
-
BinaryIO,
|
23 |
-
Callable,
|
24 |
-
Dict,
|
25 |
-
Generator,
|
26 |
-
Iterable,
|
27 |
-
Iterator,
|
28 |
-
List,
|
29 |
-
NewType,
|
30 |
-
Optional,
|
31 |
-
Sequence,
|
32 |
-
Set,
|
33 |
-
Tuple,
|
34 |
-
Union,
|
35 |
-
cast,
|
36 |
-
)
|
37 |
-
from zipfile import ZipFile, ZipInfo
|
38 |
-
|
39 |
-
from pip._vendor.distlib.scripts import ScriptMaker
|
40 |
-
from pip._vendor.distlib.util import get_export_entry
|
41 |
-
from pip._vendor.packaging.utils import canonicalize_name
|
42 |
-
|
43 |
-
from pip._internal.exceptions import InstallationError
|
44 |
-
from pip._internal.locations import get_major_minor_version
|
45 |
-
from pip._internal.metadata import (
|
46 |
-
BaseDistribution,
|
47 |
-
FilesystemWheel,
|
48 |
-
get_wheel_distribution,
|
49 |
-
)
|
50 |
-
from pip._internal.models.direct_url import DIRECT_URL_METADATA_NAME, DirectUrl
|
51 |
-
from pip._internal.models.scheme import SCHEME_KEYS, Scheme
|
52 |
-
from pip._internal.utils.filesystem import adjacent_tmp_file, replace
|
53 |
-
from pip._internal.utils.misc import captured_stdout, ensure_dir, hash_file, partition
|
54 |
-
from pip._internal.utils.unpacking import (
|
55 |
-
current_umask,
|
56 |
-
is_within_directory,
|
57 |
-
set_extracted_file_to_default_mode_plus_executable,
|
58 |
-
zip_item_is_executable,
|
59 |
-
)
|
60 |
-
from pip._internal.utils.wheel import parse_wheel
|
61 |
-
|
62 |
-
if TYPE_CHECKING:
|
63 |
-
from typing import Protocol
|
64 |
-
|
65 |
-
class File(Protocol):
|
66 |
-
src_record_path: "RecordPath"
|
67 |
-
dest_path: str
|
68 |
-
changed: bool
|
69 |
-
|
70 |
-
def save(self) -> None:
|
71 |
-
pass
|
72 |
-
|
73 |
-
|
74 |
-
logger = logging.getLogger(__name__)
|
75 |
-
|
76 |
-
RecordPath = NewType("RecordPath", str)
|
77 |
-
InstalledCSVRow = Tuple[RecordPath, str, Union[int, str]]
|
78 |
-
|
79 |
-
|
80 |
-
def rehash(path: str, blocksize: int = 1 << 20) -> Tuple[str, str]:
|
81 |
-
"""Return (encoded_digest, length) for path using hashlib.sha256()"""
|
82 |
-
h, length = hash_file(path, blocksize)
|
83 |
-
digest = "sha256=" + urlsafe_b64encode(h.digest()).decode("latin1").rstrip("=")
|
84 |
-
return (digest, str(length))
|
85 |
-
|
86 |
-
|
87 |
-
def csv_io_kwargs(mode: str) -> Dict[str, Any]:
|
88 |
-
"""Return keyword arguments to properly open a CSV file
|
89 |
-
in the given mode.
|
90 |
-
"""
|
91 |
-
return {"mode": mode, "newline": "", "encoding": "utf-8"}
|
92 |
-
|
93 |
-
|
94 |
-
def fix_script(path: str) -> bool:
|
95 |
-
"""Replace #!python with #!/path/to/python
|
96 |
-
Return True if file was changed.
|
97 |
-
"""
|
98 |
-
# XXX RECORD hashes will need to be updated
|
99 |
-
assert os.path.isfile(path)
|
100 |
-
|
101 |
-
with open(path, "rb") as script:
|
102 |
-
firstline = script.readline()
|
103 |
-
if not firstline.startswith(b"#!python"):
|
104 |
-
return False
|
105 |
-
exename = sys.executable.encode(sys.getfilesystemencoding())
|
106 |
-
firstline = b"#!" + exename + os.linesep.encode("ascii")
|
107 |
-
rest = script.read()
|
108 |
-
with open(path, "wb") as script:
|
109 |
-
script.write(firstline)
|
110 |
-
script.write(rest)
|
111 |
-
return True
|
112 |
-
|
113 |
-
|
114 |
-
def wheel_root_is_purelib(metadata: Message) -> bool:
|
115 |
-
return metadata.get("Root-Is-Purelib", "").lower() == "true"
|
116 |
-
|
117 |
-
|
118 |
-
def get_entrypoints(dist: BaseDistribution) -> Tuple[Dict[str, str], Dict[str, str]]:
|
119 |
-
console_scripts = {}
|
120 |
-
gui_scripts = {}
|
121 |
-
for entry_point in dist.iter_entry_points():
|
122 |
-
if entry_point.group == "console_scripts":
|
123 |
-
console_scripts[entry_point.name] = entry_point.value
|
124 |
-
elif entry_point.group == "gui_scripts":
|
125 |
-
gui_scripts[entry_point.name] = entry_point.value
|
126 |
-
return console_scripts, gui_scripts
|
127 |
-
|
128 |
-
|
129 |
-
def message_about_scripts_not_on_PATH(scripts: Sequence[str]) -> Optional[str]:
|
130 |
-
"""Determine if any scripts are not on PATH and format a warning.
|
131 |
-
Returns a warning message if one or more scripts are not on PATH,
|
132 |
-
otherwise None.
|
133 |
-
"""
|
134 |
-
if not scripts:
|
135 |
-
return None
|
136 |
-
|
137 |
-
# Group scripts by the path they were installed in
|
138 |
-
grouped_by_dir: Dict[str, Set[str]] = collections.defaultdict(set)
|
139 |
-
for destfile in scripts:
|
140 |
-
parent_dir = os.path.dirname(destfile)
|
141 |
-
script_name = os.path.basename(destfile)
|
142 |
-
grouped_by_dir[parent_dir].add(script_name)
|
143 |
-
|
144 |
-
# We don't want to warn for directories that are on PATH.
|
145 |
-
not_warn_dirs = [
|
146 |
-
os.path.normcase(os.path.normpath(i)).rstrip(os.sep)
|
147 |
-
for i in os.environ.get("PATH", "").split(os.pathsep)
|
148 |
-
]
|
149 |
-
# If an executable sits with sys.executable, we don't warn for it.
|
150 |
-
# This covers the case of venv invocations without activating the venv.
|
151 |
-
not_warn_dirs.append(
|
152 |
-
os.path.normcase(os.path.normpath(os.path.dirname(sys.executable)))
|
153 |
-
)
|
154 |
-
warn_for: Dict[str, Set[str]] = {
|
155 |
-
parent_dir: scripts
|
156 |
-
for parent_dir, scripts in grouped_by_dir.items()
|
157 |
-
if os.path.normcase(os.path.normpath(parent_dir)) not in not_warn_dirs
|
158 |
-
}
|
159 |
-
if not warn_for:
|
160 |
-
return None
|
161 |
-
|
162 |
-
# Format a message
|
163 |
-
msg_lines = []
|
164 |
-
for parent_dir, dir_scripts in warn_for.items():
|
165 |
-
sorted_scripts: List[str] = sorted(dir_scripts)
|
166 |
-
if len(sorted_scripts) == 1:
|
167 |
-
start_text = "script {} is".format(sorted_scripts[0])
|
168 |
-
else:
|
169 |
-
start_text = "scripts {} are".format(
|
170 |
-
", ".join(sorted_scripts[:-1]) + " and " + sorted_scripts[-1]
|
171 |
-
)
|
172 |
-
|
173 |
-
msg_lines.append(
|
174 |
-
"The {} installed in '{}' which is not on PATH.".format(
|
175 |
-
start_text, parent_dir
|
176 |
-
)
|
177 |
-
)
|
178 |
-
|
179 |
-
last_line_fmt = (
|
180 |
-
"Consider adding {} to PATH or, if you prefer "
|
181 |
-
"to suppress this warning, use --no-warn-script-location."
|
182 |
-
)
|
183 |
-
if len(msg_lines) == 1:
|
184 |
-
msg_lines.append(last_line_fmt.format("this directory"))
|
185 |
-
else:
|
186 |
-
msg_lines.append(last_line_fmt.format("these directories"))
|
187 |
-
|
188 |
-
# Add a note if any directory starts with ~
|
189 |
-
warn_for_tilde = any(
|
190 |
-
i[0] == "~" for i in os.environ.get("PATH", "").split(os.pathsep) if i
|
191 |
-
)
|
192 |
-
if warn_for_tilde:
|
193 |
-
tilde_warning_msg = (
|
194 |
-
"NOTE: The current PATH contains path(s) starting with `~`, "
|
195 |
-
"which may not be expanded by all applications."
|
196 |
-
)
|
197 |
-
msg_lines.append(tilde_warning_msg)
|
198 |
-
|
199 |
-
# Returns the formatted multiline message
|
200 |
-
return "\n".join(msg_lines)
|
201 |
-
|
202 |
-
|
203 |
-
def _normalized_outrows(
|
204 |
-
outrows: Iterable[InstalledCSVRow],
|
205 |
-
) -> List[Tuple[str, str, str]]:
|
206 |
-
"""Normalize the given rows of a RECORD file.
|
207 |
-
|
208 |
-
Items in each row are converted into str. Rows are then sorted to make
|
209 |
-
the value more predictable for tests.
|
210 |
-
|
211 |
-
Each row is a 3-tuple (path, hash, size) and corresponds to a record of
|
212 |
-
a RECORD file (see PEP 376 and PEP 427 for details). For the rows
|
213 |
-
passed to this function, the size can be an integer as an int or string,
|
214 |
-
or the empty string.
|
215 |
-
"""
|
216 |
-
# Normally, there should only be one row per path, in which case the
|
217 |
-
# second and third elements don't come into play when sorting.
|
218 |
-
# However, in cases in the wild where a path might happen to occur twice,
|
219 |
-
# we don't want the sort operation to trigger an error (but still want
|
220 |
-
# determinism). Since the third element can be an int or string, we
|
221 |
-
# coerce each element to a string to avoid a TypeError in this case.
|
222 |
-
# For additional background, see--
|
223 |
-
# https://github.com/pypa/pip/issues/5868
|
224 |
-
return sorted(
|
225 |
-
(record_path, hash_, str(size)) for record_path, hash_, size in outrows
|
226 |
-
)
|
227 |
-
|
228 |
-
|
229 |
-
def _record_to_fs_path(record_path: RecordPath, lib_dir: str) -> str:
|
230 |
-
return os.path.join(lib_dir, record_path)
|
231 |
-
|
232 |
-
|
233 |
-
def _fs_to_record_path(path: str, lib_dir: str) -> RecordPath:
|
234 |
-
# On Windows, do not handle relative paths if they belong to different
|
235 |
-
# logical disks
|
236 |
-
if os.path.splitdrive(path)[0].lower() == os.path.splitdrive(lib_dir)[0].lower():
|
237 |
-
path = os.path.relpath(path, lib_dir)
|
238 |
-
|
239 |
-
path = path.replace(os.path.sep, "/")
|
240 |
-
return cast("RecordPath", path)
|
241 |
-
|
242 |
-
|
243 |
-
def get_csv_rows_for_installed(
|
244 |
-
old_csv_rows: List[List[str]],
|
245 |
-
installed: Dict[RecordPath, RecordPath],
|
246 |
-
changed: Set[RecordPath],
|
247 |
-
generated: List[str],
|
248 |
-
lib_dir: str,
|
249 |
-
) -> List[InstalledCSVRow]:
|
250 |
-
"""
|
251 |
-
:param installed: A map from archive RECORD path to installation RECORD
|
252 |
-
path.
|
253 |
-
"""
|
254 |
-
installed_rows: List[InstalledCSVRow] = []
|
255 |
-
for row in old_csv_rows:
|
256 |
-
if len(row) > 3:
|
257 |
-
logger.warning("RECORD line has more than three elements: %s", row)
|
258 |
-
old_record_path = cast("RecordPath", row[0])
|
259 |
-
new_record_path = installed.pop(old_record_path, old_record_path)
|
260 |
-
if new_record_path in changed:
|
261 |
-
digest, length = rehash(_record_to_fs_path(new_record_path, lib_dir))
|
262 |
-
else:
|
263 |
-
digest = row[1] if len(row) > 1 else ""
|
264 |
-
length = row[2] if len(row) > 2 else ""
|
265 |
-
installed_rows.append((new_record_path, digest, length))
|
266 |
-
for f in generated:
|
267 |
-
path = _fs_to_record_path(f, lib_dir)
|
268 |
-
digest, length = rehash(f)
|
269 |
-
installed_rows.append((path, digest, length))
|
270 |
-
for installed_record_path in installed.values():
|
271 |
-
installed_rows.append((installed_record_path, "", ""))
|
272 |
-
return installed_rows
|
273 |
-
|
274 |
-
|
275 |
-
def get_console_script_specs(console: Dict[str, str]) -> List[str]:
|
276 |
-
"""
|
277 |
-
Given the mapping from entrypoint name to callable, return the relevant
|
278 |
-
console script specs.
|
279 |
-
"""
|
280 |
-
# Don't mutate caller's version
|
281 |
-
console = console.copy()
|
282 |
-
|
283 |
-
scripts_to_generate = []
|
284 |
-
|
285 |
-
# Special case pip and setuptools to generate versioned wrappers
|
286 |
-
#
|
287 |
-
# The issue is that some projects (specifically, pip and setuptools) use
|
288 |
-
# code in setup.py to create "versioned" entry points - pip2.7 on Python
|
289 |
-
# 2.7, pip3.3 on Python 3.3, etc. But these entry points are baked into
|
290 |
-
# the wheel metadata at build time, and so if the wheel is installed with
|
291 |
-
# a *different* version of Python the entry points will be wrong. The
|
292 |
-
# correct fix for this is to enhance the metadata to be able to describe
|
293 |
-
# such versioned entry points, but that won't happen till Metadata 2.0 is
|
294 |
-
# available.
|
295 |
-
# In the meantime, projects using versioned entry points will either have
|
296 |
-
# incorrect versioned entry points, or they will not be able to distribute
|
297 |
-
# "universal" wheels (i.e., they will need a wheel per Python version).
|
298 |
-
#
|
299 |
-
# Because setuptools and pip are bundled with _ensurepip and virtualenv,
|
300 |
-
# we need to use universal wheels. So, as a stopgap until Metadata 2.0, we
|
301 |
-
# override the versioned entry points in the wheel and generate the
|
302 |
-
# correct ones. This code is purely a short-term measure until Metadata 2.0
|
303 |
-
# is available.
|
304 |
-
#
|
305 |
-
# To add the level of hack in this section of code, in order to support
|
306 |
-
# ensurepip this code will look for an ``ENSUREPIP_OPTIONS`` environment
|
307 |
-
# variable which will control which version scripts get installed.
|
308 |
-
#
|
309 |
-
# ENSUREPIP_OPTIONS=altinstall
|
310 |
-
# - Only pipX.Y and easy_install-X.Y will be generated and installed
|
311 |
-
# ENSUREPIP_OPTIONS=install
|
312 |
-
# - pipX.Y, pipX, easy_install-X.Y will be generated and installed. Note
|
313 |
-
# that this option is technically if ENSUREPIP_OPTIONS is set and is
|
314 |
-
# not altinstall
|
315 |
-
# DEFAULT
|
316 |
-
# - The default behavior is to install pip, pipX, pipX.Y, easy_install
|
317 |
-
# and easy_install-X.Y.
|
318 |
-
pip_script = console.pop("pip", None)
|
319 |
-
if pip_script:
|
320 |
-
if "ENSUREPIP_OPTIONS" not in os.environ:
|
321 |
-
scripts_to_generate.append("pip = " + pip_script)
|
322 |
-
|
323 |
-
if os.environ.get("ENSUREPIP_OPTIONS", "") != "altinstall":
|
324 |
-
scripts_to_generate.append(
|
325 |
-
"pip{} = {}".format(sys.version_info[0], pip_script)
|
326 |
-
)
|
327 |
-
|
328 |
-
scripts_to_generate.append(f"pip{get_major_minor_version()} = {pip_script}")
|
329 |
-
# Delete any other versioned pip entry points
|
330 |
-
pip_ep = [k for k in console if re.match(r"pip(\d+(\.\d+)?)?$", k)]
|
331 |
-
for k in pip_ep:
|
332 |
-
del console[k]
|
333 |
-
easy_install_script = console.pop("easy_install", None)
|
334 |
-
if easy_install_script:
|
335 |
-
if "ENSUREPIP_OPTIONS" not in os.environ:
|
336 |
-
scripts_to_generate.append("easy_install = " + easy_install_script)
|
337 |
-
|
338 |
-
scripts_to_generate.append(
|
339 |
-
"easy_install-{} = {}".format(
|
340 |
-
get_major_minor_version(), easy_install_script
|
341 |
-
)
|
342 |
-
)
|
343 |
-
# Delete any other versioned easy_install entry points
|
344 |
-
easy_install_ep = [
|
345 |
-
k for k in console if re.match(r"easy_install(-\d+\.\d+)?$", k)
|
346 |
-
]
|
347 |
-
for k in easy_install_ep:
|
348 |
-
del console[k]
|
349 |
-
|
350 |
-
# Generate the console entry points specified in the wheel
|
351 |
-
scripts_to_generate.extend(starmap("{} = {}".format, console.items()))
|
352 |
-
|
353 |
-
return scripts_to_generate
|
354 |
-
|
355 |
-
|
356 |
-
class ZipBackedFile:
|
357 |
-
def __init__(
|
358 |
-
self, src_record_path: RecordPath, dest_path: str, zip_file: ZipFile
|
359 |
-
) -> None:
|
360 |
-
self.src_record_path = src_record_path
|
361 |
-
self.dest_path = dest_path
|
362 |
-
self._zip_file = zip_file
|
363 |
-
self.changed = False
|
364 |
-
|
365 |
-
def _getinfo(self) -> ZipInfo:
|
366 |
-
return self._zip_file.getinfo(self.src_record_path)
|
367 |
-
|
368 |
-
def save(self) -> None:
|
369 |
-
# directory creation is lazy and after file filtering
|
370 |
-
# to ensure we don't install empty dirs; empty dirs can't be
|
371 |
-
# uninstalled.
|
372 |
-
parent_dir = os.path.dirname(self.dest_path)
|
373 |
-
ensure_dir(parent_dir)
|
374 |
-
|
375 |
-
# When we open the output file below, any existing file is truncated
|
376 |
-
# before we start writing the new contents. This is fine in most
|
377 |
-
# cases, but can cause a segfault if pip has loaded a shared
|
378 |
-
# object (e.g. from pyopenssl through its vendored urllib3)
|
379 |
-
# Since the shared object is mmap'd an attempt to call a
|
380 |
-
# symbol in it will then cause a segfault. Unlinking the file
|
381 |
-
# allows writing of new contents while allowing the process to
|
382 |
-
# continue to use the old copy.
|
383 |
-
if os.path.exists(self.dest_path):
|
384 |
-
os.unlink(self.dest_path)
|
385 |
-
|
386 |
-
zipinfo = self._getinfo()
|
387 |
-
|
388 |
-
with self._zip_file.open(zipinfo) as f:
|
389 |
-
with open(self.dest_path, "wb") as dest:
|
390 |
-
shutil.copyfileobj(f, dest)
|
391 |
-
|
392 |
-
if zip_item_is_executable(zipinfo):
|
393 |
-
set_extracted_file_to_default_mode_plus_executable(self.dest_path)
|
394 |
-
|
395 |
-
|
396 |
-
class ScriptFile:
|
397 |
-
def __init__(self, file: "File") -> None:
|
398 |
-
self._file = file
|
399 |
-
self.src_record_path = self._file.src_record_path
|
400 |
-
self.dest_path = self._file.dest_path
|
401 |
-
self.changed = False
|
402 |
-
|
403 |
-
def save(self) -> None:
|
404 |
-
self._file.save()
|
405 |
-
self.changed = fix_script(self.dest_path)
|
406 |
-
|
407 |
-
|
408 |
-
class MissingCallableSuffix(InstallationError):
|
409 |
-
def __init__(self, entry_point: str) -> None:
|
410 |
-
super().__init__(
|
411 |
-
"Invalid script entry point: {} - A callable "
|
412 |
-
"suffix is required. Cf https://packaging.python.org/"
|
413 |
-
"specifications/entry-points/#use-for-scripts for more "
|
414 |
-
"information.".format(entry_point)
|
415 |
-
)
|
416 |
-
|
417 |
-
|
418 |
-
def _raise_for_invalid_entrypoint(specification: str) -> None:
|
419 |
-
entry = get_export_entry(specification)
|
420 |
-
if entry is not None and entry.suffix is None:
|
421 |
-
raise MissingCallableSuffix(str(entry))
|
422 |
-
|
423 |
-
|
424 |
-
class PipScriptMaker(ScriptMaker):
|
425 |
-
def make(
|
426 |
-
self, specification: str, options: Optional[Dict[str, Any]] = None
|
427 |
-
) -> List[str]:
|
428 |
-
_raise_for_invalid_entrypoint(specification)
|
429 |
-
return super().make(specification, options)
|
430 |
-
|
431 |
-
|
432 |
-
def _install_wheel(
|
433 |
-
name: str,
|
434 |
-
wheel_zip: ZipFile,
|
435 |
-
wheel_path: str,
|
436 |
-
scheme: Scheme,
|
437 |
-
pycompile: bool = True,
|
438 |
-
warn_script_location: bool = True,
|
439 |
-
direct_url: Optional[DirectUrl] = None,
|
440 |
-
requested: bool = False,
|
441 |
-
) -> None:
|
442 |
-
"""Install a wheel.
|
443 |
-
|
444 |
-
:param name: Name of the project to install
|
445 |
-
:param wheel_zip: open ZipFile for wheel being installed
|
446 |
-
:param scheme: Distutils scheme dictating the install directories
|
447 |
-
:param req_description: String used in place of the requirement, for
|
448 |
-
logging
|
449 |
-
:param pycompile: Whether to byte-compile installed Python files
|
450 |
-
:param warn_script_location: Whether to check that scripts are installed
|
451 |
-
into a directory on PATH
|
452 |
-
:raises UnsupportedWheel:
|
453 |
-
* when the directory holds an unpacked wheel with incompatible
|
454 |
-
Wheel-Version
|
455 |
-
* when the .dist-info dir does not match the wheel
|
456 |
-
"""
|
457 |
-
info_dir, metadata = parse_wheel(wheel_zip, name)
|
458 |
-
|
459 |
-
if wheel_root_is_purelib(metadata):
|
460 |
-
lib_dir = scheme.purelib
|
461 |
-
else:
|
462 |
-
lib_dir = scheme.platlib
|
463 |
-
|
464 |
-
# Record details of the files moved
|
465 |
-
# installed = files copied from the wheel to the destination
|
466 |
-
# changed = files changed while installing (scripts #! line typically)
|
467 |
-
# generated = files newly generated during the install (script wrappers)
|
468 |
-
installed: Dict[RecordPath, RecordPath] = {}
|
469 |
-
changed: Set[RecordPath] = set()
|
470 |
-
generated: List[str] = []
|
471 |
-
|
472 |
-
def record_installed(
|
473 |
-
srcfile: RecordPath, destfile: str, modified: bool = False
|
474 |
-
) -> None:
|
475 |
-
"""Map archive RECORD paths to installation RECORD paths."""
|
476 |
-
newpath = _fs_to_record_path(destfile, lib_dir)
|
477 |
-
installed[srcfile] = newpath
|
478 |
-
if modified:
|
479 |
-
changed.add(newpath)
|
480 |
-
|
481 |
-
def is_dir_path(path: RecordPath) -> bool:
|
482 |
-
return path.endswith("/")
|
483 |
-
|
484 |
-
def assert_no_path_traversal(dest_dir_path: str, target_path: str) -> None:
|
485 |
-
if not is_within_directory(dest_dir_path, target_path):
|
486 |
-
message = (
|
487 |
-
"The wheel {!r} has a file {!r} trying to install"
|
488 |
-
" outside the target directory {!r}"
|
489 |
-
)
|
490 |
-
raise InstallationError(
|
491 |
-
message.format(wheel_path, target_path, dest_dir_path)
|
492 |
-
)
|
493 |
-
|
494 |
-
def root_scheme_file_maker(
|
495 |
-
zip_file: ZipFile, dest: str
|
496 |
-
) -> Callable[[RecordPath], "File"]:
|
497 |
-
def make_root_scheme_file(record_path: RecordPath) -> "File":
|
498 |
-
normed_path = os.path.normpath(record_path)
|
499 |
-
dest_path = os.path.join(dest, normed_path)
|
500 |
-
assert_no_path_traversal(dest, dest_path)
|
501 |
-
return ZipBackedFile(record_path, dest_path, zip_file)
|
502 |
-
|
503 |
-
return make_root_scheme_file
|
504 |
-
|
505 |
-
def data_scheme_file_maker(
|
506 |
-
zip_file: ZipFile, scheme: Scheme
|
507 |
-
) -> Callable[[RecordPath], "File"]:
|
508 |
-
scheme_paths = {key: getattr(scheme, key) for key in SCHEME_KEYS}
|
509 |
-
|
510 |
-
def make_data_scheme_file(record_path: RecordPath) -> "File":
|
511 |
-
normed_path = os.path.normpath(record_path)
|
512 |
-
try:
|
513 |
-
_, scheme_key, dest_subpath = normed_path.split(os.path.sep, 2)
|
514 |
-
except ValueError:
|
515 |
-
message = (
|
516 |
-
"Unexpected file in {}: {!r}. .data directory contents"
|
517 |
-
" should be named like: '<scheme key>/<path>'."
|
518 |
-
).format(wheel_path, record_path)
|
519 |
-
raise InstallationError(message)
|
520 |
-
|
521 |
-
try:
|
522 |
-
scheme_path = scheme_paths[scheme_key]
|
523 |
-
except KeyError:
|
524 |
-
valid_scheme_keys = ", ".join(sorted(scheme_paths))
|
525 |
-
message = (
|
526 |
-
"Unknown scheme key used in {}: {} (for file {!r}). .data"
|
527 |
-
" directory contents should be in subdirectories named"
|
528 |
-
" with a valid scheme key ({})"
|
529 |
-
).format(wheel_path, scheme_key, record_path, valid_scheme_keys)
|
530 |
-
raise InstallationError(message)
|
531 |
-
|
532 |
-
dest_path = os.path.join(scheme_path, dest_subpath)
|
533 |
-
assert_no_path_traversal(scheme_path, dest_path)
|
534 |
-
return ZipBackedFile(record_path, dest_path, zip_file)
|
535 |
-
|
536 |
-
return make_data_scheme_file
|
537 |
-
|
538 |
-
def is_data_scheme_path(path: RecordPath) -> bool:
|
539 |
-
return path.split("/", 1)[0].endswith(".data")
|
540 |
-
|
541 |
-
paths = cast(List[RecordPath], wheel_zip.namelist())
|
542 |
-
file_paths = filterfalse(is_dir_path, paths)
|
543 |
-
root_scheme_paths, data_scheme_paths = partition(is_data_scheme_path, file_paths)
|
544 |
-
|
545 |
-
make_root_scheme_file = root_scheme_file_maker(wheel_zip, lib_dir)
|
546 |
-
files: Iterator[File] = map(make_root_scheme_file, root_scheme_paths)
|
547 |
-
|
548 |
-
def is_script_scheme_path(path: RecordPath) -> bool:
|
549 |
-
parts = path.split("/", 2)
|
550 |
-
return len(parts) > 2 and parts[0].endswith(".data") and parts[1] == "scripts"
|
551 |
-
|
552 |
-
other_scheme_paths, script_scheme_paths = partition(
|
553 |
-
is_script_scheme_path, data_scheme_paths
|
554 |
-
)
|
555 |
-
|
556 |
-
make_data_scheme_file = data_scheme_file_maker(wheel_zip, scheme)
|
557 |
-
other_scheme_files = map(make_data_scheme_file, other_scheme_paths)
|
558 |
-
files = chain(files, other_scheme_files)
|
559 |
-
|
560 |
-
# Get the defined entry points
|
561 |
-
distribution = get_wheel_distribution(
|
562 |
-
FilesystemWheel(wheel_path),
|
563 |
-
canonicalize_name(name),
|
564 |
-
)
|
565 |
-
console, gui = get_entrypoints(distribution)
|
566 |
-
|
567 |
-
def is_entrypoint_wrapper(file: "File") -> bool:
|
568 |
-
# EP, EP.exe and EP-script.py are scripts generated for
|
569 |
-
# entry point EP by setuptools
|
570 |
-
path = file.dest_path
|
571 |
-
name = os.path.basename(path)
|
572 |
-
if name.lower().endswith(".exe"):
|
573 |
-
matchname = name[:-4]
|
574 |
-
elif name.lower().endswith("-script.py"):
|
575 |
-
matchname = name[:-10]
|
576 |
-
elif name.lower().endswith(".pya"):
|
577 |
-
matchname = name[:-4]
|
578 |
-
else:
|
579 |
-
matchname = name
|
580 |
-
# Ignore setuptools-generated scripts
|
581 |
-
return matchname in console or matchname in gui
|
582 |
-
|
583 |
-
script_scheme_files: Iterator[File] = map(
|
584 |
-
make_data_scheme_file, script_scheme_paths
|
585 |
-
)
|
586 |
-
script_scheme_files = filterfalse(is_entrypoint_wrapper, script_scheme_files)
|
587 |
-
script_scheme_files = map(ScriptFile, script_scheme_files)
|
588 |
-
files = chain(files, script_scheme_files)
|
589 |
-
|
590 |
-
for file in files:
|
591 |
-
file.save()
|
592 |
-
record_installed(file.src_record_path, file.dest_path, file.changed)
|
593 |
-
|
594 |
-
def pyc_source_file_paths() -> Generator[str, None, None]:
|
595 |
-
# We de-duplicate installation paths, since there can be overlap (e.g.
|
596 |
-
# file in .data maps to same location as file in wheel root).
|
597 |
-
# Sorting installation paths makes it easier to reproduce and debug
|
598 |
-
# issues related to permissions on existing files.
|
599 |
-
for installed_path in sorted(set(installed.values())):
|
600 |
-
full_installed_path = os.path.join(lib_dir, installed_path)
|
601 |
-
if not os.path.isfile(full_installed_path):
|
602 |
-
continue
|
603 |
-
if not full_installed_path.endswith(".py"):
|
604 |
-
continue
|
605 |
-
yield full_installed_path
|
606 |
-
|
607 |
-
def pyc_output_path(path: str) -> str:
|
608 |
-
"""Return the path the pyc file would have been written to."""
|
609 |
-
return importlib.util.cache_from_source(path)
|
610 |
-
|
611 |
-
# Compile all of the pyc files for the installed files
|
612 |
-
if pycompile:
|
613 |
-
with captured_stdout() as stdout:
|
614 |
-
with warnings.catch_warnings():
|
615 |
-
warnings.filterwarnings("ignore")
|
616 |
-
for path in pyc_source_file_paths():
|
617 |
-
success = compileall.compile_file(path, force=True, quiet=True)
|
618 |
-
if success:
|
619 |
-
pyc_path = pyc_output_path(path)
|
620 |
-
assert os.path.exists(pyc_path)
|
621 |
-
pyc_record_path = cast(
|
622 |
-
"RecordPath", pyc_path.replace(os.path.sep, "/")
|
623 |
-
)
|
624 |
-
record_installed(pyc_record_path, pyc_path)
|
625 |
-
logger.debug(stdout.getvalue())
|
626 |
-
|
627 |
-
maker = PipScriptMaker(None, scheme.scripts)
|
628 |
-
|
629 |
-
# Ensure old scripts are overwritten.
|
630 |
-
# See https://github.com/pypa/pip/issues/1800
|
631 |
-
maker.clobber = True
|
632 |
-
|
633 |
-
# Ensure we don't generate any variants for scripts because this is almost
|
634 |
-
# never what somebody wants.
|
635 |
-
# See https://bitbucket.org/pypa/distlib/issue/35/
|
636 |
-
maker.variants = {""}
|
637 |
-
|
638 |
-
# This is required because otherwise distlib creates scripts that are not
|
639 |
-
# executable.
|
640 |
-
# See https://bitbucket.org/pypa/distlib/issue/32/
|
641 |
-
maker.set_mode = True
|
642 |
-
|
643 |
-
# Generate the console and GUI entry points specified in the wheel
|
644 |
-
scripts_to_generate = get_console_script_specs(console)
|
645 |
-
|
646 |
-
gui_scripts_to_generate = list(starmap("{} = {}".format, gui.items()))
|
647 |
-
|
648 |
-
generated_console_scripts = maker.make_multiple(scripts_to_generate)
|
649 |
-
generated.extend(generated_console_scripts)
|
650 |
-
|
651 |
-
generated.extend(maker.make_multiple(gui_scripts_to_generate, {"gui": True}))
|
652 |
-
|
653 |
-
if warn_script_location:
|
654 |
-
msg = message_about_scripts_not_on_PATH(generated_console_scripts)
|
655 |
-
if msg is not None:
|
656 |
-
logger.warning(msg)
|
657 |
-
|
658 |
-
generated_file_mode = 0o666 & ~current_umask()
|
659 |
-
|
660 |
-
@contextlib.contextmanager
|
661 |
-
def _generate_file(path: str, **kwargs: Any) -> Generator[BinaryIO, None, None]:
|
662 |
-
with adjacent_tmp_file(path, **kwargs) as f:
|
663 |
-
yield f
|
664 |
-
os.chmod(f.name, generated_file_mode)
|
665 |
-
replace(f.name, path)
|
666 |
-
|
667 |
-
dest_info_dir = os.path.join(lib_dir, info_dir)
|
668 |
-
|
669 |
-
# Record pip as the installer
|
670 |
-
installer_path = os.path.join(dest_info_dir, "INSTALLER")
|
671 |
-
with _generate_file(installer_path) as installer_file:
|
672 |
-
installer_file.write(b"pip\n")
|
673 |
-
generated.append(installer_path)
|
674 |
-
|
675 |
-
# Record the PEP 610 direct URL reference
|
676 |
-
if direct_url is not None:
|
677 |
-
direct_url_path = os.path.join(dest_info_dir, DIRECT_URL_METADATA_NAME)
|
678 |
-
with _generate_file(direct_url_path) as direct_url_file:
|
679 |
-
direct_url_file.write(direct_url.to_json().encode("utf-8"))
|
680 |
-
generated.append(direct_url_path)
|
681 |
-
|
682 |
-
# Record the REQUESTED file
|
683 |
-
if requested:
|
684 |
-
requested_path = os.path.join(dest_info_dir, "REQUESTED")
|
685 |
-
with open(requested_path, "wb"):
|
686 |
-
pass
|
687 |
-
generated.append(requested_path)
|
688 |
-
|
689 |
-
record_text = distribution.read_text("RECORD")
|
690 |
-
record_rows = list(csv.reader(record_text.splitlines()))
|
691 |
-
|
692 |
-
rows = get_csv_rows_for_installed(
|
693 |
-
record_rows,
|
694 |
-
installed=installed,
|
695 |
-
changed=changed,
|
696 |
-
generated=generated,
|
697 |
-
lib_dir=lib_dir,
|
698 |
-
)
|
699 |
-
|
700 |
-
# Record details of all files installed
|
701 |
-
record_path = os.path.join(dest_info_dir, "RECORD")
|
702 |
-
|
703 |
-
with _generate_file(record_path, **csv_io_kwargs("w")) as record_file:
|
704 |
-
# Explicitly cast to typing.IO[str] as a workaround for the mypy error:
|
705 |
-
# "writer" has incompatible type "BinaryIO"; expected "_Writer"
|
706 |
-
writer = csv.writer(cast("IO[str]", record_file))
|
707 |
-
writer.writerows(_normalized_outrows(rows))
|
708 |
-
|
709 |
-
|
710 |
-
@contextlib.contextmanager
|
711 |
-
def req_error_context(req_description: str) -> Generator[None, None, None]:
|
712 |
-
try:
|
713 |
-
yield
|
714 |
-
except InstallationError as e:
|
715 |
-
message = "For req: {}. {}".format(req_description, e.args[0])
|
716 |
-
raise InstallationError(message) from e
|
717 |
-
|
718 |
-
|
719 |
-
def install_wheel(
|
720 |
-
name: str,
|
721 |
-
wheel_path: str,
|
722 |
-
scheme: Scheme,
|
723 |
-
req_description: str,
|
724 |
-
pycompile: bool = True,
|
725 |
-
warn_script_location: bool = True,
|
726 |
-
direct_url: Optional[DirectUrl] = None,
|
727 |
-
requested: bool = False,
|
728 |
-
) -> None:
|
729 |
-
with ZipFile(wheel_path, allowZip64=True) as z:
|
730 |
-
with req_error_context(req_description):
|
731 |
-
_install_wheel(
|
732 |
-
name=name,
|
733 |
-
wheel_zip=z,
|
734 |
-
wheel_path=wheel_path,
|
735 |
-
scheme=scheme,
|
736 |
-
pycompile=pycompile,
|
737 |
-
warn_script_location=warn_script_location,
|
738 |
-
direct_url=direct_url,
|
739 |
-
requested=requested,
|
740 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/setuptools/_distutils/command/install_egg_info.py
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
distutils.command.install_egg_info
|
3 |
-
|
4 |
-
Implements the Distutils 'install_egg_info' command, for installing
|
5 |
-
a package's PKG-INFO metadata.
|
6 |
-
"""
|
7 |
-
|
8 |
-
import os
|
9 |
-
import sys
|
10 |
-
import re
|
11 |
-
|
12 |
-
from distutils.cmd import Command
|
13 |
-
from distutils import log, dir_util
|
14 |
-
|
15 |
-
|
16 |
-
class install_egg_info(Command):
|
17 |
-
"""Install an .egg-info file for the package"""
|
18 |
-
|
19 |
-
description = "Install package's PKG-INFO metadata as an .egg-info file"
|
20 |
-
user_options = [
|
21 |
-
('install-dir=', 'd', "directory to install to"),
|
22 |
-
]
|
23 |
-
|
24 |
-
def initialize_options(self):
|
25 |
-
self.install_dir = None
|
26 |
-
|
27 |
-
@property
|
28 |
-
def basename(self):
|
29 |
-
"""
|
30 |
-
Allow basename to be overridden by child class.
|
31 |
-
Ref pypa/distutils#2.
|
32 |
-
"""
|
33 |
-
return "%s-%s-py%d.%d.egg-info" % (
|
34 |
-
to_filename(safe_name(self.distribution.get_name())),
|
35 |
-
to_filename(safe_version(self.distribution.get_version())),
|
36 |
-
*sys.version_info[:2],
|
37 |
-
)
|
38 |
-
|
39 |
-
def finalize_options(self):
|
40 |
-
self.set_undefined_options('install_lib', ('install_dir', 'install_dir'))
|
41 |
-
self.target = os.path.join(self.install_dir, self.basename)
|
42 |
-
self.outputs = [self.target]
|
43 |
-
|
44 |
-
def run(self):
|
45 |
-
target = self.target
|
46 |
-
if os.path.isdir(target) and not os.path.islink(target):
|
47 |
-
dir_util.remove_tree(target, dry_run=self.dry_run)
|
48 |
-
elif os.path.exists(target):
|
49 |
-
self.execute(os.unlink, (self.target,), "Removing " + target)
|
50 |
-
elif not os.path.isdir(self.install_dir):
|
51 |
-
self.execute(
|
52 |
-
os.makedirs, (self.install_dir,), "Creating " + self.install_dir
|
53 |
-
)
|
54 |
-
log.info("Writing %s", target)
|
55 |
-
if not self.dry_run:
|
56 |
-
with open(target, 'w', encoding='UTF-8') as f:
|
57 |
-
self.distribution.metadata.write_pkg_file(f)
|
58 |
-
|
59 |
-
def get_outputs(self):
|
60 |
-
return self.outputs
|
61 |
-
|
62 |
-
|
63 |
-
# The following routines are taken from setuptools' pkg_resources module and
|
64 |
-
# can be replaced by importing them from pkg_resources once it is included
|
65 |
-
# in the stdlib.
|
66 |
-
|
67 |
-
|
68 |
-
def safe_name(name):
|
69 |
-
"""Convert an arbitrary string to a standard distribution name
|
70 |
-
|
71 |
-
Any runs of non-alphanumeric/. characters are replaced with a single '-'.
|
72 |
-
"""
|
73 |
-
return re.sub('[^A-Za-z0-9.]+', '-', name)
|
74 |
-
|
75 |
-
|
76 |
-
def safe_version(version):
|
77 |
-
"""Convert an arbitrary string to a standard version string
|
78 |
-
|
79 |
-
Spaces become dots, and all other non-alphanumeric characters become
|
80 |
-
dashes, with runs of multiple dashes condensed to a single dash.
|
81 |
-
"""
|
82 |
-
version = version.replace(' ', '.')
|
83 |
-
return re.sub('[^A-Za-z0-9.]+', '-', version)
|
84 |
-
|
85 |
-
|
86 |
-
def to_filename(name):
|
87 |
-
"""Convert a project or version name to its filename-escaped form
|
88 |
-
|
89 |
-
Any '-' characters are currently replaced with '_'.
|
90 |
-
"""
|
91 |
-
return name.replace('-', '_')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Billyosoro/ESRGAN/realesrgan/models/__init__.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
import importlib
|
2 |
-
from basicsr.utils import scandir
|
3 |
-
from os import path as osp
|
4 |
-
|
5 |
-
# automatically scan and import model modules for registry
|
6 |
-
# scan all the files that end with '_model.py' under the model folder
|
7 |
-
model_folder = osp.dirname(osp.abspath(__file__))
|
8 |
-
model_filenames = [osp.splitext(osp.basename(v))[0] for v in scandir(model_folder) if v.endswith('_model.py')]
|
9 |
-
# import all the model modules
|
10 |
-
_model_modules = [importlib.import_module(f'realesrgan.models.{file_name}') for file_name in model_filenames]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CAMP-ViL/Xplainer/descriptors.py
DELETED
@@ -1,204 +0,0 @@
|
|
1 |
-
disease_descriptors_chexpert = {
|
2 |
-
"No Finding": [
|
3 |
-
"Clear lung fields",
|
4 |
-
"Normal heart size and shape",
|
5 |
-
"No Abnormal fluid buildup",
|
6 |
-
"No Visible tumors or masses",
|
7 |
-
"No Signs of bone fractures or dislocations"
|
8 |
-
],
|
9 |
-
"Enlarged Cardiomediastinum": [
|
10 |
-
"Increased width of the heart shadow",
|
11 |
-
"Widened mediastinum",
|
12 |
-
"Abnormal contour of the heart border",
|
13 |
-
"Fluid or air within the pericardium",
|
14 |
-
"Mass within the mediastinum",
|
15 |
-
],
|
16 |
-
"Cardiomegaly": [
|
17 |
-
"Increased size of the heart shadow",
|
18 |
-
"Enlargement of the heart silhouette",
|
19 |
-
"Increased diameter of the heart border",
|
20 |
-
"Increased cardiothoracic ratio",
|
21 |
-
],
|
22 |
-
"Lung Opacity": [
|
23 |
-
"Increased density in the lung field",
|
24 |
-
"Whitish or grayish area in the lung field",
|
25 |
-
"Obscured or blurred margins of the lung field",
|
26 |
-
"Loss of normal lung markings within the opacity",
|
27 |
-
"Air bronchograms within the opacity",
|
28 |
-
"Fluid levels within the opacity",
|
29 |
-
"Silhouette sign loss with adjacent structures",
|
30 |
-
|
31 |
-
],
|
32 |
-
"Lung Lesion": [
|
33 |
-
"Consolidation of lung tissue",
|
34 |
-
"Pleural effusion",
|
35 |
-
"Cavities or abscesses in the lung",
|
36 |
-
"Abnormal opacity or shadow in the lung",
|
37 |
-
"Irregular or blurred margins of the lung",
|
38 |
-
|
39 |
-
],
|
40 |
-
"Edema": [
|
41 |
-
"Blurry vascular markings in the lungs",
|
42 |
-
"Enlarged heart",
|
43 |
-
"Kerley B lines",
|
44 |
-
"Increased interstitial markings in the lungs",
|
45 |
-
"Widening of interstitial spaces",
|
46 |
-
],
|
47 |
-
"Consolidation": [
|
48 |
-
"Loss of lung volume",
|
49 |
-
"Increased density of lung tissue",
|
50 |
-
"Obliteration of the diaphragmatic silhouette",
|
51 |
-
"Presence of opacities",
|
52 |
-
],
|
53 |
-
"Pneumonia": [
|
54 |
-
"Consolidation of lung tissue",
|
55 |
-
"Air bronchograms",
|
56 |
-
"Cavitation",
|
57 |
-
"Interstitial opacities",
|
58 |
-
],
|
59 |
-
"Atelectasis": [
|
60 |
-
"Increased opacity",
|
61 |
-
"Volume loss of the affected lung region",
|
62 |
-
"Blunting of the costophrenic angle",
|
63 |
-
"Shifting of the mediastinum",
|
64 |
-
],
|
65 |
-
"Pneumothorax": [
|
66 |
-
"Tracheal deviation",
|
67 |
-
"Deep sulcus sign",
|
68 |
-
"Increased radiolucency",
|
69 |
-
"Flattening of the hemidiaphragm",
|
70 |
-
"Absence of lung markings",
|
71 |
-
"Shifting of the mediastinum"
|
72 |
-
],
|
73 |
-
"Pleural Effusion": [
|
74 |
-
"Blunting of costophrenic angles",
|
75 |
-
"Opacity in the lower lung fields",
|
76 |
-
"Mediastinal shift",
|
77 |
-
"Reduced lung volume",
|
78 |
-
"Presence of meniscus sign or veil-like appearance"
|
79 |
-
],
|
80 |
-
"Pleural Other": [
|
81 |
-
"Pleural thickening",
|
82 |
-
"Pleural calcification",
|
83 |
-
"Pleural masses or nodules",
|
84 |
-
"Pleural empyema",
|
85 |
-
"Pleural fibrosis",
|
86 |
-
"Pleural adhesions"
|
87 |
-
],
|
88 |
-
"Fracture": [
|
89 |
-
"Visible breaks in the continuity of the bone",
|
90 |
-
"Misalignments of bone fragments",
|
91 |
-
"Displacements of bone fragments",
|
92 |
-
"Disruptions of the cortex or outer layer of the bone",
|
93 |
-
"Visible callus or healing tissue",
|
94 |
-
"Fracture lines that are jagged or irregular in shape",
|
95 |
-
"Multiple fracture lines that intersect at different angles"
|
96 |
-
],
|
97 |
-
"Support Devices": [
|
98 |
-
"Artificial joints or implants",
|
99 |
-
"Pacemakers or cardiac devices",
|
100 |
-
"Stents or other vascular devices",
|
101 |
-
"Prosthetic devices or limbs",
|
102 |
-
"Breast implants",
|
103 |
-
"Radiotherapy markers or seeds"
|
104 |
-
]
|
105 |
-
}
|
106 |
-
|
107 |
-
disease_descriptors_chestxray14 = {
|
108 |
-
|
109 |
-
"No Finding": ["No Finding"],
|
110 |
-
"Cardiomegaly": [
|
111 |
-
"Increased size of the heart shadow",
|
112 |
-
"Enlargement of the heart silhouette",
|
113 |
-
"Increased diameter of the heart border",
|
114 |
-
"Increased cardiothoracic ratio"
|
115 |
-
],
|
116 |
-
"Edema": [
|
117 |
-
"Blurry vascular markings in the lungs",
|
118 |
-
"Kerley B lines",
|
119 |
-
"Increased interstitial markings in the lungs",
|
120 |
-
"Widening of interstitial spaces"
|
121 |
-
],
|
122 |
-
"Consolidation": [
|
123 |
-
"Loss of lung volume",
|
124 |
-
"Increased density of lung tissue",
|
125 |
-
"Obliteration of the diaphragmatic silhouette",
|
126 |
-
"Presence of opacities"
|
127 |
-
],
|
128 |
-
"Pneumonia": [
|
129 |
-
"Consolidation of lung tissue",
|
130 |
-
"Air bronchograms",
|
131 |
-
"Cavitation",
|
132 |
-
"Interstitial opacities"
|
133 |
-
],
|
134 |
-
"Atelectasis": [
|
135 |
-
"Increased opacity",
|
136 |
-
"Volume loss of the affected lung region",
|
137 |
-
"Displacement of the diaphragm",
|
138 |
-
"Blunting of the costophrenic angle",
|
139 |
-
"Shifting of the mediastinum"
|
140 |
-
],
|
141 |
-
"Pneumothorax": [
|
142 |
-
"Tracheal deviation",
|
143 |
-
"Deep sulcus sign",
|
144 |
-
"Increased radiolucency",
|
145 |
-
"Flattening of the hemidiaphragm",
|
146 |
-
"Absence of lung markings",
|
147 |
-
"Shifting of the mediastinum"
|
148 |
-
],
|
149 |
-
"Pleural Effusion": [
|
150 |
-
"Blunting of costophrenic angles",
|
151 |
-
"Opacity in the lower lung fields",
|
152 |
-
"Mediastinal shift",
|
153 |
-
"Reduced lung volume",
|
154 |
-
"Meniscus sign or veil-like appearance"
|
155 |
-
],
|
156 |
-
"Infiltration": [
|
157 |
-
"Irregular or fuzzy borders around white areas",
|
158 |
-
"Blurring",
|
159 |
-
"Hazy or cloudy areas",
|
160 |
-
"Increased density or opacity of lung tissue",
|
161 |
-
"Air bronchograms",
|
162 |
-
],
|
163 |
-
"Mass": [
|
164 |
-
"Calcifications or mineralizations",
|
165 |
-
"Shadowing",
|
166 |
-
"Distortion or compression of tissues",
|
167 |
-
"Anomalous structure or irregularity in shape"
|
168 |
-
],
|
169 |
-
"Nodule": [
|
170 |
-
"Nodular shape that protrudes into a cavity or airway",
|
171 |
-
"Distinct edges or borders",
|
172 |
-
"Calcifications or speckled areas",
|
173 |
-
"Small round oral shaped spots",
|
174 |
-
"White shadows"
|
175 |
-
],
|
176 |
-
"Emphysema": [
|
177 |
-
"Flattened hemidiaphragm",
|
178 |
-
"Pulmonary bullae",
|
179 |
-
"Hyperlucent lungs",
|
180 |
-
"Horizontalisation of ribs",
|
181 |
-
"Barrel Chest",
|
182 |
-
],
|
183 |
-
"Fibrosis": [
|
184 |
-
"Reticular shadowing of the lung peripheries",
|
185 |
-
"Volume loss",
|
186 |
-
"Thickened and irregular interstitial markings",
|
187 |
-
"Bronchial dilation",
|
188 |
-
"Shaggy heart borders"
|
189 |
-
],
|
190 |
-
"Pleural Thickening": [
|
191 |
-
"Thickened pleural line",
|
192 |
-
"Loss of sharpness of the mediastinal border",
|
193 |
-
"Calcifications on the pleura",
|
194 |
-
"Lobulated peripheral shadowing",
|
195 |
-
"Loss of lung volume",
|
196 |
-
],
|
197 |
-
"Hernia": [
|
198 |
-
"Bulge or swelling in the abdominal wall",
|
199 |
-
"Protrusion of intestine or other abdominal tissue",
|
200 |
-
"Swelling or enlargement of the herniated sac or surrounding tissues",
|
201 |
-
"Retro-cardiac air-fluid level",
|
202 |
-
"Thickening of intestinal folds"
|
203 |
-
]
|
204 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVH-vn1210/make_hair/minigpt4/__init__.py
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
Copyright (c) 2022, salesforce.com, inc.
|
3 |
-
All rights reserved.
|
4 |
-
SPDX-License-Identifier: BSD-3-Clause
|
5 |
-
For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6 |
-
"""
|
7 |
-
|
8 |
-
import os
|
9 |
-
import sys
|
10 |
-
|
11 |
-
from omegaconf import OmegaConf
|
12 |
-
|
13 |
-
from minigpt4.common.registry import registry
|
14 |
-
|
15 |
-
from minigpt4.datasets.builders import *
|
16 |
-
from minigpt4.models import *
|
17 |
-
from minigpt4.processors import *
|
18 |
-
from minigpt4.tasks import *
|
19 |
-
|
20 |
-
|
21 |
-
root_dir = os.path.dirname(os.path.abspath(__file__))
|
22 |
-
default_cfg = OmegaConf.load(os.path.join(root_dir, "configs/default.yaml"))
|
23 |
-
|
24 |
-
registry.register_path("library_root", root_dir)
|
25 |
-
repo_root = os.path.join(root_dir, "..")
|
26 |
-
registry.register_path("repo_root", repo_root)
|
27 |
-
cache_root = os.path.join(repo_root, default_cfg.env.cache_root)
|
28 |
-
registry.register_path("cache_root", cache_root)
|
29 |
-
|
30 |
-
registry.register("MAX_INT", sys.maxsize)
|
31 |
-
registry.register("SPLIT_NAMES", ["train", "val", "test"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/model_zoo/__init__.py
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
2 |
-
"""
|
3 |
-
Model Zoo API for Detectron2: a collection of functions to create common model architectures and
|
4 |
-
optionally load pre-trained weights as released in
|
5 |
-
`MODEL_ZOO.md <https://github.com/facebookresearch/detectron2/blob/master/MODEL_ZOO.md>`_.
|
6 |
-
"""
|
7 |
-
from .model_zoo import get, get_config_file, get_checkpoint_url
|
8 |
-
|
9 |
-
__all__ = ["get_checkpoint_url", "get", "get_config_file"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/pybind11/tests/test_enum.cpp
DELETED
@@ -1,87 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
tests/test_enums.cpp -- enumerations
|
3 |
-
|
4 |
-
Copyright (c) 2016 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 |
-
#include "pybind11_tests.h"
|
11 |
-
|
12 |
-
TEST_SUBMODULE(enums, m) {
|
13 |
-
// test_unscoped_enum
|
14 |
-
enum UnscopedEnum {
|
15 |
-
EOne = 1,
|
16 |
-
ETwo,
|
17 |
-
EThree
|
18 |
-
};
|
19 |
-
py::enum_<UnscopedEnum>(m, "UnscopedEnum", py::arithmetic(), "An unscoped enumeration")
|
20 |
-
.value("EOne", EOne, "Docstring for EOne")
|
21 |
-
.value("ETwo", ETwo, "Docstring for ETwo")
|
22 |
-
.value("EThree", EThree, "Docstring for EThree")
|
23 |
-
.export_values();
|
24 |
-
|
25 |
-
// test_scoped_enum
|
26 |
-
enum class ScopedEnum {
|
27 |
-
Two = 2,
|
28 |
-
Three
|
29 |
-
};
|
30 |
-
py::enum_<ScopedEnum>(m, "ScopedEnum", py::arithmetic())
|
31 |
-
.value("Two", ScopedEnum::Two)
|
32 |
-
.value("Three", ScopedEnum::Three);
|
33 |
-
|
34 |
-
m.def("test_scoped_enum", [](ScopedEnum z) {
|
35 |
-
return "ScopedEnum::" + std::string(z == ScopedEnum::Two ? "Two" : "Three");
|
36 |
-
});
|
37 |
-
|
38 |
-
// test_binary_operators
|
39 |
-
enum Flags {
|
40 |
-
Read = 4,
|
41 |
-
Write = 2,
|
42 |
-
Execute = 1
|
43 |
-
};
|
44 |
-
py::enum_<Flags>(m, "Flags", py::arithmetic())
|
45 |
-
.value("Read", Flags::Read)
|
46 |
-
.value("Write", Flags::Write)
|
47 |
-
.value("Execute", Flags::Execute)
|
48 |
-
.export_values();
|
49 |
-
|
50 |
-
// test_implicit_conversion
|
51 |
-
class ClassWithUnscopedEnum {
|
52 |
-
public:
|
53 |
-
enum EMode {
|
54 |
-
EFirstMode = 1,
|
55 |
-
ESecondMode
|
56 |
-
};
|
57 |
-
|
58 |
-
static EMode test_function(EMode mode) {
|
59 |
-
return mode;
|
60 |
-
}
|
61 |
-
};
|
62 |
-
py::class_<ClassWithUnscopedEnum> exenum_class(m, "ClassWithUnscopedEnum");
|
63 |
-
exenum_class.def_static("test_function", &ClassWithUnscopedEnum::test_function);
|
64 |
-
py::enum_<ClassWithUnscopedEnum::EMode>(exenum_class, "EMode")
|
65 |
-
.value("EFirstMode", ClassWithUnscopedEnum::EFirstMode)
|
66 |
-
.value("ESecondMode", ClassWithUnscopedEnum::ESecondMode)
|
67 |
-
.export_values();
|
68 |
-
|
69 |
-
// test_enum_to_int
|
70 |
-
m.def("test_enum_to_int", [](int) { });
|
71 |
-
m.def("test_enum_to_uint", [](uint32_t) { });
|
72 |
-
m.def("test_enum_to_long_long", [](long long) { });
|
73 |
-
|
74 |
-
// test_duplicate_enum_name
|
75 |
-
enum SimpleEnum
|
76 |
-
{
|
77 |
-
ONE, TWO, THREE
|
78 |
-
};
|
79 |
-
|
80 |
-
m.def("register_bad_enum", [m]() {
|
81 |
-
py::enum_<SimpleEnum>(m, "SimpleEnum")
|
82 |
-
.value("ONE", SimpleEnum::ONE) //NOTE: all value function calls are called with the same first parameter value
|
83 |
-
.value("ONE", SimpleEnum::TWO)
|
84 |
-
.value("ONE", SimpleEnum::THREE)
|
85 |
-
.export_values();
|
86 |
-
});
|
87 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/execution_policy.h
DELETED
@@ -1,396 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Copyright 2008-2013 NVIDIA Corporation
|
3 |
-
*
|
4 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
* you may not use this file except in compliance with the License.
|
6 |
-
* You may obtain a copy of the License at
|
7 |
-
*
|
8 |
-
* http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
*
|
10 |
-
* Unless required by applicable law or agreed to in writing, software
|
11 |
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
* See the License for the specific language governing permissions and
|
14 |
-
* limitations under the License.
|
15 |
-
*/
|
16 |
-
|
17 |
-
/*! \file thrust/execution_policy.h
|
18 |
-
* \brief Thrust execution policies.
|
19 |
-
*/
|
20 |
-
|
21 |
-
#pragma once
|
22 |
-
|
23 |
-
#include <thrust/detail/config.h>
|
24 |
-
#include <thrust/detail/execution_policy.h>
|
25 |
-
#include <thrust/detail/execute_with_allocator.h>
|
26 |
-
#include <thrust/detail/seq.h>
|
27 |
-
|
28 |
-
//! \cond
|
29 |
-
|
30 |
-
// #include the host system's execution_policy header
|
31 |
-
#define __THRUST_HOST_SYSTEM_EXECUTION_POLICY_HEADER <__THRUST_HOST_SYSTEM_ROOT/execution_policy.h>
|
32 |
-
#include __THRUST_HOST_SYSTEM_EXECUTION_POLICY_HEADER
|
33 |
-
#undef __THRUST_HOST_SYSTEM_EXECUTION_POLICY_HEADER
|
34 |
-
|
35 |
-
// #include the device system's execution_policy.h header
|
36 |
-
#define __THRUST_DEVICE_SYSTEM_EXECUTION_POLICY_HEADER <__THRUST_DEVICE_SYSTEM_ROOT/execution_policy.h>
|
37 |
-
#include __THRUST_DEVICE_SYSTEM_EXECUTION_POLICY_HEADER
|
38 |
-
#undef __THRUST_DEVICE_SYSTEM_EXECUTION_POLICY_HEADER
|
39 |
-
|
40 |
-
//! \endcond
|
41 |
-
|
42 |
-
namespace thrust
|
43 |
-
{
|
44 |
-
|
45 |
-
|
46 |
-
/*! \cond
|
47 |
-
*/
|
48 |
-
|
49 |
-
|
50 |
-
namespace detail
|
51 |
-
{
|
52 |
-
|
53 |
-
|
54 |
-
typedef thrust::system::__THRUST_HOST_SYSTEM_NAMESPACE::detail::par_t host_t;
|
55 |
-
|
56 |
-
|
57 |
-
typedef thrust::system::__THRUST_DEVICE_SYSTEM_NAMESPACE::detail::par_t device_t;
|
58 |
-
|
59 |
-
|
60 |
-
} // end detail
|
61 |
-
|
62 |
-
|
63 |
-
/*! \endcond
|
64 |
-
*/
|
65 |
-
|
66 |
-
|
67 |
-
/*! \addtogroup execution_policies Parallel Execution Policies
|
68 |
-
* \{
|
69 |
-
*/
|
70 |
-
|
71 |
-
|
72 |
-
// define execution_policy for the purpose of Doxygenating it
|
73 |
-
// it is actually defined elsewhere
|
74 |
-
#if 0
|
75 |
-
/*! \p execution_policy is the base class for all Thrust parallel execution policies
|
76 |
-
* like \p thrust::host, \p thrust::device, and each backend system's tag type.
|
77 |
-
*
|
78 |
-
* Custom user-defined backends should derive a policy from this type in order to
|
79 |
-
* interoperate with Thrust algorithm dispatch.
|
80 |
-
*
|
81 |
-
* The following code snippet demonstrates how to derive a standalone custom execution policy
|
82 |
-
* from \p thrust::execution_policy to implement a backend which only implements \p for_each:
|
83 |
-
*
|
84 |
-
* \code
|
85 |
-
* #include <thrust/execution_policy.h>
|
86 |
-
* #include <iostream>
|
87 |
-
*
|
88 |
-
* // define a type derived from thrust::execution_policy to distinguish our custom execution policy:
|
89 |
-
* struct my_policy : thrust::execution_policy<my_policy> {};
|
90 |
-
*
|
91 |
-
* // overload for_each on my_policy
|
92 |
-
* template<typename Iterator, typename Function>
|
93 |
-
* Iterator for_each(my_policy, Iterator first, Iterator last, Function f)
|
94 |
-
* {
|
95 |
-
* std::cout << "Hello, world from for_each(my_policy)!" << std::endl;
|
96 |
-
*
|
97 |
-
* for(; first < last; ++first)
|
98 |
-
* {
|
99 |
-
* f(*first);
|
100 |
-
* }
|
101 |
-
*
|
102 |
-
* return first;
|
103 |
-
* }
|
104 |
-
*
|
105 |
-
* struct ignore_argument
|
106 |
-
* {
|
107 |
-
* void operator()(int) {}
|
108 |
-
* };
|
109 |
-
*
|
110 |
-
* int main()
|
111 |
-
* {
|
112 |
-
* int data[4];
|
113 |
-
*
|
114 |
-
* // dispatch thrust::for_each using our custom policy:
|
115 |
-
* my_policy exec;
|
116 |
-
* thrust::for_each(exec, data, data + 4, ignore_argument());
|
117 |
-
*
|
118 |
-
* // can't dispatch thrust::transform because no overload exists for my_policy:
|
119 |
-
* //thrust::transform(exec, data, data, + 4, data, thrust::identity<int>()); // error!
|
120 |
-
*
|
121 |
-
* return 0;
|
122 |
-
* }
|
123 |
-
* \endcode
|
124 |
-
*
|
125 |
-
* \see host_execution_policy
|
126 |
-
* \see device_execution_policy
|
127 |
-
*/
|
128 |
-
template<typename DerivedPolicy>
|
129 |
-
struct execution_policy : thrust::detail::execution_policy_base<DerivedPolicy>
|
130 |
-
{};
|
131 |
-
#endif
|
132 |
-
|
133 |
-
|
134 |
-
/*! \p host_execution_policy is the base class for all Thrust parallel execution policies
|
135 |
-
* which are derived from Thrust's default host backend system configured with the \p THRUST_HOST_SYSTEM
|
136 |
-
* macro.
|
137 |
-
*
|
138 |
-
* Custom user-defined backends which wish to inherit the functionality of Thrust's host backend system
|
139 |
-
* should derive a policy from this type in order to interoperate with Thrust algorithm dispatch.
|
140 |
-
*
|
141 |
-
* The following code snippet demonstrates how to derive a standalone custom execution policy from
|
142 |
-
* \p thrust::host_execution_policy to implement a backend which specializes \p for_each while inheriting
|
143 |
-
* the behavior of every other algorithm from the host system:
|
144 |
-
*
|
145 |
-
* \code
|
146 |
-
* #include <thrust/execution_policy.h>
|
147 |
-
* #include <iostream>
|
148 |
-
*
|
149 |
-
* // define a type derived from thrust::host_execution_policy to distinguish our custom execution policy:
|
150 |
-
* struct my_policy : thrust::host_execution_policy<my_policy> {};
|
151 |
-
*
|
152 |
-
* // overload for_each on my_policy
|
153 |
-
* template<typename Iterator, typename Function>
|
154 |
-
* Iterator for_each(my_policy, Iterator first, Iterator last, Function f)
|
155 |
-
* {
|
156 |
-
* std::cout << "Hello, world from for_each(my_policy)!" << std::endl;
|
157 |
-
*
|
158 |
-
* for(; first < last; ++first)
|
159 |
-
* {
|
160 |
-
* f(*first);
|
161 |
-
* }
|
162 |
-
*
|
163 |
-
* return first;
|
164 |
-
* }
|
165 |
-
*
|
166 |
-
* struct ignore_argument
|
167 |
-
* {
|
168 |
-
* void operator()(int) {}
|
169 |
-
* };
|
170 |
-
*
|
171 |
-
* int main()
|
172 |
-
* {
|
173 |
-
* int data[4];
|
174 |
-
*
|
175 |
-
* // dispatch thrust::for_each using our custom policy:
|
176 |
-
* my_policy exec;
|
177 |
-
* thrust::for_each(exec, data, data + 4, ignore_argument());
|
178 |
-
*
|
179 |
-
* // dispatch thrust::transform whose behavior our policy inherits
|
180 |
-
* thrust::transform(exec, data, data, + 4, data, thrust::identity<int>());
|
181 |
-
*
|
182 |
-
* return 0;
|
183 |
-
* }
|
184 |
-
* \endcode
|
185 |
-
*
|
186 |
-
* \see execution_policy
|
187 |
-
* \see device_execution_policy
|
188 |
-
*/
|
189 |
-
template<typename DerivedPolicy>
|
190 |
-
struct host_execution_policy
|
191 |
-
: thrust::system::__THRUST_HOST_SYSTEM_NAMESPACE::execution_policy<DerivedPolicy>
|
192 |
-
{};
|
193 |
-
|
194 |
-
|
195 |
-
/*! \p device_execution_policy is the base class for all Thrust parallel execution policies
|
196 |
-
* which are derived from Thrust's default device backend system configured with the \p THRUST_DEVICE_SYSTEM
|
197 |
-
* macro.
|
198 |
-
*
|
199 |
-
* Custom user-defined backends which wish to inherit the functionality of Thrust's device backend system
|
200 |
-
* should derive a policy from this type in order to interoperate with Thrust algorithm dispatch.
|
201 |
-
*
|
202 |
-
* The following code snippet demonstrates how to derive a standalone custom execution policy from
|
203 |
-
* \p thrust::device_execution_policy to implement a backend which specializes \p for_each while inheriting
|
204 |
-
* the behavior of every other algorithm from the device system:
|
205 |
-
*
|
206 |
-
* \code
|
207 |
-
* #include <thrust/execution_policy.h>
|
208 |
-
* #include <iostream>
|
209 |
-
*
|
210 |
-
* // define a type derived from thrust::device_execution_policy to distinguish our custom execution policy:
|
211 |
-
* struct my_policy : thrust::device_execution_policy<my_policy> {};
|
212 |
-
*
|
213 |
-
* // overload for_each on my_policy
|
214 |
-
* template<typename Iterator, typename Function>
|
215 |
-
* Iterator for_each(my_policy, Iterator first, Iterator last, Function f)
|
216 |
-
* {
|
217 |
-
* std::cout << "Hello, world from for_each(my_policy)!" << std::endl;
|
218 |
-
*
|
219 |
-
* for(; first < last; ++first)
|
220 |
-
* {
|
221 |
-
* f(*first);
|
222 |
-
* }
|
223 |
-
*
|
224 |
-
* return first;
|
225 |
-
* }
|
226 |
-
*
|
227 |
-
* struct ignore_argument
|
228 |
-
* {
|
229 |
-
* void operator()(int) {}
|
230 |
-
* };
|
231 |
-
*
|
232 |
-
* int main()
|
233 |
-
* {
|
234 |
-
* int data[4];
|
235 |
-
*
|
236 |
-
* // dispatch thrust::for_each using our custom policy:
|
237 |
-
* my_policy exec;
|
238 |
-
* thrust::for_each(exec, data, data + 4, ignore_argument());
|
239 |
-
*
|
240 |
-
* // dispatch thrust::transform whose behavior our policy inherits
|
241 |
-
* thrust::transform(exec, data, data, + 4, data, thrust::identity<int>());
|
242 |
-
*
|
243 |
-
* return 0;
|
244 |
-
* }
|
245 |
-
* \endcode
|
246 |
-
*
|
247 |
-
* \see execution_policy
|
248 |
-
* \see host_execution_policy
|
249 |
-
*/
|
250 |
-
template<typename DerivedPolicy>
|
251 |
-
struct device_execution_policy
|
252 |
-
: thrust::system::__THRUST_DEVICE_SYSTEM_NAMESPACE::execution_policy<DerivedPolicy>
|
253 |
-
{};
|
254 |
-
|
255 |
-
|
256 |
-
/*! \p thrust::host is the default parallel execution policy associated with Thrust's host backend system
|
257 |
-
* configured by the \p THRUST_HOST_SYSTEM macro.
|
258 |
-
*
|
259 |
-
* Instead of relying on implicit algorithm dispatch through iterator system tags, users may directly target
|
260 |
-
* algorithm dispatch at Thrust's host system by providing \p thrust::host as an algorithm parameter.
|
261 |
-
*
|
262 |
-
* Explicit dispatch can be useful in avoiding the introduction of data copies into containers such as
|
263 |
-
* \p thrust::host_vector.
|
264 |
-
*
|
265 |
-
* Note that even though \p thrust::host targets the host CPU, it is a parallel execution policy. That is,
|
266 |
-
* the order that an algorithm invokes functors or dereferences iterators is not defined.
|
267 |
-
*
|
268 |
-
* The type of \p thrust::host is implementation-defined.
|
269 |
-
*
|
270 |
-
* The following code snippet demonstrates how to use \p thrust::host to explicitly dispatch an invocation
|
271 |
-
* of \p thrust::for_each to the host backend system:
|
272 |
-
*
|
273 |
-
* \code
|
274 |
-
* #include <thrust/for_each.h>
|
275 |
-
* #include <thrust/execution_policy.h>
|
276 |
-
* #include <cstdio>
|
277 |
-
*
|
278 |
-
* struct printf_functor
|
279 |
-
* {
|
280 |
-
* __host__ __device__
|
281 |
-
* void operator()(int x)
|
282 |
-
* {
|
283 |
-
* printf("%d\n", x);
|
284 |
-
* }
|
285 |
-
* };
|
286 |
-
* ...
|
287 |
-
* int vec(3);
|
288 |
-
* vec[0] = 0; vec[1] = 1; vec[2] = 2;
|
289 |
-
*
|
290 |
-
* thrust::for_each(thrust::host, vec.begin(), vec.end(), printf_functor());
|
291 |
-
*
|
292 |
-
* // 0 1 2 is printed to standard output in some unspecified order
|
293 |
-
* \endcode
|
294 |
-
*
|
295 |
-
* \see host_execution_policy
|
296 |
-
* \see thrust::device
|
297 |
-
*/
|
298 |
-
static const detail::host_t host;
|
299 |
-
|
300 |
-
|
301 |
-
/*! \p thrust::device is the default parallel execution policy associated with Thrust's device backend system
|
302 |
-
* configured by the \p THRUST_DEVICE_SYSTEM macro.
|
303 |
-
*
|
304 |
-
* Instead of relying on implicit algorithm dispatch through iterator system tags, users may directly target
|
305 |
-
* algorithm dispatch at Thrust's device system by providing \p thrust::device as an algorithm parameter.
|
306 |
-
*
|
307 |
-
* Explicit dispatch can be useful in avoiding the introduction of data copies into containers such as
|
308 |
-
* \p thrust::device_vector or to avoid wrapping e.g. raw pointers allocated by the CUDA API with types
|
309 |
-
* such as \p thrust::device_ptr.
|
310 |
-
*
|
311 |
-
* The user must take care to guarantee that the iterators provided to an algorithm are compatible with
|
312 |
-
* the device backend system. For example, raw pointers allocated by <tt>std::malloc</tt> typically
|
313 |
-
* cannot be dereferenced by a GPU. For this reason, raw pointers allocated by host APIs should not be mixed
|
314 |
-
* with a \p thrust::device algorithm invocation when the device backend is CUDA.
|
315 |
-
*
|
316 |
-
* The type of \p thrust::device is implementation-defined.
|
317 |
-
*
|
318 |
-
* The following code snippet demonstrates how to use \p thrust::device to explicitly dispatch an invocation
|
319 |
-
* of \p thrust::for_each to the device backend system:
|
320 |
-
*
|
321 |
-
* \code
|
322 |
-
* #include <thrust/for_each.h>
|
323 |
-
* #include <thrust/device_vector.h>
|
324 |
-
* #include <thrust/execution_policy.h>
|
325 |
-
* #include <cstdio>
|
326 |
-
*
|
327 |
-
* struct printf_functor
|
328 |
-
* {
|
329 |
-
* __host__ __device__
|
330 |
-
* void operator()(int x)
|
331 |
-
* {
|
332 |
-
* printf("%d\n", x);
|
333 |
-
* }
|
334 |
-
* };
|
335 |
-
* ...
|
336 |
-
* thrust::device_vector<int> vec(3);
|
337 |
-
* vec[0] = 0; vec[1] = 1; vec[2] = 2;
|
338 |
-
*
|
339 |
-
* thrust::for_each(thrust::device, vec.begin(), vec.end(), printf_functor());
|
340 |
-
*
|
341 |
-
* // 0 1 2 is printed to standard output in some unspecified order
|
342 |
-
* \endcode
|
343 |
-
*
|
344 |
-
* \see host_execution_policy
|
345 |
-
* \see thrust::device
|
346 |
-
*/
|
347 |
-
THRUST_INLINE_CONSTANT detail::device_t device;
|
348 |
-
|
349 |
-
|
350 |
-
// define seq for the purpose of Doxygenating it
|
351 |
-
// it is actually defined elsewhere
|
352 |
-
#if 0
|
353 |
-
/*! \p thrust::seq is an execution policy which requires an algorithm invocation to execute sequentially
|
354 |
-
* in the current thread. It can not be configured by a compile-time macro.
|
355 |
-
*
|
356 |
-
* The type of \p thrust::seq is implementation-defined.
|
357 |
-
*
|
358 |
-
* The following code snippet demonstrates how to use \p thrust::seq to explicitly execute an invocation
|
359 |
-
* of \p thrust::for_each sequentially:
|
360 |
-
*
|
361 |
-
* \code
|
362 |
-
* #include <thrust/for_each.h>
|
363 |
-
* #include <thrust/execution_policy.h>
|
364 |
-
* #include <vector>
|
365 |
-
* #include <cstdio>
|
366 |
-
*
|
367 |
-
* struct printf_functor
|
368 |
-
* {
|
369 |
-
* __host__ __device__
|
370 |
-
* void operator()(int x)
|
371 |
-
* {
|
372 |
-
* printf("%d\n", x);
|
373 |
-
* }
|
374 |
-
* };
|
375 |
-
* ...
|
376 |
-
* std::vector<int> vec(3);
|
377 |
-
* vec[0] = 0; vec[1] = 1; vec[2] = 2;
|
378 |
-
*
|
379 |
-
* thrust::for_each(thrust::seq, vec.begin(), vec.end(), printf_functor());
|
380 |
-
*
|
381 |
-
* // 0 1 2 is printed to standard output in sequential order
|
382 |
-
* \endcode
|
383 |
-
*
|
384 |
-
* \see thrust::host
|
385 |
-
* \see thrust::device
|
386 |
-
*/
|
387 |
-
static const detail::seq_t seq;
|
388 |
-
#endif
|
389 |
-
|
390 |
-
|
391 |
-
/*! \}
|
392 |
-
*/
|
393 |
-
|
394 |
-
|
395 |
-
} // end thrust
|
396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/regionclip-demo/detectron2/data/clip_datasets/clip_img_txt_pair_tsv.py
DELETED
@@ -1,602 +0,0 @@
|
|
1 |
-
from __future__ import absolute_import
|
2 |
-
from __future__ import division
|
3 |
-
from __future__ import print_function
|
4 |
-
|
5 |
-
import os
|
6 |
-
from io import BytesIO
|
7 |
-
import json
|
8 |
-
import logging
|
9 |
-
import base64
|
10 |
-
import threading
|
11 |
-
import random
|
12 |
-
import numpy as np
|
13 |
-
from typing import Callable, List, Tuple, Union
|
14 |
-
from PIL import Image
|
15 |
-
from PIL import ImageFile
|
16 |
-
ImageFile.LOAD_TRUNCATED_IMAGES = True
|
17 |
-
import torch
|
18 |
-
import torch.utils.data as data
|
19 |
-
from .oscar_tsv import InputExample, convert_example_to_features
|
20 |
-
from detectron2.structures.tsv_file import TSVFile, CompositeTSVFile
|
21 |
-
from detectron2.data.clip_datasets.clip_prompt_engineering import get_prompt_templates, prompt_engineering
|
22 |
-
#import spacy
|
23 |
-
|
24 |
-
def pre_fetch(tsv_filename: str):
|
25 |
-
logging.info('Pre-loading %s ...' % tsv_filename)
|
26 |
-
with open(tsv_filename, 'r'):
|
27 |
-
logging.info('Pre-loading %s ended.' % tsv_filename)
|
28 |
-
|
29 |
-
class CLIPImgTxtPairTSVDataset(data.Dataset):
|
30 |
-
"""
|
31 |
-
This class is intended for encapsulating Image/Text pair data for contrastive learning described in
|
32 |
-
the following paper,
|
33 |
-
"Learning Transferable Visual Models From Natural Language Supervision" (a.k.a CLIP)
|
34 |
-
Specifically, it is used to accomadate the tsv data format from Azure Cognition Service Group.
|
35 |
-
"""
|
36 |
-
def __init__(self,
|
37 |
-
image_tsv_file: Union[str, List[str]],
|
38 |
-
text_tsv_file: Union[str, List[str]],
|
39 |
-
transforms: Callable = None,
|
40 |
-
tokenizer: Callable = None,
|
41 |
-
seq_len = 0, context_length = 77, target_offset=0,
|
42 |
-
args = None,
|
43 |
-
dataset_name = "",
|
44 |
-
tokenizer_type = "bert",
|
45 |
-
is_train = True,
|
46 |
-
map_file = None,
|
47 |
-
filtered_datasets = ''):
|
48 |
-
self.args = args
|
49 |
-
self.is_train = is_train
|
50 |
-
self.dataset_names = dataset_name
|
51 |
-
self.tokenizer_type = tokenizer_type
|
52 |
-
self.target_offset = target_offset
|
53 |
-
self.seq_len = seq_len
|
54 |
-
|
55 |
-
self.transforms = transforms
|
56 |
-
self.tokenizer = tokenizer
|
57 |
-
self._chunk_sizes = None
|
58 |
-
self.context_length = context_length
|
59 |
-
|
60 |
-
self.prompt_templates = get_prompt_templates() # [:2]
|
61 |
-
self.spacy_nlp = None # spacy.load('en_core_web_sm')
|
62 |
-
|
63 |
-
self.class_selector = None
|
64 |
-
# self.class_selector = list(self.label2idx.keys()) if self.label2idx else None
|
65 |
-
|
66 |
-
self.label2idx = {}
|
67 |
-
self.idx2label = {}
|
68 |
-
self.classnames = {}
|
69 |
-
self.dataset_target_offsets = {}; offset = 0
|
70 |
-
|
71 |
-
self.num_classes = sum([len(val) for val in self.classnames.values()])
|
72 |
-
|
73 |
-
self.filtered_classnames = []
|
74 |
-
|
75 |
-
if isinstance(image_tsv_file, str) and isinstance(text_tsv_file, str):
|
76 |
-
# single tsv file
|
77 |
-
if (
|
78 |
-
os.path.splitext(image_tsv_file)[1].lower() == '.tsv'
|
79 |
-
and os.path.splitext(text_tsv_file)[1].lower() == '.tsv'
|
80 |
-
):
|
81 |
-
self.image_tsv_file = TSVFile(image_tsv_file, if_generate_lineidx=True)
|
82 |
-
self.text_tsv_file = TSVFile(text_tsv_file, if_generate_lineidx=True)
|
83 |
-
# multiple tsv files specified in a text file
|
84 |
-
elif (
|
85 |
-
os.path.splitext(image_tsv_file)[1].lower() == '.txt'
|
86 |
-
and os.path.splitext(text_tsv_file)[1].lower() == '.txt'
|
87 |
-
):
|
88 |
-
self.image_tsv_file = CompositeTSVFile(image_tsv_file)
|
89 |
-
self.text_tsv_file = CompositeTSVFile(text_tsv_file)
|
90 |
-
self._chunk_sizes = self.image_tsv_file.get_chunk_size()
|
91 |
-
else:
|
92 |
-
raise ValueError("Invalid input! Please check the tsv filenames.")
|
93 |
-
# multiple tsv files specified in a list
|
94 |
-
elif (
|
95 |
-
isinstance(image_tsv_file, list)
|
96 |
-
and isinstance(text_tsv_file, list)
|
97 |
-
):
|
98 |
-
assert len(image_tsv_file) == len(text_tsv_file), \
|
99 |
-
"Inconsistent number of Image/Text tsv files!"
|
100 |
-
assert len(image_tsv_file) == len(text_tsv_file), \
|
101 |
-
"Inconsistent number of Image/Text tsv files!"
|
102 |
-
self.image_tsv_path = image_tsv_file
|
103 |
-
self.text_tsv_path = text_tsv_file
|
104 |
-
self.image_tsv_file = CompositeTSVFile(image_tsv_file, class_selector=self.class_selector)
|
105 |
-
self.text_tsv_file = CompositeTSVFile(text_tsv_file, class_selector=self.class_selector)
|
106 |
-
self._chunk_sizes = self.image_tsv_file.get_chunk_size()
|
107 |
-
self._accumulated_chunk_sizes = np.cumsum(self._chunk_sizes).tolist()
|
108 |
-
else:
|
109 |
-
raise ValueError("Invalid input! Please check the tsv filenames.")
|
110 |
-
|
111 |
-
assert len(self.image_tsv_file) == len(self.text_tsv_file), \
|
112 |
-
"Inconsistent size of Image/Text ({}/{}) data!".format(
|
113 |
-
len(self.image_tsv_file), len(self.text_tsv_file)
|
114 |
-
)
|
115 |
-
|
116 |
-
def get_chunk_sizes(self):
|
117 |
-
return self._chunk_sizes
|
118 |
-
|
119 |
-
def get_class_boundaries(self):
|
120 |
-
# The samples of each class are organized class-by-class.
|
121 |
-
# _class_boundaries stores the lower- and upper-bound of each class.
|
122 |
-
return self.image_tsv_file.get_class_boundaries()
|
123 |
-
|
124 |
-
def _load_map(self, map_file: str):
|
125 |
-
if not map_file:
|
126 |
-
return None
|
127 |
-
|
128 |
-
label2idx = {}
|
129 |
-
with open(map_file) as f:
|
130 |
-
for line in f:
|
131 |
-
items = line.strip().split('\t')
|
132 |
-
label2idx[items[0]] = int(items[1])
|
133 |
-
|
134 |
-
return label2idx
|
135 |
-
|
136 |
-
def _load_darknet_map(self, map_file):
|
137 |
-
if not map_file:
|
138 |
-
return None
|
139 |
-
|
140 |
-
label2idx = {}
|
141 |
-
with open(map_file) as f:
|
142 |
-
linenum = 0
|
143 |
-
for l in f:
|
144 |
-
item = l.strip()
|
145 |
-
label2idx[item] = linenum
|
146 |
-
linenum += 1
|
147 |
-
|
148 |
-
return label2idx
|
149 |
-
|
150 |
-
def _pre_tokenize(self):
|
151 |
-
"""
|
152 |
-
pre-tokenize class names
|
153 |
-
"""
|
154 |
-
input_ids_all = []
|
155 |
-
input_masks_all = []
|
156 |
-
segment_ids_all = []
|
157 |
-
for k in range(len(self.classnames["imagenet"])):
|
158 |
-
cur_id = 0; img_id = 0
|
159 |
-
scale = 1.0
|
160 |
-
|
161 |
-
v = self.classnames["imagenet"].label_to_name(k)
|
162 |
-
if isinstance(v, str):
|
163 |
-
vs = [v]
|
164 |
-
elif isinstance(v, list):
|
165 |
-
vs = v
|
166 |
-
t1s = []
|
167 |
-
t2s = []
|
168 |
-
for v in vs:
|
169 |
-
for pt in self.prompt_templates:
|
170 |
-
t1s.append(prompt_engineering(v, template=pt))
|
171 |
-
t2s.append("")
|
172 |
-
input_ids = []
|
173 |
-
input_masks = []
|
174 |
-
segment_ids = []
|
175 |
-
is_next_labels = [0] * len(t1s)
|
176 |
-
is_img_matchs = [1] * len(t1s)
|
177 |
-
img_feat_len = 0
|
178 |
-
for t1, t2, is_next_label, is_img_match in zip(t1s, t2s, is_next_labels, is_img_matchs):
|
179 |
-
if self.tokenizer_type == "bert":
|
180 |
-
# tokenize
|
181 |
-
tokens_a = self.tokenizer.tokenize(t1)
|
182 |
-
tokens_b = None
|
183 |
-
|
184 |
-
# combine to one sample
|
185 |
-
cur_example = InputExample(guid=cur_id, tokens_a=tokens_a,
|
186 |
-
tokens_b=tokens_b, is_next=is_next_label,
|
187 |
-
img_id=img_id, is_img_match=is_img_match)
|
188 |
-
|
189 |
-
# transform sample to features
|
190 |
-
cur_features = convert_example_to_features(self.args, cur_example,
|
191 |
-
self.seq_len, self.tokenizer,
|
192 |
-
img_feat_len)
|
193 |
-
|
194 |
-
input_ids.append(torch.tensor(cur_features.input_ids, dtype=torch.long))
|
195 |
-
input_masks.append(torch.tensor(cur_features.input_mask, dtype=torch.long))
|
196 |
-
segment_ids.append(torch.tensor(cur_features.segment_ids, dtype=torch.long))
|
197 |
-
|
198 |
-
elif self.tokenizer_type == "bpe":
|
199 |
-
tokens_a = t1; tokens_b = None
|
200 |
-
# combine to one sample
|
201 |
-
cur_example = InputExample(guid=cur_id, tokens_a=tokens_a,
|
202 |
-
tokens_b=tokens_b, is_next=is_next_label,
|
203 |
-
img_id=img_id, is_img_match=is_img_match)
|
204 |
-
|
205 |
-
# transform sample to features
|
206 |
-
cur_features = convert_example_to_features_bpe(self.args, cur_example,
|
207 |
-
self.seq_len, self.tokenizer,
|
208 |
-
img_feat_len)
|
209 |
-
|
210 |
-
input_ids.append(torch.tensor(cur_features.input_ids, dtype=torch.long))
|
211 |
-
input_masks.append(torch.tensor(cur_features.input_mask, dtype=torch.long))
|
212 |
-
segment_ids.append(torch.tensor(cur_features.segment_ids, dtype=torch.long))
|
213 |
-
|
214 |
-
else:
|
215 |
-
raise NotImplementedError
|
216 |
-
input_ids_all.append(torch.stack(input_ids, 0))
|
217 |
-
input_masks_all.append(torch.stack(input_masks, 0))
|
218 |
-
segment_ids_all.append(torch.stack(segment_ids, 0))
|
219 |
-
|
220 |
-
self.input_ids_all_classes = torch.stack(input_ids_all, 0)
|
221 |
-
self.input_mask_all_classes = torch.stack(input_masks_all, 0)
|
222 |
-
self.segment_ids_all_classes = torch.stack(segment_ids_all, 0)
|
223 |
-
|
224 |
-
def _online_tokenize(self, text):
|
225 |
-
|
226 |
-
# random select a prompt template
|
227 |
-
temp_idx = np.random.randint(len(self.prompt_templates))
|
228 |
-
pt = self.prompt_templates[temp_idx]
|
229 |
-
|
230 |
-
names = text.split(";")
|
231 |
-
num_names = np.random.randint(len(names)) + 1
|
232 |
-
names_sampled = random.sample(names, num_names)
|
233 |
-
text = ", ".join(names_sampled)
|
234 |
-
|
235 |
-
t1 = prompt_engineering(text, template=pt)
|
236 |
-
|
237 |
-
cur_id = 0; img_id = 0; scale = 1.0
|
238 |
-
is_next_label = 0; is_img_match = 1
|
239 |
-
img_feat_len = 0
|
240 |
-
|
241 |
-
if self.tokenizer_type == "bert":
|
242 |
-
# tokenize
|
243 |
-
tokens_a = self.tokenizer.tokenize(t1)
|
244 |
-
tokens_b = None
|
245 |
-
|
246 |
-
# combine to one sample
|
247 |
-
cur_example = InputExample(guid=cur_id, tokens_a=tokens_a,
|
248 |
-
tokens_b=tokens_b, is_next=is_next_label,
|
249 |
-
img_id=img_id, is_img_match=is_img_match)
|
250 |
-
|
251 |
-
# transform sample to features
|
252 |
-
cur_features = convert_example_to_features(self.args, cur_example,
|
253 |
-
self.context_length, self.tokenizer,
|
254 |
-
img_feat_len)
|
255 |
-
|
256 |
-
|
257 |
-
elif self.tokenizer_type == "bpe":
|
258 |
-
tokens_a = t1; tokens_b = None
|
259 |
-
# combine to one sample
|
260 |
-
cur_example = InputExample(guid=cur_id, tokens_a=tokens_a,
|
261 |
-
tokens_b=tokens_b, is_next=is_next_label,
|
262 |
-
img_id=img_id, is_img_match=is_img_match)
|
263 |
-
|
264 |
-
# transform sample to features
|
265 |
-
cur_features = convert_example_to_features_bpe(self.args, cur_example,
|
266 |
-
self.context_length, self.tokenizer,
|
267 |
-
img_feat_len)
|
268 |
-
|
269 |
-
return torch.tensor(cur_features.input_ids, dtype=torch.long), \
|
270 |
-
torch.tensor(cur_features.input_mask, dtype=torch.long), \
|
271 |
-
torch.tensor(cur_features.segment_ids, dtype=torch.long)
|
272 |
-
|
273 |
-
def get_dataset_name(self, index):
|
274 |
-
"""
|
275 |
-
get dataset name according to index
|
276 |
-
"""
|
277 |
-
assert index < self._accumulated_chunk_sizes[-1], "index must in the range of accumulated data size"
|
278 |
-
for k, boundary in enumerate(self._accumulated_chunk_sizes):
|
279 |
-
if index < boundary:
|
280 |
-
return self.dataset_names[k], k
|
281 |
-
|
282 |
-
def get_target_offset(self, dataset_name):
|
283 |
-
return self.dataset_target_offsets[dataset_name]
|
284 |
-
|
285 |
-
def get_img_label_pair(self, items_image, index):
|
286 |
-
dataset_name, chunk_id = self.get_dataset_name(index)
|
287 |
-
target_offset = self.get_target_offset(dataset_name)
|
288 |
-
_, target, img = self._decode_data(items_image, dataset_name)
|
289 |
-
|
290 |
-
if self.transforms:
|
291 |
-
img = self.transforms(img)
|
292 |
-
|
293 |
-
if target == -1:
|
294 |
-
input_ids, input_mask, segment_ids = \
|
295 |
-
self._online_tokenize("uncovered image")
|
296 |
-
else:
|
297 |
-
classname = self.classnames[dataset_name].labels2names[self.idx2label[dataset_name][target]]
|
298 |
-
if classname in self.filtered_classnames:
|
299 |
-
# we filter these classnames for training
|
300 |
-
target = -1
|
301 |
-
input_ids, input_mask, segment_ids = \
|
302 |
-
self._online_tokenize("uncovered image")
|
303 |
-
else:
|
304 |
-
input_ids, input_mask, segment_ids = \
|
305 |
-
self._online_tokenize(classname)
|
306 |
-
target += target_offset
|
307 |
-
return img, \
|
308 |
-
input_ids, \
|
309 |
-
input_mask, \
|
310 |
-
segment_ids, \
|
311 |
-
torch.LongTensor([target]), \
|
312 |
-
dataset_name
|
313 |
-
|
314 |
-
def get_img_txt_pair(self, items_image, items_text, index):
|
315 |
-
dataset_name, chunk_id = self.get_dataset_name(index)
|
316 |
-
assert items_text[0] == items_image[0], \
|
317 |
-
'keys do not match for image ({}) and text ({}) for {} at chunk {}-{}'.format(
|
318 |
-
len(items_text[0]), len(items_image[0]), dataset_name, chunk_id, self.image_tsv_path[chunk_id]
|
319 |
-
)
|
320 |
-
|
321 |
-
img = self._decode_image(items_image, dataset_name)
|
322 |
-
# print("index {}, chunk id {}, name {}".format(index, chunk_id, self.image_tsv_path[chunk_id]))
|
323 |
-
# raise TypeError("cannot decode current item")
|
324 |
-
img_width, img_height = img.size # img_height, img_width = np.array(img).shape
|
325 |
-
|
326 |
-
txts = self._decode_text(items_text)
|
327 |
-
if self.spacy_nlp is not None:
|
328 |
-
np_input_ids, np_input_masks, np_segment_ids = self.create_phrase_text(txts)
|
329 |
-
|
330 |
-
if self.transforms:
|
331 |
-
img = self.transforms(img)
|
332 |
-
|
333 |
-
if isinstance(txts, str):
|
334 |
-
input_ids, input_masks, segment_ids = \
|
335 |
-
convert_txt_to_tokens_bpe(txts, self.tokenizer, self.context_length)
|
336 |
-
all_str2id_links = []
|
337 |
-
elif isinstance(txts, list):
|
338 |
-
input_ids = []
|
339 |
-
input_masks = []
|
340 |
-
segment_ids = []
|
341 |
-
all_str2id_links = []
|
342 |
-
for txt in txts:
|
343 |
-
input_id, input_mask, segment_id, str2id_links = \
|
344 |
-
convert_txt_to_tokens_bpe(txt, self.tokenizer, self.context_length, return_link=True)
|
345 |
-
input_ids += input_id
|
346 |
-
input_masks += input_mask
|
347 |
-
segment_ids += segment_id
|
348 |
-
all_str2id_links += [str2id_links]
|
349 |
-
scale = 1.0
|
350 |
-
img_id = 0
|
351 |
-
|
352 |
-
if self.spacy_nlp is not None:
|
353 |
-
return img, \
|
354 |
-
torch.tensor(input_ids).long().view(-1), \
|
355 |
-
torch.tensor(input_masks).long().view(-1), \
|
356 |
-
torch.tensor(segment_ids).long().view(-1), \
|
357 |
-
torch.LongTensor([1e5]), \
|
358 |
-
dataset_name, \
|
359 |
-
torch.tensor(np_input_ids).long().view(-1), \
|
360 |
-
torch.tensor(np_input_masks).long().view(-1), \
|
361 |
-
torch.tensor(np_segment_ids).long().view(-1)
|
362 |
-
else:
|
363 |
-
return img, \
|
364 |
-
torch.tensor(input_ids).long().view(-1), \
|
365 |
-
torch.tensor(input_masks).long().view(-1), \
|
366 |
-
torch.tensor(segment_ids).long().view(-1), \
|
367 |
-
torch.LongTensor([1e5]), \
|
368 |
-
(dataset_name, items_text[0], (img_height, img_width), all_str2id_links) # dataset name, image id, image height&width, links bet string and tokenized texts
|
369 |
-
|
370 |
-
def create_phrase_text(self, txt_list):
|
371 |
-
""" Use NLP tool to detect noun phrases in captions, fill each identified phrase into a random prompt to create a sentence,
|
372 |
-
and convert each sentence to bpe tokens
|
373 |
-
"""
|
374 |
-
if isinstance(txt_list, str):
|
375 |
-
txt_list = [txt_list]
|
376 |
-
# detect noun phrase
|
377 |
-
noun_phrase = []
|
378 |
-
for txt in txt_list:
|
379 |
-
doc = self.spacy_nlp(txt.lower())
|
380 |
-
this_text = [nc.text for nc in doc.noun_chunks]
|
381 |
-
this_text = [nc.replace('a ', '').replace('the ', '') for nc in this_text]
|
382 |
-
noun_phrase.extend(this_text)
|
383 |
-
noun_phrase = list(set(noun_phrase))
|
384 |
-
# fill each phrase into a random prompt
|
385 |
-
text_list = []
|
386 |
-
pts = random.sample(self.prompt_templates, len(noun_phrase))
|
387 |
-
for i, np in enumerate(noun_phrase):
|
388 |
-
text_list.append(prompt_engineering(np, pts[i]))
|
389 |
-
# convert string into bpe tokens
|
390 |
-
input_ids = []
|
391 |
-
input_masks = []
|
392 |
-
segment_ids = []
|
393 |
-
for txt in text_list:
|
394 |
-
input_id, input_mask, segment_id = \
|
395 |
-
convert_txt_to_tokens_bpe(txt, self.tokenizer, self.context_length)
|
396 |
-
input_ids += input_id
|
397 |
-
input_masks += input_mask
|
398 |
-
segment_ids += segment_id
|
399 |
-
return input_ids, input_masks, segment_ids
|
400 |
-
|
401 |
-
def __getitem__(self, index: Union[int, Tuple[int, int]]):
|
402 |
-
if isinstance(index, tuple):
|
403 |
-
items_image = self.image_tsv_file[index[0]]
|
404 |
-
items_text = self.text_tsv_file[index[0]]
|
405 |
-
if index[1] >= 0:
|
406 |
-
tsv_filename = self.image_tsv_file.file_list[index[1]]
|
407 |
-
|
408 |
-
# Python threads are not truly parallel. Spawn a new process instead.
|
409 |
-
# logging.info('Pre-loading %s ...' % tsv_filename)
|
410 |
-
# os.system('cat ' + tsv_filename + ' > /dev/null &')
|
411 |
-
x = threading.Thread(
|
412 |
-
target=pre_fetch, args=(tsv_filename,), daemon=True
|
413 |
-
)
|
414 |
-
x.start()
|
415 |
-
curr_index = index[0]
|
416 |
-
else:
|
417 |
-
items_image = self.image_tsv_file[index]
|
418 |
-
items_text = self.text_tsv_file[index]
|
419 |
-
curr_index = index
|
420 |
-
|
421 |
-
# NOTE: since we duplicate image tsv to text tsv for image-label data,
|
422 |
-
# we can determine whether the current instance is an image-label pair or
|
423 |
-
# a image-text pair data based on whether items_image is identical to items_text or not.
|
424 |
-
if items_image == items_text:
|
425 |
-
return self.get_img_label_pair(items_image, curr_index)
|
426 |
-
else:
|
427 |
-
return self.get_img_txt_pair(items_image, items_text, curr_index)
|
428 |
-
|
429 |
-
def _decode_image(self, items: Tuple[str, str], dataset_name=""):
|
430 |
-
key = items[0]
|
431 |
-
image = Image.open(BytesIO(base64.b64decode(items[1]))).convert('RGB')
|
432 |
-
return image
|
433 |
-
|
434 |
-
def _decode_text(self, items: Tuple[str, Union[str, dict]]):
|
435 |
-
key = items[0]
|
436 |
-
text = ''
|
437 |
-
if isinstance(items[1], str):
|
438 |
-
try:
|
439 |
-
str_dict = json.loads(items[1])
|
440 |
-
# in this dict, it may contain either "tags" or "captions" or both
|
441 |
-
keys = [key for key in str_dict.keys()]
|
442 |
-
selected_key = random.sample(keys, 1)[0]
|
443 |
-
if selected_key == "captions":
|
444 |
-
# if this is a caption, we sample a caption
|
445 |
-
captions = str_dict[selected_key]
|
446 |
-
text = captions[:5]
|
447 |
-
# text = random.sample(captions, 1)[0]
|
448 |
-
elif selected_key == "tags":
|
449 |
-
# for tags, we randomly disorder it
|
450 |
-
tags = str_dict[selected_key]
|
451 |
-
tag_words = tags.split(' ')
|
452 |
-
random.shuffle(tag_words)
|
453 |
-
tags_shuffled = " ".join(tag_words)
|
454 |
-
# add prompt template
|
455 |
-
pt = random.sample(self.prompt_templates, 1)[0]
|
456 |
-
text = prompt_engineering(tags_shuffled, pt)
|
457 |
-
except:
|
458 |
-
text = items[1]
|
459 |
-
elif isinstance(items[1], dict):
|
460 |
-
assert 'captions' in items[1], '"captions" does not in {}'.format(items[1])
|
461 |
-
captions = items[1]['captions']
|
462 |
-
if isinstance(captions, list):
|
463 |
-
text = random.choice(captions)
|
464 |
-
elif isinstance(captions, str):
|
465 |
-
text = captions
|
466 |
-
else:
|
467 |
-
raise ValueError('captions should be str or list')
|
468 |
-
|
469 |
-
return text
|
470 |
-
|
471 |
-
def _decode_data(self, items, dataset_name):
|
472 |
-
key = items[0]
|
473 |
-
label = self._get_label(items[1], dataset_name)
|
474 |
-
try:
|
475 |
-
image = Image.open(BytesIO(base64.b64decode(items[2])))
|
476 |
-
except:
|
477 |
-
return None
|
478 |
-
|
479 |
-
return key, label, image.convert('RGB')
|
480 |
-
|
481 |
-
def _get_label(self, item, dataset_name):
|
482 |
-
if not self.label2idx[dataset_name]:
|
483 |
-
return int(item)
|
484 |
-
|
485 |
-
if item in self.label2idx[dataset_name]:
|
486 |
-
return self.label2idx[dataset_name][item]
|
487 |
-
|
488 |
-
label = json.loads(item)[0]['class']
|
489 |
-
if label in self.label2idx[dataset_name]:
|
490 |
-
return self.label2idx[dataset_name][label]
|
491 |
-
else:
|
492 |
-
return -1
|
493 |
-
|
494 |
-
def __len__(self):
|
495 |
-
return len(self.image_tsv_file)
|
496 |
-
|
497 |
-
def convert_txt_to_tokens_bpe(text, tokenizer, context_length, return_link=False):
|
498 |
-
|
499 |
-
sot_token = tokenizer.encoder["<|startoftext|>"]
|
500 |
-
eot_token = tokenizer.encoder["<|endoftext|>"]
|
501 |
-
if return_link:
|
502 |
-
bpe_tokens, str2id_links = tokenizer.encode(text, return_link=return_link)
|
503 |
-
str2id_links = [["<|startoftext|>", [sot_token]]] + str2id_links + [["<|endoftext|>", [eot_token]]]
|
504 |
-
else:
|
505 |
-
bpe_tokens = tokenizer.encode(text, return_link=return_link)
|
506 |
-
input_ids = [sot_token] + bpe_tokens + [eot_token]
|
507 |
-
|
508 |
-
if len(input_ids) > context_length:
|
509 |
-
input_ids = input_ids[:context_length]
|
510 |
-
segment_ids = [0] * len(input_ids)
|
511 |
-
lm_label_ids = [-1] * len(input_ids)
|
512 |
-
|
513 |
-
# The mask has 1 for real tokens and 0 for padding tokens. Only real tokens are attended to.
|
514 |
-
input_mask = [1] * len(input_ids)
|
515 |
-
|
516 |
-
# Zero-pad up to the sequence length.
|
517 |
-
while len(input_ids) < context_length:
|
518 |
-
input_ids.append(0)
|
519 |
-
input_mask.append(0)
|
520 |
-
segment_ids.append(0)
|
521 |
-
lm_label_ids.append(-1)
|
522 |
-
|
523 |
-
assert len(input_ids) == context_length
|
524 |
-
assert len(input_mask) == context_length
|
525 |
-
assert len(segment_ids) == context_length
|
526 |
-
assert len(lm_label_ids) == context_length
|
527 |
-
|
528 |
-
if return_link:
|
529 |
-
return input_ids, input_mask, segment_ids, str2id_links
|
530 |
-
return input_ids, input_mask, segment_ids
|
531 |
-
|
532 |
-
def convert_example_to_features_bpe(args, example, max_seq_length, tokenizer,
|
533 |
-
img_feat_len, context_length=77):
|
534 |
-
"""
|
535 |
-
Convert a raw sample (pair of sentences as tokenized strings) into a proper training sample with
|
536 |
-
IDs, LM labels, input_mask, CLS and SEP tokens etc.
|
537 |
-
:param args: parameter settings
|
538 |
-
:param img_feat_len: lens of actual img features
|
539 |
-
:param example: InputExample, containing sentence input as strings and is_next label
|
540 |
-
:param max_seq_length: int, maximum length of sequence.
|
541 |
-
:param tokenizer: Tokenizer
|
542 |
-
:return: InputFeatures, containing all inputs and labels of one sample as IDs (as used for model training)
|
543 |
-
"""
|
544 |
-
# we do not consider tokens_b for now in original CLIP
|
545 |
-
text = example.tokens_a
|
546 |
-
assert isinstance(text, str)
|
547 |
-
|
548 |
-
sot_token = tokenizer.encoder["<|startoftext|>"]
|
549 |
-
eot_token = tokenizer.encoder["<|endoftext|>"]
|
550 |
-
input_ids = [sot_token] + tokenizer.encode(text) + [eot_token]
|
551 |
-
|
552 |
-
if len(input_ids) > context_length:
|
553 |
-
input_ids = input_ids[:context_length]
|
554 |
-
segment_ids = [0] * len(input_ids)
|
555 |
-
lm_label_ids = [-1] * len(input_ids)
|
556 |
-
|
557 |
-
# The mask has 1 for real tokens and 0 for padding tokens. Only real tokens are attended to.
|
558 |
-
input_mask = [1] * len(input_ids)
|
559 |
-
|
560 |
-
# Zero-pad up to the sequence length.
|
561 |
-
while len(input_ids) < context_length:
|
562 |
-
input_ids.append(0)
|
563 |
-
input_mask.append(0)
|
564 |
-
segment_ids.append(0)
|
565 |
-
lm_label_ids.append(-1)
|
566 |
-
|
567 |
-
assert len(input_ids) == context_length
|
568 |
-
assert len(input_mask) == context_length
|
569 |
-
assert len(segment_ids) == context_length
|
570 |
-
assert len(lm_label_ids) == context_length
|
571 |
-
|
572 |
-
if example.guid < 1:
|
573 |
-
logging.info("*** Example ***")
|
574 |
-
logging.info("guid: %s" % example.guid)
|
575 |
-
logging.info("input_ids: %s" % " ".join([str(x) for x in input_ids]))
|
576 |
-
logging.info("input_mask: %s" % " ".join([str(x) for x in input_mask]))
|
577 |
-
logging.info("segment_ids: %s" % " ".join([str(x) for x in segment_ids]))
|
578 |
-
logging.info("LM label: %s " % lm_label_ids)
|
579 |
-
logging.info("Is next sentence label: %s " % example.is_next)
|
580 |
-
|
581 |
-
features = InputFeatures(input_ids=input_ids,
|
582 |
-
input_mask=input_mask,
|
583 |
-
segment_ids=segment_ids,
|
584 |
-
lm_label_ids=lm_label_ids,
|
585 |
-
is_next=example.is_next,
|
586 |
-
img_feat_len=img_feat_len,
|
587 |
-
is_img_match=example.is_img_match)
|
588 |
-
return features
|
589 |
-
|
590 |
-
class InputFeatures(object):
|
591 |
-
"""A single set of features of data."""
|
592 |
-
|
593 |
-
def __init__(self, input_ids, input_mask, segment_ids, is_next,
|
594 |
-
lm_label_ids, img_feat_len, is_img_match):
|
595 |
-
self.input_ids = input_ids
|
596 |
-
self.input_mask = input_mask
|
597 |
-
self.segment_ids = segment_ids
|
598 |
-
self.is_next = is_next
|
599 |
-
self.lm_label_ids = lm_label_ids
|
600 |
-
|
601 |
-
self.img_feat_len = img_feat_len
|
602 |
-
self.is_img_match = is_img_match
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CXD200/QSign/unidbg-fetch-qsign/bin/unidbg-fetch-qsign.bat
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
@rem
|
2 |
-
@rem Copyright 2015 the original author or authors.
|
3 |
-
@rem
|
4 |
-
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
@rem you may not use this file except in compliance with the License.
|
6 |
-
@rem You may obtain a copy of the License at
|
7 |
-
@rem
|
8 |
-
@rem https://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
@rem
|
10 |
-
@rem Unless required by applicable law or agreed to in writing, software
|
11 |
-
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
@rem See the License for the specific language governing permissions and
|
14 |
-
@rem limitations under the License.
|
15 |
-
@rem
|
16 |
-
|
17 |
-
@if "%DEBUG%" == "" @echo off
|
18 |
-
@rem ##########################################################################
|
19 |
-
@rem
|
20 |
-
@rem unidbg-fetch-qsign startup script for Windows
|
21 |
-
@rem
|
22 |
-
@rem ##########################################################################
|
23 |
-
|
24 |
-
@rem Set local scope for the variables with windows NT shell
|
25 |
-
if "%OS%"=="Windows_NT" setlocal
|
26 |
-
|
27 |
-
set DIRNAME=%~dp0
|
28 |
-
if "%DIRNAME%" == "" set DIRNAME=.
|
29 |
-
set APP_BASE_NAME=%~n0
|
30 |
-
set APP_HOME=%DIRNAME%..
|
31 |
-
|
32 |
-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
33 |
-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
34 |
-
|
35 |
-
@rem Add default JVM options here. You can also use JAVA_OPTS and UNIDBG_FETCH_QSIGN_OPTS to pass JVM options to this script.
|
36 |
-
set DEFAULT_JVM_OPTS=
|
37 |
-
|
38 |
-
@rem Find java.exe
|
39 |
-
if defined JAVA_HOME goto findJavaFromJavaHome
|
40 |
-
|
41 |
-
set JAVA_EXE=java.exe
|
42 |
-
%JAVA_EXE% -version >NUL 2>&1
|
43 |
-
if "%ERRORLEVEL%" == "0" goto execute
|
44 |
-
|
45 |
-
echo.
|
46 |
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
47 |
-
echo.
|
48 |
-
echo Please set the JAVA_HOME variable in your environment to match the
|
49 |
-
echo location of your Java installation.
|
50 |
-
|
51 |
-
goto fail
|
52 |
-
|
53 |
-
:findJavaFromJavaHome
|
54 |
-
set JAVA_HOME=%JAVA_HOME:"=%
|
55 |
-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
56 |
-
|
57 |
-
if exist "%JAVA_EXE%" goto execute
|
58 |
-
|
59 |
-
echo.
|
60 |
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
61 |
-
echo.
|
62 |
-
echo Please set the JAVA_HOME variable in your environment to match the
|
63 |
-
echo location of your Java installation.
|
64 |
-
|
65 |
-
goto fail
|
66 |
-
|
67 |
-
:execute
|
68 |
-
@rem Setup the command line
|
69 |
-
|
70 |
-
set CLASSPATH=%APP_HOME%\lib\unidbg-fetch-qsign-1.1.0.jar;%APP_HOME%\lib\unidbg-fix.jar;%APP_HOME%\lib\ktor-server-content-negotiation-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-serialization-kotlinx-json-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-server-netty-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-server-host-common-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-server-core-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-serialization-kotlinx-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-serialization-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-events-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-websockets-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-http-cio-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-http-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-network-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-utils-jvm-2.3.1.jar;%APP_HOME%\lib\ktor-io-jvm-2.3.1.jar;%APP_HOME%\lib\kotlin-stdlib-jdk8-1.8.22.jar;%APP_HOME%\lib\kotlinx-serialization-json-jvm-1.5.1.jar;%APP_HOME%\lib\kotlinx-serialization-protobuf-jvm-1.5.1.jar;%APP_HOME%\lib\kotlinx-serialization-core-jvm-1.5.1.jar;%APP_HOME%\lib\logback-classic-1.2.11.jar;%APP_HOME%\lib\kotlinx-coroutines-jdk8-1.7.1.jar;%APP_HOME%\lib\kotlinx-coroutines-core-jvm-1.7.1.jar;%APP_HOME%\lib\kotlin-stdlib-jdk7-1.8.22.jar;%APP_HOME%\lib\kotlin-reflect-1.8.10.jar;%APP_HOME%\lib\kotlin-stdlib-1.8.22.jar;%APP_HOME%\lib\slf4j-api-1.7.36.jar;%APP_HOME%\lib\kotlin-stdlib-common-1.8.22.jar;%APP_HOME%\lib\config-1.4.2.jar;%APP_HOME%\lib\jansi-2.4.0.jar;%APP_HOME%\lib\netty-codec-http2-4.1.92.Final.jar;%APP_HOME%\lib\alpn-api-1.1.3.v20160715.jar;%APP_HOME%\lib\netty-transport-native-kqueue-4.1.92.Final.jar;%APP_HOME%\lib\netty-transport-native-epoll-4.1.92.Final.jar;%APP_HOME%\lib\logback-core-1.2.11.jar;%APP_HOME%\lib\annotations-23.0.0.jar;%APP_HOME%\lib\netty-codec-http-4.1.92.Final.jar;%APP_HOME%\lib\netty-handler-4.1.92.Final.jar;%APP_HOME%\lib\netty-codec-4.1.92.Final.jar;%APP_HOME%\lib\netty-transport-classes-kqueue-4.1.92.Final.jar;%APP_HOME%\lib\netty-transport-classes-epoll-4.1.92.Final.jar;%APP_HOME%\lib\netty-transport-native-unix-common-4.1.92.Final.jar;%APP_HOME%\lib\netty-transport-4.1.92.Final.jar;%APP_HOME%\lib\netty-buffer-4.1.92.Final.jar;%APP_HOME%\lib\netty-resolver-4.1.92.Final.jar;%APP_HOME%\lib\netty-common-4.1.92.Final.jar
|
71 |
-
|
72 |
-
|
73 |
-
@rem Execute unidbg-fetch-qsign
|
74 |
-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %UNIDBG_FETCH_QSIGN_OPTS% -classpath "%CLASSPATH%" MainKt %*
|
75 |
-
|
76 |
-
:end
|
77 |
-
@rem End local scope for the variables with windows NT shell
|
78 |
-
if "%ERRORLEVEL%"=="0" goto mainEnd
|
79 |
-
|
80 |
-
:fail
|
81 |
-
rem Set variable UNIDBG_FETCH_QSIGN_EXIT_CONSOLE if you need the _script_ return code instead of
|
82 |
-
rem the _cmd.exe /c_ return code!
|
83 |
-
if not "" == "%UNIDBG_FETCH_QSIGN_EXIT_CONSOLE%" exit 1
|
84 |
-
exit /b 1
|
85 |
-
|
86 |
-
:mainEnd
|
87 |
-
if "%OS%"=="Windows_NT" endlocal
|
88 |
-
|
89 |
-
:omega
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CofAI/chat/g4f/Provider/Providers/Fakeopen.py
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import json
|
3 |
-
import requests
|
4 |
-
from typing import Dict, get_type_hints
|
5 |
-
|
6 |
-
url = 'https://ai.fakeopen.com/v1/'
|
7 |
-
model = [
|
8 |
-
'gpt-3.5-turbo',
|
9 |
-
'gpt-3.5-turbo-0613',
|
10 |
-
'gpt-3.5-turbo-16k',
|
11 |
-
'gpt-3.5-turbo-16k-0613',
|
12 |
-
]
|
13 |
-
|
14 |
-
supports_stream = True
|
15 |
-
needs_auth = False
|
16 |
-
|
17 |
-
|
18 |
-
def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
19 |
-
|
20 |
-
headers = {
|
21 |
-
'Content-Type': 'application/json',
|
22 |
-
'accept': 'text/event-stream',
|
23 |
-
'Cache-Control': 'no-cache',
|
24 |
-
'Proxy-Connection': 'keep-alive',
|
25 |
-
'Authorization': f"Bearer {os.environ.get('FAKE_OPEN_KEY', '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')}",
|
26 |
-
}
|
27 |
-
|
28 |
-
json_data = {
|
29 |
-
'messages': messages,
|
30 |
-
'temperature': 1.0,
|
31 |
-
'model': model,
|
32 |
-
'stream': stream,
|
33 |
-
}
|
34 |
-
|
35 |
-
response = requests.post(
|
36 |
-
'https://ai.fakeopen.com/v1/chat/completions', headers=headers, json=json_data, stream=True
|
37 |
-
)
|
38 |
-
|
39 |
-
for token in response.iter_lines():
|
40 |
-
decoded = token.decode('utf-8')
|
41 |
-
if decoded == '[DONE]':
|
42 |
-
break
|
43 |
-
if decoded.startswith('data: '):
|
44 |
-
data_str = decoded.replace('data: ', '')
|
45 |
-
if data_str != '[DONE]':
|
46 |
-
data = json.loads(data_str)
|
47 |
-
if 'choices' in data and 'delta' in data['choices'][0] and 'content' in data['choices'][0]['delta']:
|
48 |
-
yield data['choices'][0]['delta']['content']
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + '(%s)' % ', '.join(
|
54 |
-
[f"{name}: {get_type_hints(_create_completion)[name].__name__}" for name in _create_completion.__code__.co_varnames[:_create_completion.__code__.co_argcount]])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CrucibleAI/ControlNetMediaPipeFaceSD21/ldm/data/__init__.py
DELETED
File without changes
|
spaces/Cyril666/ContourNet-ABI/maskrcnn_benchmark/data/datasets/voc.py
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
import torch
|
4 |
-
import torch.utils.data
|
5 |
-
from PIL import Image
|
6 |
-
import sys
|
7 |
-
|
8 |
-
if sys.version_info[0] == 2:
|
9 |
-
import xml.etree.cElementTree as ET
|
10 |
-
else:
|
11 |
-
import xml.etree.ElementTree as ET
|
12 |
-
|
13 |
-
|
14 |
-
from maskrcnn_benchmark.structures.bounding_box import BoxList
|
15 |
-
|
16 |
-
|
17 |
-
class PascalVOCDataset(torch.utils.data.Dataset):
|
18 |
-
|
19 |
-
CLASSES = (
|
20 |
-
"__background__ ",
|
21 |
-
"aeroplane",
|
22 |
-
"bicycle",
|
23 |
-
"bird",
|
24 |
-
"boat",
|
25 |
-
"bottle",
|
26 |
-
"bus",
|
27 |
-
"car",
|
28 |
-
"cat",
|
29 |
-
"chair",
|
30 |
-
"cow",
|
31 |
-
"diningtable",
|
32 |
-
"dog",
|
33 |
-
"horse",
|
34 |
-
"motorbike",
|
35 |
-
"person",
|
36 |
-
"pottedplant",
|
37 |
-
"sheep",
|
38 |
-
"sofa",
|
39 |
-
"train",
|
40 |
-
"tvmonitor",
|
41 |
-
)
|
42 |
-
|
43 |
-
def __init__(self, data_dir, split, use_difficult=False, transforms=None):
|
44 |
-
self.root = data_dir
|
45 |
-
self.image_set = split
|
46 |
-
self.keep_difficult = use_difficult
|
47 |
-
self.transforms = transforms
|
48 |
-
|
49 |
-
self._annopath = os.path.join(self.root, "Annotations", "%s.xml")
|
50 |
-
self._imgpath = os.path.join(self.root, "JPEGImages", "%s.jpg")
|
51 |
-
self._imgsetpath = os.path.join(self.root, "ImageSets", "Main", "%s.txt")
|
52 |
-
|
53 |
-
with open(self._imgsetpath % self.image_set) as f:
|
54 |
-
self.ids = f.readlines()
|
55 |
-
self.ids = [x.strip("\n") for x in self.ids]
|
56 |
-
self.id_to_img_map = {k: v for k, v in enumerate(self.ids)}
|
57 |
-
|
58 |
-
cls = PascalVOCDataset.CLASSES
|
59 |
-
self.class_to_ind = dict(zip(cls, range(len(cls))))
|
60 |
-
|
61 |
-
def __getitem__(self, index):
|
62 |
-
img_id = self.ids[index]
|
63 |
-
img = Image.open(self._imgpath % img_id).convert("RGB")
|
64 |
-
|
65 |
-
target = self.get_groundtruth(index)
|
66 |
-
target = target.clip_to_image(remove_empty=True)
|
67 |
-
|
68 |
-
if self.transforms is not None:
|
69 |
-
img, target = self.transforms(img, target)
|
70 |
-
|
71 |
-
return img, target, index
|
72 |
-
|
73 |
-
def __len__(self):
|
74 |
-
return len(self.ids)
|
75 |
-
|
76 |
-
def get_groundtruth(self, index):
|
77 |
-
img_id = self.ids[index]
|
78 |
-
anno = ET.parse(self._annopath % img_id).getroot()
|
79 |
-
anno = self._preprocess_annotation(anno)
|
80 |
-
|
81 |
-
height, width = anno["im_info"]
|
82 |
-
target = BoxList(anno["boxes"], (width, height), mode="xyxy")
|
83 |
-
target.add_field("labels", anno["labels"])
|
84 |
-
target.add_field("difficult", anno["difficult"])
|
85 |
-
return target
|
86 |
-
|
87 |
-
def _preprocess_annotation(self, target):
|
88 |
-
boxes = []
|
89 |
-
gt_classes = []
|
90 |
-
difficult_boxes = []
|
91 |
-
TO_REMOVE = 1
|
92 |
-
|
93 |
-
for obj in target.iter("object"):
|
94 |
-
difficult = int(obj.find("difficult").text) == 1
|
95 |
-
if not self.keep_difficult and difficult:
|
96 |
-
continue
|
97 |
-
name = obj.find("name").text.lower().strip()
|
98 |
-
bb = obj.find("bndbox")
|
99 |
-
# Make pixel indexes 0-based
|
100 |
-
# Refer to "https://github.com/rbgirshick/py-faster-rcnn/blob/master/lib/datasets/pascal_voc.py#L208-L211"
|
101 |
-
box = [
|
102 |
-
bb.find("xmin").text,
|
103 |
-
bb.find("ymin").text,
|
104 |
-
bb.find("xmax").text,
|
105 |
-
bb.find("ymax").text,
|
106 |
-
]
|
107 |
-
bndbox = tuple(
|
108 |
-
map(lambda x: x - TO_REMOVE, list(map(int, box)))
|
109 |
-
)
|
110 |
-
|
111 |
-
boxes.append(bndbox)
|
112 |
-
gt_classes.append(self.class_to_ind[name])
|
113 |
-
difficult_boxes.append(difficult)
|
114 |
-
|
115 |
-
size = target.find("size")
|
116 |
-
im_info = tuple(map(int, (size.find("height").text, size.find("width").text)))
|
117 |
-
|
118 |
-
res = {
|
119 |
-
"boxes": torch.tensor(boxes, dtype=torch.float32),
|
120 |
-
"labels": torch.tensor(gt_classes),
|
121 |
-
"difficult": torch.tensor(difficult_boxes),
|
122 |
-
"im_info": im_info,
|
123 |
-
}
|
124 |
-
return res
|
125 |
-
|
126 |
-
def get_img_info(self, index):
|
127 |
-
img_id = self.ids[index]
|
128 |
-
anno = ET.parse(self._annopath % img_id).getroot()
|
129 |
-
size = anno.find("size")
|
130 |
-
im_info = tuple(map(int, (size.find("height").text, size.find("width").text)))
|
131 |
-
return {"height": im_info[0], "width": im_info[1]}
|
132 |
-
|
133 |
-
def map_class_id_to_class_name(self, class_id):
|
134 |
-
return PascalVOCDataset.CLASSES[class_id]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Cyril666/ContourNet-ABI/modules/resnet.py
DELETED
@@ -1,104 +0,0 @@
|
|
1 |
-
import math
|
2 |
-
|
3 |
-
import torch.nn as nn
|
4 |
-
import torch.nn.functional as F
|
5 |
-
import torch.utils.model_zoo as model_zoo
|
6 |
-
|
7 |
-
|
8 |
-
def conv1x1(in_planes, out_planes, stride=1):
|
9 |
-
return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)
|
10 |
-
|
11 |
-
|
12 |
-
def conv3x3(in_planes, out_planes, stride=1):
|
13 |
-
"3x3 convolution with padding"
|
14 |
-
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
|
15 |
-
padding=1, bias=False)
|
16 |
-
|
17 |
-
|
18 |
-
class BasicBlock(nn.Module):
|
19 |
-
expansion = 1
|
20 |
-
|
21 |
-
def __init__(self, inplanes, planes, stride=1, downsample=None):
|
22 |
-
super(BasicBlock, self).__init__()
|
23 |
-
self.conv1 = conv1x1(inplanes, planes)
|
24 |
-
self.bn1 = nn.BatchNorm2d(planes)
|
25 |
-
self.relu = nn.ReLU(inplace=True)
|
26 |
-
self.conv2 = conv3x3(planes, planes, stride)
|
27 |
-
self.bn2 = nn.BatchNorm2d(planes)
|
28 |
-
self.downsample = downsample
|
29 |
-
self.stride = stride
|
30 |
-
|
31 |
-
def forward(self, x):
|
32 |
-
residual = x
|
33 |
-
|
34 |
-
out = self.conv1(x)
|
35 |
-
out = self.bn1(out)
|
36 |
-
out = self.relu(out)
|
37 |
-
|
38 |
-
out = self.conv2(out)
|
39 |
-
out = self.bn2(out)
|
40 |
-
|
41 |
-
if self.downsample is not None:
|
42 |
-
residual = self.downsample(x)
|
43 |
-
|
44 |
-
out += residual
|
45 |
-
out = self.relu(out)
|
46 |
-
|
47 |
-
return out
|
48 |
-
|
49 |
-
|
50 |
-
class ResNet(nn.Module):
|
51 |
-
|
52 |
-
def __init__(self, block, layers):
|
53 |
-
self.inplanes = 32
|
54 |
-
super(ResNet, self).__init__()
|
55 |
-
self.conv1 = nn.Conv2d(3, 32, kernel_size=3, stride=1, padding=1,
|
56 |
-
bias=False)
|
57 |
-
self.bn1 = nn.BatchNorm2d(32)
|
58 |
-
self.relu = nn.ReLU(inplace=True)
|
59 |
-
|
60 |
-
self.layer1 = self._make_layer(block, 32, layers[0], stride=2)
|
61 |
-
self.layer2 = self._make_layer(block, 64, layers[1], stride=1)
|
62 |
-
self.layer3 = self._make_layer(block, 128, layers[2], stride=2)
|
63 |
-
self.layer4 = self._make_layer(block, 256, layers[3], stride=1)
|
64 |
-
self.layer5 = self._make_layer(block, 512, layers[4], stride=1)
|
65 |
-
|
66 |
-
for m in self.modules():
|
67 |
-
if isinstance(m, nn.Conv2d):
|
68 |
-
n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
|
69 |
-
m.weight.data.normal_(0, math.sqrt(2. / n))
|
70 |
-
elif isinstance(m, nn.BatchNorm2d):
|
71 |
-
m.weight.data.fill_(1)
|
72 |
-
m.bias.data.zero_()
|
73 |
-
|
74 |
-
def _make_layer(self, block, planes, blocks, stride=1):
|
75 |
-
downsample = None
|
76 |
-
if stride != 1 or self.inplanes != planes * block.expansion:
|
77 |
-
downsample = nn.Sequential(
|
78 |
-
nn.Conv2d(self.inplanes, planes * block.expansion,
|
79 |
-
kernel_size=1, stride=stride, bias=False),
|
80 |
-
nn.BatchNorm2d(planes * block.expansion),
|
81 |
-
)
|
82 |
-
|
83 |
-
layers = []
|
84 |
-
layers.append(block(self.inplanes, planes, stride, downsample))
|
85 |
-
self.inplanes = planes * block.expansion
|
86 |
-
for i in range(1, blocks):
|
87 |
-
layers.append(block(self.inplanes, planes))
|
88 |
-
|
89 |
-
return nn.Sequential(*layers)
|
90 |
-
|
91 |
-
def forward(self, x):
|
92 |
-
x = self.conv1(x)
|
93 |
-
x = self.bn1(x)
|
94 |
-
x = self.relu(x)
|
95 |
-
x = self.layer1(x)
|
96 |
-
x = self.layer2(x)
|
97 |
-
x = self.layer3(x)
|
98 |
-
x = self.layer4(x)
|
99 |
-
x = self.layer5(x)
|
100 |
-
return x
|
101 |
-
|
102 |
-
|
103 |
-
def resnet45():
|
104 |
-
return ResNet(BasicBlock, [3, 4, 6, 6, 3])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/DAMO-NLP-SG/Video-LLaMA/video_llama/processors/__init__.py
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
Copyright (c) 2022, salesforce.com, inc.
|
3 |
-
All rights reserved.
|
4 |
-
SPDX-License-Identifier: BSD-3-Clause
|
5 |
-
For full license text, see the LICENSE_Lavis file in the repo root or https://opensource.org/licenses/BSD-3-Clause
|
6 |
-
"""
|
7 |
-
|
8 |
-
from video_llama.processors.base_processor import BaseProcessor
|
9 |
-
from video_llama.processors.blip_processors import (
|
10 |
-
Blip2ImageTrainProcessor,
|
11 |
-
Blip2ImageEvalProcessor,
|
12 |
-
BlipCaptionProcessor,
|
13 |
-
)
|
14 |
-
from video_llama.processors.video_processor import (
|
15 |
-
AlproVideoTrainProcessor,
|
16 |
-
AlproVideoEvalProcessor
|
17 |
-
)
|
18 |
-
from video_llama.common.registry import registry
|
19 |
-
|
20 |
-
__all__ = [
|
21 |
-
"BaseProcessor",
|
22 |
-
"Blip2ImageTrainProcessor",
|
23 |
-
"Blip2ImageEvalProcessor",
|
24 |
-
"BlipCaptionProcessor",
|
25 |
-
"AlproVideoTrainProcessor",
|
26 |
-
"AlproVideoEvalProcessor",
|
27 |
-
]
|
28 |
-
|
29 |
-
|
30 |
-
def load_processor(name, cfg=None):
|
31 |
-
"""
|
32 |
-
Example
|
33 |
-
|
34 |
-
>>> processor = load_processor("alpro_video_train", cfg=None)
|
35 |
-
"""
|
36 |
-
processor = registry.get_processor_class(name).from_config(cfg)
|
37 |
-
|
38 |
-
return processor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|