Skip to content

Instantly share code, notes, and snippets.

@brightcloudy
Created January 28, 2019 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brightcloudy/326359ed41d92147de6ac48f2a784b00 to your computer and use it in GitHub Desktop.
Save brightcloudy/326359ed41d92147de6ac48f2a784b00 to your computer and use it in GitHub Desktop.
filtering images...
loading scan of directory...
/home/brighty/porns/pyramid/
scan done
loading file and magic data (this will take quite a while, but will be cached)
timing get_all_images > filtering > get_allfiles: 0.95282
saving, progress: 743 743 100.0
done
timing get_all_images > filtering: 0.96063
saving hashes...
{'size': 784039, 'dir': False, 'mtime': 1548657977.003451, 'ctime': 1548657977.003451, 'name': 'c9c8c508d85525405dd36b0f232bc52e.png', 'path': '/c9c8c508d85525405dd36b0f232bc52e.png', 'hash': 'afd3228d328e8ad29b9fb9810b35084b6f5c3e15efcb9f99014a446c233487d4', 'magic': 'image/png', 'parent': '.'}
done
Counter({'image/png': 601, 'image/jpeg': 131, 'image/gif': 11})
image count:
743
timing get_all_images: 0.96347
seen_suppression: mean=0.0, max=0, min=0, median=0.0, seen=0
history: 0
timing startup: 1.04938
Starting server in PID 24278.
Serving on http://0.0.0.0:8844
02:06:12,583 WARNI [waitress.queue] Task queue depth is 1
s: 0 m: 0 np: 743 ai: 0 af: 743 ic: 743 h: 0
randpool size: 0, inversions: 0
Traceback (most recent call last):
File "/home/brighty/reimagined-happiness/web/state.py", line 220, in __getattr__
return super().__getattr__(name)
AttributeError: 'super' object has no attribute '__getattr__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/tweens.py", line 41, in excview_tween
response = handler(request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/router.py", line 148, in handle_request
registry, request, context, context_iface, view_name
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/view.py", line 657, in _call_view
response = view_callable(context, request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/config/views.py", line 169, in __call__
return view(context, request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/config/views.py", line 188, in attr_view
return view(context, request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/config/views.py", line 214, in predicate_wrapper
return view(context, request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/viewderivers.py", line 436, in rendered_view
result = view(context, request)
File "/home/brighty/reimagined-happiness/ve/lib/python3.7/site-packages/pyramid/viewderivers.py", line 144, in _requestonly_view
response = view(request)
File "/home/brighty/reimagined-happiness/web/views.py", line 166, in compare_get
return compare_inner(request, path, False, {})
File "/home/brighty/reimagined-happiness/web/views.py", line 193, in compare_inner
a, b, proba, probb, info = request.state.select_next(path)
File "/home/brighty/reimagined-happiness/web/state_.py", line 418, in select_next
proba, probb = self.getinfo(first, second, bulk_seen=bulk_seen)
File "/home/brighty/reimagined-happiness/web/state_.py", line 494, in getinfo
idx, info = self.model_.calc_next_index(x, dists, weights, {}, debug=True, existing_val=self.model_.getval(x))
File "/home/brighty/reimagined-happiness/web/model_.py", line 175, in calc_next_index
modelmin = self.min()
File "/home/brighty/reimagined-happiness/web/state.py", line 222, in __getattr__
res = getattr(model_, name)
AttributeError: module 'web.model_' has no attribute 'min'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment