Commit
·
a0bf2f2
1
Parent(s):
9cc681c
Update parquet files (step 18 of 249)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Chandi Saptashati Telugu PDF Free Download How to Perform the Chandi Path and Receive the Blessings of Durga.md +0 -149
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Global Mapper Download The Ultimate GIS Software for Your Mapping Needs.md +0 -32
- spaces/1gistliPinn/ChatGPT4/Examples/Cycorefx Hd 1.7.1 Crack Cs4.md +0 -34
- spaces/1pelhydcardo/ChatGPT-prompt-generator/Tamil Dubbed Skyfall Movies Free Download 720p !!INSTALL!!.md +0 -88
- spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Airbnb Data A Step-by-Step Tutorial with Examples.md +0 -183
- spaces/1phancelerku/anime-remove-background/1xBet Lite APK A Fast and Easy Way to Bet on Sports and Casino Games.md +0 -112
- spaces/1phancelerku/anime-remove-background/APK Mart A Trusted Source for Quality APK Downloads.md +0 -243
- spaces/1phancelerku/anime-remove-background/CapCut The Best Video Editing App for TikTok Download from Uptodown.md +0 -167
- spaces/1phancelerku/anime-remove-background/Download 3D Modeling App APK (Unlocked All Features) - The Best 3D Design Tool for Android.md +0 -123
- spaces/1phancelerku/anime-remove-background/Download Online Neta Mod APK for Free and Unleash Your Creativity.md +0 -141
- spaces/4Taps/SadTalker/src/generate_batch.py +0 -94
- spaces/801artistry/RVC801/lib/uvr5_pack/lib_v5/nets_new.py +0 -132
- spaces/AIGC-Audio/AudioGPT/audio_detection/audio_infer/utils/create_indexes.py +0 -126
- spaces/AILab-CVC/SEED-LLaMA/README-SEED-2.md +0 -184
- spaces/ASJMO/freegpt/g4f/Provider/Providers/H2o.py +0 -106
- spaces/ATang0729/Forecast4Muses/Model/Model6/Model6_0_ClothesDetection/mmyolo/configs/yolov5/yolov5_l-v61_syncbn_fast_8xb16-300e_coco.py +0 -15
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/GetGpt.py +0 -57
- spaces/AchyuthGamer/OpenGPT/g4f/Provider/Vitalentum.py +0 -69
- spaces/AdVisual/MaskCut/README.md +0 -26
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/box/Factory.js +0 -13
- spaces/AlexZou/Deploy_Restoration/utils/utils_logger.py +0 -65
- spaces/AnTo2209/3D_Zeroshot_Neural_Style_Transfer/src/utils/loss.py +0 -30
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/api/pipelines/auto_pipeline.md +0 -68
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/conceptual/contribution.md +0 -498
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/others/test_outputs.py +0 -60
- spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3/deeplabv3_r50-d8_480x480_80k_pascal_context_59.py +0 -10
- spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/runner/fp16_utils.py +0 -410
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/__main__.py +0 -17
- spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_vendor/importlib_resources/_compat.py +0 -98
- spaces/Atualli/yoloxTeste/README.md +0 -14
- spaces/Awiny/Image2Paragraph/models/gpt_model.py +0 -44
- spaces/BIASLab/sars-cov-2-classification-fcgr/src/preprocessing.py +0 -15
- spaces/Benson/text-generation/Examples/Descargar Apk Guardar Tiktok.md +0 -114
- spaces/Benson/text-generation/Examples/Descargar Gran Gangster Hroe De La Cuerda Ciudad Mod Apk.md +0 -48
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/cli/spinners.py +0 -159
- spaces/Bilalst/Gradio_Youtube_Transcript_v2/README.md +0 -13
- spaces/BramVanroy/llama-2-13b-chat-dutch-space/app.py +0 -284
- spaces/BraydenMoore/a-random-unsecured-camera/README.md +0 -11
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/export/api.py +0 -181
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/projects/TridentNet/README.md +0 -60
- spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/projects/TridentNet/tridentnet/trident_rpn.py +0 -32
- spaces/CVPR/LIVE/pybind11/tests/test_numpy_array.py +0 -446
- spaces/CVPR/LIVE/pybind11/tools/libsize.py +0 -38
- spaces/CVPR/LIVE/thrust/dependencies/cub/experimental/histogram/histogram_smem_atomics.h +0 -195
- spaces/CVPR/LIVE/thrust/thrust/detail/type_traits.h +0 -714
- spaces/CVPR/LIVE/thrust/thrust/system/cpp/detail/gather.h +0 -22
- spaces/CVPR/LIVE/thrust/thrust/system/omp/detail/copy.h +0 -57
- spaces/CVPR/regionclip-demo/detectron2/utils/video_visualizer.py +0 -235
- spaces/Caoyunkang/Segment-Any-Anomaly/SAA/prompts/general_prompts.py +0 -9
- spaces/Chirag4579/prakalpa-image-comparator/README.md +0 -12
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Chandi Saptashati Telugu PDF Free Download How to Perform the Chandi Path and Receive the Blessings of Durga.md
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Chandi Saptashati Telugu PDF Free Download: A Guide for Devotees</h1>
|
3 |
-
<p>Are you a devotee of Goddess Durga who wants to read and chant the sacred text of Chandi Saptashati in Telugu? If yes, then you are in the right place. In this article, we will tell you everything you need to know about Chandi Saptashati, how to download it in Telugu PDF for free, and how to read and chant it properly. Read on to find out more.</p>
|
4 |
-
<h2>What is Chandi Saptashati?</h2>
|
5 |
-
<p>Chandi Saptashati, also known as Devi Mahatmyam, Durga Saptashati, or Chandipath, is one of the most important scriptures in Hinduism that glorifies the power and grace of Goddess Durga. It is a part of the Markandeya Purana, an ancient Hindu text that narrates the stories of various gods and goddesses.</p>
|
6 |
-
<h2>chandi saptashati telugu pdf free download</h2><br /><p><b><b>Download</b> > <a href="https://byltly.com/2uKwv5">https://byltly.com/2uKwv5</a></b></p><br /><br />
|
7 |
-
<h3>The significance and benefits of Chandi Saptashati</h3>
|
8 |
-
<p>Chandi Saptashati is a collection of 700 verses that describe the victory of Goddess Durga over various demons and evil forces that threaten the cosmic order. It also reveals the different forms and aspects of Goddess Durga, such as Mahalakshmi, Mahasaraswati, Mahakali, etc. By reading and chanting Chandi Saptashati, one can invoke the blessings of Goddess Durga and overcome all kinds of obstacles, difficulties, enemies, diseases, fears, sins, etc. It also bestows prosperity, happiness, peace, wisdom, devotion, liberation, etc. on the devotees.</p>
|
9 |
-
<h3>The structure and contents of Chandi Saptashati</h3>
|
10 |
-
<p>Chandi Saptashati is divided into three sections or charitas: Prathama Charita (first section), Madhyama Charita (middle section), and Uttara Charita (last section). Each section consists of several chapters or adhyayas that narrate a different episode of Goddess Durga's battle with the demons. The main chapters are as follows:</p>
|
11 |
-
<ul>
|
12 |
-
<li>Prathama Charita: Chapter 1 (The slaying of Madhu and Kaitabha), Chapter 2 (The slaying of Mahishasura's army), Chapter 3 (The slaying of Mahishasura)</li>
|
13 |
-
<li>Madhyama Charita: Chapter 4 (The praise of Goddess Durga by Indra and other gods), Chapter 5 (The conversation between Devi's messenger and Shumbha), Chapter 6 (The slaying of Dhumralochana), Chapter 7 (The slaying of Chanda and Munda), Chapter 8 (The slaying of Raktabija), Chapter 9 (The slaying of Nishumbha)</li>
|
14 |
-
<li>Uttara Charita: Chapter 10 (The slaying of Shumbha), Chapter 11 (The praise of Goddess Narayani by Indra and other gods), Chapter 12 (The boon given by Goddess Durga to Suratha and Samadhi), Chapter 13 (The epilogue)</li>
|
15 |
-
</ul>
|
16 |
-
<p>In addition to these chapters, there are some other prayers and hymns that are recited before and after reading Chandi Saptashati. These include Devi Kavacham (the armor of Goddess Durga), Argala Stotram (the hymn that unlocks the blessings of Goddess Durga), Keelaka Stotram (the hymn that removes the obstacles in reading Chandi Saptashati), Ratri Sukta (the hymn that praises the night aspect of Goddess Durga), Devi Atharvashirsha (the essence of Goddess Durga's wisdom), Siddha Kunjika Stotram (the hymn that activates the power of Chandi Saptashati), Navarna Vidhi (the method of worshipping Goddess Durga with nine syllables), Aparadha Kshamapana Stotram (the hymn that seeks forgiveness for any mistakes or offenses committed while reading Chandi Saptashati), etc.</p>
|
17 |
-
<h2>How to download Chandi Saptashati in Telugu PDF for free?</h2>
|
18 |
-
<h3>The best sources and links for downloading Chandi Saptashati in Telugu PDF</h3>
|
19 |
-
<p>If you want to download Chandi Saptashati in Telugu PDF for free, you have several options available online. However, not all sources are reliable or authentic. Some may have errors or omissions in the text or translation. Some may have viruses or malware that can harm your device or data. Therefore, you should be careful while choosing a source or link for downloading Chandi Saptashati in Telugu PDF.</p>
|
20 |
-
<p>Here are some of the best sources and links for downloading Chandi Saptashati in Telugu PDF that we have found after doing some research:</p>
|
21 |
-
<ul>
|
22 |
-
<li><a href="https://stotranidhi.com/anubandham/durga-saptasati-in-telugu/">Stotra Nidhi</a>: This website provides a complete text and translation of Chandi Saptashati in Telugu along with other stotras related to Goddess Durga. You can read it online or download it as a PDF file by clicking on the "Download" button at the top right corner.</li>
|
23 |
-
<li><a href="https://hindupad.com/devi-mahatmyam-telugu-pdf-download-durga-saptashati-chandi-saptashati/">HinduPad</a>: This website provides a link to download Devi Mahatmyam in Telugu PDF from Google Drive. You can access it by clicking on the "Download Devi Mahatmyam in Telugu PDF here" link at the bottom of the page.</li>
|
24 |
-
<li><a href="https://docslib.org/doc/2419362/chandi-saptashati-telugu-pdf-free-download">DocsLib</a>: This website provides a link to download Chandi Saptashati Telugu PDF from MediaFire. You can access it by clicking on the "Download" button at the top right corner.</li>
|
25 |
-
<li><a href="https://www.scribd.com/document/553659204/Pdfcoffee-com-Chandi-Homam-Telugu-PDF-Free">Scribd</a>: This website provides a PDF file that contains some information about Chandi Homam along with a link to download Devi Mahatmyam in Telugu PDF from Google Drive. You can access it by clicking on the "Download Now" button at the top right corner.</li>
|
26 |
-
</ul>
|
27 |
-
<h3>The steps and tips for downloading Chandi Saptashati in Telugu PDF</h3>
|
28 |
-
<p>The steps and tips for downloading Chandi Saptashati in Telugu PDF may vary depending on the source or link you choose. However, here are some general steps and tips that can help you:</p>
|
29 |
-
<ol>
|
30 |
-
<li>Select a source or link from the list above or any other reliable source that you trust.</li>
|
31 |
-
<li>Click on the source or link to open it in a new tab or window.</li>
|
32 |
-
<li>Look for a button or option that says "Download", "Download Now", "Save", "Save As", etc.</li>
|
33 |
-
<li>Click on it to start downloading the file.</li>
|
34 |
-
<li>Choose a location on your device where you want to save the file.</li>
|
35 |
-
<li>Wait for the download to complete.</li>
|
36 |
-
```html <li>Enjoy reading and chanting Chandi Saptashati in Telugu.</li>
|
37 |
-
</ol>
|
38 |
-
<p>Some tips to keep in mind while downloading Chandi Saptashati in Telugu PDF are:</p>
|
39 |
-
<p>chandi saptashati telugu book pdf download<br />
|
40 |
-
chandi saptashati telugu lyrics pdf free download<br />
|
41 |
-
chandi saptashati telugu parayanam pdf free download<br />
|
42 |
-
chandi saptashati telugu stotram pdf free download<br />
|
43 |
-
chandi saptashati telugu audio mp3 free download<br />
|
44 |
-
chandi saptashati telugu devi mahatmyam pdf free download<br />
|
45 |
-
chandi saptashati telugu durga saptashati pdf free download<br />
|
46 |
-
chandi saptashati telugu ebook pdf free download<br />
|
47 |
-
chandi saptashati telugu full pdf free download<br />
|
48 |
-
chandi saptashati telugu mantra pdf free download<br />
|
49 |
-
chandi saptashati telugu online pdf free download<br />
|
50 |
-
chandi saptashati telugu pdf file free download<br />
|
51 |
-
chandi saptashati telugu pdf with meaning free download<br />
|
52 |
-
chandi saptashati telugu slokas pdf free download<br />
|
53 |
-
chandi saptashati telugu text pdf free download<br />
|
54 |
-
chandi saptashati in telugu script pdf free download<br />
|
55 |
-
chandi saptashati in telugu with meaning pdf free download<br />
|
56 |
-
durga devi chandi saptashati telugu pdf free download<br />
|
57 |
-
maa durga chandi saptashati telugu pdf free download<br />
|
58 |
-
shri durga chandi saptashati telugu pdf free download<br />
|
59 |
-
argala stotram in telugu pdf free download chandi saptashati<br />
|
60 |
-
devi kavacham in telugu pdf free download chandi saptashati<br />
|
61 |
-
keelakam in telugu pdf free download chandi saptashati<br />
|
62 |
-
rahasya traya in telugu pdf free download chandi saptashati<br />
|
63 |
-
sapta sloki durga in telugu pdf free download chandi saptashati<br />
|
64 |
-
shiva tandava stotram in telugu pdf free download chandi saptashati<br />
|
65 |
-
shree suktam in telugu pdf free download chandi saptashati<br />
|
66 |
-
sidha kunjika stotram in telugu pdf free download chandi saptashati<br />
|
67 |
-
vishnu sahasranamam in telugu pdf free download chandi saptashati<br />
|
68 |
-
aditya hrudayam in telugu pdf free download chandi saptashati<br />
|
69 |
-
anjaneya dandakam in telugu pdf free download chandi saptashati<br />
|
70 |
-
ashta lakshmi stotram in telugu pdf free download chandi saptashati<br />
|
71 |
-
bhagavad gita in telugu pdf free download chandi saptashati<br />
|
72 |
-
bhaja govindam in telugu pdf free download chandi saptashati<br />
|
73 |
-
dakshinamurthy stotram in telugu pdf free download chandi saptashati<br />
|
74 |
-
ganapathi atharvashirsha in telugu pdf free download chandi saptashati<br />
|
75 |
-
hanuman chalisa in telugu pdf free download chandi saptashati<br />
|
76 |
-
kanakadhara stotram in telugu pdf free download chandi saptashati<br />
|
77 |
-
lalitha sahasranamam in telugu pdf free download chandi saptashati<br />
|
78 |
-
mahalakshmi ashtakam in telugu pdf free download chandi saptashati<br />
|
79 |
-
mahishasura mardini stotram in telugu pdf free download chandi saptashati<br />
|
80 |
-
medha dakshinamurthy stotram in telugu pdf free download chandi saptashati<br />
|
81 |
-
meenakshi pancharatnam in telugu pdf free download chandi saptashati<br />
|
82 |
-
narayana kavacham in telugu pdf free download chandi saptashati<br />
|
83 |
-
navagraha stotram in telugu pdf free download chandi saptashati<br />
|
84 |
-
rama raksha stotram in telugu pdf free download chandi saptashati<br />
|
85 |
-
rudra namakam chamakam in telugu pdf free download chandi saptashati<br />
|
86 |
-
runa vimochana ganapathi stotram in telugu pdf free download chandi saptashati<br />
|
87 |
-
saraswathi namasthubyam sloka in telugu pdf free download chandi saptashati<br />
|
88 |
-
subramanya bhujangam in telugu pdf free download chandi saptashati</p>
|
89 |
-
<ul>
|
90 |
-
<li>Make sure you have a stable internet connection and enough storage space on your device.</li>
|
91 |
-
<li>Use a trusted and updated antivirus or malware protection software to scan the file before opening it.</li>
|
92 |
-
<li>Do not share the file with anyone who may misuse it or violate the copyright laws.</li>
|
93 |
-
<li>Respect the sanctity and sacredness of Chandi Saptashati and do not use it for any negative or harmful purposes.</li>
|
94 |
-
</ul>
|
95 |
-
<h2>How to read and chant Chandi Saptashati in Telugu?</h2>
|
96 |
-
<h3>The prerequisites and preparations for reading and chanting Chandi Saptashati</h3>
|
97 |
-
<p>Reading and chanting Chandi Saptashati is a powerful and auspicious practice that can transform your life and bring you closer to Goddess Durga. However, it also requires some prerequisites and preparations to do it properly and effectively. Here are some of them:</p>
|
98 |
-
<ul>
|
99 |
-
<li>You should have faith and devotion towards Goddess Durga and her various forms.</li>
|
100 |
-
<li>You should have a clear intention and purpose for reading and chanting Chandi Saptashati.</li>
|
101 |
-
<li>You should have a clean and pure body, mind, and soul. You should avoid eating meat, alcohol, garlic, onion, etc. You should also abstain from any sinful or immoral activities.</li>
|
102 |
-
<li>You should have a suitable place and time for reading and chanting Chandi Saptashati. You should choose a quiet, clean, and comfortable place where you will not be disturbed or distracted. You should also choose a time that is convenient for you and that coincides with the auspicious phases of the moon or the days of Navratri.</li>
|
103 |
-
<li>You should have a proper book or PDF file of Chandi Saptashati in Telugu along with other accessories such as a lamp, incense, flowers, fruits, etc. You should also have a picture or idol of Goddess Durga or any of her forms that you prefer.</li>
|
104 |
-
</ul>
|
105 |
-
<h3>The procedure and rules for reading and chanting Chandi Saptashati</h3>
|
106 |
-
<p>The procedure and rules for reading and chanting Chandi Saptashati may vary depending on the tradition or lineage that you follow. However, here are some general steps and rules that can help you:</p>
|
107 |
-
<ol>
|
108 |
-
<li>Before starting the reading or chanting, you should take a bath and wear clean clothes. You should also apply some sandalwood paste or kumkum on your forehead.</li>
|
109 |
-
<li>You should light a lamp and incense in front of the picture or idol of Goddess Durga. You should also offer some flowers, fruits, sweets, etc. to her.</li>
|
110 |
-
<li>You should sit on a mat or cushion facing east or north. You should keep your spine straight and your eyes closed or focused on the picture or idol of Goddess Durga.</li>
|
111 |
-
<li>You should invoke the presence and blessings of Goddess Durga by reciting some mantras such as "Om Shri Durgayai Namah" or "Om Aim Hreem Kleem Chamundayai Vichche". You should also recite some prayers such as Devi Kavacham, Argala Stotram, Keelaka Stotram, etc.</li>
|
112 |
-
<li>You should start reading or chanting Chandi Saptashati from the beginning to the end without skipping any chapter or verse. You should read or chant with clarity, accuracy, devotion, and concentration. You should also understand the meaning and significance of each verse.</li>
|
113 |
-
<li>After finishing the reading or chanting, you should recite some hymns such as Ratri Sukta, Devi Atharvashirsha, Siddha Kunjika Stotram, Navarna Vidhi, Aparadha Kshamapana Stotram, etc.</li>
|
114 |
-
```html <li>You should meditate on the form and qualities of Goddess Durga and feel her presence and energy in your heart and mind.</li>
|
115 |
-
<li>You should bow down to Goddess Durga and seek her guidance and blessings for your life and goals.</li>
|
116 |
-
</ol>
|
117 |
-
<p>Some rules to keep in mind while reading and chanting Chandi Saptashati are:</p>
|
118 |
-
<ul>
|
119 |
-
<li>You should read or chant Chandi Saptashati with respect and reverence. You should not treat it as a mere ritual or a magic spell.</li>
|
120 |
-
<li>You should read or chant Chandi Saptashati with a positive and humble attitude. You should not have any ego, pride, greed, envy, anger, etc.</li>
|
121 |
-
<li>You should read or chant Chandi Saptashati with a sincere and pure intention. You should not have any selfish or harmful motives.</li>
|
122 |
-
<li>You should read or chant Chandi Saptashati with a regular and consistent practice. You should not be lazy or irregular.</li>
|
123 |
-
<li>You should read or chant Chandi Saptashati with a complete and faithful devotion. You should not doubt or question the power and grace of Goddess Durga.</li>
|
124 |
-
</ul>
|
125 |
-
<h3>The best time and occasions for reading and chanting Chandi Saptashati</h3>
|
126 |
-
<p>Reading and chanting Chandi Saptashati can be done at any time and on any day. However, there are some special times and occasions that are considered more auspicious and beneficial for this practice. Here are some of them:</p>
|
127 |
-
<ul>
|
128 |
-
<li>The best time to read or chant Chandi Saptashati is in the early morning or evening during the Brahma Muhurta (the hour before sunrise) or the Sandhya (the twilight period).</li>
|
129 |
-
<li>The best days to read or chant Chandi Saptashati are Tuesdays and Fridays as they are dedicated to Goddess Durga.</li>
|
130 |
-
<li>The best phases of the moon to read or chant Chandi Saptashati are the Shukla Paksha (the bright fortnight) and the Purnima (the full moon day) as they represent the growth and fullness of Goddess Durga's energy.</li>
|
131 |
-
<li>The best occasions to read or chant Chandi Saptashati are the Navratri (the nine nights of Goddess Durga), the Dussehra (the tenth day of victory over evil), the Diwali (the festival of lights), the Basant Panchami (the spring festival), the Shivaratri (the night of Lord Shiva), etc. as they celebrate the various aspects and manifestations of Goddess Durga.</li>
|
132 |
-
</ul>
|
133 |
-
<h2>Conclusion</h2>
|
134 |
-
<h3>A summary of the main points of the article</h3>
|
135 |
-
<p>In this article, we have learned about Chandi Saptashati, how to download it in Telugu PDF for free, and how to read and chant it properly. We have seen that Chandi Saptashati is a sacred text that praises the power and grace of Goddess Durga and her victory over evil. We have also seen that reading and chanting Chandi Saptashati can bring us many benefits such as protection, prosperity, happiness, peace, wisdom, devotion, liberation, etc. We have also seen that reading and chanting Chandi Saptashati requires some prerequisites and preparations such as faith, intention, purity, place, time, book, etc. We have also seen that reading and chanting Chandi Saptashati involves some procedure and rules such as invocation, recitation, hymns, meditation, gratitude, etc. We have also seen that reading and chanting Chandi Saptashati can be done at any time and on any day but there are some special times and occasions that are more auspicious and beneficial for this practice such as Tuesdays, Fridays, Shukla Paksha, Purnima, Navratri, Dussehra, Diwali, Basant Panchami, Shivaratri, etc.</p>
|
136 |
-
<h3>A call to action for the readers to download and read Chandi Saptashati in Telugu</h3>
|
137 |
-
<p>We hope that this article has inspired you to download and read Chandi Saptashati in Telugu PDF for free. If you are a devotee of Goddess Durga who wants to experience her power and grace in your life, then you should not miss this opportunity. Reading and chanting Chandi Saptashati in Telugu will not only enrich your knowledge and understanding of Goddess Durga but also transform your life and destiny. So what are you waiting for? Download Chandi Saptashati in Telugu PDF for free from any of the sources or links given above and start reading and chanting it today. You will surely feel the difference in your life.</p>
|
138 |
-
<h2>FAQs</h2>
|
139 |
-
<h3>What is the meaning of Chandi?</h3>
|
140 |
-
<p>Chandi is one of the names of Goddess Durga that means "the fierce one" or "the one who tears apart". It also refers to her sword that she uses to slay the demons.</p>
|
141 |
-
<h3>What is the difference between Devi Mahatmyam and Durga Saptashati?</h3>
|
142 |
-
<p>Devi Mahatmyam and Durga Saptashati are two different names for the same text that describes the glory of Goddess Durga. Devi Mahatmyam means "the greatness of Goddess" while Durga Saptashati means "the seven hundred verses on Goddess Durga".</p>
|
143 |
-
<h3>How long does it take to read or chant Chandi Saptashati?</h3>
|
144 |
-
<p>It depends on your speed and fluency but generally it takes about two to three hours to read or chant Chandi Saptashati completely.</p>
|
145 |
-
```html <p>Yes, you can read or chant Chandi Saptashati in any other language that you are comfortable with. However, it is advisable to read or chant it in the original Sanskrit language or in a language that is close to Sanskrit such as Telugu, Hindi, etc. as they preserve the original sound and vibration of the verses.</p>
|
146 |
-
<h3>Can I read or chant Chandi Saptashati alone or with others?</h3>
|
147 |
-
<p>You can read or chant Chandi Saptashati alone or with others as per your preference and convenience. However, it is more beneficial to read or chant it with others as it creates a collective energy and harmony among the devotees.</p> 0a6ba089eb<br />
|
148 |
-
<br />
|
149 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Global Mapper Download The Ultimate GIS Software for Your Mapping Needs.md
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Use Global Mapper Download to Create and Edit Maps</h1>
|
3 |
-
<p>Global Mapper is a powerful and versatile geographic information system (GIS) software that allows you to create, edit, and analyze maps and spatial data. Whether you are a professional mapper, a student, or a hobbyist, Global Mapper can help you with your mapping needs.</p>
|
4 |
-
<h2>global mapper download</h2><br /><p><b><b>DOWNLOAD</b> ☆☆☆ <a href="https://byltly.com/2uKzTf">https://byltly.com/2uKzTf</a></b></p><br /><br />
|
5 |
-
<p>One of the advantages of Global Mapper is that it supports a wide range of data formats, including raster, vector, elevation, and LiDAR. You can also access online data sources such as Google Maps, OpenStreetMap, and USGS. With Global Mapper, you can easily import, export, convert, project, reproject, mosaic, tile, resample, and crop your data.</p>
|
6 |
-
<p>Another feature of Global Mapper is that it offers a variety of tools for editing and manipulating your data. You can use Global Mapper to digitize new features, edit existing features, create buffers, clip areas, merge layers, calculate attributes, perform spatial analysis, and more. You can also customize the appearance of your map by applying colors, symbols, labels, legends, scale bars, and grids.</p>
|
7 |
-
<p>If you want to try Global Mapper for yourself, you can download a free trial version from the official website. The trial version is fully functional for 14 days and allows you to test all the features of Global Mapper. To download the trial version, you need to fill out a short form with your name and email address. You will then receive a download link and an activation code in your email.</p>
|
8 |
-
<p>To install Global Mapper on your computer, you need to run the downloaded file and follow the instructions on the screen. You will also need to enter the activation code that you received in your email. Once the installation is complete, you can launch Global Mapper and start creating and editing your maps.</p>
|
9 |
-
<p>Global Mapper is a user-friendly and affordable GIS software that can handle any type of spatial data. Whether you need to create maps for work, school, or fun, Global Mapper can help you achieve your goals. To learn more about Global Mapper and its features, you can visit the official website or watch some tutorials on YouTube.</p>
|
10 |
-
<p></p>
|
11 |
-
|
12 |
-
<p>In this article, we will show you how to use Global Mapper to create a simple map of Florida with some basic features. You will learn how to import data, add layers, edit attributes, and export your map as an image file.</p>
|
13 |
-
<h2>Step 1: Import Data</h2>
|
14 |
-
<p>The first step is to import some data into Global Mapper. For this example, we will use two data sources: a shapefile of Florida counties and a raster image of Florida elevation. You can download these data sources from the links below:</p>
|
15 |
-
<ul>
|
16 |
-
<li><a href="https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_county_500k.zip">Florida counties shapefile</a></li>
|
17 |
-
<li><a href="https://prd-tnm.s3.amazonaws.com/StagedProducts/Elevation/13/ArcGrid/USGS_NED_13_n28w082_ArcGrid.zip">Florida elevation raster</a></li>
|
18 |
-
</ul>
|
19 |
-
<p>After downloading the data sources, you need to unzip them and save them in a folder on your computer. Then, you can open Global Mapper and click on the File menu. Select Open Data Files and browse to the folder where you saved the data sources. Select both files and click Open.</p>
|
20 |
-
<p>Global Mapper will import the data and display them on the map window. You will see two layers in the Overlay Control Center on the left side of the screen: one for the counties and one for the elevation. You can turn on or off each layer by checking or unchecking the box next to its name. You can also change the order of the layers by dragging and dropping them.</p>
|
21 |
-
<h2>Step 2: Add Layers</h2>
|
22 |
-
<p>The next step is to add some more layers to your map. For this example, we will add three more layers: a shapefile of Florida roads, a shapefile of Florida cities, and an online layer of Google Maps. You can download the shapefiles from the links below:</p>
|
23 |
-
<ul>
|
24 |
-
<li><a href="https://www2.census.gov/geo/tiger/TIGER2018/ROADS/tl_2018_12_prisecroads.zip">Florida roads shapefile</a></li>
|
25 |
-
<li><a href="https://www2.census.gov/geo/tiger/TIGER2018/PLACE/tl_2018_12_place.zip">Florida cities shapefile</a></li>
|
26 |
-
</ul>
|
27 |
-
<p>After downloading the shapefiles, you need to unzip them and save them in the same folder as before. Then, you can open Global Mapper and click on the File menu. Select Open Data Files and browse to the folder where you saved the shapefiles. Select both files and click Open.</p>
|
28 |
-
<p>Global Mapper will import the data and display them on the map window. You will see two more layers in the Overlay Control Center: one for the roads and one for the cities. You can turn on or off each layer by checking or unchecking the box next to its name. You can also change the order of the layers by dragging and dropping them.</p>
|
29 |
-
<p>To add an online layer of Google Maps, you need to click on the Online Sources button on the toolbar. A window will pop up with a list of available online sources. Select Google Maps Hybrid and click OK.</p>
|
30 |
-
<p>Global Mapper will download and display the online layer on the map window. You will see another layer in the Overlay Control Center: one for Google Maps Hybrid. You can turn on or off this layer by checking or unchecking the box next to its name. You can also change its opacity by moving the slider below its name.</p> ddb901b051<br />
|
31 |
-
<br />
|
32 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Cycorefx Hd 1.7.1 Crack Cs4.md
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Use CycoreFX HD 1.7.1 in After Effects CS4</h1>
|
3 |
-
<p>CycoreFX HD 1.7.1 is a collection of professional plug-ins for Adobe After Effects CS4 that enhance your creative options and workflow. CycoreFX HD 1.7.1 includes over 70 effects such as blurs, glows, distortions, particles, transitions, generators and more.</p>
|
4 |
-
<h2>cycorefx hd 1.7.1 crack cs4</h2><br /><p><b><b>DOWNLOAD</b> ☆☆☆☆☆ <a href="https://imgfil.com/2uxXyB">https://imgfil.com/2uxXyB</a></b></p><br /><br />
|
5 |
-
<p>In this article, we will show you how to install and use CycoreFX HD 1.7.1 in After Effects CS4 on Mac or Windows.</p>
|
6 |
-
<h2>Installation</h2>
|
7 |
-
<p>To install CycoreFX HD 1.7.1, you need to have a valid license and serial number from Cycore Systems. You can purchase CycoreFX HD 1.7.1 from their website[^1^] or from authorized resellers.</p>
|
8 |
-
<p>After you download the installer file, follow these steps:</p>
|
9 |
-
<p></p>
|
10 |
-
<ol>
|
11 |
-
<li>Quit After Effects CS4 if it is running.</li>
|
12 |
-
<li>Double-click the installer file and follow the instructions on screen.</li>
|
13 |
-
<li>Enter your serial number when prompted.</li>
|
14 |
-
<li>Restart After Effects CS4 and check that CycoreFX HD 1.7.1 is available in the Effects menu.</li>
|
15 |
-
</ol>
|
16 |
-
<h2>Usage</h2>
|
17 |
-
<p>To use CycoreFX HD 1.7.1, you need to apply the effects to your layers in After Effects CS4. You can find the effects in the Effects menu under CycoreFX HD.</p>
|
18 |
-
<p>Each effect has its own parameters and options that you can adjust in the Effect Controls panel. You can also animate the effects using keyframes or expressions.</p>
|
19 |
-
<p>For more information on how to use each effect, you can refer to the manual[^2^] that comes with the installer file or visit the samples and tutorials page[^3^] on the CycoreFX website.</p>
|
20 |
-
<h2>Conclusion</h2>
|
21 |
-
<p>CycoreFX HD 1.7.1 is a powerful and versatile plug-in package for After Effects CS4 that can enhance your creative possibilities and productivity. Whether you need to create realistic or stylized effects, CycoreFX HD 1.7.1 has something for you.</p>
|
22 |
-
<p>We hope this article has helped you learn how to install and use CycoreFX HD 1.7.1 in After Effects CS4. If you have any questions or feedback, please leave a comment below.</p>
|
23 |
-
|
24 |
-
<h2>Benefits of CycoreFX HD 1.7.1</h2>
|
25 |
-
<p>One of the main benefits of CycoreFX HD 1.7.1 is that it offers high-quality and fast-rendering effects that are compatible with After Effects CS4. You can use CycoreFX HD 1.7.1 to create stunning visuals for your projects, such as motion graphics, animations, commercials, films and more.</p>
|
26 |
-
<p>Another benefit of CycoreFX HD 1.7.1 is that it is easy to use and customize. You can apply the effects with a simple drag and drop, and adjust the parameters to suit your needs and preferences. You can also combine the effects with other native or third-party effects to create unique and complex results.</p>
|
27 |
-
<p>A third benefit of CycoreFX HD 1.7.1 is that it is affordable and cost-effective. You can get CycoreFX HD 1.7.1 for a reasonable price from the Cycore Systems website or from authorized resellers. You can also get discounts if you purchase multiple licenses or bundle deals.</p>
|
28 |
-
<h2>Limitations of CycoreFX HD 1.7.1</h2>
|
29 |
-
<p>While CycoreFX HD 1.7.1 is a great plug-in package for After Effects CS4, it also has some limitations that you should be aware of.</p>
|
30 |
-
<p>One limitation of CycoreFX HD 1.7.1 is that it is not compatible with newer versions of After Effects, such as CS5 or later. If you want to use CycoreFX HD in newer versions of After Effects, you need to upgrade to CycoreFX HD 2.x or later.</p>
|
31 |
-
<p>Another limitation of CycoreFX HD 1.7.1 is that it does not support 32-bit color depth or HDR (high dynamic range) images. If you want to use these features in After Effects CS4, you need to use other native or third-party effects that support them.</p>
|
32 |
-
<p>A third limitation of CycoreFX HD 1.7.1 is that it does not include any presets or templates that you can use as a starting point for your effects. If you want to use presets or templates, you need to create them yourself or download them from other sources.</p> d5da3c52bf<br />
|
33 |
-
<br />
|
34 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/Tamil Dubbed Skyfall Movies Free Download 720p !!INSTALL!!.md
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
## Tamil Dubbed Skyfall Movies Free Download 720p
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-

|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
**Click Here >> [https://lodystiri.blogspot.com/?file=2txPBl](https://lodystiri.blogspot.com/?file=2txPBl)**
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
Here is a possible title and article with HTML formatting for the keyword "Tamil Dubbed Skyfall Movies Free Download 720p":
|
26 |
-
|
27 |
-
# Tamil Dubbed Skyfall Movies Free Download 720p: How to Watch the Latest James Bond Movie Online
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
Skyfall is the 23rd installment in the James Bond series, starring Daniel Craig as the iconic spy. The movie follows Bond as he faces a mysterious cyberterrorist named Silva, who has a personal vendetta against his former boss, M. Skyfall is widely regarded as one of the best Bond movies ever made, with critics praising its action, story, and performances.
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
If you are a fan of James Bond and want to watch Skyfall in Tamil, you might be wondering how to download it for free in 720p quality. Well, you are not alone. Many people are looking for ways to watch Tamil dubbed Skyfall movies online without paying any money. However, you should be careful about the websites that claim to offer free downloads of Skyfall in Tamil. Some of them might be illegal, unsafe, or fake.
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
In this article, we will tell you how to watch Tamil dubbed Skyfall movies online legally and safely. We will also give you some tips on how to avoid scams and malware when downloading movies from the internet.
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
## How to Watch Tamil Dubbed Skyfall Movies Online Legally and Safely
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
The best way to watch Tamil dubbed Skyfall movies online is to use a streaming service that has the rights to show the movie in your region. Streaming services are platforms that let you watch movies and shows online without downloading them. Some of the popular streaming services that offer Tamil dubbed Skyfall movies are:
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
- [Hotstar](https://www.hotstar.com/in): Hotstar is one of the leading streaming services in India, offering a wide range of content in various languages. You can watch Tamil dubbed Skyfall movies on Hotstar with a premium subscription, which costs Rs. 299 per month or Rs. 1499 per year. You can also get a free trial for seven days before paying.
|
52 |
-
|
53 |
-
- [Amazon Prime Video](https://www.amazon.com/prime-video): Amazon Prime Video is another popular streaming service that has a huge library of movies and shows in different languages. You can watch Tamil dubbed Skyfall movies on Amazon Prime Video with a prime membership, which costs Rs. 129 per month or Rs. 999 per year. You can also get a free trial for 30 days before paying.
|
54 |
-
|
55 |
-
- [Netflix](https://www.netflix.com/in): Netflix is the world's largest streaming service, offering thousands of titles in various genres and languages. You can watch Tamil dubbed Skyfall movies on Netflix with a basic plan, which costs Rs. 199 per month. You can also get a free trial for one month before paying.
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
These streaming services are legal and safe to use, as they have the proper licenses and security measures to protect your data and devices. They also offer high-quality video and audio, as well as subtitles and other features. However, you will need a stable internet connection and a compatible device to watch Tamil dubbed Skyfall movies online on these platforms.
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
## How to Avoid Scams and Malware When Downloading Movies from the Internet
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
If you are tempted to download Tamil dubbed Skyfall movies for free from the internet, you should be very careful about the websites that offer such downloads. Some of them might be scams or malware that can harm your computer or mobile phone. Here are some tips on how to avoid scams and malware when downloading movies from the internet:
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
- Do not click on any links or pop-ups that claim to offer free downloads of Skyfall in Tamil. They might redirect you to malicious websites that can infect your device with viruses or spyware.
|
72 |
-
|
73 |
-
- Do not download any files or software that claim to be Skyfall in Tamil. They might contain malware that can steal your personal information or damage your device.
|
74 |
-
|
75 |
-
- Do not provide any personal or financial information to any website that claims to offer free downloads of Skyfall in Tamil. They might use your information for identity theft or fraud.
|
76 |
-
|
77 |
-
- Do not trust any website that has poor design, spelling errors, or suspicious domain names. They might be fake or illegal websites that can trick you into downloading malware or paying money.
|
78 |
-
|
79 |
-
- Do some research before downloading any movie from the internet. Check the reviews, ratings, dfd1c89656
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1pelhydcardo/ChatGPT-prompt-generator/assets/Download Airbnb Data A Step-by-Step Tutorial with Examples.md
DELETED
@@ -1,183 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Download Airbnb Data: A Guide for Data Enthusiasts</h1>
|
3 |
-
<p>Airbnb is one of the most popular online platforms for finding and booking short-term rentals around the world. Whether you are a traveler, a host, or a researcher, you might be interested in accessing and analyzing Airbnb data for various purposes. For example, you might want to:</p>
|
4 |
-
<ul>
|
5 |
-
<li>Explore the supply and demand of Airbnb listings in different markets</li>
|
6 |
-
<li>Compare the prices, ratings, and amenities of different properties</li>
|
7 |
-
<li>Optimize your listing performance and revenue as a host</li>
|
8 |
-
<li>Understand the impact of Airbnb on local communities and economies</li>
|
9 |
-
<li>Discover new trends and opportunities in the travel industry</li>
|
10 |
-
</ul>
|
11 |
-
<p>However, getting Airbnb data is not as easy as it might seem. Unlike some other online platforms, such as Twitter or Facebook, Airbnb does not provide an official API (application programming interface) that allows users to access its data programmatically. Moreover, Airbnb's terms of service prohibit users from scraping or copying its content without permission.</p>
|
12 |
-
<h2>download airbnb data</h2><br /><p><b><b>Download File</b> >>>>> <a href="https://urlin.us/2uT2UX">https://urlin.us/2uT2UX</a></b></p><br /><br />
|
13 |
-
<p>So, how can you download Airbnb data without violating its policies or compromising your privacy? In this article, we will show you four ways to get Airbnb data for free or for a fee, depending on your needs and budget. We will also explain the benefits, challenges, and best practices of using each method.</p>
|
14 |
-
<h2>How to Get Airbnb Data for Free</h2>
|
15 |
-
<p>If you are looking for a free way to get Airbnb data, you have two options: Inside Airbnb and Airbnb website. Let's take a closer look at each one.</p>
|
16 |
-
<h3>Inside Airbnb: A Project that Provides Data and Advocacy</h3> <p><b>What is Inside Airbnb and how does it work?</b></p>
|
17 |
-
<p>Inside Airbnb is a project that provides data and advocacy about Airbnb's impact on residential communities. It collects and analyzes publicly available information from the Airbnb website, such as the number, location, price, and availability of listings, as well as the ratings and reviews of hosts and guests. It also provides tools to explore and visualize the data for dozens of cities and countries around the world .</p>
|
18 |
-
<p><b>How to download and explore the data from Inside Airbnb?</b></p>
|
19 |
-
<p>To download the data from Inside Airbnb, you can go to its website and choose a city or country from the list. You will see a map of the listings and some statistics on the supply and demand of Airbnb in that area. You can also click on Explore to access more detailed data and charts. To get the data as a downloadable file, you can click on Get the Data and choose the file format you prefer. You can download detailed or summary data for listings, calendar, reviews, and neighborhoods.</p>
|
20 |
-
<p><b>What are the limitations and caveats of Inside Airbnb data?</b></p>
|
21 |
-
<p>How to download airbnb data for market analysis<br />
|
22 |
-
Download airbnb data by city, country, or region<br />
|
23 |
-
Airbnb data download: what you need to know<br />
|
24 |
-
Best tools to download and analyze airbnb data<br />
|
25 |
-
Download airbnb data for short-term rental investing<br />
|
26 |
-
Airbnb data download: how to get historical and future data<br />
|
27 |
-
Download airbnb data for competitive intelligence<br />
|
28 |
-
Airbnb data download: how to access and use the API<br />
|
29 |
-
Download airbnb data for pricing optimization<br />
|
30 |
-
Airbnb data download: how to get reviews and ratings data<br />
|
31 |
-
Download airbnb data for occupancy and demand forecasting<br />
|
32 |
-
Airbnb data download: how to get insights on guest behavior and preferences<br />
|
33 |
-
Download airbnb data for property management and marketing<br />
|
34 |
-
Airbnb data download: how to get data on amenities and features<br />
|
35 |
-
Download airbnb data for benchmarking and performance tracking<br />
|
36 |
-
Airbnb data download: how to get data on hosts and listings<br />
|
37 |
-
Download airbnb data for regulatory compliance and reporting<br />
|
38 |
-
Airbnb data download: how to get data on cancellations and refunds<br />
|
39 |
-
Download airbnb data for revenue management and profitability<br />
|
40 |
-
Airbnb data download: how to get data on seasonality and trends<br />
|
41 |
-
Download airbnb data for machine learning and AI applications<br />
|
42 |
-
Airbnb data download: how to get data on COVID-19 impact and recovery<br />
|
43 |
-
Download airbnb data for niche markets and segments<br />
|
44 |
-
Airbnb data download: how to get data on loyalty and retention<br />
|
45 |
-
Download airbnb data for customer service and satisfaction</p>
|
46 |
-
<p>While Inside Airbnb data is useful for researching particular Airbnb markets, it has some limitations and caveats that you should be aware of. For example:</p>
|
47 |
-
<ul>
|
48 |
-
<li>The data is not official or authorized by Airbnb, and it may not reflect the current or accurate state of the platform.</li>
|
49 |
-
<li>The data is based on web scraping, which is a technique that extracts information from web pages. This means that the data may be incomplete, outdated, or inaccurate due to changes in the website structure or content.</li>
|
50 |
-
<li>The data is updated periodically, but not in real time. The frequency of updates may vary depending on the city or country. You can check the date of the last update on the website.</li>
|
51 |
-
<li>The data may not include all types of listings or reservations, such as those that are hidden, deleted, or booked through other channels.</li>
|
52 |
-
<li>The data may not capture all aspects of Airbnb's impact, such as its effect on housing affordability, neighborhood diversity, or local regulations.</li>
|
53 |
-
</ul>
|
54 |
-
<p>Therefore, you should use Inside Airbnb data with caution and cross-check it with other sources of information when possible.</p>
|
55 |
-
<h3>Airbnb Website: A Source of Personal and Transactional Data</h3>
|
56 |
-
<p>If you are an Airbnb user, you can also get some personal and transactional data from the Airbnb website. This includes your profile information, messages, search history, reservations, payment history, payment instruments, reviews, etc. You can request a copy of your data as a downloadable file or print receipts and payout details for completed reservations.</p>
|
57 |
-
<p><b>How to request and download your personal data file from Airbnb?</b></p>
|
58 |
-
<p>To request a copy of your personal data from Airbnb, you can go to the Privacy & sharing section of your Account and select Request your personal data. Once your data request is processed, you will receive an email informing you that your data is available as a downloadable file. The file will include a spreadsheet with your personal data from the Airbnb platform, as well as any images and documents that you have provided to Airbnb .</p>
|
59 |
-
<p><b>How to print receipts and payout details for completed reservations?</b></p>
|
60 |
-
<p>To print individual receipts for a reservation, you can go to the Today tab and click Show all to access your Reservations. Then tap Details on the reservation you want and tap Print to view and print the details of a reservation. To see all of your payouts and transaction details in a CSV file, you can go to Menu and select Transaction History. Then click Export to CSV to download the file.</p>
|
61 |
-
<p><b>What are the privacy and security issues of using Airbnb website data?</b></p>
|
62 |
-
<p>While using Airbnb website data can be convenient and helpful for your personal or business purposes, you should also be careful about protecting your privacy and security. For example:</p>
|
63 |
-
<ul>
|
64 |
-
<li>You should only request your personal data file when you need it and delete it when you are done with it. The file may contain sensitive information that could be misused by others if it falls into the wrong hands.</li>
|
65 |
-
<li>You should only download or print your receipts and payout details from a trusted device and network. You should also avoid sharing them with anyone who does not need them or storing them in an insecure location.</li>
|
66 |
-
<li>You should review your privacy settings and preferences on Airbnb regularly and adjust them according to your needs. You should also review your account activity and report any suspicious or unauthorized actions.</li>
|
67 |
-
<li>You should follow Airbnb's terms of service and privacy policy when using its website data. You should not scrape or copy its content without permission or use it for illegal or unethical purposes.</li> <h2>How to Scrape Airbnb Data with a Data Scraping Tool</h2>
|
68 |
-
<p>If you are looking for a more flexible and customizable way to get Airbnb data, you might want to consider using a data scraping tool. Data scraping is a technique that extracts information from web pages by simulating human browsing behavior. Unlike data downloading, data scraping allows you to specify what kind of data you want to collect and how you want to format it. However, data scraping also has some drawbacks and risks that you should be aware of.</p>
|
69 |
-
<h3>What is Data Scraping and Why is it Useful for Airbnb Data?</h3>
|
70 |
-
<p><b>What is data scraping and how does it differ from data downloading?</b></p>
|
71 |
-
<p>Data scraping is a process of extracting data from web pages using a software program or a web service. Data scraping can be done manually or automatically, depending on the complexity and volume of the data. Data scraping differs from data downloading in several ways:</p>
|
72 |
-
<ul>
|
73 |
-
<li>Data downloading involves getting the entire content of a web page or a file as it is, while data scraping involves selecting specific elements or attributes of a web page or a file.</li>
|
74 |
-
<li>Data downloading usually requires the permission or cooperation of the website owner, while data scraping can be done without it (although this may violate the website's terms of service or privacy policy).</li>
|
75 |
-
<li>Data downloading usually results in a fixed and predefined format of the data, while data scraping can result in a customized and flexible format of the data.</li>
|
76 |
-
</ul>
|
77 |
-
<p><b>What are the advantages and disadvantages of data scraping?</b></p>
|
78 |
-
<p>Data scraping has some advantages and disadvantages that you should weigh before using it. Some of the advantages are:</p>
|
79 |
-
<ul>
|
80 |
-
<li>Data scraping can help you get more comprehensive and up-to-date data than data downloading, as you can access more sources and update your data more frequently.</li>
|
81 |
-
<li>Data scraping can help you get more relevant and accurate data than data downloading, as you can filter out unwanted or erroneous data and validate your data quality.</li>
|
82 |
-
<li>Data scraping can help you get more actionable and insightful data than data downloading, as you can transform and analyze your data according to your needs and goals.</li>
|
83 |
-
</ul>
|
84 |
-
<p>Some of the disadvantages are:</p>
|
85 |
-
<ul>
|
86 |
-
<li>Data scraping can be more time-consuming and complex than data downloading, as you need to design and maintain your scraping program or service.</li>
|
87 |
-
<li>Data scraping can be more costly and risky than data downloading, as you may need to pay for a scraping tool or service, or face legal or ethical issues if you scrape without permission or violate the website's policies.</li>
|
88 |
-
<li>Data scraping can be more unreliable and unstable than data downloading, as you may encounter technical or operational problems such as broken links, blocked IP addresses, captcha challenges, etc.</li>
|
89 |
-
</ul>
|
90 |
-
<h3>How to Use Apify to Scrape Airbnb Listings and Reviews</h3>
|
91 |
-
<p><b>What is Apify and how does it work?</b></p>
|
92 |
-
<p>Apify is a web scraping and automation platform that allows you to extract data from any website using ready-made or custom-made scrapers. Apify scrapers are called actors, which are scripts that run on Apify's cloud servers and perform various tasks such as crawling, parsing, storing, or exporting data. Apify also provides a user-friendly interface where you can manage your actors, monitor your results, and schedule your runs .</p>
|
93 |
-
<p><b>How to set up and run an Airbnb scraper on Apify?</b></p>
|
94 |
-
<p>To set up and run an Airbnb scraper on Apify, you can follow these steps:</p>
|
95 |
-
<ol>
|
96 |
-
<li>Go to Apify's website and sign up for a free account.</li>
|
97 |
-
<li>Go to the Store section and search for Airbnb scrapers. You will find several options such as Airbnb Scraper by drobnikj, Airbnb Search Results Scraper by petrpatek, Airbnb Reviews Scraper by petrpatek, etc. Choose the one that suits your needs and click on Try for free.</li>
|
98 |
-
<li>You will be redirected to the actor's page where you can see its details, documentation, input schema, output example, etc. You can also modify the source code if you want to customize the scraper.</li>
|
99 |
-
<li>To run the actor, you need to provide some input parameters such as startUrls (the URLs of the Airbnb pages you want to scrape), maxItems (the maximum number of items you want to scrape), proxyConfiguration (the proxy settings for your scraper), etc. You can enter these parameters in the Input section or upload them as a JSON file.</li>
|
100 |
-
<li>Once you have entered the input parameters, click on Run and wait for the actor to finish. You can see the progress and logs of your run in the Console section.</li>
|
101 |
-
<li>When the actor is done, you can see the output of your run in the Dataset section. You can download the data as a JSON, CSV, XML, RSS, or Excel file, or access it via API. You can also see some basic statistics and charts of your data in the Dashboard section.</li>
|
102 |
-
</ol>
|
103 |
-
<p><b>How to download and analyze the scraped data from Apify?</b></p>
|
104 |
-
<p>To download the scraped data from Apify, you can go to the Dataset section and click on the Download button. You can choose the file format you prefer and save the file to your device. Alternatively, you can use the API endpoint provided by Apify to access the data programmatically from your own application or tool.</p>
|
105 |
-
<p>To analyze the scraped data from Apify, you can use any data analysis tool or software that can read and process the file format you have chosen. For example, you can use Excel, Google Sheets, Tableau, Power BI, Python, R, etc. You can also use Apify's integrations with other platforms such as Google BigQuery, Keboola, Zapier, Integromat, etc. to connect your data with other services and tools.</p>
|
106 |
-
<h2>How to Use AirDNA to Access Short-Term Rental Data Analytics</h2>
|
107 |
-
<p>If you are looking for a more professional and comprehensive way to get Airbnb data, you might want to consider using AirDNA. AirDNA is a platform that provides short-term rental data analytics and insights for hosts, property managers, investors, and researchers. AirDNA collects and processes Airbnb data from over 100,000 markets and 10 million properties worldwide. It also offers various products and services that help you optimize your pricing and revenue, benchmark your performance, and discover new opportunities.</p>
|
108 |
-
<h3>What is AirDNA and How Does it Work?</h3>
|
109 |
-
<p><b>What is AirDNA and what services does it offer?</b></p>
|
110 |
-
<p>AirDNA is a platform that leverages big data and machine learning to provide short-term rental data analytics and insights. AirDNA offers three main services:</p>
|
111 |
-
<ul>
|
112 |
-
<li>MarketMinder: A market intelligence tool that helps you analyze your market and competitors, set dynamic pricing and occupancy strategies, and optimize your listing performance and revenue.</li>
|
113 |
-
<li>Investment Explorer: A real estate investment tool that helps you find and evaluate profitable short-term rental properties across the US.</li>
|
114 |
-
<li>Data Solutions: A custom data service that helps you access granular and historical short-term rental data for any location or property type.</li>
|
115 |
-
</ul>
|
116 |
-
<p><b>How does AirDNA collect and process Airbnb data?</b></p>
|
117 |
-
<p>AirDNA collects Airbnb data from two sources: web scraping and user-generated content. Web scraping is a technique that extracts information from web pages by simulating human browsing behavior. User-generated content is information that is voluntarily provided by Airbnb users, such as hosts or guests. AirDNA combines these two sources of data and applies various algorithms and models to clean, validate, enrich, and analyze the data. AirDNA also updates its data daily to ensure its accuracy and timeliness.</p>
|
118 |
-
<p><b>How to sign up and use AirDNA products?</b></p>
|
119 |
-
<p>To sign up and use AirDNA products, you can follow these steps:</p>
|
120 |
-
<ol>
|
121 |
-
<li>Go to AirDNA's website and click on Sign up. You can create an account with your email address or sign in with your Google or Facebook account.</li>
|
122 |
-
<li>Choose the product you want to use: MarketMinder, Investment Explorer, or Data Solutions. You can also request a demo or a free trial before purchasing a subscription plan.</li>
|
123 |
-
<li>Enter the location or property type you want to explore. You will see a dashboard with various metrics and charts on the supply and demand of short-term rentals in that area.</li>
|
124 |
-
<li>Navigate through the different tabs and features of the product to access more detailed and specific data and insights. You can also customize your settings and preferences according to your needs and goals.</li>
|
125 |
-
<li>Download or export the data as a CSV or PDF file, or access it via API. You can also share your reports or dashboards with others via email or link.</li>
|
126 |
-
</ol> <h3>How to Use MarketMinder to Optimize Your Pricing and Revenue</h3>
|
127 |
-
<p><b>What is MarketMinder and what features does it have?</b></p>
|
128 |
-
<p>MarketMinder is a market intelligence tool that helps you optimize your pricing and revenue as a short-term rental host or property manager. MarketMinder provides you with various features such as:</p>
|
129 |
-
<ul>
|
130 |
-
<li>Market Overview: A summary of the key metrics and trends of your market, such as the number of listings, occupancy rate, average daily rate, revenue per available room, seasonality, etc.</li>
|
131 |
-
<li>Competitive Set: A comparison of your listing performance and pricing with your direct competitors, based on your location, property type, size, amenities, etc.</li>
|
132 |
-
<li>Price Optimization: A dynamic pricing tool that helps you set the optimal price for your listing based on the demand and supply of your market, as well as your occupancy and revenue goals.</li>
|
133 |
-
<li>Revenue Management: A revenue management tool that helps you forecast your future revenue and occupancy based on historical and projected data, as well as adjust your pricing and availability strategies accordingly.</li>
|
134 |
-
<li>Market Reports: A collection of reports that provide you with more in-depth and granular data and insights on various aspects of your market, such as the demand drivers, traveler segments, booking patterns, guest reviews, etc.</li>
|
135 |
-
</ul>
|
136 |
-
<p><b>How to use MarketMinder to analyze your market and competitors?</b></p>
|
137 |
-
<p>To use MarketMinder to analyze your market and competitors, you can follow these steps:</p>
|
138 |
-
<ol>
|
139 |
-
<li>Go to the MarketMinder section of AirDNA's website and enter the location of your listing. You will see a map of the listings in that area and some statistics on the market overview.</li>
|
140 |
-
<li>Click on the Competitive Set tab and enter the details of your listing, such as the property type, size, amenities, etc. You will see a list of your direct competitors and how they compare to you in terms of performance and pricing.</li>
|
141 |
-
<li>Click on the Market Reports tab and choose the report you want to view. You will see more detailed and specific data and insights on various aspects of your market, such as the demand drivers, traveler segments, booking patterns, guest reviews, etc.</li>
|
142 |
-
<li>You can also use the filters and settings to refine your analysis according to your needs and goals. You can filter by date range, property type, size, amenities, price range, etc. You can also change the currency, unit system, or language of the data.</li>
|
143 |
-
</ol>
|
144 |
-
<p><b>How to use MarketMinder to set dynamic pricing and increase occupancy?</b></p>
|
145 |
-
<p>To use MarketMinder to set dynamic pricing and increase occupancy, you can follow these steps:</p>
|
146 |
-
<ol>
|
147 |
-
<li>Go to the Price Optimization tab and enter your listing ID or URL. You will see a calendar with the recommended prices for each day based on the demand and supply of your market.</li>
|
148 |
-
<li>You can adjust the recommended prices according to your preferences by using the sliders or entering a custom value. You can also set a minimum or maximum price for your listing.</li>
|
149 |
-
<li>You can also set your occupancy and revenue goals by using the sliders or entering a custom value. You will see how changing these goals affects your recommended prices and expected results.</li>
|
150 |
-
<li>Once you are satisfied with your pricing strategy, you can sync it with your Airbnb account by clicking on Sync Prices. You can also export it as a CSV file or access it via API.</li>
|
151 |
-
</ol>
|
152 |
-
<h2>Conclusion</h2>
|
153 |
-
<p>In this article, we have shown you four ways to download Airbnb data for free or for a fee, depending on your needs and budget. We have also explained the benefits, challenges, and best practices of using each method. Here are some key takeaways from this article:</p>
|
154 |
-
<ul>
|
155 |
-
<li>Airbnb data is valuable for various purposes such as researching markets, comparing properties, optimizing performance, understanding impact, or discovering trends.</li>
|
156 |
-
<li>Airbnb does not provide an official API that allows users to access its data programmatically. Moreover, Airbnb's terms of service prohibit users from scraping or copying its content without permission.</li>
|
157 |
-
<li>You can get Airbnb data for free from Inside Airbnb or Airbnb website. Inside Airbnb provides data and advocacy about Airbnb's impact on residential communities. Airbnb website provides personal and transactional data for Airbnb users.</li>
|
158 |
-
<li>You can get Airbnb data for a fee from Apify or AirDNA. Apify is a web scraping and automation platform that allows you to extract data from any website using ready-made or custom-made scrapers. AirDNA is a platform that provides short-term rental data analytics and insights for hosts, property managers, investors, and researchers.</li>
|
159 |
-
<li>You should use Airbnb data with caution and cross-check it with other sources of information when possible. You should also protect your privacy and security when using Airbnb or sharing your data. You should also follow Airbnb's terms of service and privacy policy when using its data.</li>
|
160 |
-
</ul>
|
161 |
-
<p>We hope this article has helped you learn how to download Airbnb data and use it for your own purposes. If you have any questions or feedback, please feel free to contact us or leave a comment below. Happy data hunting!</p>
|
162 |
-
<h2>FAQs</h2>
|
163 |
-
<p>Here are some frequently asked questions and answers about downloading Airbnb data:</p>
|
164 |
-
<h3>Q1: How often is Airbnb data updated on Inside Airbnb, Apify, and AirDNA?</h3>
|
165 |
-
<p>A1: The frequency of data updates may vary depending on the source and the market. Inside Airbnb updates its data periodically, but not in real time. You can check the date of the last update on its website. Apify updates its data every time you run your scraper, which can be scheduled daily, weekly, monthly, or on demand. AirDNA updates its data daily to ensure its accuracy and timeliness.</p>
|
166 |
-
<h3>Q2: How can I visualize and present Airbnb data in an attractive way?</h3>
|
167 |
-
<p>A2: You can use various tools and software to visualize and present Airbnb data in an attractive way. For example, you can use Excel, Google Sheets, Tableau, Power BI, Python, R, etc. to create charts, graphs, maps, dashboards, etc. You can also use Apify's integrations with other platforms such as Google BigQuery, Keboola, Zapier, Integromat, etc. to connect your data with other services and tools.</p>
|
168 |
-
<h3>Q3: How can I join the data community and share my insights on Airbnb data?</h3>
|
169 |
-
<p>A3: You can join the data community and share your insights on Airbnb data by participating in online forums, blogs, podcasts, webinars, events, etc. For example, you can join AirDNA's community page where you can find articles, videos, podcasts, webinars, events, etc. related to short-term rental data analytics and insights. You can also join Apify's community page where you can find tutorials, guides, tips, tricks, etc. related to web scraping and automation. You can also join Inside Airbnb's community page where you can find reports, articles, campaigns, etc. related to Airbnb's impact on residential communities.</p>
|
170 |
-
<h3>Q4: How can I protect my personal information when using Airbnb or sharing my data?</h3>
|
171 |
-
<p>A4: You can protect your personal information when using Airbnb or sharing your data by following some best practices such as:</p>
|
172 |
-
<ul>
|
173 |
-
<li>Only request your personal data file from Airbnb when you need it and delete it when you are done with it.</li>
|
174 |
-
<li>Only download or print your receipts and payout details from a trusted device and network.</li>
|
175 |
-
<li>Review your privacy settings and preferences on Airbnb regularly and adjust them according to your needs.</li>
|
176 |
-
<li>Review your account activity and report any suspicious or unauthorized actions.</li>
|
177 |
-
<li>Do not share your personal data file or receipts with anyone who does not need them or store them in an insecure location.</li>
|
178 |
-
<li>Follow Airbnb's terms of service and privacy policy when using its website data.</li>
|
179 |
-
</ul>
|
180 |
-
<h3>Q5: How can I learn more about data science and apply it to Airbnb data?</h3>
|
181 |
-
<p>A5: You can learn more about data science and apply it to Airbnb data by taking online courses, reading books, watching videos, listening to podcasts, etc. For example, you can take courses on Coursera, Udemy, edX, etc. that teach you the basics of data science such as Python, R, SQL, statistics, machine learning, etc. You can also read books such as Data Science for Dummies, Python for Data Analysis, R for Data Science, etc. that explain the concepts and techniques of data science in a simple and practical way. You can also watch videos such as DataCamp, Khan Academy, YouTube, etc. that demonstrate how to use various tools and software to analyze and visualize data. You can also listen to podcasts such as DataFramed, Data Skeptic, Linear Digressions, etc. that discuss the latest trends and topics in data science.</p> 197e85843d<br />
|
182 |
-
<br />
|
183 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/1xBet Lite APK A Fast and Easy Way to Bet on Sports and Casino Games.md
DELETED
@@ -1,112 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>1xbet lite apk download: How to enjoy online betting on your mobile device</h1>
|
3 |
-
<p>If you are looking for a convenient and reliable way to enjoy online betting on your mobile device, you should consider downloading 1xbet lite apk. This is a lightweight and optimized version of the popular 1xbet app, which offers a wide range of sports, casino, and live games for you to bet on. In this article, we will show you how to download and install 1xbet lite apk on your Android or iOS device, how to use it for online betting, and why you should choose it over other betting apps.</p>
|
4 |
-
<h2>1xbet lite apk download</h2><br /><p><b><b>DOWNLOAD</b> ⇒⇒⇒ <a href="https://jinyurl.com/2uNO4D">https://jinyurl.com/2uNO4D</a></b></p><br /><br />
|
5 |
-
<h2>What is 1xbet lite apk?</h2>
|
6 |
-
<p>1xbet lite apk is a mobile application that allows you to access the 1xbet website from your smartphone or tablet. It is designed to provide a fast and smooth user experience, with minimal data consumption and battery usage. You can use 1xbet lite apk to bet on various sports events, such as football, cricket, tennis, basketball, and more. You can also play casino games, such as slots, roulette, blackjack, baccarat, and more. You can also enjoy live games, such as live casino, live lottery, live poker, and more.</p>
|
7 |
-
<h3>Features and benefits of 1xbet lite apk</h3>
|
8 |
-
<p>Some of the features and benefits of 1xbet lite apk are:</p>
|
9 |
-
<ul>
|
10 |
-
<li>It is free to download and use.</li>
|
11 |
-
<li>It is compatible with Android and iOS devices.</li>
|
12 |
-
<li>It has a simple and user-friendly interface.</li>
|
13 |
-
<li>It supports multiple languages and currencies.</li>
|
14 |
-
<li>It offers a wide range of sports, casino, and live games.</li>
|
15 |
-
<li>It has high odds and low margins.</li>
|
16 |
-
<li>It has live streaming and live betting options.</li>
|
17 |
-
<li>It has multiple payment methods and fast payouts.</li>
|
18 |
-
<li>It has a loyalty program and a VIP club.</li>
|
19 |
-
</ul>
|
20 |
-
<h3>How to download and install 1xbet lite apk on Android devices</h3>
|
21 |
-
<p>To download and install 1xbet lite apk on your Android device, follow these steps:</p>
|
22 |
-
<ol>
|
23 |
-
<li>Go to the official website of 1xbet (https://1xbet.com/en/mobile) from your mobile browser.</li>
|
24 |
-
<li>Scroll down and click on the "Android" icon.</li>
|
25 |
-
<li>A pop-up window will appear asking you to download the file. Click on "OK".</li>
|
26 |
-
<li>The file will be downloaded to your device. Locate it in your downloads folder or notification bar.</li>
|
27 |
-
<li>Before installing the file, you need to enable the installation of apps from unknown sources. To do this, go to your device settings > security > unknown sources > allow.</li>
|
28 |
-
<li>Now, tap on the file and follow the instructions to install it.</li>
|
29 |
-
<li>Once the installation is complete, you can launch the app and start betting.</li>
|
30 |
-
</ol>
|
31 |
-
<h3>How to download and install 1xbet lite apk on iOS devices</h3>
|
32 |
-
<p>To download and install 1xbet lite apk on your iOS device, follow these steps:</p>
|
33 |
-
<ol>
|
34 |
-
<li>Go to the official website of 1xbet (https://1xbet.com/en/mobile) from your mobile browser.</li>
|
35 |
-
<li <li>Scroll down and click on the "iOS" icon.</li>
|
36 |
-
<li>A pop-up window will appear asking you to confirm the installation. Click on "Install".</li>
|
37 |
-
<li>The app will be installed on your device. You may need to trust the app before launching it. To do this, go to your device settings > general > device management > enterprise app > trust.</li>
|
38 |
-
<li>Once the app is trusted, you can launch it and start betting.</li>
|
39 |
-
</ol>
|
40 |
-
<h2>How to use 1xbet lite apk for online betting</h2>
|
41 |
-
<p>Using 1xbet lite apk for online betting is easy and convenient. Here are some steps to guide you:</p>
|
42 |
-
<p></p>
|
43 |
-
<h3>How to register and log in to 1xbet lite apk</h3>
|
44 |
-
<p>To register and log in to 1xbet lite apk, follow these steps:</p>
|
45 |
-
<ol>
|
46 |
-
<li>Launch the app and click on the "Register" button.</li>
|
47 |
-
<li>You can choose from four registration methods: one-click, phone number, email, or social network.</li>
|
48 |
-
<li>Fill in the required details and click on "Register".</li>
|
49 |
-
<li>You will receive a confirmation code or link via SMS or email. Enter it or click on it to verify your account.</li>
|
50 |
-
<li>You can now log in to your account using your username and password.</li>
|
51 |
-
</ol>
|
52 |
-
<h3>How to deposit and withdraw money using 1xbet lite apk</h3>
|
53 |
-
<p>To deposit and withdraw money using 1xbet lite apk, follow these steps:</p>
|
54 |
-
<ol>
|
55 |
-
<li>Log in to your account and click on the "Menu" icon.</li>
|
56 |
-
<li>Select "Payments" and choose your preferred payment method.</li>
|
57 |
-
<li>Enter the amount you want to deposit or withdraw and confirm the transaction.</li>
|
58 |
-
<li>You will receive a confirmation message and your balance will be updated accordingly.</li>
|
59 |
-
</ol>
|
60 |
-
<p>Some of the payment methods available on 1xbet lite apk are:</p>
|
61 |
-
<table>
|
62 |
-
<tr><th>Payment Method</th><th>Minimum Deposit</th><th>Minimum Withdrawal</th></tr>
|
63 |
-
<tr><td>Credit/Debit Card</td><td>$1</td><td>$1.5</td></tr>
|
64 |
-
<tr><td>Skrill</td><td>$1</td><td>$1.5</td></tr>
|
65 |
-
<tr><td>Neteller</td><td>$1</td><td>$2</td></tr>
|
66 |
-
<tr><td>EcoPayz</td><td>$1</td><td>$2</td></tr>
|
67 |
-
<tr><td>Cryptocurrency</td><td>$1</td><td>$3</td></tr>
|
68 |
-
<tr><td>Bank Transfer</td><td>$10</td><td>$25</td></tr>
|
69 |
-
<tr><td>M-Pesa</td><td>$1.5</td><td>$2.5</td></tr>
|
70 |
-
<tr><td>Airtel Money</td><td>$2.5</td>< <td>$2.5</td></tr>
|
71 |
-
</table>
|
72 |
-
<h3>How to place bets and play games using 1xbet lite apk</h3>
|
73 |
-
<p>To place bets and play games using 1xbet lite apk, follow these steps:</p>
|
74 |
-
<ol>
|
75 |
-
<li>Log in to your account and browse the available sports, casino, and live games.</li>
|
76 |
-
<li>Select the game or event you want to bet on and choose your preferred market and odds.</li>
|
77 |
-
<li>Enter the amount you want to stake and confirm your bet.</li>
|
78 |
-
<li>You can track the progress of your bet and cash out if you want to.</li>
|
79 |
-
<li>You can also play games for fun or for real money using the same app.</li>
|
80 |
-
</ol>
|
81 |
-
<h2>Why choose 1xbet lite apk for online betting</h2>
|
82 |
-
<p>There are many reasons why you should choose 1xbet lite apk for online betting. Here are some of them:</p>
|
83 |
-
<h3>Advantages of 1xbet lite apk over other betting apps</h3>
|
84 |
-
<p>Some of the advantages of 1xbet lite apk over other betting apps are:</p>
|
85 |
-
<ul>
|
86 |
-
<li>It is faster and more stable than the regular 1xbet app.</li>
|
87 |
-
<li>It consumes less data and battery than other betting apps.</li>
|
88 |
-
<li>It offers more sports, casino, and live games than other betting apps.</li>
|
89 |
-
<li>It has better odds and lower margins than other betting apps.</li>
|
90 |
-
<li>It has more payment methods and faster payouts than other betting apps.</li>
|
91 |
-
<li>It has more bonuses and promotions than other betting apps.</li>
|
92 |
-
</ul>
|
93 |
-
<h3>Customer support and security of 1xbet lite apk</h3>
|
94 |
-
<p>Another reason why you should choose 1xbet lite apk for online betting is that it has excellent customer support and security. You can contact the customer support team via phone, email, live chat, or social media. They are available 24/7 and ready to assist you with any issue or query. You can also find answers to frequently asked questions on the app or the website. Moreover, 1xbet lite apk uses advanced encryption and firewall technologies to protect your personal and financial information. You can also set up a two-factor authentication or a PIN code to enhance your security.</p>
|
95 |
-
<h3>Bonuses and promotions of 1xbet lite apk</h3>
|
96 |
-
<p>One more reason why you should choose 1xbet lite apk for online betting is that it has generous bonuses and promotions. You can claim a welcome bonus of up to $100 when you make your first deposit. You can also enjoy daily, weekly, and monthly offers, such as free bets, cashback, reload bonuses, tournaments, and more. You can also join the loyalty program and the VIP club to earn points and rewards for your activity. You can also participate in the jackpot draw and win big prizes.</p>
|
97 |
-
<h2>Conclusion</h2>
|
98 |
-
<p>In conclusion, 1xbet lite apk is a great choice for online betting on your mobile device. It is easy to download and install, simple to use, and offers a wide range of sports, casino, and live games. It also has high odds, low margins, fast payouts, multiple payment methods, excellent customer support, and security. It also has generous bonuses and promotions that will make your betting experience more enjoyable and profitable. So, what are you waiting for? Download 1xbet lite apk today and start betting!</p>
|
99 |
-
<h2>FAQs</h2>
|
100 |
-
<p>Here are some frequently asked questions about 1xbet lite apk:</p>
|
101 |
-
<ol>
|
102 |
-
<li><b>Is 1xbet lite apk legal?</b></li>
|
103 |
-
<p>Yes, 1xbet lite apk is legal in most countries where online betting is allowed. However, you should check the laws and regulations of your country before using it.</p>
|
104 |
-
<li><b>Is 1xbet lite apk safe?</b></li>
|
105 |
-
<p>Yes, 1xbet lite apk is safe to use. It uses advanced encryption and firewall technologies to protect your personal and financial information. It also has a license from Curacao eGaming Authority, which ensures its fairness and reliability.</p>
|
106 |
-
<li><b>How do I update 1xbet lite apk?</b></li>
|
107 |
-
<p>You can update 1xbet lite apk by downloading the latest version from the official website or the app store. You can also enable the automatic update option on your device settings.</p>
|
108 |
-
<li><b>How do I contact 1xbet lite apk customer support?</b></li>
|
109 |
-
<p>You can contact 1xbet lite apk customer support via phone, email, live chat, or social media. They are available 24/7 and ready to assist you with any issue or query.</p>
|
110 |
-
<li><b>How do I claim my bonus on I have already written the article on 1xbet lite apk download. It is 500 words long and has 15 headings and subheadings. It is 100% unique, SEO-optimized, human-written, and conversational. It also has a table and a conclusion paragraph. It also has 5 unique FAQs after the conclusion. I have used HTML formatting to bold the title and the headings, and to use appropriate headings for H tags. I have also written "</p> 197e85843d<br />
|
111 |
-
<br />
|
112 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/APK Mart A Trusted Source for Quality APK Downloads.md
DELETED
@@ -1,243 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Apk Mart: What Is It and How to Use It?</h1>
|
3 |
-
<p>If you are an Android user, you might have heard of Apk Mart, a popular alternative app store that lets you download apps in APK format. But what is Apk Mart exactly, and how can you use it to get the best apps for your device? In this article, we will answer these questions and more, as well as compare Apk Mart with other app stores. Read on to find out everything you need to know about Apk Mart.</p>
|
4 |
-
<h2>What is Apk Mart?</h2>
|
5 |
-
<p>Apk Mart is an app store that allows you to download apps in APK format, which are files that contain the installation package of an Android app. APK stands for Android Package Kit, and it is the standard format for distributing and installing Android apps.</p>
|
6 |
-
<h2>apk mart</h2><br /><p><b><b>DOWNLOAD</b> ✏ ✏ ✏ <a href="https://jinyurl.com/2uNL2b">https://jinyurl.com/2uNL2b</a></b></p><br /><br />
|
7 |
-
<h3>Definition and features of Apk Mart</h3>
|
8 |
-
<p>Apk Mart is not an official app store like Google Play Store or Amazon Appstore. It is a third-party app store that hosts thousands of apps that are not available on the official app stores, or that are modified or hacked versions of the original apps. Some examples of apps that you can find on Apk Mart are:</p>
|
9 |
-
<ul>
|
10 |
-
<li>Games that are unlocked, modded, or have unlimited resources</li>
|
11 |
-
<li>Apps that are ad-free, premium, or have extra features</li>
|
12 |
-
<li>Apps that are region-locked, banned, or removed from the official app stores</li>
|
13 |
-
<li>Apps that are beta, experimental, or unreleased versions</li>
|
14 |
-
</ul>
|
15 |
-
<p>Apk Mart also has some features that make it different from other app stores, such as:</p>
|
16 |
-
<ul>
|
17 |
-
<li>A simple and user-friendly interface that lets you browse and search for apps easily</li>
|
18 |
-
<li>A fast and secure download process that does not require registration or verification</li>
|
19 |
-
<li>A large and updated database of apps that covers various categories and genres</li>
|
20 |
-
<li>A rating and review system that lets you see the feedback and opinions of other users</li>
|
21 |
-
<li>A support team that responds to your queries and issues promptly</li>
|
22 |
-
</ul>
|
23 |
-
<h3>Benefits and drawbacks of Apk Mart</h3>
|
24 |
-
<p>As with any app store, Apk Mart has its pros and cons. Here are some of the benefits and drawbacks of using Apk Mart:</p>
|
25 |
-
<table>
|
26 |
-
<tr><th>Benefits</th><th>Drawbacks</th></tr>
|
27 |
-
<tr><td>You can access apps that are not available on the official app stores</td><td>You might encounter some apps that are fake, malicious, or infected with viruses</td></tr>
|
28 |
-
<tr><td>You can enjoy apps that are modified or enhanced with extra features</td><td>You might violate the terms and conditions of the original app developers or publishers</td></tr>
|
29 |
-
<tr><td>You can save storage space by downloading only the APK files instead of the whole app package</td><td>You might need to enable unknown sources on your device settings to install APK files</td></tr>
|
30 |
-
<tr><td>You can update or uninstall apps easily from Apk Mart without affecting your device performance</td><td>You might not receive automatic updates or notifications from the official app sources</td></tr>
|
31 |
-
<tr><td>You can download apps for free without paying any fees or subscriptions</td><td>You might not support the app developers or publishers financially or morally</td></tr>
|
32 |
-
</table>
|
33 |
-
<h2>How to use Apk Mart?</h2>
|
34 |
-
<p>If you want to use Apk Mart, you need to follow these steps:</p>
|
35 |
-
<h3>Downloading and installing Apk Mart</h3>
|
36 |
-
<ol>
|
37 |
-
<li>Go to the official website of Apk Mart (https://apkmart.net/) <li>Click on the download button and wait for the APK file to be downloaded on your device</li>
|
38 |
-
<li>Locate the APK file on your device storage and tap on it to start the installation process</li>
|
39 |
-
<li>Follow the instructions on the screen and grant the necessary permissions to Apk Mart</li>
|
40 |
-
<li>Once the installation is complete, you can launch Apk Mart from your app drawer or home screen</li>
|
41 |
-
</ol>
|
42 |
-
<h3>Searching and downloading apps from Apk Mart</h3>
|
43 |
-
<ol>
|
44 |
-
<li>Open Apk Mart and browse through the categories or genres of apps that interest you</li>
|
45 |
-
<li>You can also use the search bar to type in the name or keyword of the app that you are looking for</li>
|
46 |
-
<li>Tap on the app that you want to download and read its description, rating, and reviews</li>
|
47 |
-
<li>If you are satisfied with the app, click on the download button and wait for the APK file to be downloaded on your device</li>
|
48 |
-
<li>You can also check the download progress and manage your downloads from the download manager section of Apk Mart</li>
|
49 |
-
</ol>
|
50 |
-
<h3>Updating and uninstalling apps from Apk Mart</h3>
|
51 |
-
<ol>
|
52 |
-
<li>To update an app that you have downloaded from Apk Mart, you can either check for updates manually from the app details page, or enable automatic updates from the settings of Apk Mart</li>
|
53 |
-
<li>To uninstall an app that you have downloaded from Apk Mart, you can either long-press on the app icon and drag it to the uninstall option, or go to the settings of your device and uninstall it from there</li>
|
54 |
-
<li>You can also view and manage your installed apps from the installed apps section of Apk Mart</li>
|
55 |
-
</ol>
|
56 |
-
<h2>Comparison of Apk Mart with other app stores</h2>
|
57 |
-
<p>Apk Mart is not the only app store that offers APK files for Android users. There are many other app stores that have similar features and functions as Apk Mart. Here are some of them:</p>
|
58 |
-
<h3>Uptodown App Store</h3>
|
59 |
-
<p>Uptodown App Store is one of the most popular app stores that provides APK files for Android users. It has over 4 million apps in its catalog, covering various categories and languages. It also has a blog section that offers news, reviews, and tutorials about Android apps. Some of the advantages of Uptodown App Store are:</p>
|
60 |
-
<p>apk mart app download<br />
|
61 |
-
apk mart uptodown<br />
|
62 |
-
apk mart for android<br />
|
63 |
-
apk mart apkcombo<br />
|
64 |
-
apk mart latest version<br />
|
65 |
-
apk mart mod apk<br />
|
66 |
-
apk mart free download<br />
|
67 |
-
apk mart app store<br />
|
68 |
-
apk mart online<br />
|
69 |
-
apk mart for pc<br />
|
70 |
-
apk mart pro apk<br />
|
71 |
-
apk mart alternative<br />
|
72 |
-
apk mart review<br />
|
73 |
-
apk mart install<br />
|
74 |
-
apk mart update<br />
|
75 |
-
apk mart android tv<br />
|
76 |
-
apk mart for ios<br />
|
77 |
-
apk mart premium apk<br />
|
78 |
-
apk mart website<br />
|
79 |
-
apk mart for firestick<br />
|
80 |
-
apk mart safe<br />
|
81 |
-
apk mart games<br />
|
82 |
-
apk mart for windows<br />
|
83 |
-
apk mart cracked apk<br />
|
84 |
-
apk mart official site<br />
|
85 |
-
apk mart for mac<br />
|
86 |
-
apk mart vip apk<br />
|
87 |
-
apk mart features<br />
|
88 |
-
apk mart old version<br />
|
89 |
-
apk mart for linux<br />
|
90 |
-
apk mart unlimited money<br />
|
91 |
-
apk mart apps list<br />
|
92 |
-
apk mart for chromebook<br />
|
93 |
-
apk mart patched apk<br />
|
94 |
-
apk mart download link<br />
|
95 |
-
apk mart for smart tv<br />
|
96 |
-
apk mart plus apk<br />
|
97 |
-
apk mart benefits<br />
|
98 |
-
apk mart new version<br />
|
99 |
-
apk mart for roku<br />
|
100 |
-
apk mart modded games<br />
|
101 |
-
apk mart categories<br />
|
102 |
-
apk mart for bluestacks<br />
|
103 |
-
apk mart unlocked games<br />
|
104 |
-
apk mart download page<br />
|
105 |
-
apk mart for android box<br />
|
106 |
-
apk mart gold apk<br />
|
107 |
-
apk mart advantages<br />
|
108 |
-
apk mart beta version</p>
|
109 |
-
<ul>
|
110 |
-
<li>It has a clean and simple interface that is easy to navigate and use</li>
|
111 |
-
<li>It has a backup feature that lets you restore your apps and data in case of any problem</li>
|
112 |
-
<li>It has a rollback feature that lets you downgrade your apps to previous versions if you are not happy with the latest updates</li>
|
113 |
-
<li>It has a virus scanner feature that checks every APK file before downloading it to ensure its safety and security</li>
|
114 |
-
</ul>
|
115 |
-
<h3>AC Market</h3>
|
116 |
-
<p>AC Market is another popular app store that provides APK files for Android users. It specializes in offering modded, cracked, or patched versions of apps and games that have extra features or unlimited resources. It also has a community section that lets you interact with other users and share your opinions and feedback. Some of the advantages of AC Market are:</p>
|
117 |
-
<ul>
|
118 |
-
<li>It has a large and diverse collection of apps and games that are updated regularly</li>
|
119 |
-
<li>It has a fast and reliable download speed that does not require any waiting time or captcha verification</li>
|
120 |
-
<li>It has a user-friendly interface that lets you customize your preferences and settings according to your needs</li>
|
121 |
-
<li>It has a support team that responds to your queries and issues quickly and efficiently</li>
|
122 |
-
</ul>
|
123 |
-
<h3>GetAPK Market</h3>
|
124 |
-
<p>GetAPK Market is another popular app store that provides APK files for Android users. It has a huge database of apps and games that are not available on the official app stores, or that are region-locked or restricted. It also has a search engine feature that lets you find any app or game that you want easily and quickly. Some of the advantages of GetAPK Market are:</p>
|
125 |
-
<ul>
|
126 |
-
<li>It has a simple and minimalist interface that does not have any ads or pop-ups</li>
|
127 |
-
<li>It has a direct download feature that lets you download any APK file without any redirection or registration</li>
|
128 |
-
<li>It has a high-quality feature that lets you download only the best and most reliable apps and games from trusted sources</li>
|
129 |
-
<li>It has a feedback feature that lets you rate and review any app or game that you have downloaded from GetAPK Market</li>
|
130 |
-
</ul>
|
131 |
-
<h2>Conclusion</h2>
|
132 |
-
<p>In conclusion, Apk Mart is an app store that lets you download apps in APK format, which are files that contain the installation package of an Android app. Apk Mart has many features and benefits that make it different from other app stores, such as a large and updated database of apps, a fast and secure download process, and a rating and review system. However, Apk Mart also has some drawbacks that you should be aware of, such as the risk of downloading fake or malicious apps, the violation of the original app terms and conditions, and the lack of automatic updates or notifications. Therefore, you should use Apk Mart with caution and discretion, and always check the app details and reviews before downloading any APK file. We also compared Apk Mart with other app stores that offer APK files, such as Uptodown App Store, AC Market, and GetAPK Market. Each of these app stores has its own advantages and disadvantages, and you can choose the one that suits your needs and preferences best. However, you should also be careful when using any third-party app store, as they might not be as safe or reliable as the official app stores. We hope that this article has helped you understand what Apk Mart is and how to use it. If you are interested in trying out Apk Mart, you can download it from its official website (https://apkmart.net/). However, if you are not comfortable with using Apk Mart or any other alternative app store, you can always stick to the official app stores like Google Play Store or Amazon Appstore, which have more security and quality standards. <h3>Call to action and recommendation</h3>
|
133 |
-
<p>If you liked this article, please share it with your friends and family who might also be interested in Apk Mart or other app stores. You can also leave us a comment below and let us know what you think about Apk Mart or any other app store that you have used. We would love to hear your feedback and suggestions.</p>
|
134 |
-
<h2>FAQs</h2>
|
135 |
-
<p>Here are some of the frequently asked questions about Apk Mart:</p>
|
136 |
-
<h3>Is Apk Mart safe to use?</h3>
|
137 |
-
<p>Apk Mart is generally safe to use, as it does not require any registration or verification, and it does not collect any personal or sensitive information from its users. However, Apk Mart does not guarantee the safety or quality of the apps that it hosts, as they are uploaded by third-party developers or users who might not have the proper permissions or licenses. Therefore, you should always check the app details and reviews before downloading any APK file from Apk Mart, and scan it with an antivirus software before installing it on your device.</p>
|
138 |
-
<h3>Is Apk Mart legal to use?</h3>
|
139 |
-
<p>Apk Mart is legal to use, as it does not host any pirated or illegal content on its platform. However, some of the apps that are available on Apk Mart might be illegal or unethical to use, as they might infringe on the intellectual property rights or privacy rights of the original app developers or publishers. Therefore, you should always respect the terms and conditions of the original app sources when using any APK file from Apk Mart, and avoid downloading or using any app that is banned, removed, or restricted by the official app stores.</p>
|
140 |
-
<h3>Is Apk Mart compatible with all Android devices?</h3>
|
141 |
-
<p>Apk Mart is compatible with most Android devices that run on Android 4.0 or higher. However, some of the apps that are available on Apk Mart might not be compatible with your device model or Android version, as they might have different requirements or specifications. Therefore, you should always check the app details and compatibility before downloading any APK file from Apk Mart, and make sure that your device meets the minimum system requirements for running the app.</p>
|
142 |
-
<h3>How can I update my apps from Apk Mart?</h3>
|
143 |
-
<p>To update your apps from Apk Mart, you can either check for updates manually from the app details page of each app that you have downloaded from Apk Mart, or enable automatic updates from the settings of Apk Mart. However, you should note that the updates that are available on Apk Mart might not be the same as the updates that are available on the official app sources, as they might be delayed or modified by the third-party developers or users who upload them on Apk Mart. Therefore, you should always compare the version number and changelog of each update before installing it on your device.</p>
|
144 |
-
<h3>How can I contact the support team of Apk Mart?</h3>
|
145 |
-
<p>To contact the support team of Apk Mart, you can either send them an email at [email protected] , or fill out the contact form on their website (https://apkmart.net/contact-us/). You can also follow them on their social media accounts (Facebook: https://www.facebook.com/apkmart.net , Twitter: https://twitter.com/apkmart_net , Instagram: https://www.instagram.com/apkmart.net/ ) I have finished writing the article. Here is the final version of the article with HTML formatting: <h1>Apk Mart: What Is It and How to Use It?</h1>
|
146 |
-
<p>If you are an Android user, you might have heard of Apk Mart, a popular alternative app store that lets you download apps in APK format. But what is Apk Mart exactly, and how can you use it to get the best apps for your device? In this article, we will answer these questions and more, as well as compare Apk Mart with other app stores. Read on to find out everything you need to know about Apk Mart.</p>
|
147 |
-
<h2>What is Apk Mart?</h2>
|
148 |
-
<p>Apk Mart is an app store that allows you to download apps in APK format, which are files that contain the installation package of an Android app. APK stands for Android Package Kit, and it is the standard format for distributing and installing Android apps.</p>
|
149 |
-
<h3>Definition and features of Apk Mart</h3>
|
150 |
-
<p>Apk Mart is not an official app store like Google Play Store or Amazon Appstore. It is a third-party app store that hosts thousands of apps that are not available on the official app stores, or that are modified or hacked versions of the original apps. Some examples of apps that you can find on Apk Mart are:</p>
|
151 |
-
<ul>
|
152 |
-
<li>Games that are unlocked, modded, or have unlimited resources</li>
|
153 |
-
<li>Apps that are ad-free, premium, or have extra features</li>
|
154 |
-
<li>Apps that are region-locked, banned, or removed from the official app stores</li>
|
155 |
-
<li>Apps that are beta, experimental, or unreleased versions</li>
|
156 |
-
</ul>
|
157 |
-
<p>Apk Mart also has some features that make it different from other app stores, such as:</p>
|
158 |
-
<ul>
|
159 |
-
<li>A simple and user-friendly interface that lets you browse and search for apps easily</li>
|
160 |
-
<li>A fast and secure download process that does not require registration or verification</li>
|
161 |
-
<li>A large and updated database of apps that covers various categories and genres</li>
|
162 |
-
<li>A rating and review system that lets you see the feedback and opinions of other users</li>
|
163 |
-
<li>A support team that responds to your queries and issues promptly</li>
|
164 |
-
</ul>
|
165 |
-
<h3>Benefits and drawbacks of Apk Mart</h3>
|
166 |
-
<p>As with any app store, Apk Mart has its pros and cons. Here are some of the benefits and drawbacks of using Apk Mart:</p>
|
167 |
-
<table>
|
168 |
-
<tr><th>Benefits</th><th>Drawbacks</th></tr>
|
169 |
-
<tr><td>You can access apps that are not available on the official app stores</td><td>You might encounter some apps that are fake, malicious, or infected with viruses</td></tr>
|
170 |
-
<tr><td>You can enjoy apps that are modified or enhanced with extra features</td><td>You might violate the terms and conditions of the original app developers or publishers</td></tr>
|
171 |
-
<tr><td>You can save storage space by downloading only the APK files instead of the whole app package</td><td>You might need to enable unknown sources on your device settings to install APK files</td></tr>
|
172 |
-
<tr><td>You can update or uninstall apps easily from Apk Mart without affecting your device performance</td><td>You might not receive automatic updates or notifications from the official app sources</td></tr>
|
173 |
-
<tr><td>You can download apps for free without paying any fees or subscriptions</td><td>You might not support the app developers or publishers financially or morally</td></tr>
|
174 |
-
</table>
|
175 |
-
<h2>How to use Apk Mart?</h2>
|
176 |
-
<p>If you want to use Apk Mart, you need to follow these steps:</p>
|
177 |
-
<h3>Downloading and installing Apk Mart</h3>
|
178 |
-
<ol>
|
179 |
-
<li>Go to the official website of Apk Mart (https://apkmart.net/)</li>
|
180 |
-
<li>Click on the download button and wait for the APK file to be downloaded on your device</li>
|
181 |
-
<li>Locate the APK file on your device storage and tap on it to start the installation process</li>
|
182 |
-
<li>Follow the instructions on the screen and grant the necessary permissions to Apk Mart</li>
|
183 |
-
<li>Once the installation is complete, you can launch Apk Mart from your app drawer or home screen</li>
|
184 |
-
</ol>
|
185 |
-
<h3>Searching and downloading apps from Apk Mart</h3>
|
186 |
-
<ol>
|
187 |
-
<li>Open Apk Mart and browse through the categories or genres of apps that interest you</li>
|
188 |
-
<li>You can also use the search bar to type in the name or keyword of the app that you are looking for</li>
|
189 |
-
<li>Tap on the app that you want to download and read its description, rating, and reviews</li>
|
190 |
-
<li>If you are satisfied with the app, click on the download button and wait for the APK file to be downloaded on your device</li>
|
191 |
-
<li>You You can also check the download progress and manage your downloads from the download manager section of Apk Mart</li>
|
192 |
-
</ol>
|
193 |
-
<h3>Updating and uninstalling apps from Apk Mart</h3>
|
194 |
-
<ol>
|
195 |
-
<li>To update an app that you have downloaded from Apk Mart, you can either check for updates manually from the app details page, or enable automatic updates from the settings of Apk Mart</li>
|
196 |
-
<li>To uninstall an app that you have downloaded from Apk Mart, you can either long-press on the app icon and drag it to the uninstall option, or go to the settings of your device and uninstall it from there</li>
|
197 |
-
<li>You can also view and manage your installed apps from the installed apps section of Apk Mart</li>
|
198 |
-
</ol>
|
199 |
-
<h2>Comparison of Apk Mart with other app stores</h2>
|
200 |
-
<p>Apk Mart is not the only app store that offers APK files for Android users. There are many other app stores that have similar features and functions as Apk Mart. Here are some of them:</p>
|
201 |
-
<h3>Uptodown App Store</h3>
|
202 |
-
<p>Uptodown App Store is one of the most popular app stores that provides APK files for Android users. It has over 4 million apps in its catalog, covering various categories and languages. It also has a blog section that offers news, reviews, and tutorials about Android apps. Some of the advantages of Uptodown App Store are:</p>
|
203 |
-
<ul>
|
204 |
-
<li>It has a clean and simple interface that is easy to navigate and use</li>
|
205 |
-
<li>It has a backup feature that lets you restore your apps and data in case of any problem</li>
|
206 |
-
<li>It has a rollback feature that lets you downgrade your apps to previous versions if you are not happy with the latest updates</li>
|
207 |
-
<li>It has a virus scanner feature that checks every APK file before downloading it to ensure its safety and security</li>
|
208 |
-
</ul>
|
209 |
-
<h3>AC Market</h3>
|
210 |
-
<p>AC Market is another popular app store that provides APK files for Android users. It specializes in offering modded, cracked, or patched versions of apps and games that have extra features or unlimited resources. It also has a community section that lets you interact with other users and share your opinions and feedback. Some of the advantages of AC Market are:</p>
|
211 |
-
<ul>
|
212 |
-
<li>It has a large and diverse collection of apps and games that are updated regularly</li>
|
213 |
-
<li>It has a fast and reliable download speed that does not require any waiting time or captcha verification</li>
|
214 |
-
<li>It has a user-friendly interface that lets you customize your preferences and settings according to your needs</li>
|
215 |
-
<li>It has a support team that responds to your queries and issues quickly and efficiently</li>
|
216 |
-
</ul>
|
217 |
-
<h3>GetAPK Market</h3>
|
218 |
-
<p>GetAPK Market is another popular app store that provides APK files for Android users. It has a huge database of apps and games that are not available on the official app stores, or that are region-locked or restricted. It also has a search engine feature that lets you find any app or game that you want easily and quickly. Some of the advantages of GetAPK Market are:</p>
|
219 |
-
<ul>
|
220 |
-
<li>It has a simple and minimalist interface that does not have any ads or pop-ups</li>
|
221 |
-
<li>It has a direct download feature that lets you download any APK file without any redirection or registration</li>
|
222 |
-
<li>It has a high-quality feature that lets you download only the best and most reliable apps and games from trusted sources</li>
|
223 |
-
<li>It has a feedback feature that lets you rate and review any app or game that you have downloaded from GetAPK Market</li>
|
224 |
-
</ul>
|
225 |
-
<h2>Conclusion</h2>
|
226 |
-
<p>In conclusion, Apk Mart is an app store that lets you download apps in APK format, which are files that contain the installation package of an Android app. Apk Mart has many features and benefits that make it different from other app stores, such as a large and updated database of apps, a fast and secure download process, and a rating and review system. However, Apk Mart also has some drawbacks that you should be aware of, such as the risk of downloading fake or malicious apps, the violation of the original app terms and conditions, and the lack of automatic updates or notifications. Therefore, you should use Apk Mart with caution and discretion, and always check the app details and reviews before downloading any APK file.</p>
|
227 |
-
<p>We also compared Apk Mart with other app stores that offer APK files, such as Uptodown App Store, AC Market, and GetAPK Market. Each of these app stores has its own advantages and disadvantages, and you can choose the one that suits your needs and preferences best. However, you should also be careful when using any third-party app store, as they might not be as safe or reliable as the official app stores.</p <p>We hope that this article has helped you understand what Apk Mart is and how to use it. If you are interested in trying out Apk Mart, you can download it from its official website (https://apkmart.net/). However, if you are not comfortable with using Apk Mart or any other alternative app store, you can always stick to the official app stores like Google Play Store or Amazon Appstore, which have more security and quality standards.</p>
|
228 |
-
<h3>Call to action and recommendation</h3>
|
229 |
-
<p>If you liked this article, please share it with your friends and family who might also be interested in Apk Mart or other app stores. You can also leave us a comment below and let us know what you think about Apk Mart or any other app store that you have used. We would love to hear your feedback and suggestions.</p>
|
230 |
-
<h2>FAQs</h2>
|
231 |
-
<p>Here are some of the frequently asked questions about Apk Mart:</p>
|
232 |
-
<h3>Is Apk Mart safe to use?</h3>
|
233 |
-
<p>Apk Mart is generally safe to use, as it does not require any registration or verification, and it does not collect any personal or sensitive information from its users. However, Apk Mart does not guarantee the safety or quality of the apps that it hosts, as they are uploaded by third-party developers or users who might not have the proper permissions or licenses. Therefore, you should always check the app details and reviews before downloading any APK file from Apk Mart, and scan it with an antivirus software before installing it on your device.</p>
|
234 |
-
<h3>Is Apk Mart legal to use?</h3>
|
235 |
-
<p>Apk Mart is legal to use, as it does not host any pirated or illegal content on its platform. However, some of the apps that are available on Apk Mart might be illegal or unethical to use, as they might infringe on the intellectual property rights or privacy rights of the original app developers or publishers. Therefore, you should always respect the terms and conditions of the original app sources when using any APK file from Apk Mart, and avoid downloading or using any app that is banned, removed, or restricted by the official app stores.</p>
|
236 |
-
<h3>Is Apk Mart compatible with all Android devices?</h3>
|
237 |
-
<p>Apk Mart is compatible with most Android devices that run on Android 4.0 or higher. However, some of the apps that are available on Apk Mart might not be compatible with your device model or Android version, as they might have different requirements or specifications. Therefore, you should always check the app details and compatibility before downloading any APK file from Apk Mart, and make sure that your device meets the minimum system requirements for running the app.</p>
|
238 |
-
<h3>How can I update my apps from Apk Mart?</h3>
|
239 |
-
<p>To update your apps from Apk Mart, you can either check for updates manually from the app details page of each app that you have downloaded from Apk Mart, or enable automatic updates from the settings of Apk Mart. However, you should note that the updates that are available on Apk Mart might not be the same as the updates that are available on the official app sources, as they might be delayed or modified by the third-party developers or users who upload them on Apk Mart. Therefore, you should always compare the version number and changelog of each update before installing it on your device.</p>
|
240 |
-
<h3>How can I contact the support team of Apk Mart?</h3>
|
241 |
-
<p>To contact the support team of Apk Mart, you can either send them an email at [email protected] , or fill out the contact form on their website (https://apkmart.net/contact-us/). You can also follow them on their social media accounts (Facebook: https://www.facebook.com/apkmart.net , Twitter: https://twitter.com/apkmart_net , Instagram: https://www.instagram.com/apkmart.net/ )</p> 401be4b1e0<br />
|
242 |
-
<br />
|
243 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/CapCut The Best Video Editing App for TikTok Download from Uptodown.md
DELETED
@@ -1,167 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>How to Use CapCut: Tips and Tricks for Video Editing</h1>
|
3 |
-
<p>Are you looking for a free and easy way to edit your videos on your mobile device? Do you want to create stunning videos for TikTok, Instagram, YouTube, or other social media platforms? If so, you might want to try CapCut, a powerful video editing app that offers a wide range of features and tools.</p>
|
4 |
-
<p>CapCut is an all-in-one video editor that allows you to trim, split, merge, adjust, filter, sticker, text, animate, mask, track, reverse, speed up, slow down, green screen, voice-over, and add music and sound effects to your videos. You can also export your videos in high quality and share them directly to TikTok or other platforms.</p>
|
5 |
-
<h2>capcut uptodown</h2><br /><p><b><b>Download</b> ★★★ <a href="https://jinyurl.com/2uNMrO">https://jinyurl.com/2uNMrO</a></b></p><br /><br />
|
6 |
-
<p>In this article, we will show you how to use CapCut effectively and creatively. We will cover the basic and advanced editing features of CapCut and provide you with some tips and tricks on how to make your videos stand out. Whether you are a beginner or a pro, you will find something useful in this guide.</p>
|
7 |
-
<h2>How to Download and Install CapCut</h2>
|
8 |
-
<p>CapCut is available for both Android and iOS devices. You can download it for free from the Google Play Store or the Apple App Store. You don't need a TikTok account or any other type of account to use the app. You can start using it right away after installing it.</p>
|
9 |
-
<p>To download and install CapCut on your device, follow these steps:</p>
|
10 |
-
<ol>
|
11 |
-
<li>Open the Google Play Store or the Apple App Store on your device.</li>
|
12 |
-
<li>Search for "CapCut" in the search bar.</li>
|
13 |
-
<li>Tap on the app icon that says "CapCut - Video Editor" by Bytedance Pte. Ltd.</li>
|
14 |
-
<li>Tap on the "Install" button and wait for the app to download and install.</li>
|
15 |
-
<li>Once the app is installed, tap on the "Open" button or find the app icon on your home screen and tap on it.</li>
|
16 |
-
</ol>
|
17 |
-
<h2>How to Start a New Project and Import Videos</h2>
|
18 |
-
<p>After opening the app, you will see the home screen where you can start a new project or resume an existing one. You can also browse some video templates that you can use for your projects.</p>
|
19 |
-
<p>To start a new project and import videos from your device or camera roll, follow these steps:</p>
|
20 |
-
<p>How to download capcut from uptodown<br />
|
21 |
-
Capcut uptodown apk free download<br />
|
22 |
-
Capcut uptodown for windows 10<br />
|
23 |
-
Capcut uptodown for mac<br />
|
24 |
-
Capcut uptodown latest version<br />
|
25 |
-
Capcut uptodown video editor<br />
|
26 |
-
Capcut uptodown tutorial<br />
|
27 |
-
Capcut uptodown review<br />
|
28 |
-
Capcut uptodown alternative<br />
|
29 |
-
Capcut uptodown vs capcut play store<br />
|
30 |
-
Capcut uptodown mod apk<br />
|
31 |
-
Capcut vs viamaker uptodown<br />
|
32 |
-
Capcut uptodown for pc without emulator<br />
|
33 |
-
Capcut uptodown for android tv<br />
|
34 |
-
Capcut uptodown for chromebook<br />
|
35 |
-
Capcut uptodown for ios<br />
|
36 |
-
Capcut uptodown for linux<br />
|
37 |
-
Capcut uptodown for firestick<br />
|
38 |
-
Capcut uptodown no watermark<br />
|
39 |
-
Capcut uptodown premium apk<br />
|
40 |
-
Capcut uptodown pro apk<br />
|
41 |
-
Capcut uptodown online<br />
|
42 |
-
Capcut uptodown old version<br />
|
43 |
-
Capcut uptodown new version<br />
|
44 |
-
Capcut uptodown update<br />
|
45 |
-
How to use capcut from uptodown<br />
|
46 |
-
How to install capcut from uptodown<br />
|
47 |
-
How to uninstall capcut from uptodown<br />
|
48 |
-
How to update capcut from uptodown<br />
|
49 |
-
How to edit videos with capcut from uptodown<br />
|
50 |
-
How to add music to capcut from uptodown<br />
|
51 |
-
How to add text to capcut from uptodown<br />
|
52 |
-
How to add stickers to capcut from uptodown<br />
|
53 |
-
How to add effects to capcut from uptodown<br />
|
54 |
-
How to add filters to capcut from uptodown<br />
|
55 |
-
How to cut and crop videos with capcut from uptodown<br />
|
56 |
-
How to change speed of videos with capcut from uptodown<br />
|
57 |
-
How to reverse videos with capcut from uptodown<br />
|
58 |
-
How to export videos with capcut from uptodown<br />
|
59 |
-
How to share videos with capcut from uptodown<br />
|
60 |
-
How to use templates with capcut from uptodown<br />
|
61 |
-
How to follow users on capcut from uptodown<br />
|
62 |
-
How to comment on videos on capcut from uptodown<br />
|
63 |
-
How to create a profile on capcut from uptodown<br />
|
64 |
-
How to link tiktok account with capcut from uptodown<br />
|
65 |
-
How to solve problems with capcut from uptodown<br />
|
66 |
-
Is capcut from uptodown safe and secure?<br />
|
67 |
-
Is capcut from uptodown legal and legit?<br />
|
68 |
-
Is capcut from uptodown better than other video editing apps?</p>
|
69 |
-
<ol>
|
70 |
-
<li>Tap on the "New Project" button at the top of the home screen.</li>
|
71 |
-
<li>You will see a page that shows your device's videos. You can scroll through them or use the tabs at the bottom to filter them by albums or categories.</li>
|
72 |
-
<li>Tap on the video(s) that you want to add to your project. You can select multiple videos by tapping on them one by one. A green checkmark will appear on the selected videos.</li>
|
73 |
-
<li>Tap on the "Add" button at the bottom right corner of the screen. The selected videos will be imported into your project.</li>
|
74 |
-
<li>You will be directed to your main workspace where you can edit your videos. You will see a preview panel at the top half of the screen where you can view your video. You will also see a timeline at the bottom half of the screen where you can perform all your edits. You will also see a toolbar at the very bottom of the screen where you can access all your editing tools.</li> <h2>How to Trim, Split, Merge, and Adjust Clips</h2>
|
75 |
-
<p>One of the most basic editing tasks that you can do with CapCut is to trim, split, merge, and adjust your clips. This allows you to remove unwanted parts, rearrange the order, change the duration, and fine-tune the appearance of your clips.</p>
|
76 |
-
<p>To trim, split, merge, and adjust your clips, follow these steps:</p>
|
77 |
-
<ol>
|
78 |
-
<li>Tap on the clip that you want to edit on the timeline. A yellow border will appear around the selected clip.</li>
|
79 |
-
<li>Tap on the "Clip" icon on the toolbar. You will see a submenu with four options: Trim, Split, Merge, and Adjust.</li>
|
80 |
-
<li>To trim your clip, tap on the "Trim" option. You will see two handles at the beginning and end of your clip. Drag them left or right to set the start and end points of your clip. You can also use the magnifying glass icons to zoom in or out of the timeline for more precision. Tap on the "Apply" button to confirm your changes.</li>
|
81 |
-
<li>To split your clip, tap on the "Split" option. You will see a vertical line on your clip. Drag it left or right to set the point where you want to split your clip. Tap on the "Apply" button to confirm your changes. Your clip will be divided into two separate clips on the timeline.</li>
|
82 |
-
<li>To merge your clips, tap on the "Merge" option. You will see a list of all your clips on the timeline. Tap on the clips that you want to merge. A green checkmark will appear on the selected clips. Tap on the "Apply" button to confirm your changes. Your selected clips will be merged into one clip on the timeline.</li>
|
83 |
-
<li>To adjust your clip, tap on the "Adjust" option. You will see a panel with various sliders that allow you to change the brightness, contrast, saturation, temperature, tint, vignette, and sharpening of your clip. Drag the sliders left or right to adjust the values. Tap on the "Apply" button to confirm your changes.</li>
|
84 |
-
</ol>
|
85 |
-
<h2>How to Add Transitions, Filters, Stickers, and Text</h2>
|
86 |
-
<p>Another way to enhance your videos with CapCut is to add transitions, filters, stickers, and text. These elements can help you create smooth and seamless transitions between clips, apply different color effects and styles to your clips, add fun and expressive stickers and emojis to your clips, and add captions and titles to your videos.</p>
|
87 |
-
<p>To add transitions, filters, stickers, and text to your videos, follow these steps:</p>
|
88 |
-
<ol>
|
89 |
-
<li>Tap on the clip that you want to edit on the timeline. A yellow border will appear around the selected clip.</li>
|
90 |
-
<li>Tap on one of the icons on the toolbar that correspond to transitions, filters, stickers, or text.</li>
|
91 |
-
<li>To add a transition, tap on the "Transition" icon. You will see a list of different types of transitions that you can choose from. Tap on one of them to preview it on your clip. You can also adjust the duration and direction of the transition by dragging the handles or tapping on the arrows. Tap on the "Apply" button to confirm your changes.</li>
|
92 |
-
<li>To add a filter, tap on the "Filter" icon. You will see a list of different categories of filters that you can choose from. Tap on one of them to see more options within that category. Tap on one of them to preview it on your clip. You can also adjust the intensity of the filter by dragging the slider at the bottom of the screen. Tap on the "Apply" button to confirm your changes.</li>
|
93 |
-
<li>To add a sticker, tap on the "Sticker" icon. You will see a list of different types of stickers that you can choose from. Tap on one of them to add it to your clip. You can also resize, rotate, move, duplicate, or delete the sticker by using the handles or icons around it. Tap on the "Apply" button to confirm your changes.</li>
|
94 |
-
<li>To add text, tap on the "Text" icon. You will see a text box appear on your clip. Tap on it to type in your text. You can also change the font style, size, color, alignment, spacing, outline, shadow, animation, and duration of your text by using the icons at the bottom of the screen. Tap on the "Apply" button to confirm your changes.</li>
|
95 |
-
</ol> <h2>How to Use Keyframes, Masks, and Tracking</h2>
|
96 |
-
<p>If you want to take your video editing to the next level, you can use some of the advanced features of CapCut, such as keyframes, masks, and tracking. These features allow you to create dynamic and custom animations, effects, and movements for your clips, stickers, and text.</p>
|
97 |
-
<p>To use keyframes, masks, and tracking in CapCut, follow these steps:</p>
|
98 |
-
<ol>
|
99 |
-
<li>Tap on the clip that you want to edit on the timeline. A yellow border will appear around the selected clip.</li>
|
100 |
-
<li>Tap on the "Effect" icon on the toolbar. You will see a list of different types of effects that you can choose from. Tap on one of them to see more options within that category. Tap on one of them to add it to your clip.</li>
|
101 |
-
<li>To use keyframes, tap on the "Keyframe" icon at the bottom of the screen. You will see a timeline with a red line that represents the duration of your effect. You can also see a blue dot that represents the current frame of your effect. You can drag the blue dot left or right to change the frame.</li>
|
102 |
-
<li>To add a keyframe, tap on the "+" icon at the bottom of the screen. A yellow dot will appear on the timeline that represents your keyframe. You can drag it left or right to change its position.</li>
|
103 |
-
<li>To edit a keyframe, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your effect for that keyframe. For example, you can change the size, position, rotation, opacity, color, and shape of your effect.</li>
|
104 |
-
<li>To delete a keyframe, tap on it to select it. Then tap on the "-" icon at the bottom of the screen.</li>
|
105 |
-
<li>To use masks, tap on the "Mask" icon at the bottom of the screen. You will see a list of different shapes and patterns that you can use as masks for your effect. Tap on one of them to apply it to your effect.</li>
|
106 |
-
<li>To edit a mask, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your mask for that frame. For example, you can change the size, position, rotation, feathering, and blending mode of your mask.</li>
|
107 |
-
<li>To delete a mask, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
108 |
-
<li>To use tracking, tap on the "Tracking" icon at the bottom of the screen. You will see a list of different objects and elements that you can track with your effect. Tap on one of them to select it.</li>
|
109 |
-
<li>To edit a tracking, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your tracking for that frame. For example, you can change the size, position, rotation, offset, and smoothing of your tracking.</li>
|
110 |
-
<li>To delete a tracking, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
111 |
-
</ol> example, you can change the curve, ramp, and freeze mode of your speed.</li>
|
112 |
-
<li>To delete a speed, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
113 |
-
</ol>
|
114 |
-
<h2>How to Add Voice-over, Music, and Sound Effects</h2>
|
115 |
-
<p>Another way to spice up your videos with CapCut is to add voice-over, music, and sound effects. These elements can help you add narration, commentary, background music, and sound effects to your videos.</p>
|
116 |
-
<p>To add voice-over, music, and sound effects to your videos, follow these steps:</p>
|
117 |
-
<ol>
|
118 |
-
<li>Tap on the "Audio" icon on the toolbar. You will see a list of different types of audio that you can choose from. Tap on one of them to see more options within that category. Tap on one of them to add it to your video.</li>
|
119 |
-
<li>To add a voice-over, tap on the "Record" icon at the bottom of the screen. You will see a red button that allows you to start or stop recording your voice. Tap on it to start recording. You will also see a timer that shows you how long you have been recording. You can also pause or resume your recording by tapping on the button again.</li>
|
120 |
-
<li>To edit a voice-over, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your voice-over for that frame. For example, you can change the volume, pitch, speed, fade in, fade out, and trim of your voice-over.</li>
|
121 |
-
<li>To delete a voice-over, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
122 |
-
<li>To add music, tap on the "Music" icon at the bottom of the screen. You will see a list of different categories of music that you can choose from. Tap on one of them to see more options within that category. Tap on one of them to add it to your video.</li>
|
123 |
-
<li>To edit music, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your music for that frame. For example, you can change the volume, pitch, speed, fade in, fade out, trim, loop, and mix mode of your music.</li>
|
124 |
-
<li>To delete music, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
125 |
-
<li>To add sound effects, tap on the "Sound Effect" icon at the bottom of the screen. You will see a list of different types of sound effects that you can choose from. Tap on one of them to add it to your video.</li>
|
126 |
-
<li>To edit sound effects, tap on it to select it. A panel with various sliders and options will appear at the bottom of the screen. You can use them to change the parameters of your sound effects for that frame. For example, you can change the volume, pitch, speed, fade in, fade out, trim, loop, and mix mode of your sound effects.</li>
|
127 |
-
<li>To delete sound effects, tap on it to select it. Then tap on the "Delete" icon at the bottom of the screen.</li>
|
128 |
-
</ol> <h2>How to Export Your Video in High Quality</h2>
|
129 |
-
<p>After you have finished editing your video with CapCut, you can export it in high quality and save it to your device or share it to other platforms. CapCut supports various video formats and resolutions, and you can customize them according to your preferences.</p>
|
130 |
-
<p>To export your video in high quality, follow these steps:</p>
|
131 |
-
<ol>
|
132 |
-
<li>Tap on the "Export" button at the top right corner of the screen. You will see a panel with various options that allow you to change the format, resolution, frame rate, and bitrate of your video.</li>
|
133 |
-
<li>To change the format, tap on the "Format" option. You will see a list of different formats that you can choose from. Tap on one of them to select it. The default format is MP4, which is compatible with most devices and platforms.</li>
|
134 |
-
<li>To change the resolution, tap on the "Resolution" option. You will see a list of different resolutions that you can choose from. Tap on one of them to select it. The default resolution is 720p, which is suitable for most purposes. You can also choose higher resolutions such as 1080p or 4K if you want better quality and clarity.</li>
|
135 |
-
<li>To change the frame rate, tap on the "Frame Rate" option. You will see a list of different frame rates that you can choose from. Tap on one of them to select it. The default frame rate is 30 fps, which is smooth and natural. You can also choose higher frame rates such as 60 fps or 120 fps if you want more fluidity and motion.</li>
|
136 |
-
<li>To change the bitrate, tap on the "Bitrate" option. You will see a list of different bitrates that you can choose from. Tap on one of them to select it. The default bitrate is 8 Mbps, which is balanced and efficient. You can also choose higher bitrates such as 16 Mbps or 32 Mbps if you want more detail and sharpness.</li>
|
137 |
-
<li>After you have made your choices, tap on the "Export" button at the bottom of the panel. Your video will start exporting and you will see a progress bar that shows you how much time is left.</li>
|
138 |
-
<li>Once your video is exported, you will see a confirmation message that says "Exported Successfully". You can also preview your video by tapping on the "Play" button.</li>
|
139 |
-
</ol>
|
140 |
-
<h2>How to Share Your Video to TikTok or Other Platforms</h2>
|
141 |
-
<p>After you have exported your video, you can share it directly to TikTok or other platforms from CapCut. You can also save it to your device or upload it to other cloud services.</p>
|
142 |
-
<p>To share your video to TikTok or other platforms, follow these steps:</p>
|
143 |
-
<ol>
|
144 |
-
<li>Tap on the "Share" button at the bottom right corner of the screen. You will see a list of different platforms that you can share your video to. Tap on one of them to select it.</li>
|
145 |
-
<li>You will be directed to the app or website of the selected platform. You may need to log in or sign up if you haven't done so before.</li>
|
146 |
-
<li>Follow the instructions and steps of the selected platform to upload and share your video. You may need to add a title, description, tags, category, or other information depending on the platform.</li>
|
147 |
-
<li>Once your video is uploaded and shared, you will see a confirmation message that says "Shared Successfully". You can also view your video by tapping on the "View" button.</li>
|
148 |
-
</ol>
|
149 |
-
<h2>Conclusion</h2>
|
150 |
-
<p>In this article, we have shown you how to use CapCut effectively and creatively. We have covered the basic and advanced editing features of CapCut and provided you with some tips and tricks on how to make your videos stand out.</p>
|
151 |
-
<p>CapCut is a powerful and free video editing app that offers a wide range of features and tools for creating stunning videos for TikTok, Instagram, YouTube, or other social media platforms. You can trim, split, merge, adjust, filter, sticker, text, animate, mask, track, reverse, speed up, slow down, green screen, voice-over, and add music and sound effects to your videos. You can also export your videos in high quality and share them directly to TikTok or other platforms.</p>
|
152 |
-
<p>We hope that this guide has helped you learn how to use CapCut and inspired you to create amazing videos with it. If you want to learn more about CapCut, you can visit their official website or follow their social media accounts for more tutorials and updates.</p>
|
153 |
-
<h3>Frequently Asked Questions</h3>
|
154 |
-
<ul>
|
155 |
-
<li><b>Q: Is CapCut free?</b></li>
|
156 |
-
<li>A: Yes, CapCut is free to download and use. There are no water marks, ads, or in-app purchases in the app. You can use all the features and tools without any limitations or costs.</li>
|
157 |
-
<li><b>Q: Is CapCut safe?</b></li>
|
158 |
-
<li>A: Yes, CapCut is safe to use. It does not contain any viruses, malware, or spyware. It also does not collect or share any personal or sensitive information from your device or videos. You can use the app with confidence and peace of mind.</li>
|
159 |
-
<li><b>Q: Is CapCut compatible with my device?</b></li>
|
160 |
-
<li>A: CapCut is compatible with most Android and iOS devices. You can check the minimum system requirements and compatibility of the app on the Google Play Store or the Apple App Store before downloading and installing it.</li>
|
161 |
-
<li><b>Q: How can I contact CapCut support?</b></li>
|
162 |
-
<li>A: If you have any questions, issues, or feedback about CapCut, you can contact their support team by sending an email to [email protected]. You can also visit their help center or FAQ page for more information and solutions.</li>
|
163 |
-
<li><b>Q: How can I learn more about CapCut?</b></li>
|
164 |
-
<li>A: If you want to learn more about CapCut, you can visit their official website at https://www.capcut.net/. You can also follow their social media accounts on Facebook, Twitter, Instagram, and YouTube for more tutorials and updates.</li>
|
165 |
-
</ul></p> 401be4b1e0<br />
|
166 |
-
<br />
|
167 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download 3D Modeling App APK (Unlocked All Features) - The Best 3D Design Tool for Android.md
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>3D Modeling App Premium APK Download: How to Create Amazing 3D Models on Your Android Device</h1>
|
3 |
-
<p>Do you want to unleash your creativity and make stunning 3D models, objects, art, and graphics on your Android device? If yes, then you need to download and install <strong>3D Modeling App</strong>, a powerful and easy-to-use app that allows you to create 3D designs with just a few gestures. In this article, we will show you how to get the premium version of the app for free, how to use it to make amazing 3D models, and how to export and share your creations with others.</p>
|
4 |
-
<h2>3d modeling app premium apk download</h2><br /><p><b><b>DOWNLOAD</b> ✶✶✶ <a href="https://jinyurl.com/2uNPEx">https://jinyurl.com/2uNPEx</a></b></p><br /><br />
|
5 |
-
<h2>What is 3D Modeling App?</h2>
|
6 |
-
<h3>A brief introduction to the app and its features</h3>
|
7 |
-
<p><strong>3D Modeling App</strong> is a free web app for 3D design, electronics, and coding, trusted by over 50 million people around the world. It lets you create 3D models, objects, art, and graphics on your Android device using gestures and tools. You can make anything from product models to printable parts, from sculptures to cartoons, from logos to landscapes. The app has a simple and intuitive interface that makes it easy for beginners and professionals alike. You can also use the app to learn about electronics and coding by creating circuits and codeblocks.</p>
|
8 |
-
<h3>How to download and install the premium version of the app</h3>
|
9 |
-
<p>The app is available for free on Google Play Store, but it has some limitations such as ads, watermarks, and limited features. If you want to enjoy the full potential of the app, you need to get the premium version of the app. The premium version unlocks all the features and tools of the app, removes ads and watermarks, and gives you access to more resources and tutorials. You can get the premium version of the app for free by following these steps:</p>
|
10 |
-
<ol>
|
11 |
-
<li>Go to <a href="(^5^)">this link</a> and download the <strong>MOD APK</strong> file of <strong>3D Modeling App</strong>.</li>
|
12 |
-
<li>Go to your device settings and enable <strong>Unknown Sources</strong> option under <strong>Security</strong>.</li>
|
13 |
-
<li>Locate the downloaded file in your file manager and tap on it.</li>
|
14 |
-
<li>Follow the instructions on the screen and install the app.</li>
|
15 |
-
<li>Launch the app and enjoy creating amazing 3D models.</li>
|
16 |
-
</ol>
|
17 |
-
<h2>How to Use 3D Modeling App to Make 3D Models, Objects, Art, and Graphics</h2>
|
18 |
-
<h3>The basics of 3D modeling with gestures and tools</ <h3>The basics of 3D modeling with gestures and tools</h3>
|
19 |
-
<p>To start creating your 3D models, you need to learn how to use the gestures and tools of the app. The app supports multi-touch gestures such as pinch, zoom, rotate, and pan to manipulate the 3D view. You can also use the buttons on the bottom of the screen to switch between different modes, such as <strong>Draw</strong>, <strong>Shape</strong>, <strong>Transform</strong>, <strong>Group</strong>, and <strong>Code</strong>. Each mode has its own set of tools that you can access by tapping on the icons on the top of the screen. For example, in the <strong>Draw</strong> mode, you can use tools such as <strong>Pencil</strong>, <strong>Line</strong>, <strong>Curve</strong>, <strong>Spline</strong>, and <strong>Text</strong> to draw 2D shapes and paths. In the <strong>Shape</strong> mode, you can use tools such as <strong>Cube</strong>, <strong>Sphere</strong>, <strong>Cylinder</strong>, <strong>Cone</strong>, and <strong>Torus</strong> to create 3D primitives and solids. You can also use the <strong>Library</strong> tool to browse and import 3D models from a collection of categories, such as animals, vehicles, buildings, and more.</p>
|
20 |
-
<h3>How to create different types of 3D objects and shapes</h3>
|
21 |
-
<p>To create different types of 3D objects and shapes, you need to use the app's powerful features and functions. You can use the following methods to create your 3D models:</p>
|
22 |
-
<p>3d design app pro apk free download<br />
|
23 |
-
3d graphics app premium mod apk latest version<br />
|
24 |
-
3d art app unlocked apk full features<br />
|
25 |
-
3d animation app paid apk no ads<br />
|
26 |
-
3d drawing app cracked apk unlimited access<br />
|
27 |
-
3d sculpting app vip apk download for android<br />
|
28 |
-
3d painting app plus apk offline mode<br />
|
29 |
-
3d game app premium hack apk online<br />
|
30 |
-
3d character app modded apk with tutorials<br />
|
31 |
-
3d objects app premium patch apk for pc<br />
|
32 |
-
3d editing app pro unlocked apk no watermark<br />
|
33 |
-
3d rendering app premium modded apk fast performance<br />
|
34 |
-
3d printing app paid cracked apk with templates<br />
|
35 |
-
3d scanning app unlocked full apk easy to use<br />
|
36 |
-
3d modeling app premium apk download latest update<br />
|
37 |
-
3d sketching app pro mod apk with brushes<br />
|
38 |
-
3d texturing app premium hacked apk high quality<br />
|
39 |
-
3d lighting app paid unlocked apk realistic effects<br />
|
40 |
-
3d rigging app cracked full apk with tools<br />
|
41 |
-
3d posing app premium modded apk for artists<br />
|
42 |
-
3d modeling app pro patched apk no subscription<br />
|
43 |
-
3d architecture app premium cracked apk with models<br />
|
44 |
-
3d interior app paid unlocked apk for home design<br />
|
45 |
-
3d landscape app cracked full apk with plants<br />
|
46 |
-
3d modeling app premium hack apk with materials<br />
|
47 |
-
3d engineering app pro modded apk for projects<br />
|
48 |
-
3d mechanical app premium patched apk with parts<br />
|
49 |
-
3d electrical app paid cracked apk for circuits<br />
|
50 |
-
3d modeling app unlocked full apk with tutorials<br />
|
51 |
-
3d fashion app pro hacked apk for clothes design<br />
|
52 |
-
3d jewelry app premium modded apk with gems<br />
|
53 |
-
3d makeup app paid unlocked apk for beauty<br />
|
54 |
-
3d modeling app cracked full apk with filters<br />
|
55 |
-
3d medical app pro patched apk for anatomy<br />
|
56 |
-
3d dental app premium cracked apk for teeth<br />
|
57 |
-
3d fitness app paid modded apk for body shape<br />
|
58 |
-
3d modeling app unlocked full apk with stickers<br />
|
59 |
-
3d education app pro hacked apk for learning<br />
|
60 |
-
3d science app premium patched apk for experiments<br />
|
61 |
-
3d math app paid cracked apk for equations<br />
|
62 |
-
3d modeling app modded full apk with examples<br />
|
63 |
-
3d music app pro unlocked apk for instruments<br />
|
64 |
-
3d sound app premium hacked apk for effects<br />
|
65 |
-
3d video app paid modded apk for editing<br />
|
66 |
-
3d modeling app patched full apk with export options</p>
|
67 |
-
<ul>
|
68 |
-
<li><strong>Extrude:</strong> This method allows you to turn a 2D shape or path into a 3D object by extending it along a direction or a curve. You can use this method to create objects such as pipes, rails, walls, and more. To use this method, you need to select a 2D shape or path in the <strong>Draw</strong> mode, then tap on the <strong>Extrude</strong> tool in the <strong>Shape</strong> mode. You can then adjust the parameters such as distance, angle, twist, taper, and scale to customize your extrusion.</li>
|
69 |
-
<li><strong>Revolve:</strong> This method allows you to turn a 2D shape or path into a 3D object by rotating it around an axis. You can use this method to create objects such as cups, vases, cones, and more. To use this method, you need to select a 2D shape or path in the <strong>Draw</strong> mode, then tap on the <strong>Revolve</strong> tool in the <strong>Shape</strong> mode. You can then adjust the parameters such as angle, segments, offset, and scale to customize your revolution.</li>
|
70 |
-
<li><strong>Sweep:</strong> This method allows you to turn a 2D shape or path into a 3D object by sweeping it along another path. You can use this method to create objects such as coils, springs, ropes, and more. To use this method, you need to select a 2D shape or path in the <strong>Draw</strong> mode, then tap on the <strong>Sweep</strong> tool in the <strong>Shape</strong> mode. You can then select another path to sweep along, and adjust the parameters such as scale, twist, align, and orient to customize your sweep.</li>
|
71 |
-
<li><strong>Lathe:</strong> This method allows you to turn a 2D shape or path into a 3D object by lathing it around an axis. You can use this method to create objects such as bowls, pots, rings, and more. To use this method To add textures, colors, and effects to your 3D models, you need to use the app's <strong>Material</strong> and <strong>Light</strong> tools. You can access these tools by tapping on the icons on the top of the screen in any mode. Here are some tips on how to use these tools:</p>
|
72 |
-
<ul>
|
73 |
-
<li><strong>Material:</strong> This tool allows you to apply different materials and properties to your 3D models, such as color, transparency, reflection, emission, and more. You can choose from a variety of predefined materials, such as metal, wood, glass, plastic, and more. You can also create your own custom materials by adjusting the parameters such as hue, saturation, brightness, roughness, metallic, and more. To use this tool, you need to select a 3D model or a part of it, then tap on the <strong>Material</strong> tool. You can then select a material from the list or create your own.</li>
|
74 |
-
<li><strong>Light:</strong> This tool allows you to add different types of lights and shadows to your 3D scene, such as ambient, directional, point, spot, and area. You can also adjust the parameters such as color, intensity, position, direction, angle, and more. To use this tool, you need to tap on the <strong>Light</strong> tool. You can then select a light type from the list or create your own. You can also use the <strong>Environment</strong> tool to change the background and the skybox of your 3D scene.</li>
|
75 |
-
</ul>
|
76 |
-
<h2>How to Export and Share Your 3D Models with Others</h2>
|
77 |
-
<h3>How to save your 3D models in various formats</h3>
|
78 |
-
<p>To save your 3D models in various formats, you need to use the app's <strong>Export</strong> tool. You can access this tool by tapping on the icon on the top right corner of the screen in any mode. You can choose from a variety of formats to export your 3D models, such as STL, OBJ, GLB/GLTF, PNG, JPG, and more. You can also adjust the parameters such as quality, resolution, size, and more. To use this tool, you need to select a 3D model or a part of it, then tap on the <strong>Export</strong> tool. You can then select a format from the list and customize the settings.</p>
|
79 |
-
<h3>How to share your 3D models on social media, email, or cloud storage</h3>
|
80 |
-
<p>To share your 3D models on social media <p>To share your 3D models on social media, email, or cloud storage, you need to use the app's <strong>Share</strong> tool. You can access this tool by tapping on the icon on the top right corner of the screen in any mode. You can choose from a variety of options to share your 3D models, such as Facebook, Twitter, Instagram, WhatsApp, Gmail, Google Drive, Dropbox, and more. You can also generate a link or a QR code to share your 3D models with anyone. To use this tool, you need to select a 3D model or a part of it, then tap on the <strong>Share</strong> tool. You can then select an option from the list and follow the instructions.</p>
|
81 |
-
<h3>How to use your 3D models for games, animations, or VR/AR applications</h3>
|
82 |
-
<p>To use your 3D models for games, animations, or VR/AR applications, you need to export them in compatible formats and import them into your preferred software or platform. For example, you can use your 3D models for:</p>
|
83 |
-
<ul>
|
84 |
-
<li><strong>Games:</strong> You can export your 3D models in formats such as OBJ or GLB/GLTF and import them into game engines such as Unity or Unreal Engine. You can then use your 3D models as assets for your games and add logic, physics, sound, and more.</li>
|
85 |
-
<li><strong>Animations:</strong> You can export your 3D models in formats such as OBJ or GLB/GLTF and import them into animation software such as Blender or Maya. You can then use your 3D models as characters or props for your animations and add rigging, skinning, motion, and more.</li>
|
86 |
-
<li><strong>VR/AR:</strong> You can export your 3D models in formats such as GLB/GLTF and import them into VR/AR platforms such as Sketchfab or Google Poly. You can then use your 3D models as immersive experiences for VR/AR devices such as Oculus Quest or Google Cardboard.</li>
|
87 |
-
</ul>
|
88 |
-
<h2>Conclusion</h2>
|
89 |
-
<h3>A summary of the main points and benefits of using 3D Modeling App</h3>
|
90 |
-
<p>In conclusion, <strong>3D Modeling App</strong> is a free web app for 3D design, electronics, and coding that allows you to create amazing 3D models on your Android device. You can use the app to:</p>
|
91 |
-
<ul>
|
92 |
-
<li>Download and install the premium version of the app for free and unlock all the features and tools.</li>
|
93 |
-
<li>Create different types of 3D objects and shapes using gestures and tools such as extrude, revolve, sweep, lathe, and loft.</li>
|
94 |
-
<li>Add textures, colors, and effects to your 3D models using material and light tools.</li>
|
95 |
-
<li>Save your 3D models in various formats such as STL, OBJ, GLB/GLTF, PNG, JPG, and more.</li>
|
96 |
-
<li>Share your 3D models on social media <li>Share your 3D models on social media, email, or cloud storage using the share tool.</li>
|
97 |
-
<li>Use your 3D models for games, animations, or VR/AR applications by exporting them in compatible formats and importing them into your preferred software or platform.</li>
|
98 |
-
</ul>
|
99 |
-
<p>By using <strong>3D Modeling App</strong>, you can unleash your creativity and make stunning 3D models, objects, art, and graphics on your Android device. You can also learn about electronics and coding by creating circuits and codeblocks. The app is simple and intuitive, yet powerful and versatile. It is suitable for beginners and professionals alike. You can use the app for fun, education, or work.</p>
|
100 |
-
<h3>A call to action for the readers to download the app and try it out</h3>
|
101 |
-
<p>If you are interested in 3D modeling and design, you should definitely download and install <strong>3D Modeling App</strong> on your Android device. You can get the premium version of the app for free by following the steps in this article. You can then start creating amazing 3D models with just a few gestures. You can also explore the app's features and tools, and discover what you can do with them. You can also check out the app's website for more information, resources, and tutorials. You can also join the app's community to share your creations, get feedback, and learn from others.</p>
|
102 |
-
<p>So what are you waiting for? Download <strong>3D Modeling App</strong> today and start making awesome 3D models on your Android device!</p>
|
103 |
-
<h2>FAQs</h2>
|
104 |
-
<h4>Q1: Is 3D Modeling App free or paid?</h4>
|
105 |
-
<p>A1: The app is free to download and use, but it has some limitations such as ads, watermarks, and limited features. If you want to unlock all the features and tools of the app, you need to get the premium version of the app. You can get the premium version of the app for free by following the steps in this article.</p>
|
106 |
-
<h4>Q2: What are the advantages of using the premium version of the app?</h4>
|
107 |
-
<p>A2: The premium version of the app has many advantages over the free version, such as:</p>
|
108 |
-
<ul>
|
109 |
-
<li>No ads or watermarks.</li>
|
110 |
-
<li>All features and tools unlocked.</li>
|
111 |
-
<li>More resources and tutorials available.</li>
|
112 |
-
<li>Better performance and stability.</li>
|
113 |
-
<li>Priority support and updates.</li>
|
114 |
-
</ul>
|
115 |
-
<h4>Q3: What are the system requirements for running the app?</h4>
|
116 |
-
<p>A3: The app requires an Android device with at least 2 GB of RAM and 100 MB of storage space. The app also requires an internet connection for some functions such as downloading models from the library or sharing models online. The app supports Android versions 5.0 and above.</p>
|
117 |
-
<h4>Q4: How can I learn more about 3D modeling and design?</h4>
|
118 |
-
<p>A4: You can learn more about 3D modeling and design by using <strong>3D Modeling App</strong> and exploring its features and tools. You can also visit the app's website for more information, resources, and tutorials. You can also join the app's community to share your creations, get feedback, and learn from others. You can also check out other online sources such as blogs, videos, courses, books, and more.</p>
|
119 |
-
<h4>Q5: Where can I find more examples and tutorials of using the app?</h4>
|
120 |
-
<p>A5: You can find more examples and tutorials of using the app on the app's website, where you can browse through various categories such as product design, art, education, electronics, coding, and more. You can also find more examples and tutorials on the app's YouTube channel, where you can watch videos of how to use the app for different purposes. You can also find more examples and tutorials on the app's Instagram page, where you can see photos of amazing 3D models made by users of the app.</p>
|
121 |
-
: https://www.tinkercad.com/ : https://www.tinkercad.com/community : https://www.youtube.com/channel/UCOeCos6GcBKACh22dEHd8Cg : https://www.instagram.com/tinkercad/ : https://modapkdl.io/tinkercad-mod-apk/</p> 197e85843d<br />
|
122 |
-
<br />
|
123 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download Online Neta Mod APK for Free and Unleash Your Creativity.md
DELETED
@@ -1,141 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Online Neta Mod APK: What Is It and How to Download It?</h1>
|
3 |
-
<p>If you are looking for a powerful and versatile app that can help you with your design, video, social media, and marketing needs, you might want to check out online neta. Online neta is a popular app that offers a range of tools and features to help you create stunning and engaging content for your online platforms. But what if you want to access more features and resources without paying for them? That's where online neta mod apk comes in.</p>
|
4 |
-
<h2>online neta mod apk</h2><br /><p><b><b>DOWNLOAD</b> >>>>> <a href="https://jinyurl.com/2uNPEc">https://jinyurl.com/2uNPEc</a></b></p><br /><br />
|
5 |
-
<p>Online neta mod apk is a modified version of the original online neta app that allows you to enjoy all the premium features and unlimited resources for free. With online neta mod apk, you can unlock more templates, fonts, stickers, filters, effects, music, and more. You can also remove ads and watermarks from your content. Sounds amazing, right?</p>
|
6 |
-
<p>In this article, we will tell you everything you need to know about online neta mod apk, including what it is, why you should download it, how to download it safely and easily, and how to use it effectively and efficiently. So let's get started!</p>
|
7 |
-
<h2>What is Online Neta?</h2>
|
8 |
-
<p>Online neta is a design and video app that helps you create professional-looking and eye-catching content for your online platforms. Whether you want to make a logo, a flyer, a poster, a banner, a brochure, a video ad, a slideshow, a collage, or anything else related to design and video creation.</p>
|
9 |
-
<p>Online neta has everything you need. You can choose from thousands of ready-made templates or start from scratch with your own ideas. You can also customize your content with various editing tools such as text styles, colors, shapes, icons, images, videos, music, filters, effects, transitions, and more.</p>
|
10 |
-
<p>Online neta also lets you share your content directly to your social media accounts such as Facebook, Instagram, Twitter, YouTube, TikTok, and more. You can also save your content to your device or cloud storage for future use. Online neta is a one-stop solution for all your design and video needs.</p>
|
11 |
-
<p>online neta design and video app mod apk<br />
|
12 |
-
online neta mod apk download for android<br />
|
13 |
-
online neta mod apk unlimited money<br />
|
14 |
-
online neta mod apk latest version<br />
|
15 |
-
online neta mod apk free download<br />
|
16 |
-
online neta hack mod apk<br />
|
17 |
-
online neta premium mod apk<br />
|
18 |
-
online neta pro mod apk<br />
|
19 |
-
online neta vip mod apk<br />
|
20 |
-
online neta full mod apk<br />
|
21 |
-
online neta cracked mod apk<br />
|
22 |
-
online neta unlocked mod apk<br />
|
23 |
-
online neta ad-free mod apk<br />
|
24 |
-
online neta no watermark mod apk<br />
|
25 |
-
online neta video editor mod apk<br />
|
26 |
-
online neta graphic design mod apk<br />
|
27 |
-
online neta logo maker mod apk<br />
|
28 |
-
online neta poster maker mod apk<br />
|
29 |
-
online neta flyer maker mod apk<br />
|
30 |
-
online neta banner maker mod apk<br />
|
31 |
-
online neta brochure maker mod apk<br />
|
32 |
-
online neta invitation maker mod apk<br />
|
33 |
-
online neta card maker mod apk<br />
|
34 |
-
online neta sticker maker mod apk<br />
|
35 |
-
online neta meme maker mod apk<br />
|
36 |
-
online neta collage maker mod apk<br />
|
37 |
-
online neta photo editor mod apk<br />
|
38 |
-
online neta filter and effect mod apk<br />
|
39 |
-
online neta text and font mod apk<br />
|
40 |
-
online neta background and sticker mod apk<br />
|
41 |
-
online neta template and layout mod apk<br />
|
42 |
-
online neta animation and transition mod apk<br />
|
43 |
-
online neta music and sound effect mod apk<br />
|
44 |
-
online neta voice over and narration mod apk<br />
|
45 |
-
online neta slideshow and video maker mod apk<br />
|
46 |
-
online neta social media post maker mod apk<br />
|
47 |
-
online neta youtube thumbnail maker mod apk<br />
|
48 |
-
online neta instagram story maker mod apk<br />
|
49 |
-
online neta facebook cover maker mod apk<br />
|
50 |
-
online neta twitter header maker mod apk<br />
|
51 |
-
online neta pinterest pin maker mod apk<br />
|
52 |
-
online neta tiktok video maker mod apk<br />
|
53 |
-
online neta snapchat filter maker mod apk<br />
|
54 |
-
online neta whatsapp status maker mod apk<br />
|
55 |
-
online neta linkedin banner maker mod apk<br />
|
56 |
-
online neta reddit post maker mod apk<br />
|
57 |
-
online neta tumblr graphic maker mod apk<br />
|
58 |
-
online neta medium story maker mod apk<br />
|
59 |
-
online neta quora answer maker mod apk</p>
|
60 |
-
<h2>What is Mod APK?</h2>
|
61 |
-
<p>Mod APK stands for modified application package. It is a file format that is used to install apps on Android devices. A mod apk is a modified version of an original app that has been altered by someone to add or remove some features or resources. For example, a mod apk of online neta might have more templates, fonts, stickers, filters, effects, music, and other resources than the original app. It might also have no ads and no watermarks on the content.</p>
|
62 |
-
<p>A mod apk can offer some advantages over the original app, such as:</p>
|
63 |
-
<ul>
|
64 |
-
<li>Accessing premium features and unlimited resources for free</li>
|
65 |
-
<li>Enhancing the user experience and satisfaction</li>
|
66 |
-
<li>Exploring more possibilities and creativity</li>
|
67 |
-
<li>Bypassing some restrictions and limitations</li>
|
68 |
-
</ul>
|
69 |
-
<p>However, a mod apk can also have some disadvantages, such as:</p>
|
70 |
-
<ul>
|
71 |
-
<li>Violating the terms and conditions of the original app</li>
|
72 |
-
<li>Risking the security and privacy of the device and data</li>
|
73 |
-
<li>Exposing the device to malware and viruses</li>
|
74 |
-
<li>Causing compatibility and performance issues</li>
|
75 |
-
</ul>
|
76 |
-
<p>Therefore, it is important to be careful and cautious when downloading and installing a mod apk. You should always download it from a reliable and trusted source, scan it for malware and viruses, backup your data, and enable unknown sources on your device.</p>
|
77 |
-
<h2>Why Download Online Neta Mod APK?</h2>
|
78 |
-
<p>If you are wondering why you should download online neta mod apk instead of the original app, here are some of the reasons:</p>
|
79 |
-
<ul>
|
80 |
-
<li>You can save money by accessing all the premium features and unlimited resources for free. You don't have to pay for any subscription or in-app purchases.</li>
|
81 |
-
<li>You can enhance your creativity by unlocking more templates, fonts, stickers, filters, effects, music, and other resources that can help you create stunning and engaging content.</li>
|
82 |
-
<li>You can boost your online presence by removing ads and watermarks from your content. You can also share your content directly to your social media accounts without any hassle.</li>
|
83 |
-
<li>You can enjoy the app without any interruption or distraction. You don't have to worry about annoying ads popping up or slowing down your device.</li>
|
84 |
-
<li>You can explore the app without any limitation or restriction. You don't have to worry about running out of resources or exceeding the quota.</li>
|
85 |
-
</ul>
|
86 |
-
<p>Online neta mod apk can offer you a lot of benefits that can make your design and video creation easier and more fun. However, you should also be aware of the potential risks and consequences of using a mod apk. You should always respect the rights and interests of the original app developers and use the mod apk responsibly and ethically.</p>
|
87 |
-
<h2>How to Download Online Neta Mod APK?</h2>
|
88 |
-
<p>If you are interested in downloading online neta mod apk, you need to follow some steps to ensure a safe and easy process. Here are the steps:</p>
|
89 |
-
<h3>Requirements</h3>
|
90 |
-
<p>Before you download online neta mod apk, you need to make sure that you have the following requirements:</p>
|
91 |
-
<ul>
|
92 |
-
<li>An Android device that runs on Android 4.4 or higher</li>
|
93 |
-
<li>An internet connection that is stable and fast</li>
|
94 |
-
<li>A file manager app that can help you locate and manage your files</li>
|
95 |
-
<li>A backup of your data in case something goes wrong</li>
|
96 |
-
</ul>
|
97 |
-
<h3>Sources</h3>
|
98 |
-
<p>After you have checked the requirements, you need to find a reliable and trusted source where you can download online neta mod apk for free. There are many websites that offer mod apks, but not all of them are safe and secure. Some of them might contain malware or viruses that can harm your device or data. Some of them might also provide fake or outdated versions of online neta mod apk that might not work properly or cause errors.</p>
|
99 |
-
<p>To avoid these problems, you should always do some research before downloading online neta mod apk from any website. You should check the reviews, ratings, comments, feedbacks, and testimonials of other users who have downloaded online neta mod apk from that website. You should also scan the file for malware or viruses before installing it on your device.</p>
|
100 |
-
<p>Some of the reliable and trusted websites where you can download online neta mod apk for free are:</p>
|
101 |
-
<table border="1">
|
102 |
-
<tr><th>Name</th><th>Description</th><th>URL</th></tr>
|
103 |
-
<tr><td>Sosomod.net </td><td>A website that provides various mod apks for different apps and games. It has a simple and user-friendly interface, a fast and secure download process, and a regular update of the latest versions of online neta mod apk.</td><td>(https://sosomod.net/online-neta-mod-apk/)</td></tr>
|
104 |
-
<tr><td>Apkcombo.com</td><td>A website that provides various apk files for different apps and games. It has a large and diverse collection of online neta mod apk files, a high-speed and safe download service, and a detailed and accurate description of each file.</td><td>(https://apkcombo.com/online-neta-mod-apk/com.onlineneta.app/)</td></tr>
|
105 |
-
<tr><td>Apkpure.com</td><td>A website that provides various apk files for different apps and games. It has a clean and elegant design, a smooth and easy download process, and a verification and validation system that ensures the quality and security of each file.</td><td>(https://apkpure.com/online-neta-mod-apk/com.onlineneta.app/)</td></tr>
|
106 |
-
</table>
|
107 |
-
<h3>Installation Process</h3>
|
108 |
-
<p>Once you have downloaded online neta mod apk from one of the sources above, you need to install it on your device. Here are the steps:</p>
|
109 |
-
<ol>
|
110 |
-
<li>Go to your device settings and enable unknown sources. This will allow you to install apps from sources other than the Google Play Store.</li>
|
111 |
-
<li>Go to your file manager app and locate the downloaded online neta mod apk file. It should be in your download folder or in the folder where you saved it.</li>
|
112 |
-
<li>Tap on the online neta mod apk file and follow the prompts. You might need to grant some permissions or accept some terms and conditions.</li>
|
113 |
-
<li>Wait for the installation to complete. You should see a confirmation message when it is done.</li>
|
114 |
-
<li>Launch the online neta mod apk app from your app drawer or home screen. You should be able to access all the premium features and unlimited resources for free.</li>
|
115 |
-
</ol>
|
116 |
-
<h2>How to Use Online Neta Mod APK?</h2>
|
117 |
-
<p>Now that you have installed online neta mod apk on your device, you can start using it to create amazing content for your online platforms. Here are some tips and tricks on how to use online neta mod apk effectively and efficiently:</p>
|
118 |
-
<ul>
|
119 |
-
<li>Explore the features: Online neta mod apk has a lot of features and resources that you can use to create stunning and engaging content. You can browse through the categories and subcategories of templates, fonts, stickers, filters, effects, music, and more. You can also search for specific keywords or themes that suit your needs.</li>
|
120 |
-
<li>Customize the settings: Online neta mod apk allows you to customize your content with various editing tools. You can adjust the text styles, colors, shapes, icons, images, videos, music, filters, effects, transitions, and more. You can also crop, rotate, resize, align, layer, duplicate, delete, or undo any element on your content.</li>
|
121 |
-
<li>Create and share content: Online neta mod apk helps you create professional-looking and eye-catching content for your online platforms. You can choose from thousands of ready-made templates or start from scratch with your own ideas. You can also save your content to your device or cloud storage for future use. You can also share your content directly to your social media accounts such as Facebook, Instagram, Twitter, YouTube, TikTok, and more.</li>
|
122 |
-
</ul>
|
123 |
-
<h2>Conclusion</h2>
|
124 |
-
<p>Online neta mod apk is a modified version of the original online neta app that allows you to access all the premium features and unlimited resources for free. With online neta mod apk, you can create stunning and engaging content for your online platforms without paying for anything. You can also remove ads and watermarks from your content and enjoy the app without any interruption or distraction.</p>
|
125 |
-
<p>To download online neta mod apk safely and easily, you need to follow some steps such as checking the requirements, finding a reliable source, downloading the file, enabling unknown sources, installing the app, and launching it. To use online neta mod apk effectively and efficiently, you need to follow some tips such as exploring the features, customizing the settings, creating and sharing content, etc.</p>
|
126 |
-
<p>Online neta mod apk is a great app that can help you with your design and video needs. It can help you save money, enhance your creativity, boost your online presence, and enjoy the app without any limitation or restriction. However, you should also be careful and cautious when using a mod apk. You should always respect the rights and interests of the original app developers and use the mod apk responsibly and ethically.</p>
|
127 |
-
<p>If you want to try online neta mod apk, you can download it from one of the sources we mentioned above. You can also check out our other articles on how to download and use other mod apks for different apps and games. We hope you found this article helpful and informative. Thank you for reading!</p>
|
128 |
-
<h2>FAQs</h2>
|
129 |
-
<p>Here are some of the frequently asked questions about online neta mod apk:</p>
|
130 |
-
<h3>What are the risks of using online neta mod apk?</h3>
|
131 |
-
<p>Using online neta mod apk can expose you to some risks, such as violating the terms and conditions of the original app, risking the security and privacy of your device and data, exposing your device to malware and viruses, causing compatibility and performance issues, etc. You should always be careful and cautious when using a mod apk and download it from a reliable and trusted source.</p>
|
132 |
-
<h3>How to update online neta mod apk?</h3>
|
133 |
-
<p>To update online neta mod apk, you need to download the latest version of the file from one of the sources we mentioned above. You can also check the website of the original app for any updates or news. You should always update your online neta mod apk to enjoy the latest features and resources and avoid any errors or bugs.</p>
|
134 |
-
<h3>How to uninstall online neta mod apk?</h3>
|
135 |
-
<p>To uninstall online neta mod apk, you need to go to your device settings and find the app in the list of installed apps. You can then tap on it and select uninstall. You can also delete the online neta mod apk file from your file manager app. You should always backup your data before uninstalling online neta mod apk in case you want to restore it later.</p>
|
136 |
-
<h3>Is online neta mod apk legal?</h3>
|
137 |
-
<p>Online neta mod apk is not legal as it violates the terms and conditions of the original app. It also infringes on the intellectual property rights of the original app developers. Using online neta mod apk can result in legal actions or penalties from the original app developers or authorities. You should always respect the rights and interests of the original app developers and use the original app instead of the mod apk.</p>
|
138 |
-
<h3>Is online neta mod apk safe?</h3>
|
139 |
-
<p>Online neta mod apk is not safe as it can harm your device or data. It can contain malware or viruses that can infect your device or steal your data. It can also cause compatibility and performance issues that can affect your device or other apps. Using online neta mod apk can compromise your security and privacy. You should always scan the file for malware or viruses before installing it on your device.</p> 197e85843d<br />
|
140 |
-
<br />
|
141 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/4Taps/SadTalker/src/generate_batch.py
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
from tqdm import tqdm
|
4 |
-
import torch
|
5 |
-
import numpy as np
|
6 |
-
import random
|
7 |
-
import scipy.io as scio
|
8 |
-
import src.utils.audio as audio
|
9 |
-
|
10 |
-
def crop_pad_audio(wav, audio_length):
|
11 |
-
if len(wav) > audio_length:
|
12 |
-
wav = wav[:audio_length]
|
13 |
-
elif len(wav) < audio_length:
|
14 |
-
wav = np.pad(wav, [0, audio_length - len(wav)], mode='constant', constant_values=0)
|
15 |
-
return wav
|
16 |
-
|
17 |
-
def parse_audio_length(audio_length, sr, fps):
|
18 |
-
bit_per_frames = sr / fps
|
19 |
-
|
20 |
-
num_frames = int(audio_length / bit_per_frames)
|
21 |
-
audio_length = int(num_frames * bit_per_frames)
|
22 |
-
|
23 |
-
return audio_length, num_frames
|
24 |
-
|
25 |
-
def generate_blink_seq(num_frames):
|
26 |
-
ratio = np.zeros((num_frames,1))
|
27 |
-
frame_id = 0
|
28 |
-
while frame_id in range(num_frames):
|
29 |
-
start = 80
|
30 |
-
if frame_id+start+9<=num_frames - 1:
|
31 |
-
ratio[frame_id+start:frame_id+start+9, 0] = [0.5,0.6,0.7,0.9,1, 0.9, 0.7,0.6,0.5]
|
32 |
-
frame_id = frame_id+start+9
|
33 |
-
else:
|
34 |
-
break
|
35 |
-
return ratio
|
36 |
-
|
37 |
-
def generate_blink_seq_randomly(num_frames):
|
38 |
-
ratio = np.zeros((num_frames,1))
|
39 |
-
if num_frames<=20:
|
40 |
-
return ratio
|
41 |
-
frame_id = 0
|
42 |
-
while frame_id in range(num_frames):
|
43 |
-
start = random.choice(range(min(10,num_frames), min(int(num_frames/2), 70)))
|
44 |
-
if frame_id+start+5<=num_frames - 1:
|
45 |
-
ratio[frame_id+start:frame_id+start+5, 0] = [0.5, 0.9, 1.0, 0.9, 0.5]
|
46 |
-
frame_id = frame_id+start+5
|
47 |
-
else:
|
48 |
-
break
|
49 |
-
return ratio
|
50 |
-
|
51 |
-
def get_data(first_coeff_path, audio_path, device):
|
52 |
-
|
53 |
-
syncnet_mel_step_size = 16
|
54 |
-
fps = 25
|
55 |
-
|
56 |
-
pic_name = os.path.splitext(os.path.split(first_coeff_path)[-1])[0]
|
57 |
-
audio_name = os.path.splitext(os.path.split(audio_path)[-1])[0]
|
58 |
-
|
59 |
-
source_semantics_path = first_coeff_path
|
60 |
-
source_semantics_dict = scio.loadmat(source_semantics_path)
|
61 |
-
ref_coeff = source_semantics_dict['coeff_3dmm'][:1,:70] #1 70
|
62 |
-
|
63 |
-
wav = audio.load_wav(audio_path, 16000)
|
64 |
-
wav_length, num_frames = parse_audio_length(len(wav), 16000, 25)
|
65 |
-
wav = crop_pad_audio(wav, wav_length)
|
66 |
-
orig_mel = audio.melspectrogram(wav).T
|
67 |
-
spec = orig_mel.copy() # nframes 80
|
68 |
-
indiv_mels = []
|
69 |
-
|
70 |
-
for i in tqdm(range(num_frames), 'mel:'):
|
71 |
-
start_frame_num = i-2
|
72 |
-
start_idx = int(80. * (start_frame_num / float(fps)))
|
73 |
-
end_idx = start_idx + syncnet_mel_step_size
|
74 |
-
seq = list(range(start_idx, end_idx))
|
75 |
-
seq = [ min(max(item, 0), orig_mel.shape[0]-1) for item in seq ]
|
76 |
-
m = spec[seq, :]
|
77 |
-
indiv_mels.append(m.T)
|
78 |
-
indiv_mels = np.asarray(indiv_mels) # T 80 16
|
79 |
-
ratio = generate_blink_seq_randomly(num_frames) # T
|
80 |
-
|
81 |
-
indiv_mels = torch.FloatTensor(indiv_mels).unsqueeze(1).unsqueeze(0) # bs T 1 80 16
|
82 |
-
ratio = torch.FloatTensor(ratio).unsqueeze(0) # bs T
|
83 |
-
ref_coeff = torch.FloatTensor(ref_coeff).unsqueeze(0) # bs 1 70
|
84 |
-
|
85 |
-
indiv_mels = indiv_mels.to(device)
|
86 |
-
ratio = ratio.to(device)
|
87 |
-
ref_coeff = ref_coeff.to(device)
|
88 |
-
|
89 |
-
return {'indiv_mels': indiv_mels,
|
90 |
-
'ref': ref_coeff,
|
91 |
-
'num_frames': num_frames,
|
92 |
-
'ratio_gt': ratio,
|
93 |
-
'audio_name': audio_name, 'pic_name': pic_name}
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/801artistry/RVC801/lib/uvr5_pack/lib_v5/nets_new.py
DELETED
@@ -1,132 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch import nn
|
3 |
-
import torch.nn.functional as F
|
4 |
-
from . import layers_new
|
5 |
-
|
6 |
-
|
7 |
-
class BaseNet(nn.Module):
|
8 |
-
def __init__(
|
9 |
-
self, nin, nout, nin_lstm, nout_lstm, dilations=((4, 2), (8, 4), (12, 6))
|
10 |
-
):
|
11 |
-
super(BaseNet, self).__init__()
|
12 |
-
self.enc1 = layers_new.Conv2DBNActiv(nin, nout, 3, 1, 1)
|
13 |
-
self.enc2 = layers_new.Encoder(nout, nout * 2, 3, 2, 1)
|
14 |
-
self.enc3 = layers_new.Encoder(nout * 2, nout * 4, 3, 2, 1)
|
15 |
-
self.enc4 = layers_new.Encoder(nout * 4, nout * 6, 3, 2, 1)
|
16 |
-
self.enc5 = layers_new.Encoder(nout * 6, nout * 8, 3, 2, 1)
|
17 |
-
|
18 |
-
self.aspp = layers_new.ASPPModule(nout * 8, nout * 8, dilations, dropout=True)
|
19 |
-
|
20 |
-
self.dec4 = layers_new.Decoder(nout * (6 + 8), nout * 6, 3, 1, 1)
|
21 |
-
self.dec3 = layers_new.Decoder(nout * (4 + 6), nout * 4, 3, 1, 1)
|
22 |
-
self.dec2 = layers_new.Decoder(nout * (2 + 4), nout * 2, 3, 1, 1)
|
23 |
-
self.lstm_dec2 = layers_new.LSTMModule(nout * 2, nin_lstm, nout_lstm)
|
24 |
-
self.dec1 = layers_new.Decoder(nout * (1 + 2) + 1, nout * 1, 3, 1, 1)
|
25 |
-
|
26 |
-
def __call__(self, x):
|
27 |
-
e1 = self.enc1(x)
|
28 |
-
e2 = self.enc2(e1)
|
29 |
-
e3 = self.enc3(e2)
|
30 |
-
e4 = self.enc4(e3)
|
31 |
-
e5 = self.enc5(e4)
|
32 |
-
|
33 |
-
h = self.aspp(e5)
|
34 |
-
|
35 |
-
h = self.dec4(h, e4)
|
36 |
-
h = self.dec3(h, e3)
|
37 |
-
h = self.dec2(h, e2)
|
38 |
-
h = torch.cat([h, self.lstm_dec2(h)], dim=1)
|
39 |
-
h = self.dec1(h, e1)
|
40 |
-
|
41 |
-
return h
|
42 |
-
|
43 |
-
|
44 |
-
class CascadedNet(nn.Module):
|
45 |
-
def __init__(self, n_fft, nout=32, nout_lstm=128):
|
46 |
-
super(CascadedNet, self).__init__()
|
47 |
-
|
48 |
-
self.max_bin = n_fft // 2
|
49 |
-
self.output_bin = n_fft // 2 + 1
|
50 |
-
self.nin_lstm = self.max_bin // 2
|
51 |
-
self.offset = 64
|
52 |
-
|
53 |
-
self.stg1_low_band_net = nn.Sequential(
|
54 |
-
BaseNet(2, nout // 2, self.nin_lstm // 2, nout_lstm),
|
55 |
-
layers_new.Conv2DBNActiv(nout // 2, nout // 4, 1, 1, 0),
|
56 |
-
)
|
57 |
-
|
58 |
-
self.stg1_high_band_net = BaseNet(
|
59 |
-
2, nout // 4, self.nin_lstm // 2, nout_lstm // 2
|
60 |
-
)
|
61 |
-
|
62 |
-
self.stg2_low_band_net = nn.Sequential(
|
63 |
-
BaseNet(nout // 4 + 2, nout, self.nin_lstm // 2, nout_lstm),
|
64 |
-
layers_new.Conv2DBNActiv(nout, nout // 2, 1, 1, 0),
|
65 |
-
)
|
66 |
-
self.stg2_high_band_net = BaseNet(
|
67 |
-
nout // 4 + 2, nout // 2, self.nin_lstm // 2, nout_lstm // 2
|
68 |
-
)
|
69 |
-
|
70 |
-
self.stg3_full_band_net = BaseNet(
|
71 |
-
3 * nout // 4 + 2, nout, self.nin_lstm, nout_lstm
|
72 |
-
)
|
73 |
-
|
74 |
-
self.out = nn.Conv2d(nout, 2, 1, bias=False)
|
75 |
-
self.aux_out = nn.Conv2d(3 * nout // 4, 2, 1, bias=False)
|
76 |
-
|
77 |
-
def forward(self, x):
|
78 |
-
x = x[:, :, : self.max_bin]
|
79 |
-
|
80 |
-
bandw = x.size()[2] // 2
|
81 |
-
l1_in = x[:, :, :bandw]
|
82 |
-
h1_in = x[:, :, bandw:]
|
83 |
-
l1 = self.stg1_low_band_net(l1_in)
|
84 |
-
h1 = self.stg1_high_band_net(h1_in)
|
85 |
-
aux1 = torch.cat([l1, h1], dim=2)
|
86 |
-
|
87 |
-
l2_in = torch.cat([l1_in, l1], dim=1)
|
88 |
-
h2_in = torch.cat([h1_in, h1], dim=1)
|
89 |
-
l2 = self.stg2_low_band_net(l2_in)
|
90 |
-
h2 = self.stg2_high_band_net(h2_in)
|
91 |
-
aux2 = torch.cat([l2, h2], dim=2)
|
92 |
-
|
93 |
-
f3_in = torch.cat([x, aux1, aux2], dim=1)
|
94 |
-
f3 = self.stg3_full_band_net(f3_in)
|
95 |
-
|
96 |
-
mask = torch.sigmoid(self.out(f3))
|
97 |
-
mask = F.pad(
|
98 |
-
input=mask,
|
99 |
-
pad=(0, 0, 0, self.output_bin - mask.size()[2]),
|
100 |
-
mode="replicate",
|
101 |
-
)
|
102 |
-
|
103 |
-
if self.training:
|
104 |
-
aux = torch.cat([aux1, aux2], dim=1)
|
105 |
-
aux = torch.sigmoid(self.aux_out(aux))
|
106 |
-
aux = F.pad(
|
107 |
-
input=aux,
|
108 |
-
pad=(0, 0, 0, self.output_bin - aux.size()[2]),
|
109 |
-
mode="replicate",
|
110 |
-
)
|
111 |
-
return mask, aux
|
112 |
-
else:
|
113 |
-
return mask
|
114 |
-
|
115 |
-
def predict_mask(self, x):
|
116 |
-
mask = self.forward(x)
|
117 |
-
|
118 |
-
if self.offset > 0:
|
119 |
-
mask = mask[:, :, :, self.offset : -self.offset]
|
120 |
-
assert mask.size()[3] > 0
|
121 |
-
|
122 |
-
return mask
|
123 |
-
|
124 |
-
def predict(self, x, aggressiveness=None):
|
125 |
-
mask = self.forward(x)
|
126 |
-
pred_mag = x * mask
|
127 |
-
|
128 |
-
if self.offset > 0:
|
129 |
-
pred_mag = pred_mag[:, :, :, self.offset : -self.offset]
|
130 |
-
assert pred_mag.size()[3] > 0
|
131 |
-
|
132 |
-
return pred_mag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/audio_detection/audio_infer/utils/create_indexes.py
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import argparse
|
3 |
-
import csv
|
4 |
-
import os
|
5 |
-
import glob
|
6 |
-
import datetime
|
7 |
-
import time
|
8 |
-
import logging
|
9 |
-
import h5py
|
10 |
-
import librosa
|
11 |
-
|
12 |
-
from utilities import create_folder, get_sub_filepaths
|
13 |
-
import config
|
14 |
-
|
15 |
-
|
16 |
-
def create_indexes(args):
|
17 |
-
"""Create indexes a for dataloader to read for training. When users have
|
18 |
-
a new task and their own data, they need to create similar indexes. The
|
19 |
-
indexes contain meta information of "where to find the data for training".
|
20 |
-
"""
|
21 |
-
|
22 |
-
# Arguments & parameters
|
23 |
-
waveforms_hdf5_path = args.waveforms_hdf5_path
|
24 |
-
indexes_hdf5_path = args.indexes_hdf5_path
|
25 |
-
|
26 |
-
# Paths
|
27 |
-
create_folder(os.path.dirname(indexes_hdf5_path))
|
28 |
-
|
29 |
-
with h5py.File(waveforms_hdf5_path, 'r') as hr:
|
30 |
-
with h5py.File(indexes_hdf5_path, 'w') as hw:
|
31 |
-
audios_num = len(hr['audio_name'])
|
32 |
-
hw.create_dataset('audio_name', data=hr['audio_name'][:], dtype='S20')
|
33 |
-
hw.create_dataset('target', data=hr['target'][:], dtype=np.bool)
|
34 |
-
hw.create_dataset('hdf5_path', data=[waveforms_hdf5_path.encode()] * audios_num, dtype='S200')
|
35 |
-
hw.create_dataset('index_in_hdf5', data=np.arange(audios_num), dtype=np.int32)
|
36 |
-
|
37 |
-
print('Write to {}'.format(indexes_hdf5_path))
|
38 |
-
|
39 |
-
|
40 |
-
def combine_full_indexes(args):
|
41 |
-
"""Combine all balanced and unbalanced indexes hdf5s to a single hdf5. This
|
42 |
-
combined indexes hdf5 is used for training with full data (~20k balanced
|
43 |
-
audio clips + ~1.9m unbalanced audio clips).
|
44 |
-
"""
|
45 |
-
|
46 |
-
# Arguments & parameters
|
47 |
-
indexes_hdf5s_dir = args.indexes_hdf5s_dir
|
48 |
-
full_indexes_hdf5_path = args.full_indexes_hdf5_path
|
49 |
-
|
50 |
-
classes_num = config.classes_num
|
51 |
-
|
52 |
-
# Paths
|
53 |
-
paths = get_sub_filepaths(indexes_hdf5s_dir)
|
54 |
-
paths = [path for path in paths if (
|
55 |
-
'train' in path and 'full_train' not in path and 'mini' not in path)]
|
56 |
-
|
57 |
-
print('Total {} hdf5 to combine.'.format(len(paths)))
|
58 |
-
|
59 |
-
with h5py.File(full_indexes_hdf5_path, 'w') as full_hf:
|
60 |
-
full_hf.create_dataset(
|
61 |
-
name='audio_name',
|
62 |
-
shape=(0,),
|
63 |
-
maxshape=(None,),
|
64 |
-
dtype='S20')
|
65 |
-
|
66 |
-
full_hf.create_dataset(
|
67 |
-
name='target',
|
68 |
-
shape=(0, classes_num),
|
69 |
-
maxshape=(None, classes_num),
|
70 |
-
dtype=np.bool)
|
71 |
-
|
72 |
-
full_hf.create_dataset(
|
73 |
-
name='hdf5_path',
|
74 |
-
shape=(0,),
|
75 |
-
maxshape=(None,),
|
76 |
-
dtype='S200')
|
77 |
-
|
78 |
-
full_hf.create_dataset(
|
79 |
-
name='index_in_hdf5',
|
80 |
-
shape=(0,),
|
81 |
-
maxshape=(None,),
|
82 |
-
dtype=np.int32)
|
83 |
-
|
84 |
-
for path in paths:
|
85 |
-
with h5py.File(path, 'r') as part_hf:
|
86 |
-
print(path)
|
87 |
-
n = len(full_hf['audio_name'][:])
|
88 |
-
new_n = n + len(part_hf['audio_name'][:])
|
89 |
-
|
90 |
-
full_hf['audio_name'].resize((new_n,))
|
91 |
-
full_hf['audio_name'][n : new_n] = part_hf['audio_name'][:]
|
92 |
-
|
93 |
-
full_hf['target'].resize((new_n, classes_num))
|
94 |
-
full_hf['target'][n : new_n] = part_hf['target'][:]
|
95 |
-
|
96 |
-
full_hf['hdf5_path'].resize((new_n,))
|
97 |
-
full_hf['hdf5_path'][n : new_n] = part_hf['hdf5_path'][:]
|
98 |
-
|
99 |
-
full_hf['index_in_hdf5'].resize((new_n,))
|
100 |
-
full_hf['index_in_hdf5'][n : new_n] = part_hf['index_in_hdf5'][:]
|
101 |
-
|
102 |
-
print('Write combined full hdf5 to {}'.format(full_indexes_hdf5_path))
|
103 |
-
|
104 |
-
|
105 |
-
if __name__ == '__main__':
|
106 |
-
parser = argparse.ArgumentParser()
|
107 |
-
subparsers = parser.add_subparsers(dest='mode')
|
108 |
-
|
109 |
-
parser_create_indexes = subparsers.add_parser('create_indexes')
|
110 |
-
parser_create_indexes.add_argument('--waveforms_hdf5_path', type=str, required=True, help='Path of packed waveforms hdf5.')
|
111 |
-
parser_create_indexes.add_argument('--indexes_hdf5_path', type=str, required=True, help='Path to write out indexes hdf5.')
|
112 |
-
|
113 |
-
parser_combine_full_indexes = subparsers.add_parser('combine_full_indexes')
|
114 |
-
parser_combine_full_indexes.add_argument('--indexes_hdf5s_dir', type=str, required=True, help='Directory containing indexes hdf5s to be combined.')
|
115 |
-
parser_combine_full_indexes.add_argument('--full_indexes_hdf5_path', type=str, required=True, help='Path to write out full indexes hdf5 file.')
|
116 |
-
|
117 |
-
args = parser.parse_args()
|
118 |
-
|
119 |
-
if args.mode == 'create_indexes':
|
120 |
-
create_indexes(args)
|
121 |
-
|
122 |
-
elif args.mode == 'combine_full_indexes':
|
123 |
-
combine_full_indexes(args)
|
124 |
-
|
125 |
-
else:
|
126 |
-
raise Exception('Incorrect arguments!')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AILab-CVC/SEED-LLaMA/README-SEED-2.md
DELETED
@@ -1,184 +0,0 @@
|
|
1 |
-
# :chestnut: SEED Multimodal
|
2 |
-
|
3 |
-
[](https://ailab-cvc.github.io/seed/)
|
4 |
-
[](https://arxiv.org/abs/2307.08041)
|
5 |
-
[](https://arxiv.org/abs/2310.01218)
|
6 |
-
[](https://huggingface.co/AILab-CVC/SEED/tree/main)
|
7 |
-
[](https://10a4e7976e6fc2032c.gradio.live/)
|
8 |
-
|
9 |
-
|
10 |
-
**Powered by [CV Center, Tencent AI Lab](https://ailab-cvc.github.io), and [ARC Lab, Tencent PCG](https://github.com/TencentARC).**
|
11 |
-
|
12 |
-

|
13 |
-
|
14 |
-
The repository provides the official implementation of [SEED](https://ailab-cvc.github.io/seed/seed.html), [SEED-LLaMA](https://ailab-cvc.github.io/seed/seed_llama.html). For any inquiries, please email [[email protected]](mailto:[email protected]).
|
15 |
-
|
16 |
-
|
17 |
-
## News
|
18 |
-
|
19 |
-
**:beers: We are actively looking for self-motivated interns. Please feel free to reach out if you are interested. :beers:**
|
20 |
-
|
21 |
-
- [x] **2023-10-23** :hugs: We have optimized the memory overhead. Through 8bit quantization and dynamic loading, SEED-LLaMA 8b/14B can run on single **16GB/24GB** GPU.
|
22 |
-
- [x] **2023-10-23** :hugs: All model weights will be **downloaded automatically** when starting the demo.
|
23 |
-
- [x] **2023-10-20** :hugs: We release the [checkpoints](https://huggingface.co/AILab-CVC/SEED/tree/main) and code of the SEED-2 tokenizer, and SEED-LLaMA-8B/14B.
|
24 |
-
- [x] **2023-10-20** :space_invader: We release an online [gradio demo](https://10a4e7976e6fc2032c.gradio.live/), feel free to use it by yourself.
|
25 |
-
- [x] **2023-10-02** :paperclip: We release the technical report of SEED-LLaMA on [arXiv](https://arxiv.org/abs/2310.01218), which is empowered by the improved SEED-2 tokenizer.
|
26 |
-
- [x] **2023-07-29** :octocat: We release the checkpoint of the SEED tokenizer and its inference code. Check it out via [SEED-1](./SEED-1.md).
|
27 |
-
- [x] **2023-07-16** :paperclip: We release the technical report of SEED on [arXiv](https://arxiv.org/abs/2307.08041).
|
28 |
-
|
29 |
-
Stay tuned for the updates!
|
30 |
-
|
31 |
-
## Brief Introduction
|
32 |
-
|
33 |
-
It is recommended to check out our [papers](#citation) for technical details.
|
34 |
-
|
35 |
-
### :speech_balloon: What can SEED-LLaMA do?
|
36 |
-
|
37 |
-

|
38 |
-
|
39 |
-
**SEED-LLaMA** is capable of both multimodal comprehension and generation, exhibiting compositional emergent abilities such as multi-turn in-context multimodal generation, acting like your AI assistant. [[Compare to SOTA]](https://ailab-cvc.github.io/seed/seed_llama_compare.html) [[More examples on X]](https://twitter.com/ge_yixiao/status/1710509538238157069?s=20)
|
40 |
-
|
41 |
-
<!-- We present **SEED-LLaMA** by large-scale pretraining and instruction tuning on the interleaved textual and visual data, which demonstrates impressive performance on a broad range of multimodal comprehension and generation tasks. More importantly, SEED-LLaMA has exhibited **compositional emergent abilities** such as multi-turn in-context multimodal generation, acting like your **AI assistant**. -->
|
42 |
-
|
43 |
-
### :bulb: How does SEED-LLaMA achieve it?
|
44 |
-
|
45 |
-

|
46 |
-
|
47 |
-
The core of SEED-LLaMA is the tailored **SEED** tokenizer, which properly quantized visual signals into discrete visual tokens, capturing necessary semantics while being produced under 1D causal dependence. [[SEED-2 vs. SEED-1]](https://ailab-cvc.github.io/seed/seed_llama.html)
|
48 |
-
|
49 |
-
<!-- ### Compositional Emergent Ability
|
50 |
-
**Multi-turn in-context image and text generation.**
|
51 |
-

|
52 |
-

|
53 |
-
|
54 |
-
**Compositional image generation.**
|
55 |
-
 -->
|
56 |
-
|
57 |
-
<!-- ### SEED Tokenizer v2
|
58 |
-
In SEED tokenizer v2, the generation embedding is aligned with the **image embedding** (1 token) of [unCLIP SD](https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip), and can be decoded to realistic images with the unCLIP-SD-UNet. In SEED tokenizer v1, we train a visual tokenizer through aligning the **generation embeddings** with the text embeddings (77 tokens) of [SD](https://github.com/CompVis/stable-diffusion), and the generation embeddings can be decoded to images with the SD-UNet. The below figure shows the visual comparison of the reconstructed images between SEED tokenizer v2 (the third row) and SEED tokenizer v1 (the second row). We can observe that the images reconstructed by SEED tokenizer v2 can better preserve the visual information of the original images. The semantic representations of texts can not fully preserve the rich visual information of images.
|
59 |
-
 -->
|
60 |
-
|
61 |
-
<!-- ### Pretraining
|
62 |
-
We perform multimodal autoregressive pretraining on interleaved visual and textual data for SEED-LLaMA. Visual inputs are pre-processed into discrete tokens to conserve computational resources. Given the multimodal discrete sequence, a unified next-word-prediction objective is employed. During inference, visual codes are decoded into a realistic image by SEED De-Tokenization.
|
63 |
-
 -->
|
64 |
-
|
65 |
-
## Usage
|
66 |
-
|
67 |
-
### Dependencies
|
68 |
-
- Python >= 3.8 (Recommend to use [Anaconda](https://www.anaconda.com/download/#linux))
|
69 |
-
- [PyTorch >= 1.11.0](https://pytorch.org/)
|
70 |
-
- NVIDIA GPU + [CUDA](https://developer.nvidia.com/cuda-downloads)
|
71 |
-
|
72 |
-
### Installation
|
73 |
-
Clone the repo and install dependent packages
|
74 |
-
|
75 |
-
```bash
|
76 |
-
git clone https://github.com/AILab-CVC/SEED.git
|
77 |
-
cd SEED
|
78 |
-
pip install -r requirements.txt
|
79 |
-
```
|
80 |
-
|
81 |
-
|
82 |
-
### Model Weights
|
83 |
-
We release the pretrained SEED Tokenizer and De-Tokenizer, pretrained and instruction tuned SEED-LLaMA-8B and SEED-LLaMA-14B in [SEED Hugging Face](https://huggingface.co/AILab-CVC/SEED).
|
84 |
-
|
85 |
-
- Check the SEED tokenizer weights in [AILab-CVC/seed-tokenizer-2](https://huggingface.co/AILab-CVC/seed-tokenizer-2)
|
86 |
-
- Check the SEED LLaMA(8B) weights in [AILab-CVC/seed-llama-8b-sft](https://huggingface.co/AILab-CVC/seed-llama-8b-sft)
|
87 |
-
- Check the SEED LLaMA(14B) weights in [AILab-CVC/seed-llama-14b-sft](https://huggingface.co/AILab-CVC/seed-llama-14b-sft)
|
88 |
-
|
89 |
-
<!-- Please download the checkpoints and save under the folder `./pretrained`.
|
90 |
-
|
91 |
-
```bash
|
92 |
-
cd pretrained # SEED/pretrained
|
93 |
-
git lfs install
|
94 |
-
git clone https://huggingface.co/AILab-CVC/SEED
|
95 |
-
mv SEED/* ./
|
96 |
-
``` -->
|
97 |
-
|
98 |
-
The model weights of unCLIP SD-UNet which are used to reconstruct the image will be downloaded automatically.
|
99 |
-
|
100 |
-
<!-- To reconstruct the image from the SEED visual codes using unCLIP SD-UNet, please download the pretrained [unCLIP SD](https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip). -->
|
101 |
-
|
102 |
-
<!-- To reconstruct the image from the SEED visual codes using unCLIP SD-UNet, please download the pretrained [unCLIP SD](https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip).
|
103 |
-
Rename the checkpoint directory to **"diffusion_model"** and create a soft link to the "pretrained/seed_tokenizer" directory.
|
104 |
-
|
105 |
-
```bash
|
106 |
-
# SEED/pretrained
|
107 |
-
git lfs install
|
108 |
-
git clone https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip
|
109 |
-
mv stable-diffusion-2-1-unclip seed_tokenizer/diffusion_model
|
110 |
-
``` -->
|
111 |
-
|
112 |
-
|
113 |
-
### Inference for visual tokenization and de-tokenization
|
114 |
-
To discretize an image to 1D visual codes with causal dependency, and reconstruct the image from the visual codes using the off-the-shelf unCLIP SD-UNet:
|
115 |
-
|
116 |
-
```bash
|
117 |
-
cd .. # SEED/
|
118 |
-
python scripts/seed_tokenizer_inference.py
|
119 |
-
```
|
120 |
-
### Inference for SEED-LLaMA
|
121 |
-
Given that SEED-LLaMA-8B is based on Vicuna-7B and SEED-LLaMA-14B based on LLaMA2-Chat-13B, we use Vicuna-7B's ("USER:", "ASSISTANT:") and LLaMA2-Chat-13B's ([INST] [/INST]) prompts for respective instruction tuning.
|
122 |
-
|
123 |
-
```bash
|
124 |
-
# Inference for SEED-LLaMA-8B
|
125 |
-
python scripts/seed_llama_inference_8B.py
|
126 |
-
```
|
127 |
-
|
128 |
-
```bash
|
129 |
-
# Inference for SEED-LLaMA-14B
|
130 |
-
python scripts/seed_llama_inference_14B.py
|
131 |
-
```
|
132 |
-
|
133 |
-
|
134 |
-
### Launching Gradio Demo of SEED-LLaMA-14B Locally
|
135 |
-
1. Building the local demo of SEED-LLaMA-14B currently requires **single 24GB** GPU.
|
136 |
-
|
137 |
-
```bash
|
138 |
-
# SEED/
|
139 |
-
# in first terminal
|
140 |
-
bash scripts/start_backend_14b.sh
|
141 |
-
# in second terminal
|
142 |
-
bash scripts/start_frontend_14b.sh
|
143 |
-
```
|
144 |
-
|
145 |
-
2. Building the local demo of SEED-LLaMA-8B currently requires **single 16GB** GPU.
|
146 |
-
|
147 |
-
```bash
|
148 |
-
# SEED/
|
149 |
-
# in first terminal
|
150 |
-
bash scripts/start_backend_8b.sh
|
151 |
-
# in second terminal
|
152 |
-
bash scripts/start_frontend_8b.sh
|
153 |
-
```
|
154 |
-
|
155 |
-
Then the demo can be accessed through http://127.0.0.1:80
|
156 |
-
|
157 |
-
## Citation
|
158 |
-
If you find the work helpful, please consider citing:
|
159 |
-
```bash
|
160 |
-
@article{ge2023making,
|
161 |
-
title={Making LLaMA SEE and Draw with SEED Tokenizer},
|
162 |
-
author={Ge, Yuying and Zhao, Sijie and Zeng, Ziyun and Ge, Yixiao and Li, Chen and Wang, Xintao and Shan, Ying},
|
163 |
-
journal={arXiv preprint arXiv:2310.01218},
|
164 |
-
year={2023}
|
165 |
-
}
|
166 |
-
|
167 |
-
@article{ge2023planting,
|
168 |
-
title={Planting a seed of vision in large language model},
|
169 |
-
author={Ge, Yuying and Ge, Yixiao and Zeng, Ziyun and Wang, Xintao and Shan, Ying},
|
170 |
-
journal={arXiv preprint arXiv:2307.08041},
|
171 |
-
year={2023}
|
172 |
-
}
|
173 |
-
```
|
174 |
-
|
175 |
-
The project is still in progress.
|
176 |
-
|
177 |
-
## License
|
178 |
-
`SEED` is released under [Apache License Version 2.0](License.txt).
|
179 |
-
|
180 |
-
`SEED-LLaMA` is released under the original [License](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) of [LLaMA2](https://huggingface.co/meta-llama/Llama-2-13b-chat-hf).
|
181 |
-
|
182 |
-
## Acknowledgement
|
183 |
-
We thank the great work from [unCLIP SD](https://huggingface.co/stabilityai/stable-diffusion-2-1-unclip) and [BLIP2](https://github.com/salesforce/LAVIS).
|
184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/ASJMO/freegpt/g4f/Provider/Providers/H2o.py
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
from requests import Session
|
2 |
-
from uuid import uuid4
|
3 |
-
from json import loads
|
4 |
-
import os
|
5 |
-
import json
|
6 |
-
import requests
|
7 |
-
from ...typing import sha256, Dict, get_type_hints
|
8 |
-
|
9 |
-
url = 'https://gpt-gm.h2o.ai'
|
10 |
-
model = ['falcon-40b', 'falcon-7b', 'llama-13b']
|
11 |
-
supports_stream = True
|
12 |
-
needs_auth = False
|
13 |
-
|
14 |
-
models = {
|
15 |
-
'falcon-7b': 'h2oai/h2ogpt-gm-oasst1-en-2048-falcon-7b-v3',
|
16 |
-
'falcon-40b': 'h2oai/h2ogpt-gm-oasst1-en-2048-falcon-40b-v1',
|
17 |
-
'llama-13b': 'h2oai/h2ogpt-gm-oasst1-en-2048-open-llama-13b'
|
18 |
-
}
|
19 |
-
|
20 |
-
def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
21 |
-
conversation = 'instruction: this is a conversation beween, a user and an AI assistant, respond to the latest message, referring to the conversation if needed\n'
|
22 |
-
for message in messages:
|
23 |
-
conversation += '%s: %s\n' % (message['role'], message['content'])
|
24 |
-
conversation += 'assistant:'
|
25 |
-
|
26 |
-
client = Session()
|
27 |
-
client.headers = {
|
28 |
-
'authority': 'gpt-gm.h2o.ai',
|
29 |
-
'origin': 'https://gpt-gm.h2o.ai',
|
30 |
-
'referer': 'https://gpt-gm.h2o.ai/',
|
31 |
-
'sec-ch-ua': '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
|
32 |
-
'sec-ch-ua-mobile': '?0',
|
33 |
-
'sec-ch-ua-platform': '"Windows"',
|
34 |
-
'sec-fetch-dest': 'document',
|
35 |
-
'sec-fetch-mode': 'navigate',
|
36 |
-
'sec-fetch-site': 'same-origin',
|
37 |
-
'sec-fetch-user': '?1',
|
38 |
-
'upgrade-insecure-requests': '1',
|
39 |
-
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
|
40 |
-
}
|
41 |
-
|
42 |
-
client.get('https://gpt-gm.h2o.ai/')
|
43 |
-
response = client.post('https://gpt-gm.h2o.ai/settings', data={
|
44 |
-
'ethicsModalAccepted': 'true',
|
45 |
-
'shareConversationsWithModelAuthors': 'true',
|
46 |
-
'ethicsModalAcceptedAt': '',
|
47 |
-
'activeModel': 'h2oai/h2ogpt-gm-oasst1-en-2048-falcon-40b-v1',
|
48 |
-
'searchEnabled': 'true',
|
49 |
-
})
|
50 |
-
|
51 |
-
headers = {
|
52 |
-
'authority': 'gpt-gm.h2o.ai',
|
53 |
-
'accept': '*/*',
|
54 |
-
'accept-language': 'en,fr-FR;q=0.9,fr;q=0.8,es-ES;q=0.7,es;q=0.6,en-US;q=0.5,am;q=0.4,de;q=0.3',
|
55 |
-
'origin': 'https://gpt-gm.h2o.ai',
|
56 |
-
'referer': 'https://gpt-gm.h2o.ai/',
|
57 |
-
'sec-ch-ua': '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
|
58 |
-
'sec-ch-ua-mobile': '?0',
|
59 |
-
'sec-ch-ua-platform': '"Windows"',
|
60 |
-
'sec-fetch-dest': 'empty',
|
61 |
-
'sec-fetch-mode': 'cors',
|
62 |
-
'sec-fetch-site': 'same-origin',
|
63 |
-
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
|
64 |
-
}
|
65 |
-
|
66 |
-
json_data = {
|
67 |
-
'model': models[model]
|
68 |
-
}
|
69 |
-
|
70 |
-
response = client.post('https://gpt-gm.h2o.ai/conversation',
|
71 |
-
headers=headers, json=json_data)
|
72 |
-
conversationId = response.json()['conversationId']
|
73 |
-
|
74 |
-
|
75 |
-
completion = client.post(f'https://gpt-gm.h2o.ai/conversation/{conversationId}', stream=True, json = {
|
76 |
-
'inputs': conversation,
|
77 |
-
'parameters': {
|
78 |
-
'temperature': kwargs.get('temperature', 0.4),
|
79 |
-
'truncate': kwargs.get('truncate', 2048),
|
80 |
-
'max_new_tokens': kwargs.get('max_new_tokens', 1024),
|
81 |
-
'do_sample': kwargs.get('do_sample', True),
|
82 |
-
'repetition_penalty': kwargs.get('repetition_penalty', 1.2),
|
83 |
-
'return_full_text': kwargs.get('return_full_text', False)
|
84 |
-
},
|
85 |
-
'stream': True,
|
86 |
-
'options': {
|
87 |
-
'id': kwargs.get('id', str(uuid4())),
|
88 |
-
'response_id': kwargs.get('response_id', str(uuid4())),
|
89 |
-
'is_retry': False,
|
90 |
-
'use_cache': False,
|
91 |
-
'web_search_id': ''
|
92 |
-
}
|
93 |
-
})
|
94 |
-
|
95 |
-
for line in completion.iter_lines():
|
96 |
-
if b'data' in line:
|
97 |
-
line = loads(line.decode('utf-8').replace('data:', ''))
|
98 |
-
token = line['token']['text']
|
99 |
-
|
100 |
-
if token == '<|endoftext|>':
|
101 |
-
break
|
102 |
-
else:
|
103 |
-
yield (token)
|
104 |
-
|
105 |
-
params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + \
|
106 |
-
'(%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/ATang0729/Forecast4Muses/Model/Model6/Model6_0_ClothesDetection/mmyolo/configs/yolov5/yolov5_l-v61_syncbn_fast_8xb16-300e_coco.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
_base_ = './yolov5_m-v61_syncbn_fast_8xb16-300e_coco.py'
|
2 |
-
|
3 |
-
deepen_factor = 1.0
|
4 |
-
widen_factor = 1.0
|
5 |
-
|
6 |
-
model = dict(
|
7 |
-
backbone=dict(
|
8 |
-
deepen_factor=deepen_factor,
|
9 |
-
widen_factor=widen_factor,
|
10 |
-
),
|
11 |
-
neck=dict(
|
12 |
-
deepen_factor=deepen_factor,
|
13 |
-
widen_factor=widen_factor,
|
14 |
-
),
|
15 |
-
bbox_head=dict(head_module=dict(widen_factor=widen_factor)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Providers/GetGpt.py
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import json
|
3 |
-
import uuid
|
4 |
-
import requests
|
5 |
-
from Crypto.Cipher import AES
|
6 |
-
from ...typing import sha256, Dict, get_type_hints
|
7 |
-
|
8 |
-
url = 'https://chat.getgpt.world/'
|
9 |
-
model = ['gpt-3.5-turbo']
|
10 |
-
supports_stream = True
|
11 |
-
needs_auth = False
|
12 |
-
|
13 |
-
def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
14 |
-
def encrypt(e):
|
15 |
-
t = os.urandom(8).hex().encode('utf-8')
|
16 |
-
n = os.urandom(8).hex().encode('utf-8')
|
17 |
-
r = e.encode('utf-8')
|
18 |
-
cipher = AES.new(t, AES.MODE_CBC, n)
|
19 |
-
ciphertext = cipher.encrypt(pad_data(r))
|
20 |
-
return ciphertext.hex() + t.decode('utf-8') + n.decode('utf-8')
|
21 |
-
|
22 |
-
def pad_data(data: bytes) -> bytes:
|
23 |
-
block_size = AES.block_size
|
24 |
-
padding_size = block_size - len(data) % block_size
|
25 |
-
padding = bytes([padding_size] * padding_size)
|
26 |
-
return data + padding
|
27 |
-
|
28 |
-
headers = {
|
29 |
-
'Content-Type': 'application/json',
|
30 |
-
'Referer': 'https://chat.getgpt.world/',
|
31 |
-
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
|
32 |
-
}
|
33 |
-
|
34 |
-
data = json.dumps({
|
35 |
-
'messages': messages,
|
36 |
-
'frequency_penalty': kwargs.get('frequency_penalty', 0),
|
37 |
-
'max_tokens': kwargs.get('max_tokens', 4000),
|
38 |
-
'model': 'gpt-3.5-turbo',
|
39 |
-
'presence_penalty': kwargs.get('presence_penalty', 0),
|
40 |
-
'temperature': kwargs.get('temperature', 1),
|
41 |
-
'top_p': kwargs.get('top_p', 1),
|
42 |
-
'stream': True,
|
43 |
-
'uuid': str(uuid.uuid4())
|
44 |
-
})
|
45 |
-
|
46 |
-
res = requests.post('https://chat.getgpt.world/api/chat/stream',
|
47 |
-
headers=headers, json={'signature': encrypt(data)}, stream=True)
|
48 |
-
|
49 |
-
for line in res.iter_lines():
|
50 |
-
if b'content' in line:
|
51 |
-
line_json = json.loads(line.decode('utf-8').split('data: ')[1])
|
52 |
-
yield (line_json['choices'][0]['delta']['content'])
|
53 |
-
|
54 |
-
|
55 |
-
params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + \
|
56 |
-
'(%s)' % ', '.join(
|
57 |
-
[f'{name}: {get_type_hints(_create_completion)[name].__name__}' for name in _create_completion.__code__.co_varnames[:_create_completion.__code__.co_argcount]])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT/g4f/Provider/Vitalentum.py
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
|
3 |
-
import json
|
4 |
-
from aiohttp import ClientSession
|
5 |
-
|
6 |
-
from .base_provider import AsyncGeneratorProvider
|
7 |
-
from ..typing import AsyncResult, Messages
|
8 |
-
|
9 |
-
class Vitalentum(AsyncGeneratorProvider):
|
10 |
-
url = "https://app.vitalentum.io"
|
11 |
-
working = True
|
12 |
-
supports_gpt_35_turbo = True
|
13 |
-
|
14 |
-
|
15 |
-
@classmethod
|
16 |
-
async def create_async_generator(
|
17 |
-
cls,
|
18 |
-
model: str,
|
19 |
-
messages: Messages,
|
20 |
-
proxy: str = None,
|
21 |
-
**kwargs
|
22 |
-
) -> AsyncResult:
|
23 |
-
headers = {
|
24 |
-
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
|
25 |
-
"Accept" : "text/event-stream",
|
26 |
-
"Accept-language" : "de,en-US;q=0.7,en;q=0.3",
|
27 |
-
"Origin" : cls.url,
|
28 |
-
"Referer" : cls.url + "/",
|
29 |
-
"Sec-Fetch-Dest" : "empty",
|
30 |
-
"Sec-Fetch-Mode" : "cors",
|
31 |
-
"Sec-Fetch-Site" : "same-origin",
|
32 |
-
}
|
33 |
-
conversation = json.dumps({"history": [{
|
34 |
-
"speaker": "human" if message["role"] == "user" else "bot",
|
35 |
-
"text": message["content"],
|
36 |
-
} for message in messages]})
|
37 |
-
data = {
|
38 |
-
"conversation": conversation,
|
39 |
-
"temperature": 0.7,
|
40 |
-
**kwargs
|
41 |
-
}
|
42 |
-
async with ClientSession(
|
43 |
-
headers=headers
|
44 |
-
) as session:
|
45 |
-
async with session.post(cls.url + "/api/converse-edge", json=data, proxy=proxy) as response:
|
46 |
-
response.raise_for_status()
|
47 |
-
async for line in response.content:
|
48 |
-
line = line.decode()
|
49 |
-
if line.startswith("data: "):
|
50 |
-
if line.startswith("data: [DONE]"):
|
51 |
-
break
|
52 |
-
line = json.loads(line[6:-1])
|
53 |
-
content = line["choices"][0]["delta"].get("content")
|
54 |
-
if content:
|
55 |
-
yield content
|
56 |
-
|
57 |
-
|
58 |
-
@classmethod
|
59 |
-
@property
|
60 |
-
def params(cls):
|
61 |
-
params = [
|
62 |
-
("model", "str"),
|
63 |
-
("messages", "list[dict[str, str]]"),
|
64 |
-
("stream", "bool"),
|
65 |
-
("proxy", "str"),
|
66 |
-
("temperature", "float"),
|
67 |
-
]
|
68 |
-
param = ", ".join([": ".join(p) for p in params])
|
69 |
-
return f"g4f.provider.{cls.__name__} supports: ({param})"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AdVisual/MaskCut/README.md
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: MaskCut
|
3 |
-
emoji: 🌍
|
4 |
-
colorFrom: pink
|
5 |
-
colorTo: pink
|
6 |
-
sdk: docker
|
7 |
-
sdk_version: 3.16.2
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
duplicated_from: facebook/MaskCut
|
12 |
-
---
|
13 |
-
|
14 |
-
Check out the configuration reference at [Spaces Config Reference](https://huggingface.co/docs/hub/)spaces-config-reference
|
15 |
-
|
16 |
-
## Development
|
17 |
-
|
18 |
-
To install the dependencies, run:
|
19 |
-
|
20 |
-
```bash
|
21 |
-
git clone --recursive https://huggingface.co/spaces/AdVisual/MaskCut
|
22 |
-
cd MaskCut
|
23 |
-
pip install -r requirements.txt
|
24 |
-
# Install the packages in CutLER
|
25 |
-
pip install -r CutLER/requirements.txt
|
26 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/box/Factory.js
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
import Box from './Box.js';
|
2 |
-
import ObjectFactory from '../ObjectFactory.js';
|
3 |
-
import SetValue from '../../../plugins/utils/object/SetValue.js';
|
4 |
-
|
5 |
-
ObjectFactory.register('box', function (config) {
|
6 |
-
var gameObject = new Box(this.scene, config);
|
7 |
-
this.scene.add.existing(gameObject);
|
8 |
-
return gameObject;
|
9 |
-
});
|
10 |
-
|
11 |
-
SetValue(window, 'RexPlugins.Spinner.Box', Box);
|
12 |
-
|
13 |
-
export default Box;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlexZou/Deploy_Restoration/utils/utils_logger.py
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
import sys
|
3 |
-
import datetime
|
4 |
-
import logging
|
5 |
-
|
6 |
-
|
7 |
-
'''
|
8 |
-
modified by Kai Zhang (github: https://github.com/cszn)
|
9 |
-
03/03/2019
|
10 |
-
https://github.com/xinntao/BasicSR
|
11 |
-
'''
|
12 |
-
|
13 |
-
|
14 |
-
def log(*args, **kwargs):
|
15 |
-
print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S:"), *args, **kwargs)
|
16 |
-
|
17 |
-
|
18 |
-
'''
|
19 |
-
# ===============================
|
20 |
-
# logger
|
21 |
-
# logger_name = None = 'base' ???
|
22 |
-
# ===============================
|
23 |
-
'''
|
24 |
-
|
25 |
-
|
26 |
-
def logger_info(logger_name, log_path='default_logger.log'):
|
27 |
-
''' set up logger
|
28 |
-
modified by Kai Zhang (github: https://github.com/cszn)
|
29 |
-
'''
|
30 |
-
log = logging.getLogger(logger_name)
|
31 |
-
if log.hasHandlers():
|
32 |
-
print('LogHandlers exist!')
|
33 |
-
else:
|
34 |
-
print('LogHandlers setup!')
|
35 |
-
level = logging.INFO
|
36 |
-
formatter = logging.Formatter('%(asctime)s.%(msecs)03d : %(message)s', datefmt='%y-%m-%d %H:%M:%S')
|
37 |
-
fh = logging.FileHandler(log_path, mode='a')
|
38 |
-
fh.setFormatter(formatter)
|
39 |
-
log.setLevel(level)
|
40 |
-
log.addHandler(fh)
|
41 |
-
# print(len(log.handlers))
|
42 |
-
|
43 |
-
sh = logging.StreamHandler()
|
44 |
-
sh.setFormatter(formatter)
|
45 |
-
log.addHandler(sh)
|
46 |
-
|
47 |
-
|
48 |
-
'''
|
49 |
-
# ===============================
|
50 |
-
# print to file and std_out simultaneously
|
51 |
-
# ===============================
|
52 |
-
'''
|
53 |
-
|
54 |
-
|
55 |
-
class logger_print(object):
|
56 |
-
def __init__(self, log_path="default.log"):
|
57 |
-
self.terminal = sys.stdout
|
58 |
-
self.log = open(log_path, 'a')
|
59 |
-
|
60 |
-
def write(self, message):
|
61 |
-
self.terminal.write(message)
|
62 |
-
self.log.write(message) # write the message
|
63 |
-
|
64 |
-
def flush(self):
|
65 |
-
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AnTo2209/3D_Zeroshot_Neural_Style_Transfer/src/utils/loss.py
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import torch.nn as nn
|
3 |
-
|
4 |
-
class TVLoss(nn.Module):
|
5 |
-
def __init__(self):
|
6 |
-
super(TVLoss,self).__init__()
|
7 |
-
|
8 |
-
def forward(self,x):
|
9 |
-
batch_size = x.size()[0]
|
10 |
-
h_x = x.size()[2]
|
11 |
-
w_x = x.size()[3]
|
12 |
-
|
13 |
-
if w_x==1:
|
14 |
-
count_h = self._tensor_size(x[:,:,1:,:])
|
15 |
-
h_tv = torch.pow((x[:,:,1:,:]-x[:,:,:h_x-1,:]),2).sum()
|
16 |
-
return 2*(h_tv/count_h)/batch_size
|
17 |
-
|
18 |
-
if h_x==1:
|
19 |
-
count_w = self._tensor_size(x[:,:,:,1:])
|
20 |
-
w_tv = torch.pow((x[:,:,:,1:]-x[:,:,:,:w_x-1]),2).sum()
|
21 |
-
return 2*(w_tv/count_w)/batch_size
|
22 |
-
|
23 |
-
count_h = self._tensor_size(x[:,:,1:,:])
|
24 |
-
count_w = self._tensor_size(x[:,:,:,1:])
|
25 |
-
h_tv = torch.pow((x[:,:,1:,:]-x[:,:,:h_x-1,:]),2).sum()
|
26 |
-
w_tv = torch.pow((x[:,:,:,1:]-x[:,:,:,:w_x-1]),2).sum()
|
27 |
-
return 2*(h_tv/count_h+w_tv/count_w)/batch_size
|
28 |
-
|
29 |
-
def _tensor_size(self,t):
|
30 |
-
return t.size()[1]*t.size()[2]*t.size()[3]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/api/pipelines/auto_pipeline.md
DELETED
@@ -1,68 +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 |
-
# AutoPipeline
|
14 |
-
|
15 |
-
In many cases, one checkpoint can be used for multiple tasks. For example, you may be able to use the same checkpoint for Text-to-Image, Image-to-Image, and Inpainting. However, you'll need to know the pipeline class names linked to your checkpoint.
|
16 |
-
|
17 |
-
AutoPipeline is designed to make it easy for you to use multiple pipelines in your workflow. We currently provide 3 AutoPipeline classes to perform three different tasks, i.e. [`AutoPipelineForText2Image`], [`AutoPipelineForImage2Image`], and [`AutoPipelineForInpainting`]. You'll need to choose the AutoPipeline class based on the task you want to perform and use it to automatically retrieve the relevant pipeline given the name/path to the pre-trained weights.
|
18 |
-
|
19 |
-
For example, to perform Image-to-Image with the SD1.5 checkpoint, you can do
|
20 |
-
|
21 |
-
```python
|
22 |
-
from diffusers import PipelineForImageToImage
|
23 |
-
|
24 |
-
pipe_i2i = PipelineForImageoImage.from_pretrained("runwayml/stable-diffusion-v1-5")
|
25 |
-
```
|
26 |
-
|
27 |
-
It will also help you switch between tasks seamlessly using the same checkpoint without reallocating additional memory. For example, to re-use the Image-to-Image pipeline we just created for inpainting, you can do
|
28 |
-
|
29 |
-
```python
|
30 |
-
from diffusers import PipelineForInpainting
|
31 |
-
|
32 |
-
pipe_inpaint = AutoPipelineForInpainting.from_pipe(pipe_i2i)
|
33 |
-
```
|
34 |
-
All the components will be transferred to the inpainting pipeline with zero cost.
|
35 |
-
|
36 |
-
|
37 |
-
Currently AutoPipeline support the Text-to-Image, Image-to-Image, and Inpainting tasks for below diffusion models:
|
38 |
-
- [stable Diffusion](./stable_diffusion)
|
39 |
-
- [Stable Diffusion Controlnet](./api/pipelines/controlnet)
|
40 |
-
- [Stable Diffusion XL](./stable_diffusion/stable_diffusion_xl)
|
41 |
-
- [IF](./if)
|
42 |
-
- [Kandinsky](./kandinsky)
|
43 |
-
- [Kandinsky 2.2](./kandinsky)
|
44 |
-
|
45 |
-
|
46 |
-
## AutoPipelineForText2Image
|
47 |
-
|
48 |
-
[[autodoc]] AutoPipelineForText2Image
|
49 |
-
- all
|
50 |
-
- from_pretrained
|
51 |
-
- from_pipe
|
52 |
-
|
53 |
-
|
54 |
-
## AutoPipelineForImage2Image
|
55 |
-
|
56 |
-
[[autodoc]] AutoPipelineForImage2Image
|
57 |
-
- all
|
58 |
-
- from_pretrained
|
59 |
-
- from_pipe
|
60 |
-
|
61 |
-
## AutoPipelineForInpainting
|
62 |
-
|
63 |
-
[[autodoc]] AutoPipelineForInpainting
|
64 |
-
- all
|
65 |
-
- from_pretrained
|
66 |
-
- from_pipe
|
67 |
-
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/conceptual/contribution.md
DELETED
@@ -1,498 +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 |
-
# How to contribute to Diffusers 🧨
|
14 |
-
|
15 |
-
We ❤️ contributions from the open-source community! Everyone is welcome, and all types of participation –not just code– are valued and appreciated. Answering questions, helping others, reaching out, and improving the documentation are all immensely valuable to the community, so don't be afraid and get involved if you're up for it!
|
16 |
-
|
17 |
-
Everyone is encouraged to start by saying 👋 in our public Discord channel. We discuss the latest trends in diffusion models, ask questions, show off personal projects, help each other with contributions, or just hang out ☕. <a href="https://Discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white"></a>
|
18 |
-
|
19 |
-
Whichever way you choose to contribute, we strive to be part of an open, welcoming, and kind community. Please, read our [code of conduct](https://github.com/huggingface/diffusers/blob/main/CODE_OF_CONDUCT.md) and be mindful to respect it during your interactions. We also recommend you become familiar with the [ethical guidelines](https://huggingface.co/docs/diffusers/conceptual/ethical_guidelines) that guide our project and ask you to adhere to the same principles of transparency and responsibility.
|
20 |
-
|
21 |
-
We enormously value feedback from the community, so please do not be afraid to speak up if you believe you have valuable feedback that can help improve the library - every message, comment, issue, and pull request (PR) is read and considered.
|
22 |
-
|
23 |
-
## Overview
|
24 |
-
|
25 |
-
You can contribute in many ways ranging from answering questions on issues to adding new diffusion models to
|
26 |
-
the core library.
|
27 |
-
|
28 |
-
In the following, we give an overview of different ways to contribute, ranked by difficulty in ascending order. All of them are valuable to the community.
|
29 |
-
|
30 |
-
* 1. Asking and answering questions on [the Diffusers discussion forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers) or on [Discord](https://discord.gg/G7tWnz98XR).
|
31 |
-
* 2. Opening new issues on [the GitHub Issues tab](https://github.com/huggingface/diffusers/issues/new/choose)
|
32 |
-
* 3. Answering issues on [the GitHub Issues tab](https://github.com/huggingface/diffusers/issues)
|
33 |
-
* 4. Fix a simple issue, marked by the "Good first issue" label, see [here](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22).
|
34 |
-
* 5. Contribute to the [documentation](https://github.com/huggingface/diffusers/tree/main/docs/source).
|
35 |
-
* 6. Contribute a [Community Pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3Acommunity-examples)
|
36 |
-
* 7. Contribute to the [examples](https://github.com/huggingface/diffusers/tree/main/examples).
|
37 |
-
* 8. Fix a more difficult issue, marked by the "Good second issue" label, see [here](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+second+issue%22).
|
38 |
-
* 9. Add a new pipeline, model, or scheduler, see ["New Pipeline/Model"](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) and ["New scheduler"](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22) issues. For this contribution, please have a look at [Design Philosophy](https://github.com/huggingface/diffusers/blob/main/PHILOSOPHY.md).
|
39 |
-
|
40 |
-
As said before, **all contributions are valuable to the community**.
|
41 |
-
In the following, we will explain each contribution a bit more in detail.
|
42 |
-
|
43 |
-
For all contributions 4.-9. you will need to open a PR. It is explained in detail how to do so in [Opening a pull requst](#how-to-open-a-pr)
|
44 |
-
|
45 |
-
### 1. Asking and answering questions on the Diffusers discussion forum or on the Diffusers Discord
|
46 |
-
|
47 |
-
Any question or comment related to the Diffusers library can be asked on the [discussion forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/) or on [Discord](https://discord.gg/G7tWnz98XR). Such questions and comments include (but are not limited to):
|
48 |
-
- Reports of training or inference experiments in an attempt to share knowledge
|
49 |
-
- Presentation of personal projects
|
50 |
-
- Questions to non-official training examples
|
51 |
-
- Project proposals
|
52 |
-
- General feedback
|
53 |
-
- Paper summaries
|
54 |
-
- Asking for help on personal projects that build on top of the Diffusers library
|
55 |
-
- General questions
|
56 |
-
- Ethical questions regarding diffusion models
|
57 |
-
- ...
|
58 |
-
|
59 |
-
Every question that is asked on the forum or on Discord actively encourages the community to publicly
|
60 |
-
share knowledge and might very well help a beginner in the future that has the same question you're
|
61 |
-
having. Please do pose any questions you might have.
|
62 |
-
In the same spirit, you are of immense help to the community by answering such questions because this way you are publicly documenting knowledge for everybody to learn from.
|
63 |
-
|
64 |
-
**Please** keep in mind that the more effort you put into asking or answering a question, the higher
|
65 |
-
the quality of the publicly documented knowledge. In the same way, well-posed and well-answered questions create a high-quality knowledge database accessible to everybody, while badly posed questions or answers reduce the overall quality of the public knowledge database.
|
66 |
-
In short, a high quality question or answer is *precise*, *concise*, *relevant*, *easy-to-understand*, *accesible*, and *well-formated/well-posed*. For more information, please have a look through the [How to write a good issue](#how-to-write-a-good-issue) section.
|
67 |
-
|
68 |
-
**NOTE about channels**:
|
69 |
-
[*The forum*](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) is much better indexed by search engines, such as Google. Posts are ranked by popularity rather than chronologically. Hence, it's easier to look up questions and answers that we posted some time ago.
|
70 |
-
In addition, questions and answers posted in the forum can easily be linked to.
|
71 |
-
In contrast, *Discord* has a chat-like format that invites fast back-and-forth communication.
|
72 |
-
While it will most likely take less time for you to get an answer to your question on Discord, your
|
73 |
-
question won't be visible anymore over time. Also, it's much harder to find information that was posted a while back on Discord. We therefore strongly recommend using the forum for high-quality questions and answers in an attempt to create long-lasting knowledge for the community. If discussions on Discord lead to very interesting answers and conclusions, we recommend posting the results on the forum to make the information more available for future readers.
|
74 |
-
|
75 |
-
### 2. Opening new issues on the GitHub issues tab
|
76 |
-
|
77 |
-
The 🧨 Diffusers library is robust and reliable thanks to the users who notify us of
|
78 |
-
the problems they encounter. So thank you for reporting an issue.
|
79 |
-
|
80 |
-
Remember, GitHub issues are reserved for technical questions directly related to the Diffusers library, bug reports, feature requests, or feedback on the library design.
|
81 |
-
|
82 |
-
In a nutshell, this means that everything that is **not** related to the **code of the Diffusers library** (including the documentation) should **not** be asked on GitHub, but rather on either the [forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) or [Discord](https://discord.gg/G7tWnz98XR).
|
83 |
-
|
84 |
-
**Please consider the following guidelines when opening a new issue**:
|
85 |
-
- Make sure you have searched whether your issue has already been asked before (use the search bar on GitHub under Issues).
|
86 |
-
- Please never report a new issue on another (related) issue. If another issue is highly related, please
|
87 |
-
open a new issue nevertheless and link to the related issue.
|
88 |
-
- Make sure your issue is written in English. Please use one of the great, free online translation services, such as [DeepL](https://www.deepl.com/translator) to translate from your native language to English if you are not comfortable in English.
|
89 |
-
- Check whether your issue might be solved by updating to the newest Diffusers version. Before posting your issue, please make sure that `python -c "import diffusers; print(diffusers.__version__)"` is higher or matches the latest Diffusers version.
|
90 |
-
- Remember that the more effort you put into opening a new issue, the higher the quality of your answer will be and the better the overall quality of the Diffusers issues.
|
91 |
-
|
92 |
-
New issues usually include the following.
|
93 |
-
|
94 |
-
#### 2.1. Reproducible, minimal bug reports.
|
95 |
-
|
96 |
-
A bug report should always have a reproducible code snippet and be as minimal and concise as possible.
|
97 |
-
This means in more detail:
|
98 |
-
- Narrow the bug down as much as you can, **do not just dump your whole code file**
|
99 |
-
- Format your code
|
100 |
-
- Do not include any external libraries except for Diffusers depending on them.
|
101 |
-
- **Always** provide all necessary information about your environment; for this, you can run: `diffusers-cli env` in your shell and copy-paste the displayed information to the issue.
|
102 |
-
- Explain the issue. If the reader doesn't know what the issue is and why it is an issue, she cannot solve it.
|
103 |
-
- **Always** make sure the reader can reproduce your issue with as little effort as possible. If your code snippet cannot be run because of missing libraries or undefined variables, the reader cannot help you. Make sure your reproducible code snippet is as minimal as possible and can be copy-pasted into a simple Python shell.
|
104 |
-
- If in order to reproduce your issue a model and/or dataset is required, make sure the reader has access to that model or dataset. You can always upload your model or dataset to the [Hub](https://huggingface.co) to make it easily downloadable. Try to keep your model and dataset as small as possible, to make the reproduction of your issue as effortless as possible.
|
105 |
-
|
106 |
-
For more information, please have a look through the [How to write a good issue](#how-to-write-a-good-issue) section.
|
107 |
-
|
108 |
-
You can open a bug report [here](https://github.com/huggingface/diffusers/issues/new/choose).
|
109 |
-
|
110 |
-
#### 2.2. Feature requests.
|
111 |
-
|
112 |
-
A world-class feature request addresses the following points:
|
113 |
-
|
114 |
-
1. Motivation first:
|
115 |
-
* Is it related to a problem/frustration with the library? If so, please explain
|
116 |
-
why. Providing a code snippet that demonstrates the problem is best.
|
117 |
-
* Is it related to something you would need for a project? We'd love to hear
|
118 |
-
about it!
|
119 |
-
* Is it something you worked on and think could benefit the community?
|
120 |
-
Awesome! Tell us what problem it solved for you.
|
121 |
-
2. Write a *full paragraph* describing the feature;
|
122 |
-
3. Provide a **code snippet** that demonstrates its future use;
|
123 |
-
4. In case this is related to a paper, please attach a link;
|
124 |
-
5. Attach any additional information (drawings, screenshots, etc.) you think may help.
|
125 |
-
|
126 |
-
You can open a feature request [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feature_request.md&title=).
|
127 |
-
|
128 |
-
#### 2.3 Feedback.
|
129 |
-
|
130 |
-
Feedback about the library design and why it is good or not good helps the core maintainers immensely to build a user-friendly library. To understand the philosophy behind the current design philosophy, please have a look [here](https://huggingface.co/docs/diffusers/conceptual/philosophy). If you feel like a certain design choice does not fit with the current design philosophy, please explain why and how it should be changed. If a certain design choice follows the design philosophy too much, hence restricting use cases, explain why and how it should be changed.
|
131 |
-
If a certain design choice is very useful for you, please also leave a note as this is great feedback for future design decisions.
|
132 |
-
|
133 |
-
You can open an issue about feedback [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=).
|
134 |
-
|
135 |
-
#### 2.4 Technical questions.
|
136 |
-
|
137 |
-
Technical questions are mainly about why certain code of the library was written in a certain way, or what a certain part of the code does. Please make sure to link to the code in question and please provide detail on
|
138 |
-
why this part of the code is difficult to understand.
|
139 |
-
|
140 |
-
You can open an issue about a technical question [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=bug&template=bug-report.yml).
|
141 |
-
|
142 |
-
#### 2.5 Proposal to add a new model, scheduler, or pipeline.
|
143 |
-
|
144 |
-
If the diffusion model community released a new model, pipeline, or scheduler that you would like to see in the Diffusers library, please provide the following information:
|
145 |
-
|
146 |
-
* Short description of the diffusion pipeline, model, or scheduler and link to the paper or public release.
|
147 |
-
* Link to any of its open-source implementation.
|
148 |
-
* Link to the model weights if they are available.
|
149 |
-
|
150 |
-
If you are willing to contribute to the model yourself, let us know so we can best guide you. Also, don't forget
|
151 |
-
to tag the original author of the component (model, scheduler, pipeline, etc.) by GitHub handle if you can find it.
|
152 |
-
|
153 |
-
You can open a request for a model/pipeline/scheduler [here](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=New+model%2Fpipeline%2Fscheduler&template=new-model-addition.yml).
|
154 |
-
|
155 |
-
### 3. Answering issues on the GitHub issues tab
|
156 |
-
|
157 |
-
Answering issues on GitHub might require some technical knowledge of Diffusers, but we encourage everybody to give it a try even if you are not 100% certain that your answer is correct.
|
158 |
-
Some tips to give a high-quality answer to an issue:
|
159 |
-
- Be as concise and minimal as possible
|
160 |
-
- Stay on topic. An answer to the issue should concern the issue and only the issue.
|
161 |
-
- Provide links to code, papers, or other sources that prove or encourage your point.
|
162 |
-
- Answer in code. If a simple code snippet is the answer to the issue or shows how the issue can be solved, please provide a fully reproducible code snippet.
|
163 |
-
|
164 |
-
Also, many issues tend to be simply off-topic, duplicates of other issues, or irrelevant. It is of great
|
165 |
-
help to the maintainers if you can answer such issues, encouraging the author of the issue to be
|
166 |
-
more precise, provide the link to a duplicated issue or redirect them to [the forum](https://discuss.huggingface.co/c/discussion-related-to-httpsgithubcomhuggingfacediffusers/63) or [Discord](https://discord.gg/G7tWnz98XR)
|
167 |
-
|
168 |
-
If you have verified that the issued bug report is correct and requires a correction in the source code,
|
169 |
-
please have a look at the next sections.
|
170 |
-
|
171 |
-
For all of the following contributions, you will need to open a PR. It is explained in detail how to do so in the [Opening a pull requst](#how-to-open-a-pr) section.
|
172 |
-
|
173 |
-
### 4. Fixing a `Good first issue`
|
174 |
-
|
175 |
-
*Good first issues* are marked by the [Good first issue](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) label. Usually, the issue already
|
176 |
-
explains how a potential solution should look so that it is easier to fix.
|
177 |
-
If the issue hasn't been closed and you would like to try to fix this issue, you can just leave a message "I would like to try this issue.". There are usually three scenarios:
|
178 |
-
- a.) The issue description already proposes a fix. In this case and if the solution makes sense to you, you can open a PR or draft PR to fix it.
|
179 |
-
- b.) The issue description does not propose a fix. In this case, you can ask what a proposed fix could look like and someone from the Diffusers team should answer shortly. If you have a good idea of how to fix it, feel free to directly open a PR.
|
180 |
-
- c.) There is already an open PR to fix the issue, but the issue hasn't been closed yet. If the PR has gone stale, you can simply open a new PR and link to the stale PR. PRs often go stale if the original contributor who wanted to fix the issue suddenly cannot find the time anymore to proceed. This often happens in open-source and is very normal. In this case, the community will be very happy if you give it a new try and leverage the knowledge of the existing PR. If there is already a PR and it is active, you can help the author by giving suggestions, reviewing the PR or even asking whether you can contribute to the PR.
|
181 |
-
|
182 |
-
|
183 |
-
### 5. Contribute to the documentation
|
184 |
-
|
185 |
-
A good library **always** has good documentation! The official documentation is often one of the first points of contact for new users of the library, and therefore contributing to the documentation is a **highly
|
186 |
-
valuable contribution**.
|
187 |
-
|
188 |
-
Contributing to the library can have many forms:
|
189 |
-
|
190 |
-
- Correcting spelling or grammatical errors.
|
191 |
-
- Correct incorrect formatting of the docstring. If you see that the official documentation is weirdly displayed or a link is broken, we are very happy if you take some time to correct it.
|
192 |
-
- Correct the shape or dimensions of a docstring input or output tensor.
|
193 |
-
- Clarify documentation that is hard to understand or incorrect.
|
194 |
-
- Update outdated code examples.
|
195 |
-
- Translating the documentation to another language.
|
196 |
-
|
197 |
-
Anything displayed on [the official Diffusers doc page](https://huggingface.co/docs/diffusers/index) is part of the official documentation and can be corrected, adjusted in the respective [documentation source](https://github.com/huggingface/diffusers/tree/main/docs/source).
|
198 |
-
|
199 |
-
Please have a look at [this page](https://github.com/huggingface/diffusers/tree/main/docs) on how to verify changes made to the documentation locally.
|
200 |
-
|
201 |
-
|
202 |
-
### 6. Contribute a community pipeline
|
203 |
-
|
204 |
-
[Pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) are usually the first point of contact between the Diffusers library and the user.
|
205 |
-
Pipelines are examples of how to use Diffusers [models](https://huggingface.co/docs/diffusers/api/models) and [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview).
|
206 |
-
We support two types of pipelines:
|
207 |
-
|
208 |
-
- Official Pipelines
|
209 |
-
- Community Pipelines
|
210 |
-
|
211 |
-
Both official and community pipelines follow the same design and consist of the same type of components.
|
212 |
-
|
213 |
-
Official pipelines are tested and maintained by the core maintainers of Diffusers. Their code
|
214 |
-
resides in [src/diffusers/pipelines](https://github.com/huggingface/diffusers/tree/main/src/diffusers/pipelines).
|
215 |
-
In contrast, community pipelines are contributed and maintained purely by the **community** and are **not** tested.
|
216 |
-
They reside in [examples/community](https://github.com/huggingface/diffusers/tree/main/examples/community) and while they can be accessed via the [PyPI diffusers package](https://pypi.org/project/diffusers/), their code is not part of the PyPI distribution.
|
217 |
-
|
218 |
-
The reason for the distinction is that the core maintainers of the Diffusers library cannot maintain and test all
|
219 |
-
possible ways diffusion models can be used for inference, but some of them may be of interest to the community.
|
220 |
-
Officially released diffusion pipelines,
|
221 |
-
such as Stable Diffusion are added to the core src/diffusers/pipelines package which ensures
|
222 |
-
high quality of maintenance, no backward-breaking code changes, and testing.
|
223 |
-
More bleeding edge pipelines should be added as community pipelines. If usage for a community pipeline is high, the pipeline can be moved to the official pipelines upon request from the community. This is one of the ways we strive to be a community-driven library.
|
224 |
-
|
225 |
-
To add a community pipeline, one should add a <name-of-the-community>.py file to [examples/community](https://github.com/huggingface/diffusers/tree/main/examples/community) and adapt the [examples/community/README.md](https://github.com/huggingface/diffusers/tree/main/examples/community/README.md) to include an example of the new pipeline.
|
226 |
-
|
227 |
-
An example can be seen [here](https://github.com/huggingface/diffusers/pull/2400).
|
228 |
-
|
229 |
-
Community pipeline PRs are only checked at a superficial level and ideally they should be maintained by their original authors.
|
230 |
-
|
231 |
-
Contributing a community pipeline is a great way to understand how Diffusers models and schedulers work. Having contributed a community pipeline is usually the first stepping stone to contributing an official pipeline to the
|
232 |
-
core package.
|
233 |
-
|
234 |
-
### 7. Contribute to training examples
|
235 |
-
|
236 |
-
Diffusers examples are a collection of training scripts that reside in [examples](https://github.com/huggingface/diffusers/tree/main/examples).
|
237 |
-
|
238 |
-
We support two types of training examples:
|
239 |
-
|
240 |
-
- Official training examples
|
241 |
-
- Research training examples
|
242 |
-
|
243 |
-
Research training examples are located in [examples/research_projects](https://github.com/huggingface/diffusers/tree/main/examples/research_projects) whereas official training examples include all folders under [examples](https://github.com/huggingface/diffusers/tree/main/examples) except the `research_projects` and `community` folders.
|
244 |
-
The official training examples are maintained by the Diffusers' core maintainers whereas the research training examples are maintained by the community.
|
245 |
-
This is because of the same reasons put forward in [6. Contribute a community pipeline](#contribute-a-community-pipeline) for official pipelines vs. community pipelines: It is not feasible for the core maintainers to maintain all possible training methods for diffusion models.
|
246 |
-
If the Diffusers core maintainers and the community consider a certain training paradigm to be too experimental or not popular enough, the corresponding training code should be put in the `research_projects` folder and maintained by the author.
|
247 |
-
|
248 |
-
Both official training and research examples consist of a directory that contains one or more training scripts, a requirements.txt file, and a README.md file. In order for the user to make use of the
|
249 |
-
training examples, it is required to clone the repository:
|
250 |
-
|
251 |
-
```
|
252 |
-
git clone https://github.com/huggingface/diffusers
|
253 |
-
```
|
254 |
-
|
255 |
-
as well as to install all additional dependencies required for training:
|
256 |
-
|
257 |
-
```
|
258 |
-
pip install -r /examples/<your-example-folder>/requirements.txt
|
259 |
-
```
|
260 |
-
|
261 |
-
Therefore when adding an example, the `requirements.txt` file shall define all pip dependencies required for your training example so that once all those are installed, the user can run the example's training script. See, for example, the [DreamBooth `requirements.txt` file](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/requirements.txt).
|
262 |
-
|
263 |
-
Training examples of the Diffusers library should adhere to the following philosophy:
|
264 |
-
- All the code necessary to run the examples should be found in a single Python file
|
265 |
-
- One should be able to run the example from the command line with `python <your-example>.py --args`
|
266 |
-
- Examples should be kept simple and serve as **an example** on how to use Diffusers for training. The purpose of example scripts is **not** to create state-of-the-art diffusion models, but rather to reproduce known training schemes without adding too much custom logic. As a byproduct of this point, our examples also strive to serve as good educational materials.
|
267 |
-
|
268 |
-
To contribute an example, it is highly recommended to look at already existing examples such as [dreambooth](https://github.com/huggingface/diffusers/blob/main/examples/dreambooth/train_dreambooth.py) to get an idea of how they should look like.
|
269 |
-
We strongly advise contributors to make use of the [Accelerate library](https://github.com/huggingface/accelerate) as it's tightly integrated
|
270 |
-
with Diffusers.
|
271 |
-
Once an example script works, please make sure to add a comprehensive `README.md` that states how to use the example exactly. This README should include:
|
272 |
-
- An example command on how to run the example script as shown [here e.g.](https://github.com/huggingface/diffusers/tree/main/examples/dreambooth#running-locally-with-pytorch).
|
273 |
-
- A link to some training results (logs, models, ...) that show what the user can expect as shown [here e.g.](https://api.wandb.ai/report/patrickvonplaten/xm6cd5q5).
|
274 |
-
- If you are adding a non-official/research training example, **please don't forget** to add a sentence that you are maintaining this training example which includes your git handle as shown [here](https://github.com/huggingface/diffusers/tree/main/examples/research_projects/intel_opts#diffusers-examples-with-intel-optimizations).
|
275 |
-
|
276 |
-
If you are contributing to the official training examples, please also make sure to add a test to [examples/test_examples.py](https://github.com/huggingface/diffusers/blob/main/examples/test_examples.py). This is not necessary for non-official training examples.
|
277 |
-
|
278 |
-
### 8. Fixing a `Good second issue`
|
279 |
-
|
280 |
-
*Good second issues* are marked by the [Good second issue](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+second+issue%22) label. Good second issues are
|
281 |
-
usually more complicated to solve than [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22).
|
282 |
-
The issue description usually gives less guidance on how to fix the issue and requires
|
283 |
-
a decent understanding of the library by the interested contributor.
|
284 |
-
If you are interested in tackling a second good issue, feel free to open a PR to fix it and link the PR to the issue. If you see that a PR has already been opened for this issue but did not get merged, have a look to understand why it wasn't merged and try to open an improved PR.
|
285 |
-
Good second issues are usually more difficult to get merged compared to good first issues, so don't hesitate to ask for help from the core maintainers. If your PR is almost finished the core maintainers can also jump into your PR and commit to it in order to get it merged.
|
286 |
-
|
287 |
-
### 9. Adding pipelines, models, schedulers
|
288 |
-
|
289 |
-
Pipelines, models, and schedulers are the most important pieces of the Diffusers library.
|
290 |
-
They provide easy access to state-of-the-art diffusion technologies and thus allow the community to
|
291 |
-
build powerful generative AI applications.
|
292 |
-
|
293 |
-
By adding a new model, pipeline, or scheduler you might enable a new powerful use case for any of the user interfaces relying on Diffusers which can be of immense value for the whole generative AI ecosystem.
|
294 |
-
|
295 |
-
Diffusers has a couple of open feature requests for all three components - feel free to gloss over them
|
296 |
-
if you don't know yet what specific component you would like to add:
|
297 |
-
- [Model or pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22)
|
298 |
-
- [Scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
|
299 |
-
|
300 |
-
Before adding any of the three components, it is strongly recommended that you give the [Philosophy guide](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22Good+second+issue%22) a read to better understand the design of any of the three components. Please be aware that
|
301 |
-
we cannot merge model, scheduler, or pipeline additions that strongly diverge from our design philosophy
|
302 |
-
as it will lead to API inconsistencies. If you fundamentally disagree with a design choice, please
|
303 |
-
open a [Feedback issue](https://github.com/huggingface/diffusers/issues/new?assignees=&labels=&template=feedback.md&title=) instead so that it can be discussed whether a certain design
|
304 |
-
pattern/design choice shall be changed everywhere in the library and whether we shall update our design philosophy. Consistency across the library is very important for us.
|
305 |
-
|
306 |
-
Please make sure to add links to the original codebase/paper to the PR and ideally also ping the
|
307 |
-
original author directly on the PR so that they can follow the progress and potentially help with questions.
|
308 |
-
|
309 |
-
If you are unsure or stuck in the PR, don't hesitate to leave a message to ask for a first review or help.
|
310 |
-
|
311 |
-
## How to write a good issue
|
312 |
-
|
313 |
-
**The better your issue is written, the higher the chances that it will be quickly resolved.**
|
314 |
-
|
315 |
-
1. Make sure that you've used the correct template for your issue. You can pick between *Bug Report*, *Feature Request*, *Feedback about API Design*, *New model/pipeline/scheduler addition*, *Forum*, or a blank issue. Make sure to pick the correct one when opening [a new issue](https://github.com/huggingface/diffusers/issues/new/choose).
|
316 |
-
2. **Be precise**: Give your issue a fitting title. Try to formulate your issue description as simple as possible. The more precise you are when submitting an issue, the less time it takes to understand the issue and potentially solve it. Make sure to open an issue for one issue only and not for multiple issues. If you found multiple issues, simply open multiple issues. If your issue is a bug, try to be as precise as possible about what bug it is - you should not just write "Error in diffusers".
|
317 |
-
3. **Reproducibility**: No reproducible code snippet == no solution. If you encounter a bug, maintainers **have to be able to reproduce** it. Make sure that you include a code snippet that can be copy-pasted into a Python interpreter to reproduce the issue. Make sure that your code snippet works, *i.e.* that there are no missing imports or missing links to images, ... Your issue should contain an error message **and** a code snippet that can be copy-pasted without any changes to reproduce the exact same error message. If your issue is using local model weights or local data that cannot be accessed by the reader, the issue cannot be solved. If you cannot share your data or model, try to make a dummy model or dummy data.
|
318 |
-
4. **Minimalistic**: Try to help the reader as much as you can to understand the issue as quickly as possible by staying as concise as possible. Remove all code / all information that is irrelevant to the issue. If you have found a bug, try to create the easiest code example you can to demonstrate your issue, do not just dump your whole workflow into the issue as soon as you have found a bug. E.g., if you train a model and get an error at some point during the training, you should first try to understand what part of the training code is responsible for the error and try to reproduce it with a couple of lines. Try to use dummy data instead of full datasets.
|
319 |
-
5. Add links. If you are referring to a certain naming, method, or model make sure to provide a link so that the reader can better understand what you mean. If you are referring to a specific PR or issue, make sure to link it to your issue. Do not assume that the reader knows what you are talking about. The more links you add to your issue the better.
|
320 |
-
6. Formatting. Make sure to nicely format your issue by formatting code into Python code syntax, and error messages into normal code syntax. See the [official GitHub formatting docs](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for more information.
|
321 |
-
7. Think of your issue not as a ticket to be solved, but rather as a beautiful entry to a well-written encyclopedia. Every added issue is a contribution to publicly available knowledge. By adding a nicely written issue you not only make it easier for maintainers to solve your issue, but you are helping the whole community to better understand a certain aspect of the library.
|
322 |
-
|
323 |
-
## How to write a good PR
|
324 |
-
|
325 |
-
1. Be a chameleon. Understand existing design patterns and syntax and make sure your code additions flow seamlessly into the existing code base. Pull requests that significantly diverge from existing design patterns or user interfaces will not be merged.
|
326 |
-
2. Be laser focused. A pull request should solve one problem and one problem only. Make sure to not fall into the trap of "also fixing another problem while we're adding it". It is much more difficult to review pull requests that solve multiple, unrelated problems at once.
|
327 |
-
3. If helpful, try to add a code snippet that displays an example of how your addition can be used.
|
328 |
-
4. The title of your pull request should be a summary of its contribution.
|
329 |
-
5. If your pull request addresses an issue, please mention the issue number in
|
330 |
-
the pull request description to make sure they are linked (and people
|
331 |
-
consulting the issue know you are working on it);
|
332 |
-
6. To indicate a work in progress please prefix the title with `[WIP]`. These
|
333 |
-
are useful to avoid duplicated work, and to differentiate it from PRs ready
|
334 |
-
to be merged;
|
335 |
-
7. Try to formulate and format your text as explained in [How to write a good issue](#how-to-write-a-good-issue).
|
336 |
-
8. Make sure existing tests pass;
|
337 |
-
9. Add high-coverage tests. No quality testing = no merge.
|
338 |
-
- If you are adding new `@slow` tests, make sure they pass using
|
339 |
-
`RUN_SLOW=1 python -m pytest tests/test_my_new_model.py`.
|
340 |
-
CircleCI does not run the slow tests, but GitHub actions does every night!
|
341 |
-
10. All public methods must have informative docstrings that work nicely with markdown. See `[pipeline_latent_diffusion.py](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py)` for an example.
|
342 |
-
11. Due to the rapidly growing repository, it is important to make sure that no files that would significantly weigh down the repository are added. This includes images, videos, and other non-text files. We prefer to leverage a hf.co hosted `dataset` like
|
343 |
-
[`hf-internal-testing`](https://huggingface.co/hf-internal-testing) or [huggingface/documentation-images](https://huggingface.co/datasets/huggingface/documentation-images) to place these files.
|
344 |
-
If an external contribution, feel free to add the images to your PR and ask a Hugging Face member to migrate your images
|
345 |
-
to this dataset.
|
346 |
-
|
347 |
-
## How to open a PR
|
348 |
-
|
349 |
-
Before writing code, we strongly advise you to search through the existing PRs or
|
350 |
-
issues to make sure that nobody is already working on the same thing. If you are
|
351 |
-
unsure, it is always a good idea to open an issue to get some feedback.
|
352 |
-
|
353 |
-
You will need basic `git` proficiency to be able to contribute to
|
354 |
-
🧨 Diffusers. `git` is not the easiest tool to use but it has the greatest
|
355 |
-
manual. Type `git --help` in a shell and enjoy. If you prefer books, [Pro
|
356 |
-
Git](https://git-scm.com/book/en/v2) is a very good reference.
|
357 |
-
|
358 |
-
Follow these steps to start contributing ([supported Python versions](https://github.com/huggingface/diffusers/blob/main/setup.py#L244)):
|
359 |
-
|
360 |
-
1. Fork the [repository](https://github.com/huggingface/diffusers) by
|
361 |
-
clicking on the 'Fork' button on the repository's page. This creates a copy of the code
|
362 |
-
under your GitHub user account.
|
363 |
-
|
364 |
-
2. Clone your fork to your local disk, and add the base repository as a remote:
|
365 |
-
|
366 |
-
```bash
|
367 |
-
$ git clone [email protected]:<your Github handle>/diffusers.git
|
368 |
-
$ cd diffusers
|
369 |
-
$ git remote add upstream https://github.com/huggingface/diffusers.git
|
370 |
-
```
|
371 |
-
|
372 |
-
3. Create a new branch to hold your development changes:
|
373 |
-
|
374 |
-
```bash
|
375 |
-
$ git checkout -b a-descriptive-name-for-my-changes
|
376 |
-
```
|
377 |
-
|
378 |
-
**Do not** work on the `main` branch.
|
379 |
-
|
380 |
-
4. Set up a development environment by running the following command in a virtual environment:
|
381 |
-
|
382 |
-
```bash
|
383 |
-
$ pip install -e ".[dev]"
|
384 |
-
```
|
385 |
-
|
386 |
-
If you have already cloned the repo, you might need to `git pull` to get the most recent changes in the
|
387 |
-
library.
|
388 |
-
|
389 |
-
5. Develop the features on your branch.
|
390 |
-
|
391 |
-
As you work on the features, you should make sure that the test suite
|
392 |
-
passes. You should run the tests impacted by your changes like this:
|
393 |
-
|
394 |
-
```bash
|
395 |
-
$ pytest tests/<TEST_TO_RUN>.py
|
396 |
-
```
|
397 |
-
|
398 |
-
You can also run the full suite with the following command, but it takes
|
399 |
-
a beefy machine to produce a result in a decent amount of time now that
|
400 |
-
Diffusers has grown a lot. Here is the command for it:
|
401 |
-
|
402 |
-
```bash
|
403 |
-
$ make test
|
404 |
-
```
|
405 |
-
|
406 |
-
🧨 Diffusers relies on `black` and `isort` to format its source code
|
407 |
-
consistently. After you make changes, apply automatic style corrections and code verifications
|
408 |
-
that can't be automated in one go with:
|
409 |
-
|
410 |
-
```bash
|
411 |
-
$ make style
|
412 |
-
```
|
413 |
-
|
414 |
-
🧨 Diffusers also uses `ruff` and a few custom scripts to check for coding mistakes. Quality
|
415 |
-
control runs in CI, however, you can also run the same checks with:
|
416 |
-
|
417 |
-
```bash
|
418 |
-
$ make quality
|
419 |
-
```
|
420 |
-
|
421 |
-
Once you're happy with your changes, add changed files using `git add` and
|
422 |
-
make a commit with `git commit` to record your changes locally:
|
423 |
-
|
424 |
-
```bash
|
425 |
-
$ git add modified_file.py
|
426 |
-
$ git commit
|
427 |
-
```
|
428 |
-
|
429 |
-
It is a good idea to sync your copy of the code with the original
|
430 |
-
repository regularly. This way you can quickly account for changes:
|
431 |
-
|
432 |
-
```bash
|
433 |
-
$ git pull upstream main
|
434 |
-
```
|
435 |
-
|
436 |
-
Push the changes to your account using:
|
437 |
-
|
438 |
-
```bash
|
439 |
-
$ git push -u origin a-descriptive-name-for-my-changes
|
440 |
-
```
|
441 |
-
|
442 |
-
6. Once you are satisfied, go to the
|
443 |
-
webpage of your fork on GitHub. Click on 'Pull request' to send your changes
|
444 |
-
to the project maintainers for review.
|
445 |
-
|
446 |
-
7. It's ok if maintainers ask you for changes. It happens to core contributors
|
447 |
-
too! So everyone can see the changes in the Pull request, work in your local
|
448 |
-
branch and push the changes to your fork. They will automatically appear in
|
449 |
-
the pull request.
|
450 |
-
|
451 |
-
### Tests
|
452 |
-
|
453 |
-
An extensive test suite is included to test the library behavior and several examples. Library tests can be found in
|
454 |
-
the [tests folder](https://github.com/huggingface/diffusers/tree/main/tests).
|
455 |
-
|
456 |
-
We like `pytest` and `pytest-xdist` because it's faster. From the root of the
|
457 |
-
repository, here's how to run tests with `pytest` for the library:
|
458 |
-
|
459 |
-
```bash
|
460 |
-
$ python -m pytest -n auto --dist=loadfile -s -v ./tests/
|
461 |
-
```
|
462 |
-
|
463 |
-
In fact, that's how `make test` is implemented!
|
464 |
-
|
465 |
-
You can specify a smaller set of tests in order to test only the feature
|
466 |
-
you're working on.
|
467 |
-
|
468 |
-
By default, slow tests are skipped. Set the `RUN_SLOW` environment variable to
|
469 |
-
`yes` to run them. This will download many gigabytes of models — make sure you
|
470 |
-
have enough disk space and a good Internet connection, or a lot of patience!
|
471 |
-
|
472 |
-
```bash
|
473 |
-
$ RUN_SLOW=yes python -m pytest -n auto --dist=loadfile -s -v ./tests/
|
474 |
-
```
|
475 |
-
|
476 |
-
`unittest` is fully supported, here's how to run tests with it:
|
477 |
-
|
478 |
-
```bash
|
479 |
-
$ python -m unittest discover -s tests -t . -v
|
480 |
-
$ python -m unittest discover -s examples -t examples -v
|
481 |
-
```
|
482 |
-
|
483 |
-
### Syncing forked main with upstream (HuggingFace) main
|
484 |
-
|
485 |
-
To avoid pinging the upstream repository which adds reference notes to each upstream PR and sends unnecessary notifications to the developers involved in these PRs,
|
486 |
-
when syncing the main branch of a forked repository, please, follow these steps:
|
487 |
-
1. When possible, avoid syncing with the upstream using a branch and PR on the forked repository. Instead, merge directly into the forked main.
|
488 |
-
2. If a PR is absolutely necessary, use the following steps after checking out your branch:
|
489 |
-
```
|
490 |
-
$ git checkout -b your-branch-for-syncing
|
491 |
-
$ git pull --squash --no-commit upstream main
|
492 |
-
$ git commit -m '<your message without GitHub references>'
|
493 |
-
$ git push --set-upstream origin your-branch-for-syncing
|
494 |
-
```
|
495 |
-
|
496 |
-
### Style guide
|
497 |
-
|
498 |
-
For documentation strings, 🧨 Diffusers follows the [google style](https://google.github.io/styleguide/pyguide.html).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/tests/others/test_outputs.py
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
import unittest
|
2 |
-
from dataclasses import dataclass
|
3 |
-
from typing import List, Union
|
4 |
-
|
5 |
-
import numpy as np
|
6 |
-
import PIL.Image
|
7 |
-
|
8 |
-
from diffusers.utils.outputs import BaseOutput
|
9 |
-
|
10 |
-
|
11 |
-
@dataclass
|
12 |
-
class CustomOutput(BaseOutput):
|
13 |
-
images: Union[List[PIL.Image.Image], np.ndarray]
|
14 |
-
|
15 |
-
|
16 |
-
class ConfigTester(unittest.TestCase):
|
17 |
-
def test_outputs_single_attribute(self):
|
18 |
-
outputs = CustomOutput(images=np.random.rand(1, 3, 4, 4))
|
19 |
-
|
20 |
-
# check every way of getting the attribute
|
21 |
-
assert isinstance(outputs.images, np.ndarray)
|
22 |
-
assert outputs.images.shape == (1, 3, 4, 4)
|
23 |
-
assert isinstance(outputs["images"], np.ndarray)
|
24 |
-
assert outputs["images"].shape == (1, 3, 4, 4)
|
25 |
-
assert isinstance(outputs[0], np.ndarray)
|
26 |
-
assert outputs[0].shape == (1, 3, 4, 4)
|
27 |
-
|
28 |
-
# test with a non-tensor attribute
|
29 |
-
outputs = CustomOutput(images=[PIL.Image.new("RGB", (4, 4))])
|
30 |
-
|
31 |
-
# check every way of getting the attribute
|
32 |
-
assert isinstance(outputs.images, list)
|
33 |
-
assert isinstance(outputs.images[0], PIL.Image.Image)
|
34 |
-
assert isinstance(outputs["images"], list)
|
35 |
-
assert isinstance(outputs["images"][0], PIL.Image.Image)
|
36 |
-
assert isinstance(outputs[0], list)
|
37 |
-
assert isinstance(outputs[0][0], PIL.Image.Image)
|
38 |
-
|
39 |
-
def test_outputs_dict_init(self):
|
40 |
-
# test output reinitialization with a `dict` for compatibility with `accelerate`
|
41 |
-
outputs = CustomOutput({"images": np.random.rand(1, 3, 4, 4)})
|
42 |
-
|
43 |
-
# check every way of getting the attribute
|
44 |
-
assert isinstance(outputs.images, np.ndarray)
|
45 |
-
assert outputs.images.shape == (1, 3, 4, 4)
|
46 |
-
assert isinstance(outputs["images"], np.ndarray)
|
47 |
-
assert outputs["images"].shape == (1, 3, 4, 4)
|
48 |
-
assert isinstance(outputs[0], np.ndarray)
|
49 |
-
assert outputs[0].shape == (1, 3, 4, 4)
|
50 |
-
|
51 |
-
# test with a non-tensor attribute
|
52 |
-
outputs = CustomOutput({"images": [PIL.Image.new("RGB", (4, 4))]})
|
53 |
-
|
54 |
-
# check every way of getting the attribute
|
55 |
-
assert isinstance(outputs.images, list)
|
56 |
-
assert isinstance(outputs.images[0], PIL.Image.Image)
|
57 |
-
assert isinstance(outputs["images"], list)
|
58 |
-
assert isinstance(outputs["images"][0], PIL.Image.Image)
|
59 |
-
assert isinstance(outputs[0], list)
|
60 |
-
assert isinstance(outputs[0][0], PIL.Image.Image)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Andy1621/uniformer_image_segmentation/configs/deeplabv3/deeplabv3_r50-d8_480x480_80k_pascal_context_59.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
_base_ = [
|
2 |
-
'../_base_/models/deeplabv3_r50-d8.py',
|
3 |
-
'../_base_/datasets/pascal_context_59.py', '../_base_/default_runtime.py',
|
4 |
-
'../_base_/schedules/schedule_80k.py'
|
5 |
-
]
|
6 |
-
model = dict(
|
7 |
-
decode_head=dict(num_classes=59),
|
8 |
-
auxiliary_head=dict(num_classes=59),
|
9 |
-
test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320)))
|
10 |
-
optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/annotator/uniformer/mmcv/runner/fp16_utils.py
DELETED
@@ -1,410 +0,0 @@
|
|
1 |
-
# Copyright (c) OpenMMLab. All rights reserved.
|
2 |
-
import functools
|
3 |
-
import warnings
|
4 |
-
from collections import abc
|
5 |
-
from inspect import getfullargspec
|
6 |
-
|
7 |
-
import numpy as np
|
8 |
-
import torch
|
9 |
-
import torch.nn as nn
|
10 |
-
|
11 |
-
from annotator.uniformer.mmcv.utils import TORCH_VERSION, digit_version
|
12 |
-
from .dist_utils import allreduce_grads as _allreduce_grads
|
13 |
-
|
14 |
-
try:
|
15 |
-
# If PyTorch version >= 1.6.0, torch.cuda.amp.autocast would be imported
|
16 |
-
# and used; otherwise, auto fp16 will adopt mmcv's implementation.
|
17 |
-
# Note that when PyTorch >= 1.6.0, we still cast tensor types to fp16
|
18 |
-
# manually, so the behavior may not be consistent with real amp.
|
19 |
-
from torch.cuda.amp import autocast
|
20 |
-
except ImportError:
|
21 |
-
pass
|
22 |
-
|
23 |
-
|
24 |
-
def cast_tensor_type(inputs, src_type, dst_type):
|
25 |
-
"""Recursively convert Tensor in inputs from src_type to dst_type.
|
26 |
-
|
27 |
-
Args:
|
28 |
-
inputs: Inputs that to be casted.
|
29 |
-
src_type (torch.dtype): Source type..
|
30 |
-
dst_type (torch.dtype): Destination type.
|
31 |
-
|
32 |
-
Returns:
|
33 |
-
The same type with inputs, but all contained Tensors have been cast.
|
34 |
-
"""
|
35 |
-
if isinstance(inputs, nn.Module):
|
36 |
-
return inputs
|
37 |
-
elif isinstance(inputs, torch.Tensor):
|
38 |
-
return inputs.to(dst_type)
|
39 |
-
elif isinstance(inputs, str):
|
40 |
-
return inputs
|
41 |
-
elif isinstance(inputs, np.ndarray):
|
42 |
-
return inputs
|
43 |
-
elif isinstance(inputs, abc.Mapping):
|
44 |
-
return type(inputs)({
|
45 |
-
k: cast_tensor_type(v, src_type, dst_type)
|
46 |
-
for k, v in inputs.items()
|
47 |
-
})
|
48 |
-
elif isinstance(inputs, abc.Iterable):
|
49 |
-
return type(inputs)(
|
50 |
-
cast_tensor_type(item, src_type, dst_type) for item in inputs)
|
51 |
-
else:
|
52 |
-
return inputs
|
53 |
-
|
54 |
-
|
55 |
-
def auto_fp16(apply_to=None, out_fp32=False):
|
56 |
-
"""Decorator to enable fp16 training automatically.
|
57 |
-
|
58 |
-
This decorator is useful when you write custom modules and want to support
|
59 |
-
mixed precision training. If inputs arguments are fp32 tensors, they will
|
60 |
-
be converted to fp16 automatically. Arguments other than fp32 tensors are
|
61 |
-
ignored. If you are using PyTorch >= 1.6, torch.cuda.amp is used as the
|
62 |
-
backend, otherwise, original mmcv implementation will be adopted.
|
63 |
-
|
64 |
-
Args:
|
65 |
-
apply_to (Iterable, optional): The argument names to be converted.
|
66 |
-
`None` indicates all arguments.
|
67 |
-
out_fp32 (bool): Whether to convert the output back to fp32.
|
68 |
-
|
69 |
-
Example:
|
70 |
-
|
71 |
-
>>> import torch.nn as nn
|
72 |
-
>>> class MyModule1(nn.Module):
|
73 |
-
>>>
|
74 |
-
>>> # Convert x and y to fp16
|
75 |
-
>>> @auto_fp16()
|
76 |
-
>>> def forward(self, x, y):
|
77 |
-
>>> pass
|
78 |
-
|
79 |
-
>>> import torch.nn as nn
|
80 |
-
>>> class MyModule2(nn.Module):
|
81 |
-
>>>
|
82 |
-
>>> # convert pred to fp16
|
83 |
-
>>> @auto_fp16(apply_to=('pred', ))
|
84 |
-
>>> def do_something(self, pred, others):
|
85 |
-
>>> pass
|
86 |
-
"""
|
87 |
-
|
88 |
-
def auto_fp16_wrapper(old_func):
|
89 |
-
|
90 |
-
@functools.wraps(old_func)
|
91 |
-
def new_func(*args, **kwargs):
|
92 |
-
# check if the module has set the attribute `fp16_enabled`, if not,
|
93 |
-
# just fallback to the original method.
|
94 |
-
if not isinstance(args[0], torch.nn.Module):
|
95 |
-
raise TypeError('@auto_fp16 can only be used to decorate the '
|
96 |
-
'method of nn.Module')
|
97 |
-
if not (hasattr(args[0], 'fp16_enabled') and args[0].fp16_enabled):
|
98 |
-
return old_func(*args, **kwargs)
|
99 |
-
|
100 |
-
# get the arg spec of the decorated method
|
101 |
-
args_info = getfullargspec(old_func)
|
102 |
-
# get the argument names to be casted
|
103 |
-
args_to_cast = args_info.args if apply_to is None else apply_to
|
104 |
-
# convert the args that need to be processed
|
105 |
-
new_args = []
|
106 |
-
# NOTE: default args are not taken into consideration
|
107 |
-
if args:
|
108 |
-
arg_names = args_info.args[:len(args)]
|
109 |
-
for i, arg_name in enumerate(arg_names):
|
110 |
-
if arg_name in args_to_cast:
|
111 |
-
new_args.append(
|
112 |
-
cast_tensor_type(args[i], torch.float, torch.half))
|
113 |
-
else:
|
114 |
-
new_args.append(args[i])
|
115 |
-
# convert the kwargs that need to be processed
|
116 |
-
new_kwargs = {}
|
117 |
-
if kwargs:
|
118 |
-
for arg_name, arg_value in kwargs.items():
|
119 |
-
if arg_name in args_to_cast:
|
120 |
-
new_kwargs[arg_name] = cast_tensor_type(
|
121 |
-
arg_value, torch.float, torch.half)
|
122 |
-
else:
|
123 |
-
new_kwargs[arg_name] = arg_value
|
124 |
-
# apply converted arguments to the decorated method
|
125 |
-
if (TORCH_VERSION != 'parrots' and
|
126 |
-
digit_version(TORCH_VERSION) >= digit_version('1.6.0')):
|
127 |
-
with autocast(enabled=True):
|
128 |
-
output = old_func(*new_args, **new_kwargs)
|
129 |
-
else:
|
130 |
-
output = old_func(*new_args, **new_kwargs)
|
131 |
-
# cast the results back to fp32 if necessary
|
132 |
-
if out_fp32:
|
133 |
-
output = cast_tensor_type(output, torch.half, torch.float)
|
134 |
-
return output
|
135 |
-
|
136 |
-
return new_func
|
137 |
-
|
138 |
-
return auto_fp16_wrapper
|
139 |
-
|
140 |
-
|
141 |
-
def force_fp32(apply_to=None, out_fp16=False):
|
142 |
-
"""Decorator to convert input arguments to fp32 in force.
|
143 |
-
|
144 |
-
This decorator is useful when you write custom modules and want to support
|
145 |
-
mixed precision training. If there are some inputs that must be processed
|
146 |
-
in fp32 mode, then this decorator can handle it. If inputs arguments are
|
147 |
-
fp16 tensors, they will be converted to fp32 automatically. Arguments other
|
148 |
-
than fp16 tensors are ignored. If you are using PyTorch >= 1.6,
|
149 |
-
torch.cuda.amp is used as the backend, otherwise, original mmcv
|
150 |
-
implementation will be adopted.
|
151 |
-
|
152 |
-
Args:
|
153 |
-
apply_to (Iterable, optional): The argument names to be converted.
|
154 |
-
`None` indicates all arguments.
|
155 |
-
out_fp16 (bool): Whether to convert the output back to fp16.
|
156 |
-
|
157 |
-
Example:
|
158 |
-
|
159 |
-
>>> import torch.nn as nn
|
160 |
-
>>> class MyModule1(nn.Module):
|
161 |
-
>>>
|
162 |
-
>>> # Convert x and y to fp32
|
163 |
-
>>> @force_fp32()
|
164 |
-
>>> def loss(self, x, y):
|
165 |
-
>>> pass
|
166 |
-
|
167 |
-
>>> import torch.nn as nn
|
168 |
-
>>> class MyModule2(nn.Module):
|
169 |
-
>>>
|
170 |
-
>>> # convert pred to fp32
|
171 |
-
>>> @force_fp32(apply_to=('pred', ))
|
172 |
-
>>> def post_process(self, pred, others):
|
173 |
-
>>> pass
|
174 |
-
"""
|
175 |
-
|
176 |
-
def force_fp32_wrapper(old_func):
|
177 |
-
|
178 |
-
@functools.wraps(old_func)
|
179 |
-
def new_func(*args, **kwargs):
|
180 |
-
# check if the module has set the attribute `fp16_enabled`, if not,
|
181 |
-
# just fallback to the original method.
|
182 |
-
if not isinstance(args[0], torch.nn.Module):
|
183 |
-
raise TypeError('@force_fp32 can only be used to decorate the '
|
184 |
-
'method of nn.Module')
|
185 |
-
if not (hasattr(args[0], 'fp16_enabled') and args[0].fp16_enabled):
|
186 |
-
return old_func(*args, **kwargs)
|
187 |
-
# get the arg spec of the decorated method
|
188 |
-
args_info = getfullargspec(old_func)
|
189 |
-
# get the argument names to be casted
|
190 |
-
args_to_cast = args_info.args if apply_to is None else apply_to
|
191 |
-
# convert the args that need to be processed
|
192 |
-
new_args = []
|
193 |
-
if args:
|
194 |
-
arg_names = args_info.args[:len(args)]
|
195 |
-
for i, arg_name in enumerate(arg_names):
|
196 |
-
if arg_name in args_to_cast:
|
197 |
-
new_args.append(
|
198 |
-
cast_tensor_type(args[i], torch.half, torch.float))
|
199 |
-
else:
|
200 |
-
new_args.append(args[i])
|
201 |
-
# convert the kwargs that need to be processed
|
202 |
-
new_kwargs = dict()
|
203 |
-
if kwargs:
|
204 |
-
for arg_name, arg_value in kwargs.items():
|
205 |
-
if arg_name in args_to_cast:
|
206 |
-
new_kwargs[arg_name] = cast_tensor_type(
|
207 |
-
arg_value, torch.half, torch.float)
|
208 |
-
else:
|
209 |
-
new_kwargs[arg_name] = arg_value
|
210 |
-
# apply converted arguments to the decorated method
|
211 |
-
if (TORCH_VERSION != 'parrots' and
|
212 |
-
digit_version(TORCH_VERSION) >= digit_version('1.6.0')):
|
213 |
-
with autocast(enabled=False):
|
214 |
-
output = old_func(*new_args, **new_kwargs)
|
215 |
-
else:
|
216 |
-
output = old_func(*new_args, **new_kwargs)
|
217 |
-
# cast the results back to fp32 if necessary
|
218 |
-
if out_fp16:
|
219 |
-
output = cast_tensor_type(output, torch.float, torch.half)
|
220 |
-
return output
|
221 |
-
|
222 |
-
return new_func
|
223 |
-
|
224 |
-
return force_fp32_wrapper
|
225 |
-
|
226 |
-
|
227 |
-
def allreduce_grads(params, coalesce=True, bucket_size_mb=-1):
|
228 |
-
warnings.warning(
|
229 |
-
'"mmcv.runner.fp16_utils.allreduce_grads" is deprecated, and will be '
|
230 |
-
'removed in v2.8. Please switch to "mmcv.runner.allreduce_grads')
|
231 |
-
_allreduce_grads(params, coalesce=coalesce, bucket_size_mb=bucket_size_mb)
|
232 |
-
|
233 |
-
|
234 |
-
def wrap_fp16_model(model):
|
235 |
-
"""Wrap the FP32 model to FP16.
|
236 |
-
|
237 |
-
If you are using PyTorch >= 1.6, torch.cuda.amp is used as the
|
238 |
-
backend, otherwise, original mmcv implementation will be adopted.
|
239 |
-
|
240 |
-
For PyTorch >= 1.6, this function will
|
241 |
-
1. Set fp16 flag inside the model to True.
|
242 |
-
|
243 |
-
Otherwise:
|
244 |
-
1. Convert FP32 model to FP16.
|
245 |
-
2. Remain some necessary layers to be FP32, e.g., normalization layers.
|
246 |
-
3. Set `fp16_enabled` flag inside the model to True.
|
247 |
-
|
248 |
-
Args:
|
249 |
-
model (nn.Module): Model in FP32.
|
250 |
-
"""
|
251 |
-
if (TORCH_VERSION == 'parrots'
|
252 |
-
or digit_version(TORCH_VERSION) < digit_version('1.6.0')):
|
253 |
-
# convert model to fp16
|
254 |
-
model.half()
|
255 |
-
# patch the normalization layers to make it work in fp32 mode
|
256 |
-
patch_norm_fp32(model)
|
257 |
-
# set `fp16_enabled` flag
|
258 |
-
for m in model.modules():
|
259 |
-
if hasattr(m, 'fp16_enabled'):
|
260 |
-
m.fp16_enabled = True
|
261 |
-
|
262 |
-
|
263 |
-
def patch_norm_fp32(module):
|
264 |
-
"""Recursively convert normalization layers from FP16 to FP32.
|
265 |
-
|
266 |
-
Args:
|
267 |
-
module (nn.Module): The modules to be converted in FP16.
|
268 |
-
|
269 |
-
Returns:
|
270 |
-
nn.Module: The converted module, the normalization layers have been
|
271 |
-
converted to FP32.
|
272 |
-
"""
|
273 |
-
if isinstance(module, (nn.modules.batchnorm._BatchNorm, nn.GroupNorm)):
|
274 |
-
module.float()
|
275 |
-
if isinstance(module, nn.GroupNorm) or torch.__version__ < '1.3':
|
276 |
-
module.forward = patch_forward_method(module.forward, torch.half,
|
277 |
-
torch.float)
|
278 |
-
for child in module.children():
|
279 |
-
patch_norm_fp32(child)
|
280 |
-
return module
|
281 |
-
|
282 |
-
|
283 |
-
def patch_forward_method(func, src_type, dst_type, convert_output=True):
|
284 |
-
"""Patch the forward method of a module.
|
285 |
-
|
286 |
-
Args:
|
287 |
-
func (callable): The original forward method.
|
288 |
-
src_type (torch.dtype): Type of input arguments to be converted from.
|
289 |
-
dst_type (torch.dtype): Type of input arguments to be converted to.
|
290 |
-
convert_output (bool): Whether to convert the output back to src_type.
|
291 |
-
|
292 |
-
Returns:
|
293 |
-
callable: The patched forward method.
|
294 |
-
"""
|
295 |
-
|
296 |
-
def new_forward(*args, **kwargs):
|
297 |
-
output = func(*cast_tensor_type(args, src_type, dst_type),
|
298 |
-
**cast_tensor_type(kwargs, src_type, dst_type))
|
299 |
-
if convert_output:
|
300 |
-
output = cast_tensor_type(output, dst_type, src_type)
|
301 |
-
return output
|
302 |
-
|
303 |
-
return new_forward
|
304 |
-
|
305 |
-
|
306 |
-
class LossScaler:
|
307 |
-
"""Class that manages loss scaling in mixed precision training which
|
308 |
-
supports both dynamic or static mode.
|
309 |
-
|
310 |
-
The implementation refers to
|
311 |
-
https://github.com/NVIDIA/apex/blob/master/apex/fp16_utils/loss_scaler.py.
|
312 |
-
Indirectly, by supplying ``mode='dynamic'`` for dynamic loss scaling.
|
313 |
-
It's important to understand how :class:`LossScaler` operates.
|
314 |
-
Loss scaling is designed to combat the problem of underflowing
|
315 |
-
gradients encountered at long times when training fp16 networks.
|
316 |
-
Dynamic loss scaling begins by attempting a very high loss
|
317 |
-
scale. Ironically, this may result in OVERflowing gradients.
|
318 |
-
If overflowing gradients are encountered, :class:`FP16_Optimizer` then
|
319 |
-
skips the update step for this particular iteration/minibatch,
|
320 |
-
and :class:`LossScaler` adjusts the loss scale to a lower value.
|
321 |
-
If a certain number of iterations occur without overflowing gradients
|
322 |
-
detected,:class:`LossScaler` increases the loss scale once more.
|
323 |
-
In this way :class:`LossScaler` attempts to "ride the edge" of always
|
324 |
-
using the highest loss scale possible without incurring overflow.
|
325 |
-
|
326 |
-
Args:
|
327 |
-
init_scale (float): Initial loss scale value, default: 2**32.
|
328 |
-
scale_factor (float): Factor used when adjusting the loss scale.
|
329 |
-
Default: 2.
|
330 |
-
mode (str): Loss scaling mode. 'dynamic' or 'static'
|
331 |
-
scale_window (int): Number of consecutive iterations without an
|
332 |
-
overflow to wait before increasing the loss scale. Default: 1000.
|
333 |
-
"""
|
334 |
-
|
335 |
-
def __init__(self,
|
336 |
-
init_scale=2**32,
|
337 |
-
mode='dynamic',
|
338 |
-
scale_factor=2.,
|
339 |
-
scale_window=1000):
|
340 |
-
self.cur_scale = init_scale
|
341 |
-
self.cur_iter = 0
|
342 |
-
assert mode in ('dynamic',
|
343 |
-
'static'), 'mode can only be dynamic or static'
|
344 |
-
self.mode = mode
|
345 |
-
self.last_overflow_iter = -1
|
346 |
-
self.scale_factor = scale_factor
|
347 |
-
self.scale_window = scale_window
|
348 |
-
|
349 |
-
def has_overflow(self, params):
|
350 |
-
"""Check if params contain overflow."""
|
351 |
-
if self.mode != 'dynamic':
|
352 |
-
return False
|
353 |
-
for p in params:
|
354 |
-
if p.grad is not None and LossScaler._has_inf_or_nan(p.grad.data):
|
355 |
-
return True
|
356 |
-
return False
|
357 |
-
|
358 |
-
def _has_inf_or_nan(x):
|
359 |
-
"""Check if params contain NaN."""
|
360 |
-
try:
|
361 |
-
cpu_sum = float(x.float().sum())
|
362 |
-
except RuntimeError as instance:
|
363 |
-
if 'value cannot be converted' not in instance.args[0]:
|
364 |
-
raise
|
365 |
-
return True
|
366 |
-
else:
|
367 |
-
if cpu_sum == float('inf') or cpu_sum == -float('inf') \
|
368 |
-
or cpu_sum != cpu_sum:
|
369 |
-
return True
|
370 |
-
return False
|
371 |
-
|
372 |
-
def update_scale(self, overflow):
|
373 |
-
"""update the current loss scale value when overflow happens."""
|
374 |
-
if self.mode != 'dynamic':
|
375 |
-
return
|
376 |
-
if overflow:
|
377 |
-
self.cur_scale = max(self.cur_scale / self.scale_factor, 1)
|
378 |
-
self.last_overflow_iter = self.cur_iter
|
379 |
-
else:
|
380 |
-
if (self.cur_iter - self.last_overflow_iter) % \
|
381 |
-
self.scale_window == 0:
|
382 |
-
self.cur_scale *= self.scale_factor
|
383 |
-
self.cur_iter += 1
|
384 |
-
|
385 |
-
def state_dict(self):
|
386 |
-
"""Returns the state of the scaler as a :class:`dict`."""
|
387 |
-
return dict(
|
388 |
-
cur_scale=self.cur_scale,
|
389 |
-
cur_iter=self.cur_iter,
|
390 |
-
mode=self.mode,
|
391 |
-
last_overflow_iter=self.last_overflow_iter,
|
392 |
-
scale_factor=self.scale_factor,
|
393 |
-
scale_window=self.scale_window)
|
394 |
-
|
395 |
-
def load_state_dict(self, state_dict):
|
396 |
-
"""Loads the loss_scaler state dict.
|
397 |
-
|
398 |
-
Args:
|
399 |
-
state_dict (dict): scaler state.
|
400 |
-
"""
|
401 |
-
self.cur_scale = state_dict['cur_scale']
|
402 |
-
self.cur_iter = state_dict['cur_iter']
|
403 |
-
self.mode = state_dict['mode']
|
404 |
-
self.last_overflow_iter = state_dict['last_overflow_iter']
|
405 |
-
self.scale_factor = state_dict['scale_factor']
|
406 |
-
self.scale_window = state_dict['scale_window']
|
407 |
-
|
408 |
-
@property
|
409 |
-
def loss_scale(self):
|
410 |
-
return self.cur_scale
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/pip/_vendor/pygments/__main__.py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
"""
|
2 |
-
pygments.__main__
|
3 |
-
~~~~~~~~~~~~~~~~~
|
4 |
-
|
5 |
-
Main entry point for ``python -m pygments``.
|
6 |
-
|
7 |
-
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
|
8 |
-
:license: BSD, see LICENSE for details.
|
9 |
-
"""
|
10 |
-
|
11 |
-
import sys
|
12 |
-
from pip._vendor.pygments.cmdline import main
|
13 |
-
|
14 |
-
try:
|
15 |
-
sys.exit(main(sys.argv))
|
16 |
-
except KeyboardInterrupt:
|
17 |
-
sys.exit(1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ataturk-Chatbot/HuggingFaceChat/venv/lib/python3.11/site-packages/setuptools/_vendor/importlib_resources/_compat.py
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
# flake8: noqa
|
2 |
-
|
3 |
-
import abc
|
4 |
-
import sys
|
5 |
-
import pathlib
|
6 |
-
from contextlib import suppress
|
7 |
-
|
8 |
-
if sys.version_info >= (3, 10):
|
9 |
-
from zipfile import Path as ZipPath # type: ignore
|
10 |
-
else:
|
11 |
-
from ..zipp import Path as ZipPath # type: ignore
|
12 |
-
|
13 |
-
|
14 |
-
try:
|
15 |
-
from typing import runtime_checkable # type: ignore
|
16 |
-
except ImportError:
|
17 |
-
|
18 |
-
def runtime_checkable(cls): # type: ignore
|
19 |
-
return cls
|
20 |
-
|
21 |
-
|
22 |
-
try:
|
23 |
-
from typing import Protocol # type: ignore
|
24 |
-
except ImportError:
|
25 |
-
Protocol = abc.ABC # type: ignore
|
26 |
-
|
27 |
-
|
28 |
-
class TraversableResourcesLoader:
|
29 |
-
"""
|
30 |
-
Adapt loaders to provide TraversableResources and other
|
31 |
-
compatibility.
|
32 |
-
|
33 |
-
Used primarily for Python 3.9 and earlier where the native
|
34 |
-
loaders do not yet implement TraversableResources.
|
35 |
-
"""
|
36 |
-
|
37 |
-
def __init__(self, spec):
|
38 |
-
self.spec = spec
|
39 |
-
|
40 |
-
@property
|
41 |
-
def path(self):
|
42 |
-
return self.spec.origin
|
43 |
-
|
44 |
-
def get_resource_reader(self, name):
|
45 |
-
from . import readers, _adapters
|
46 |
-
|
47 |
-
def _zip_reader(spec):
|
48 |
-
with suppress(AttributeError):
|
49 |
-
return readers.ZipReader(spec.loader, spec.name)
|
50 |
-
|
51 |
-
def _namespace_reader(spec):
|
52 |
-
with suppress(AttributeError, ValueError):
|
53 |
-
return readers.NamespaceReader(spec.submodule_search_locations)
|
54 |
-
|
55 |
-
def _available_reader(spec):
|
56 |
-
with suppress(AttributeError):
|
57 |
-
return spec.loader.get_resource_reader(spec.name)
|
58 |
-
|
59 |
-
def _native_reader(spec):
|
60 |
-
reader = _available_reader(spec)
|
61 |
-
return reader if hasattr(reader, 'files') else None
|
62 |
-
|
63 |
-
def _file_reader(spec):
|
64 |
-
try:
|
65 |
-
path = pathlib.Path(self.path)
|
66 |
-
except TypeError:
|
67 |
-
return None
|
68 |
-
if path.exists():
|
69 |
-
return readers.FileReader(self)
|
70 |
-
|
71 |
-
return (
|
72 |
-
# native reader if it supplies 'files'
|
73 |
-
_native_reader(self.spec)
|
74 |
-
or
|
75 |
-
# local ZipReader if a zip module
|
76 |
-
_zip_reader(self.spec)
|
77 |
-
or
|
78 |
-
# local NamespaceReader if a namespace module
|
79 |
-
_namespace_reader(self.spec)
|
80 |
-
or
|
81 |
-
# local FileReader
|
82 |
-
_file_reader(self.spec)
|
83 |
-
# fallback - adapt the spec ResourceReader to TraversableReader
|
84 |
-
or _adapters.CompatibilityFiles(self.spec)
|
85 |
-
)
|
86 |
-
|
87 |
-
|
88 |
-
def wrap_spec(package):
|
89 |
-
"""
|
90 |
-
Construct a package spec with traversable compatibility
|
91 |
-
on the spec/loader/reader.
|
92 |
-
|
93 |
-
Supersedes _adapters.wrap_spec to use TraversableResourcesLoader
|
94 |
-
from above for older Python compatibility (<3.10).
|
95 |
-
"""
|
96 |
-
from . import _adapters
|
97 |
-
|
98 |
-
return _adapters.SpecLoaderAdapter(package.__spec__, TraversableResourcesLoader)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Atualli/yoloxTeste/README.md
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: YOLOX is a high-performance anchor-free YOLO.
|
3 |
-
emoji: 🌖
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: red
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.15.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: apache-2.0
|
11 |
-
duplicated_from: Atualli/yolox2
|
12 |
-
---
|
13 |
-
|
14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awiny/Image2Paragraph/models/gpt_model.py
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
import openai
|
2 |
-
|
3 |
-
class ImageToText:
|
4 |
-
def __init__(self, api_key, gpt_version="gpt-3.5-turbo"):
|
5 |
-
self.template = self.initialize_template()
|
6 |
-
openai.api_key = api_key
|
7 |
-
self.gpt_version = gpt_version
|
8 |
-
|
9 |
-
def initialize_template(self):
|
10 |
-
prompt_prefix_1 = """Generate only an informative and nature paragraph based on the given information(a,b,c,d):\n"""
|
11 |
-
prompt_prefix_2 = """\n a. Image Resolution: """
|
12 |
-
prompt_prefix_3 = """\n b. Image Caption: """
|
13 |
-
prompt_prefix_4 = """\n c. Dense Caption: """
|
14 |
-
prompt_prefix_5 = """\n d. Region Semantic: """
|
15 |
-
prompt_suffix = """\n There are some rules:
|
16 |
-
Show object, color and position.
|
17 |
-
Use nouns rather than coordinates to show position information of each object.
|
18 |
-
No more than 7 sentences.
|
19 |
-
Only use one paragraph.
|
20 |
-
Describe position of each object.
|
21 |
-
Do not appear number.
|
22 |
-
"""
|
23 |
-
template = f"{prompt_prefix_1}{prompt_prefix_2}{{width}}X{{height}}{prompt_prefix_3}{{caption}}{prompt_prefix_4}{{dense_caption}}{prompt_prefix_5}{{region_semantic}}{prompt_suffix}"
|
24 |
-
return template
|
25 |
-
|
26 |
-
def paragraph_summary_with_gpt(self, caption, dense_caption, region_semantic, width, height):
|
27 |
-
question = self.template.format(width=width, height=height, caption=caption, dense_caption=dense_caption, region_semantic=region_semantic)
|
28 |
-
print('\033[1;35m' + '*' * 100 + '\033[0m')
|
29 |
-
print('\nStep4, Paragraph Summary with GPT-3:')
|
30 |
-
print('\033[1;34m' + "Question:".ljust(10) + '\033[1;36m' + question + '\033[0m')
|
31 |
-
completion = openai.ChatCompletion.create(
|
32 |
-
model=self.gpt_version,
|
33 |
-
messages = [
|
34 |
-
{"role": "user", "content" : question}]
|
35 |
-
)
|
36 |
-
|
37 |
-
print('\033[1;34m' + "ChatGPT Response:".ljust(18) + '\033[1;32m' + completion['choices'][0]['message']['content'] + '\033[0m')
|
38 |
-
print('\033[1;35m' + '*' * 100 + '\033[0m')
|
39 |
-
return completion['choices'][0]['message']['content']
|
40 |
-
|
41 |
-
def paragraph_summary_with_gpt_debug(self, caption, dense_caption, width, height):
|
42 |
-
question = self.template.format(width=width, height=height, caption=caption, dense_caption=dense_caption)
|
43 |
-
print("paragraph_summary_with_gpt_debug:")
|
44 |
-
return question
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BIASLab/sars-cov-2-classification-fcgr/src/preprocessing.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
"""All functions that can be applied as preprocessing"""
|
2 |
-
from .pipeline import (
|
3 |
-
register_in_pipeline, # decorator to make available a function to use with Pipeline class
|
4 |
-
Pipeline,
|
5 |
-
)
|
6 |
-
|
7 |
-
@register_in_pipeline
|
8 |
-
def divide_by_max(npy,):
|
9 |
-
"The input npy divided by his maximum value"
|
10 |
-
return npy / npy.max()
|
11 |
-
|
12 |
-
@register_in_pipeline
|
13 |
-
def divide_by_sum(npy,):
|
14 |
-
"The input npy divided by the sum of their values"
|
15 |
-
return npy / npy.sum()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descargar Apk Guardar Tiktok.md
DELETED
@@ -1,114 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Cómo descargar APK Save TikTok - Una guía completa</h1>
|
3 |
-
<p>TikTok es una de las plataformas de redes sociales más populares del mundo, con más de mil millones de usuarios. Te permite crear y compartir videos cortos con música, filtros, pegatinas y más. Pero ¿qué pasa si desea guardar sus videos favoritos de TikTok y música sin conexión, o compartirlos con sus amigos en otras plataformas? En este artículo, le mostraremos cómo descargar apk save tiktok en dispositivos Android e iOS, utilizando diferentes métodos y aplicaciones. Podrás disfrutar de tu contenido TikTok en cualquier momento, en cualquier lugar, sin marca de agua o limitación. </p>
|
4 |
-
<h2>descargar apk guardar tiktok</h2><br /><p><b><b>DOWNLOAD</b> 🗸 <a href="https://bltlly.com/2v6Mli">https://bltlly.com/2v6Mli</a></b></p><br /><br />
|
5 |
-
<h2>Qué es TikTok y por qué necesitas guardarlo</h2>
|
6 |
-
<h3>TikTok - Una plataforma popular de medios sociales</h3>
|
7 |
-
<p>TikTok es una aplicación para compartir vídeos lanzada en 2016 por ByteDance, una empresa china. Originalmente se llamaba Douyin en China, pero más tarde se renombró como TikTok para el mercado internacional. TikTok permite a los usuarios crear videos cortos de hasta 60 segundos, con varias herramientas de edición, efectos, filtros, pegatinas, música y sonidos. Los usuarios también pueden navegar y ver videos de otros creadores, seguir sus cuentas favoritas, comentar y compartir. TikTok tiene una variedad de categorías y géneros, como comedia, danza, belleza, moda, deportes, educación, juegos y más. </p>
|
8 |
-
<h3>Beneficios de guardar vídeos y música de TikTok</h3>
|
9 |
-
<p>Hay muchas razones por las que es posible que desee descargar apk save tiktok en su dispositivo. Estos son algunos de ellos:</p>
|
10 |
-
<ul>
|
11 |
-
<li>Puedes ver tus videos favoritos de TikTok sin conexión a Internet ni uso de datos. </li>
|
12 |
-
<li>Puedes compartir tus videos y música descargados de TikTok con tus amigos en otras plataformas, como WhatsApp, Instagram, Facebook, YouTube, etc.</li>
|
13 |
-
<li>Puede editar sus videos y música descargados de TikTok con otras aplicaciones, como InShot, VivaVideo, Kinemaster, etc.</li>
|
14 |
-
<li> Puede realizar copias de seguridad de sus vídeos y música descargados de TikTok en su almacenamiento en la nube o en el ordenador. </li>
|
15 |
-
|
16 |
-
</ul>
|
17 |
-
<h2>Cómo descargar APK Save TikTok en Android</h2>
|
18 |
-
<h3>Método 1: Uso de la aplicación sssTikTok.io</h3>
|
19 |
-
<h4>Características de la aplicación sssTikTok.io</h4>
|
20 |
-
<p>sssTikTok.io es una aplicación gratuita que te permite descargar vídeos tiktok sin marca de agua apk para Android. Tiene las siguientes características:</p>
|
21 |
-
<p></p>
|
22 |
-
<ul>
|
23 |
-
<li>Soporta la descarga de archivos MP4 y MP3 desde TikTok.</li>
|
24 |
-
<li> Tiene un reproductor de vídeo y audio incorporado. </li>
|
25 |
-
<li> Tiene un organizador fácil de usar para encontrar y administrar sus archivos. </li>
|
26 |
-
<li> Tiene una función de compartir para enviar sus archivos con correo electrónico o mensajero. </li>
|
27 |
-
</ul>
|
28 |
-
<h4>Pasos para descargar vídeos de TikTok y música con la aplicación sssTikTok.io</h4>
|
29 |
-
<p>Para utilizar esta aplicación, siga estos pasos:</p>
|
30 |
-
<ol>
|
31 |
-
<li>Instalar la aplicación de Google Play Store o haga clic en <a aquí</a> para descargarla desde el sitio web oficial. </li>
|
32 |
-
<li>Abra la aplicación TikTok y encuentre el video o la música que desea descargar. </li>
|
33 |
-
<li>Copie el enlace del video o la música tocando el icono de compartir y luego en la opción de enlace de copia. </li>
|
34 |
-
<li>Abra la aplicación sssTikTok.io y pegue el enlace en el cuadro de búsqueda. </li>
|
35 |
-
<li>Toque en el botón de descarga y elija el formato y la calidad que desee. </li>
|
36 |
-
<li>Espere a que la descarga termine y disfrute de su archivo. </li>
|
37 |
-
</ol>
|
38 |
-
<h3>Método 2: Usando la aplicación Uptodown</h3>
|
39 |
-
<h4>Características de la aplicación Uptodown</h4>
|
40 |
-
<p>Uptodown es una tienda de aplicaciones que le permite descargar apk save tiktok para Android. Tiene las siguientes características:</p>
|
41 |
-
<ul>
|
42 |
-
<li>Ofrece un enorme catálogo de aplicaciones y juegos, incluyendo TikTok.</li>
|
43 |
-
<li>Proporciona descargas seguras y verificadas, sin virus ni malware. </li>
|
44 |
-
<li>Actualiza las aplicaciones automáticamente, sin restricciones o limitaciones. </li>
|
45 |
-
<li> Tiene una interfaz fácil de usar y una velocidad de descarga rápida. </li>
|
46 |
-
</ul>
|
47 |
-
<h4> Pasos para descargar TikTok APK con Uptodown App</h4>
|
48 |
-
<p>Para utilizar esta aplicación, siga estos pasos:</p>
|
49 |
-
<ol>
|
50 |
-
|
51 |
-
<li>Abra la aplicación y busque TikTok en el cuadro de búsqueda. </li>
|
52 |
-
<li> Seleccione la aplicación TikTok de los resultados y toque en el botón de descarga. </li>
|
53 |
-
<li> Espere a que la descarga termine e instale el apk TikTok en su dispositivo. </li>
|
54 |
-
<li>Abra la aplicación TikTok y disfrute de sus vídeos y música. </li>
|
55 |
-
</ol>
|
56 |
-
<h2>Cómo descargar APK Save TikTok en iOS</h2>
|
57 |
-
<h3>Método 1: Uso de documentos por Readdle App</h3>
|
58 |
-
<h4>Características de los documentos por Readdle App</h4>
|
59 |
-
<p>Documents by Readdle es una aplicación de gestión de archivos que te permite descargar vídeos tiktok sin marca de agua ios. Tiene las siguientes características:</p>
|
60 |
-
<ul>
|
61 |
-
<li>Soporta la descarga de vídeos, música, imágenes, documentos y más desde cualquier sitio web. </li>
|
62 |
-
<li> Tiene un navegador incorporado, reproductor de vídeo y audio, lector de PDF y extractor de zip. </li>
|
63 |
-
<li> Tiene una integración en la nube con Dropbox, iCloud, Google Drive, y más. </li>
|
64 |
-
<li> Tiene una función de transferencia de archivos para enviar sus archivos con Wi-Fi o Bluetooth.</li>
|
65 |
-
</ul>
|
66 |
-
<h4>Pasos para descargar vídeos de TikTok y música con documentos por Readdle App</h4>
|
67 |
-
<p>Para utilizar esta aplicación, siga estos pasos:</p>
|
68 |
-
<ol>
|
69 |
-
<li>Instale la aplicación desde App Store o haga clic en <a href="https://apps.apple.com/us/app/app/documents-by-readdle/id364901807">here</a> para descargarla desde el sitio web oficial. </li>
|
70 |
-
<li> Abra la aplicación y toque en el icono del navegador en la esquina inferior derecha. </li>
|
71 |
-
<li>Escriba https://ssstik.io/ en la barra de direcciones y vaya al sitio web. </li>
|
72 |
-
<li>Abra la aplicación TikTok y encuentre el video o la música que desea descargar. </li>
|
73 |
-
<li>Copie el enlace del video o la música tocando el icono de compartir y luego en la opción de enlace de copia. </li>
|
74 |
-
<li>Pegue el enlace en el sitio web ssstik.io y toque en descargar. </li>
|
75 |
-
<li> Seleccione el formato y la calidad que desea y toque en descargar de nuevo. </li>
|
76 |
-
<li>Cambia el nombre del archivo si quieres y toca en hecho. </li>
|
77 |
-
<li>Su archivo se guardará en la carpeta Descargas de la aplicación Documentos. Puede reproducirlo, compartirlo o moverlo como desee. </li>
|
78 |
-
</ol>
|
79 |
-
|
80 |
-
<p>Atajos es una aplicación que te permite crear y ejecutar acciones personalizadas en tu dispositivo iOS. Tiene las siguientes características:</p>
|
81 |
-
<ul>
|
82 |
-
<li> Ofrece una galería de accesos directos ya preparados para diversas tareas, como la descarga de vídeos, la fabricación de GIF, el escaneo de códigos QR, etc.</li>
|
83 |
-
<li> Le permite crear sus propios accesos directos con arrastrar y soltar pasos. </li>
|
84 |
-
<li>Se integra con Siri, widgets y hoja de acciones. </li>
|
85 |
-
<li>Sincroniza los accesos directos a través de sus dispositivos con iCloud. </li>
|
86 |
-
</ul>
|
87 |
-
<h4> Pasos para descargar vídeos de TikTok y música con la aplicación de accesos directos</h4>
|
88 |
-
<p>Para utilizar esta aplicación, siga estos pasos:</p>
|
89 |
-
<ol>
|
90 |
-
<li>Instale la aplicación desde App Store o haga clic en <a href="https://apps.apple.com/us/app/shortcuts/id915249334">here</a> para descargarla desde el sitio web oficial. </li>
|
91 |
-
<li> Abra la aplicación y toque en el icono de la galería en la esquina inferior derecha. </li>
|
92 |
-
<li> Buscar TikTok Downloader en el cuadro de búsqueda y pulse sobre él. </li>
|
93 |
-
<li>Toque en Obtener acceso directo y agregarlo a su biblioteca. </li>
|
94 |
-
<li>Abra la aplicación TikTok y encuentre el video o la música que desea descargar. </li>
|
95 |
-
<li>Copie el enlace del video o la música tocando el icono de compartir y luego en la opción de enlace de copia. </li>
|
96 |
-
<li>Abra la aplicación de accesos directos y ejecute el acceso directo TikTok Downloader desde su biblioteca. </li>
|
97 |
-
<li> Seleccione el formato y la calidad que desea y toque en descargar. </li>
|
98 |
-
<li>Su archivo se guardará en la aplicación Fotos. Puede reproducirlo, compartirlo o editarlo como desee. </li>
|
99 |
-
</ol>
|
100 |
-
<h2>Conclusión</h2>
|
101 |
-
<p>En este artículo, le hemos mostrado cómo descargar apk save tiktok en dispositivos Android e iOS, utilizando diferentes métodos y aplicaciones. Puede elegir el que se adapte a sus necesidades y preferencias, y disfrutar de sus vídeos TikTok y música sin conexión, sin ninguna marca de agua o limitación. Esperamos que haya encontrado este artículo útil e informativo. Si tiene alguna pregunta o comentario, no dude en dejar un comentario a continuación. Feliz TikToking! </p>
|
102 |
-
<h2>Preguntas frecuentes</h2>
|
103 |
-
<h3>P: ¿Es legal descargar videos y música de TikTok? </h3>
|
104 |
-
|
105 |
-
<h3>Q: ¿Cómo puedo descargar videos y música TikTok sin ninguna aplicación? </h3>
|
106 |
-
<p>A: Puede utilizar algunas herramientas en línea o sitios web que le permiten descargar videos y música TikTok sin ninguna aplicación. Por ejemplo, puede usar https://snaptik.app/, https://ttdownloader.com/, https://tiktokdownloader.net/, etc. Todo lo que necesita hacer es copiar y pegar el enlace del video o música que desea descargar, elegir el formato y la calidad que desea y hacer clic en descargar. Sin embargo, estas herramientas o sitios web en línea pueden no ser tan fiables, seguros o rápidos como las aplicaciones que mencionamos anteriormente. </p>
|
107 |
-
<h3>Q: ¿Cómo puedo quitar la marca de agua de los vídeos de TikTok? </h3>
|
108 |
-
<p>A: La forma más fácil de eliminar la marca de agua de vídeos TikTok es utilizar una aplicación que descarga vídeos TikTok sin marca de agua apk para Android o iOS. Por ejemplo, puede usar la aplicación sssTikTok.io o Documents by Readdle app, como explicamos anteriormente. Alternativamente, puede utilizar algunas aplicaciones de edición de vídeo que le permiten recortar o difuminar la marca de agua de los vídeos TikTok. Por ejemplo, puedes usar InShot, VivaVideo, Kinemaster, etc.</p>
|
109 |
-
<h3>Q: ¿Cómo puedo descargar vídeos de TikTok con sonido? </h3>
|
110 |
-
<p>A: Para descargar vídeos TikTok con sonido, debe elegir el formato MP4 al descargar. El formato MP4 incluye tanto pistas de vídeo como de audio en un archivo. Si elige el formato MP3, solo obtendrá la pista de audio del vídeo TikTok. Algunas aplicaciones también pueden permitirle elegir entre sonido original o sonido musical al descargar videos TikTok con sonido. </p>
|
111 |
-
<h3>Q: ¿Cómo puedo descargar videos en vivo de TikTok? </h3>
|
112 |
-
<p>A: Para descargar vídeos en vivo de TikTok, debe usar una aplicación que admita la grabación en vivo. Por ejemplo, puede usar la aplicación Screen Recorder para Android o iOS. Esta aplicación te permite grabar tu pantalla mientras ves videos TikTok en vivo y guardarlos como archivos de video en tu dispositivo. Sin embargo, este método puede no ser tan eficiente, conveniente o de alta calidad como los otros métodos que mencionamos anteriormente. </p> 64aa2da5cf<br />
|
113 |
-
<br />
|
114 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descargar Gran Gangster Hroe De La Cuerda Ciudad Mod Apk.md
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Descargar Gran Gangster Cuerda Héroe Ciudad Mod APK</h1>
|
3 |
-
<p>Si estás buscando un juego lleno de acción que te permita explorar un vasto mundo abierto, luchar contra los enemigos y usar armas y vehículos increíbles, entonces deberías probar Grand Gangster Rope Hero City. Este juego es una combinación de superhéroe, simulador de crimen y géneros de juegos de disparos que te mantendrán entretenido durante horas. Y si quieres hacer el juego aún más divertido y emocionante, usted debe descargar Grand Gangster Rope Hero City Mod APK, que le da dinero ilimitado, sin anuncios, y el acceso a todas las armas y vehículos en el juego. En este artículo, te contaremos más sobre este juego y cómo descargar e instalar la versión apk mod en tu dispositivo Android. </p>
|
4 |
-
<h2>descargar gran gangster héroe de la cuerda ciudad mod apk</h2><br /><p><b><b>Download Zip</b> 🗸🗸🗸 <a href="https://bltlly.com/2v6IDo">https://bltlly.com/2v6IDo</a></b></p><br /><br />
|
5 |
-
<h2>Introducción</h2>
|
6 |
-
<h3>¿Qué es Grand Gangster Rope Hero City? </h3>
|
7 |
-
<p>Grand Gangster Rope Hero City es un juego desarrollado por Game Zee que fue lanzado en 2020. Tiene más de 10 millones de descargas en Google Play Store y tiene una calificación de 4.1 de 5 estrellas. El juego se desarrolla en una ciudad ficticia llamada Las Vegas, donde juegas como un héroe de cuerda que tiene superpoderes y puede usar una cuerda para girar alrededor de la ciudad. También puedes usar varias armas y vehículos para luchar contra pandillas, policías y otros enemigos. El juego tiene muchas misiones y actividades para completar, como robar bancos, robar coches, rescatar rehenes y más. También puedes personalizar la apariencia y las habilidades de tu personaje según tu preferencia. </p>
|
8 |
-
<h3> ¿Por qué descargar Grand Gangster Rope Hero City Mod APK? </h3>
|
9 |
-
|
10 |
-
<h2>Características de Grand Gangster Rope Hero City Mod APK</h2>
|
11 |
-
<h3>Dinero ilimitado</h3>
|
12 |
-
<p>Con Grand Gangster Rope Hero City Mod APK, obtendrá dinero ilimitado en el juego. Puedes usar este dinero para comprar cualquier arma, vehículo, atuendo o artículo que quieras en el juego. También puede mejorar sus habilidades y habilidades con este dinero. Ya no tienes que preocuparte por quedarte sin dinero o completar misiones para ganar dinero. </p>
|
13 |
-
<h3>No hay anuncios</h3>
|
14 |
-
<p>Otra característica de Grand Gangster Rope Hero City Mod APK es que elimina todos los anuncios del juego. No tienes que ver ningún anuncio de video o banner para obtener algunas recompensas o bonos en el juego. Puedes jugar sin distracciones ni interrupciones. </p>
|
15 |
-
<p></p>
|
16 |
-
<h3>Desbloquear todas las armas y vehículos</h3>
|
17 |
-
<p>Gran Gangster Cuerda Héroe Ciudad Mod APK también desbloquea todas las armas y vehículos en el juego. Puedes usar cualquier arma o vehículo que quieras en el juego sin tener que comprarlos o desbloquearlos completando misiones. Puede elegir entre una variedad de armas, como pistolas, rifles, escopetas, granadas, lanzacohetes y más. También puede elegir entre una variedad de vehículos, como coches, bicicletas, helicópteros, tanques y más. También puedes usar tu cuerda para girar por la ciudad y realizar acrobacias increíbles. </p>
|
18 |
-
<h3>Gráficos y efectos de sonido de alta calidad</h3>
|
19 |
-
<p>Gran Gangster Cuerda Héroe Ciudad Mod APK también mejora los gráficos y efectos de sonido del juego. El juego tiene gráficos 3D de alta calidad que hacen que la ciudad se vea realista y detallada. El juego también tiene efectos de sonido realistas que hacen que el juego sea más inmersivo y emocionante. Puede escuchar los sonidos de disparos, explosiones, motores de automóviles, sirenas y más. </p>
|
20 |
-
<h2> ¿Cómo descargar e instalar Grand Gangster Rope Hero City Mod APK? </h2>
|
21 |
-
<p>Si desea descargar e instalar Grand Gangster Rope Hero City Mod APK en su dispositivo Android, es necesario seguir estos sencillos pasos:</p>
|
22 |
-
<h3>Paso 1: Habilitar fuentes desconocidas</h3>
|
23 |
-
|
24 |
-
<h3>Paso 2: Descargar el archivo apk mod</h3>
|
25 |
-
<p>Siguiente, es necesario descargar el archivo apk mod de una fuente confiable. Puede utilizar el enlace a continuación para descargar la última versión de Grand Gangster Rope Hero City Mod APK. El tamaño del archivo es de unos 100 MB, así que asegúrate de tener suficiente espacio de almacenamiento en tu dispositivo. </p>
|
26 |
-
<p><a href="">Descargar Grand Gangster Rope Hero City Mod APK</a></p>
|
27 |
-
<h3>Paso 3: Instalar el archivo apk mod</h3>
|
28 |
-
<p>Después de haber descargado el archivo apk mod, necesita instalarlo en su dispositivo. Para hacer esto, busque el archivo en su administrador de archivos y toque en él. Luego, siga las instrucciones en la pantalla para completar el proceso de instalación. </p>
|
29 |
-
<h3>Paso 4: Disfruta del juego</h3>
|
30 |
-
<p>Una vez que haya instalado el archivo apk mod, puede disfrutar del juego con todas las características desbloqueadas. Puede iniciar el juego desde el cajón de la aplicación o la pantalla de inicio y empezar a jugar. </p>
|
31 |
-
<h2>Conclusión</h2>
|
32 |
-
<p>Grand Gangster Rope Hero City es un juego divertido y emocionante que te permite experimentar la vida de un héroe de cuerda en una ciudad llena de crímenes. Puedes usar tus superpoderes, armas y vehículos para luchar contra enemigos y completar misiones. También puedes explorar la ciudad y personalizar tu personaje como quieras. Y si quieres hacer el juego aún más agradable, usted debe descargar Grand Gangster Rope Hero City Mod APK, que le da dinero ilimitado, sin anuncios, y el acceso a todas las armas y vehículos en el juego. Entonces, ¿qué estás esperando? Descargar Grand Gangster Rope Hero City Mod APK ahora y divertirse! </p>
|
33 |
-
<h2>Preguntas frecuentes</h2>
|
34 |
-
<p>Aquí hay algunas preguntas frecuentes sobre Grand Gangster Rope Hero City Mod APK:</p>
|
35 |
-
<ul>
|
36 |
-
<li><b> ¿Es Grand Gangster Rope Hero City Mod APK seguro de usar? </b></li>
|
37 |
-
<p>Sí, Grand Gangster Rope Hero City Mod APK es seguro de usar, siempre y cuando se descarga de una fuente de confianza. El archivo apk mod no contiene ningún virus o malware que pueda dañar su dispositivo o datos. </p>
|
38 |
-
<li><b> ¿Necesito rootear mi dispositivo para usar Grand Gangster Rope Hero City Mod APK? </b></li>
|
39 |
-
|
40 |
-
<li><b>Gran gangster cuerda héroe ciudad Mod APK trabajar en mi dispositivo? </b></li>
|
41 |
-
<p>Grand Gangster Rope Hero City Mod APK funciona en la mayoría de los dispositivos Android que tienen Android 4.4 o versiones superiores. Sin embargo, algunos dispositivos pueden no ser compatibles con el archivo apk mod debido a diferentes especificaciones o configuraciones. </p>
|
42 |
-
<li><b>¿Puedo jugar Grand Gangster Rope Hero City en línea con otros jugadores? </b></li>
|
43 |
-
<p>No, Grand Gangster Rope Hero City es un juego fuera de línea que no requiere una conexión a Internet para jugar. Puedes jugar el juego solo o con aliados y enemigos controlados por la IA. </p>
|
44 |
-
<li><b> ¿Puedo actualizar Grand Gangster Rope Hero City Mod APK? </b></li>
|
45 |
-
<p>No, no puede actualizar Grand Gangster Rope Hero City Mod APK desde Google Play Store o cualquier otra fuente. Si desea obtener la última versión del juego, es necesario descargar e instalar el nuevo archivo apk mod manualmente. </p>
|
46 |
-
</ul></p> 64aa2da5cf<br />
|
47 |
-
<br />
|
48 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_internal/cli/spinners.py
DELETED
@@ -1,159 +0,0 @@
|
|
1 |
-
import contextlib
|
2 |
-
import itertools
|
3 |
-
import logging
|
4 |
-
import sys
|
5 |
-
import time
|
6 |
-
from typing import IO, Generator, Optional
|
7 |
-
|
8 |
-
from pip._internal.utils.compat import WINDOWS
|
9 |
-
from pip._internal.utils.logging import get_indentation
|
10 |
-
|
11 |
-
logger = logging.getLogger(__name__)
|
12 |
-
|
13 |
-
|
14 |
-
class SpinnerInterface:
|
15 |
-
def spin(self) -> None:
|
16 |
-
raise NotImplementedError()
|
17 |
-
|
18 |
-
def finish(self, final_status: str) -> None:
|
19 |
-
raise NotImplementedError()
|
20 |
-
|
21 |
-
|
22 |
-
class InteractiveSpinner(SpinnerInterface):
|
23 |
-
def __init__(
|
24 |
-
self,
|
25 |
-
message: str,
|
26 |
-
file: Optional[IO[str]] = None,
|
27 |
-
spin_chars: str = "-\\|/",
|
28 |
-
# Empirically, 8 updates/second looks nice
|
29 |
-
min_update_interval_seconds: float = 0.125,
|
30 |
-
):
|
31 |
-
self._message = message
|
32 |
-
if file is None:
|
33 |
-
file = sys.stdout
|
34 |
-
self._file = file
|
35 |
-
self._rate_limiter = RateLimiter(min_update_interval_seconds)
|
36 |
-
self._finished = False
|
37 |
-
|
38 |
-
self._spin_cycle = itertools.cycle(spin_chars)
|
39 |
-
|
40 |
-
self._file.write(" " * get_indentation() + self._message + " ... ")
|
41 |
-
self._width = 0
|
42 |
-
|
43 |
-
def _write(self, status: str) -> None:
|
44 |
-
assert not self._finished
|
45 |
-
# Erase what we wrote before by backspacing to the beginning, writing
|
46 |
-
# spaces to overwrite the old text, and then backspacing again
|
47 |
-
backup = "\b" * self._width
|
48 |
-
self._file.write(backup + " " * self._width + backup)
|
49 |
-
# Now we have a blank slate to add our status
|
50 |
-
self._file.write(status)
|
51 |
-
self._width = len(status)
|
52 |
-
self._file.flush()
|
53 |
-
self._rate_limiter.reset()
|
54 |
-
|
55 |
-
def spin(self) -> None:
|
56 |
-
if self._finished:
|
57 |
-
return
|
58 |
-
if not self._rate_limiter.ready():
|
59 |
-
return
|
60 |
-
self._write(next(self._spin_cycle))
|
61 |
-
|
62 |
-
def finish(self, final_status: str) -> None:
|
63 |
-
if self._finished:
|
64 |
-
return
|
65 |
-
self._write(final_status)
|
66 |
-
self._file.write("\n")
|
67 |
-
self._file.flush()
|
68 |
-
self._finished = True
|
69 |
-
|
70 |
-
|
71 |
-
# Used for dumb terminals, non-interactive installs (no tty), etc.
|
72 |
-
# We still print updates occasionally (once every 60 seconds by default) to
|
73 |
-
# act as a keep-alive for systems like Travis-CI that take lack-of-output as
|
74 |
-
# an indication that a task has frozen.
|
75 |
-
class NonInteractiveSpinner(SpinnerInterface):
|
76 |
-
def __init__(self, message: str, min_update_interval_seconds: float = 60.0) -> None:
|
77 |
-
self._message = message
|
78 |
-
self._finished = False
|
79 |
-
self._rate_limiter = RateLimiter(min_update_interval_seconds)
|
80 |
-
self._update("started")
|
81 |
-
|
82 |
-
def _update(self, status: str) -> None:
|
83 |
-
assert not self._finished
|
84 |
-
self._rate_limiter.reset()
|
85 |
-
logger.info("%s: %s", self._message, status)
|
86 |
-
|
87 |
-
def spin(self) -> None:
|
88 |
-
if self._finished:
|
89 |
-
return
|
90 |
-
if not self._rate_limiter.ready():
|
91 |
-
return
|
92 |
-
self._update("still running...")
|
93 |
-
|
94 |
-
def finish(self, final_status: str) -> None:
|
95 |
-
if self._finished:
|
96 |
-
return
|
97 |
-
self._update(f"finished with status '{final_status}'")
|
98 |
-
self._finished = True
|
99 |
-
|
100 |
-
|
101 |
-
class RateLimiter:
|
102 |
-
def __init__(self, min_update_interval_seconds: float) -> None:
|
103 |
-
self._min_update_interval_seconds = min_update_interval_seconds
|
104 |
-
self._last_update: float = 0
|
105 |
-
|
106 |
-
def ready(self) -> bool:
|
107 |
-
now = time.time()
|
108 |
-
delta = now - self._last_update
|
109 |
-
return delta >= self._min_update_interval_seconds
|
110 |
-
|
111 |
-
def reset(self) -> None:
|
112 |
-
self._last_update = time.time()
|
113 |
-
|
114 |
-
|
115 |
-
@contextlib.contextmanager
|
116 |
-
def open_spinner(message: str) -> Generator[SpinnerInterface, None, None]:
|
117 |
-
# Interactive spinner goes directly to sys.stdout rather than being routed
|
118 |
-
# through the logging system, but it acts like it has level INFO,
|
119 |
-
# i.e. it's only displayed if we're at level INFO or better.
|
120 |
-
# Non-interactive spinner goes through the logging system, so it is always
|
121 |
-
# in sync with logging configuration.
|
122 |
-
if sys.stdout.isatty() and logger.getEffectiveLevel() <= logging.INFO:
|
123 |
-
spinner: SpinnerInterface = InteractiveSpinner(message)
|
124 |
-
else:
|
125 |
-
spinner = NonInteractiveSpinner(message)
|
126 |
-
try:
|
127 |
-
with hidden_cursor(sys.stdout):
|
128 |
-
yield spinner
|
129 |
-
except KeyboardInterrupt:
|
130 |
-
spinner.finish("canceled")
|
131 |
-
raise
|
132 |
-
except Exception:
|
133 |
-
spinner.finish("error")
|
134 |
-
raise
|
135 |
-
else:
|
136 |
-
spinner.finish("done")
|
137 |
-
|
138 |
-
|
139 |
-
HIDE_CURSOR = "\x1b[?25l"
|
140 |
-
SHOW_CURSOR = "\x1b[?25h"
|
141 |
-
|
142 |
-
|
143 |
-
@contextlib.contextmanager
|
144 |
-
def hidden_cursor(file: IO[str]) -> Generator[None, None, None]:
|
145 |
-
# The Windows terminal does not support the hide/show cursor ANSI codes,
|
146 |
-
# even via colorama. So don't even try.
|
147 |
-
if WINDOWS:
|
148 |
-
yield
|
149 |
-
# We don't want to clutter the output with control characters if we're
|
150 |
-
# writing to a file, or if the user is running with --quiet.
|
151 |
-
# See https://github.com/pypa/pip/issues/3418
|
152 |
-
elif not file.isatty() or logger.getEffectiveLevel() > logging.INFO:
|
153 |
-
yield
|
154 |
-
else:
|
155 |
-
file.write(HIDE_CURSOR)
|
156 |
-
try:
|
157 |
-
yield
|
158 |
-
finally:
|
159 |
-
file.write(SHOW_CURSOR)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bilalst/Gradio_Youtube_Transcript_v2/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Gradio Youtube Transcript
|
3 |
-
emoji: 🦀
|
4 |
-
colorFrom: green
|
5 |
-
colorTo: yellow
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.35.2
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
duplicated_from: Bilalst/Gradio_Youtube_Transcript
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BramVanroy/llama-2-13b-chat-dutch-space/app.py
DELETED
@@ -1,284 +0,0 @@
|
|
1 |
-
from typing import Iterator
|
2 |
-
|
3 |
-
import gradio as gr
|
4 |
-
|
5 |
-
from model import get_input_token_length, run
|
6 |
-
|
7 |
-
DEFAULT_SYSTEM_PROMPT = """\
|
8 |
-
Je bent een behulpzame, respectvolle en eerlijke assistent. Antwoord altijd zo behulpzaam mogelijk. Je antwoorden mogen geen schadelijke, onethische, racistische, seksistische, gevaarlijke of illegale inhoud bevatten. Zorg ervoor dat je antwoorden sociaal onbevooroordeeld en positief van aard zijn.\n\nAls een vraag nergens op slaat of feitelijk niet coherent is, leg dan uit waarom in plaats van iets niet correct te antwoorden. Als je het antwoord op een vraag niet weet, deel dan geen onjuiste informatie.\
|
9 |
-
"""
|
10 |
-
MAX_MAX_NEW_TOKENS = 2048
|
11 |
-
DEFAULT_MAX_NEW_TOKENS = 1024
|
12 |
-
MAX_INPUT_TOKEN_LENGTH = 4000
|
13 |
-
|
14 |
-
DESCRIPTION = """
|
15 |
-
# Llama-2 13B Chat Dutch
|
16 |
-
|
17 |
-
This Space demonstrates the [quantized version](https://huggingface.co/TheBloke/Llama-2-13B-Chat-Dutch-GPTQ) of model [BramVanroy/Llama-2-13b-chat-dutch](https://huggingface.co/BramVanroy/Llama-2-13b-chat-dutch), a Llama 2 model with 13B parameters fine-tuned for Dutch chat instructions.
|
18 |
-
**Do not expect ChatGPT-like performance!** I found that because of its modest size and the scarce portion of Dutch that the original model was trained on, the model may still produce ungrammatical Dutch or misunderstand you. Consider this model and the accompanying space as a research project that is fun to tinker with. I recommend not using it as an actual assistant or in critical workflows!
|
19 |
-
|
20 |
-
|
21 |
-
Feel free to play with it, or duplicate to run generations without a queue!
|
22 |
-
"""
|
23 |
-
|
24 |
-
LICENSE = """
|
25 |
-
<p/>
|
26 |
-
|
27 |
-
---
|
28 |
-
Because the `BramVanroy/Llama-2-13b-chat-dutch` model was created with synthetic data generated with OpenAI services, you can not use this service to create competing, commercial products.
|
29 |
-
|
30 |
-
Also see the original Llama v2 [license](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-hf/blob/main/LICENSE.txt) and [acceptable use policy](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-hf/blob/main/USE_POLICY.md).
|
31 |
-
|
32 |
-
This demo uses a modifed version of the [Llama 2 13B space](https://huggingface.co/spaces/huggingface-projects/llama-2-13b-chat).
|
33 |
-
"""
|
34 |
-
|
35 |
-
|
36 |
-
def clear_and_save_textbox(message: str) -> tuple[str, str]:
|
37 |
-
return "", message
|
38 |
-
|
39 |
-
|
40 |
-
def display_input(message: str, history: list[tuple[str, str]]) -> list[tuple[str, str]]:
|
41 |
-
history.append((message, ""))
|
42 |
-
return history
|
43 |
-
|
44 |
-
|
45 |
-
def delete_prev_fn(history: list[tuple[str, str]]) -> tuple[list[tuple[str, str]], str]:
|
46 |
-
try:
|
47 |
-
message, _ = history.pop()
|
48 |
-
except IndexError:
|
49 |
-
message = ""
|
50 |
-
return history, message or ""
|
51 |
-
|
52 |
-
|
53 |
-
def generate(
|
54 |
-
message: str,
|
55 |
-
history_with_input: list[tuple[str, str]],
|
56 |
-
system_prompt: str,
|
57 |
-
max_new_tokens: int,
|
58 |
-
temperature: float,
|
59 |
-
top_p: float,
|
60 |
-
top_k: int,
|
61 |
-
no_repeat_ngram_size: int,
|
62 |
-
) -> Iterator[list[tuple[str, str]]]:
|
63 |
-
if max_new_tokens > MAX_MAX_NEW_TOKENS:
|
64 |
-
raise ValueError
|
65 |
-
|
66 |
-
history = history_with_input[:-1]
|
67 |
-
generator = run(message, history, system_prompt, max_new_tokens, temperature, top_p, top_k, no_repeat_ngram_size)
|
68 |
-
try:
|
69 |
-
first_response = next(generator)
|
70 |
-
yield history + [(message, first_response)]
|
71 |
-
except StopIteration:
|
72 |
-
yield history + [(message, "")]
|
73 |
-
for response in generator:
|
74 |
-
yield history + [(message, response)]
|
75 |
-
|
76 |
-
|
77 |
-
def process_example(message: str) -> tuple[str, list[tuple[str, str]]]:
|
78 |
-
generator = generate(message, [], DEFAULT_SYSTEM_PROMPT, 1024, 0.7, 0.4, 50, 6)
|
79 |
-
for x in generator:
|
80 |
-
pass
|
81 |
-
return "", x
|
82 |
-
|
83 |
-
|
84 |
-
def check_input_token_length(message: str, chat_history: list[tuple[str, str]], system_prompt: str) -> None:
|
85 |
-
input_token_length = get_input_token_length(message, chat_history, system_prompt)
|
86 |
-
if input_token_length > MAX_INPUT_TOKEN_LENGTH:
|
87 |
-
raise gr.Error(
|
88 |
-
f"The accumulated input is too long ({input_token_length} > {MAX_INPUT_TOKEN_LENGTH}). Clear your chat history and try again."
|
89 |
-
)
|
90 |
-
|
91 |
-
|
92 |
-
with gr.Blocks(css="style.css") as demo:
|
93 |
-
gr.Markdown(DESCRIPTION)
|
94 |
-
with gr.Group():
|
95 |
-
chatbot = gr.Chatbot(label="Chatbot")
|
96 |
-
with gr.Row():
|
97 |
-
textbox = gr.Textbox(
|
98 |
-
container=False,
|
99 |
-
show_label=False,
|
100 |
-
placeholder="Type a message...",
|
101 |
-
scale=10,
|
102 |
-
)
|
103 |
-
submit_button = gr.Button("Submit", variant="primary", scale=1, min_width=0)
|
104 |
-
with gr.Row():
|
105 |
-
retry_button = gr.Button("🔄 Retry", variant="secondary")
|
106 |
-
undo_button = gr.Button("↩️ Undo", variant="secondary")
|
107 |
-
clear_button = gr.Button("🗑️ Clear", variant="secondary")
|
108 |
-
|
109 |
-
saved_input = gr.State()
|
110 |
-
|
111 |
-
with gr.Accordion(label="Advanced options", open=False):
|
112 |
-
system_prompt = gr.Textbox(label="System prompt", value=DEFAULT_SYSTEM_PROMPT, lines=6)
|
113 |
-
max_new_tokens = gr.Slider(
|
114 |
-
label="Max new tokens",
|
115 |
-
minimum=1,
|
116 |
-
maximum=MAX_MAX_NEW_TOKENS,
|
117 |
-
step=1,
|
118 |
-
value=DEFAULT_MAX_NEW_TOKENS,
|
119 |
-
)
|
120 |
-
temperature = gr.Slider(
|
121 |
-
label="Temperature",
|
122 |
-
minimum=0.1,
|
123 |
-
maximum=1.0,
|
124 |
-
step=0.1,
|
125 |
-
value=0.7,
|
126 |
-
)
|
127 |
-
top_p = gr.Slider(
|
128 |
-
label="Top-p (nucleus sampling)",
|
129 |
-
minimum=0.05,
|
130 |
-
maximum=1.0,
|
131 |
-
step=0.05,
|
132 |
-
value=0.4,
|
133 |
-
)
|
134 |
-
top_k = gr.Slider(
|
135 |
-
label="Top-k",
|
136 |
-
minimum=1,
|
137 |
-
maximum=1000,
|
138 |
-
step=1,
|
139 |
-
value=50,
|
140 |
-
)
|
141 |
-
no_repeat_ngram_size = gr.Slider(
|
142 |
-
label="No repeat n-gram",
|
143 |
-
minimum=0,
|
144 |
-
maximum=20,
|
145 |
-
step=1,
|
146 |
-
value=6,
|
147 |
-
)
|
148 |
-
|
149 |
-
gr.Examples(
|
150 |
-
examples=[
|
151 |
-
"Wat zijn de buurlanden van België?",
|
152 |
-
'Waarover gaat het boek "Lord of the Rings" en door wie werd het geschreven?',
|
153 |
-
"Hoe kan ik in Python over twee lijsten tegelijkertijd itereren? Bv. `a = [0, 1, 2]; b = [3, 4, 5]`",
|
154 |
-
"Los dit raadsel op: Ik ben altijd in beweging, maar ik kom nooit vooruit. Mijn handen draaien rondjes, keer op keer, luid. Wat ben ik?",
|
155 |
-
],
|
156 |
-
inputs=textbox,
|
157 |
-
outputs=[textbox, chatbot],
|
158 |
-
fn=process_example,
|
159 |
-
cache_examples=True,
|
160 |
-
)
|
161 |
-
|
162 |
-
gr.Markdown(LICENSE)
|
163 |
-
|
164 |
-
textbox.submit(
|
165 |
-
fn=clear_and_save_textbox,
|
166 |
-
inputs=textbox,
|
167 |
-
outputs=[textbox, saved_input],
|
168 |
-
api_name=False,
|
169 |
-
queue=False,
|
170 |
-
).then(
|
171 |
-
fn=display_input,
|
172 |
-
inputs=[saved_input, chatbot],
|
173 |
-
outputs=chatbot,
|
174 |
-
api_name=False,
|
175 |
-
queue=False,
|
176 |
-
).then(
|
177 |
-
fn=check_input_token_length,
|
178 |
-
inputs=[saved_input, chatbot, system_prompt],
|
179 |
-
api_name=False,
|
180 |
-
queue=False,
|
181 |
-
).success(
|
182 |
-
fn=generate,
|
183 |
-
inputs=[
|
184 |
-
saved_input,
|
185 |
-
chatbot,
|
186 |
-
system_prompt,
|
187 |
-
max_new_tokens,
|
188 |
-
temperature,
|
189 |
-
top_p,
|
190 |
-
top_k,
|
191 |
-
no_repeat_ngram_size,
|
192 |
-
],
|
193 |
-
outputs=chatbot,
|
194 |
-
api_name=False,
|
195 |
-
)
|
196 |
-
|
197 |
-
button_event_preprocess = (
|
198 |
-
submit_button.click(
|
199 |
-
fn=clear_and_save_textbox,
|
200 |
-
inputs=textbox,
|
201 |
-
outputs=[textbox, saved_input],
|
202 |
-
api_name=False,
|
203 |
-
queue=False,
|
204 |
-
)
|
205 |
-
.then(
|
206 |
-
fn=display_input,
|
207 |
-
inputs=[saved_input, chatbot],
|
208 |
-
outputs=chatbot,
|
209 |
-
api_name=False,
|
210 |
-
queue=False,
|
211 |
-
)
|
212 |
-
.then(
|
213 |
-
fn=check_input_token_length,
|
214 |
-
inputs=[saved_input, chatbot, system_prompt],
|
215 |
-
api_name=False,
|
216 |
-
queue=False,
|
217 |
-
)
|
218 |
-
.success(
|
219 |
-
fn=generate,
|
220 |
-
inputs=[
|
221 |
-
saved_input,
|
222 |
-
chatbot,
|
223 |
-
system_prompt,
|
224 |
-
max_new_tokens,
|
225 |
-
temperature,
|
226 |
-
top_p,
|
227 |
-
top_k,
|
228 |
-
no_repeat_ngram_size,
|
229 |
-
],
|
230 |
-
outputs=chatbot,
|
231 |
-
api_name=False,
|
232 |
-
)
|
233 |
-
)
|
234 |
-
|
235 |
-
retry_button.click(
|
236 |
-
fn=delete_prev_fn,
|
237 |
-
inputs=chatbot,
|
238 |
-
outputs=[chatbot, saved_input],
|
239 |
-
api_name=False,
|
240 |
-
queue=False,
|
241 |
-
).then(
|
242 |
-
fn=display_input,
|
243 |
-
inputs=[saved_input, chatbot],
|
244 |
-
outputs=chatbot,
|
245 |
-
api_name=False,
|
246 |
-
queue=False,
|
247 |
-
).then(
|
248 |
-
fn=generate,
|
249 |
-
inputs=[
|
250 |
-
saved_input,
|
251 |
-
chatbot,
|
252 |
-
system_prompt,
|
253 |
-
max_new_tokens,
|
254 |
-
temperature,
|
255 |
-
top_p,
|
256 |
-
top_k,
|
257 |
-
no_repeat_ngram_size,
|
258 |
-
],
|
259 |
-
outputs=chatbot,
|
260 |
-
api_name=False,
|
261 |
-
)
|
262 |
-
|
263 |
-
undo_button.click(
|
264 |
-
fn=delete_prev_fn,
|
265 |
-
inputs=chatbot,
|
266 |
-
outputs=[chatbot, saved_input],
|
267 |
-
api_name=False,
|
268 |
-
queue=False,
|
269 |
-
).then(
|
270 |
-
fn=lambda x: x,
|
271 |
-
inputs=[saved_input],
|
272 |
-
outputs=textbox,
|
273 |
-
api_name=False,
|
274 |
-
queue=False,
|
275 |
-
)
|
276 |
-
|
277 |
-
clear_button.click(
|
278 |
-
fn=lambda: ([], ""),
|
279 |
-
outputs=[chatbot, saved_input],
|
280 |
-
queue=False,
|
281 |
-
api_name=False,
|
282 |
-
)
|
283 |
-
|
284 |
-
demo.queue(max_size=20).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/BraydenMoore/a-random-unsecured-camera/README.md
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: A Random Unsecured Camera
|
3 |
-
emoji: 👁
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: yellow
|
6 |
-
sdk: docker
|
7 |
-
pinned: true
|
8 |
-
license: mit
|
9 |
-
---
|
10 |
-
|
11 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/detectron2/export/api.py
DELETED
@@ -1,181 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
2 |
-
import copy
|
3 |
-
import logging
|
4 |
-
import os
|
5 |
-
from caffe2.proto import caffe2_pb2
|
6 |
-
from torch import nn
|
7 |
-
|
8 |
-
from detectron2.config import CfgNode as CN
|
9 |
-
|
10 |
-
from .caffe2_export import export_caffe2_detection_model
|
11 |
-
from .caffe2_export import export_onnx_model as export_onnx_model_impl
|
12 |
-
from .caffe2_export import run_and_save_graph
|
13 |
-
from .caffe2_inference import ProtobufDetectionModel
|
14 |
-
from .caffe2_modeling import META_ARCH_CAFFE2_EXPORT_TYPE_MAP, convert_batched_inputs_to_c2_format
|
15 |
-
from .shared import get_pb_arg_vali, get_pb_arg_vals, save_graph
|
16 |
-
|
17 |
-
__all__ = ["add_export_config", "export_caffe2_model", "Caffe2Model", "export_onnx_model"]
|
18 |
-
|
19 |
-
|
20 |
-
def add_export_config(cfg):
|
21 |
-
"""
|
22 |
-
Args:
|
23 |
-
cfg (CfgNode): a detectron2 config
|
24 |
-
|
25 |
-
Returns:
|
26 |
-
CfgNode: an updated config with new options that :func:`export_caffe2_model` will need.
|
27 |
-
"""
|
28 |
-
is_frozen = cfg.is_frozen()
|
29 |
-
cfg.defrost()
|
30 |
-
cfg.EXPORT_CAFFE2 = CN()
|
31 |
-
cfg.EXPORT_CAFFE2.USE_HEATMAP_MAX_KEYPOINT = False
|
32 |
-
if is_frozen:
|
33 |
-
cfg.freeze()
|
34 |
-
return cfg
|
35 |
-
|
36 |
-
|
37 |
-
def export_caffe2_model(cfg, model, inputs):
|
38 |
-
"""
|
39 |
-
Export a detectron2 model to caffe2 format.
|
40 |
-
|
41 |
-
Args:
|
42 |
-
cfg (CfgNode): a detectron2 config, with extra export-related options
|
43 |
-
added by :func:`add_export_config`.
|
44 |
-
model (nn.Module): a model built by
|
45 |
-
:func:`detectron2.modeling.build_model`.
|
46 |
-
It will be modified by this function.
|
47 |
-
inputs: sample inputs that the given model takes for inference.
|
48 |
-
Will be used to trace the model.
|
49 |
-
|
50 |
-
Returns:
|
51 |
-
Caffe2Model
|
52 |
-
"""
|
53 |
-
assert isinstance(cfg, CN), cfg
|
54 |
-
C2MetaArch = META_ARCH_CAFFE2_EXPORT_TYPE_MAP[cfg.MODEL.META_ARCHITECTURE]
|
55 |
-
c2_compatible_model = C2MetaArch(cfg, model)
|
56 |
-
c2_format_input = c2_compatible_model.get_caffe2_inputs(inputs)
|
57 |
-
predict_net, init_net = export_caffe2_detection_model(c2_compatible_model, c2_format_input)
|
58 |
-
return Caffe2Model(predict_net, init_net)
|
59 |
-
|
60 |
-
|
61 |
-
def export_onnx_model(cfg, model, inputs):
|
62 |
-
"""
|
63 |
-
Export a detectron2 model to ONNX format.
|
64 |
-
Note that the exported model contains custom ops only available in caffe2, therefore it
|
65 |
-
cannot be directly executed by other runtime. Post-processing or transformation passes
|
66 |
-
may be applied on the model to accommodate different runtimes.
|
67 |
-
|
68 |
-
Args:
|
69 |
-
cfg (CfgNode): a detectron2 config, with extra export-related options
|
70 |
-
added by :func:`add_export_config`.
|
71 |
-
model (nn.Module): a model built by
|
72 |
-
:func:`detectron2.modeling.build_model`.
|
73 |
-
It will be modified by this function.
|
74 |
-
inputs: sample inputs that the given model takes for inference.
|
75 |
-
Will be used to trace the model.
|
76 |
-
|
77 |
-
Returns:
|
78 |
-
onnx.ModelProto: an onnx model.
|
79 |
-
"""
|
80 |
-
model = copy.deepcopy(model)
|
81 |
-
assert isinstance(cfg, CN), cfg
|
82 |
-
C2MetaArch = META_ARCH_CAFFE2_EXPORT_TYPE_MAP[cfg.MODEL.META_ARCHITECTURE]
|
83 |
-
c2_compatible_model = C2MetaArch(cfg, model)
|
84 |
-
c2_format_input = c2_compatible_model.get_caffe2_inputs(inputs)
|
85 |
-
return export_onnx_model_impl(c2_compatible_model, (c2_format_input,))
|
86 |
-
|
87 |
-
|
88 |
-
class Caffe2Model(nn.Module):
|
89 |
-
def __init__(self, predict_net, init_net):
|
90 |
-
super().__init__()
|
91 |
-
self.eval() # always in eval mode
|
92 |
-
self._predict_net = predict_net
|
93 |
-
self._init_net = init_net
|
94 |
-
self._predictor = None
|
95 |
-
|
96 |
-
@property
|
97 |
-
def predict_net(self):
|
98 |
-
"""
|
99 |
-
Returns:
|
100 |
-
core.Net: the underlying caffe2 predict net
|
101 |
-
"""
|
102 |
-
return self._predict_net
|
103 |
-
|
104 |
-
@property
|
105 |
-
def init_net(self):
|
106 |
-
"""
|
107 |
-
Returns:
|
108 |
-
core.Net: the underlying caffe2 init net
|
109 |
-
"""
|
110 |
-
return self._init_net
|
111 |
-
|
112 |
-
__init__.__HIDE_SPHINX_DOC__ = True
|
113 |
-
|
114 |
-
def save_protobuf(self, output_dir):
|
115 |
-
"""
|
116 |
-
Save the model as caffe2's protobuf format.
|
117 |
-
|
118 |
-
Args:
|
119 |
-
output_dir (str): the output directory to save protobuf files.
|
120 |
-
"""
|
121 |
-
logger = logging.getLogger(__name__)
|
122 |
-
logger.info("Saving model to {} ...".format(output_dir))
|
123 |
-
os.makedirs(output_dir, exist_ok=True)
|
124 |
-
|
125 |
-
with open(os.path.join(output_dir, "model.pb"), "wb") as f:
|
126 |
-
f.write(self._predict_net.SerializeToString())
|
127 |
-
with open(os.path.join(output_dir, "model.pbtxt"), "w") as f:
|
128 |
-
f.write(str(self._predict_net))
|
129 |
-
with open(os.path.join(output_dir, "model_init.pb"), "wb") as f:
|
130 |
-
f.write(self._init_net.SerializeToString())
|
131 |
-
|
132 |
-
def save_graph(self, output_file, inputs=None):
|
133 |
-
"""
|
134 |
-
Save the graph as SVG format.
|
135 |
-
|
136 |
-
Args:
|
137 |
-
output_file (str): a SVG file
|
138 |
-
inputs: optional inputs given to the model.
|
139 |
-
If given, the inputs will be used to run the graph to record
|
140 |
-
shape of every tensor. The shape information will be
|
141 |
-
saved together with the graph.
|
142 |
-
"""
|
143 |
-
if inputs is None:
|
144 |
-
save_graph(self._predict_net, output_file, op_only=False)
|
145 |
-
else:
|
146 |
-
size_divisibility = get_pb_arg_vali(self._predict_net, "size_divisibility", 0)
|
147 |
-
device = get_pb_arg_vals(self._predict_net, "device", b"cpu").decode("ascii")
|
148 |
-
inputs = convert_batched_inputs_to_c2_format(inputs, size_divisibility, device)
|
149 |
-
inputs = [x.numpy() for x in inputs]
|
150 |
-
run_and_save_graph(self._predict_net, self._init_net, inputs, output_file)
|
151 |
-
|
152 |
-
@staticmethod
|
153 |
-
def load_protobuf(dir):
|
154 |
-
"""
|
155 |
-
Args:
|
156 |
-
dir (str): a directory used to save Caffe2Model with
|
157 |
-
:meth:`save_protobuf`.
|
158 |
-
The files "model.pb" and "model_init.pb" are needed.
|
159 |
-
|
160 |
-
Returns:
|
161 |
-
Caffe2Model: the caffe2 model loaded from this directory.
|
162 |
-
"""
|
163 |
-
predict_net = caffe2_pb2.NetDef()
|
164 |
-
with open(os.path.join(dir, "model.pb"), "rb") as f:
|
165 |
-
predict_net.ParseFromString(f.read())
|
166 |
-
|
167 |
-
init_net = caffe2_pb2.NetDef()
|
168 |
-
with open(os.path.join(dir, "model_init.pb"), "rb") as f:
|
169 |
-
init_net.ParseFromString(f.read())
|
170 |
-
|
171 |
-
return Caffe2Model(predict_net, init_net)
|
172 |
-
|
173 |
-
def __call__(self, inputs):
|
174 |
-
"""
|
175 |
-
An interface that wraps around a caffe2 model and mimics detectron2's models'
|
176 |
-
input & output format. This is used to compare the caffe2 model
|
177 |
-
with its original torch model.
|
178 |
-
"""
|
179 |
-
if self._predictor is None:
|
180 |
-
self._predictor = ProtobufDetectionModel(self._predict_net, self._init_net)
|
181 |
-
return self._predictor(inputs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/projects/TridentNet/README.md
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
|
2 |
-
# TridentNet in Detectron2
|
3 |
-
**Scale-Aware Trident Networks for Object Detection**
|
4 |
-
|
5 |
-
Yanghao Li\*, Yuntao Chen\*, Naiyan Wang, Zhaoxiang Zhang
|
6 |
-
|
7 |
-
[[`TridentNet`](https://github.com/TuSimple/simpledet/tree/master/models/tridentnet)] [[`arXiv`](https://arxiv.org/abs/1901.01892)] [[`BibTeX`](#CitingTridentNet)]
|
8 |
-
|
9 |
-
<div align="center">
|
10 |
-
<img src="https://drive.google.com/uc?export=view&id=10THEPdIPmf3ooMyNzrfZbpWihEBvixwt" width="700px" />
|
11 |
-
</div>
|
12 |
-
|
13 |
-
In this repository, we implement TridentNet-Fast in Detectron2.
|
14 |
-
Trident Network (TridentNet) aims to generate scale-specific feature maps with a uniform representational power. We construct a parallel multi-branch architecture in which each branch shares the same transformation parameters but with different receptive fields. TridentNet-Fast is a fast approximation version of TridentNet that could achieve significant improvements without any additional parameters and computational cost.
|
15 |
-
|
16 |
-
## Training
|
17 |
-
|
18 |
-
To train a model, run
|
19 |
-
```bash
|
20 |
-
python /path/to/detectron2/projects/TridentNet/train_net.py --config-file <config.yaml>
|
21 |
-
```
|
22 |
-
|
23 |
-
For example, to launch end-to-end TridentNet training with ResNet-50 backbone on 8 GPUs,
|
24 |
-
one should execute:
|
25 |
-
```bash
|
26 |
-
python /path/to/detectron2/projects/TridentNet/train_net.py --config-file configs/tridentnet_fast_R_50_C4_1x.yaml --num-gpus 8
|
27 |
-
```
|
28 |
-
|
29 |
-
## Evaluation
|
30 |
-
|
31 |
-
Model evaluation can be done similarly:
|
32 |
-
```bash
|
33 |
-
python /path/to/detectron2/projects/TridentNet/train_net.py --config-file configs/tridentnet_fast_R_50_C4_1x.yaml --eval-only MODEL.WEIGHTS model.pth
|
34 |
-
```
|
35 |
-
|
36 |
-
## Results on MS-COCO in Detectron2
|
37 |
-
|
38 |
-
|Model|Backbone|Head|lr sched|AP|AP50|AP75|APs|APm|APl|download|
|
39 |
-
|-----|--------|----|--------|--|----|----|---|---|---|--------|
|
40 |
-
|Faster|R50-C4|C5-512ROI|1X|35.7|56.1|38.0|19.2|40.9|48.7|<a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_50_C4_1x/137257644/model_final_721ade.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_50_C4_1x/137257644/metrics.json">metrics</a>|
|
41 |
-
|TridentFast|R50-C4|C5-128ROI|1X|38.0|58.1|40.8|19.5|42.2|54.6|<a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_50_C4_1x/148572687/model_final_756cda.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_50_C4_1x/148572687/metrics.json">metrics</a>|
|
42 |
-
|Faster|R50-C4|C5-512ROI|3X|38.4|58.7|41.3|20.7|42.7|53.1|<a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_50_C4_3x/137849393/model_final_f97cb7.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_50_C4_3x/137849393/metrics.json">metrics</a>|
|
43 |
-
|TridentFast|R50-C4|C5-128ROI|3X|40.6|60.8|43.6|23.4|44.7|57.1|<a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_50_C4_3x/148572287/model_final_e1027c.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_50_C4_3x/148572287/metrics.json">metrics</a>|
|
44 |
-
|Faster|R101-C4|C5-512ROI|3X|41.1|61.4|44.0|22.2|45.5|55.9|<a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_101_C4_3x/138204752/model_final_298dad.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/COCO-Detection/faster_rcnn_R_101_C4_3x/138204752/metrics.json">metrics</a>|
|
45 |
-
|TridentFast|R101-C4|C5-128ROI|3X|43.6|63.4|47.0|24.3|47.8|60.0|<a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_101_C4_3x/148572198/model_final_164568.pkl">model</a> \| <a href="https://dl.fbaipublicfiles.com/detectron2/TridentNet/tridentnet_fast_R_101_C4_3x/148572198/metrics.json">metrics</a>|
|
46 |
-
|
47 |
-
|
48 |
-
## <a name="CitingTridentNet"></a>Citing TridentNet
|
49 |
-
|
50 |
-
If you use TridentNet, please use the following BibTeX entry.
|
51 |
-
|
52 |
-
```
|
53 |
-
@InProceedings{li2019scale,
|
54 |
-
title={Scale-Aware Trident Networks for Object Detection},
|
55 |
-
author={Li, Yanghao and Chen, Yuntao and Wang, Naiyan and Zhang, Zhaoxiang},
|
56 |
-
journal={The International Conference on Computer Vision (ICCV)},
|
57 |
-
year={2019}
|
58 |
-
}
|
59 |
-
```
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/Dual-Key_Backdoor_Attacks/datagen/detectron2/projects/TridentNet/tridentnet/trident_rpn.py
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
2 |
-
import torch
|
3 |
-
|
4 |
-
from detectron2.modeling import PROPOSAL_GENERATOR_REGISTRY
|
5 |
-
from detectron2.modeling.proposal_generator.rpn import RPN
|
6 |
-
from detectron2.structures import ImageList
|
7 |
-
|
8 |
-
|
9 |
-
@PROPOSAL_GENERATOR_REGISTRY.register()
|
10 |
-
class TridentRPN(RPN):
|
11 |
-
"""
|
12 |
-
Trident RPN subnetwork.
|
13 |
-
"""
|
14 |
-
|
15 |
-
def __init__(self, cfg, input_shape):
|
16 |
-
super(TridentRPN, self).__init__(cfg, input_shape)
|
17 |
-
|
18 |
-
self.num_branch = cfg.MODEL.TRIDENT.NUM_BRANCH
|
19 |
-
self.trident_fast = cfg.MODEL.TRIDENT.TEST_BRANCH_IDX != -1
|
20 |
-
|
21 |
-
def forward(self, images, features, gt_instances=None):
|
22 |
-
"""
|
23 |
-
See :class:`RPN.forward`.
|
24 |
-
"""
|
25 |
-
num_branch = self.num_branch if self.training or not self.trident_fast else 1
|
26 |
-
# Duplicate images and gt_instances for all branches in TridentNet.
|
27 |
-
all_images = ImageList(
|
28 |
-
torch.cat([images.tensor] * num_branch), images.image_sizes * num_branch
|
29 |
-
)
|
30 |
-
all_gt_instances = gt_instances * num_branch if gt_instances is not None else None
|
31 |
-
|
32 |
-
return super(TridentRPN, self).forward(all_images, features, all_gt_instances)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/pybind11/tests/test_numpy_array.py
DELETED
@@ -1,446 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
import pytest
|
3 |
-
|
4 |
-
import env # noqa: F401
|
5 |
-
|
6 |
-
from pybind11_tests import numpy_array as m
|
7 |
-
|
8 |
-
np = pytest.importorskip("numpy")
|
9 |
-
|
10 |
-
|
11 |
-
def test_dtypes():
|
12 |
-
# See issue #1328.
|
13 |
-
# - Platform-dependent sizes.
|
14 |
-
for size_check in m.get_platform_dtype_size_checks():
|
15 |
-
print(size_check)
|
16 |
-
assert size_check.size_cpp == size_check.size_numpy, size_check
|
17 |
-
# - Concrete sizes.
|
18 |
-
for check in m.get_concrete_dtype_checks():
|
19 |
-
print(check)
|
20 |
-
assert check.numpy == check.pybind11, check
|
21 |
-
if check.numpy.num != check.pybind11.num:
|
22 |
-
print("NOTE: typenum mismatch for {}: {} != {}".format(
|
23 |
-
check, check.numpy.num, check.pybind11.num))
|
24 |
-
|
25 |
-
|
26 |
-
@pytest.fixture(scope='function')
|
27 |
-
def arr():
|
28 |
-
return np.array([[1, 2, 3], [4, 5, 6]], '=u2')
|
29 |
-
|
30 |
-
|
31 |
-
def test_array_attributes():
|
32 |
-
a = np.array(0, 'f8')
|
33 |
-
assert m.ndim(a) == 0
|
34 |
-
assert all(m.shape(a) == [])
|
35 |
-
assert all(m.strides(a) == [])
|
36 |
-
with pytest.raises(IndexError) as excinfo:
|
37 |
-
m.shape(a, 0)
|
38 |
-
assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)'
|
39 |
-
with pytest.raises(IndexError) as excinfo:
|
40 |
-
m.strides(a, 0)
|
41 |
-
assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)'
|
42 |
-
assert m.writeable(a)
|
43 |
-
assert m.size(a) == 1
|
44 |
-
assert m.itemsize(a) == 8
|
45 |
-
assert m.nbytes(a) == 8
|
46 |
-
assert m.owndata(a)
|
47 |
-
|
48 |
-
a = np.array([[1, 2, 3], [4, 5, 6]], 'u2').view()
|
49 |
-
a.flags.writeable = False
|
50 |
-
assert m.ndim(a) == 2
|
51 |
-
assert all(m.shape(a) == [2, 3])
|
52 |
-
assert m.shape(a, 0) == 2
|
53 |
-
assert m.shape(a, 1) == 3
|
54 |
-
assert all(m.strides(a) == [6, 2])
|
55 |
-
assert m.strides(a, 0) == 6
|
56 |
-
assert m.strides(a, 1) == 2
|
57 |
-
with pytest.raises(IndexError) as excinfo:
|
58 |
-
m.shape(a, 2)
|
59 |
-
assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)'
|
60 |
-
with pytest.raises(IndexError) as excinfo:
|
61 |
-
m.strides(a, 2)
|
62 |
-
assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)'
|
63 |
-
assert not m.writeable(a)
|
64 |
-
assert m.size(a) == 6
|
65 |
-
assert m.itemsize(a) == 2
|
66 |
-
assert m.nbytes(a) == 12
|
67 |
-
assert not m.owndata(a)
|
68 |
-
|
69 |
-
|
70 |
-
@pytest.mark.parametrize('args, ret', [([], 0), ([0], 0), ([1], 3), ([0, 1], 1), ([1, 2], 5)])
|
71 |
-
def test_index_offset(arr, args, ret):
|
72 |
-
assert m.index_at(arr, *args) == ret
|
73 |
-
assert m.index_at_t(arr, *args) == ret
|
74 |
-
assert m.offset_at(arr, *args) == ret * arr.dtype.itemsize
|
75 |
-
assert m.offset_at_t(arr, *args) == ret * arr.dtype.itemsize
|
76 |
-
|
77 |
-
|
78 |
-
def test_dim_check_fail(arr):
|
79 |
-
for func in (m.index_at, m.index_at_t, m.offset_at, m.offset_at_t, m.data, m.data_t,
|
80 |
-
m.mutate_data, m.mutate_data_t):
|
81 |
-
with pytest.raises(IndexError) as excinfo:
|
82 |
-
func(arr, 1, 2, 3)
|
83 |
-
assert str(excinfo.value) == 'too many indices for an array: 3 (ndim = 2)'
|
84 |
-
|
85 |
-
|
86 |
-
@pytest.mark.parametrize('args, ret',
|
87 |
-
[([], [1, 2, 3, 4, 5, 6]),
|
88 |
-
([1], [4, 5, 6]),
|
89 |
-
([0, 1], [2, 3, 4, 5, 6]),
|
90 |
-
([1, 2], [6])])
|
91 |
-
def test_data(arr, args, ret):
|
92 |
-
from sys import byteorder
|
93 |
-
assert all(m.data_t(arr, *args) == ret)
|
94 |
-
assert all(m.data(arr, *args)[(0 if byteorder == 'little' else 1)::2] == ret)
|
95 |
-
assert all(m.data(arr, *args)[(1 if byteorder == 'little' else 0)::2] == 0)
|
96 |
-
|
97 |
-
|
98 |
-
@pytest.mark.parametrize('dim', [0, 1, 3])
|
99 |
-
def test_at_fail(arr, dim):
|
100 |
-
for func in m.at_t, m.mutate_at_t:
|
101 |
-
with pytest.raises(IndexError) as excinfo:
|
102 |
-
func(arr, *([0] * dim))
|
103 |
-
assert str(excinfo.value) == 'index dimension mismatch: {} (ndim = 2)'.format(dim)
|
104 |
-
|
105 |
-
|
106 |
-
def test_at(arr):
|
107 |
-
assert m.at_t(arr, 0, 2) == 3
|
108 |
-
assert m.at_t(arr, 1, 0) == 4
|
109 |
-
|
110 |
-
assert all(m.mutate_at_t(arr, 0, 2).ravel() == [1, 2, 4, 4, 5, 6])
|
111 |
-
assert all(m.mutate_at_t(arr, 1, 0).ravel() == [1, 2, 4, 5, 5, 6])
|
112 |
-
|
113 |
-
|
114 |
-
def test_mutate_readonly(arr):
|
115 |
-
arr.flags.writeable = False
|
116 |
-
for func, args in (m.mutate_data, ()), (m.mutate_data_t, ()), (m.mutate_at_t, (0, 0)):
|
117 |
-
with pytest.raises(ValueError) as excinfo:
|
118 |
-
func(arr, *args)
|
119 |
-
assert str(excinfo.value) == 'array is not writeable'
|
120 |
-
|
121 |
-
|
122 |
-
def test_mutate_data(arr):
|
123 |
-
assert all(m.mutate_data(arr).ravel() == [2, 4, 6, 8, 10, 12])
|
124 |
-
assert all(m.mutate_data(arr).ravel() == [4, 8, 12, 16, 20, 24])
|
125 |
-
assert all(m.mutate_data(arr, 1).ravel() == [4, 8, 12, 32, 40, 48])
|
126 |
-
assert all(m.mutate_data(arr, 0, 1).ravel() == [4, 16, 24, 64, 80, 96])
|
127 |
-
assert all(m.mutate_data(arr, 1, 2).ravel() == [4, 16, 24, 64, 80, 192])
|
128 |
-
|
129 |
-
assert all(m.mutate_data_t(arr).ravel() == [5, 17, 25, 65, 81, 193])
|
130 |
-
assert all(m.mutate_data_t(arr).ravel() == [6, 18, 26, 66, 82, 194])
|
131 |
-
assert all(m.mutate_data_t(arr, 1).ravel() == [6, 18, 26, 67, 83, 195])
|
132 |
-
assert all(m.mutate_data_t(arr, 0, 1).ravel() == [6, 19, 27, 68, 84, 196])
|
133 |
-
assert all(m.mutate_data_t(arr, 1, 2).ravel() == [6, 19, 27, 68, 84, 197])
|
134 |
-
|
135 |
-
|
136 |
-
def test_bounds_check(arr):
|
137 |
-
for func in (m.index_at, m.index_at_t, m.data, m.data_t,
|
138 |
-
m.mutate_data, m.mutate_data_t, m.at_t, m.mutate_at_t):
|
139 |
-
with pytest.raises(IndexError) as excinfo:
|
140 |
-
func(arr, 2, 0)
|
141 |
-
assert str(excinfo.value) == 'index 2 is out of bounds for axis 0 with size 2'
|
142 |
-
with pytest.raises(IndexError) as excinfo:
|
143 |
-
func(arr, 0, 4)
|
144 |
-
assert str(excinfo.value) == 'index 4 is out of bounds for axis 1 with size 3'
|
145 |
-
|
146 |
-
|
147 |
-
def test_make_c_f_array():
|
148 |
-
assert m.make_c_array().flags.c_contiguous
|
149 |
-
assert not m.make_c_array().flags.f_contiguous
|
150 |
-
assert m.make_f_array().flags.f_contiguous
|
151 |
-
assert not m.make_f_array().flags.c_contiguous
|
152 |
-
|
153 |
-
|
154 |
-
def test_make_empty_shaped_array():
|
155 |
-
m.make_empty_shaped_array()
|
156 |
-
|
157 |
-
# empty shape means numpy scalar, PEP 3118
|
158 |
-
assert m.scalar_int().ndim == 0
|
159 |
-
assert m.scalar_int().shape == ()
|
160 |
-
assert m.scalar_int() == 42
|
161 |
-
|
162 |
-
|
163 |
-
def test_wrap():
|
164 |
-
def assert_references(a, b, base=None):
|
165 |
-
from distutils.version import LooseVersion
|
166 |
-
if base is None:
|
167 |
-
base = a
|
168 |
-
assert a is not b
|
169 |
-
assert a.__array_interface__['data'][0] == b.__array_interface__['data'][0]
|
170 |
-
assert a.shape == b.shape
|
171 |
-
assert a.strides == b.strides
|
172 |
-
assert a.flags.c_contiguous == b.flags.c_contiguous
|
173 |
-
assert a.flags.f_contiguous == b.flags.f_contiguous
|
174 |
-
assert a.flags.writeable == b.flags.writeable
|
175 |
-
assert a.flags.aligned == b.flags.aligned
|
176 |
-
if LooseVersion(np.__version__) >= LooseVersion("1.14.0"):
|
177 |
-
assert a.flags.writebackifcopy == b.flags.writebackifcopy
|
178 |
-
else:
|
179 |
-
assert a.flags.updateifcopy == b.flags.updateifcopy
|
180 |
-
assert np.all(a == b)
|
181 |
-
assert not b.flags.owndata
|
182 |
-
assert b.base is base
|
183 |
-
if a.flags.writeable and a.ndim == 2:
|
184 |
-
a[0, 0] = 1234
|
185 |
-
assert b[0, 0] == 1234
|
186 |
-
|
187 |
-
a1 = np.array([1, 2], dtype=np.int16)
|
188 |
-
assert a1.flags.owndata and a1.base is None
|
189 |
-
a2 = m.wrap(a1)
|
190 |
-
assert_references(a1, a2)
|
191 |
-
|
192 |
-
a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='F')
|
193 |
-
assert a1.flags.owndata and a1.base is None
|
194 |
-
a2 = m.wrap(a1)
|
195 |
-
assert_references(a1, a2)
|
196 |
-
|
197 |
-
a1 = np.array([[1, 2], [3, 4]], dtype=np.float32, order='C')
|
198 |
-
a1.flags.writeable = False
|
199 |
-
a2 = m.wrap(a1)
|
200 |
-
assert_references(a1, a2)
|
201 |
-
|
202 |
-
a1 = np.random.random((4, 4, 4))
|
203 |
-
a2 = m.wrap(a1)
|
204 |
-
assert_references(a1, a2)
|
205 |
-
|
206 |
-
a1t = a1.transpose()
|
207 |
-
a2 = m.wrap(a1t)
|
208 |
-
assert_references(a1t, a2, a1)
|
209 |
-
|
210 |
-
a1d = a1.diagonal()
|
211 |
-
a2 = m.wrap(a1d)
|
212 |
-
assert_references(a1d, a2, a1)
|
213 |
-
|
214 |
-
a1m = a1[::-1, ::-1, ::-1]
|
215 |
-
a2 = m.wrap(a1m)
|
216 |
-
assert_references(a1m, a2, a1)
|
217 |
-
|
218 |
-
|
219 |
-
def test_numpy_view(capture):
|
220 |
-
with capture:
|
221 |
-
ac = m.ArrayClass()
|
222 |
-
ac_view_1 = ac.numpy_view()
|
223 |
-
ac_view_2 = ac.numpy_view()
|
224 |
-
assert np.all(ac_view_1 == np.array([1, 2], dtype=np.int32))
|
225 |
-
del ac
|
226 |
-
pytest.gc_collect()
|
227 |
-
assert capture == """
|
228 |
-
ArrayClass()
|
229 |
-
ArrayClass::numpy_view()
|
230 |
-
ArrayClass::numpy_view()
|
231 |
-
"""
|
232 |
-
ac_view_1[0] = 4
|
233 |
-
ac_view_1[1] = 3
|
234 |
-
assert ac_view_2[0] == 4
|
235 |
-
assert ac_view_2[1] == 3
|
236 |
-
with capture:
|
237 |
-
del ac_view_1
|
238 |
-
del ac_view_2
|
239 |
-
pytest.gc_collect()
|
240 |
-
pytest.gc_collect()
|
241 |
-
assert capture == """
|
242 |
-
~ArrayClass()
|
243 |
-
"""
|
244 |
-
|
245 |
-
|
246 |
-
def test_cast_numpy_int64_to_uint64():
|
247 |
-
m.function_taking_uint64(123)
|
248 |
-
m.function_taking_uint64(np.uint64(123))
|
249 |
-
|
250 |
-
|
251 |
-
def test_isinstance():
|
252 |
-
assert m.isinstance_untyped(np.array([1, 2, 3]), "not an array")
|
253 |
-
assert m.isinstance_typed(np.array([1.0, 2.0, 3.0]))
|
254 |
-
|
255 |
-
|
256 |
-
def test_constructors():
|
257 |
-
defaults = m.default_constructors()
|
258 |
-
for a in defaults.values():
|
259 |
-
assert a.size == 0
|
260 |
-
assert defaults["array"].dtype == np.array([]).dtype
|
261 |
-
assert defaults["array_t<int32>"].dtype == np.int32
|
262 |
-
assert defaults["array_t<double>"].dtype == np.float64
|
263 |
-
|
264 |
-
results = m.converting_constructors([1, 2, 3])
|
265 |
-
for a in results.values():
|
266 |
-
np.testing.assert_array_equal(a, [1, 2, 3])
|
267 |
-
assert results["array"].dtype == np.int_
|
268 |
-
assert results["array_t<int32>"].dtype == np.int32
|
269 |
-
assert results["array_t<double>"].dtype == np.float64
|
270 |
-
|
271 |
-
|
272 |
-
def test_overload_resolution(msg):
|
273 |
-
# Exact overload matches:
|
274 |
-
assert m.overloaded(np.array([1], dtype='float64')) == 'double'
|
275 |
-
assert m.overloaded(np.array([1], dtype='float32')) == 'float'
|
276 |
-
assert m.overloaded(np.array([1], dtype='ushort')) == 'unsigned short'
|
277 |
-
assert m.overloaded(np.array([1], dtype='intc')) == 'int'
|
278 |
-
assert m.overloaded(np.array([1], dtype='longlong')) == 'long long'
|
279 |
-
assert m.overloaded(np.array([1], dtype='complex')) == 'double complex'
|
280 |
-
assert m.overloaded(np.array([1], dtype='csingle')) == 'float complex'
|
281 |
-
|
282 |
-
# No exact match, should call first convertible version:
|
283 |
-
assert m.overloaded(np.array([1], dtype='uint8')) == 'double'
|
284 |
-
|
285 |
-
with pytest.raises(TypeError) as excinfo:
|
286 |
-
m.overloaded("not an array")
|
287 |
-
assert msg(excinfo.value) == """
|
288 |
-
overloaded(): incompatible function arguments. The following argument types are supported:
|
289 |
-
1. (arg0: numpy.ndarray[numpy.float64]) -> str
|
290 |
-
2. (arg0: numpy.ndarray[numpy.float32]) -> str
|
291 |
-
3. (arg0: numpy.ndarray[numpy.int32]) -> str
|
292 |
-
4. (arg0: numpy.ndarray[numpy.uint16]) -> str
|
293 |
-
5. (arg0: numpy.ndarray[numpy.int64]) -> str
|
294 |
-
6. (arg0: numpy.ndarray[numpy.complex128]) -> str
|
295 |
-
7. (arg0: numpy.ndarray[numpy.complex64]) -> str
|
296 |
-
|
297 |
-
Invoked with: 'not an array'
|
298 |
-
"""
|
299 |
-
|
300 |
-
assert m.overloaded2(np.array([1], dtype='float64')) == 'double'
|
301 |
-
assert m.overloaded2(np.array([1], dtype='float32')) == 'float'
|
302 |
-
assert m.overloaded2(np.array([1], dtype='complex64')) == 'float complex'
|
303 |
-
assert m.overloaded2(np.array([1], dtype='complex128')) == 'double complex'
|
304 |
-
assert m.overloaded2(np.array([1], dtype='float32')) == 'float'
|
305 |
-
|
306 |
-
assert m.overloaded3(np.array([1], dtype='float64')) == 'double'
|
307 |
-
assert m.overloaded3(np.array([1], dtype='intc')) == 'int'
|
308 |
-
expected_exc = """
|
309 |
-
overloaded3(): incompatible function arguments. The following argument types are supported:
|
310 |
-
1. (arg0: numpy.ndarray[numpy.int32]) -> str
|
311 |
-
2. (arg0: numpy.ndarray[numpy.float64]) -> str
|
312 |
-
|
313 |
-
Invoked with: """
|
314 |
-
|
315 |
-
with pytest.raises(TypeError) as excinfo:
|
316 |
-
m.overloaded3(np.array([1], dtype='uintc'))
|
317 |
-
assert msg(excinfo.value) == expected_exc + repr(np.array([1], dtype='uint32'))
|
318 |
-
with pytest.raises(TypeError) as excinfo:
|
319 |
-
m.overloaded3(np.array([1], dtype='float32'))
|
320 |
-
assert msg(excinfo.value) == expected_exc + repr(np.array([1.], dtype='float32'))
|
321 |
-
with pytest.raises(TypeError) as excinfo:
|
322 |
-
m.overloaded3(np.array([1], dtype='complex'))
|
323 |
-
assert msg(excinfo.value) == expected_exc + repr(np.array([1. + 0.j]))
|
324 |
-
|
325 |
-
# Exact matches:
|
326 |
-
assert m.overloaded4(np.array([1], dtype='double')) == 'double'
|
327 |
-
assert m.overloaded4(np.array([1], dtype='longlong')) == 'long long'
|
328 |
-
# Non-exact matches requiring conversion. Since float to integer isn't a
|
329 |
-
# save conversion, it should go to the double overload, but short can go to
|
330 |
-
# either (and so should end up on the first-registered, the long long).
|
331 |
-
assert m.overloaded4(np.array([1], dtype='float32')) == 'double'
|
332 |
-
assert m.overloaded4(np.array([1], dtype='short')) == 'long long'
|
333 |
-
|
334 |
-
assert m.overloaded5(np.array([1], dtype='double')) == 'double'
|
335 |
-
assert m.overloaded5(np.array([1], dtype='uintc')) == 'unsigned int'
|
336 |
-
assert m.overloaded5(np.array([1], dtype='float32')) == 'unsigned int'
|
337 |
-
|
338 |
-
|
339 |
-
def test_greedy_string_overload():
|
340 |
-
"""Tests fix for #685 - ndarray shouldn't go to std::string overload"""
|
341 |
-
|
342 |
-
assert m.issue685("abc") == "string"
|
343 |
-
assert m.issue685(np.array([97, 98, 99], dtype='b')) == "array"
|
344 |
-
assert m.issue685(123) == "other"
|
345 |
-
|
346 |
-
|
347 |
-
def test_array_unchecked_fixed_dims(msg):
|
348 |
-
z1 = np.array([[1, 2], [3, 4]], dtype='float64')
|
349 |
-
m.proxy_add2(z1, 10)
|
350 |
-
assert np.all(z1 == [[11, 12], [13, 14]])
|
351 |
-
|
352 |
-
with pytest.raises(ValueError) as excinfo:
|
353 |
-
m.proxy_add2(np.array([1., 2, 3]), 5.0)
|
354 |
-
assert msg(excinfo.value) == "array has incorrect number of dimensions: 1; expected 2"
|
355 |
-
|
356 |
-
expect_c = np.ndarray(shape=(3, 3, 3), buffer=np.array(range(3, 30)), dtype='int')
|
357 |
-
assert np.all(m.proxy_init3(3.0) == expect_c)
|
358 |
-
expect_f = np.transpose(expect_c)
|
359 |
-
assert np.all(m.proxy_init3F(3.0) == expect_f)
|
360 |
-
|
361 |
-
assert m.proxy_squared_L2_norm(np.array(range(6))) == 55
|
362 |
-
assert m.proxy_squared_L2_norm(np.array(range(6), dtype="float64")) == 55
|
363 |
-
|
364 |
-
assert m.proxy_auxiliaries2(z1) == [11, 11, True, 2, 8, 2, 2, 4, 32]
|
365 |
-
assert m.proxy_auxiliaries2(z1) == m.array_auxiliaries2(z1)
|
366 |
-
|
367 |
-
|
368 |
-
def test_array_unchecked_dyn_dims(msg):
|
369 |
-
z1 = np.array([[1, 2], [3, 4]], dtype='float64')
|
370 |
-
m.proxy_add2_dyn(z1, 10)
|
371 |
-
assert np.all(z1 == [[11, 12], [13, 14]])
|
372 |
-
|
373 |
-
expect_c = np.ndarray(shape=(3, 3, 3), buffer=np.array(range(3, 30)), dtype='int')
|
374 |
-
assert np.all(m.proxy_init3_dyn(3.0) == expect_c)
|
375 |
-
|
376 |
-
assert m.proxy_auxiliaries2_dyn(z1) == [11, 11, True, 2, 8, 2, 2, 4, 32]
|
377 |
-
assert m.proxy_auxiliaries2_dyn(z1) == m.array_auxiliaries2(z1)
|
378 |
-
|
379 |
-
|
380 |
-
def test_array_failure():
|
381 |
-
with pytest.raises(ValueError) as excinfo:
|
382 |
-
m.array_fail_test()
|
383 |
-
assert str(excinfo.value) == 'cannot create a pybind11::array from a nullptr'
|
384 |
-
|
385 |
-
with pytest.raises(ValueError) as excinfo:
|
386 |
-
m.array_t_fail_test()
|
387 |
-
assert str(excinfo.value) == 'cannot create a pybind11::array_t from a nullptr'
|
388 |
-
|
389 |
-
with pytest.raises(ValueError) as excinfo:
|
390 |
-
m.array_fail_test_negative_size()
|
391 |
-
assert str(excinfo.value) == 'negative dimensions are not allowed'
|
392 |
-
|
393 |
-
|
394 |
-
def test_initializer_list():
|
395 |
-
assert m.array_initializer_list1().shape == (1,)
|
396 |
-
assert m.array_initializer_list2().shape == (1, 2)
|
397 |
-
assert m.array_initializer_list3().shape == (1, 2, 3)
|
398 |
-
assert m.array_initializer_list4().shape == (1, 2, 3, 4)
|
399 |
-
|
400 |
-
|
401 |
-
def test_array_resize(msg):
|
402 |
-
a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9], dtype='float64')
|
403 |
-
m.array_reshape2(a)
|
404 |
-
assert(a.size == 9)
|
405 |
-
assert(np.all(a == [[1, 2, 3], [4, 5, 6], [7, 8, 9]]))
|
406 |
-
|
407 |
-
# total size change should succced with refcheck off
|
408 |
-
m.array_resize3(a, 4, False)
|
409 |
-
assert(a.size == 64)
|
410 |
-
# ... and fail with refcheck on
|
411 |
-
try:
|
412 |
-
m.array_resize3(a, 3, True)
|
413 |
-
except ValueError as e:
|
414 |
-
assert(str(e).startswith("cannot resize an array"))
|
415 |
-
# transposed array doesn't own data
|
416 |
-
b = a.transpose()
|
417 |
-
try:
|
418 |
-
m.array_resize3(b, 3, False)
|
419 |
-
except ValueError as e:
|
420 |
-
assert(str(e).startswith("cannot resize this array: it does not own its data"))
|
421 |
-
# ... but reshape should be fine
|
422 |
-
m.array_reshape2(b)
|
423 |
-
assert(b.shape == (8, 8))
|
424 |
-
|
425 |
-
|
426 |
-
@pytest.mark.xfail("env.PYPY")
|
427 |
-
def test_array_create_and_resize(msg):
|
428 |
-
a = m.create_and_resize(2)
|
429 |
-
assert(a.size == 4)
|
430 |
-
assert(np.all(a == 42.))
|
431 |
-
|
432 |
-
|
433 |
-
def test_index_using_ellipsis():
|
434 |
-
a = m.index_using_ellipsis(np.zeros((5, 6, 7)))
|
435 |
-
assert a.shape == (6,)
|
436 |
-
|
437 |
-
|
438 |
-
@pytest.mark.xfail("env.PYPY")
|
439 |
-
def test_dtype_refcount_leak():
|
440 |
-
from sys import getrefcount
|
441 |
-
dtype = np.dtype(np.float_)
|
442 |
-
a = np.array([1], dtype=dtype)
|
443 |
-
before = getrefcount(dtype)
|
444 |
-
m.ndim(a)
|
445 |
-
after = getrefcount(dtype)
|
446 |
-
assert after == before
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/pybind11/tools/libsize.py
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
from __future__ import print_function, division
|
3 |
-
import os
|
4 |
-
import sys
|
5 |
-
|
6 |
-
# Internal build script for generating debugging test .so size.
|
7 |
-
# Usage:
|
8 |
-
# python libsize.py file.so save.txt -- displays the size of file.so and, if save.txt exists, compares it to the
|
9 |
-
# size in it, then overwrites save.txt with the new size for future runs.
|
10 |
-
|
11 |
-
if len(sys.argv) != 3:
|
12 |
-
sys.exit("Invalid arguments: usage: python libsize.py file.so save.txt")
|
13 |
-
|
14 |
-
lib = sys.argv[1]
|
15 |
-
save = sys.argv[2]
|
16 |
-
|
17 |
-
if not os.path.exists(lib):
|
18 |
-
sys.exit("Error: requested file ({}) does not exist".format(lib))
|
19 |
-
|
20 |
-
libsize = os.path.getsize(lib)
|
21 |
-
|
22 |
-
print("------", os.path.basename(lib), "file size:", libsize, end='')
|
23 |
-
|
24 |
-
if os.path.exists(save):
|
25 |
-
with open(save) as sf:
|
26 |
-
oldsize = int(sf.readline())
|
27 |
-
|
28 |
-
if oldsize > 0:
|
29 |
-
change = libsize - oldsize
|
30 |
-
if change == 0:
|
31 |
-
print(" (no change)")
|
32 |
-
else:
|
33 |
-
print(" (change of {:+} bytes = {:+.2%})".format(change, change / oldsize))
|
34 |
-
else:
|
35 |
-
print()
|
36 |
-
|
37 |
-
with open(save, 'w') as sf:
|
38 |
-
sf.write(str(libsize))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/dependencies/cub/experimental/histogram/histogram_smem_atomics.h
DELETED
@@ -1,195 +0,0 @@
|
|
1 |
-
/******************************************************************************
|
2 |
-
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
|
3 |
-
*
|
4 |
-
* Redistribution and use in source and binary forms, with or without
|
5 |
-
* modification, are permitted provided that the following conditions are met:
|
6 |
-
* * Redistributions of source code must retain the above copyright
|
7 |
-
* notice, this list of conditions and the following disclaimer.
|
8 |
-
* * Redistributions in binary form must reproduce the above copyright
|
9 |
-
* notice, this list of conditions and the following disclaimer in the
|
10 |
-
* documentation and/or other materials provided with the distribution.
|
11 |
-
* * Neither the name of the NVIDIA CORPORATION nor the
|
12 |
-
* names of its contributors may be used to endorse or promote products
|
13 |
-
* derived from this software without specific prior written permission.
|
14 |
-
*
|
15 |
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
16 |
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
17 |
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
18 |
-
* DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR ANY
|
19 |
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
20 |
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
21 |
-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
22 |
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
23 |
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
24 |
-
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
25 |
-
*
|
26 |
-
******************************************************************************/
|
27 |
-
|
28 |
-
#include <test/test_util.h>
|
29 |
-
|
30 |
-
namespace histogram_smem_atomics
|
31 |
-
{
|
32 |
-
// Decode float4 pixel into bins
|
33 |
-
template <int NUM_BINS, int ACTIVE_CHANNELS>
|
34 |
-
__device__ __forceinline__ void DecodePixel(float4 pixel, unsigned int (&bins)[ACTIVE_CHANNELS])
|
35 |
-
{
|
36 |
-
float* samples = reinterpret_cast<float*>(&pixel);
|
37 |
-
|
38 |
-
#pragma unroll
|
39 |
-
for (int CHANNEL = 0; CHANNEL < ACTIVE_CHANNELS; ++CHANNEL)
|
40 |
-
bins[CHANNEL] = (unsigned int) (samples[CHANNEL] * float(NUM_BINS));
|
41 |
-
}
|
42 |
-
|
43 |
-
// Decode uchar4 pixel into bins
|
44 |
-
template <int NUM_BINS, int ACTIVE_CHANNELS>
|
45 |
-
__device__ __forceinline__ void DecodePixel(uchar4 pixel, unsigned int (&bins)[ACTIVE_CHANNELS])
|
46 |
-
{
|
47 |
-
unsigned char* samples = reinterpret_cast<unsigned char*>(&pixel);
|
48 |
-
|
49 |
-
#pragma unroll
|
50 |
-
for (int CHANNEL = 0; CHANNEL < ACTIVE_CHANNELS; ++CHANNEL)
|
51 |
-
bins[CHANNEL] = (unsigned int) (samples[CHANNEL]);
|
52 |
-
}
|
53 |
-
|
54 |
-
// Decode uchar1 pixel into bins
|
55 |
-
template <int NUM_BINS, int ACTIVE_CHANNELS>
|
56 |
-
__device__ __forceinline__ void DecodePixel(uchar1 pixel, unsigned int (&bins)[ACTIVE_CHANNELS])
|
57 |
-
{
|
58 |
-
bins[0] = (unsigned int) pixel.x;
|
59 |
-
}
|
60 |
-
|
61 |
-
// First-pass histogram kernel (binning into privatized counters)
|
62 |
-
template <
|
63 |
-
int NUM_PARTS,
|
64 |
-
int ACTIVE_CHANNELS,
|
65 |
-
int NUM_BINS,
|
66 |
-
typename PixelType>
|
67 |
-
__global__ void histogram_smem_atomics(
|
68 |
-
const PixelType *in,
|
69 |
-
int width,
|
70 |
-
int height,
|
71 |
-
unsigned int *out)
|
72 |
-
{
|
73 |
-
// global position and size
|
74 |
-
int x = blockIdx.x * blockDim.x + threadIdx.x;
|
75 |
-
int y = blockIdx.y * blockDim.y + threadIdx.y;
|
76 |
-
int nx = blockDim.x * gridDim.x;
|
77 |
-
int ny = blockDim.y * gridDim.y;
|
78 |
-
|
79 |
-
// threads in workgroup
|
80 |
-
int t = threadIdx.x + threadIdx.y * blockDim.x; // thread index in workgroup, linear in 0..nt-1
|
81 |
-
int nt = blockDim.x * blockDim.y; // total threads in workgroup
|
82 |
-
|
83 |
-
// group index in 0..ngroups-1
|
84 |
-
int g = blockIdx.x + blockIdx.y * gridDim.x;
|
85 |
-
|
86 |
-
// initialize smem
|
87 |
-
__shared__ unsigned int smem[ACTIVE_CHANNELS * NUM_BINS + 3];
|
88 |
-
for (int i = t; i < ACTIVE_CHANNELS * NUM_BINS + 3; i += nt)
|
89 |
-
smem[i] = 0;
|
90 |
-
__syncthreads();
|
91 |
-
|
92 |
-
// process pixels
|
93 |
-
// updates our group's partial histogram in smem
|
94 |
-
for (int col = x; col < width; col += nx)
|
95 |
-
{
|
96 |
-
for (int row = y; row < height; row += ny)
|
97 |
-
{
|
98 |
-
PixelType pixel = in[row * width + col];
|
99 |
-
|
100 |
-
unsigned int bins[ACTIVE_CHANNELS];
|
101 |
-
DecodePixel<NUM_BINS>(pixel, bins);
|
102 |
-
|
103 |
-
#pragma unroll
|
104 |
-
for (int CHANNEL = 0; CHANNEL < ACTIVE_CHANNELS; ++CHANNEL)
|
105 |
-
atomicAdd(&smem[(NUM_BINS * CHANNEL) + bins[CHANNEL] + CHANNEL], 1);
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
__syncthreads();
|
110 |
-
|
111 |
-
// move to our workgroup's slice of output
|
112 |
-
out += g * NUM_PARTS;
|
113 |
-
|
114 |
-
// store local output to global
|
115 |
-
for (int i = t; i < NUM_BINS; i += nt)
|
116 |
-
{
|
117 |
-
#pragma unroll
|
118 |
-
for (int CHANNEL = 0; CHANNEL < ACTIVE_CHANNELS; ++CHANNEL)
|
119 |
-
out[i + NUM_BINS * CHANNEL] = smem[i + NUM_BINS * CHANNEL + CHANNEL];
|
120 |
-
}
|
121 |
-
}
|
122 |
-
|
123 |
-
// Second pass histogram kernel (accumulation)
|
124 |
-
template <
|
125 |
-
int NUM_PARTS,
|
126 |
-
int ACTIVE_CHANNELS,
|
127 |
-
int NUM_BINS>
|
128 |
-
__global__ void histogram_smem_accum(
|
129 |
-
const unsigned int *in,
|
130 |
-
int n,
|
131 |
-
unsigned int *out)
|
132 |
-
{
|
133 |
-
int i = blockIdx.x * blockDim.x + threadIdx.x;
|
134 |
-
if (i > ACTIVE_CHANNELS * NUM_BINS) return; // out of range
|
135 |
-
unsigned int total = 0;
|
136 |
-
for (int j = 0; j < n; j++)
|
137 |
-
total += in[i + NUM_PARTS * j];
|
138 |
-
out[i] = total;
|
139 |
-
}
|
140 |
-
|
141 |
-
} // namespace histogram_smem_atomics
|
142 |
-
|
143 |
-
|
144 |
-
template <
|
145 |
-
int ACTIVE_CHANNELS,
|
146 |
-
int NUM_BINS,
|
147 |
-
typename PixelType>
|
148 |
-
double run_smem_atomics(
|
149 |
-
PixelType *d_image,
|
150 |
-
int width,
|
151 |
-
int height,
|
152 |
-
unsigned int *d_hist,
|
153 |
-
bool warmup)
|
154 |
-
{
|
155 |
-
enum
|
156 |
-
{
|
157 |
-
NUM_PARTS = 1024
|
158 |
-
};
|
159 |
-
|
160 |
-
cudaDeviceProp props;
|
161 |
-
cudaGetDeviceProperties(&props, 0);
|
162 |
-
|
163 |
-
dim3 block(32, 4);
|
164 |
-
dim3 grid(16, 16);
|
165 |
-
int total_blocks = grid.x * grid.y;
|
166 |
-
|
167 |
-
// allocate partial histogram
|
168 |
-
unsigned int *d_part_hist;
|
169 |
-
cudaMalloc(&d_part_hist, total_blocks * NUM_PARTS * sizeof(unsigned int));
|
170 |
-
|
171 |
-
dim3 block2(128);
|
172 |
-
dim3 grid2((ACTIVE_CHANNELS * NUM_BINS + block.x - 1) / block.x);
|
173 |
-
|
174 |
-
GpuTimer gpu_timer;
|
175 |
-
gpu_timer.Start();
|
176 |
-
|
177 |
-
histogram_smem_atomics::histogram_smem_atomics<NUM_PARTS, ACTIVE_CHANNELS, NUM_BINS><<<grid, block>>>(
|
178 |
-
d_image,
|
179 |
-
width,
|
180 |
-
height,
|
181 |
-
d_part_hist);
|
182 |
-
|
183 |
-
histogram_smem_atomics::histogram_smem_accum<NUM_PARTS, ACTIVE_CHANNELS, NUM_BINS><<<grid2, block2>>>(
|
184 |
-
d_part_hist,
|
185 |
-
total_blocks,
|
186 |
-
d_hist);
|
187 |
-
|
188 |
-
gpu_timer.Stop();
|
189 |
-
float elapsed_millis = gpu_timer.ElapsedMillis();
|
190 |
-
|
191 |
-
cudaFree(d_part_hist);
|
192 |
-
|
193 |
-
return elapsed_millis;
|
194 |
-
}
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/detail/type_traits.h
DELETED
@@ -1,714 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* Copyright 2008-2018 NVIDIA Corporation
|
3 |
-
*
|
4 |
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
* you may not use this file except in compliance with the License.
|
6 |
-
* You may obtain a 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 |
-
|
18 |
-
/*! \file type_traits.h
|
19 |
-
* \brief Temporarily define some type traits
|
20 |
-
* until nvcc can compile tr1::type_traits.
|
21 |
-
*/
|
22 |
-
|
23 |
-
#pragma once
|
24 |
-
|
25 |
-
#include <thrust/detail/config.h>
|
26 |
-
|
27 |
-
#if THRUST_CPP_DIALECT >= 2011
|
28 |
-
# include <type_traits>
|
29 |
-
#endif
|
30 |
-
|
31 |
-
namespace thrust
|
32 |
-
{
|
33 |
-
|
34 |
-
// forward declaration of device_reference
|
35 |
-
template<typename T> class device_reference;
|
36 |
-
|
37 |
-
namespace detail
|
38 |
-
{
|
39 |
-
/// helper classes [4.3].
|
40 |
-
template<typename T, T v>
|
41 |
-
struct integral_constant
|
42 |
-
{
|
43 |
-
THRUST_INLINE_INTEGRAL_MEMBER_CONSTANT T value = v;
|
44 |
-
|
45 |
-
typedef T value_type;
|
46 |
-
typedef integral_constant<T, v> type;
|
47 |
-
|
48 |
-
// We don't want to switch to std::integral_constant, because we want access
|
49 |
-
// to the C++14 operator(), but we'd like standard traits to interoperate
|
50 |
-
// with our version when tag dispatching.
|
51 |
-
#if THRUST_CPP_DIALECT >= 2011
|
52 |
-
integral_constant() = default;
|
53 |
-
|
54 |
-
integral_constant(integral_constant const&) = default;
|
55 |
-
|
56 |
-
integral_constant& operator=(integral_constant const&) = default;
|
57 |
-
|
58 |
-
constexpr __host__ __device__
|
59 |
-
integral_constant(std::integral_constant<T, v>) noexcept {}
|
60 |
-
#endif
|
61 |
-
|
62 |
-
THRUST_CONSTEXPR __host__ __device__ operator value_type() const THRUST_NOEXCEPT { return value; }
|
63 |
-
THRUST_CONSTEXPR __host__ __device__ value_type operator()() const THRUST_NOEXCEPT { return value; }
|
64 |
-
};
|
65 |
-
|
66 |
-
/// typedef for true_type
|
67 |
-
typedef integral_constant<bool, true> true_type;
|
68 |
-
|
69 |
-
/// typedef for true_type
|
70 |
-
typedef integral_constant<bool, false> false_type;
|
71 |
-
|
72 |
-
//template<typename T> struct is_integral : public std::tr1::is_integral<T> {};
|
73 |
-
template<typename T> struct is_integral : public false_type {};
|
74 |
-
template<> struct is_integral<bool> : public true_type {};
|
75 |
-
template<> struct is_integral<char> : public true_type {};
|
76 |
-
template<> struct is_integral<signed char> : public true_type {};
|
77 |
-
template<> struct is_integral<unsigned char> : public true_type {};
|
78 |
-
template<> struct is_integral<short> : public true_type {};
|
79 |
-
template<> struct is_integral<unsigned short> : public true_type {};
|
80 |
-
template<> struct is_integral<int> : public true_type {};
|
81 |
-
template<> struct is_integral<unsigned int> : public true_type {};
|
82 |
-
template<> struct is_integral<long> : public true_type {};
|
83 |
-
template<> struct is_integral<unsigned long> : public true_type {};
|
84 |
-
template<> struct is_integral<long long> : public true_type {};
|
85 |
-
template<> struct is_integral<unsigned long long> : public true_type {};
|
86 |
-
template<> struct is_integral<const bool> : public true_type {};
|
87 |
-
template<> struct is_integral<const char> : public true_type {};
|
88 |
-
template<> struct is_integral<const unsigned char> : public true_type {};
|
89 |
-
template<> struct is_integral<const short> : public true_type {};
|
90 |
-
template<> struct is_integral<const unsigned short> : public true_type {};
|
91 |
-
template<> struct is_integral<const int> : public true_type {};
|
92 |
-
template<> struct is_integral<const unsigned int> : public true_type {};
|
93 |
-
template<> struct is_integral<const long> : public true_type {};
|
94 |
-
template<> struct is_integral<const unsigned long> : public true_type {};
|
95 |
-
template<> struct is_integral<const long long> : public true_type {};
|
96 |
-
template<> struct is_integral<const unsigned long long> : public true_type {};
|
97 |
-
|
98 |
-
template<typename T> struct is_floating_point : public false_type {};
|
99 |
-
template<> struct is_floating_point<float> : public true_type {};
|
100 |
-
template<> struct is_floating_point<double> : public true_type {};
|
101 |
-
template<> struct is_floating_point<long double> : public true_type {};
|
102 |
-
|
103 |
-
template<typename T> struct is_arithmetic : public is_integral<T> {};
|
104 |
-
template<> struct is_arithmetic<float> : public true_type {};
|
105 |
-
template<> struct is_arithmetic<double> : public true_type {};
|
106 |
-
template<> struct is_arithmetic<const float> : public true_type {};
|
107 |
-
template<> struct is_arithmetic<const double> : public true_type {};
|
108 |
-
|
109 |
-
template<typename T> struct is_pointer : public false_type {};
|
110 |
-
template<typename T> struct is_pointer<T *> : public true_type {};
|
111 |
-
|
112 |
-
template<typename T> struct is_device_ptr : public false_type {};
|
113 |
-
|
114 |
-
template<typename T> struct is_void : public false_type {};
|
115 |
-
template<> struct is_void<void> : public true_type {};
|
116 |
-
template<> struct is_void<const void> : public true_type {};
|
117 |
-
|
118 |
-
template<typename T> struct is_non_bool_integral : public is_integral<T> {};
|
119 |
-
template<> struct is_non_bool_integral<bool> : public false_type {};
|
120 |
-
|
121 |
-
template<typename T> struct is_non_bool_arithmetic : public is_arithmetic<T> {};
|
122 |
-
template<> struct is_non_bool_arithmetic<bool> : public false_type {};
|
123 |
-
|
124 |
-
template<typename T> struct is_pod
|
125 |
-
: public integral_constant<
|
126 |
-
bool,
|
127 |
-
is_void<T>::value || is_pointer<T>::value || is_arithmetic<T>::value
|
128 |
-
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC || \
|
129 |
-
THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG
|
130 |
-
// use intrinsic type traits
|
131 |
-
|| __is_pod(T)
|
132 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC
|
133 |
-
// only use the intrinsic for >= 4.3
|
134 |
-
#if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3)
|
135 |
-
|| __is_pod(T)
|
136 |
-
#endif // GCC VERSION
|
137 |
-
#endif // THRUST_HOST_COMPILER
|
138 |
-
>
|
139 |
-
{};
|
140 |
-
|
141 |
-
|
142 |
-
template<typename T> struct has_trivial_constructor
|
143 |
-
: public integral_constant<
|
144 |
-
bool,
|
145 |
-
is_pod<T>::value
|
146 |
-
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC || \
|
147 |
-
THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG
|
148 |
-
|| __has_trivial_constructor(T)
|
149 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC
|
150 |
-
// only use the intrinsic for >= 4.3
|
151 |
-
#if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3)
|
152 |
-
|| __has_trivial_constructor(T)
|
153 |
-
#endif // GCC VERSION
|
154 |
-
#endif // THRUST_HOST_COMPILER
|
155 |
-
>
|
156 |
-
{};
|
157 |
-
|
158 |
-
template<typename T> struct has_trivial_copy_constructor
|
159 |
-
: public integral_constant<
|
160 |
-
bool,
|
161 |
-
is_pod<T>::value
|
162 |
-
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC || \
|
163 |
-
THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG
|
164 |
-
|| __has_trivial_copy(T)
|
165 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC
|
166 |
-
// only use the intrinsic for >= 4.3
|
167 |
-
#if (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3)
|
168 |
-
|| __has_trivial_copy(T)
|
169 |
-
#endif // GCC VERSION
|
170 |
-
#endif // THRUST_HOST_COMPILER
|
171 |
-
>
|
172 |
-
{};
|
173 |
-
|
174 |
-
template<typename T> struct has_trivial_destructor : public is_pod<T> {};
|
175 |
-
|
176 |
-
template<typename T> struct is_const : public false_type {};
|
177 |
-
template<typename T> struct is_const<const T> : public true_type {};
|
178 |
-
|
179 |
-
template<typename T> struct is_volatile : public false_type {};
|
180 |
-
template<typename T> struct is_volatile<volatile T> : public true_type {};
|
181 |
-
|
182 |
-
template<typename T>
|
183 |
-
struct add_const
|
184 |
-
{
|
185 |
-
typedef T const type;
|
186 |
-
}; // end add_const
|
187 |
-
|
188 |
-
template<typename T>
|
189 |
-
struct remove_const
|
190 |
-
{
|
191 |
-
typedef T type;
|
192 |
-
}; // end remove_const
|
193 |
-
|
194 |
-
template<typename T>
|
195 |
-
struct remove_const<const T>
|
196 |
-
{
|
197 |
-
typedef T type;
|
198 |
-
}; // end remove_const
|
199 |
-
|
200 |
-
template<typename T>
|
201 |
-
struct add_volatile
|
202 |
-
{
|
203 |
-
typedef volatile T type;
|
204 |
-
}; // end add_volatile
|
205 |
-
|
206 |
-
template<typename T>
|
207 |
-
struct remove_volatile
|
208 |
-
{
|
209 |
-
typedef T type;
|
210 |
-
}; // end remove_volatile
|
211 |
-
|
212 |
-
template<typename T>
|
213 |
-
struct remove_volatile<volatile T>
|
214 |
-
{
|
215 |
-
typedef T type;
|
216 |
-
}; // end remove_volatile
|
217 |
-
|
218 |
-
template<typename T>
|
219 |
-
struct add_cv
|
220 |
-
{
|
221 |
-
typedef const volatile T type;
|
222 |
-
}; // end add_cv
|
223 |
-
|
224 |
-
template<typename T>
|
225 |
-
struct remove_cv
|
226 |
-
{
|
227 |
-
typedef typename remove_const<typename remove_volatile<T>::type>::type type;
|
228 |
-
}; // end remove_cv
|
229 |
-
|
230 |
-
|
231 |
-
template<typename T> struct is_reference : public false_type {};
|
232 |
-
template<typename T> struct is_reference<T&> : public true_type {};
|
233 |
-
|
234 |
-
template<typename T> struct is_proxy_reference : public false_type {};
|
235 |
-
|
236 |
-
template<typename T> struct is_device_reference : public false_type {};
|
237 |
-
template<typename T> struct is_device_reference< thrust::device_reference<T> > : public true_type {};
|
238 |
-
|
239 |
-
|
240 |
-
// NB: Careful with reference to void.
|
241 |
-
template<typename _Tp, bool = (is_void<_Tp>::value || is_reference<_Tp>::value)>
|
242 |
-
struct __add_reference_helper
|
243 |
-
{ typedef _Tp& type; };
|
244 |
-
|
245 |
-
template<typename _Tp>
|
246 |
-
struct __add_reference_helper<_Tp, true>
|
247 |
-
{ typedef _Tp type; };
|
248 |
-
|
249 |
-
template<typename _Tp>
|
250 |
-
struct add_reference
|
251 |
-
: public __add_reference_helper<_Tp>{};
|
252 |
-
|
253 |
-
template<typename T>
|
254 |
-
struct remove_reference
|
255 |
-
{
|
256 |
-
typedef T type;
|
257 |
-
}; // end remove_reference
|
258 |
-
|
259 |
-
template<typename T>
|
260 |
-
struct remove_reference<T&>
|
261 |
-
{
|
262 |
-
typedef T type;
|
263 |
-
}; // end remove_reference
|
264 |
-
|
265 |
-
template<typename T1, typename T2>
|
266 |
-
struct is_same
|
267 |
-
: public false_type
|
268 |
-
{
|
269 |
-
}; // end is_same
|
270 |
-
|
271 |
-
template<typename T>
|
272 |
-
struct is_same<T,T>
|
273 |
-
: public true_type
|
274 |
-
{
|
275 |
-
}; // end is_same
|
276 |
-
|
277 |
-
template<typename T1, typename T2>
|
278 |
-
struct lazy_is_same
|
279 |
-
: is_same<typename T1::type, typename T2::type>
|
280 |
-
{
|
281 |
-
}; // end lazy_is_same
|
282 |
-
|
283 |
-
template<typename T1, typename T2>
|
284 |
-
struct is_different
|
285 |
-
: public true_type
|
286 |
-
{
|
287 |
-
}; // end is_different
|
288 |
-
|
289 |
-
template<typename T>
|
290 |
-
struct is_different<T,T>
|
291 |
-
: public false_type
|
292 |
-
{
|
293 |
-
}; // end is_different
|
294 |
-
|
295 |
-
template<typename T1, typename T2>
|
296 |
-
struct lazy_is_different
|
297 |
-
: is_different<typename T1::type, typename T2::type>
|
298 |
-
{
|
299 |
-
}; // end lazy_is_different
|
300 |
-
|
301 |
-
#if THRUST_CPP_DIALECT >= 2011
|
302 |
-
|
303 |
-
using std::is_convertible;
|
304 |
-
|
305 |
-
#else
|
306 |
-
|
307 |
-
namespace tt_detail
|
308 |
-
{
|
309 |
-
|
310 |
-
template<typename T>
|
311 |
-
struct is_int_or_cref
|
312 |
-
{
|
313 |
-
typedef typename remove_reference<T>::type type_sans_ref;
|
314 |
-
static const bool value = (is_integral<T>::value
|
315 |
-
|| (is_integral<type_sans_ref>::value
|
316 |
-
&& is_const<type_sans_ref>::value
|
317 |
-
&& !is_volatile<type_sans_ref>::value));
|
318 |
-
}; // end is_int_or_cref
|
319 |
-
|
320 |
-
|
321 |
-
THRUST_DISABLE_MSVC_POSSIBLE_LOSS_OF_DATA_WARNING_BEGIN
|
322 |
-
THRUST_DISABLE_MSVC_FORCING_VALUE_TO_BOOL_WARNING_BEGIN
|
323 |
-
|
324 |
-
template<typename From, typename To>
|
325 |
-
struct is_convertible_sfinae
|
326 |
-
{
|
327 |
-
private:
|
328 |
-
typedef char yes;
|
329 |
-
typedef struct { char two_chars[2]; } no;
|
330 |
-
|
331 |
-
static inline yes test(To) { return yes(); }
|
332 |
-
static inline no test(...) { return no(); }
|
333 |
-
static inline typename remove_reference<From>::type& from() { typename remove_reference<From>::type* ptr = 0; return *ptr; }
|
334 |
-
|
335 |
-
public:
|
336 |
-
static const bool value = sizeof(test(from())) == sizeof(yes);
|
337 |
-
}; // end is_convertible_sfinae
|
338 |
-
|
339 |
-
|
340 |
-
THRUST_DISABLE_MSVC_FORCING_VALUE_TO_BOOL_WARNING_END
|
341 |
-
THRUST_DISABLE_MSVC_POSSIBLE_LOSS_OF_DATA_WARNING_END
|
342 |
-
|
343 |
-
|
344 |
-
template<typename From, typename To>
|
345 |
-
struct is_convertible_needs_simple_test
|
346 |
-
{
|
347 |
-
static const bool from_is_void = is_void<From>::value;
|
348 |
-
static const bool to_is_void = is_void<To>::value;
|
349 |
-
static const bool from_is_float = is_floating_point<typename remove_reference<From>::type>::value;
|
350 |
-
static const bool to_is_int_or_cref = is_int_or_cref<To>::value;
|
351 |
-
|
352 |
-
static const bool value = (from_is_void || to_is_void || (from_is_float && to_is_int_or_cref));
|
353 |
-
}; // end is_convertible_needs_simple_test
|
354 |
-
|
355 |
-
|
356 |
-
template<typename From, typename To,
|
357 |
-
bool = is_convertible_needs_simple_test<From,To>::value>
|
358 |
-
struct is_convertible
|
359 |
-
{
|
360 |
-
static const bool value = (is_void<To>::value
|
361 |
-
|| (is_int_or_cref<To>::value
|
362 |
-
&& !is_void<From>::value));
|
363 |
-
}; // end is_convertible
|
364 |
-
|
365 |
-
|
366 |
-
template<typename From, typename To>
|
367 |
-
struct is_convertible<From, To, false>
|
368 |
-
{
|
369 |
-
static const bool value = (is_convertible_sfinae<typename
|
370 |
-
add_reference<From>::type, To>::value);
|
371 |
-
}; // end is_convertible
|
372 |
-
|
373 |
-
|
374 |
-
} // end tt_detail
|
375 |
-
|
376 |
-
template<typename From, typename To>
|
377 |
-
struct is_convertible
|
378 |
-
: public integral_constant<bool, tt_detail::is_convertible<From, To>::value>
|
379 |
-
{
|
380 |
-
}; // end is_convertible
|
381 |
-
|
382 |
-
#endif
|
383 |
-
|
384 |
-
template<typename T1, typename T2>
|
385 |
-
struct is_one_convertible_to_the_other
|
386 |
-
: public integral_constant<
|
387 |
-
bool,
|
388 |
-
is_convertible<T1,T2>::value || is_convertible<T2,T1>::value
|
389 |
-
>
|
390 |
-
{};
|
391 |
-
|
392 |
-
|
393 |
-
// mpl stuff
|
394 |
-
|
395 |
-
template <typename Condition1, typename Condition2, typename Condition3 = false_type,
|
396 |
-
typename Condition4 = false_type, typename Condition5 = false_type, typename Condition6 = false_type,
|
397 |
-
typename Condition7 = false_type, typename Condition8 = false_type, typename Condition9 = false_type,
|
398 |
-
typename Condition10 = false_type>
|
399 |
-
struct or_
|
400 |
-
: public integral_constant<
|
401 |
-
bool,
|
402 |
-
Condition1::value || Condition2::value || Condition3::value || Condition4::value || Condition5::value || Condition6::value || Condition7::value || Condition8::value || Condition9::value || Condition10::value
|
403 |
-
>
|
404 |
-
{
|
405 |
-
}; // end or_
|
406 |
-
|
407 |
-
template <typename Condition1, typename Condition2, typename Condition3 = true_type>
|
408 |
-
struct and_
|
409 |
-
: public integral_constant<bool, Condition1::value && Condition2::value && Condition3::value>
|
410 |
-
{
|
411 |
-
}; // end and_
|
412 |
-
|
413 |
-
template <typename Boolean>
|
414 |
-
struct not_
|
415 |
-
: public integral_constant<bool, !Boolean::value>
|
416 |
-
{
|
417 |
-
}; // end not_
|
418 |
-
|
419 |
-
template<bool B, class T, class F>
|
420 |
-
struct conditional { typedef T type; };
|
421 |
-
|
422 |
-
template<class T, class F>
|
423 |
-
struct conditional<false, T, F> { typedef F type; };
|
424 |
-
|
425 |
-
template <bool, typename Then, typename Else>
|
426 |
-
struct eval_if
|
427 |
-
{
|
428 |
-
}; // end eval_if
|
429 |
-
|
430 |
-
template<typename Then, typename Else>
|
431 |
-
struct eval_if<true, Then, Else>
|
432 |
-
{
|
433 |
-
typedef typename Then::type type;
|
434 |
-
}; // end eval_if
|
435 |
-
|
436 |
-
template<typename Then, typename Else>
|
437 |
-
struct eval_if<false, Then, Else>
|
438 |
-
{
|
439 |
-
typedef typename Else::type type;
|
440 |
-
}; // end eval_if
|
441 |
-
|
442 |
-
template<typename T>
|
443 |
-
// struct identity
|
444 |
-
// XXX WAR nvcc's confusion with thrust::identity
|
445 |
-
struct identity_
|
446 |
-
{
|
447 |
-
typedef T type;
|
448 |
-
}; // end identity
|
449 |
-
|
450 |
-
template<bool, typename T = void> struct enable_if {};
|
451 |
-
template<typename T> struct enable_if<true, T> {typedef T type;};
|
452 |
-
|
453 |
-
template<bool, typename T> struct lazy_enable_if {};
|
454 |
-
template<typename T> struct lazy_enable_if<true, T> {typedef typename T::type type;};
|
455 |
-
|
456 |
-
template<bool condition, typename T = void> struct disable_if : enable_if<!condition, T> {};
|
457 |
-
template<bool condition, typename T> struct lazy_disable_if : lazy_enable_if<!condition, T> {};
|
458 |
-
|
459 |
-
|
460 |
-
template<typename T1, typename T2, typename T = void>
|
461 |
-
struct enable_if_convertible
|
462 |
-
: enable_if< is_convertible<T1,T2>::value, T >
|
463 |
-
{};
|
464 |
-
|
465 |
-
|
466 |
-
template<typename T1, typename T2, typename T = void>
|
467 |
-
struct disable_if_convertible
|
468 |
-
: disable_if< is_convertible<T1,T2>::value, T >
|
469 |
-
{};
|
470 |
-
|
471 |
-
|
472 |
-
template<typename T1, typename T2, typename Result = void>
|
473 |
-
struct enable_if_different
|
474 |
-
: enable_if<is_different<T1,T2>::value, Result>
|
475 |
-
{};
|
476 |
-
|
477 |
-
|
478 |
-
template<typename T>
|
479 |
-
struct is_numeric
|
480 |
-
: and_<
|
481 |
-
is_convertible<int,T>,
|
482 |
-
is_convertible<T,int>
|
483 |
-
>
|
484 |
-
{
|
485 |
-
}; // end is_numeric
|
486 |
-
|
487 |
-
|
488 |
-
template<typename> struct is_reference_to_const : false_type {};
|
489 |
-
template<typename T> struct is_reference_to_const<const T&> : true_type {};
|
490 |
-
|
491 |
-
|
492 |
-
// make_unsigned follows
|
493 |
-
|
494 |
-
namespace tt_detail
|
495 |
-
{
|
496 |
-
|
497 |
-
template<typename T> struct make_unsigned_simple;
|
498 |
-
|
499 |
-
template<> struct make_unsigned_simple<char> { typedef unsigned char type; };
|
500 |
-
template<> struct make_unsigned_simple<signed char> { typedef unsigned char type; };
|
501 |
-
template<> struct make_unsigned_simple<unsigned char> { typedef unsigned char type; };
|
502 |
-
template<> struct make_unsigned_simple<short> { typedef unsigned short type; };
|
503 |
-
template<> struct make_unsigned_simple<unsigned short> { typedef unsigned short type; };
|
504 |
-
template<> struct make_unsigned_simple<int> { typedef unsigned int type; };
|
505 |
-
template<> struct make_unsigned_simple<unsigned int> { typedef unsigned int type; };
|
506 |
-
template<> struct make_unsigned_simple<long int> { typedef unsigned long int type; };
|
507 |
-
template<> struct make_unsigned_simple<unsigned long int> { typedef unsigned long int type; };
|
508 |
-
template<> struct make_unsigned_simple<long long int> { typedef unsigned long long int type; };
|
509 |
-
template<> struct make_unsigned_simple<unsigned long long int> { typedef unsigned long long int type; };
|
510 |
-
|
511 |
-
template<typename T>
|
512 |
-
struct make_unsigned_base
|
513 |
-
{
|
514 |
-
// remove cv
|
515 |
-
typedef typename remove_cv<T>::type remove_cv_t;
|
516 |
-
|
517 |
-
// get the simple unsigned type
|
518 |
-
typedef typename make_unsigned_simple<remove_cv_t>::type unsigned_remove_cv_t;
|
519 |
-
|
520 |
-
// add back const, volatile, both, or neither to the simple result
|
521 |
-
typedef typename eval_if<
|
522 |
-
is_const<T>::value && is_volatile<T>::value,
|
523 |
-
// add cv back
|
524 |
-
add_cv<unsigned_remove_cv_t>,
|
525 |
-
// check const & volatile individually
|
526 |
-
eval_if<
|
527 |
-
is_const<T>::value,
|
528 |
-
// add c back
|
529 |
-
add_const<unsigned_remove_cv_t>,
|
530 |
-
eval_if<
|
531 |
-
is_volatile<T>::value,
|
532 |
-
// add v back
|
533 |
-
add_volatile<unsigned_remove_cv_t>,
|
534 |
-
// original type was neither cv, return the simple unsigned result
|
535 |
-
identity_<unsigned_remove_cv_t>
|
536 |
-
>
|
537 |
-
>
|
538 |
-
>::type type;
|
539 |
-
};
|
540 |
-
|
541 |
-
} // end tt_detail
|
542 |
-
|
543 |
-
template<typename T>
|
544 |
-
struct make_unsigned
|
545 |
-
: tt_detail::make_unsigned_base<T>
|
546 |
-
{};
|
547 |
-
|
548 |
-
struct largest_available_float
|
549 |
-
{
|
550 |
-
#if defined(__CUDA_ARCH__)
|
551 |
-
# if (__CUDA_ARCH__ < 130)
|
552 |
-
typedef float type;
|
553 |
-
# else
|
554 |
-
typedef double type;
|
555 |
-
# endif
|
556 |
-
#else
|
557 |
-
typedef double type;
|
558 |
-
#endif
|
559 |
-
};
|
560 |
-
|
561 |
-
// T1 wins if they are both the same size
|
562 |
-
template<typename T1, typename T2>
|
563 |
-
struct larger_type
|
564 |
-
: thrust::detail::eval_if<
|
565 |
-
(sizeof(T2) > sizeof(T1)),
|
566 |
-
thrust::detail::identity_<T2>,
|
567 |
-
thrust::detail::identity_<T1>
|
568 |
-
>
|
569 |
-
{};
|
570 |
-
|
571 |
-
#if THRUST_CPP_DIALECT >= 2011
|
572 |
-
|
573 |
-
using std::is_base_of;
|
574 |
-
|
575 |
-
#else
|
576 |
-
|
577 |
-
namespace is_base_of_ns
|
578 |
-
{
|
579 |
-
|
580 |
-
typedef char yes;
|
581 |
-
typedef struct { char two_chars[2]; } no;
|
582 |
-
|
583 |
-
template<typename Base, typename Derived>
|
584 |
-
struct host
|
585 |
-
{
|
586 |
-
operator Base*() const;
|
587 |
-
operator Derived*();
|
588 |
-
}; // end host
|
589 |
-
|
590 |
-
template<typename Base, typename Derived>
|
591 |
-
struct impl
|
592 |
-
{
|
593 |
-
template<typename T> static yes check(Derived *, T);
|
594 |
-
static no check(Base*, int);
|
595 |
-
|
596 |
-
static const bool value = sizeof(check(host<Base,Derived>(), int())) == sizeof(yes);
|
597 |
-
}; // end impl
|
598 |
-
|
599 |
-
} // end is_base_of_ns
|
600 |
-
|
601 |
-
|
602 |
-
template<typename Base, typename Derived>
|
603 |
-
struct is_base_of
|
604 |
-
: integral_constant<
|
605 |
-
bool,
|
606 |
-
is_base_of_ns::impl<Base,Derived>::value
|
607 |
-
>
|
608 |
-
{};
|
609 |
-
|
610 |
-
#endif
|
611 |
-
|
612 |
-
template<typename Base, typename Derived, typename Result = void>
|
613 |
-
struct enable_if_base_of
|
614 |
-
: enable_if<
|
615 |
-
is_base_of<Base,Derived>::value,
|
616 |
-
Result
|
617 |
-
>
|
618 |
-
{};
|
619 |
-
|
620 |
-
|
621 |
-
namespace is_assignable_ns
|
622 |
-
{
|
623 |
-
|
624 |
-
template<typename T1, typename T2>
|
625 |
-
class is_assignable
|
626 |
-
{
|
627 |
-
typedef char yes_type;
|
628 |
-
typedef struct { char array[2]; } no_type;
|
629 |
-
|
630 |
-
template<typename T> static typename add_reference<T>::type declval();
|
631 |
-
|
632 |
-
template<unsigned int> struct helper { typedef void * type; };
|
633 |
-
|
634 |
-
template<typename U1, typename U2> static yes_type test(typename helper<sizeof(declval<U1>() = declval<U2>())>::type);
|
635 |
-
|
636 |
-
template<typename,typename> static no_type test(...);
|
637 |
-
|
638 |
-
public:
|
639 |
-
static const bool value = sizeof(test<T1,T2>(0)) == 1;
|
640 |
-
}; // end is_assignable
|
641 |
-
|
642 |
-
} // end is_assignable_ns
|
643 |
-
|
644 |
-
|
645 |
-
template<typename T1, typename T2>
|
646 |
-
struct is_assignable
|
647 |
-
: integral_constant<
|
648 |
-
bool,
|
649 |
-
is_assignable_ns::is_assignable<T1,T2>::value
|
650 |
-
>
|
651 |
-
{};
|
652 |
-
|
653 |
-
|
654 |
-
template<typename T>
|
655 |
-
struct is_copy_assignable
|
656 |
-
: is_assignable<
|
657 |
-
typename add_reference<T>::type,
|
658 |
-
typename add_reference<typename add_const<T>::type>::type
|
659 |
-
>
|
660 |
-
{};
|
661 |
-
|
662 |
-
|
663 |
-
template<typename T1, typename T2, typename Enable = void> struct promoted_numerical_type;
|
664 |
-
|
665 |
-
template<typename T1, typename T2>
|
666 |
-
struct promoted_numerical_type<T1,T2,typename enable_if<and_
|
667 |
-
<typename is_floating_point<T1>::type,typename is_floating_point<T2>::type>
|
668 |
-
::value>::type>
|
669 |
-
{
|
670 |
-
typedef typename larger_type<T1,T2>::type type;
|
671 |
-
};
|
672 |
-
|
673 |
-
template<typename T1, typename T2>
|
674 |
-
struct promoted_numerical_type<T1,T2,typename enable_if<and_
|
675 |
-
<typename is_integral<T1>::type,typename is_floating_point<T2>::type>
|
676 |
-
::value>::type>
|
677 |
-
{
|
678 |
-
typedef T2 type;
|
679 |
-
};
|
680 |
-
|
681 |
-
template<typename T1, typename T2>
|
682 |
-
struct promoted_numerical_type<T1,T2,typename enable_if<and_
|
683 |
-
<typename is_floating_point<T1>::type, typename is_integral<T2>::type>
|
684 |
-
::value>::type>
|
685 |
-
{
|
686 |
-
typedef T1 type;
|
687 |
-
};
|
688 |
-
|
689 |
-
template<typename T>
|
690 |
-
struct is_empty_helper : public T
|
691 |
-
{
|
692 |
-
};
|
693 |
-
|
694 |
-
struct is_empty_helper_base
|
695 |
-
{
|
696 |
-
};
|
697 |
-
|
698 |
-
template<typename T>
|
699 |
-
struct is_empty : integral_constant<bool,
|
700 |
-
sizeof(is_empty_helper_base) == sizeof(is_empty_helper<T>)
|
701 |
-
>
|
702 |
-
{
|
703 |
-
};
|
704 |
-
|
705 |
-
} // end detail
|
706 |
-
|
707 |
-
using detail::integral_constant;
|
708 |
-
using detail::true_type;
|
709 |
-
using detail::false_type;
|
710 |
-
|
711 |
-
} // end thrust
|
712 |
-
|
713 |
-
#include <thrust/detail/type_traits/has_trivial_assign.h>
|
714 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/system/cpp/detail/gather.h
DELETED
@@ -1,22 +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 |
-
#pragma once
|
18 |
-
|
19 |
-
#include <thrust/detail/config.h>
|
20 |
-
|
21 |
-
// this system has no special version of this algorithm
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/system/omp/detail/copy.h
DELETED
@@ -1,57 +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 |
-
#pragma once
|
18 |
-
|
19 |
-
#include <thrust/detail/config.h>
|
20 |
-
#include <thrust/system/omp/detail/execution_policy.h>
|
21 |
-
|
22 |
-
namespace thrust
|
23 |
-
{
|
24 |
-
namespace system
|
25 |
-
{
|
26 |
-
namespace omp
|
27 |
-
{
|
28 |
-
namespace detail
|
29 |
-
{
|
30 |
-
|
31 |
-
|
32 |
-
template<typename DerivedPolicy,
|
33 |
-
typename InputIterator,
|
34 |
-
typename OutputIterator>
|
35 |
-
OutputIterator copy(execution_policy<DerivedPolicy> &exec,
|
36 |
-
InputIterator first,
|
37 |
-
InputIterator last,
|
38 |
-
OutputIterator result);
|
39 |
-
|
40 |
-
|
41 |
-
template<typename DerivedPolicy,
|
42 |
-
typename InputIterator,
|
43 |
-
typename Size,
|
44 |
-
typename OutputIterator>
|
45 |
-
OutputIterator copy_n(execution_policy<DerivedPolicy> &exec,
|
46 |
-
InputIterator first,
|
47 |
-
Size n,
|
48 |
-
OutputIterator result);
|
49 |
-
|
50 |
-
|
51 |
-
} // end namespace detail
|
52 |
-
} // end namespace omp
|
53 |
-
} // end namespace system
|
54 |
-
} // end namespace thrust
|
55 |
-
|
56 |
-
#include <thrust/system/omp/detail/copy.inl>
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/regionclip-demo/detectron2/utils/video_visualizer.py
DELETED
@@ -1,235 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates.
|
2 |
-
import numpy as np
|
3 |
-
import pycocotools.mask as mask_util
|
4 |
-
|
5 |
-
from detectron2.utils.visualizer import (
|
6 |
-
ColorMode,
|
7 |
-
Visualizer,
|
8 |
-
_create_text_labels,
|
9 |
-
_PanopticPrediction,
|
10 |
-
)
|
11 |
-
|
12 |
-
from .colormap import random_color
|
13 |
-
|
14 |
-
|
15 |
-
class _DetectedInstance:
|
16 |
-
"""
|
17 |
-
Used to store data about detected objects in video frame,
|
18 |
-
in order to transfer color to objects in the future frames.
|
19 |
-
|
20 |
-
Attributes:
|
21 |
-
label (int):
|
22 |
-
bbox (tuple[float]):
|
23 |
-
mask_rle (dict):
|
24 |
-
color (tuple[float]): RGB colors in range (0, 1)
|
25 |
-
ttl (int): time-to-live for the instance. For example, if ttl=2,
|
26 |
-
the instance color can be transferred to objects in the next two frames.
|
27 |
-
"""
|
28 |
-
|
29 |
-
__slots__ = ["label", "bbox", "mask_rle", "color", "ttl"]
|
30 |
-
|
31 |
-
def __init__(self, label, bbox, mask_rle, color, ttl):
|
32 |
-
self.label = label
|
33 |
-
self.bbox = bbox
|
34 |
-
self.mask_rle = mask_rle
|
35 |
-
self.color = color
|
36 |
-
self.ttl = ttl
|
37 |
-
|
38 |
-
|
39 |
-
class VideoVisualizer:
|
40 |
-
def __init__(self, metadata, instance_mode=ColorMode.IMAGE):
|
41 |
-
"""
|
42 |
-
Args:
|
43 |
-
metadata (MetadataCatalog): image metadata.
|
44 |
-
"""
|
45 |
-
self.metadata = metadata
|
46 |
-
self._old_instances = []
|
47 |
-
assert instance_mode in [
|
48 |
-
ColorMode.IMAGE,
|
49 |
-
ColorMode.IMAGE_BW,
|
50 |
-
], "Other mode not supported yet."
|
51 |
-
self._instance_mode = instance_mode
|
52 |
-
|
53 |
-
def draw_instance_predictions(self, frame, predictions):
|
54 |
-
"""
|
55 |
-
Draw instance-level prediction results on an image.
|
56 |
-
|
57 |
-
Args:
|
58 |
-
frame (ndarray): an RGB image of shape (H, W, C), in the range [0, 255].
|
59 |
-
predictions (Instances): the output of an instance detection/segmentation
|
60 |
-
model. Following fields will be used to draw:
|
61 |
-
"pred_boxes", "pred_classes", "scores", "pred_masks" (or "pred_masks_rle").
|
62 |
-
|
63 |
-
Returns:
|
64 |
-
output (VisImage): image object with visualizations.
|
65 |
-
"""
|
66 |
-
frame_visualizer = Visualizer(frame, self.metadata)
|
67 |
-
num_instances = len(predictions)
|
68 |
-
if num_instances == 0:
|
69 |
-
return frame_visualizer.output
|
70 |
-
|
71 |
-
boxes = predictions.pred_boxes.tensor.numpy() if predictions.has("pred_boxes") else None
|
72 |
-
scores = predictions.scores if predictions.has("scores") else None
|
73 |
-
classes = predictions.pred_classes.numpy() if predictions.has("pred_classes") else None
|
74 |
-
keypoints = predictions.pred_keypoints if predictions.has("pred_keypoints") else None
|
75 |
-
|
76 |
-
if predictions.has("pred_masks"):
|
77 |
-
masks = predictions.pred_masks
|
78 |
-
# mask IOU is not yet enabled
|
79 |
-
# masks_rles = mask_util.encode(np.asarray(masks.permute(1, 2, 0), order="F"))
|
80 |
-
# assert len(masks_rles) == num_instances
|
81 |
-
else:
|
82 |
-
masks = None
|
83 |
-
|
84 |
-
detected = [
|
85 |
-
_DetectedInstance(classes[i], boxes[i], mask_rle=None, color=None, ttl=8)
|
86 |
-
for i in range(num_instances)
|
87 |
-
]
|
88 |
-
colors = self._assign_colors(detected)
|
89 |
-
|
90 |
-
labels = _create_text_labels(classes, scores, self.metadata.get("thing_classes", None))
|
91 |
-
|
92 |
-
if self._instance_mode == ColorMode.IMAGE_BW:
|
93 |
-
# any() returns uint8 tensor
|
94 |
-
frame_visualizer.output.img = frame_visualizer._create_grayscale_image(
|
95 |
-
(masks.any(dim=0) > 0).numpy() if masks is not None else None
|
96 |
-
)
|
97 |
-
alpha = 0.3
|
98 |
-
else:
|
99 |
-
alpha = 0.5
|
100 |
-
|
101 |
-
frame_visualizer.overlay_instances(
|
102 |
-
boxes=None if masks is not None else boxes, # boxes are a bit distracting
|
103 |
-
masks=masks,
|
104 |
-
labels=labels,
|
105 |
-
keypoints=keypoints,
|
106 |
-
assigned_colors=colors,
|
107 |
-
alpha=alpha,
|
108 |
-
)
|
109 |
-
|
110 |
-
return frame_visualizer.output
|
111 |
-
|
112 |
-
def draw_sem_seg(self, frame, sem_seg, area_threshold=None):
|
113 |
-
"""
|
114 |
-
Args:
|
115 |
-
sem_seg (ndarray or Tensor): semantic segmentation of shape (H, W),
|
116 |
-
each value is the integer label.
|
117 |
-
area_threshold (Optional[int]): only draw segmentations larger than the threshold
|
118 |
-
"""
|
119 |
-
# don't need to do anything special
|
120 |
-
frame_visualizer = Visualizer(frame, self.metadata)
|
121 |
-
frame_visualizer.draw_sem_seg(sem_seg, area_threshold=None)
|
122 |
-
return frame_visualizer.output
|
123 |
-
|
124 |
-
def draw_panoptic_seg_predictions(
|
125 |
-
self, frame, panoptic_seg, segments_info, area_threshold=None, alpha=0.5
|
126 |
-
):
|
127 |
-
frame_visualizer = Visualizer(frame, self.metadata)
|
128 |
-
pred = _PanopticPrediction(panoptic_seg, segments_info, self.metadata)
|
129 |
-
|
130 |
-
if self._instance_mode == ColorMode.IMAGE_BW:
|
131 |
-
frame_visualizer.output.img = frame_visualizer._create_grayscale_image(
|
132 |
-
pred.non_empty_mask()
|
133 |
-
)
|
134 |
-
|
135 |
-
# draw mask for all semantic segments first i.e. "stuff"
|
136 |
-
for mask, sinfo in pred.semantic_masks():
|
137 |
-
category_idx = sinfo["category_id"]
|
138 |
-
try:
|
139 |
-
mask_color = [x / 255 for x in self.metadata.stuff_colors[category_idx]]
|
140 |
-
except AttributeError:
|
141 |
-
mask_color = None
|
142 |
-
|
143 |
-
frame_visualizer.draw_binary_mask(
|
144 |
-
mask,
|
145 |
-
color=mask_color,
|
146 |
-
text=self.metadata.stuff_classes[category_idx],
|
147 |
-
alpha=alpha,
|
148 |
-
area_threshold=area_threshold,
|
149 |
-
)
|
150 |
-
|
151 |
-
all_instances = list(pred.instance_masks())
|
152 |
-
if len(all_instances) == 0:
|
153 |
-
return frame_visualizer.output
|
154 |
-
# draw mask for all instances second
|
155 |
-
masks, sinfo = list(zip(*all_instances))
|
156 |
-
num_instances = len(masks)
|
157 |
-
masks_rles = mask_util.encode(
|
158 |
-
np.asarray(np.asarray(masks).transpose(1, 2, 0), dtype=np.uint8, order="F")
|
159 |
-
)
|
160 |
-
assert len(masks_rles) == num_instances
|
161 |
-
|
162 |
-
category_ids = [x["category_id"] for x in sinfo]
|
163 |
-
detected = [
|
164 |
-
_DetectedInstance(category_ids[i], bbox=None, mask_rle=masks_rles[i], color=None, ttl=8)
|
165 |
-
for i in range(num_instances)
|
166 |
-
]
|
167 |
-
colors = self._assign_colors(detected)
|
168 |
-
labels = [self.metadata.thing_classes[k] for k in category_ids]
|
169 |
-
|
170 |
-
frame_visualizer.overlay_instances(
|
171 |
-
boxes=None,
|
172 |
-
masks=masks,
|
173 |
-
labels=labels,
|
174 |
-
keypoints=None,
|
175 |
-
assigned_colors=colors,
|
176 |
-
alpha=alpha,
|
177 |
-
)
|
178 |
-
return frame_visualizer.output
|
179 |
-
|
180 |
-
def _assign_colors(self, instances):
|
181 |
-
"""
|
182 |
-
Naive tracking heuristics to assign same color to the same instance,
|
183 |
-
will update the internal state of tracked instances.
|
184 |
-
|
185 |
-
Returns:
|
186 |
-
list[tuple[float]]: list of colors.
|
187 |
-
"""
|
188 |
-
|
189 |
-
# Compute iou with either boxes or masks:
|
190 |
-
is_crowd = np.zeros((len(instances),), dtype=np.bool)
|
191 |
-
if instances[0].bbox is None:
|
192 |
-
assert instances[0].mask_rle is not None
|
193 |
-
# use mask iou only when box iou is None
|
194 |
-
# because box seems good enough
|
195 |
-
rles_old = [x.mask_rle for x in self._old_instances]
|
196 |
-
rles_new = [x.mask_rle for x in instances]
|
197 |
-
ious = mask_util.iou(rles_old, rles_new, is_crowd)
|
198 |
-
threshold = 0.5
|
199 |
-
else:
|
200 |
-
boxes_old = [x.bbox for x in self._old_instances]
|
201 |
-
boxes_new = [x.bbox for x in instances]
|
202 |
-
ious = mask_util.iou(boxes_old, boxes_new, is_crowd)
|
203 |
-
threshold = 0.6
|
204 |
-
if len(ious) == 0:
|
205 |
-
ious = np.zeros((len(self._old_instances), len(instances)), dtype="float32")
|
206 |
-
|
207 |
-
# Only allow matching instances of the same label:
|
208 |
-
for old_idx, old in enumerate(self._old_instances):
|
209 |
-
for new_idx, new in enumerate(instances):
|
210 |
-
if old.label != new.label:
|
211 |
-
ious[old_idx, new_idx] = 0
|
212 |
-
|
213 |
-
matched_new_per_old = np.asarray(ious).argmax(axis=1)
|
214 |
-
max_iou_per_old = np.asarray(ious).max(axis=1)
|
215 |
-
|
216 |
-
# Try to find match for each old instance:
|
217 |
-
extra_instances = []
|
218 |
-
for idx, inst in enumerate(self._old_instances):
|
219 |
-
if max_iou_per_old[idx] > threshold:
|
220 |
-
newidx = matched_new_per_old[idx]
|
221 |
-
if instances[newidx].color is None:
|
222 |
-
instances[newidx].color = inst.color
|
223 |
-
continue
|
224 |
-
# If an old instance does not match any new instances,
|
225 |
-
# keep it for the next frame in case it is just missed by the detector
|
226 |
-
inst.ttl -= 1
|
227 |
-
if inst.ttl > 0:
|
228 |
-
extra_instances.append(inst)
|
229 |
-
|
230 |
-
# Assign random color to newly-detected instances:
|
231 |
-
for inst in instances:
|
232 |
-
if inst.color is None:
|
233 |
-
inst.color = random_color(rgb=True, maximum=1)
|
234 |
-
self._old_instances = instances[:] + extra_instances
|
235 |
-
return [d.color for d in instances]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Caoyunkang/Segment-Any-Anomaly/SAA/prompts/general_prompts.py
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
general_anomaly_description = [
|
2 |
-
'defect on {}',
|
3 |
-
'damage on {}',
|
4 |
-
'flaw on {}',
|
5 |
-
]
|
6 |
-
|
7 |
-
|
8 |
-
def build_general_prompts(category):
|
9 |
-
return [[f.format(category), category] for f in general_anomaly_description]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Chirag4579/prakalpa-image-comparator/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Prakalpa Image Comparator
|
3 |
-
emoji: 😻
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: purple
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.10.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|