Enhanced Strawberry GraphQL integration with Django

Enhanced Strawberry integration with Django. Built on top of strawberry-djangointegration, enhancing its overall functionality. Features All of supported features by strawberry-django. Extension that automatically optimize queries (usingonly/select_related/prefetch_related) to solve graphql N+1 problems, with support forfragment spread, inline fragments, @include/@skip directives, prefetch merging, etc Improved sync/async resolver that priorizes the model’s cache to avoid have to usesync_to_asyncwhen not needed. Support for Django choices enums using (requiresdjango-choices-field) Relay support for queries, connections and input mutations. Django Debug Toolbar integration with graphiql todisplay […]

Read more

Working With Pipenv

Managing multiple Python projects with their own third-party packages can get complicated. It is best practice to use a virtual environment to sandbox the requirements for each of your projects. Enter pipenv, the official recommended package management tool for Python. It handles both installation and virtual environments to help you manage your Python dependencies. In this course, you’ll learn about: How to use pip to install a package Where Python puts packages by default How to use pipenv to create […]

Read more

Augmentation for Single-Image-Super-Resolution

Augmentation for Single-Image-Super-Resolution Implimentation CutBlur Cutout CutMix Cutup CutMixup Blend RGBPermutation Identity OneOf License cf. @solafune(https://solafune.com) コンテストの参加以外を目的とした利用及び商用利用は禁止されています。商用利用・その他当コンテスト以外で利用したい場合はお問い合わせください。() cf. @solafune(https://solafune.com) Use for any purpose other than participation in the competition or commercial use is prohibited. If you would like to use them for any of the above purposes, please contact us. GitHub View Github    

Read more

A simple visualization toolbox (script) for transformer attention visualization

This is a super simple visualization toolbox (script) for transformer attention visualization ✌ 1. How to prepare your attention matrix? Just convert it to numpy array like this 👇 # build an attetion matrixs as torch-output like token_num = 6 case_num = 3 layer_num = 2 head_num = 4 attention_map_mhml = [np.stack([make_attention_map_mh(head_num, token_num)]*case_num, 0) for _ in range(layer_num)] # 4cases’ 3 layers attention, with 3 head per layer( 每个case相同) _ = [print(i.shape) for i in attention_map_mhml] “”” >>>(3, 4, 6, […]

Read more

Create QR Code for link using Python

Quick Response QR is short and named for a quick read from a cell phone. Used to view information from transitory media and put it on your cell phone. To create QR codes with Python you only need to install a Python module. Installation The pyqrcode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created […]

Read more

A keylogger based in python which when executed records all the keystrokes of the system it has been executed on

This is a keylogger based in python which when executed records all the keystrokes of the system it has been executed on and sends to your email every 30 secs. Upon executing even if the victim deletes the file it creates a hidden temp folder in the victim’s system and then adds a registry key with a less suspicious name which executes every time upon startup.It has been merged with a pdf,jpg,etc or whatever file they want to merge it […]

Read more

A smart personal companion and health assistant

Steps to Install : Clone the repository Go to ResQ-Sources Execute ResQ-Lite.py –: Manual Controls : DanceRobot.py –: You can call functions like forward,backward manually in this file or Add Keyboard Event-Bindings ResQ Health Companion Under the Supervision of PROF. TUFAN SAHA Department of Computer Science & Engineering Institute of Engineering and Management West Bengal, India November, 2020 As life grows to be fast-paced, the focus on good health habits and provisions on healthcare gets less evident among the people […]

Read more

A Python module that allows you to create and use simple sockets

A Python module that allows you to create and use simple sockets. The easysockets module can be installed using pip. or pip install git+https://github.com/Matthias1590/EasySockets.git You can also install it by cloning this repository and running the following commands: python3 setup.py build python3 setup.py install The easysockets module contains 3 main classes: ServerSocket, ClientSocket and Connection. Below are examples on how to use each of them. ServerSocket:

Read more
1 291 292 293 294 295 940