Coder Social home page Coder Social logo

Comments (9)

caoyue10 avatar caoyue10 commented on June 12, 2024

I need more details to help you.

from cvpr17-dvsq.

posix4e avatar posix4e commented on June 12, 2024

from cvpr17-dvsq.

bl0 avatar bl0 commented on June 12, 2024

I will close this issues due to inactivity.
Please feel free to reopen once you have any problem.

from cvpr17-dvsq.

FartFang avatar FartFang commented on June 12, 2024

I meet the same problem when I ran run_dvsq,could you please give me some help?

from cvpr17-dvsq.

bl0 avatar bl0 commented on June 12, 2024

The first argument in the following command from run_dvsq.sh is the path to pretrained model, do you have successed to train the model?

python validation_script.py ./cos_softmargin_multi_label_lr_0.02_cqlambda_0.0001_subspace_4_margin_0.7_partlabel_10_iter_5_output_300_.npy 1

You can send the full log to me([email protected]) and I will try to help you.

from cvpr17-dvsq.

FartFang avatar FartFang commented on June 12, 2024

`Traceback (most recent call last):
File "validation_script.py", line 69, in
model.validation(database_img, query_img, config)
File "/home/fangziming/cvpr17-dvsq-master/net_val.py", line 606, in validation
model = DVSQ(config)
File "/home/fangziming/cvpr17-dvsq-master/net_val.py", line 69, in init
self.load_model(self.model_weights)
File "/home/fangziming/cvpr17-dvsq-master/net_val.py", line 99, in load_model
img_output = self.img_alexnet_layers(img_model_weights)
File "/home/fangziming/cvpr17-dvsq-master/net_val.py", line 109, in img_alexnet_layers
net_data = np.load(model_weights).item()
File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 370, in load
fid = open(file, "rb")
IOError: [Errno 2] No such file or directory: './cos_softmargin_multi_label_lr_0.02_cqlambda_0.0001_subspace_4_margin_0.7_partlabel_10_iter_5_output_300_.npy'

Where can i find that pretrained model?

from cvpr17-dvsq.

bl0 avatar bl0 commented on June 12, 2024

Can you paste the full log(including the command you executed and the content before the error traceback) here?

from cvpr17-dvsq.

FartFang avatar FartFang commented on June 12, 2024

fangziming@ubuntu--X10DAi:~/cvpr17-dvsq-master$ python train_script.py 0.02 300 5000 0.0001 4 0.7 10 0 I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally 0.00255608558655 initializing launching session W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations. W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations. I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties: name: TITAN X (Pascal) major: 6 minor: 1 memoryClockRate (GHz) 1.531 pciBusID 0000:02:00.0 Total memory: 11.90GiB Free memory: 6.85GiB W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x473ec30 I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 1 with properties: name: TITAN X (Pascal) major: 6 minor: 1 memoryClockRate (GHz) 1.531 pciBusID 0000:81:00.0 Total memory: 11.90GiB Free memory: 9.84GiB I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y N I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 1: N Y I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: TITAN X (Pascal), pci bus id: 0000:02:00.0) I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -> (device: 1, name: TITAN X (Pascal), pci bus id: 0000:81:00.0) loading img model Traceback (most recent call last): File "train_script.py", line 78, in <module> model_dq = model.train(train_img, config) File "/home/fangziming/cvpr17-dvsq-master/net.py", line 589, in train model = DVSQ(config) File "/home/fangziming/cvpr17-dvsq-master/net.py", line 68, in __init__ self.load_model(config['model_weights']) File "/home/fangziming/cvpr17-dvsq-master/net.py", line 98, in load_model img_output = self.img_alexnet_layers(img_model_weights) File "/home/fangziming/cvpr17-dvsq-master/net.py", line 108, in img_alexnet_layers net_data = np.load(model_weights).item() File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 370, in load fid = open(file, "rb") IOError: [Errno 2] No such file or directory: './cos_softmargin_multi_label_lr_0.02_cqlambda_0.0001_subspace_4_margin_0.7_partlabel_10_iter_5_output_300_.npy'

when i run train_script.py it tell me that i miss the model file

from cvpr17-dvsq.

udaybvb avatar udaybvb commented on June 12, 2024

python train_script.py 0.02 300 5000 0.0001 4 0.7 10 0
/home/test/anaconda3/lib/python3.6/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
initializing
launching session
loading img model
Traceback (most recent call last):
File "/home/test/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 440, in load
return pickle.load(fid, **pickle_kwargs)
_pickle.UnpicklingError: invalid load key, 'v'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train_script.py", line 79, in
model_dq = model.train(train_img, config)
File "/home/test/Desktop/cvpr17-dvsq/net.py", line 588, in train
model = DVSQ(config)
File "/home/test/Desktop/cvpr17-dvsq/net.py", line 68, in init
self.load_model(config['model_weights'])
File "/home/test/Desktop/cvpr17-dvsq/net.py", line 98, in load_model
img_output = self.img_alexnet_layers(img_model_weights)
File "/home/test/Desktop/cvpr17-dvsq/net.py", line 108, in img_alexnet_layers
net_data = np.load(model_weights).item()
File "/home/test/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 443, in load
"Failed to interpret file %s as a pickle" % repr(file))
OSError: Failed to interpret file 'models/reference_pretrain.npy' as a pickle
(tensorFlow) test@VirtualBox:~/Desktop/cvpr17-dvsq$

Got this error

from cvpr17-dvsq.

Related Issues (9)

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.