Giter Club home page Giter Club logo

Comments (6)

guillermodecelisrodriguez avatar guillermodecelisrodriguez commented on August 16, 2024 1

Seems to work perfectly!!

Thank you so much!

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

You can simply change this line to model: cnos_fast. Let me know if it is not working.

from cnos.

guillermodecelisrodriguez avatar guillermodecelisrodriguez commented on August 16, 2024

Thanks for your fast answer!
i have already tried it and did not work

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

Can you provide more details?
Since, if you change the line above, this line will read the FastSAM models for inference_custom.py.

from cnos.

guillermodecelisrodriguez avatar guillermodecelisrodriguez commented on August 16, 2024

The error that i obtain is this:
Traceback (most recent call last):
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/gdecelis/Desktop/cnos/src/scripts/inference_custom.py", line 166, in
run_inference(args.template_dir, args.rgb_path, num_max_dets=args.num_max_dets, conf_threshold=args.confg_threshold, stability_score_thresh=args.stability_score_thresh)
File "/home/gdecelis/Desktop/cnos/src/scripts/inference_custom.py", line 77, in run_inference
cfg.model.segmentor_model.stability_score_thresh = stability_score_thresh
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 337, in setattr
raise e
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 334, in setattr
self.__set_impl(key, value)
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 318, in __set_impl
self._set_item_impl(key, value)
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/basecontainer.py", line 549, in _set_item_impl
self._validate_set(key, value)
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 180, in _validate_set
target = self._get_node(key) if key is not None else self
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 475, in _get_node
self._validate_get(key)
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 164, in _validate_get
self._format_and_raise(
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/base.py", line 231, in _format_and_raise
format_and_raise(
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/_utils.py", line 899, in format_and_raise
_raise(ex, cause)
File "/home/gdecelis/miniconda3/envs/cnos/lib/python3.9/site-packages/omegaconf/_utils.py", line 797, in _raise
raise ex.with_traceback(sys.exc_info()[2]) # set env var OC_CAUSE=1 for full trace
omegaconf.errors.ConfigAttributeError: Key 'stability_score_thresh' is not in struct
full_key: model.segmentor_model.stability_score_thresh
object_type=dict

I believe there is something wrong with the "stability_score_thresh" input

from cnos.

nv-nguyen avatar nv-nguyen commented on August 16, 2024

I just fixed the issue. You can git pull and retry it.

from cnos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.