Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    R0yk3
    @R0yk3
    I see more and more objects becoming visible. how long does it continue processing photo's?
    Damian Moore
    @damianmoore
    Thanks @R0yk3, appreciate it and will try to remember to ask you to translation. I would expect object detection to keep running for a while yet. Maybe about 5 secs per photo :-I
    ~5.8 days!
    R0yk3
    @R0yk3
    Out of interest, would you expect filtering to be AND? Can you point to examples of other photo managers that do this?
    I missed this post..
    I would expect a 'OR' but it is 'AND' because if i choose a second filter the selection becomes smaller. It would be nice to select the 'AND/OR'
    Cannot point other programs which do this.
    Jeyakumar CK
    @JeyakumarCK
    Hi, I just followed the installation instructions for photonix, but I couldn't see any pictures listed from the folders that I have been giving
    image.png
    All I got is this blank screen. Am I missing something?
    I have put couple of pictures in the .../data/photos folder and expecting it to showup in the home page in my library
    Jeyakumar CK
    @JeyakumarCK
    and I gave the base folder as /home/jk/Pictures
    Damian Moore
    @damianmoore
    Hi @JeyakumarCK, sorry you're having issues. Do you see any error messages in the console? Also could you run make shell and then ls /data/photos/ to confirm you have files mounted correctly?
    Francesco Belladonna
    @Fire-Dragon-DoL
    Is it possible to tag images in some way? I read the homepage but it's not cleer if the feature is implemented or not. In the demo it's hard to understand, because I presume some features are disabled to prevent spammers from wrecking havoc
    Damian Moore
    @damianmoore
    Hi @Fire-Dragon-DoL thanks for the question. Tagging is actually enabled on the demo site right now. To use it, select a thumbnail then scroll down until you see the heading "Tags". You should be able to then click the pencil/edit icon and add some of your own. You can see an example of the UI in this blog post under the heading "General tags": https://photonix.org/blog/january-2021-update/
    Francesco Belladonna
    @Fire-Dragon-DoL
    Ah! Thank you Damian ;)
    I completely missed the fact I was able to scroll, nice
    legraml
    @legraml

    All I got is this blank screen. Am I missing something?

    I am having the same problem. I used the web interface for setting up "admin" account and set basePath to "/data/photos". When I use "docker-compose run photonix bash" and "ls /data/photos", I get all JPG files listed as root:root and readable. But nothing happens.... any ideas?

    Damian Moore
    @damianmoore
    Hi @legraml, thanks for reporting this issue. I fear it might have been something I recently merged that broke things. I'll hopefully be able to look into it in the next couple of days.
    Damian Moore
    @damianmoore
    Hi @legraml, @JeyakumarCK Think I've fixed this import issue now. If you pull and run again I think it would be a lot better at detecting photos as they arrive.
    jensbrak
    @jensbrak
    I've resumed looking at the possibility to build and run Photonix on RPi. While building it is slow, as you mentioned in #67 it is possible to get beyond Tensorflow at least. But as you also mentioned, problems occur later on.
    Damian Moore
    @damianmoore
    Hi @jensbrak Thanks for having a go. Yes building the other Python wheel packages is slow - my solution to this is I created my own PyPI server and some scripting to upload packages so they only have to built once per architecture. Are you using (or have you seen) this branch?: https://github.com/damianmoore/photonix/compare/raspberry-pi There'll be some other bits I can push to that branch soon. I think it's very close.
    jensbrak
    @jensbrak
    Ah. Well, I haven't tried that branch no - I just went along with master and when encountering Tensorflow issues I manually installed it (2.4.0 actually). Now there seems to be issues building scipy
    There's no real hurry for me, I just remembered I tried to get it up and running but failed to remember the Github issue I was following lol.
    Damian Moore
    @damianmoore
    Cool @jensbrak. These are the packages I've built so far on my PyPI server in case they're of any use: https://pypi.epixstudios.co.uk/packages/
    jensbrak
    @jensbrak
    Allright. I'll see what I can do. I'll try the pi branch too - so far it stopped at tensorflow once again - which I just omit in the build script for the time being.
    Maybe I need to clear the build cache from my previous attempts since it seem to use that.
    I'm down to scipy 1.4.1 build step but most likely that will fail too in the rpi-branch.
    Damian Moore
    @damianmoore
    There are a lot of packages I temporarily removed in that branch. With the current requirements.txt it build and ran for me but obviously started erroring when starting to import photos. I didn't get onto scipy yet - gradually adding the dependencies back in.
    jensbrak
    @jensbrak
    ah, I get it. Allright. And I need to actually get the correct branch to start with lol.
    chbmb
    @CHBMB
    Hi Damian, was chatting to you on reddit about adding extra users via cmd line. I was wondering if I could help, if you tell me the commands, I can submit a PR for the docs and flesh it out a bit if you'd like?
    Damian Moore
    @damianmoore
    Hi @CHBMB, thanks for joining here. Here are some commands but it's more than I'd imagined, so I'm sorry about that. I was starting to write some scripts to simplify this but thought I'd send you these if you're brave enough to try in the mean time. Otherwise, I'll let you know when I've written the scripts. Hopefully the comments make sense but do ask if you are unsure or get stuck.
    # Launch Python shell in the running Docker container
    docker exec -ti photonix python photonix/manage.py shell
    
    # Import Django models
    from photonix.accounts.models import User
    from photonix.photos.models import Library, LibraryUser, LibraryPath
    
    # Create a user
    user = User(username='YOUR_USERNAME')
    user.set_password('YOUR_PASSWORD')
    user.save()
    
    # Create a library
    library = Library(name='YOUR_NEW_LIBRARY_NAME', classification_color_enabled=True, classification_location_enabled=True, classification_style_enabled=True, classification_object_enabled=True, setup_stage_completed='Th')
    library.save()
    
    # Create a path attached to the library so files can be imported
    library_path = LibraryPath(library=library, type='St', backend_type='Lo', path='YOUR_PATH_INSIDE_DOCKER_CONTAINER', watch_for_changes=True)
    library_path.save()
    
    # Link the user created above to the library created above
    library_user = LibraryUser(library=library, user=user, owner=True)  # owner=True only if this new library user is going to be in charge of managing it
    library_user.save()
    
    # Alternatively, if you want to be the owner in charge, set owner=False above and then also run this
    owner_user = User.objects.get(username='demo')
    library_user = LibraryUser(library=library, user=owner_user, owner=True)
    library_user.save()
    chbmb
    @CHBMB
    @damianmoore Looks straightforward enough to me, I'll have a play and knock something together, might take me a week or so as I have to do this sort of thing in the evenings once the kids are in bed.
    Damian Moore
    @damianmoore
    OK, cool. Good luck @CHBMB
    chbmb
    @CHBMB
    @damianmoore With photonix or the kids? :smile:
    Damian Moore
    @damianmoore
    Haha @CHBMB both! :smiley:
    chbmb
    @CHBMB

    Hey, me again, sorry for the long delay, kids got sick one after the other and then work/life got in the way, but finally got a chance to sit down and play around with this the last couple of days, so have a couple of questions.

    Firstly, what's the difference between setting a user as the owner of a library or not? I'm trying to work out which is the right approach for my install.

    Secondly, I've noticed an issue with browser caching. I setup a test install, created a couple of libraries attached to the super user, removed the container, dropped the postgres database then started from fresh, kept the same user/pass combo with a new install, logged in and could still see the two libraries from my previous install in the drop down in the top left. A ctrl-F5 sorted it out, but wondered if this is a known issue (I did take a look on Github and couldn't see anything that jumped out) or whether you want me to file an issue? I'm using Firefox on Ubuntu, is there any other data that would be useful for me to provide if needed?
    chbmb
    @CHBMB
    Probably salient to mention it was the same browser instance running.
    chbmb
    @CHBMB
    OK, I've installed again and answered my first question.
    Damian Moore
    @damianmoore
    Hi @CHBMB, welcome back. You should make one user the owner of a library. It doesn't do much right now but an owner will be able to make changes and invite others to view their library. An user may not be the admin of the entire Photonix installation but they can still be in charge of their own libraries (if the user has given them one/some).
    Thanks for note about first load failing in the browser. I did notice this myself recently. It's to do with the authentication token expiring and not being able to refresh. I'll have a fix for it soon hopefully.
    chbmb
    @CHBMB
    Thank @damianmoore, I will plough on with the testing then and I'm documenting as I go along, so should be able to provide some instructions that are easy to follow for others who want to setup a multiuser setup.
    Damian Moore
    @damianmoore
    Amazing - thank you @CHBMB
    Jules Bertholet
    @Jules-Bertholet
    Hello, I've packaged Photonix for YunoHost: https://github.com/YunoHost-Apps/photonix_ynh
    The package integrates LDAP authentication, and automatically sets up libraries for new users
    Damian Moore
    @damianmoore
    Hi @Jules-Bertholet thanks for letting us know. I'd not heard about this platform before so just reading up a bit on it. Is there a review process before it makes it into their catalogue - I searched but can't see it yet? Is it built from our Docker setup? Also I'm presuming the ARM build won't work until ours is complete?
    Jules Bertholet
    @Jules-Bertholet
    There is a review process, but it's not very involved and the package has already passed it. The package does not use Docker; Photonix runs directly on the host OS. ARM is untested but should work.
    Damian Moore
    @damianmoore
    OK, thanks @Jules-Bertholet that's interesting. I'll have to try out the ARM version. I've spend days trying to get matplotlib dependency to build against the right version of numpy. Dependencies take a long time to build because of binary wheels not existing for ARM on PyPI. I was hoping pip --no-build-isolation would help or a pyproject.toml file with oldest-supported-numpy but no luck yet :(
    Jules Bertholet
    @Jules-Bertholet
    To be clear, by "ARM should work" I meant "I know of no reason why it wouldn't work." I haven't put any real thought into it