/hydrus/ - Hydrus Network

Archive for bug reports, feature requests, and other discussion for the hydrus network.

Index Catalog Archive Bottom Refresh
Name
Options
Subject
Message

Max message length: 12000

files

Max file size: 32.00 MB

Total max file size: 50.00 MB

Max files: 5

Supported file types: GIF, JPG, PNG, WebM, OGG, and more

E-mail
Password

(used to delete files and posts)

Misc

Remember to follow the Rules

The backup domains are located at 8chan.se and 8chan.cc. TOR access can be found here, or you can access the TOR portal from the clearnet at Redchannit 3.0.

Uncommon Time Winter Stream

Interboard /christmas/ Event has Begun!
Come celebrate Christmas with us here


8chan.moe is a hobby project with no affiliation whatsoever to the administration of any other "8chan" site, past or present.

(34.85 KB 480x360 OQM8AIbFW4g.jpg)

Version 346 hydrus_dev 04/03/2019 (Wed) 23:06:58 Id: b5cff5 No. 12084
https://www.youtube.com/watch?v=OQM8AIbFW4g windows zip: https://github.com/hydrusnetwork/hydrus/releases/download/v346/Hydrus.Network.346.-.Windows.-.Extract.only.zip exe: https://github.com/hydrusnetwork/hydrus/releases/download/v346/Hydrus.Network.346.-.Windows.-.Installer.exe os x app: https://github.com/hydrusnetwork/hydrus/releases/download/v346/Hydrus.Network.346.-.OS.X.-.App.dmg linux tar.gz: https://github.com/hydrusnetwork/hydrus/releases/download/v346/Hydrus.Network.346.-.Linux.-.Executable.tar.gz source tar.gz: https://github.com/hydrusnetwork/hydrus/archive/v346.tar.gz I had a great week. There's a bunch of fixes and thumbnail improvements, a more powerful manage urls dialog, and a prototype OR search to try out. thumbnails Last week's big thumbnail change seems to have gone fairly well overall. There do not seem to be any huge errors anywhere, and the simpler file system and code is great, but I was annoyed by how slow certain regeneration scenarios turned out to be, and how some thumbnail resizes were a bit blurry. To address this, this week I have cleaned and improved a bunch of thumbnail loading code. It was much nicer to do now I only have one thumbnail file to juggle. Thumbnails should now be a less blurry when they scale up, and they should generally load a bit faster whenever a lot of regenerations need to be done (you should notice CPU-expensive video thumbs load last of all, while easy ones like pdfs and pictures should come in first). I was also annoyed that even small changes in desired thumbnail size would force a complete regen, which was particularly laggy when scaling up. So, to smooth out the loading time when you have recently changed the desired thumbnail resolution, I have added an experimental regeneration throttle. When the difference between what is available and what is desired is just a few pixels (and so a scale will not be too fuzzy), rather than regenerating from source, the client will now mostly just scale up or down what it already has. When the difference is great, it is more worth spending the CPU on a full regeneration to get a clear thumbnail, so it will regenerate more often. It still eventually regenerates everything, but when the difference is slight, the real workload will be spread over several loads. For some example numbers, if the thumb on your disk is 120x120 and your options want 125x125, the client will expensively regenerate from source only about 29% of the time and scale up the original 120x120 about 71% of the time. But 120x120 vs a desired 250x250 will regenerate/rescale about 84%/12% of the time. This is a big experiment, but I am generally pleased with it: it does speed up thumbnail load in many situations that were previously needlessly slow, and the relative fuzziness is generally not a noticeable problem. I hacked the percentage ratios out of some statistical polling that I can definitely tune in future, so please let me know if your situation produces too many very fuzzy thumbs. Also, if you are in 'advanced mode', the thumbnail right-click menu now has more 'regenerate' options: as well as doing a complete file reparse and thumb regen, you can now choose to just regenerate thumbnails or only regenerate thumbs if their size is wrong. If you are an advanced user, please feel free to play with these new commands, particularly if you notice fuzzy thumbs from the throttle above, and let me know how it goes. I expect to do more work on thumbs in the coming weeks. As well as tuning the new regeneration throttle, I would like to expand the new database-level thumbnail regeneration modes to work during maintenance time. I have long planned a 'file reparse' db maintenance mode so I can finally fix all the ancient mistaken animation frame counts and mime mismatches like apngs/pngs and mkvs/webms, and now this same maintenance command can also just do thumbs, I would love to let users say 'please regen all thumbs that are the wrong size in the background during idle time, no more than 20mins/day'. There's no reason why this stuff should be only on command for advanced users, so now I need to build the maintenance structure for it. I'd also like to extend the current thumbnail location override under migrate database to work just like the files, so you can balance thumbnails over multiple weighted locations. Linux and OS X users: You may not have received an error, but it is decently likely that last week's 'rxx' folder delete did not work for you. This was due to a permissions-setting mistake on my end. I have fixed this permissions code, and on this 346 update, if you still have some rxx folders in your db, the client will attempt to re-do the delete. If it wants to do this, it will give you another popup message as you update, informing you of the situation before it goes ahead. or search Several things came together this week, and I managed to get an early prototype of OR search working completely. I am keen to get users' thoughts on how to finish it off. To start an OR search, hold down shift when you enter a tag in a search page. Rather than adding this tag to a search, it will now place it in a new box just above the input box. Further shift-enter actions will increase the OR 'chain', making 'tag A OR tag B OR tag c', and a final non-shift enter will cap the chain and send the OR search predicate up to the main search. It works! You can even add system predicates! However, this entry method is not finished. Have a play with it and you will see what I mean. There is no neat way to cap off an OR chain early (i.e. without typing anything new: if you hit a bare enter on it, you'll get system:everything or system:inbox on the end), nor to 'go back one' if you put the wrong tag in. Also, system predicates that need additional panel infomation before 'going through' do not hold on to the shift status. Beyond the bugs, I am interested in what you would like for the workflow here–would you rather the OR-chain under creation be inserted as the top item in the list below, rather than in the new box above? Should it be highlighted as under construction somehow? Should it have a dangling OR while under construction, such as 'blue eyes OR green eyes OR' rather than 'blue eyes OR green eyes'? How should it be cancelled, or undone a step? What would be the best way to say 'ok, I have A OR B OR C entered, and I don't have a D to add, so I want to enter what I have now'? the rest I made two more stupid errors last week–one that draws white frames over animations on certain media update events, and one that occaisonally set the 'include current tags' value on search pages to 'false' on reloads. I have fixed both of these issues, and as a one-time for this update, all 'include current tags' values are forced back to true. I am sorry for the inconvenience here. The white frame stuff drove me nuts all week. Beyond that, I extended the 'manage urls' dialog to support multiple thumbnail selections, which allows for easy mass-deletion of bad URLs. The URL list on this dialog also now supports multi-selection and accepts the delete key. It also supports adding URLs to multiple files, but when opened on multiple files it presents a little red-text warning to remind you that adding a URL to multiple files only makes sense for gallery URLs. I expect to do a little more work on this in future, cleaning the workflow a little more and detecting the url class of urls you attempt to add to multiple files, specifically testing what is and is not appropriate to add. In any case, like everything else this week, please give it ago and let me know how it works for you! Also, the 'move files now' button on database->migrate database now lets you limit the max time it will run to 10/30/60 minutes! This is a nice stopgap if you, say, have 600,000 thumbnails to move and don't want to do it all at once. full list - or search:
[Expand Post]- extended the search predicate object to handle more OR stuff - extended the tag list to handle list objects that have multiple colours - extended the new OR search predicate to report multiple text-snippet-and-colour pairs based on sub-predicates - extended tag search input to handle prototype OR predicate creation–hold shift when you enter the tag, and it'll start an OR chain. shift-enter continues the chain, enter alone completes it - fleshed out the predicate unit tests to cover more of this - wrote unit tests for OR search predicates. it seems good! - improved some search logic to apply system preds better in certain edge cases and spend less CPU on OR-search-only searches - . - thumbnails: - thumbnails will now queue for load in a more intelligent order based on estimated difficulty to regenerate, which will tend to put more thumbs on screen faster - the decision to regenerate a thumbnail from source is now tempered by how different the current thumbnail is from what is desired–the more similar the two sizes, the more (randomly) likely the client will decide to just use the current (resized) this time. this smooths out change-lag while limiting the number of really fuzzy thumbs you get. feedback on how this works IRL would be appreciated–it uses some voodoo distribution polling to figure it out, which I can definitely tweak - improved visual quality of thumbnail scale-up optimisations - fixed an issue where a multipage thumbnail grid would incorrectly recalculate the new virtual height after a thumbnail size change event, leading to a bit of invalid extra scrollspace (with noclip rendering errors) at the bottom - the thumbnail right-click menu's reparse files entry is now extended to a new 'regenerate' submenu with three options: reparse file and regen thumbs (the old action), force regen thumbs, and regen thumbs if wrong size! - the new 'regen if thumbs wrong size' action sends how many thumbs needed resize up to the popup window, as well - moved some old thumbnail regen code responsibility out of the db and into the files manager - cleaned out some old redundant file/thumbnail code - cleaned and refactored a bunch of general image handling and resizing code - . - the rest: - fixed some bad serialisation code that was making file search objects set their 'include current tags' value to false/true on interleaving loads. on this update, all 'include current tags' values are blanket reset to true - fixed an issue that was drawing animation canvases pure white on various media update events - extended manage urls dialog to support multiple files when launched from a selection of thumbnails. there is a warning in this case, noting that only gallery-style urls are appropriate to be added to multiple files - manage urls dialog now supports multiple selections, including shift-select, and accepts delete key presses for easy mass deletion - when you ask the database migration dialog to move some files, it now pops up a confirmation dialog that also asks if you would like to limit the max time for the job as 10, 30, or 60 minutes - improved file permission setting code across the program to be more sensible for non-Windows - if you are a non-Windows user and were hit with directory permission problems last week on the thumbnail update–which resulted in the rxx directories not being deleted–the update this week will attempt to do the delete again, this time correcting the now missing execute permission bit. if it finds outstanding rxx directories to delete, it will give a popup beforehand summarising the situation and giving you a chance to bail out - fixed yet another problem that was stopping client api url requests from finding the correct page by name - when a client api url request includes fixed tags, these tags should now propagate in all scenarios where the single url produces multiple files - updated sqlite dll and console for windows - misc fixes and cleanup next week Next week is a 'cleanup' week. I'll keep chipping away at the listctrl rewrite and other boring jobs, and I'll see if I can finish up the OR search entry workflow in a sane way. Thanks everyone!
Thanks for the update! Currently trying to get my database pared down some so I can do a backup and then the new thumbnail change-over more painlessly. Going to reply here since I wasn't around last week. >>12047 I haven't touched booru tags, I just thought default was to import them. If I change settings and then reimport will it just search and apply the tags to the already downloaded images? I'm also noticing that if I delete images I downloaded under one tag, then they get found again by another tag, it reimports them and adds them back into the download page of the original tab I deleted them from too, but only sometimes. Thinking it's just something with rule34 messing up versions of their images and having unreliable md5s, but thought I'd mention anyways. Having some trouble duplicating it so can't really provide examples I'm afraid.
When you change the thumbail by even 1 pixel is there an option to do auto regeneration instead of having to manually click it? The blurry thumbnails look better now after using it. Also how do I make it so when I open a new page that it automatically has "system: everything" in the search?
hey dev. for the past few versions, export folder sync has been real wonky. Just deleting the sync folders and leaving them empty. syncing all, or half of the content after being poked. Generally unreliable and inconsistent. Please take a look at that!
>Further shift-enter actions will increase the OR 'chain', making 'tag A OR tag B OR tag c', and a final non-shift enter will cap the chain and send the OR search predicate up to the main search. It works! You can even add system predicates! I keep adding systems tags I don't want ;_; I already have X and Y with shift but when I try to finish and do the search I end up adding a system tag I don't want, like everything, and tried clicking outside the tag box but that doesn't work.
>>12092 The trick is to only use [shift + enter] once. so type: >tag1 >[shift+enter] >tag2 >[enter]
>>12092 >>12094 of course for three tags, you'd use it twice, but the basic idea is to type enter and not shift+enter when the last tag is in the input box.
Having played with the new thumbnail throttling a bit, I am overall happy with certain bits of the tech. I am still a little annoyed at how slow it takes certain thumbs to get on screen, so I think the next step here is to draw all thumbs to screen as quickly as possible, even if they are scaled and fuzzy, and then to schedule regen and swapping the nicer thumb into place in the ui in the coming seconds. So you'll get something on screen, and it'll get more beautiful as needed in the near future.
>>12086 Hey, I am sorry for the confusion. I wrote up some better downloader 'getting started' help somewhat recently, which talks about setting up default tags more completely than I can do quickly here: https://hydrusnetwork.github.io/hydrus/help/getting_started_downloading.html Basically do some trial runs to figure out what 'tag import options' you want (for most people, this is just 'get everything' and a few blacklist tags like 'vore' and 'diaper'), and then apply that as the defaults, and all new pages will start with that. Let me know if you run into trouble with any of it. —- To fetch tags for the files you already have, you'll need to make a one-time change just for those jobs. I recommend opening up a completely new download page for 'getting tags for files I already have' and keeping it set only there. By default, the client will skip any download pages it has 'seen before', so it won't get tags, but if you go into the 'tag import options' of that page, you can check boxes for 'fetch tags even if xxx recognised and file already in db'. Hit both of those and then run your retroactive searches, and the client will pursue the files' html post pages and grab the tags but still skip actually downloading the files themselves again. I am afraid I am not sure what is going on with your URLs going into different pages/tabs. That should not typically ever happen in normal operation, but I may be misunderstanding something. If you can figure out a way to recreate this, please do let me know.
>>12089 My ultimate idea here, rather than doing it always through a selection right-click menu, is to have a big db command under the database menu that'll let you say, "Hey, I just changed my thumb size. I want you to regen everything over time." I don't like burning the CPU right as you view thumbs when I could be doing it in the background during idle time. And now my maintenance routine has the thumb-only options, I need only now make some db tables and a new maintenance job to actually action this. Maybe not this week, but within the next few weeks, I think. As for mandating regeneration on load, I am mixed. I don't like the old system of forcing complete regen on load, and the new system of throttling it is also imperfect. I'll now try my idea here >>12102 , which will resize everything over, say, 30s, without lagging it all up. You know, if I were feeling clever, I could even order thumbnail regeneration in idle time by number of media views as a proxy for 'popular'. I will think about this. There is no current way to set a default search for regular new search pages. As for system:everything in particular, as soon as your client hits I think 10,000 files, your system:everything will disappear (although you can turn this off if you want). 'everything' becomes less and less useful the more files you have. Even so, you might like to play with middle-click on a tag. If you middle-click on 'system:everything', it should open a new search with just that tag. Or you can just hit enter as soon as you open a new page–the tag entry is supposed to get your keyboard focus, and enter will open sys:everything immediately.
>>12092 >>12094 >>12095 I think I am leaning more towards inserting the currently-under-construction OR tag into the dropdown list below, like this: [blue…] —– green eyes OR red eyes blue eyes (2,100) blue hair (124) blue benis (65,536) If it is in the selection list, then a bare enter press will select it as-is, but you can still hit DOWN, SHIFT-ENTER, to OR-append the 'blue eyes'. I was personally pleased with myself for making the new box above do its unhide and layout correctly as needed, ha ha, but I think it better I put the OR in the normal place. This still doesn't solve the 'cancel' and 'rewind' problems, so I'll keep thinking about that. Maybe just add a couple buttons on the right of the text input box when an OR is under construction that you can click.
>>12090 Thank you for this report. I had another report from someone else recently that they weren't firing on time. I will give them a complete pass this week to see what is going wrong here. Sounds like there are several problems. Can you give a concrete example of an export search that is failing for you? Is it by chance a 'system:rating' only search?
>>12105 >blue benis (65,536) damn wtf
>>12114 >he doesn't play minecraft
>>12115 >>he plays minecraft
>>12105 Ok, I've done this for 347, but it skips selection on that first under-construction OR item. You can cancel, rewind, and add the under-construction OR item as-is. I also sped up some OR search speed for weird cases. I'm pleased, and OR v1.0 is now basically done but for some small stuff I'll put in sometime like 'make an OR out of this' on right-click menu from multi- tag selection in a list. Unless something big comes to me, I'll probably be putting together a new thread this Wed for talking about a new 'big things' poll.
>>12119 >Maybe just add a couple buttons on the right of the text input box when an OR is under construction that you can click. Buttons on the side of the input box sound like a good and easy way to fix a few issues at once. One issue I ran into is that the OR chain got pretty long pretty quickly, and since the search terms are horizontally arranged, they exceeded the width of the left panel and I wasn't able to see my whole search at once. I plan on having a session of OR searches saved in Hydrus kind of like Danbooru's "saved search" function, and I'll want to keep developing them, so any way to easily edit the searches and display all of the terms in a vertical list would be fantastic. I was pleasantly surprised at how fast the searches completed too. Thanks for working on this!
>>12115 wait how does blue bepins relate to minecraft?
Came looking for the 'or' search, found it freshly implemented. Thanks. The interface… I don't think it is globally useful to avoid parsing a tag expression string. Even with the current 'or' feature, you get 'copy "a a OR b b OR c b"' in the context menu of the resulting tag. But copypasting the copied result anywhere makes no sense. But it could. By adding a little bit of quoting support. Same with 'copy selected', by the way. A simple way to add quoting and expressions is: 1. use double quotes when necessary, e.g. `"some tag"`, 2. double the double quotes in tags, e.g. `some "proper" tag` -> `"some ""proper"" tag"` (the way CSV does it), 3. Somehow distinguish interfaced input `some "proper" tag` from expression `"some ""proper"" tag"`, e.g. by a flag or by prepending a `#` 4. dumps and loads a list of tags into such expression 5. … 6. P-… I mean, voila, you get a copypasteable expression such as `# ("a a" OR "b b" OR "c c") AND "some ""proper"" tag"`, or `# (a OR b OR c) AND e` If you happen to agree on the design part I will likely assist in implementing that.
>>12074 have been away for a bit This will help immensely, while this won't cover a general culling as in, I go through a thread and just delete the shit thats low quality, this will allow me to use the dup filter. seeing as i'm in the 450k duplicate file range right now, and this is with about 1.8 million files in my db not being seen but the dup filter, I will be able to get quite a lot done.
>>12121 Yeah, in my testing I have had the same issue with long ORs stretching too far to see and to edit. This phase doesn't have better edit than this new rewind button, but I've long wanted the ability to right-click->edit system predicates that are in the current search, so when I go for that, I'll see if I can throw together a dialog with some sort of regular taglist with all the OR sub-tags listed so you can see the whole lot and just easily double-click to delete or whatever. Yeah, single tags are always happily always pretty quick in the client, and the current OR search tech fits into that nicely. ORs with certain system tags or '-tags' can be exceedingly slow, but I also have a new optimisation in for tomorrow that will speed these slow searches up significantly if the overall search is mixed with other simple terms, like: series:evangelion character:asuka OR -character:rei In 347, the 'evangelion' search will be run first, so the potential search domain of '-rei' is cut down from your entire collection to your x eva files.
Is it possible to make something like Windows where you can make a box and drag it with your mouse and select images within that box? Would be nice to have that feature
> Can you give a concrete example of an export search that is failing for you? Is it by chance a 'system:rating' only search? I have two exports, both are a simple search for one tag. One to sync tag "bg", another to sync the tag "potential bg". Both export folders have been left empty or incomplete when I use hydrus. I have to poke around the export settings to make sure they actually worked before closing hydrus.
>>12135 >In 347, the 'evangelion' search will be run first, so the potential search domain of '-rei' is cut down from your entire collection to your x eva files. Oh nice, especially with various system tags in place to limit the search, that'll cut down the time quite a lot for me. On another topic, for the list of next big things, was the booru something you had in mind for working on? I had an idea about how it could be integrated more directly into the main UI, which I could write more about provided that there's interest in the booru right now.
>>12136 I would like to have that, particularly for my own use, but unfortunately this functionality does not seem to be built in to my ui library, and furthermore my thumbnail panel is all my own custom code. I will have to write both ends of a system like this, so I have it as a 'big job' for now. It is currently "Write some ui to allow selecting thumbnails with a dragged bounding box" here: >>12152
>>12145 Thank you, the 'delete after export run' bug should be fixed in 347 for export folders that make filenames that include subdirectories. Please let me know if you still get it in the new version.
>>12146 Yeah, now here as a new 'big job' to work on: >>12152 . However, I am not totally sure what to do with the current booru. It was always a prototype that then never got revisited. I think next step is probably to convert it to the nicer new Client API code just so it is all operating on the same system, and then work on templating so users have more CSS/HTML customisation options. Then again, I do know of some users working on booru wrappers for the Client API as-is, so if they can do a better job than I can fit in, it may be better ultimately for me to abandon it. If the booru does not prove all that popular in the poll and some other users can fill in the gap, perhaps we can revisit the whole idea and instead I give more power to them via the Client API. If you have particular ideas on integrating the booru into the actual client ui, I am interested to know what you are thinking of. Please post in that big poll thread if you would like.


Forms
Delete
Report
Quick Reply