repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fetchai/innovation-lab-examples | https://github.com/fetchai/innovation-lab-examples | https://api.github.com/repos/fetchai/innovation-lab-examples | fetchai | innovation-lab-examples | A curated collection of comprehensive Fetch.ai Innovation Lab examples, showcasing advanced use cases and detailed implementations beyond the main documentation. | 992 | 34 | 992 | mit | main | 2025-06-16T08:07:28 | 2026-05-03T18:05:59 | [] | {
"Python": 23375290,
"Cython": 63937,
"Shell": 22976,
"HTML": 20209,
"TypeScript": 17812,
"Dockerfile": 10741,
"PowerShell": 10741,
"Roff": 7889,
"JavaScript": 4636,
"Nushell": 2772,
"Batchfile": 2018,
"Makefile": 1490,
"CSS": 664,
"Go Template": 356
} | false | 5 | a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/__init__.py | __init__.py | .py | 245 | https://github.com/fetchai/innovation-lab-examples/blob/main/a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/__init__.py | https://raw.githubusercontent.com/fetchai/innovation-lab-examples/main/a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/__init__.py | 7138d49e10e6175d136f886990c3e2488ed9d20a | Python | 2026-05-04T01:25:46.801270 | from .research_agent import ResearchAgentExecutor
from .coding_agent import CodingAgentExecutor
from .analysis_agent import AnalysisAgentExecutor
__all__ = [
"ResearchAgentExecutor",
"CodingAgentExecutor",
"AnalysisAgentExecutor"
]
|
fetchai/innovation-lab-examples | https://github.com/fetchai/innovation-lab-examples | https://api.github.com/repos/fetchai/innovation-lab-examples | fetchai | innovation-lab-examples | A curated collection of comprehensive Fetch.ai Innovation Lab examples, showcasing advanced use cases and detailed implementations beyond the main documentation. | 992 | 34 | 992 | mit | main | 2025-06-16T08:07:28 | 2026-05-03T18:05:59 | [] | {
"Python": 23375290,
"Cython": 63937,
"Shell": 22976,
"HTML": 20209,
"TypeScript": 17812,
"Dockerfile": 10741,
"PowerShell": 10741,
"Roff": 7889,
"JavaScript": 4636,
"Nushell": 2772,
"Batchfile": 2018,
"Makefile": 1490,
"CSS": 664,
"Go Template": 356
} | false | 5 | a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/analysis_agent.py | analysis_agent.py | .py | 6,242 | https://github.com/fetchai/innovation-lab-examples/blob/main/a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/analysis_agent.py | https://raw.githubusercontent.com/fetchai/innovation-lab-examples/main/a2a-uAgents-Integration/a2a-Outbound-Communication/Multiagent/agents/analysis_agent.py | 8fdb7047fc0b03e75271f7a406f771644234e557 | Python | 2026-05-04T01:25:48.217546 | import os
import json
import requests
from dotenv import load_dotenv
from a2a.server.agent_execution import AgentExecutor, RequestContext
from a2a.server.events import EventQueue
from a2a.types import Part, TextPart
from a2a.utils import new_agent_text_message
from typing_extensions import override
# Load environment ... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | Combined_Dataset/Test_set/Composition_code_revised.py | Composition_code_revised.py | .py | 2,256 | https://github.com/foamliu/Deep-Image-Matting/blob/master/Combined_Dataset/Test_set/Composition_code_revised.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/Combined_Dataset/Test_set/Composition_code_revised.py | d9c52402a3076540bb0b47297d0b7025cb049b05 | Python | 2026-05-04T01:25:53.217736 | import math
import time
import cv2 as cv
import numpy as np
from tqdm import tqdm
##############################################################
# Set your paths here
# path to provided foreground images
fg_path = 'data/fg_test/'
# path to provided alpha mattes
a_path = 'data/mask_test/'
# Path to background images... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | Combined_Dataset/Training_set/Composition_code_revised.py | Composition_code_revised.py | .py | 2,249 | https://github.com/foamliu/Deep-Image-Matting/blob/master/Combined_Dataset/Training_set/Composition_code_revised.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/Combined_Dataset/Training_set/Composition_code_revised.py | f6a54c2d49ecc748afc42d48fa65d67d5abcd12e | Python | 2026-05-04T01:25:54.541975 | import math
import time
import cv2 as cv
import numpy as np
from tqdm import tqdm
##############################################################
# Set your paths here
# path to provided foreground images
fg_path = 'data/fg/'
# path to provided alpha mattes
a_path = 'data/mask/'
# Path to background images (MSCOCO)
... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | config.py | config.py | .py | 704 | https://github.com/foamliu/Deep-Image-Matting/blob/master/config.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/config.py | d5419db640f9037dc882c948ac908487b7afb998 | Python | 2026-05-04T01:25:55.877194 | img_rows, img_cols = 320, 320
# img_rows_half, img_cols_half = 160, 160
channel = 4
batch_size = 16
epochs = 1000
patience = 50
num_samples = 43100
num_train_samples = 34480
# num_samples - num_train_samples
num_valid_samples = 8620
unknown_code = 128
epsilon = 1e-6
epsilon_sqr = epsilon ** 2
#########################... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | custom_layers/scale_layer.py | scale_layer.py | .py | 3,314 | https://github.com/foamliu/Deep-Image-Matting/blob/master/custom_layers/scale_layer.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/custom_layers/scale_layer.py | 857d2c246c7fa26b79b2cdc72ac377cfc96f83c6 | Python | 2026-05-04T01:25:57.186673 | from keras.layers.core import Layer
from keras.engine import InputSpec
from keras import backend as K
try:
from keras import initializations
except ImportError:
from keras import initializers as initializations
class Scale(Layer):
'''Learns a set of weights and biases used for scaling the input data.
t... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | custom_layers/unpooling_layer.py | unpooling_layer.py | .py | 989 | https://github.com/foamliu/Deep-Image-Matting/blob/master/custom_layers/unpooling_layer.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/custom_layers/unpooling_layer.py | 633e0ab198bda3cae65ca7d782893284925ef9c8 | Python | 2026-05-04T01:25:58.470830 | from keras import backend as K
from keras.engine.topology import Layer
from keras.layers import Lambda, Multiply
class Unpooling(Layer):
def __init__(self, **kwargs):
super(Unpooling, self).__init__(**kwargs)
def build(self, input_shape):
super(Unpooling, self).build(input_shape)
def ca... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | data_generator.py | data_generator.py | .py | 6,006 | https://github.com/foamliu/Deep-Image-Matting/blob/master/data_generator.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/data_generator.py | 2779a66ed524acaaecdee18920c1c5a47be801b0 | Python | 2026-05-04T01:25:59.903935 | import math
import os
import random
from random import shuffle
import cv2 as cv
import numpy as np
from keras.utils import Sequence
from config import batch_size
from config import fg_path, bg_path, a_path
from config import img_cols, img_rows
from config import unknown_code
from utils import safe_crop
kernel = cv.g... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | demo.py | demo.py | .py | 4,342 | https://github.com/foamliu/Deep-Image-Matting/blob/master/demo.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/demo.py | e58336b4f9d90159800d9bd39ce49eba2a25fd6f | Python | 2026-05-04T01:26:01.128094 | import math
import os
import random
import cv2 as cv
import keras.backend as K
import numpy as np
from data_generator import generate_trimap, random_choice, get_alpha_test
from model import build_encoder_decoder, build_refinement
from utils import compute_mse_loss, compute_sad_loss
from utils import get_final_output,... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | migrate.py | migrate.py | .py | 1,612 | https://github.com/foamliu/Deep-Image-Matting/blob/master/migrate.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/migrate.py | 71eeb3c95e9dfad9dfe927c7f274ae8552e8eec1 | Python | 2026-05-04T01:26:02.615607 | import keras.backend as K
import numpy as np
from config import channel
from model import build_encoder_decoder
from vgg16 import vgg16_model
def migrate_model(new_model):
old_model = vgg16_model(224, 224, 3)
# print(old_model.summary())
old_layers = [l for l in old_model.layers]
new_layers = [l for ... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | model.py | model.py | .py | 6,891 | https://github.com/foamliu/Deep-Image-Matting/blob/master/model.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/model.py | f4b802b7316971796b326199274bfa223f803826 | Python | 2026-05-04T01:26:04.273290 | import keras.backend as K
import tensorflow as tf
from keras.layers import Input, Conv2D, UpSampling2D, BatchNormalization, ZeroPadding2D, MaxPooling2D, Concatenate, \
Reshape, Lambda
from keras.models import Model
from keras.utils import multi_gpu_model
from keras.utils import plot_model
from custom_layers.unpool... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | plot_model.py | plot_model.py | .py | 356 | https://github.com/foamliu/Deep-Image-Matting/blob/master/plot_model.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/plot_model.py | 8f5fd5234016bf68ee068f5b1809b5fafdc635fb | Python | 2026-05-04T01:26:05.483214 | # dependency: pip install pydot & brew install graphviz
from model import build_encoder_decoder
from keras.utils import plot_model
if __name__ == '__main__':
img_rows, img_cols = 320, 320
channel = 3
model = build_encoder_decoder(img_rows, img_cols, channel)
plot_model(model, to_file='model.svg', show_... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | pre_process.py | pre_process.py | .py | 4,378 | https://github.com/foamliu/Deep-Image-Matting/blob/master/pre_process.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/pre_process.py | d61844bb8d51c0360557cbe0fcb8c1552d6dfecd | Python | 2026-05-04T01:26:06.833451 | # -*- coding: utf-8 -*-
import os
import shutil
import zipfile
import tarfile
from Combined_Dataset.Training_set.Composition_code_revised import do_composite
from Combined_Dataset.Test_set.Composition_code_revised import do_composite_test
if __name__ == '__main__':
# path to provided foreground images
fg_pat... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | predit_single.py | predit_single.py | .py | 1,940 | https://github.com/foamliu/Deep-Image-Matting/blob/master/predit_single.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/predit_single.py | ee875e4dc7704e732cfd339b4cacb54ec232bdc4 | Python | 2026-05-04T01:26:08.175142 | # -*- coding: utf-8 -*-
import cv2 as cv
import keras.backend as K
import numpy as np
from model import build_encoder_decoder, build_refinement
from utils import get_final_output, create_patches, patch_dims, assemble_patches
import tensorflow as tf
import time
config = tf.ConfigProto(device_count = {"GPU": 1, "CPU": ... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | segnet.py | segnet.py | .py | 8,366 | https://github.com/foamliu/Deep-Image-Matting/blob/master/segnet.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/segnet.py | 543487ca78cca34fa85d0e39edef0939d43fdc72 | Python | 2026-05-04T01:26:09.905413 | import keras.backend as K
import tensorflow as tf
from keras.layers import Input, Conv2D, UpSampling2D, BatchNormalization, ZeroPadding2D, MaxPooling2D, Reshape, \
Concatenate, Lambda
from keras.models import Model
from keras.utils import multi_gpu_model
from keras.utils import plot_model
from custom_layers.unpool... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | test.py | test.py | .py | 1,504 | https://github.com/foamliu/Deep-Image-Matting/blob/master/test.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/test.py | b0a1d2c59c8cb090741db1634f29de5c94490e7f | Python | 2026-05-04T01:26:11.235038 | import argparse
import cv2 as cv
import numpy as np
from model import build_encoder_decoder, build_refinement
from utils import get_final_output
# python test.py -i "images/image.png" -t "images/trimap.png"
if __name__ == '__main__':
img_rows, img_cols = 320, 320
channel = 4
model_weights_path = 'models... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | test_alphamatting.py | test_alphamatting.py | .py | 1,149 | https://github.com/foamliu/Deep-Image-Matting/blob/master/test_alphamatting.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/test_alphamatting.py | 93f8c578a1965b305eebd59b7ab1b0f5d7c7fa06 | Python | 2026-05-04T01:26:12.553667 | import os
import cv2 as cv
import numpy as np
from model import build_encoder_decoder, build_refinement
if __name__ == '__main__':
pretrained_path = 'models/final.42-0.0398.hdf5'
encoder_decoder = build_encoder_decoder()
final = build_refinement(encoder_decoder)
final.load_weights(pretrained_path)
... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | train.py | train.py | .py | 3,185 | https://github.com/foamliu/Deep-Image-Matting/blob/master/train.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/train.py | 1ea3c3b74589962b83ce09e672938df607b7e789 | Python | 2026-05-04T01:26:13.742210 | import argparse
import keras
import tensorflow as tf
from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
from keras.utils import multi_gpu_model
from config import patience, batch_size, epochs, num_train_samples, num_valid_samples
from data_generator import train_gen, valid_gen
from migrate ... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | train_encoder_decoder.py | train_encoder_decoder.py | .py | 3,821 | https://github.com/foamliu/Deep-Image-Matting/blob/master/train_encoder_decoder.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/train_encoder_decoder.py | ef2cbfb490a0fa5513f2bfe238b6ade9212c05cb | Python | 2026-05-04T01:26:14.887707 | import argparse
import keras
import tensorflow as tf
from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
from keras.utils import multi_gpu_model
import migrate
from config import patience, batch_size, epochs, num_train_samples, num_valid_samples
from data_generator import train_gen, valid_ge... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | train_final.py | train_final.py | .py | 3,319 | https://github.com/foamliu/Deep-Image-Matting/blob/master/train_final.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/train_final.py | c6e5edfecbbdf2084420ce4640bb1c42cfe143c0 | Python | 2026-05-04T01:26:16.252321 | import argparse
import keras
import tensorflow as tf
from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
from keras.utils import multi_gpu_model
from config import patience, batch_size, epochs, num_train_samples, num_valid_samples
from data_generator import train_gen, valid_gen
from model im... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | train_refinement.py | train_refinement.py | .py | 2,210 | https://github.com/foamliu/Deep-Image-Matting/blob/master/train_refinement.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/train_refinement.py | 570bcd1de189ea1ad41e7cc7cd534ca7bed2f387 | Python | 2026-05-04T01:26:17.586293 | import keras
from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
from keras.optimizers import SGD
from config import patience, batch_size, epochs, num_train_samples, num_valid_samples
from data_generator import train_gen, valid_gen
from model import build_encoder_decoder, build_refinement
fro... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | unit_tests.py | unit_tests.py | .py | 3,226 | https://github.com/foamliu/Deep-Image-Matting/blob/master/unit_tests.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/unit_tests.py | 0a7a154cbbf5199f204e4b66da2a2e54198ffd64 | Python | 2026-05-04T01:26:18.984713 | import random
import unittest
import cv2 as cv
import numpy as np
import os
from config import unknown_code
from data_generator import generate_trimap
from data_generator import get_alpha
from data_generator import random_choice
from utils import safe_crop
class TestStringMethods(unittest.TestCase):
def test_ge... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | utils.py | utils.py | .py | 5,413 | https://github.com/foamliu/Deep-Image-Matting/blob/master/utils.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/utils.py | 549a53641b0ba39fdef052f184ec29192d715974 | Python | 2026-05-04T01:26:20.348530 | import multiprocessing
import math
import cv2 as cv
import keras.backend as K
import numpy as np
from tensorflow.python.client import device_lib
from config import epsilon, epsilon_sqr
from config import img_cols
from config import img_rows
from config import unknown_code
# overall loss: weighted summation of the tw... |
foamliu/Deep-Image-Matting | https://github.com/foamliu/Deep-Image-Matting | https://api.github.com/repos/foamliu/Deep-Image-Matting | foamliu | Deep-Image-Matting | Deep Image Matting | 991 | 258 | 991 | mit | master | 2018-04-16T03:26:31 | 2026-05-01T02:36:57 | [
"computer-vision",
"deep-learning",
"matting"
] | {
"Python": 69885,
"Shell": 64
} | false | 6 | vgg16.py | vgg16.py | .py | 2,638 | https://github.com/foamliu/Deep-Image-Matting/blob/master/vgg16.py | https://raw.githubusercontent.com/foamliu/Deep-Image-Matting/master/vgg16.py | 7b5c096496f879f1a338092abea361d01f03207c | Python | 2026-05-04T01:26:21.678664 | # -*- coding: utf-8 -*-
import keras.backend as K
from keras.layers import Conv2D, ZeroPadding2D, MaxPooling2D
from keras.layers import Dense, Dropout, Flatten
from keras.models import Sequential
def vgg16_model(img_rows, img_cols, channel=3):
model = Sequential()
# Encoder
model.add(ZeroPadding2D((1, 1)... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/__init__.py | __init__.py | .py | 2,763 | https://github.com/cburmeister/flask-bones/blob/master/app/__init__.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/__init__.py | 4affeef245cee8b1e340422d2e0ec6d7c7d6afcf | Python | 2026-05-04T01:26:26.187386 | import time
from flask import Flask, g, render_template, request
import arrow
import requests
from app import config
from app.assets import assets
from app.auth import auth
from app.commands import create_db, drop_db, populate_db, recreate_db
from app.database import db
from app.extensions import lm, travis, mail, mi... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/assets.py | assets.py | .py | 979 | https://github.com/cburmeister/flask-bones/blob/master/app/assets.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/assets.py | cfaf26fb1b2fb2af951169b11d62717e5ba20a5e | Python | 2026-05-04T01:26:27.514281 | from flask_assets import Bundle, Environment, Filter
class ConcatFilter(Filter):
"""
Filter that merges files, placing a semicolon between them.
Fixes issues caused by missing semicolons at end of JS assets, for example
with last statement of jquery.pjax.js.
"""
def concat(self, out, hunks, **... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/auth/__init__.py | __init__.py | .py | 114 | https://github.com/cburmeister/flask-bones/blob/master/app/auth/__init__.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/auth/__init__.py | 125b05fe8a2e080c3a7f4b61e75fa7d9ba626007 | Python | 2026-05-04T01:26:28.845355 | from flask import Blueprint
auth = Blueprint('auth', __name__, template_folder='templates')
from . import views
|
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/auth/forms.py | forms.py | .py | 1,082 | https://github.com/cburmeister/flask-bones/blob/master/app/auth/forms.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/auth/forms.py | de0c990e7188ab8ee8adbf6c6228b46ff0ce3af3 | Python | 2026-05-04T01:26:30.109559 | from flask_wtf import Form
from flask_babel import gettext
from wtforms import TextField, PasswordField
from wtforms.validators import DataRequired
from app.user.models import User
class LoginForm(Form):
username = TextField(gettext('Username'), validators=[DataRequired()])
password = PasswordField(gettext('... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/auth/views.py | views.py | .py | 2,598 | https://github.com/cburmeister/flask-bones/blob/master/app/auth/views.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/auth/views.py | dd01b743b699f90d47f307739100d356563c05a1 | Python | 2026-05-04T01:26:31.405588 | from flask import (
current_app, request, redirect, url_for, render_template, flash, abort,
)
from flask_babel import gettext
from flask_login import login_user, login_required, logout_user
from itsdangerous import URLSafeSerializer, BadSignature
from app.extensions import lm
from app.jobs import send_registration_... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/commands.py | commands.py | .py | 1,163 | https://github.com/cburmeister/flask-bones/blob/master/app/commands.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/commands.py | 067e4e9619bc16ed7e0d4c1c232d0b06d6d1a276 | Python | 2026-05-04T01:26:32.735771 | from faker import Faker
import click
from app.database import db
from app.user.models import User
@click.option('--num_users', default=5, help='Number of users.')
def populate_db(num_users):
"""Populates the database with seed data."""
fake = Faker()
users = []
for _ in range(num_users):
user... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/config.py | config.py | .py | 1,488 | https://github.com/cburmeister/flask-bones/blob/master/app/config.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/config.py | 3f51413b8e5224ed88b0d1f351f2189347781e18 | Python | 2026-05-04T01:26:33.894419 | import os
class base_config(object):
"""Default configuration options."""
SITE_NAME = os.environ.get('APP_NAME', 'Flask Bones')
SECRET_KEY = os.environ.get('SECRET_KEY', 'secrets')
SERVER_NAME = os.environ.get('SERVER_NAME', 'app.docker:5000')
MAIL_SERVER = os.environ.get('MAIL_SERVER', 'mail')
... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/database.py | database.py | .py | 3,985 | https://github.com/cburmeister/flask-bones/blob/master/app/database.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/database.py | cdafd60faa915f4cd28f73c253d5935b3553938e | Python | 2026-05-04T01:26:35.193863 | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import or_
db = SQLAlchemy()
class CRUDMixin(object):
__table_args__ = {'extend_existing': True}
id = db.Column(db.Integer, primary_key=True)
@classmethod
def get_by_id(cls, id):
if any((isinstance(id, str) and id.isdigit(),
... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/extensions.py | extensions.py | .py | 595 | https://github.com/cburmeister/flask-bones/blob/master/app/extensions.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/extensions.py | 44dcf072f17f3d351f20c57fc241d5d7514861b6 | Python | 2026-05-04T01:26:36.421237 | from flask_assets import Environment
from flask_babel import Babel
from flask_bcrypt import Bcrypt
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
from flask_login import LoginManager
from flask_mail import Mail
from flask_migrate import Migrate
from flask_rq2 import RQ
from flask_tr... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/jobs.py | jobs.py | .py | 546 | https://github.com/cburmeister/flask-bones/blob/master/app/jobs.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/jobs.py | 4367b2c050ede1cd7d0661fdcbd9844ccfc01394 | Python | 2026-05-04T01:26:37.547584 | from flask import render_template
from flask_mail import Message
from app.extensions import mail, rq
from app.user.models import User
@rq.job
def send_registration_email(uid, token):
"""Sends a registratiion email to the given uid."""
user = User.query.filter_by(id=uid).first()
msg = Message(
'Us... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/user/__init__.py | __init__.py | .py | 114 | https://github.com/cburmeister/flask-bones/blob/master/app/user/__init__.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/user/__init__.py | 0cfc84b6313128ef317b42350e7dbe3a9a198192 | Python | 2026-05-04T01:26:38.950774 | from flask import Blueprint
user = Blueprint('user', __name__, template_folder='templates')
from . import views
|
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/user/forms.py | forms.py | .py | 1,832 | https://github.com/cburmeister/flask-bones/blob/master/app/user/forms.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/user/forms.py | 468bf5eb44b1caa5c33e818232abb2549af6113a | Python | 2026-05-04T01:26:40.299946 | from flask_wtf import Form
from flask_babel import gettext
from wtforms import TextField, PasswordField, BooleanField
from wtforms.validators import DataRequired, Email, EqualTo, Length
from app.user.models import User
class UserForm(Form):
username = TextField(
gettext('Username'), validators=[DataRequir... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/user/models.py | models.py | .py | 1,212 | https://github.com/cburmeister/flask-bones/blob/master/app/user/models.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/user/models.py | 801584fab515fc21283ef31f07cfbce97d96524d | Python | 2026-05-04T01:26:41.643306 | import datetime
from flask_login import UserMixin
from app.database import db, CRUDMixin
from app.extensions import bcrypt
class User(CRUDMixin, UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20), nullable=False, unique=True)
email = db.Column(db.String... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/user/views.py | views.py | .py | 1,534 | https://github.com/cburmeister/flask-bones/blob/master/app/user/views.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/user/views.py | 737d3d9ff15e2b41ca6780ec4a46e43ad8a50ee6 | Python | 2026-05-04T01:26:42.852411 | from flask import request, redirect, url_for, render_template, flash, g
from flask_babel import gettext
from flask_login import login_required
from app.user.models import User
from .forms import EditUserForm
from ..user import user
@user.route('/list', methods=['GET', 'POST'])
@login_required
def list():
from a... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | app/utils.py | utils.py | .py | 378 | https://github.com/cburmeister/flask-bones/blob/master/app/utils.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/app/utils.py | aeb16e9949d13589124534b2fda552c77c6c52c9 | Python | 2026-05-04T01:26:44.919361 | from flask import request, url_for
def url_for_other_page(**kwargs):
"""Returns a URL aimed at the current request endpoint and query args."""
url_for_args = request.args.copy()
if 'pjax' in url_for_args:
url_for_args.pop('_pjax')
for key, value in kwargs.items():
url_for_args[key] = v... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | migrations/env.py | env.py | .py | 2,883 | https://github.com/cburmeister/flask-bones/blob/master/migrations/env.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/migrations/env.py | 4593816063f7964ffd107a2fe0f2f5bfc01b2351 | Python | 2026-05-04T01:26:50.859696 | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import logging
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config ... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | migrations/versions/1fb7c6da302_.py | 1fb7c6da302_.py | .py | 967 | https://github.com/cburmeister/flask-bones/blob/master/migrations/versions/1fb7c6da302_.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/migrations/versions/1fb7c6da302_.py | a55fccab4be465a49aa9d84b16aacaeddf28f63d | Python | 2026-05-04T01:26:52.802557 | """Initial migration
Revision ID: 1fb7c6da302
Revises: None
Create Date: 2015-11-16 17:19:00.332397
"""
# revision identifiers, used by Alembic.
revision = '1fb7c6da302'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
op.create_table('user',
sa.Column('id', sa.Intege... |
cburmeister/flask-bones | https://github.com/cburmeister/flask-bones | https://api.github.com/repos/cburmeister/flask-bones | cburmeister | flask-bones | An example of a large scale Flask application using blueprints and extensions. | 991 | 122 | 991 | mit | master | 2013-05-26T06:47:04 | 2026-04-02T08:31:03 | [
"alembic",
"babel",
"docker",
"flask",
"rq",
"sqlalchemy",
"travis-ci",
"yarn"
] | {
"Python": 27219,
"HTML": 15308,
"JavaScript": 568,
"Mako": 412,
"Makefile": 264,
"Dockerfile": 248,
"CSS": 214
} | false | 17 | tests.py | tests.py | .py | 2,914 | https://github.com/cburmeister/flask-bones/blob/master/tests.py | https://raw.githubusercontent.com/cburmeister/flask-bones/master/tests.py | a89038b2f30531fee7faa5c6d61c860e45cd400d | Python | 2026-05-04T01:26:54.362788 | from app import create_app
from app.config import test_config
from app.database import db
from app.user.models import User
from sqlalchemy.sql.expression import func
from faker import Faker
import unittest
admin_username = 'cburmeister'
admin_email = 'cburmeister@discogs.com'
admin_password = 'test123'
fake = Faker()... |
olyble/callPhoneBoom | https://github.com/olyble/callPhoneBoom | https://api.github.com/repos/olyble/callPhoneBoom | olyble | callPhoneBoom | 最新可用!!!夺命百连呼、电话轰炸、电话攻击(电话轰炸、可代替短信轰炸)、留言攻击工具 | 991 | 144 | 991 | mit | main | 2023-01-22T15:50:51 | 2026-05-03T10:52:28 | [
"python",
"python3"
] | {
"Python": 8096
} | false | 38 | Timefree.py | Timefree.py | .py | 1,300 | https://github.com/olyble/callPhoneBoom/blob/main/Timefree.py | https://raw.githubusercontent.com/olyble/callPhoneBoom/main/Timefree.py | 958eb0fe5cb4e93ea7e2c1601efb7c6ca51c95b7 | Python | 2026-05-04T01:26:58.704583 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 1.引入 ActionChains 类
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
import schedule
import random
import os
os.environ['WDM_LOG'] = "false"
import main
def job():
main.boom()... |
olyble/callPhoneBoom | https://github.com/olyble/callPhoneBoom | https://api.github.com/repos/olyble/callPhoneBoom | olyble | callPhoneBoom | 最新可用!!!夺命百连呼、电话轰炸、电话攻击(电话轰炸、可代替短信轰炸)、留言攻击工具 | 991 | 144 | 991 | mit | main | 2023-01-22T15:50:51 | 2026-05-03T10:52:28 | [
"python",
"python3"
] | {
"Python": 8096
} | false | 38 | catchad/catch.py | catch.py | .py | 3,848 | https://github.com/olyble/callPhoneBoom/blob/main/catchad/catch.py | https://raw.githubusercontent.com/olyble/callPhoneBoom/main/catchad/catch.py | a34cef56121415711ac415256542acd843309ecb | Python | 2026-05-04T01:27:00.073037 | import requests # 发送请求
import pandas as pd # 存入csv数据
import time # 等待间隔
import random # 随机
import re # 用正则表达式提取url
import traceback
pd.set_option('display.max_rows', 10000)
pd.set_option('display.max_columns', 10000)
pd.set_option('display.width', 10000)
with open('citys.txt', encoding='utf-8') as f... |
olyble/callPhoneBoom | https://github.com/olyble/callPhoneBoom | https://api.github.com/repos/olyble/callPhoneBoom | olyble | callPhoneBoom | 最新可用!!!夺命百连呼、电话轰炸、电话攻击(电话轰炸、可代替短信轰炸)、留言攻击工具 | 991 | 144 | 991 | mit | main | 2023-01-22T15:50:51 | 2026-05-03T10:52:28 | [
"python",
"python3"
] | {
"Python": 8096
} | false | 38 | main.py | main.py | .py | 2,593 | https://github.com/olyble/callPhoneBoom/blob/main/main.py | https://raw.githubusercontent.com/olyble/callPhoneBoom/main/main.py | 3339c4eee2b642bf989fd3485f958b262f9b6c0c | Python | 2026-05-04T01:27:01.200301 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from multiprocessing import Process, Queue
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from seleniu... |
olyble/callPhoneBoom | https://github.com/olyble/callPhoneBoom | https://api.github.com/repos/olyble/callPhoneBoom | olyble | callPhoneBoom | 最新可用!!!夺命百连呼、电话轰炸、电话攻击(电话轰炸、可代替短信轰炸)、留言攻击工具 | 991 | 144 | 991 | mit | main | 2023-01-22T15:50:51 | 2026-05-03T10:52:28 | [
"python",
"python3"
] | {
"Python": 8096
} | false | 38 | set.py | set.py | .py | 355 | https://github.com/olyble/callPhoneBoom/blob/main/set.py | https://raw.githubusercontent.com/olyble/callPhoneBoom/main/set.py | 9a89e9822d4ea71bfc9fdd421c3fe94f944f025d | Python | 2026-05-04T01:27:02.354867 | from DrissionPage.easy_set import set_paths
# 设置你的浏览器路径
# see: http://g1879.gitee.io/drissionpagedocs/get_start/before_start/
set_paths(browser_path=r'这里修改为您的浏览器可执行文件路径')
# test :
# from DrissionPage import ChromiumPage
# page = ChromiumPage()
# page.get('http://g1879.gitee.io/DrissionPageDocs')
|
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | adalomo/further-pretraining/evaluate.py | evaluate.py | .py | 4,156 | https://github.com/OpenLMLab/LOMO/blob/main/adalomo/further-pretraining/evaluate.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/adalomo/further-pretraining/evaluate.py | d5d50583cac06707d2226ec050407d09c25663bf | Python | 2026-05-04T01:27:06.526240 | from typing import Callable, Optional, Tuple, Any, Dict
import torch
from peft import PeftModel
from torch import nn
import torch.distributed as dist
from collie import ColliePadder, GPTLMLoss, auto_param_call, BaseMetric
from collie.module import PipelineModel
from collie.controller.evaluator import Evaluator
class... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | adalomo/further-pretraining/train.py | train.py | .py | 5,756 | https://github.com/OpenLMLab/LOMO/blob/main/adalomo/further-pretraining/train.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/adalomo/further-pretraining/train.py | ebfaa068d833a331dddad17df4d1c4df506bc9b8 | Python | 2026-05-04T01:27:08.059044 | import argparse
import json
import torch
from transformers import get_cosine_schedule_with_warmup, LlamaTokenizer
from collie import EvalMonitor, PPLMetric, AccuracyMetric, EvaluatorForPerplexity, Callback
from collie.config import CollieConfig
from collie.controller.trainer import Trainer
from collie.module import GP... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | adalomo/instruction-tuning/train.py | train.py | .py | 5,383 | https://github.com/OpenLMLab/LOMO/blob/main/adalomo/instruction-tuning/train.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/adalomo/instruction-tuning/train.py | 988d2ba72a22f9be4dcedca485b164e6b7f71733 | Python | 2026-05-04T01:27:09.290741 | import argparse
import json
import torch
from peft import LoraConfig, TaskType
from transformers import get_linear_schedule_with_warmup, LlamaTokenizer
from collie.config import CollieConfig
from collie.controller.trainer import Trainer
from collie.module import GPTLMLoss
from collie.log import logger
from collie.opti... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/log/handler.py | handler.py | .py | 2,593 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/log/handler.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/log/handler.py | 40931c26913be048b715c3a72204f7b8ae41ae18 | Python | 2026-05-04T01:27:10.513199 | import logging
import sys
from logging import getLevelName
try:
from tqdm.auto import tqdm
except ImportError:
tqdm = None
__all__ = []
if tqdm is not None:
class TqdmLoggingHandler(logging.Handler):
def __init__(self, level=logging.INFO):
super().__init__(level)
def emit(sel... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/log/highlighter.py | highlighter.py | .py | 223 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/log/highlighter.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/log/highlighter.py | eb363768bd5093b7a5c7356272beb2ce85a30a24 | Python | 2026-05-04T01:27:11.847395 | from rich.highlighter import Highlighter
__all__ = []
class ColorHighlighter(Highlighter):
def __init__(self, color='black'):
self.color = color
def highlight(self, text):
text.stylize(self.color) |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/log/logger.py | logger.py | .py | 13,731 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/log/logger.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/log/logger.py | b7a710a0befb4e80f0372b98decf674b66814f0b | Python | 2026-05-04T01:27:13.126617 | r"""
:class:`Logger` 是记录日志的模块,**logger** 封装了 logging 模块的 Logger,
具体使用方式与直接使用 :class:`logging.Logger` 相同,同时也新增一些简单好用的API
使用方式::
# logger 可以和 logging.Logger 一样使用
logger.info('your msg')
logger.error('your msg')
# logger 新增的API
# 将日志输出到文件,以及输出的日志等级
logger.add_file('/path/to/log', level='INFO')
... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/log/print.py | print.py | .py | 669 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/log/print.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/log/print.py | 40dc7b5efbf6f08e1ae6dd9fc73f71540357ea36 | Python | 2026-05-04T01:27:14.315815 | __all__ = [
'print'
]
from logging import INFO
from .logger import logger
def print(*args, sep=' ', end='\n', file=None, flush=False):
"""
用来重定向 print 函数至 logger.info 的函数。
:param args: 需要打印的内容
:param sep: 存在多个输入时,使用的间隔。
:param end: 该参数在当前设置无意义,因为结尾一定会被加入 ``'\\\\n'`` 。
:param file: 该参数无意义。... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/arguments.py | arguments.py | .py | 4,594 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/arguments.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/arguments.py | 01e8bf00a791848651d1492bbce865e3cbc05c00 | Python | 2026-05-04T01:27:15.656506 | from dataclasses import dataclass, field
from typing import Optional
from transformers import Seq2SeqTrainingArguments
@dataclass
class ModelArguments:
model_name_or_path: Optional[str] = field(default="llama-7B")
cache_dir: Optional[str] = field(default='../llama/checkpoint')
# llama_dir: Optional[str] =... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/lomo.py | lomo.py | .py | 9,461 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/lomo.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/lomo.py | 51b4579bc8f097510d34cd708aab532e66936607 | Python | 2026-05-04T01:27:17.376950 | import os
import torch
from torch.optim import Optimizer
import torch.distributed as dist
from src.utils import DynamicLossScaler
class LOMO(Optimizer):
"""
一个自定义的优化器类LOMO,用于在分布式训练中的梯度更新。
该类实现两个梯度更新函数 :meth:`fuse_update` 和 :meth:`fuse_update_zero3`,分别用于非ZeRO和ZeRO模式下的梯度更新。
:param model: 待优化的模型
:... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/lomo_lora_trainer.py | lomo_lora_trainer.py | .py | 27,372 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/lomo_lora_trainer.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/lomo_lora_trainer.py | c8eff4c976f08114193471080754d3c567c3fffb | Python | 2026-05-04T01:27:19.119585 | import os
import sys
import operator
from collections import OrderedDict
from itertools import chain
from pathlib import Path
import shutil
import tqdm
import torch
from torch.nn import CrossEntropyLoss
from torch.utils.data import DistributedSampler, DataLoader
from transformers.trainer_pt_utils import DistributedLen... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/lomo_trainer.py | lomo_trainer.py | .py | 21,258 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/lomo_trainer.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/lomo_trainer.py | 0e66490b9fff5d6d8b85dc428621524b8154342f | Python | 2026-05-04T01:27:20.559746 | import os
import sys
import operator
from collections import OrderedDict
from itertools import chain
from pathlib import Path
import shutil
import tqdm
import torch
from torch.nn import CrossEntropyLoss
from torch.utils.data import DistributedSampler, DataLoader
from transformers.trainer_pt_utils import DistributedLen... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/merge_llama_with_lora.py | merge_llama_with_lora.py | .py | 2,298 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/merge_llama_with_lora.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/merge_llama_with_lora.py | dc94caf46b0956007fed7ef591afd52c0d04fa9c | Python | 2026-05-04T01:27:21.780018 | import argparse
import os
import torch
from peft import PeftModel
from transformers import AutoTokenizer, AutoModelForCausalLM, LlamaTokenizer
'''
This is the code for merging the LoRA adapter with the base model. [ref] https://github.com/tloen/alpaca-lora/blob/main/export_hf_checkpoint.py
To load `lora + lomo` chec... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/mydatasets.py | mydatasets.py | .py | 11,463 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/mydatasets.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/mydatasets.py | 7be41acbc0180efc853f50ea4b05d10d2e0e7d63 | Python | 2026-05-04T01:27:23.069934 | import os
import copy
import random
from tqdm import tqdm
from typing import Callable, Any
from datasets import load_dataset
from dataclasses import dataclass
import numpy as np
import torch
from torch.utils.data import Dataset
from log import print
from prompts import QuestionPart, Exemplar, idx_to_ltr
IGNORE_INDEX... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/prompts.py | prompts.py | .py | 2,338 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/prompts.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/prompts.py | d6214a9c5dcf94e1c4252f9e2219ccc70828792b | Python | 2026-05-04T01:27:24.339692 | from dataclasses import dataclass
import random
def idx_to_ltr(idx):
return chr(idx + ord("A"))
@dataclass
class QuestionPart:
text: str
tag: str = None
def __str__(self):
if self.tag is not None:
return f"{self.tag}: {self.text}"
else:
return self.text
@d... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/train_lomo.py | train_lomo.py | .py | 5,321 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/train_lomo.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/train_lomo.py | d42932eaceb08a5cc0ad9b5832a04673fa5d3690 | Python | 2026-05-04T01:27:25.873657 | import copy
import os
import sys
import torch
from transformers import HfArgumentParser
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
from transformers import set_seed
from dataclasses import asdict
from transformers.deepspeed import HfDeepSpeedConfig
import wandb
# os.environ['WANDB_MODE'] ... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/train_lomo_lora.py | train_lomo_lora.py | .py | 7,778 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/train_lomo_lora.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/train_lomo_lora.py | 2d2c850b410c722f40f98d7d388456dcf32d126e | Python | 2026-05-04T01:27:27.327580 | import copy
import os
import sys
import torch
from transformers import HfArgumentParser
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoConfig
from transformers import set_seed
from dataclasses import asdict
from transformers.deepspeed import HfDeepSpeedConfig
from peft import get_peft_model, TaskTyp... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo/src/utils.py | utils.py | .py | 18,316 | https://github.com/OpenLMLab/LOMO/blob/main/lomo/src/utils.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo/src/utils.py | 9220428b1613298bf215516dac0638547dee5257 | Python | 2026-05-04T01:27:28.770079 | import copy
from dataclasses import dataclass
import numpy as np
from torch.nn import CrossEntropyLoss
from transformers.utils import PaddingStrategy
from transformers.trainer import *
import wandb
@dataclass
class DataCollatorForCauselLM:
"""
Data collator that will dynamically pad the inputs received, as w... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo_optim/__init__.py | __init__.py | .py | 105 | https://github.com/OpenLMLab/LOMO/blob/main/lomo_optim/__init__.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo_optim/__init__.py | d814e5a1218cdb9db5742cff6b27c9f7f3e6305b | Python | 2026-05-04T01:27:29.969898 | from .adalomo import AdaLomo
from .lomo import Lomo
__version__ = "0.1.1"
__all__ = ["Lomo", "AdaLomo"]
|
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo_optim/adalomo.py | adalomo.py | .py | 14,884 | https://github.com/OpenLMLab/LOMO/blob/main/lomo_optim/adalomo.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo_optim/adalomo.py | 3226e5c99256918692df75016854442ad17c2d85 | Python | 2026-05-04T01:27:31.405158 | import math
import torch
import torch.distributed as dist
from torch.optim import Optimizer
try:
from transformers.integrations.deepspeed import is_deepspeed_zero3_enabled
except ImportError:
from transformers.deepspeed import is_deepspeed_zero3_enabled
from transformers.utils import logging
class AdaLomo(... |
OpenLMLab/LOMO | https://github.com/OpenLMLab/LOMO | https://api.github.com/repos/OpenLMLab/LOMO | OpenLMLab | LOMO | LOMO: LOw-Memory Optimization | 991 | 68 | 991 | mit | main | 2023-06-16T08:17:45 | 2026-04-16T20:33:03 | [] | {
"Python": 173906,
"Shell": 301
} | false | 29 | lomo_optim/lomo.py | lomo.py | .py | 16,113 | https://github.com/OpenLMLab/LOMO/blob/main/lomo_optim/lomo.py | https://raw.githubusercontent.com/OpenLMLab/LOMO/main/lomo_optim/lomo.py | c2f877ac4f16be12668ad84f4f47118c0e21745c | Python | 2026-05-04T01:27:32.862506 | import torch
import torch.distributed as dist
from torch.optim import Optimizer
try:
from transformers.integrations.deepspeed import is_deepspeed_zero3_enabled
except ImportError:
from transformers.deepspeed import is_deepspeed_zero3_enabled
from transformers.utils import logging
logger = logging.get_logger(... |
ildoonet/pytorch-gradual-warmup-lr | https://github.com/ildoonet/pytorch-gradual-warmup-lr | https://api.github.com/repos/ildoonet/pytorch-gradual-warmup-lr | ildoonet | pytorch-gradual-warmup-lr | Gradually-Warmup Learning Rate Scheduler for PyTorch | 991 | 126 | 991 | mit | master | 2019-01-16T05:46:13 | 2026-02-23T15:23:15 | [
"deep-learning",
"large-scale-learning",
"learning-rate-decay",
"multigpu",
"multinode",
"pytorch",
"pytorch-extension"
] | {
"Python": 4714
} | false | 18 | setup.py | setup.py | .py | 580 | https://github.com/ildoonet/pytorch-gradual-warmup-lr/blob/master/setup.py | https://raw.githubusercontent.com/ildoonet/pytorch-gradual-warmup-lr/master/setup.py | 4c2238247b5a01470bc97aeb406f9baf1fab0005 | Python | 2026-05-04T01:27:36.932574 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import setuptools
_VERSION = '0.3.2'
REQUIRED_PACKAGES = [
]
DEPENDENCY_LINKS = [
]
setuptools.setup(
name='warmup_scheduler',
version=_VERSION,
description='Gradually Warm-up LR Scheduler for P... |
ildoonet/pytorch-gradual-warmup-lr | https://github.com/ildoonet/pytorch-gradual-warmup-lr | https://api.github.com/repos/ildoonet/pytorch-gradual-warmup-lr | ildoonet | pytorch-gradual-warmup-lr | Gradually-Warmup Learning Rate Scheduler for PyTorch | 991 | 126 | 991 | mit | master | 2019-01-16T05:46:13 | 2026-02-23T15:23:15 | [
"deep-learning",
"large-scale-learning",
"learning-rate-decay",
"multigpu",
"multinode",
"pytorch",
"pytorch-extension"
] | {
"Python": 4714
} | false | 18 | warmup_scheduler/run.py | run.py | .py | 817 | https://github.com/ildoonet/pytorch-gradual-warmup-lr/blob/master/warmup_scheduler/run.py | https://raw.githubusercontent.com/ildoonet/pytorch-gradual-warmup-lr/master/warmup_scheduler/run.py | a1dbf3d4f2aa78568a323f68f7c1783e1c027291 | Python | 2026-05-04T01:27:38.264066 | import torch
from torch.optim.lr_scheduler import StepLR, ExponentialLR
from torch.optim.sgd import SGD
from warmup_scheduler import GradualWarmupScheduler
if __name__ == '__main__':
model = [torch.nn.Parameter(torch.randn(2, 2, requires_grad=True))]
optim = SGD(model, 0.1)
# scheduler_warmup is chained... |
ildoonet/pytorch-gradual-warmup-lr | https://github.com/ildoonet/pytorch-gradual-warmup-lr | https://api.github.com/repos/ildoonet/pytorch-gradual-warmup-lr | ildoonet | pytorch-gradual-warmup-lr | Gradually-Warmup Learning Rate Scheduler for PyTorch | 991 | 126 | 991 | mit | master | 2019-01-16T05:46:13 | 2026-02-23T15:23:15 | [
"deep-learning",
"large-scale-learning",
"learning-rate-decay",
"multigpu",
"multinode",
"pytorch",
"pytorch-extension"
] | {
"Python": 4714
} | false | 18 | warmup_scheduler/scheduler.py | scheduler.py | .py | 3,230 | https://github.com/ildoonet/pytorch-gradual-warmup-lr/blob/master/warmup_scheduler/scheduler.py | https://raw.githubusercontent.com/ildoonet/pytorch-gradual-warmup-lr/master/warmup_scheduler/scheduler.py | f7644e07f3859a8125aa5ec0368f4e8cd1d7b067 | Python | 2026-05-04T01:27:39.527822 | from torch.optim.lr_scheduler import _LRScheduler
from torch.optim.lr_scheduler import ReduceLROnPlateau
class GradualWarmupScheduler(_LRScheduler):
""" Gradually warm-up(increasing) learning rate in optimizer.
Proposed in 'Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour'.
Args:
optimi... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | build_caveats.py | build_caveats.py | .py | 200 | https://github.com/mottosso/Qt.py/blob/master/build_caveats.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/build_caveats.py | 7b78107a713fcfb1cd45060717cf67b68b55cdd1 | Python | 2026-05-04T01:27:43.712003 | #!/usr/bin/env python
import caveats
blocks = caveats.parse("CAVEATS.md")
tests = caveats.format_(blocks)
# Write formatted tests
with open("test_caveats.py", "w") as f:
f.write("".join(tests))
|
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | caveats.py | caveats.py | .py | 3,759 | https://github.com/mottosso/Qt.py/blob/master/caveats.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/caveats.py | 8d40d6b71c1bcebd7ccd8009da0c194ad757123f | Python | 2026-05-04T01:27:45.022772 | import io
import re
import sys
def parse(fname):
"""Return blocks of code as list of dicts
Arguments:
fname (str): Relative name of caveats file
"""
blocks = []
with io.open(fname, "r", encoding="utf-8") as f:
in_block = False
current_block = None
current_header ... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/QtSiteConfig/QtSiteConfig.py | QtSiteConfig.py | .py | 3,533 | https://github.com/mottosso/Qt.py/blob/master/examples/QtSiteConfig/QtSiteConfig.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/QtSiteConfig/QtSiteConfig.py | edb48b536a06ceb388b10553bf0b7b11151a84ce | Python | 2026-05-04T01:27:46.355056 | # Contrived example used for unit testing. For a more realistic example
# see the README
def update_members(members):
"""This optional function is called by Qt.py to modify the modules exposed.
Arguments:
members (dict): The members considered by Qt.py
"""
# Contrived example used for unit te... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/QtSiteConfig/main.py | main.py | .py | 1,843 | https://github.com/mottosso/Qt.py/blob/master/examples/QtSiteConfig/main.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/QtSiteConfig/main.py | 02124ae045d9c973d7bf2ebd7538ebe474e8a196 | Python | 2026-05-04T01:27:47.684444 | """Example of QtSiteConfig module used to modify exposed members of Qt.py"""
import os
import sys
def test():
"""QtCore is taken out of Qt.py via QtSiteConfig.py"""
# Expose this directory, and therefore QtSiteConfig, to Python
sys.path.insert(0, os.path.dirname(__file__))
try:
from Qt impo... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/QtSiteConfig_platforms/QtSiteConfig.py | QtSiteConfig.py | .py | 1,193 | https://github.com/mottosso/Qt.py/blob/master/examples/QtSiteConfig_platforms/QtSiteConfig.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/QtSiteConfig_platforms/QtSiteConfig.py | 3faa05c42941abdd807d7ab17226b6bce5d84e7d | Python | 2026-05-04T01:27:48.923135 | import sys
IS_WIN = sys.platform == "win32"
def update_members(members):
# Add windows only `QWinEventNotifier` class
if IS_WIN:
members["QtCore"].append("QWinEventNotifier")
# Add the windows only QtAxContainer class. The PySideX bindings use
# the QtAxContainer module name, so we ... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/QtSiteConfig_platforms/main.py | main.py | .py | 1,679 | https://github.com/mottosso/Qt.py/blob/master/examples/QtSiteConfig_platforms/main.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/QtSiteConfig_platforms/main.py | 040e3fab480106ddb6918704690b36364152d5c8 | Python | 2026-05-04T01:27:50.039562 | """Example of QtSiteConfig module used to modify exposed members of Qt.py"""
import os
import sys
IS_WIN = sys.platform == "win32"
print(f'Platform {"is" if IS_WIN else "is not"} windows: "{sys.platform}"')
def test():
"""QtCore is taken out of Qt.py via QtSiteConfig.py"""
# Expose this directory, and ther... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/loadUi/baseinstance1.py | baseinstance1.py | .py | 1,652 | https://github.com/mottosso/Qt.py/blob/master/examples/loadUi/baseinstance1.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/loadUi/baseinstance1.py | cc8fb19a77e790fda1ddbc505e495aa8e9f2fcb5 | Python | 2026-05-04T01:27:51.370605 | import sys
import os
# Set preferred binding
os.environ["QT_PREFERRED_BINDING"] = os.pathsep.join(
["PySide", "PyQt4", "PySide2", "PySide6"]
)
from Qt import QtWidgets, QtCompat
def setup_ui(uifile, base_instance=None):
"""Load a Qt Designer .ui file and returns an instance of the user interface
Args:
... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | examples/loadUi/baseinstance2.py | baseinstance2.py | .py | 4,210 | https://github.com/mottosso/Qt.py/blob/master/examples/loadUi/baseinstance2.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/examples/loadUi/baseinstance2.py | 1f570327335ebf7b5eece46078328e8d50980d5d | Python | 2026-05-04T01:27:52.715922 | import sys
import os
# Set preferred binding, or Qt.py tests will fail which doesn't have pysideuic
os.environ["QT_PREFERRED_BINDING"] = "PyQt4"
from Qt import QtWidgets, __binding__
def load_ui_type(uifile):
"""Pyside equivalent for the loadUiType function in PyQt.
From the PyQt4 documentation:
Lo... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | membership.py | membership.py | .py | 14,113 | https://github.com/mottosso/Qt.py/blob/master/membership.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/membership.py | 3768b62836f03d6cb2544615713668ce653b5b0e | Python | 2026-05-04T01:27:54.160705 | import os
import re
import pkgutil
import json
import platform
from argparse import ArgumentParser
from functools import reduce
from pprint import pprint
from pathlib import Path
MEMBERSHIP_PATH = Path("./.members")
SKIP_MODULES = [
"PyQt5.Qt", # This module only exists in PyQt5 and is not exposed by Qt.py
... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | src/Qt.py | Qt.py | .py | 84,034 | https://github.com/mottosso/Qt.py/blob/master/src/Qt.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/src/Qt.py | 174d3f02fc8f5c80bd7e2197c554af34a3a87ea5 | Python | 2026-05-04T01:27:56.695156 | """Minimal Python 2 & 3 shim around all Qt bindings
DOCUMENTATION
Qt.py was born in the film and visual effects industry to address
the growing need for the development of software capable of running
with more than one flavour of the Qt bindings for Python.
Supported Binding: PySide6, PySide2, PyQt6, ... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | src/Qt_convert_enum.py | Qt_convert_enum.py | .py | 14,357 | https://github.com/mottosso/Qt.py/blob/master/src/Qt_convert_enum.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/src/Qt_convert_enum.py | 20726ca0ccf0c6066634113760ac2df8a17154fc | Python | 2026-05-04T01:27:58.192160 | """Tool to convert short form Qt enums to fully qualified enums in python code.
This script uses PySide2 to build a mapping between short enums and their fully
qualified enums. It scans a directory of .py files and converts any uses of the
short form into the fully qualified enum. PySide2 must be importable.
Show how... |
mottosso/Qt.py | https://github.com/mottosso/Qt.py | https://api.github.com/repos/mottosso/Qt.py | mottosso | Qt.py | Minimal Python 2 & 3 shim around all Qt bindings - PySide2, PySide6, PyQt5 and PyQt6. | 991 | 259 | 991 | mit | master | 2016-05-27T09:52:11 | 2026-04-29T22:58:23 | [
"pyqt4",
"pyqt5",
"pyside",
"pyside2",
"shim"
] | {
"Python": 171181
} | false | 44 | tests.py | tests.py | .py | 50,794 | https://github.com/mottosso/Qt.py/blob/master/tests.py | https://raw.githubusercontent.com/mottosso/Qt.py/master/tests.py | c8f3c1d63816da735db5473486e604d74644f195 | Python | 2026-05-04T01:27:59.616436 | # coding=utf-8
"""Tests that run once"""
import io
import os
import re
import sys
import importlib.util
import shutil
import tempfile
import textwrap
import typing
import subprocess
import contextlib
import json
from pathlib import Path
# Third-party dependency
import six # type: ignore
try:
# Try importing as... |
noob-hackers/lazybee | https://github.com/noob-hackers/lazybee | https://api.github.com/repos/noob-hackers/lazybee | noob-hackers | lazybee | Create Best Wordlist From Python Tool In Termux | 990 | 74 | 990 | mit | master | 2019-04-15T10:39:03 | 2026-05-03T02:23:34 | [
"hacking",
"hacking-tools",
"noobhacking",
"terminal-app",
"termux",
"termux-hacking",
"termux-tool",
"termux-tools",
"wordlists"
] | {
"Python": 2007
} | false | 3 | lazybee.py | lazybee.py | .py | 2,007 | https://github.com/noob-hackers/lazybee/blob/master/lazybee.py | https://raw.githubusercontent.com/noob-hackers/lazybee/master/lazybee.py | 764a5fc3ce2ee8a2aece63fea85d447be524799e | Python | 2026-05-04T01:28:03.879682 | import time
#colors
red='\033[91m'
b='\033[21m'
gren='\033[92m'
yellow='\033[93m'
cyan='\033[96m'
blue='\033[94m'
print (red+b+"""
_
/_/- .'''.
=O(_))))...' `.
\_\-
__, ____,___,_ _, ____ ____,____,
(-| (-/_|(- /... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/machine_learning/iris.py | iris.py | .py | 2,215 | https://github.com/simpleai-team/simpleai/blob/master/samples/machine_learning/iris.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/machine_learning/iris.py | 3dc72a44861fe71f8f8fa72d94d51439fe0caf4e | Python | 2026-05-04T01:28:14.305527 | #!/usr/bin/env python
# coding: utf-8
"""
Iris dataset classification example.
The iris dataset can be downloaded
from here: http://archive.ics.uci.edu/ml/datasets/Iris
It has to be placed in the corpus folder.
"""
from __future__ import print_function
import os
import math
import random
from simpleai.machine_learn... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/machine_learning/language_classification.py | language_classification.py | .py | 3,371 | https://github.com/simpleai-team/simpleai/blob/master/samples/machine_learning/language_classification.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/machine_learning/language_classification.py | c1b58de372439d0f3c5a7577d604636776c69a82 | Python | 2026-05-04T01:28:15.721284 | # -*- coding: utf-8 -*-
"""
Example for language classification from text using the es-en europarl
corpus[0].
This script should be able to tell if some text is english or spanish based
solely in counting the letters that appear.
It's *highly* recomended to make shorter versions of the corpus to experiment,
like this... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/machine_learning/opinion.py | opinion.py | .py | 3,523 | https://github.com/simpleai-team/simpleai/blob/master/samples/machine_learning/opinion.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/machine_learning/opinion.py | 401e11813965da9070f1c6fe906e09a89f21888e | Python | 2026-05-04T01:28:17.069506 | #!/usr/bin/env python
# coding: utf-8
"""
Opinion Mining example.
More about opinion mining here: http://en.wikipedia.org/wiki/Sentiment_analysis
Dataset extracted from: http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html
precisely http://www.cs.uic.edu/~liub/FBS/pros-cons.rar
It should be placed in a folder call... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/machine_learning/tic_tac_toe.py | tic_tac_toe.py | .py | 3,720 | https://github.com/simpleai-team/simpleai/blob/master/samples/machine_learning/tic_tac_toe.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/machine_learning/tic_tac_toe.py | 092306ed6eaf8094b486955c3ec8ef712308767e | Python | 2026-05-04T01:28:18.288564 | # -*- coding: utf-8 -*-
from __future__ import print_function
from simpleai.machine_learning.reinforcement_learning import TDQLearner, RLProblem, \
make_exponential_temperature, \
PerformanceCount... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/machine_learning/wumpus.py | wumpus.py | .py | 4,904 | https://github.com/simpleai-team/simpleai/blob/master/samples/machine_learning/wumpus.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/machine_learning/wumpus.py | eb6a39a26ca5a9f79e7d89a9ca20f9e1f8fa5590 | Python | 2026-05-04T01:28:19.629695 | # -*- coding: utf-8 -*-
from __future__ import print_function
from simpleai.machine_learning.reinforcement_learning import TDQLearner, \
make_exponential_temperature, \
PerformanceCounter, \
... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/australia.py | australia.py | .py | 1,352 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/australia.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/australia.py | e8293392741217698f383019ca9bbfb0ad333344 | Python | 2026-05-04T01:28:20.839715 | from __future__ import print_function
from simpleai.search import CspProblem, backtrack, min_conflicts, MOST_CONSTRAINED_VARIABLE, HIGHEST_DEGREE_VARIABLE, LEAST_CONSTRAINING_VALUE
variables = ('WA', 'NT', 'SA', 'Q', 'NSW', 'V', 'T')
domains = dict((v, ['red', 'green', 'blue']) for v in variables)
def const_differe... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/cryptarithmetic.py | cryptarithmetic.py | .py | 1,693 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/cryptarithmetic.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/cryptarithmetic.py | dcc168b65892ee0ffed359b89e15d14d495e4153 | Python | 2026-05-04T01:28:21.983571 | from __future__ import print_function
from time import time
from copy import deepcopy
from simpleai.search import (
backtrack, MOST_CONSTRAINED_VARIABLE, LEAST_CONSTRAINING_VALUE,
convert_to_binary, CspProblem)
variables = ('F', 'T', 'U', 'W', 'R', 'O', 'C_10', 'C_100', 'C_1000')
domains = dict((v, list(ra... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/dotsearch.py | dotsearch.py | .py | 4,741 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/dotsearch.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/dotsearch.py | b78ee844c8969f04c86139d8f2cbc58d65f59d96 | Python | 2026-05-04T01:28:23.213268 | from pygraphviz import AGraph
import base64
import tempfile
from simpleai.search import SearchProblem
class BadInputGraph(Exception):
pass
class DotGraphSearchProblem(SearchProblem):
"""
Playground for stuff in the library... eats a .dot graph and allows you
to try it with the search methods.
""... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/eight_puzzle.py | eight_puzzle.py | .py | 3,513 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/eight_puzzle.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/eight_puzzle.py | e2386484a4a2df24eb0c6c6be6adad5bf4e7f419 | Python | 2026-05-04T01:28:24.452469 | '''
8 puzzle problem, a smaller version of the fifteen puzzle:
http://en.wikipedia.org/wiki/Fifteen_puzzle
States are defined as string representations of the pieces on the puzzle.
Actions denote what piece will be moved to the empty space.
States must allways be inmutable. We will use strings, but internally most of
... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/game_walk.py | game_walk.py | .py | 2,541 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/game_walk.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/game_walk.py | 9d25cf9c90c5fafcb6465c6112ea1f18a67ad8cd | Python | 2026-05-04T01:28:25.773939 | #!/usr/bin/env python
# coding: utf-8
from __future__ import print_function
import math
from simpleai.search import SearchProblem, astar
MAP = """
##############################
# # # #
# #### ######## # #
# o # # # #
# ### #### ###### #
# #### ... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/hello_world.py | hello_world.py | .py | 802 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/hello_world.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/hello_world.py | 8d20d1c2dd32326f9cde3fdaa43eb6945d82571d | Python | 2026-05-04T01:28:27.039628 | # coding=utf-8
from __future__ import print_function
from simpleai.search import SearchProblem, astar
GOAL = 'HELLO WORLD'
class HelloProblem(SearchProblem):
def actions(self, state):
if len(state) < len(GOAL):
return list(' ABCDEFGHIJKLMNOPQRSTUVWXYZ')
else:
return []
... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/make_report.py | make_report.py | .py | 640 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/make_report.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/make_report.py | 6c29a222174bbc6ad803d83cef8ba6b97c1fc56f | Python | 2026-05-04T01:28:28.445744 | from __future__ import print_function
assert __name__ == "__main__"
from dotsearch import report
import argparse
parser = argparse.ArgumentParser(description="Runs graph search "
"algorithms over a .dot graph file.")
parser.add_argument("dotfile", action="store")
cfg = parser.parse_args()
from simpleai.search import... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/missioners.py | missioners.py | .py | 1,870 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/missioners.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/missioners.py | 5b73600c9f70df76082e923c57338cde48197384 | Python | 2026-05-04T01:28:29.878859 | # coding=utf-8
from __future__ import print_function
from simpleai.search import SearchProblem, astar
class MissionersProblem(SearchProblem):
'''Missioners and cannibals problem.'''
def __init__(self):
super(MissionersProblem, self).__init__(initial_state=(3, 3, 0))
# each action has a prin... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/simple_nary_to_binary.py | simple_nary_to_binary.py | .py | 1,336 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/simple_nary_to_binary.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/simple_nary_to_binary.py | c554eca7d04bb6a533f74bed9bacb9f30c3bab2e | Python | 2026-05-04T01:28:31.217288 | from __future__ import print_function
from simpleai.search import backtrack, CspProblem, convert_to_binary
variables = ('A', 'B', 'C')
domains = {
'A': [1, 2, 3],
'B': [1, 3, 4],
'C': [1, 2],
}
def const_different(variables, values):
return len(values) == len(set(values)) # remove repeated values ... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/sudoku.py | sudoku.py | .py | 3,892 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/sudoku.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/sudoku.py | bd8ea020a5c5f79c0d901c508a5337a4a13da3c2 | Python | 2026-05-04T01:28:32.531111 | from __future__ import print_function
from time import time
from itertools import combinations
from collections import OrderedDict
from copy import deepcopy
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
try:
from string import uppercase
except ImportError:
from string i... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | samples/search/threesat.py | threesat.py | .py | 1,222 | https://github.com/simpleai-team/simpleai/blob/master/samples/search/threesat.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/samples/search/threesat.py | d25b0f1a617b0781722cce4491c2ed89c5215d42 | Python | 2026-05-04T01:28:33.749921 | from __future__ import print_function
from time import time
from copy import deepcopy
from simpleai.search import backtrack, CspProblem, convert_to_binary
variables = ('X1', 'X2', 'X3', 'X4', 'X5', 'X6')
domains = dict((v, [False, True]) for v in variables)
constraints = [
(('X1', 'X2', 'X6'), lambda v, value... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | setup.py | setup.py | .py | 914 | https://github.com/simpleai-team/simpleai/blob/master/setup.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/setup.py | 556e12ea4888157e99283a8f6244f6cc5c136ae6 | Python | 2026-05-04T01:28:34.849182 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='simpleai',
version='0.8.3',
description=u'An implementation of AI algorithms based on aima-python',
long_description=open('README.rst').read(),
author=u'Juan Pedro Fisanotti',
author_email='fisadev@gmai... |
simpleai-team/simpleai | https://github.com/simpleai-team/simpleai | https://api.github.com/repos/simpleai-team/simpleai | simpleai-team | simpleai | simple artificial intelligence utilities | 990 | 247 | 990 | mit | master | 2012-07-24T23:12:50 | 2026-04-29T02:02:08 | [] | {
"Python": 125959,
"JavaScript": 7241,
"HTML": 3449,
"CSS": 1724
} | false | 13 | simpleai/environments.py | environments.py | .py | 1,821 | https://github.com/simpleai-team/simpleai/blob/master/simpleai/environments.py | https://raw.githubusercontent.com/simpleai-team/simpleai/master/simpleai/environments.py | 022bf6654cb801a668ae9b51685c0295f689ed5c | Python | 2026-05-04T01:28:36.011252 | # -*- coding: utf-8 -*-
class Environment(object):
def __init__(self, agents, initial_state):
self.agents = agents
self.initial_state = initial_state
self.state = initial_state
def run(self, steps=10000, viewer=None):
self.state = self.initial_state
for step in range(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.