Skip to content

Instantly share code, notes, and snippets.

View hu-qi's full-sized avatar
🏠
Working from home

huqi hu-qi

🏠
Working from home
  • Canton
  • 13:20 (UTC +08:00)
  • X @huqii
View GitHub Profile
JavaScript 1 hr 3 mins ██████████▍░░░░░░░░░░ 49.6%
Markdown 40 mins ██████▋░░░░░░░░░░░░░░ 32.0%
JSON 10 mins █▋░░░░░░░░░░░░░░░░░░░ 7.9%
reStruc... 7 mins █▎░░░░░░░░░░░░░░░░░░░ 6.1%
TypeScript 3 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
@hu-qi
hu-qi / getBaiduImageInBigPic.py
Created April 7, 2023 06:49
Generate a photo gallery of your favorite stars.
import re
import os
import requests
import tqdm
import time
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
"Cookie": "BDqhfp=%E5%88%98%E4%BA%A6%E8%8F%B2%26%26NaN-1undefined%26%268976%26%2612; BIDUPSID=35317AAD04D05FDEDB9BACFC678F5849; PSTM=1657272836; BAIDUID=35317AAD04D05FDEDB9BACFC678F5849:SL=0:NR=50:FG=1; H_WISE_SIDS=110085_189755_194530_204912_209568_210322_211435_211986_212295_213039_214798_215730_216212_216843_216942_218549_219248_219404_219473_219581_219623_219943_219946_220017_220071_220610_220663_220864_221120_221410_221479_221502_222298_222397_222522_222625_223064_223211_223374_223683_224055_224436_224457_224633_224877_225636_225859_226014_226026_226088_226102_226294_226547_226578_226598_226627_226722_226755_226936_226946_227062_227063_227066_227155_227187_227241_227264_227378_227489_227515_227580_227591_227613_227657_227732_227746_227864_227896_227920_227932_227971_228132_228139_228575_22864
@hu-qi
hu-qi / sealos-install.sh
Last active July 19, 2023 02:42
Sealos is a Kubernetes distribution offering comprehensive solutions for both public and private clouds.
#!/bin/sh
# Copyright © 2023 sealos.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@hu-qi
hu-qi / handle_data.py
Last active July 22, 2023 16:14
The UAV-Human dataset contains 155 action classes, and the action categories are listed below:
import os
import shutil
import json
import tqdm
def copy_files(source_dir='all_rgb',label='smoke'):
# 指定你想要扫描视频的目录
source_dir = './' + source_dir
# 指定你想要复制视频的目录
target_dir = './' + label
@hu-qi
hu-qi / ⚡️ Recent activity
Last active May 10, 2024 03:47
⚡️ Recent activity
🗣 Commented on #27 in kaiyuanshe/2023-China-Open-Source-Report
❌ Closed PR #27 in kaiyuanshe/2023-China-Open-Source-Report
💪 Opened PR #27 in kaiyuanshe/2023-China-Open-Source-Report
💪 Opened PR #6633 in PaddlePaddle/docs
🗣 Commented on #6614 in PaddlePaddle/docs