Commit graph

2656 commits

Author SHA1 Message Date
fabien servant
2bcabe1e3a [submitters] add Ripple 2022-12-14 09:18:03 +01:00
Fabien Castan
82ae95ef3e
Merge pull request #1719 from alicevision/AddNLMeansDenoisingOpenCVInImageProcessingNode
Add nl means denoising open cv in image processing node
2022-12-13 22:48:30 +01:00
Fabien Castan
60fa35d43b
Merge pull request #1718 from alicevision/dev/colrProfileManagement
Color management for RAW images
2022-12-13 17:08:06 +01:00
Fabien Castan
443237e265 [nodes] CameraInit,ImageProcessing: enable white balance by default 2022-12-13 15:30:46 +01:00
demoulinv
c0fc6c76a1 [nodes] CameraInit,ImageProcessing: Add parameters related to color profiles management 2022-12-13 14:36:17 +01:00
Fabien Castan
1b65283fb0
Merge pull request #1843 from pen4/oscs_fix_cebdb2gau51s0tihfq20
fix(sec): upgrade psutil to 5.6.7
2022-12-12 16:18:08 +01:00
pen4
63bcf9d163 update psutil 5.6.3 to 5.6.7 2022-12-12 15:17:36 +08:00
Fabien Castan
1b05ccbc31
Merge pull request #1836 from alicevision/dev/cgroups
[core] Add cgroups support to meshroom
2022-12-08 09:37:27 +01:00
Fabien Servant @ TCS
06d7d96fa2
rename variable for python compliance 2022-12-08 09:33:06 +01:00
Fabien Servant @ TCS
18026c3d59
[cgroup] rename variable for python 3 compliance 2022-12-08 09:31:30 +01:00
fabien servant
7e4c5db9d2 [node] move cgroup parameters to class attributes 2022-12-07 18:05:12 +01:00
fabien servant
93b98afedc [node] move cgroup properties reading in the constructor 2022-12-07 17:53:48 +01:00
fabien servant
6acc3fe7fc [node] update Exception class 2022-12-07 17:53:06 +01:00
mh0g
41e8643834 removed pyCompatibility 2022-12-06 16:21:21 +01:00
fabien servant
ae0ca71c1c [nodes] replace CommandLineNode with AVCommandLineNode for alicevision nodes 2022-12-06 15:07:01 +01:00
Fabien Servant
d0cebbe2b0 [cgroup] forgot filename 2022-12-06 15:07:01 +01:00
Fabien Servant
788bd7738b [core] add cgroups checks 2022-12-06 15:07:01 +01:00
Fabien Castan
a2f559f48a
Merge pull request #1839 from alicevision/dev/fixQmlWarnings
[ui] Fix all "TypeError" QML warnings
2022-12-06 11:38:16 +01:00
Candice Bentéjac
02383c68b3 [ui] Check that objects accessed by QML properties are not null before accessing them
Some QML properties access exposed Python objects that may or may not
be null upon their access. When these objects are accessed while null,
QML issues "TypeError" warnings. These warnings have no functional
impact as QML correctly handles trying to access null objects, but can
spam the logs.

This commit aims at fixing all these warnings by checking that the
Python objects are not null before being accessed.
2022-12-06 11:04:50 +01:00
Fabien Castan
67de413d31
Merge pull request #1837 from alicevision/dev/stopPython2Support
Remove support for Python 2.7
2022-12-06 10:18:13 +01:00
Candice Bentéjac
2c216b9f08 [docker] Remove Dockerfiles for Python 2 2022-12-05 17:16:22 +01:00
Candice Bentéjac
189cb6be5b [nodes] Use raw strings for parameters that contain regular expressions
Regular expressions in regular strings generate deprecation warnings
with Python 3 ("invalid escape sequence \x"). To fix these warnings,
the regex must be contained within a raw string. For nodes that have
parameters whose description and/or value contain regex, the strings
are transformed into raw strings. In the case of descriptions, which are
generally written across several lines, regular strings are concatenated
with regular strings to preserve line returns (with "\n", which becomes
uneffective in raw strings).
2022-12-05 17:16:22 +01:00
Candice Bentéjac
8bef398bed Remove workarounds and backports for Python 2 support
In particular:
- In common/, remove the backport of weakref.WeakMethod
- In docs/ and ui/, use the standard FileNotFoundError class
- Use built-in open() instead of io.open(), and stop importing io
- In core/stats.py, use the standard implementation of xml.etree instead
of the C one
2022-12-05 17:16:21 +01:00
Candice Bentéjac
635f85e7fd Remove all references to pyCompatibility
- "pyCompatibility.basestring" are replaced by standard Python3 "str"
- "Sequence" and "Iterable" from "collections" are now directly imported
with "collections.abc"
2022-12-05 17:16:21 +01:00
Candice Bentéjac
d2c707f6fa [install] Remove support of Python 2.7 from the installation documentation 2022-12-05 17:16:20 +01:00
Candice Bentéjac
0b638d4092 [requirements] Remove support for Python2 and early Python3 versions
The compatibility with versions of Python older than 3.5 is not
maintained anymore.
2022-12-05 17:16:20 +01:00
Candice Bentéjac
57c7a6e5b5 [ci] Remove support of Python 2.7 2022-12-05 17:16:19 +01:00
Fabien Castan
ffca9c68e3
Merge pull request #1824 from alicevision/dev/submitterJobTitles
[submitters] Add an option to update the job title on submitters
2022-12-05 16:22:33 +01:00
Fabien Castan
8ce2ac6fe8
Merge pull request #1832 from alicevision/fix/graphLocalComputations
[ui] Correctly determine if a graph is being computed locally and update nodes' statuses accordingly
2022-12-05 16:20:58 +01:00
Candice Bentéjac
826b57eeca [nodes] ImageProcessing: update NL Means parameters' description and default value
Change HColor default value from 5 to 10 as advised in the documentation
of OpenCV's non-local means denoising. Also update the description of the
H and HColor parameters so that they are easier to understand. The name
of the parameters is also updated to match with parameters from other
groups.
2022-12-05 15:58:04 +01:00
Fabien Castan
e1bd923f58
Merge pull request #1833 from alicevision/dev/pipelineInNodeMenu
[ui] GraphEditor: create new pipelines with the node menu
2022-12-05 15:56:37 +01:00
Candice Bentéjac
89b89d09c0 [core] Treat a chunk as external if it is computed locally in another session 2022-12-05 15:42:57 +01:00
Candice Bentéjac
eac43c84c3 [submitters] Add an option to update the job title on submitters 2022-12-05 15:23:10 +01:00
Candice Bentéjac
6a36da61cf [ui] GraphEditor: select pipelines imported through the node menu
Add all the nodes from a pipeline imported through the node menu to the
node selection.
This involves changing the return value of ImportProjectCommand from a
boolean to a list of imported nodes.
2022-12-02 18:19:56 +01:00
Candice Bentéjac
9d88ad91d5 [ui] GraphEditor: clear node selection before adding new nodes from the menu
This commit is a bugfix.
When adding new nodes with the node menu, the selection was never
explicitly cleared and nodes were added to the selection rather than
being exclusively selected.

This behaviour used to be hidden when the node menu could only appear
with a right click, as the click would automatically empty the
selection. However, with the node menu being now openable with the TAB
key, there might not be a click to empty the selection. If new nodes
are added by opening the menu with the TAB key and using the arrow keys
to select the node to create, an infinite number of them can be created
and added to the selection.
2022-12-02 18:13:50 +01:00
Candice Bentéjac
aedf0ef4c1 [ui] GraphEditor: Add the pipelines in the node menu's search bar
Pipelines can be searched in the list of available node types / pipelines
like regular node types.
2022-12-02 18:13:50 +01:00
Candice Bentéjac
2e5f471b7b [ui] Add a "pipelineTemplateNames" property
This property simplifies and optimizes the addition of templates in
the node menu and their import into the graph, as it prevents us from
looping over the entire "pipelineTemplateFiles" dictionary to retrieve
the information we need.
2022-12-02 18:13:49 +01:00
Candice Bentéjac
c2570ca0fb [ui] GraphEditor: Import pipeline on the mouse's position with the node menu
If a pipeline is imported with the node menu instead of the "Import
Project" action from the File menu, the top-left "corner" of the graph
should be placed on the mouse's position.
The position of pipelines imported with the "Import Project" menu
remains unchanged: they are automatically placed below the lowest
node in the current graph.
2022-12-02 18:13:17 +01:00
Candice Bentéjac
12c3fce7b1 [nodes] ImageProcessing: fix type of default and range values for FloatParams 2022-12-01 15:08:34 +01:00
Stella TAN
85a3f2afd2 Add new parameters in ImageProcessing node 2022-11-30 15:12:29 +01:00
Fabien Castan
b3c1196e41
Merge pull request #1829 from alicevision/fix/imgDropViewer2D
[ui] Viewer2D: fix minor issues
2022-11-30 12:17:50 +01:00
Fabien Castan
02b2d845c8
Merge pull request #1816 from alicevision/mug/searchImgGallery
[ui] image gallery search bar
2022-11-30 12:08:35 +01:00
Fabien Castan
13646df91f
Merge pull request #1834 from alicevision/ci/upgradeGithubActionRules
[ci] upgrade github actions rules
2022-11-30 10:43:41 +01:00
Fabien Castan
c96c1fa872
[ci] use a specific version of Ubuntu to avoid python setup failure 2022-11-30 00:19:44 +01:00
Fabien Castan
fa4037e575
[ci] specific minor version for python 2022-11-30 00:07:48 +01:00
Fabien Castan
0b0c0add96
[ci] upgrade github actions rules 2022-11-30 00:03:59 +01:00
Candice Bentéjac
04ab813cef [ui] GraphEditor: Add a "Pipelines" category in the node menu
Artificially add a "Pipelines" category in the node menu. The category
contains the list of available pipeline templates. Selecting a pipeline
instead of a regular node type "creates" the pipeline in the GraphEditor
(using the "import project" functionality). The imported pipeline is
by default placed under the current graph.

This commit does not include enabling the search for pipelines from the
"Pipelines" category in the search bar.
2022-11-29 18:14:30 +01:00
Candice Bentéjac
b08f83552e [ui] Clear locally submitted nodes before loading a new graph
When loading a new graph while the opened one was locally computing nodes,
computations were automatically stopped to be able to load the new graph.
However, the computing chunks' status were not being updated before
the graphs were switched up. This meant that opening that previously
computing graph again would lead to a display in which nodes appeared to
be computing although there was no ongoing computations.
2022-11-28 10:06:57 +01:00
Candice Bentéjac
1cd4ffc081 [ui] Take session ID into account when checking if graphs are computed locally 2022-11-28 10:02:50 +01:00
Candice Bentéjac
278538f793 [ui] Viewer2D: disable ComboBox to display output attributes if no node is loaded
By default, when no node is selected, only "Image Gallery" is available.
It makes no sense to have the ComboBox dropping down when clicked since
there is nothing to select. If no node is loaded, the ComboBox is disabled.
2022-11-22 15:06:55 +01:00